Add PaX work-around
[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_pax_emutramp
830 enable_debug
831 enable_structs
832 enable_raw_api
833 enable_purify_safety
834 '
835       ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CCAS
839 CCASFLAGS
840 CPP
841 CPPFLAGS'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896   # If the previous option needs an argument, assign it.
897   if test -n "$ac_prev"; then
898     eval $ac_prev=\$ac_option
899     ac_prev=
900     continue
901   fi
902
903   case $ac_option in
904   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905   *=)   ac_optarg= ;;
906   *)    ac_optarg=yes ;;
907   esac
908
909   # Accept the important Cygnus configure options, so we can diagnose typos.
910
911   case $ac_dashdash$ac_option in
912   --)
913     ac_dashdash=yes ;;
914
915   -bindir | --bindir | --bindi | --bind | --bin | --bi)
916     ac_prev=bindir ;;
917   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918     bindir=$ac_optarg ;;
919
920   -build | --build | --buil | --bui | --bu)
921     ac_prev=build_alias ;;
922   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923     build_alias=$ac_optarg ;;
924
925   -cache-file | --cache-file | --cache-fil | --cache-fi \
926   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927     ac_prev=cache_file ;;
928   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930     cache_file=$ac_optarg ;;
931
932   --config-cache | -C)
933     cache_file=config.cache ;;
934
935   -datadir | --datadir | --datadi | --datad)
936     ac_prev=datadir ;;
937   -datadir=* | --datadir=* | --datadi=* | --datad=*)
938     datadir=$ac_optarg ;;
939
940   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941   | --dataroo | --dataro | --datar)
942     ac_prev=datarootdir ;;
943   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945     datarootdir=$ac_optarg ;;
946
947   -disable-* | --disable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       as_fn_error $? "invalid feature name: $ac_useropt"
952     ac_useropt_orig=$ac_useropt
953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954     case $ac_user_opts in
955       *"
956 "enable_$ac_useropt"
957 "*) ;;
958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959          ac_unrecognized_sep=', ';;
960     esac
961     eval enable_$ac_useropt=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=\$ac_optarg ;;
988
989   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991   | --exec | --exe | --ex)
992     ac_prev=exec_prefix ;;
993   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995   | --exec=* | --exe=* | --ex=*)
996     exec_prefix=$ac_optarg ;;
997
998   -gas | --gas | --ga | --g)
999     # Obsolete; use --with-gas.
1000     with_gas=yes ;;
1001
1002   -help | --help | --hel | --he | -h)
1003     ac_init_help=long ;;
1004   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005     ac_init_help=recursive ;;
1006   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007     ac_init_help=short ;;
1008
1009   -host | --host | --hos | --ho)
1010     ac_prev=host_alias ;;
1011   -host=* | --host=* | --hos=* | --ho=*)
1012     host_alias=$ac_optarg ;;
1013
1014   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015     ac_prev=htmldir ;;
1016   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017   | --ht=*)
1018     htmldir=$ac_optarg ;;
1019
1020   -includedir | --includedir | --includedi | --included | --include \
1021   | --includ | --inclu | --incl | --inc)
1022     ac_prev=includedir ;;
1023   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024   | --includ=* | --inclu=* | --incl=* | --inc=*)
1025     includedir=$ac_optarg ;;
1026
1027   -infodir | --infodir | --infodi | --infod | --info | --inf)
1028     ac_prev=infodir ;;
1029   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030     infodir=$ac_optarg ;;
1031
1032   -libdir | --libdir | --libdi | --libd)
1033     ac_prev=libdir ;;
1034   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035     libdir=$ac_optarg ;;
1036
1037   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038   | --libexe | --libex | --libe)
1039     ac_prev=libexecdir ;;
1040   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041   | --libexe=* | --libex=* | --libe=*)
1042     libexecdir=$ac_optarg ;;
1043
1044   -localedir | --localedir | --localedi | --localed | --locale)
1045     ac_prev=localedir ;;
1046   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047     localedir=$ac_optarg ;;
1048
1049   -localstatedir | --localstatedir | --localstatedi | --localstated \
1050   | --localstate | --localstat | --localsta | --localst | --locals)
1051     ac_prev=localstatedir ;;
1052   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054     localstatedir=$ac_optarg ;;
1055
1056   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057     ac_prev=mandir ;;
1058   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059     mandir=$ac_optarg ;;
1060
1061   -nfp | --nfp | --nf)
1062     # Obsolete; use --without-fp.
1063     with_fp=no ;;
1064
1065   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066   | --no-cr | --no-c | -n)
1067     no_create=yes ;;
1068
1069   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071     no_recursion=yes ;;
1072
1073   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075   | --oldin | --oldi | --old | --ol | --o)
1076     ac_prev=oldincludedir ;;
1077   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080     oldincludedir=$ac_optarg ;;
1081
1082   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083     ac_prev=prefix ;;
1084   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085     prefix=$ac_optarg ;;
1086
1087   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088   | --program-pre | --program-pr | --program-p)
1089     ac_prev=program_prefix ;;
1090   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092     program_prefix=$ac_optarg ;;
1093
1094   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095   | --program-suf | --program-su | --program-s)
1096     ac_prev=program_suffix ;;
1097   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099     program_suffix=$ac_optarg ;;
1100
1101   -program-transform-name | --program-transform-name \
1102   | --program-transform-nam | --program-transform-na \
1103   | --program-transform-n | --program-transform- \
1104   | --program-transform | --program-transfor \
1105   | --program-transfo | --program-transf \
1106   | --program-trans | --program-tran \
1107   | --progr-tra | --program-tr | --program-t)
1108     ac_prev=program_transform_name ;;
1109   -program-transform-name=* | --program-transform-name=* \
1110   | --program-transform-nam=* | --program-transform-na=* \
1111   | --program-transform-n=* | --program-transform-=* \
1112   | --program-transform=* | --program-transfor=* \
1113   | --program-transfo=* | --program-transf=* \
1114   | --program-trans=* | --program-tran=* \
1115   | --progr-tra=* | --program-tr=* | --program-t=*)
1116     program_transform_name=$ac_optarg ;;
1117
1118   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119     ac_prev=pdfdir ;;
1120   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121     pdfdir=$ac_optarg ;;
1122
1123   -psdir | --psdir | --psdi | --psd | --ps)
1124     ac_prev=psdir ;;
1125   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126     psdir=$ac_optarg ;;
1127
1128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129   | -silent | --silent | --silen | --sile | --sil)
1130     silent=yes ;;
1131
1132   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133     ac_prev=sbindir ;;
1134   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135   | --sbi=* | --sb=*)
1136     sbindir=$ac_optarg ;;
1137
1138   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140   | --sharedst | --shareds | --shared | --share | --shar \
1141   | --sha | --sh)
1142     ac_prev=sharedstatedir ;;
1143   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146   | --sha=* | --sh=*)
1147     sharedstatedir=$ac_optarg ;;
1148
1149   -site | --site | --sit)
1150     ac_prev=site ;;
1151   -site=* | --site=* | --sit=*)
1152     site=$ac_optarg ;;
1153
1154   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155     ac_prev=srcdir ;;
1156   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157     srcdir=$ac_optarg ;;
1158
1159   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160   | --syscon | --sysco | --sysc | --sys | --sy)
1161     ac_prev=sysconfdir ;;
1162   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164     sysconfdir=$ac_optarg ;;
1165
1166   -target | --target | --targe | --targ | --tar | --ta | --t)
1167     ac_prev=target_alias ;;
1168   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169     target_alias=$ac_optarg ;;
1170
1171   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172     verbose=yes ;;
1173
1174   -version | --version | --versio | --versi | --vers | -V)
1175     ac_init_version=: ;;
1176
1177   -with-* | --with-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=\$ac_optarg ;;
1192
1193   -without-* | --without-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=no ;;
1208
1209   --x)
1210     # Obsolete; use --with-x.
1211     with_x=yes ;;
1212
1213   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214   | --x-incl | --x-inc | --x-in | --x-i)
1215     ac_prev=x_includes ;;
1216   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218     x_includes=$ac_optarg ;;
1219
1220   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222     ac_prev=x_libraries ;;
1223   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225     x_libraries=$ac_optarg ;;
1226
1227   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229     ;;
1230
1231   *=*)
1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233     # Reject names that are not valid shell variable names.
1234     case $ac_envvar in #(
1235       '' | [0-9]* | *[!_$as_cr_alnum]* )
1236       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237     esac
1238     eval $ac_envvar=\$ac_optarg
1239     export $ac_envvar ;;
1240
1241   *)
1242     # FIXME: should be removed in autoconf 3.0.
1243     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247     ;;
1248
1249   esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254   as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258   case $enable_option_checking in
1259     no) ;;
1260     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262   esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267                 datadir sysconfdir sharedstatedir localstatedir includedir \
1268                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269                 libdir localedir mandir
1270 do
1271   eval ac_val=\$$ac_var
1272   # Remove trailing slashes.
1273   case $ac_val in
1274     */ )
1275       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276       eval $ac_var=\$ac_val;;
1277   esac
1278   # Be sure to have absolute directory names.
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295   if test "x$build_alias" = x; then
1296     cross_compiling=maybe
1297     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1298     If a cross compiler is detected then cross compile mode will be used" >&2
1299   elif test "x$build_alias" != "x$host_alias"; then
1300     cross_compiling=yes
1301   fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313   as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315   as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320   ac_srcdir_defaulted=yes
1321   # Try the directory containing this script, then the parent directory.
1322   ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324          X"$as_myself" : 'X\(//\)[^/]' \| \
1325          X"$as_myself" : 'X\(//\)$' \| \
1326          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)[^/].*/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\).*/{
1341             s//\1/
1342             q
1343           }
1344           s/.*/./; q'`
1345   srcdir=$ac_confdir
1346   if test ! -r "$srcdir/$ac_unique_file"; then
1347     srcdir=..
1348   fi
1349 else
1350   ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 fi
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359         pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362   srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_env_${ac_var}_value=\$${ac_var}
1373   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381   # Omit some internal or obsolete options to make the list less imposing.
1382   # This message is too long to be a string in the A/UX 3.1 sh.
1383   cat <<_ACEOF
1384 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394   -h, --help              display this help and exit
1395       --help=short        display options specific to this package
1396       --help=recursive    display the short help of all the included packages
1397   -V, --version           display version information and exit
1398   -q, --quiet, --silent   do not print \`checking ...' messages
1399       --cache-file=FILE   cache test results in FILE [disabled]
1400   -C, --config-cache      alias for \`--cache-file=config.cache'
1401   -n, --no-create         do not create output files
1402       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405   --prefix=PREFIX         install architecture-independent files in PREFIX
1406                           [$ac_default_prefix]
1407   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                           [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418   --bindir=DIR            user executables [EPREFIX/bin]
1419   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420   --libexecdir=DIR        program executables [EPREFIX/libexec]
1421   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424   --libdir=DIR            object code libraries [EPREFIX/lib]
1425   --includedir=DIR        C header files [PREFIX/include]
1426   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR           info documentation [DATAROOTDIR/info]
1430   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR            man documentation [DATAROOTDIR/man]
1432   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1433   --htmldir=DIR           html documentation [DOCDIR]
1434   --dvidir=DIR            dvi documentation [DOCDIR]
1435   --pdfdir=DIR            pdf documentation [DOCDIR]
1436   --psdir=DIR             ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 Program names:
1442   --program-prefix=PREFIX            prepend PREFIX to installed program names
1443   --program-suffix=SUFFIX            append SUFFIX to installed program names
1444   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446 System types:
1447   --build=BUILD     configure for building on BUILD [guessed]
1448   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449   --target=TARGET   configure for building compilers for TARGET [HOST]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454   case $ac_init_help in
1455      short | recursive ) echo "Configuration of libffi 3.0.11:";;
1456    esac
1457   cat <<\_ACEOF
1458
1459 Optional Features:
1460   --disable-option-checking  ignore unrecognized --enable/--with options
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --disable-builddir      disable automatic build in subdir of sources
1464
1465   --disable-dependency-tracking  speeds up one-time build
1466   --enable-dependency-tracking   do not reject slow dependency extractors
1467   --enable-shared[=PKGS]  build shared libraries [default=yes]
1468   --enable-static[=PKGS]  build static libraries [default=yes]
1469   --enable-fast-install[=PKGS]
1470                           optimize for fast installation [default=yes]
1471   --disable-libtool-lock  avoid locking (might break parallel builds)
1472   --enable-portable-binary
1473                           disable compiler optimizations that would produce
1474                           unportable binaries
1475   --enable-maintainer-mode  enable make rules and dependencies not useful
1476                           (and sometimes confusing) to the casual installer
1477   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1478   --enable-debug          debugging mode
1479   --disable-structs       omit code for struct support
1480   --disable-raw-api       make the raw api unavailable
1481   --enable-purify-safety  purify-safe mode
1482
1483 Optional Packages:
1484   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486   --with-pic              try to use only PIC/non-PIC objects [default=use
1487                           both]
1488   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489   --with-sysroot=DIR Search for dependent libraries within DIR
1490                         (or the compiler's sysroot if not specified).
1491   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1492                           instead of guessing
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   CCAS        assembler compiler command (defaults to CC)
1503   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1504   CPP         C preprocessor
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <http://github.com/atgreen/libffi/issues>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515   # If there are subdirs, report their specific --help.
1516   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517     test -d "$ac_dir" ||
1518       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519       continue
1520     ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526   # A ".." for each directory in $ac_dir_suffix.
1527   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528   case $ac_top_builddir_sub in
1529   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531   esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539   .)  # We are building in place.
1540     ac_srcdir=.
1541     ac_top_srcdir=$ac_top_builddir_sub
1542     ac_abs_top_srcdir=$ac_pwd ;;
1543   [\\/]* | ?:[\\/]* )  # Absolute name.
1544     ac_srcdir=$srcdir$ac_dir_suffix;
1545     ac_top_srcdir=$srcdir
1546     ac_abs_top_srcdir=$srcdir ;;
1547   *) # Relative name.
1548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549     ac_top_srcdir=$ac_top_build_prefix$srcdir
1550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554     cd "$ac_dir" || { ac_status=$?; continue; }
1555     # Check for guested configure.
1556     if test -f "$ac_srcdir/configure.gnu"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559     elif test -f "$ac_srcdir/configure"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure" --help=recursive
1562     else
1563       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564     fi || ac_status=$?
1565     cd "$ac_pwd" || { ac_status=$?; break; }
1566   done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571   cat <<\_ACEOF
1572 libffi configure 3.0.11
1573 generated by GNU Autoconf 2.68
1574
1575 Copyright (C) 2010 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579   exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   rm -f conftest.$ac_objext
1593   if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_compile") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } && {
1609          test -z "$ac_c_werror_flag" ||
1610          test ! -s conftest.err
1611        } && test -s conftest.$ac_objext; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617         ac_retval=1
1618 fi
1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620   as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   rm -f conftest.$ac_objext conftest$ac_exeext
1631   if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_link") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && {
1647          test -z "$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        } && test -s conftest$ac_exeext && {
1650          test "$cross_compiling" = yes ||
1651          $as_test_x conftest$ac_exeext
1652        }; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658         ac_retval=1
1659 fi
1660   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662   # interfere with the next link command; also delete a directory that is
1663   # left behind by Apple's compiler.  We do this before executing the actions.
1664   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666   as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_link
1669
1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists and can be compiled using the include files in
1673 # INCLUDES, setting the cache variable VAR accordingly.
1674 ac_fn_c_check_header_compile ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680   $as_echo_n "(cached) " >&6
1681 else
1682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688   eval "$3=yes"
1689 else
1690   eval "$3=no"
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 fi
1694 eval ac_res=\$$3
1695                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1697   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1699 } # ac_fn_c_check_header_compile
1700
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715   ac_status=$?
1716   if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720   fi
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } > conftest.i && {
1723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724          test ! -s conftest.err
1725        }; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731     ac_retval=1
1732 fi
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_cpp
1737
1738 # ac_fn_c_try_run LINENO
1739 # ----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741 # that executables *can* be run.
1742 ac_fn_c_try_run ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_link") 2>&5
1753   ac_status=$?
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756   { { case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_try") 2>&5
1763   ac_status=$?
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; }; }; then :
1766   ac_retval=0
1767 else
1768   $as_echo "$as_me: program exited with status $ac_status" >&5
1769        $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772        ac_retval=$ac_status
1773 fi
1774   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776   as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_run
1779
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789   $as_echo_n "(cached) " >&6
1790 else
1791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1795 #define $2 innocuous_$2
1796
1797 /* System header to define __stub macros and hopefully few prototypes,
1798     which can conflict with char $2 (); below.
1799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800     <limits.h> exists even on freestanding compilers.  */
1801
1802 #ifdef __STDC__
1803 # include <limits.h>
1804 #else
1805 # include <assert.h>
1806 #endif
1807
1808 #undef $2
1809
1810 /* Override any GCC internal prototype to avoid an error.
1811    Use char because int might match the return type of a GCC
1812    builtin and then its argument prototype would still apply.  */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 ();
1817 /* The GNU C library defines this for functions which it implements
1818     to always fail with ENOSYS.  Some functions are actually named
1819     something starting with __ and the normal name is an alias.  */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1823
1824 int
1825 main ()
1826 {
1827 return $2 ();
1828   ;
1829   return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"; then :
1833   eval "$3=yes"
1834 else
1835   eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext \
1838     conftest$ac_exeext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_func
1846
1847 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1850 # the include files in INCLUDES and setting the cache variable VAR
1851 # accordingly.
1852 ac_fn_c_check_header_mongrel ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   if eval \${$3+:} false; then :
1856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859   $as_echo_n "(cached) " >&6
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 else
1865   # Is the header compilable?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1867 $as_echo_n "checking $2 usability... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874   ac_header_compiler=yes
1875 else
1876   ac_header_compiler=no
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1880 $as_echo "$ac_header_compiler" >&6; }
1881
1882 # Is the header present?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1884 $as_echo_n "checking $2 presence... " >&6; }
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_cpp "$LINENO"; then :
1890   ac_header_preproc=yes
1891 else
1892   ac_header_preproc=no
1893 fi
1894 rm -f conftest.err conftest.i conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1896 $as_echo "$ac_header_preproc" >&6; }
1897
1898 # So?  What about this header?
1899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900   yes:no: )
1901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1902 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905     ;;
1906   no:yes:* )
1907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1908 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1910 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1912 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1914 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ( $as_echo "## ------------------------------------------------------ ##
1918 ## Report this to http://github.com/atgreen/libffi/issues ##
1919 ## ------------------------------------------------------ ##"
1920      ) | sed "s/^/$as_me: WARNING:     /" >&2
1921     ;;
1922 esac
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   eval "$3=\$ac_header_compiler"
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 fi
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_header_mongrel
1937
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   eval "$3=no"
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 int
1955 main ()
1956 {
1957 if (sizeof ($2))
1958          return 0;
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof (($2)))
1971             return 0;
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977
1978 else
1979   eval "$3=yes"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_type
1991
1992 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1993 # --------------------------------------------
1994 # Tries to find the compile-time value of EXPR in a program that includes
1995 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1996 # computed
1997 ac_fn_c_compute_int ()
1998 {
1999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000   if test "$cross_compiling" = yes; then
2001     # Depending upon the size, compute the lo and hi bounds.
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 int
2006 main ()
2007 {
2008 static int test_array [1 - 2 * !(($2) >= 0)];
2009 test_array [0] = 0
2010
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   ac_lo=0 ac_mid=0
2017   while :; do
2018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 int
2022 main ()
2023 {
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 test_array [0] = 0
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   ac_hi=$ac_mid; break
2033 else
2034   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2035                         if test $ac_lo -le $ac_mid; then
2036                           ac_lo= ac_hi=
2037                           break
2038                         fi
2039                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042   done
2043 else
2044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h.  */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) < 0)];
2051 test_array [0] = 0
2052
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058   ac_hi=-1 ac_mid=-1
2059   while :; do
2060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 int
2064 main ()
2065 {
2066 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2067 test_array [0] = 0
2068
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074   ac_lo=$ac_mid; break
2075 else
2076   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2077                         if test $ac_mid -le $ac_hi; then
2078                           ac_lo= ac_hi=
2079                           break
2080                         fi
2081                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084   done
2085 else
2086   ac_lo= ac_hi=
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 # Binary search between lo and hi bounds.
2092 while test "x$ac_lo" != "x$ac_hi"; do
2093   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 test_array [0] = 0
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   ac_hi=$ac_mid
2109 else
2110   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 case $ac_lo in #((
2115 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2116 '') ac_retval=1 ;;
2117 esac
2118   else
2119     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 static long int longval () { return $2; }
2123 static unsigned long int ulongval () { return $2; }
2124 #include <stdio.h>
2125 #include <stdlib.h>
2126 int
2127 main ()
2128 {
2129
2130   FILE *f = fopen ("conftest.val", "w");
2131   if (! f)
2132     return 1;
2133   if (($2) < 0)
2134     {
2135       long int i = longval ();
2136       if (i != ($2))
2137         return 1;
2138       fprintf (f, "%ld", i);
2139     }
2140   else
2141     {
2142       unsigned long int i = ulongval ();
2143       if (i != ($2))
2144         return 1;
2145       fprintf (f, "%lu", i);
2146     }
2147   /* Do not output a trailing newline, as this causes \r\n confusion
2148      on some platforms.  */
2149   return ferror (f) || fclose (f) != 0;
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_run "$LINENO"; then :
2156   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157 else
2158   ac_retval=1
2159 fi
2160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2161   conftest.$ac_objext conftest.beam conftest.$ac_ext
2162 rm -f conftest.val
2163
2164   fi
2165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166   as_fn_set_status $ac_retval
2167
2168 } # ac_fn_c_compute_int
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2172
2173 It was created by libffi $as_me 3.0.11, which was
2174 generated by GNU Autoconf 2.68.  Invocation command line was
2175
2176   $ $0 $@
2177
2178 _ACEOF
2179 exec 5>>config.log
2180 {
2181 cat <<_ASUNAME
2182 ## --------- ##
2183 ## Platform. ##
2184 ## --------- ##
2185
2186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2191
2192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2194
2195 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2196 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2199 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2200 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2201 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2202
2203 _ASUNAME
2204
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210     $as_echo "PATH: $as_dir"
2211   done
2212 IFS=$as_save_IFS
2213
2214 } >&5
2215
2216 cat >&5 <<_ACEOF
2217
2218
2219 ## ----------- ##
2220 ## Core tests. ##
2221 ## ----------- ##
2222
2223 _ACEOF
2224
2225
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2231 ac_configure_args=
2232 ac_configure_args0=
2233 ac_configure_args1=
2234 ac_must_keep_next=false
2235 for ac_pass in 1 2
2236 do
2237   for ac_arg
2238   do
2239     case $ac_arg in
2240     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242     | -silent | --silent | --silen | --sile | --sil)
2243       continue ;;
2244     *\'*)
2245       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246     esac
2247     case $ac_pass in
2248     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249     2)
2250       as_fn_append ac_configure_args1 " '$ac_arg'"
2251       if test $ac_must_keep_next = true; then
2252         ac_must_keep_next=false # Got value, back to normal.
2253       else
2254         case $ac_arg in
2255           *=* | --config-cache | -C | -disable-* | --disable-* \
2256           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258           | -with-* | --with-* | -without-* | --without-* | --x)
2259             case "$ac_configure_args0 " in
2260               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261             esac
2262             ;;
2263           -* ) ac_must_keep_next=true ;;
2264         esac
2265       fi
2266       as_fn_append ac_configure_args " '$ac_arg'"
2267       ;;
2268     esac
2269   done
2270 done
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2273
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log.  We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280   # Save into config.log some information that might help in debugging.
2281   {
2282     echo
2283
2284     $as_echo "## ---------------- ##
2285 ## Cache variables. ##
2286 ## ---------------- ##"
2287     echo
2288     # The following way of writing the cache mishandles newlines in values,
2289 (
2290   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2291     eval ac_val=\$$ac_var
2292     case $ac_val in #(
2293     *${as_nl}*)
2294       case $ac_var in #(
2295       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297       esac
2298       case $ac_var in #(
2299       _ | IFS | as_nl) ;; #(
2300       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301       *) { eval $ac_var=; unset $ac_var;} ;;
2302       esac ;;
2303     esac
2304   done
2305   (set) 2>&1 |
2306     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2307     *${as_nl}ac_space=\ *)
2308       sed -n \
2309         "s/'\''/'\''\\\\'\'''\''/g;
2310           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311       ;; #(
2312     *)
2313       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2314       ;;
2315     esac |
2316     sort
2317 )
2318     echo
2319
2320     $as_echo "## ----------------- ##
2321 ## Output variables. ##
2322 ## ----------------- ##"
2323     echo
2324     for ac_var in $ac_subst_vars
2325     do
2326       eval ac_val=\$$ac_var
2327       case $ac_val in
2328       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329       esac
2330       $as_echo "$ac_var='\''$ac_val'\''"
2331     done | sort
2332     echo
2333
2334     if test -n "$ac_subst_files"; then
2335       $as_echo "## ------------------- ##
2336 ## File substitutions. ##
2337 ## ------------------- ##"
2338       echo
2339       for ac_var in $ac_subst_files
2340       do
2341         eval ac_val=\$$ac_var
2342         case $ac_val in
2343         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344         esac
2345         $as_echo "$ac_var='\''$ac_val'\''"
2346       done | sort
2347       echo
2348     fi
2349
2350     if test -s confdefs.h; then
2351       $as_echo "## ----------- ##
2352 ## confdefs.h. ##
2353 ## ----------- ##"
2354       echo
2355       cat confdefs.h
2356       echo
2357     fi
2358     test "$ac_signal" != 0 &&
2359       $as_echo "$as_me: caught signal $ac_signal"
2360     $as_echo "$as_me: exit $exit_status"
2361   } >&5
2362   rm -f core *.core core.conftest.* &&
2363     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364     exit $exit_status
2365 ' 0
2366 for ac_signal in 1 2 13 15; do
2367   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2368 done
2369 ac_signal=0
2370
2371 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2372 rm -f -r conftest* confdefs.h
2373
2374 $as_echo "/* confdefs.h */" > confdefs.h
2375
2376 # Predefined preprocessor variables.
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_NAME "$PACKAGE_NAME"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_URL "$PACKAGE_URL"
2400 _ACEOF
2401
2402
2403 # Let the site file select an alternate cache file if it wants to.
2404 # Prefer an explicitly selected file to automatically selected ones.
2405 ac_site_file1=NONE
2406 ac_site_file2=NONE
2407 if test -n "$CONFIG_SITE"; then
2408   # We do not want a PATH search for config.site.
2409   case $CONFIG_SITE in #((
2410     -*)  ac_site_file1=./$CONFIG_SITE;;
2411     */*) ac_site_file1=$CONFIG_SITE;;
2412     *)   ac_site_file1=./$CONFIG_SITE;;
2413   esac
2414 elif test "x$prefix" != xNONE; then
2415   ac_site_file1=$prefix/share/config.site
2416   ac_site_file2=$prefix/etc/config.site
2417 else
2418   ac_site_file1=$ac_default_prefix/share/config.site
2419   ac_site_file2=$ac_default_prefix/etc/config.site
2420 fi
2421 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422 do
2423   test "x$ac_site_file" = xNONE && continue
2424   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2425     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2426 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2427     sed 's/^/| /' "$ac_site_file" >&5
2428     . "$ac_site_file" \
2429       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 as_fn_error $? "failed to load site script $ac_site_file
2432 See \`config.log' for more details" "$LINENO" 5; }
2433   fi
2434 done
2435
2436 if test -r "$cache_file"; then
2437   # Some versions of bash will fail to source /dev/null (special files
2438   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2439   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2440     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442     case $cache_file in
2443       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444       *)                      . "./$cache_file";;
2445     esac
2446   fi
2447 else
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449 $as_echo "$as_me: creating cache $cache_file" >&6;}
2450   >$cache_file
2451 fi
2452
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458   eval ac_new_set=\$ac_env_${ac_var}_set
2459   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460   eval ac_new_val=\$ac_env_${ac_var}_value
2461   case $ac_old_set,$ac_new_set in
2462     set,)
2463       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465       ac_cache_corrupted=: ;;
2466     ,set)
2467       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469       ac_cache_corrupted=: ;;
2470     ,);;
2471     *)
2472       if test "x$ac_old_val" != "x$ac_new_val"; then
2473         # differences in whitespace do not lead to failure.
2474         ac_old_val_w=`echo x $ac_old_val`
2475         ac_new_val_w=`echo x $ac_new_val`
2476         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479           ac_cache_corrupted=:
2480         else
2481           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483           eval $ac_var=\$ac_old_val
2484         fi
2485         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2486 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2487         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2489       fi;;
2490   esac
2491   # Pass precious variables to config.status.
2492   if test "$ac_new_set" = set; then
2493     case $ac_new_val in
2494     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495     *) ac_arg=$ac_var=$ac_new_val ;;
2496     esac
2497     case " $ac_configure_args " in
2498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2499       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500     esac
2501   fi
2502 done
2503 if $ac_cache_corrupted; then
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509 fi
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520
2521 ac_config_headers="$ac_config_headers fficonfig.h"
2522
2523
2524 ac_aux_dir=
2525 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2526   if test -f "$ac_dir/install-sh"; then
2527     ac_aux_dir=$ac_dir
2528     ac_install_sh="$ac_aux_dir/install-sh -c"
2529     break
2530   elif test -f "$ac_dir/install.sh"; then
2531     ac_aux_dir=$ac_dir
2532     ac_install_sh="$ac_aux_dir/install.sh -c"
2533     break
2534   elif test -f "$ac_dir/shtool"; then
2535     ac_aux_dir=$ac_dir
2536     ac_install_sh="$ac_aux_dir/shtool install -c"
2537     break
2538   fi
2539 done
2540 if test -z "$ac_aux_dir"; then
2541   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2542 fi
2543
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2550 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2551
2552
2553 # Make sure we can run config.sub.
2554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2555   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2558 $as_echo_n "checking build system type... " >&6; }
2559 if ${ac_cv_build+:} false; then :
2560   $as_echo_n "(cached) " >&6
2561 else
2562   ac_build_alias=$build_alias
2563 test "x$ac_build_alias" = x &&
2564   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2565 test "x$ac_build_alias" = x &&
2566   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2568   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2569
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2572 $as_echo "$ac_cv_build" >&6; }
2573 case $ac_cv_build in
2574 *-*-*) ;;
2575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2576 esac
2577 build=$ac_cv_build
2578 ac_save_IFS=$IFS; IFS='-'
2579 set x $ac_cv_build
2580 shift
2581 build_cpu=$1
2582 build_vendor=$2
2583 shift; shift
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2586 build_os=$*
2587 IFS=$ac_save_IFS
2588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2589
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2592 $as_echo_n "checking host system type... " >&6; }
2593 if ${ac_cv_host+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test "x$host_alias" = x; then
2597   ac_cv_host=$ac_cv_build
2598 else
2599   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2600     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2601 fi
2602
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2605 $as_echo "$ac_cv_host" >&6; }
2606 case $ac_cv_host in
2607 *-*-*) ;;
2608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2609 esac
2610 host=$ac_cv_host
2611 ac_save_IFS=$IFS; IFS='-'
2612 set x $ac_cv_host
2613 shift
2614 host_cpu=$1
2615 host_vendor=$2
2616 shift; shift
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2619 host_os=$*
2620 IFS=$ac_save_IFS
2621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2622
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2625 $as_echo_n "checking target system type... " >&6; }
2626 if ${ac_cv_target+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   if test "x$target_alias" = x; then
2630   ac_cv_target=$ac_cv_host
2631 else
2632   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2633     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2634 fi
2635
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2638 $as_echo "$ac_cv_target" >&6; }
2639 case $ac_cv_target in
2640 *-*-*) ;;
2641 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2642 esac
2643 target=$ac_cv_target
2644 ac_save_IFS=$IFS; IFS='-'
2645 set x $ac_cv_target
2646 shift
2647 target_cpu=$1
2648 target_vendor=$2
2649 shift; shift
2650 # Remember, the first character of IFS is used to create $*,
2651 # except with old shells:
2652 target_os=$*
2653 IFS=$ac_save_IFS
2654 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2655
2656
2657 # The aliases save the names the user supplied, while $host etc.
2658 # will get canonicalized.
2659 test -n "$target_alias" &&
2660   test "$program_prefix$program_suffix$program_transform_name" = \
2661     NONENONEs,x,x, &&
2662   program_prefix=${target_alias}-
2663
2664 target_alias=${target_alias-$host_alias}
2665
2666 . ${srcdir}/configure.host
2667
2668
2669    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2670    if test "${ac_configure_args+set}" != "set" ; then
2671       ac_configure_args=
2672       for ac_arg in ${1+"$@"}; do
2673          ac_configure_args="$ac_configure_args '$ac_arg'"
2674       done
2675    fi
2676
2677 # expand $ac_aux_dir to an absolute path
2678 am_aux_dir=`cd $ac_aux_dir && pwd`
2679
2680
2681 ax_enable_builddir="."
2682 # Check whether --enable-builddir was given.
2683 if test "${enable_builddir+set}" = set; then :
2684   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2685 else
2686   ax_enable_builddir="auto"
2687 fi
2688
2689 if test ".$ac_srcdir_defaulted" != ".no" ; then
2690 if test ".$srcdir" = ".." ; then
2691   if test -f config.status ; then
2692     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2693 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2694   else
2695     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2696     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2697     test ".$TARGET" = "." && TARGET="$target"
2698     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2699     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2700       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2701       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2702       cd $ax_enable_builddir
2703       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2704         rm conftest.tmp
2705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2706 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2707       else
2708         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2709       fi
2710       srcdir=`echo "$ax_enable_builddir" |
2711               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2712       # going to restart from subdirectory location
2713       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2714       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2715       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2716       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2718 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2719       case "$0" in # restart
2720        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2721        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2722       esac ; exit $?
2723     fi
2724   fi
2725 fi fi
2726 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2727 # Extract the first word of "gsed sed", so it can be a program name with args.
2728 set dummy gsed sed; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   case $ax_enable_builddir_sed in
2735   [\\/]* | ?:[\\/]*)
2736   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2737   ;;
2738   *)
2739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744     for ac_exec_ext in '' $ac_executable_extensions; do
2745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751   done
2752 IFS=$as_save_IFS
2753
2754   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2755   ;;
2756 esac
2757 fi
2758 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2759 if test -n "$ax_enable_builddir_sed"; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2761 $as_echo "$ax_enable_builddir_sed" >&6; }
2762 else
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767
2768 ax_enable_builddir_auxdir="$am_aux_dir"
2769 ac_config_commands="$ac_config_commands buildir"
2770
2771
2772 am__api_version='1.11'
2773
2774 # Find a good install program.  We prefer a C program (faster),
2775 # so one script is as good as another.  But avoid the broken or
2776 # incompatible versions:
2777 # SysV /etc/install, /usr/sbin/install
2778 # SunOS /usr/etc/install
2779 # IRIX /sbin/install
2780 # AIX /bin/install
2781 # AmigaOS /C/install, which installs bootblocks on floppy discs
2782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2785 # OS/2's system install, which has a completely different semantic
2786 # ./install, which can be erroneously created by make from ./install.sh.
2787 # Reject install programs that cannot install multiple files.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2789 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2790 if test -z "$INSTALL"; then
2791 if ${ac_cv_path_install+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799     # Account for people who put trailing slashes in PATH elements.
2800 case $as_dir/ in #((
2801   ./ | .// | /[cC]/* | \
2802   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2803   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2804   /usr/ucb/* ) ;;
2805   *)
2806     # OSF1 and SCO ODT 3.0 have their own names for install.
2807     # Don't use installbsd from OSF since it installs stuff as root
2808     # by default.
2809     for ac_prog in ginstall scoinst install; do
2810       for ac_exec_ext in '' $ac_executable_extensions; do
2811         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2812           if test $ac_prog = install &&
2813             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814             # AIX install.  It has an incompatible calling convention.
2815             :
2816           elif test $ac_prog = install &&
2817             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818             # program-specific install script used by HP pwplus--don't use.
2819             :
2820           else
2821             rm -rf conftest.one conftest.two conftest.dir
2822             echo one > conftest.one
2823             echo two > conftest.two
2824             mkdir conftest.dir
2825             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2826               test -s conftest.one && test -s conftest.two &&
2827               test -s conftest.dir/conftest.one &&
2828               test -s conftest.dir/conftest.two
2829             then
2830               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2831               break 3
2832             fi
2833           fi
2834         fi
2835       done
2836     done
2837     ;;
2838 esac
2839
2840   done
2841 IFS=$as_save_IFS
2842
2843 rm -rf conftest.one conftest.two conftest.dir
2844
2845 fi
2846   if test "${ac_cv_path_install+set}" = set; then
2847     INSTALL=$ac_cv_path_install
2848   else
2849     # As a last resort, use the slow shell script.  Don't cache a
2850     # value for INSTALL within a source directory, because that will
2851     # break other packages using the cache if that directory is
2852     # removed, or if the value is a relative name.
2853     INSTALL=$ac_install_sh
2854   fi
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2857 $as_echo "$INSTALL" >&6; }
2858
2859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2860 # It thinks the first close brace ends the variable substitution.
2861 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2862
2863 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2864
2865 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2868 $as_echo_n "checking whether build environment is sane... " >&6; }
2869 # Just in case
2870 sleep 1
2871 echo timestamp > conftest.file
2872 # Reject unsafe characters in $srcdir or the absolute working directory
2873 # name.  Accept space and tab only in the latter.
2874 am_lf='
2875 '
2876 case `pwd` in
2877   *[\\\"\#\$\&\'\`$am_lf]*)
2878     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2879 esac
2880 case $srcdir in
2881   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2882     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2883 esac
2884
2885 # Do `set' in a subshell so we don't clobber the current shell's
2886 # arguments.  Must try -L first in case configure is actually a
2887 # symlink; some systems play weird games with the mod time of symlinks
2888 # (eg FreeBSD returns the mod time of the symlink's containing
2889 # directory).
2890 if (
2891    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2892    if test "$*" = "X"; then
2893       # -L didn't work.
2894       set X `ls -t "$srcdir/configure" conftest.file`
2895    fi
2896    rm -f conftest.file
2897    if test "$*" != "X $srcdir/configure conftest.file" \
2898       && test "$*" != "X conftest.file $srcdir/configure"; then
2899
2900       # If neither matched, then we have a broken ls.  This can happen
2901       # if, for instance, CONFIG_SHELL is bash and it inherits a
2902       # broken ls alias from the environment.  This has actually
2903       # happened.  Such a system could not be considered "sane".
2904       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2905 alias in your environment" "$LINENO" 5
2906    fi
2907
2908    test "$2" = conftest.file
2909    )
2910 then
2911    # Ok.
2912    :
2913 else
2914    as_fn_error $? "newly created file is older than distributed files!
2915 Check your system clock" "$LINENO" 5
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2918 $as_echo "yes" >&6; }
2919 test "$program_prefix" != NONE &&
2920   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2921 # Use a double $ so make ignores it.
2922 test "$program_suffix" != NONE &&
2923   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2924 # Double any \ or $.
2925 # By default was `s,x,x', remove it if useless.
2926 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2927 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2928
2929 if test x"${MISSING+set}" != xset; then
2930   case $am_aux_dir in
2931   *\ * | *\     *)
2932     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2933   *)
2934     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2935   esac
2936 fi
2937 # Use eval to expand $SHELL
2938 if eval "$MISSING --run true"; then
2939   am_missing_run="$MISSING --run "
2940 else
2941   am_missing_run=
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2943 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2944 fi
2945
2946 if test x"${install_sh}" != xset; then
2947   case $am_aux_dir in
2948   *\ * | *\     *)
2949     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2950   *)
2951     install_sh="\${SHELL} $am_aux_dir/install-sh"
2952   esac
2953 fi
2954
2955 # Installed binaries are usually stripped using `strip' when the user
2956 # run `make install-strip'.  However `strip' might not be the right
2957 # tool to use in cross-compilation environments, therefore Automake
2958 # will honor the `STRIP' environment variable to overrule this program.
2959 if test "$cross_compiling" != no; then
2960   if test -n "$ac_tool_prefix"; then
2961   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}strip; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_STRIP+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$STRIP"; then
2969   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983   done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 STRIP=$ac_cv_prog_STRIP
2989 if test -n "$STRIP"; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2991 $as_echo "$STRIP" >&6; }
2992 else
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998 fi
2999 if test -z "$ac_cv_prog_STRIP"; then
3000   ac_ct_STRIP=$STRIP
3001   # Extract the first word of "strip", so it can be a program name with args.
3002 set dummy strip; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$ac_ct_STRIP"; then
3009   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     ac_cv_prog_ac_ct_STRIP="strip"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3029 if test -n "$ac_ct_STRIP"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3031 $as_echo "$ac_ct_STRIP" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037   if test "x$ac_ct_STRIP" = x; then
3038     STRIP=":"
3039   else
3040     case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046     STRIP=$ac_ct_STRIP
3047   fi
3048 else
3049   STRIP="$ac_cv_prog_STRIP"
3050 fi
3051
3052 fi
3053 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3054
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3056 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3057 if test -z "$MKDIR_P"; then
3058   if ${ac_cv_path_mkdir+:} false; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3063 do
3064   IFS=$as_save_IFS
3065   test -z "$as_dir" && as_dir=.
3066     for ac_prog in mkdir gmkdir; do
3067          for ac_exec_ext in '' $ac_executable_extensions; do
3068            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3069            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3070              'mkdir (GNU coreutils) '* | \
3071              'mkdir (coreutils) '* | \
3072              'mkdir (fileutils) '4.1*)
3073                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3074                break 3;;
3075            esac
3076          done
3077        done
3078   done
3079 IFS=$as_save_IFS
3080
3081 fi
3082
3083   test -d ./--version && rmdir ./--version
3084   if test "${ac_cv_path_mkdir+set}" = set; then
3085     MKDIR_P="$ac_cv_path_mkdir -p"
3086   else
3087     # As a last resort, use the slow shell script.  Don't cache a
3088     # value for MKDIR_P within a source directory, because that will
3089     # break other packages using the cache if that directory is
3090     # removed, or if the value is a relative name.
3091     MKDIR_P="$ac_install_sh -d"
3092   fi
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3095 $as_echo "$MKDIR_P" >&6; }
3096
3097 mkdir_p="$MKDIR_P"
3098 case $mkdir_p in
3099   [\\/$]* | ?:[\\/]*) ;;
3100   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3101 esac
3102
3103 for ac_prog in gawk mawk nawk awk
3104 do
3105   # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_AWK+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$AWK"; then
3113   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120     for ac_exec_ext in '' $ac_executable_extensions; do
3121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122     ac_cv_prog_AWK="$ac_prog"
3123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127   done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 AWK=$ac_cv_prog_AWK
3133 if test -n "$AWK"; then
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3135 $as_echo "$AWK" >&6; }
3136 else
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142   test -n "$AWK" && break
3143 done
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3146 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147 set x ${MAKE-make}
3148 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3149 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3150   $as_echo_n "(cached) " >&6
3151 else
3152   cat >conftest.make <<\_ACEOF
3153 SHELL = /bin/sh
3154 all:
3155         @echo '@@@%%%=$(MAKE)=@@@%%%'
3156 _ACEOF
3157 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3158 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159   *@@@%%%=?*=@@@%%%*)
3160     eval ac_cv_prog_make_${ac_make}_set=yes;;
3161   *)
3162     eval ac_cv_prog_make_${ac_make}_set=no;;
3163 esac
3164 rm -f conftest.make
3165 fi
3166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168 $as_echo "yes" >&6; }
3169   SET_MAKE=
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173   SET_MAKE="MAKE=${MAKE-make}"
3174 fi
3175
3176 rm -rf .tst 2>/dev/null
3177 mkdir .tst 2>/dev/null
3178 if test -d .tst; then
3179   am__leading_dot=.
3180 else
3181   am__leading_dot=_
3182 fi
3183 rmdir .tst 2>/dev/null
3184
3185 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3186   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3187   # is not polluted with repeated "-I."
3188   am__isrc=' -I$(srcdir)'
3189   # test to see if srcdir already configured
3190   if test -f $srcdir/config.status; then
3191     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3192   fi
3193 fi
3194
3195 # test whether we have cygpath
3196 if test -z "$CYGPATH_W"; then
3197   if (cygpath --version) >/dev/null 2>/dev/null; then
3198     CYGPATH_W='cygpath -w'
3199   else
3200     CYGPATH_W=echo
3201   fi
3202 fi
3203
3204
3205 # Define the identity of the package.
3206  PACKAGE='libffi'
3207  VERSION='3.0.11'
3208
3209
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE "$PACKAGE"
3212 _ACEOF
3213
3214
3215 cat >>confdefs.h <<_ACEOF
3216 #define VERSION "$VERSION"
3217 _ACEOF
3218
3219 # Some tools Automake needs.
3220
3221 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222
3223
3224 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225
3226
3227 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228
3229
3230 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231
3232
3233 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3234
3235 # We need awk for the "check" target.  The system "awk" is bad on
3236 # some platforms.
3237 # Always define AMTAR for backward compatibility.  Yes, it's still used
3238 # in the wild :-(  We should find a proper way to deprecate it ...
3239 AMTAR='$${TAR-tar}'
3240
3241 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3242
3243
3244
3245
3246
3247
3248 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3249 # We must force CC to /not/ be precious variables; otherwise
3250 # the wrong, non-multilib-adjusted value will be used in multilibs.
3251 # As a side effect, we have to subst CFLAGS ourselves.
3252 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3253 # defaults of its own if none are provided.
3254
3255
3256
3257 save_CFLAGS=$CFLAGS
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -n "$CC"; then
3272   ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279     for ac_exec_ext in '' $ac_executable_extensions; do
3280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286   done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$ac_cv_prog_CC"; then
3303   ac_ct_CC=$CC
3304   # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$ac_ct_CC"; then
3312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321     ac_cv_prog_ac_ct_CC="gcc"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340   if test "x$ac_ct_CC" = x; then
3341     CC=""
3342   else
3343     case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349     CC=$ac_ct_CC
3350   fi
3351 else
3352   CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356           if test -n "$ac_tool_prefix"; then
3357     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362   $as_echo_n "(cached) " >&6
3363 else
3364   if test -n "$CC"; then
3365   ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372     for ac_exec_ext in '' $ac_executable_extensions; do
3373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374     ac_cv_prog_CC="${ac_tool_prefix}cc"
3375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379   done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394   fi
3395 fi
3396 if test -z "$CC"; then
3397   # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$CC"; then
3405   ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407   ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413     for ac_exec_ext in '' $ac_executable_extensions; do
3414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416        ac_prog_rejected=yes
3417        continue
3418      fi
3419     ac_cv_prog_CC="cc"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428   # We found a bogon in the path, so make sure we never use it.
3429   set dummy $ac_cv_prog_CC
3430   shift
3431   if test $# != 0; then
3432     # We chose a different compiler from the bogus one.
3433     # However, it has the same basename, so the bogon will be chosen
3434     # first if we set CC to just the basename; use the full file name.
3435     shift
3436     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437   fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453   if test -n "$ac_tool_prefix"; then
3454   for ac_prog in cl.exe
3455   do
3456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471     for ac_exec_ext in '' $ac_executable_extensions; do
3472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478   done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493     test -n "$CC" && break
3494   done
3495 fi
3496 if test -z "$CC"; then
3497   ac_ct_CC=$CC
3498   for ac_prog in cl.exe
3499 do
3500   # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test -n "$ac_ct_CC"; then
3508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515     for ac_exec_ext in '' $ac_executable_extensions; do
3516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517     ac_cv_prog_ac_ct_CC="$ac_prog"
3518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522   done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537   test -n "$ac_ct_CC" && break
3538 done
3539
3540   if test "x$ac_ct_CC" = x; then
3541     CC=""
3542   else
3543     case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549     CC=$ac_ct_CC
3550   fi
3551 fi
3552
3553 fi
3554
3555
3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details" "$LINENO" 5; }
3560
3561 # Provide some information about the compiler.
3562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563 set X $ac_compile
3564 ac_compiler=$2
3565 for ac_option in --version -v -V -qversion; do
3566   { { ac_try="$ac_compiler $ac_option >&5"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3574   ac_status=$?
3575   if test -s conftest.err; then
3576     sed '10a\
3577 ... rest of stderr output deleted ...
3578          10q' conftest.err >conftest.er1
3579     cat conftest.er1 >&5
3580   fi
3581   rm -f conftest.er1 conftest.err
3582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583   test $ac_status = 0; }
3584 done
3585
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3601 # of exeext.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605
3606 # The possible output files:
3607 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608
3609 ac_rmfiles=
3610 for ac_file in $ac_files
3611 do
3612   case $ac_file in
3613     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3615   esac
3616 done
3617 rm -f $ac_rmfiles
3618
3619 if { { ac_try="$ac_link_default"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_link_default") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }; then :
3630   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3631 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3632 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3633 # so that the user can short-circuit this test for compilers unknown to
3634 # Autoconf.
3635 for ac_file in $ac_files ''
3636 do
3637   test -f "$ac_file" || continue
3638   case $ac_file in
3639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3640         ;;
3641     [ab].out )
3642         # We found the default executable, but exeext='' is most
3643         # certainly right.
3644         break;;
3645     *.* )
3646         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3647         then :; else
3648            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649         fi
3650         # We set ac_cv_exeext here because the later test for it is not
3651         # safe: cross compilers may not add the suffix if given an `-o'
3652         # argument, so we may need to know it at that point already.
3653         # Even if this section looks crufty: it has the advantage of
3654         # actually working.
3655         break;;
3656     * )
3657         break;;
3658   esac
3659 done
3660 test "$ac_cv_exeext" = no && ac_cv_exeext=
3661
3662 else
3663   ac_file=''
3664 fi
3665 if test -z "$ac_file"; then :
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error 77 "C compiler cannot create executables
3674 See \`config.log' for more details" "$LINENO" 5; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677 $as_echo "yes" >&6; }
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3680 $as_echo_n "checking for C compiler default output file name... " >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3682 $as_echo "$ac_file" >&6; }
3683 ac_exeext=$ac_cv_exeext
3684
3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3688 $as_echo_n "checking for suffix of executables... " >&6; }
3689 if { { ac_try="$ac_link"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_link") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3702 # work properly (i.e., refer to `conftest.exe'), while it won't with
3703 # `rm'.
3704 for ac_file in conftest.exe conftest conftest.*; do
3705   test -f "$ac_file" || continue
3706   case $ac_file in
3707     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709           break;;
3710     * ) break;;
3711   esac
3712 done
3713 else
3714   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717 See \`config.log' for more details" "$LINENO" 5; }
3718 fi
3719 rm -f conftest conftest$ac_cv_exeext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721 $as_echo "$ac_cv_exeext" >&6; }
3722
3723 rm -f conftest.$ac_ext
3724 EXEEXT=$ac_cv_exeext
3725 ac_exeext=$EXEEXT
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728 #include <stdio.h>
3729 int
3730 main ()
3731 {
3732 FILE *f = fopen ("conftest.out", "w");
3733  return ferror (f) || fclose (f) != 0;
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 ac_clean_files="$ac_clean_files conftest.out"
3740 # Check that the compiler produces executables we can run.  If not, either
3741 # the compiler is broken, or we cross compile.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 $as_echo_n "checking whether we are cross compiling... " >&6; }
3744 if test "$cross_compiling" != yes; then
3745   { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752   (eval "$ac_link") 2>&5
3753   ac_status=$?
3754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755   test $ac_status = 0; }
3756   if { ac_try='./conftest$ac_cv_exeext'
3757   { { case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763   (eval "$ac_try") 2>&5
3764   ac_status=$?
3765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766   test $ac_status = 0; }; }; then
3767     cross_compiling=no
3768   else
3769     if test "$cross_compiling" = maybe; then
3770         cross_compiling=yes
3771     else
3772         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error $? "cannot run C compiled programs.
3775 If you meant to cross compile, use \`--host'.
3776 See \`config.log' for more details" "$LINENO" 5; }
3777     fi
3778   fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781 $as_echo "$cross_compiling" >&6; }
3782
3783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784 ac_clean_files=$ac_clean_files_save
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786 $as_echo_n "checking for suffix of object files... " >&6; }
3787 if ${ac_cv_objext+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.o conftest.obj
3802 if { { ac_try="$ac_compile"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809   (eval "$ac_compile") 2>&5
3810   ac_status=$?
3811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812   test $ac_status = 0; }; then :
3813   for ac_file in conftest.o conftest.obj conftest.*; do
3814   test -f "$ac_file" || continue;
3815   case $ac_file in
3816     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3817     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3818        break;;
3819   esac
3820 done
3821 else
3822   $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot compute suffix of object files: cannot compile
3828 See \`config.log' for more details" "$LINENO" 5; }
3829 fi
3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3833 $as_echo "$ac_cv_objext" >&6; }
3834 OBJEXT=$ac_cv_objext
3835 ac_objext=$OBJEXT
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3838 if ${ac_cv_c_compiler_gnu+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3843
3844 int
3845 main ()
3846 {
3847 #ifndef __GNUC__
3848        choke me
3849 #endif
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856   ac_compiler_gnu=yes
3857 else
3858   ac_compiler_gnu=no
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3865 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3866 if test $ac_compiler_gnu = yes; then
3867   GCC=yes
3868 else
3869   GCC=
3870 fi
3871 ac_test_CFLAGS=${CFLAGS+set}
3872 ac_save_CFLAGS=$CFLAGS
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3874 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3875 if ${ac_cv_prog_cc_g+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   ac_save_c_werror_flag=$ac_c_werror_flag
3879    ac_c_werror_flag=yes
3880    ac_cv_prog_cc_g=no
3881    CFLAGS="-g"
3882    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h.  */
3884
3885 int
3886 main ()
3887 {
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894   ac_cv_prog_cc_g=yes
3895 else
3896   CFLAGS=""
3897       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899
3900 int
3901 main ()
3902 {
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909
3910 else
3911   ac_c_werror_flag=$ac_save_c_werror_flag
3912          CFLAGS="-g"
3913          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h.  */
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925   ac_cv_prog_cc_g=yes
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 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932    ac_c_werror_flag=$ac_save_c_werror_flag
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3935 $as_echo "$ac_cv_prog_cc_g" >&6; }
3936 if test "$ac_test_CFLAGS" = set; then
3937   CFLAGS=$ac_save_CFLAGS
3938 elif test $ac_cv_prog_cc_g = yes; then
3939   if test "$GCC" = yes; then
3940     CFLAGS="-g -O2"
3941   else
3942     CFLAGS="-g"
3943   fi
3944 else
3945   if test "$GCC" = yes; then
3946     CFLAGS="-O2"
3947   else
3948     CFLAGS=
3949   fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3952 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3953 if ${ac_cv_prog_cc_c89+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   ac_cv_prog_cc_c89=no
3957 ac_save_CC=$CC
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960 #include <stdarg.h>
3961 #include <stdio.h>
3962 #include <sys/types.h>
3963 #include <sys/stat.h>
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3968      char **p;
3969      int i;
3970 {
3971   return p[i];
3972 }
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3974 {
3975   char *s;
3976   va_list v;
3977   va_start (v,p);
3978   s = g (p, va_arg (v,int));
3979   va_end (v);
3980   return s;
3981 }
3982
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3984    function prototypes and stuff, but not '\xHH' hex character constants.
3985    These don't provoke an error unfortunately, instead are silently treated
3986    as 'x'.  The following induces an error, until -std is added to get
3987    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3988    array size at least.  It's necessary to write '\x00'==0 to get something
3989    that's true only with -std.  */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3991
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993    inside strings and character constants.  */
3994 #define FOO(x) 'x'
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3996
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001 int argc;
4002 char **argv;
4003 int
4004 main ()
4005 {
4006 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4013 do
4014   CC="$ac_save_CC $ac_arg"
4015   if ac_fn_c_try_compile "$LINENO"; then :
4016   ac_cv_prog_cc_c89=$ac_arg
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext
4019   test "x$ac_cv_prog_cc_c89" != "xno" && break
4020 done
4021 rm -f conftest.$ac_ext
4022 CC=$ac_save_CC
4023
4024 fi
4025 # AC_CACHE_VAL
4026 case "x$ac_cv_prog_cc_c89" in
4027   x)
4028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4029 $as_echo "none needed" >&6; } ;;
4030   xno)
4031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032 $as_echo "unsupported" >&6; } ;;
4033   *)
4034     CC="$CC $ac_cv_prog_cc_c89"
4035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4036 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4037 esac
4038 if test "x$ac_cv_prog_cc_c89" != xno; then :
4039
4040 fi
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 DEPDIR="${am__leading_dot}deps"
4048
4049 ac_config_commands="$ac_config_commands depfiles"
4050
4051
4052 am_make=${MAKE-make}
4053 cat > confinc << 'END'
4054 am__doit:
4055         @echo this is the am__doit target
4056 .PHONY: am__doit
4057 END
4058 # If we don't find an include directive, just comment out the code.
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4060 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4061 am__include="#"
4062 am__quote=
4063 _am_result=none
4064 # First try GNU make style include.
4065 echo "include confinc" > confmf
4066 # Ignore all kinds of additional output from `make'.
4067 case `$am_make -s -f confmf 2> /dev/null` in #(
4068 *the\ am__doit\ target*)
4069   am__include=include
4070   am__quote=
4071   _am_result=GNU
4072   ;;
4073 esac
4074 # Now try BSD make style include.
4075 if test "$am__include" = "#"; then
4076    echo '.include "confinc"' > confmf
4077    case `$am_make -s -f confmf 2> /dev/null` in #(
4078    *the\ am__doit\ target*)
4079      am__include=.include
4080      am__quote="\""
4081      _am_result=BSD
4082      ;;
4083    esac
4084 fi
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4088 $as_echo "$_am_result" >&6; }
4089 rm -f confinc confmf
4090
4091 # Check whether --enable-dependency-tracking was given.
4092 if test "${enable_dependency_tracking+set}" = set; then :
4093   enableval=$enable_dependency_tracking;
4094 fi
4095
4096 if test "x$enable_dependency_tracking" != xno; then
4097   am_depcomp="$ac_aux_dir/depcomp"
4098   AMDEPBACKSLASH='\'
4099   am__nodep='_no'
4100 fi
4101  if test "x$enable_dependency_tracking" != xno; then
4102   AMDEP_TRUE=
4103   AMDEP_FALSE='#'
4104 else
4105   AMDEP_TRUE='#'
4106   AMDEP_FALSE=
4107 fi
4108
4109
4110
4111 depcc="$CC"   am_compiler_list=
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114 $as_echo_n "checking dependency style of $depcc... " >&6; }
4115 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119   # We make a subdir and do the tests there.  Otherwise we can end up
4120   # making bogus files that we don't know about and never remove.  For
4121   # instance it was reported that on HP-UX the gcc test will end up
4122   # making a dummy file named `D' -- because `-MD' means `put the output
4123   # in D'.
4124   rm -rf conftest.dir
4125   mkdir conftest.dir
4126   # Copy depcomp to subdir because otherwise we won't find it if we're
4127   # using a relative directory.
4128   cp "$am_depcomp" conftest.dir
4129   cd conftest.dir
4130   # We will build objects and dependencies in a subdirectory because
4131   # it helps to detect inapplicable dependency modes.  For instance
4132   # both Tru64's cc and ICC support -MD to output dependencies as a
4133   # side effect of compilation, but ICC will put the dependencies in
4134   # the current directory while Tru64 will put them in the object
4135   # directory.
4136   mkdir sub
4137
4138   am_cv_CC_dependencies_compiler_type=none
4139   if test "$am_compiler_list" = ""; then
4140      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141   fi
4142   am__universal=false
4143   case " $depcc " in #(
4144      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4145      esac
4146
4147   for depmode in $am_compiler_list; do
4148     # Setup a source with many dependencies, because some compilers
4149     # like to wrap large dependency lists on column 80 (with \), and
4150     # we should not choose a depcomp mode which is confused by this.
4151     #
4152     # We need to recreate these files for each test, as the compiler may
4153     # overwrite some of them when testing with obscure command lines.
4154     # This happens at least with the AIX C compiler.
4155     : > sub/conftest.c
4156     for i in 1 2 3 4 5 6; do
4157       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4158       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4159       # Solaris 8's {/usr,}/bin/sh.
4160       touch sub/conftst$i.h
4161     done
4162     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4163
4164     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4165     # mode.  It turns out that the SunPro C++ compiler does not properly
4166     # handle `-M -o', and we need to detect this.  Also, some Intel
4167     # versions had trouble with output in subdirs
4168     am__obj=sub/conftest.${OBJEXT-o}
4169     am__minus_obj="-o $am__obj"
4170     case $depmode in
4171     gcc)
4172       # This depmode causes a compiler race in universal mode.
4173       test "$am__universal" = false || continue
4174       ;;
4175     nosideeffect)
4176       # after this tag, mechanisms are not by side-effect, so they'll
4177       # only be used when explicitly requested
4178       if test "x$enable_dependency_tracking" = xyes; then
4179         continue
4180       else
4181         break
4182       fi
4183       ;;
4184     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4185       # This compiler won't grok `-c -o', but also, the minuso test has
4186       # not run yet.  These depmodes are late enough in the game, and
4187       # so weak that their functioning should not be impacted.
4188       am__obj=conftest.${OBJEXT-o}
4189       am__minus_obj=
4190       ;;
4191     none) break ;;
4192     esac
4193     if depmode=$depmode \
4194        source=sub/conftest.c object=$am__obj \
4195        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4196        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4197          >/dev/null 2>conftest.err &&
4198        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4199        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4200        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4201        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4202       # icc doesn't choke on unknown options, it will just issue warnings
4203       # or remarks (even with -Werror).  So we grep stderr for any message
4204       # that says an option was ignored or not supported.
4205       # When given -MP, icc 7.0 and 7.1 complain thusly:
4206       #   icc: Command line warning: ignoring option '-M'; no argument required
4207       # The diagnosis changed in icc 8.0:
4208       #   icc: Command line remark: option '-MP' not supported
4209       if (grep 'ignoring option' conftest.err ||
4210           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4211         am_cv_CC_dependencies_compiler_type=$depmode
4212         break
4213       fi
4214     fi
4215   done
4216
4217   cd ..
4218   rm -rf conftest.dir
4219 else
4220   am_cv_CC_dependencies_compiler_type=none
4221 fi
4222
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4225 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4227
4228  if
4229   test "x$enable_dependency_tracking" != xno \
4230   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4231   am__fastdepCC_TRUE=
4232   am__fastdepCC_FALSE='#'
4233 else
4234   am__fastdepCC_TRUE='#'
4235   am__fastdepCC_FALSE=
4236 fi
4237
4238
4239 CFLAGS=$save_CFLAGS
4240
4241
4242
4243
4244
4245 # By default we simply use the C compiler to build assembly code.
4246
4247 test "${CCAS+set}" = set || CCAS=$CC
4248 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4249
4250
4251
4252 depcc="$CCAS"   am_compiler_list=
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4255 $as_echo_n "checking dependency style of $depcc... " >&6; }
4256 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260   # We make a subdir and do the tests there.  Otherwise we can end up
4261   # making bogus files that we don't know about and never remove.  For
4262   # instance it was reported that on HP-UX the gcc test will end up
4263   # making a dummy file named `D' -- because `-MD' means `put the output
4264   # in D'.
4265   rm -rf conftest.dir
4266   mkdir conftest.dir
4267   # Copy depcomp to subdir because otherwise we won't find it if we're
4268   # using a relative directory.
4269   cp "$am_depcomp" conftest.dir
4270   cd conftest.dir
4271   # We will build objects and dependencies in a subdirectory because
4272   # it helps to detect inapplicable dependency modes.  For instance
4273   # both Tru64's cc and ICC support -MD to output dependencies as a
4274   # side effect of compilation, but ICC will put the dependencies in
4275   # the current directory while Tru64 will put them in the object
4276   # directory.
4277   mkdir sub
4278
4279   am_cv_CCAS_dependencies_compiler_type=none
4280   if test "$am_compiler_list" = ""; then
4281      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4282   fi
4283   am__universal=false
4284
4285
4286   for depmode in $am_compiler_list; do
4287     # Setup a source with many dependencies, because some compilers
4288     # like to wrap large dependency lists on column 80 (with \), and
4289     # we should not choose a depcomp mode which is confused by this.
4290     #
4291     # We need to recreate these files for each test, as the compiler may
4292     # overwrite some of them when testing with obscure command lines.
4293     # This happens at least with the AIX C compiler.
4294     : > sub/conftest.c
4295     for i in 1 2 3 4 5 6; do
4296       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4297       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4298       # Solaris 8's {/usr,}/bin/sh.
4299       touch sub/conftst$i.h
4300     done
4301     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4302
4303     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4304     # mode.  It turns out that the SunPro C++ compiler does not properly
4305     # handle `-M -o', and we need to detect this.  Also, some Intel
4306     # versions had trouble with output in subdirs
4307     am__obj=sub/conftest.${OBJEXT-o}
4308     am__minus_obj="-o $am__obj"
4309     case $depmode in
4310     gcc)
4311       # This depmode causes a compiler race in universal mode.
4312       test "$am__universal" = false || continue
4313       ;;
4314     nosideeffect)
4315       # after this tag, mechanisms are not by side-effect, so they'll
4316       # only be used when explicitly requested
4317       if test "x$enable_dependency_tracking" = xyes; then
4318         continue
4319       else
4320         break
4321       fi
4322       ;;
4323     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4324       # This compiler won't grok `-c -o', but also, the minuso test has
4325       # not run yet.  These depmodes are late enough in the game, and
4326       # so weak that their functioning should not be impacted.
4327       am__obj=conftest.${OBJEXT-o}
4328       am__minus_obj=
4329       ;;
4330     none) break ;;
4331     esac
4332     if depmode=$depmode \
4333        source=sub/conftest.c object=$am__obj \
4334        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4335        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4336          >/dev/null 2>conftest.err &&
4337        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4338        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4339        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4340        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4341       # icc doesn't choke on unknown options, it will just issue warnings
4342       # or remarks (even with -Werror).  So we grep stderr for any message
4343       # that says an option was ignored or not supported.
4344       # When given -MP, icc 7.0 and 7.1 complain thusly:
4345       #   icc: Command line warning: ignoring option '-M'; no argument required
4346       # The diagnosis changed in icc 8.0:
4347       #   icc: Command line remark: option '-MP' not supported
4348       if (grep 'ignoring option' conftest.err ||
4349           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4350         am_cv_CCAS_dependencies_compiler_type=$depmode
4351         break
4352       fi
4353     fi
4354   done
4355
4356   cd ..
4357   rm -rf conftest.dir
4358 else
4359   am_cv_CCAS_dependencies_compiler_type=none
4360 fi
4361
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4364 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4365 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4366
4367  if
4368   test "x$enable_dependency_tracking" != xno \
4369   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4370   am__fastdepCCAS_TRUE=
4371   am__fastdepCCAS_FALSE='#'
4372 else
4373   am__fastdepCCAS_TRUE='#'
4374   am__fastdepCCAS_FALSE=
4375 fi
4376
4377
4378 if test "x$CC" != xcc; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4380 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4383 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4384 fi
4385 set dummy $CC; ac_cc=`$as_echo "$2" |
4386                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4387 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 # Make sure it works both with $CC and with simple cc.
4402 # We do the test twice because some compilers refuse to overwrite an
4403 # existing .o file with -o, though they will create one.
4404 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405 rm -f conftest2.*
4406 if { { case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412   (eval "$ac_try") 2>&5
4413   ac_status=$?
4414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415   test $ac_status = 0; } &&
4416    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422   (eval "$ac_try") 2>&5
4423   ac_status=$?
4424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425   test $ac_status = 0; };
4426 then
4427   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4428   if test "x$CC" != xcc; then
4429     # Test first that cc exists at all.
4430     if { ac_try='cc -c conftest.$ac_ext >&5'
4431   { { case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437   (eval "$ac_try") 2>&5
4438   ac_status=$?
4439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440   test $ac_status = 0; }; }; then
4441       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4442       rm -f conftest2.*
4443       if { { case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449   (eval "$ac_try") 2>&5
4450   ac_status=$?
4451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452   test $ac_status = 0; } &&
4453          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459   (eval "$ac_try") 2>&5
4460   ac_status=$?
4461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462   test $ac_status = 0; };
4463       then
4464         # cc works too.
4465         :
4466       else
4467         # cc exists but doesn't like -o.
4468         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4469       fi
4470     fi
4471   fi
4472 else
4473   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4474 fi
4475 rm -f core conftest*
4476
4477 fi
4478 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480 $as_echo "yes" >&6; }
4481 else
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484
4485 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4486
4487 fi
4488
4489 # FIXME: we rely on the cache variable name because
4490 # there is no other way.
4491 set dummy $CC
4492 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4493 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4494 if test "$am_t" != yes; then
4495    # Losing compiler, so override with the script.
4496    # FIXME: It is wrong to rewrite CC.
4497    # But if we don't then we get into trouble of one sort or another.
4498    # A longer-term fix would be to have automake use am__CC in this case,
4499    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4500    CC="$am_aux_dir/compile $CC"
4501 fi
4502
4503
4504 case `pwd` in
4505   *\ * | *\     *)
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4507 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4508 esac
4509
4510
4511
4512 macro_version='2.4.2'
4513 macro_revision='1.3337'
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527 ltmain="$ac_aux_dir/ltmain.sh"
4528
4529 # Backslashify metacharacters that are still active within
4530 # double-quoted strings.
4531 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4532
4533 # Same as above, but do not quote variable references.
4534 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4535
4536 # Sed substitution to delay expansion of an escaped shell variable in a
4537 # double_quote_subst'ed string.
4538 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4539
4540 # Sed substitution to delay expansion of an escaped single quote.
4541 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4542
4543 # Sed substitution to avoid accidental globbing in evaled expressions
4544 no_glob_subst='s/\*/\\\*/g'
4545
4546 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4547 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4548 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4551 $as_echo_n "checking how to print strings... " >&6; }
4552 # Test print first, because it will be a builtin if present.
4553 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4554    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4555   ECHO='print -r --'
4556 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4557   ECHO='printf %s\n'
4558 else
4559   # Use this function as a fallback that always works.
4560   func_fallback_echo ()
4561   {
4562     eval 'cat <<_LTECHO_EOF
4563 $1
4564 _LTECHO_EOF'
4565   }
4566   ECHO='func_fallback_echo'
4567 fi
4568
4569 # func_echo_all arg...
4570 # Invoke $ECHO with all args, space-separated.
4571 func_echo_all ()
4572 {
4573     $ECHO ""
4574 }
4575
4576 case "$ECHO" in
4577   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4578 $as_echo "printf" >&6; } ;;
4579   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4580 $as_echo "print -r" >&6; } ;;
4581   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4582 $as_echo "cat" >&6; } ;;
4583 esac
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4600 if ${ac_cv_path_SED+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4604      for ac_i in 1 2 3 4 5 6 7; do
4605        ac_script="$ac_script$as_nl$ac_script"
4606      done
4607      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4608      { ac_script=; unset ac_script;}
4609      if test -z "$SED"; then
4610   ac_path_SED_found=false
4611   # Loop through the user's path and test for each of PROGNAME-LIST
4612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617     for ac_prog in sed gsed; do
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4620       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4621 # Check for GNU ac_path_SED and select it if it is found.
4622   # Check for GNU $ac_path_SED
4623 case `"$ac_path_SED" --version 2>&1` in
4624 *GNU*)
4625   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4626 *)
4627   ac_count=0
4628   $as_echo_n 0123456789 >"conftest.in"
4629   while :
4630   do
4631     cat "conftest.in" "conftest.in" >"conftest.tmp"
4632     mv "conftest.tmp" "conftest.in"
4633     cp "conftest.in" "conftest.nl"
4634     $as_echo '' >> "conftest.nl"
4635     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637     as_fn_arith $ac_count + 1 && ac_count=$as_val
4638     if test $ac_count -gt ${ac_path_SED_max-0}; then
4639       # Best one so far, save it but keep looking for a better one
4640       ac_cv_path_SED="$ac_path_SED"
4641       ac_path_SED_max=$ac_count
4642     fi
4643     # 10*(2^10) chars as input seems more than enough
4644     test $ac_count -gt 10 && break
4645   done
4646   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 esac
4648
4649       $ac_path_SED_found && break 3
4650     done
4651   done
4652   done
4653 IFS=$as_save_IFS
4654   if test -z "$ac_cv_path_SED"; then
4655     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4656   fi
4657 else
4658   ac_cv_path_SED=$SED
4659 fi
4660
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4663 $as_echo "$ac_cv_path_SED" >&6; }
4664  SED="$ac_cv_path_SED"
4665   rm -f conftest.sed
4666
4667 test -z "$SED" && SED=sed
4668 Xsed="$SED -e 1s/^X//"
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4681 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4682 if ${ac_cv_path_GREP+:} false; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685   if test -z "$GREP"; then
4686   ac_path_GREP_found=false
4687   # Loop through the user's path and test for each of PROGNAME-LIST
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     for ac_prog in grep ggrep; do
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4696       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4697 # Check for GNU ac_path_GREP and select it if it is found.
4698   # Check for GNU $ac_path_GREP
4699 case `"$ac_path_GREP" --version 2>&1` in
4700 *GNU*)
4701   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4702 *)
4703   ac_count=0
4704   $as_echo_n 0123456789 >"conftest.in"
4705   while :
4706   do
4707     cat "conftest.in" "conftest.in" >"conftest.tmp"
4708     mv "conftest.tmp" "conftest.in"
4709     cp "conftest.in" "conftest.nl"
4710     $as_echo 'GREP' >> "conftest.nl"
4711     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713     as_fn_arith $ac_count + 1 && ac_count=$as_val
4714     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4715       # Best one so far, save it but keep looking for a better one
4716       ac_cv_path_GREP="$ac_path_GREP"
4717       ac_path_GREP_max=$ac_count
4718     fi
4719     # 10*(2^10) chars as input seems more than enough
4720     test $ac_count -gt 10 && break
4721   done
4722   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723 esac
4724
4725       $ac_path_GREP_found && break 3
4726     done
4727   done
4728   done
4729 IFS=$as_save_IFS
4730   if test -z "$ac_cv_path_GREP"; then
4731     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732   fi
4733 else
4734   ac_cv_path_GREP=$GREP
4735 fi
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4739 $as_echo "$ac_cv_path_GREP" >&6; }
4740  GREP="$ac_cv_path_GREP"
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4744 $as_echo_n "checking for egrep... " >&6; }
4745 if ${ac_cv_path_EGREP+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4749    then ac_cv_path_EGREP="$GREP -E"
4750    else
4751      if test -z "$EGREP"; then
4752   ac_path_EGREP_found=false
4753   # Loop through the user's path and test for each of PROGNAME-LIST
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_prog in egrep; do
4760     for ac_exec_ext in '' $ac_executable_extensions; do
4761       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4762       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4763 # Check for GNU ac_path_EGREP and select it if it is found.
4764   # Check for GNU $ac_path_EGREP
4765 case `"$ac_path_EGREP" --version 2>&1` in
4766 *GNU*)
4767   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4768 *)
4769   ac_count=0
4770   $as_echo_n 0123456789 >"conftest.in"
4771   while :
4772   do
4773     cat "conftest.in" "conftest.in" >"conftest.tmp"
4774     mv "conftest.tmp" "conftest.in"
4775     cp "conftest.in" "conftest.nl"
4776     $as_echo 'EGREP' >> "conftest.nl"
4777     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779     as_fn_arith $ac_count + 1 && ac_count=$as_val
4780     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4781       # Best one so far, save it but keep looking for a better one
4782       ac_cv_path_EGREP="$ac_path_EGREP"
4783       ac_path_EGREP_max=$ac_count
4784     fi
4785     # 10*(2^10) chars as input seems more than enough
4786     test $ac_count -gt 10 && break
4787   done
4788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791       $ac_path_EGREP_found && break 3
4792     done
4793   done
4794   done
4795 IFS=$as_save_IFS
4796   if test -z "$ac_cv_path_EGREP"; then
4797     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798   fi
4799 else
4800   ac_cv_path_EGREP=$EGREP
4801 fi
4802
4803    fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4806 $as_echo "$ac_cv_path_EGREP" >&6; }
4807  EGREP="$ac_cv_path_EGREP"
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4811 $as_echo_n "checking for fgrep... " >&6; }
4812 if ${ac_cv_path_FGREP+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4816    then ac_cv_path_FGREP="$GREP -F"
4817    else
4818      if test -z "$FGREP"; then
4819   ac_path_FGREP_found=false
4820   # Loop through the user's path and test for each of PROGNAME-LIST
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826     for ac_prog in fgrep; do
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4829       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4830 # Check for GNU ac_path_FGREP and select it if it is found.
4831   # Check for GNU $ac_path_FGREP
4832 case `"$ac_path_FGREP" --version 2>&1` in
4833 *GNU*)
4834   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4835 *)
4836   ac_count=0
4837   $as_echo_n 0123456789 >"conftest.in"
4838   while :
4839   do
4840     cat "conftest.in" "conftest.in" >"conftest.tmp"
4841     mv "conftest.tmp" "conftest.in"
4842     cp "conftest.in" "conftest.nl"
4843     $as_echo 'FGREP' >> "conftest.nl"
4844     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846     as_fn_arith $ac_count + 1 && ac_count=$as_val
4847     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4848       # Best one so far, save it but keep looking for a better one
4849       ac_cv_path_FGREP="$ac_path_FGREP"
4850       ac_path_FGREP_max=$ac_count
4851     fi
4852     # 10*(2^10) chars as input seems more than enough
4853     test $ac_count -gt 10 && break
4854   done
4855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 esac
4857
4858       $ac_path_FGREP_found && break 3
4859     done
4860   done
4861   done
4862 IFS=$as_save_IFS
4863   if test -z "$ac_cv_path_FGREP"; then
4864     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865   fi
4866 else
4867   ac_cv_path_FGREP=$FGREP
4868 fi
4869
4870    fi
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4873 $as_echo "$ac_cv_path_FGREP" >&6; }
4874  FGREP="$ac_cv_path_FGREP"
4875
4876
4877 test -z "$GREP" && GREP=grep
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897 # Check whether --with-gnu-ld was given.
4898 if test "${with_gnu_ld+set}" = set; then :
4899   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4900 else
4901   with_gnu_ld=no
4902 fi
4903
4904 ac_prog=ld
4905 if test "$GCC" = yes; then
4906   # Check if gcc -print-prog-name=ld gives a path.
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4908 $as_echo_n "checking for ld used by $CC... " >&6; }
4909   case $host in
4910   *-*-mingw*)
4911     # gcc leaves a trailing carriage return which upsets mingw
4912     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4913   *)
4914     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4915   esac
4916   case $ac_prog in
4917     # Accept absolute paths.
4918     [\\/]* | ?:[\\/]*)
4919       re_direlt='/[^/][^/]*/\.\./'
4920       # Canonicalize the pathname of ld
4921       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4922       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4923         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4924       done
4925       test -z "$LD" && LD="$ac_prog"
4926       ;;
4927   "")
4928     # If it fails, then pretend we aren't using GCC.
4929     ac_prog=ld
4930     ;;
4931   *)
4932     # If it is relative, then search for the first ld in PATH.
4933     with_gnu_ld=unknown
4934     ;;
4935   esac
4936 elif test "$with_gnu_ld" = yes; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4938 $as_echo_n "checking for GNU ld... " >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4941 $as_echo_n "checking for non-GNU ld... " >&6; }
4942 fi
4943 if ${lt_cv_path_LD+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -z "$LD"; then
4947   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4948   for ac_dir in $PATH; do
4949     IFS="$lt_save_ifs"
4950     test -z "$ac_dir" && ac_dir=.
4951     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4952       lt_cv_path_LD="$ac_dir/$ac_prog"
4953       # Check to see if the program is GNU ld.  I'd rather use --version,
4954       # but apparently some variants of GNU ld only accept -v.
4955       # Break only if it was the GNU/non-GNU ld that we prefer.
4956       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4957       *GNU* | *'with BFD'*)
4958         test "$with_gnu_ld" != no && break
4959         ;;
4960       *)
4961         test "$with_gnu_ld" != yes && break
4962         ;;
4963       esac
4964     fi
4965   done
4966   IFS="$lt_save_ifs"
4967 else
4968   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4969 fi
4970 fi
4971
4972 LD="$lt_cv_path_LD"
4973 if test -n "$LD"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4975 $as_echo "$LD" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4982 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4983 if ${lt_cv_prog_gnu_ld+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4987 case `$LD -v 2>&1 </dev/null` in
4988 *GNU* | *'with BFD'*)
4989   lt_cv_prog_gnu_ld=yes
4990   ;;
4991 *)
4992   lt_cv_prog_gnu_ld=no
4993   ;;
4994 esac
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4997 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4998 with_gnu_ld=$lt_cv_prog_gnu_ld
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5009 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5010 if ${lt_cv_path_NM+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   if test -n "$NM"; then
5014   # Let the user override the test.
5015   lt_cv_path_NM="$NM"
5016 else
5017   lt_nm_to_check="${ac_tool_prefix}nm"
5018   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5019     lt_nm_to_check="$lt_nm_to_check nm"
5020   fi
5021   for lt_tmp_nm in $lt_nm_to_check; do
5022     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5023     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5024       IFS="$lt_save_ifs"
5025       test -z "$ac_dir" && ac_dir=.
5026       tmp_nm="$ac_dir/$lt_tmp_nm"
5027       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5028         # Check to see if the nm accepts a BSD-compat flag.
5029         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5030         #   nm: unknown option "B" ignored
5031         # Tru64's nm complains that /dev/null is an invalid object file
5032         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5033         */dev/null* | *'Invalid file or object type'*)
5034           lt_cv_path_NM="$tmp_nm -B"
5035           break
5036           ;;
5037         *)
5038           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5039           */dev/null*)
5040             lt_cv_path_NM="$tmp_nm -p"
5041             break
5042             ;;
5043           *)
5044             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5045             continue # so that we can try to find one that supports BSD flags
5046             ;;
5047           esac
5048           ;;
5049         esac
5050       fi
5051     done
5052     IFS="$lt_save_ifs"
5053   done
5054   : ${lt_cv_path_NM=no}
5055 fi
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5058 $as_echo "$lt_cv_path_NM" >&6; }
5059 if test "$lt_cv_path_NM" != "no"; then
5060   NM="$lt_cv_path_NM"
5061 else
5062   # Didn't find any BSD compatible name lister, look for dumpbin.
5063   if test -n "$DUMPBIN"; then :
5064     # Let the user override the test.
5065   else
5066     if test -n "$ac_tool_prefix"; then
5067   for ac_prog in dumpbin "link -dump"
5068   do
5069     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if ${ac_cv_prog_DUMPBIN+:} false; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if test -n "$DUMPBIN"; then
5077   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 DUMPBIN=$ac_cv_prog_DUMPBIN
5097 if test -n "$DUMPBIN"; then
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5099 $as_echo "$DUMPBIN" >&6; }
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105
5106     test -n "$DUMPBIN" && break
5107   done
5108 fi
5109 if test -z "$DUMPBIN"; then
5110   ac_ct_DUMPBIN=$DUMPBIN
5111   for ac_prog in dumpbin "link -dump"
5112 do
5113   # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   if test -n "$ac_ct_DUMPBIN"; then
5121   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5141 if test -n "$ac_ct_DUMPBIN"; then
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5143 $as_echo "$ac_ct_DUMPBIN" >&6; }
5144 else
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150   test -n "$ac_ct_DUMPBIN" && break
5151 done
5152
5153   if test "x$ac_ct_DUMPBIN" = x; then
5154     DUMPBIN=":"
5155   else
5156     case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162     DUMPBIN=$ac_ct_DUMPBIN
5163   fi
5164 fi
5165
5166     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5167     *COFF*)
5168       DUMPBIN="$DUMPBIN -symbols"
5169       ;;
5170     *)
5171       DUMPBIN=:
5172       ;;
5173     esac
5174   fi
5175
5176   if test "$DUMPBIN" != ":"; then
5177     NM="$DUMPBIN"
5178   fi
5179 fi
5180 test -z "$NM" && NM=nm
5181
5182
5183
5184
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5188 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5189 if ${lt_cv_nm_interface+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   lt_cv_nm_interface="BSD nm"
5193   echo "int some_variable = 0;" > conftest.$ac_ext
5194   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5195   (eval "$ac_compile" 2>conftest.err)
5196   cat conftest.err >&5
5197   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5198   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5199   cat conftest.err >&5
5200   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5201   cat conftest.out >&5
5202   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5203     lt_cv_nm_interface="MS dumpbin"
5204   fi
5205   rm -f conftest*
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5208 $as_echo "$lt_cv_nm_interface" >&6; }
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5211 $as_echo_n "checking whether ln -s works... " >&6; }
5212 LN_S=$as_ln_s
5213 if test "$LN_S" = "ln -s"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5218 $as_echo "no, using $LN_S" >&6; }
5219 fi
5220
5221 # find the maximum length of command line arguments
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5223 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5224 if ${lt_cv_sys_max_cmd_len+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227     i=0
5228   teststring="ABCD"
5229
5230   case $build_os in
5231   msdosdjgpp*)
5232     # On DJGPP, this test can blow up pretty badly due to problems in libc
5233     # (any single argument exceeding 2000 bytes causes a buffer overrun
5234     # during glob expansion).  Even if it were fixed, the result of this
5235     # check would be larger than it should be.
5236     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5237     ;;
5238
5239   gnu*)
5240     # Under GNU Hurd, this test is not required because there is
5241     # no limit to the length of command line arguments.
5242     # Libtool will interpret -1 as no limit whatsoever
5243     lt_cv_sys_max_cmd_len=-1;
5244     ;;
5245
5246   cygwin* | mingw* | cegcc*)
5247     # On Win9x/ME, this test blows up -- it succeeds, but takes
5248     # about 5 minutes as the teststring grows exponentially.
5249     # Worse, since 9x/ME are not pre-emptively multitasking,
5250     # you end up with a "frozen" computer, even though with patience
5251     # the test eventually succeeds (with a max line length of 256k).
5252     # Instead, let's just punt: use the minimum linelength reported by
5253     # all of the supported platforms: 8192 (on NT/2K/XP).
5254     lt_cv_sys_max_cmd_len=8192;
5255     ;;
5256
5257   mint*)
5258     # On MiNT this can take a long time and run out of memory.
5259     lt_cv_sys_max_cmd_len=8192;
5260     ;;
5261
5262   amigaos*)
5263     # On AmigaOS with pdksh, this test takes hours, literally.
5264     # So we just punt and use a minimum line length of 8192.
5265     lt_cv_sys_max_cmd_len=8192;
5266     ;;
5267
5268   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5269     # This has been around since 386BSD, at least.  Likely further.
5270     if test -x /sbin/sysctl; then
5271       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5272     elif test -x /usr/sbin/sysctl; then
5273       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5274     else
5275       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5276     fi
5277     # And add a safety zone
5278     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5279     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5280     ;;
5281
5282   interix*)
5283     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5284     lt_cv_sys_max_cmd_len=196608
5285     ;;
5286
5287   osf*)
5288     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5289     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5290     # nice to cause kernel panics so lets avoid the loop below.
5291     # First set a reasonable default.
5292     lt_cv_sys_max_cmd_len=16384
5293     #
5294     if test -x /sbin/sysconfig; then
5295       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5296         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5297       esac
5298     fi
5299     ;;
5300   sco3.2v5*)
5301     lt_cv_sys_max_cmd_len=102400
5302     ;;
5303   sysv5* | sco5v6* | sysv4.2uw2*)
5304     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5305     if test -n "$kargmax"; then
5306       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5307     else
5308       lt_cv_sys_max_cmd_len=32768
5309     fi
5310     ;;
5311   *)
5312     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5313     if test -n "$lt_cv_sys_max_cmd_len"; then
5314       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5315       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5316     else
5317       # Make teststring a little bigger before we do anything with it.
5318       # a 1K string should be a reasonable start.
5319       for i in 1 2 3 4 5 6 7 8 ; do
5320         teststring=$teststring$teststring
5321       done
5322       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5323       # If test is not a shell built-in, we'll probably end up computing a
5324       # maximum length that is only half of the actual maximum length, but
5325       # we can't tell.
5326       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5327                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5328               test $i != 17 # 1/2 MB should be enough
5329       do
5330         i=`expr $i + 1`
5331         teststring=$teststring$teststring
5332       done
5333       # Only check the string length outside the loop.
5334       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5335       teststring=
5336       # Add a significant safety factor because C++ compilers can tack on
5337       # massive amounts of additional arguments before passing them to the
5338       # linker.  It appears as though 1/2 is a usable value.
5339       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5340     fi
5341     ;;
5342   esac
5343
5344 fi
5345
5346 if test -n $lt_cv_sys_max_cmd_len ; then
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5348 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5351 $as_echo "none" >&6; }
5352 fi
5353 max_cmd_len=$lt_cv_sys_max_cmd_len
5354
5355
5356
5357
5358
5359
5360 : ${CP="cp -f"}
5361 : ${MV="mv -f"}
5362 : ${RM="rm -f"}
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5365 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5366 # Try some XSI features
5367 xsi_shell=no
5368 ( _lt_dummy="a/b/c"
5369   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5370       = c,a/b,b/c, \
5371     && eval 'test $(( 1 + 1 )) -eq 2 \
5372     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5373   && xsi_shell=yes
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5375 $as_echo "$xsi_shell" >&6; }
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5379 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5380 lt_shell_append=no
5381 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5382     >/dev/null 2>&1 \
5383   && lt_shell_append=yes
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5385 $as_echo "$lt_shell_append" >&6; }
5386
5387
5388 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5389   lt_unset=unset
5390 else
5391   lt_unset=false
5392 fi
5393
5394
5395
5396
5397
5398 # test EBCDIC or ASCII
5399 case `echo X|tr X '\101'` in
5400  A) # ASCII based system
5401     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5402   lt_SP2NL='tr \040 \012'
5403   lt_NL2SP='tr \015\012 \040\040'
5404   ;;
5405  *) # EBCDIC based system
5406   lt_SP2NL='tr \100 \n'
5407   lt_NL2SP='tr \r\n \100\100'
5408   ;;
5409 esac
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5420 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5421 if ${lt_cv_to_host_file_cmd+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   case $host in
5425   *-*-mingw* )
5426     case $build in
5427       *-*-mingw* ) # actually msys
5428         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5429         ;;
5430       *-*-cygwin* )
5431         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5432         ;;
5433       * ) # otherwise, assume *nix
5434         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5435         ;;
5436     esac
5437     ;;
5438   *-*-cygwin* )
5439     case $build in
5440       *-*-mingw* ) # actually msys
5441         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5442         ;;
5443       *-*-cygwin* )
5444         lt_cv_to_host_file_cmd=func_convert_file_noop
5445         ;;
5446       * ) # otherwise, assume *nix
5447         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5448         ;;
5449     esac
5450     ;;
5451   * ) # unhandled hosts (and "normal" native builds)
5452     lt_cv_to_host_file_cmd=func_convert_file_noop
5453     ;;
5454 esac
5455
5456 fi
5457
5458 to_host_file_cmd=$lt_cv_to_host_file_cmd
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5460 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5461
5462
5463
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5467 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5468 if ${lt_cv_to_tool_file_cmd+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   #assume ordinary cross tools, or native build.
5472 lt_cv_to_tool_file_cmd=func_convert_file_noop
5473 case $host in
5474   *-*-mingw* )
5475     case $build in
5476       *-*-mingw* ) # actually msys
5477         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5478         ;;
5479     esac
5480     ;;
5481 esac
5482
5483 fi
5484
5485 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5487 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5488
5489
5490
5491
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5494 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5495 if ${lt_cv_ld_reload_flag+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   lt_cv_ld_reload_flag='-r'
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5501 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5502 reload_flag=$lt_cv_ld_reload_flag
5503 case $reload_flag in
5504 "" | " "*) ;;
5505 *) reload_flag=" $reload_flag" ;;
5506 esac
5507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5508 case $host_os in
5509   cygwin* | mingw* | pw32* | cegcc*)
5510     if test "$GCC" != yes; then
5511       reload_cmds=false
5512     fi
5513     ;;
5514   darwin*)
5515     if test "$GCC" = yes; then
5516       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5517     else
5518       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5519     fi
5520     ;;
5521 esac
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 if test -n "$ac_tool_prefix"; then
5532   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_OBJDUMP+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   if test -n "$OBJDUMP"; then
5540   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 OBJDUMP=$ac_cv_prog_OBJDUMP
5560 if test -n "$OBJDUMP"; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5562 $as_echo "$OBJDUMP" >&6; }
5563 else
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568
5569 fi
5570 if test -z "$ac_cv_prog_OBJDUMP"; then
5571   ac_ct_OBJDUMP=$OBJDUMP
5572   # Extract the first word of "objdump", so it can be a program name with args.
5573 set dummy objdump; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   if test -n "$ac_ct_OBJDUMP"; then
5580   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585   IFS=$as_save_IFS
5586   test -z "$as_dir" && as_dir=.
5587     for ac_exec_ext in '' $ac_executable_extensions; do
5588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591     break 2
5592   fi
5593 done
5594   done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5600 if test -n "$ac_ct_OBJDUMP"; then
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5602 $as_echo "$ac_ct_OBJDUMP" >&6; }
5603 else
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608   if test "x$ac_ct_OBJDUMP" = x; then
5609     OBJDUMP="false"
5610   else
5611     case $cross_compiling:$ac_tool_warned in
5612 yes:)
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned=yes ;;
5616 esac
5617     OBJDUMP=$ac_ct_OBJDUMP
5618   fi
5619 else
5620   OBJDUMP="$ac_cv_prog_OBJDUMP"
5621 fi
5622
5623 test -z "$OBJDUMP" && OBJDUMP=objdump
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5634 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5635 if ${lt_cv_deplibs_check_method+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   lt_cv_file_magic_cmd='$MAGIC_CMD'
5639 lt_cv_file_magic_test_file=
5640 lt_cv_deplibs_check_method='unknown'
5641 # Need to set the preceding variable on all platforms that support
5642 # interlibrary dependencies.
5643 # 'none' -- dependencies not supported.
5644 # `unknown' -- same as none, but documents that we really don't know.
5645 # 'pass_all' -- all dependencies passed with no checks.
5646 # 'test_compile' -- check by making test program.
5647 # 'file_magic [[regex]]' -- check by looking for files in library path
5648 # which responds to the $file_magic_cmd with a given extended regex.
5649 # If you have `file' or equivalent on your system and you're not sure
5650 # whether `pass_all' will *always* work, you probably want this one.
5651
5652 case $host_os in
5653 aix[4-9]*)
5654   lt_cv_deplibs_check_method=pass_all
5655   ;;
5656
5657 beos*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660
5661 bsdi[45]*)
5662   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5663   lt_cv_file_magic_cmd='/usr/bin/file -L'
5664   lt_cv_file_magic_test_file=/shlib/libc.so
5665   ;;
5666
5667 cygwin*)
5668   # func_win32_libid is a shell function defined in ltmain.sh
5669   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5670   lt_cv_file_magic_cmd='func_win32_libid'
5671   ;;
5672
5673 mingw* | pw32*)
5674   # Base MSYS/MinGW do not provide the 'file' command needed by
5675   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5676   # unless we find 'file', for example because we are cross-compiling.
5677   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5678   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5679     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5680     lt_cv_file_magic_cmd='func_win32_libid'
5681   else
5682     # Keep this pattern in sync with the one in func_win32_libid.
5683     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5684     lt_cv_file_magic_cmd='$OBJDUMP -f'
5685   fi
5686   ;;
5687
5688 cegcc*)
5689   # use the weaker test based on 'objdump'. See mingw*.
5690   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5691   lt_cv_file_magic_cmd='$OBJDUMP -f'
5692   ;;
5693
5694 darwin* | rhapsody*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697
5698 freebsd* | dragonfly*)
5699   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700     case $host_cpu in
5701     i*86 )
5702       # Not sure whether the presence of OpenBSD here was a mistake.
5703       # Let's accept both of them until this is cleared up.
5704       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5705       lt_cv_file_magic_cmd=/usr/bin/file
5706       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5707       ;;
5708     esac
5709   else
5710     lt_cv_deplibs_check_method=pass_all
5711   fi
5712   ;;
5713
5714 gnu*)
5715   lt_cv_deplibs_check_method=pass_all
5716   ;;
5717
5718 haiku*)
5719   lt_cv_deplibs_check_method=pass_all
5720   ;;
5721
5722 hpux10.20* | hpux11*)
5723   lt_cv_file_magic_cmd=/usr/bin/file
5724   case $host_cpu in
5725   ia64*)
5726     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5727     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5728     ;;
5729   hppa*64*)
5730     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]'
5731     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5732     ;;
5733   *)
5734     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5735     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5736     ;;
5737   esac
5738   ;;
5739
5740 interix[3-9]*)
5741   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5742   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5743   ;;
5744
5745 irix5* | irix6* | nonstopux*)
5746   case $LD in
5747   *-32|*"-32 ") libmagic=32-bit;;
5748   *-n32|*"-n32 ") libmagic=N32;;
5749   *-64|*"-64 ") libmagic=64-bit;;
5750   *) libmagic=never-match;;
5751   esac
5752   lt_cv_deplibs_check_method=pass_all
5753   ;;
5754
5755 # This must be Linux ELF.
5756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 netbsd*)
5761   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5762     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5763   else
5764     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5765   fi
5766   ;;
5767
5768 newos6*)
5769   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5770   lt_cv_file_magic_cmd=/usr/bin/file
5771   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5772   ;;
5773
5774 *nto* | *qnx*)
5775   lt_cv_deplibs_check_method=pass_all
5776   ;;
5777
5778 openbsd*)
5779   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5780     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5781   else
5782     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5783   fi
5784   ;;
5785
5786 osf3* | osf4* | osf5*)
5787   lt_cv_deplibs_check_method=pass_all
5788   ;;
5789
5790 rdos*)
5791   lt_cv_deplibs_check_method=pass_all
5792   ;;
5793
5794 solaris*)
5795   lt_cv_deplibs_check_method=pass_all
5796   ;;
5797
5798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 sysv4 | sysv4.3*)
5803   case $host_vendor in
5804   motorola)
5805     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]'
5806     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5807     ;;
5808   ncr)
5809     lt_cv_deplibs_check_method=pass_all
5810     ;;
5811   sequent)
5812     lt_cv_file_magic_cmd='/bin/file'
5813     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5814     ;;
5815   sni)
5816     lt_cv_file_magic_cmd='/bin/file'
5817     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5818     lt_cv_file_magic_test_file=/lib/libc.so
5819     ;;
5820   siemens)
5821     lt_cv_deplibs_check_method=pass_all
5822     ;;
5823   pc)
5824     lt_cv_deplibs_check_method=pass_all
5825     ;;
5826   esac
5827   ;;
5828
5829 tpf*)
5830   lt_cv_deplibs_check_method=pass_all
5831   ;;
5832 esac
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5836 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5837
5838 file_magic_glob=
5839 want_nocaseglob=no
5840 if test "$build" = "$host"; then
5841   case $host_os in
5842   mingw* | pw32*)
5843     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5844       want_nocaseglob=yes
5845     else
5846       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5847     fi
5848     ;;
5849   esac
5850 fi
5851
5852 file_magic_cmd=$lt_cv_file_magic_cmd
5853 deplibs_check_method=$lt_cv_deplibs_check_method
5854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877 if test -n "$ac_tool_prefix"; then
5878   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_DLLTOOL+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   if test -n "$DLLTOOL"; then
5886   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893     for ac_exec_ext in '' $ac_executable_extensions; do
5894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900   done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 DLLTOOL=$ac_cv_prog_DLLTOOL
5906 if test -n "$DLLTOOL"; then
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5908 $as_echo "$DLLTOOL" >&6; }
5909 else
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914
5915 fi
5916 if test -z "$ac_cv_prog_DLLTOOL"; then
5917   ac_ct_DLLTOOL=$DLLTOOL
5918   # Extract the first word of "dlltool", so it can be a program name with args.
5919 set dummy dlltool; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   if test -n "$ac_ct_DLLTOOL"; then
5926   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5946 if test -n "$ac_ct_DLLTOOL"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5948 $as_echo "$ac_ct_DLLTOOL" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954   if test "x$ac_ct_DLLTOOL" = x; then
5955     DLLTOOL="false"
5956   else
5957     case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963     DLLTOOL=$ac_ct_DLLTOOL
5964   fi
5965 else
5966   DLLTOOL="$ac_cv_prog_DLLTOOL"
5967 fi
5968
5969 test -z "$DLLTOOL" && DLLTOOL=dlltool
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5981 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5982 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   lt_cv_sharedlib_from_linklib_cmd='unknown'
5986
5987 case $host_os in
5988 cygwin* | mingw* | pw32* | cegcc*)
5989   # two different shell functions defined in ltmain.sh
5990   # decide which to use based on capabilities of $DLLTOOL
5991   case `$DLLTOOL --help 2>&1` in
5992   *--identify-strict*)
5993     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5994     ;;
5995   *)
5996     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5997     ;;
5998   esac
5999   ;;
6000 *)
6001   # fallback: assume linklib IS sharedlib
6002   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6003   ;;
6004 esac
6005
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6008 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6009 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6010 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6011
6012
6013
6014
6015
6016
6017
6018
6019 if test -n "$ac_tool_prefix"; then
6020   for ac_prog in ar
6021   do
6022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_AR+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029   if test -n "$AR"; then
6030   ac_cv_prog_AR="$AR" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035   IFS=$as_save_IFS
6036   test -z "$as_dir" && as_dir=.
6037     for ac_exec_ext in '' $ac_executable_extensions; do
6038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041     break 2
6042   fi
6043 done
6044   done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 AR=$ac_cv_prog_AR
6050 if test -n "$AR"; then
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6052 $as_echo "$AR" >&6; }
6053 else
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058
6059     test -n "$AR" && break
6060   done
6061 fi
6062 if test -z "$AR"; then
6063   ac_ct_AR=$AR
6064   for ac_prog in ar
6065 do
6066   # Extract the first word of "$ac_prog", so it can be a program name with args.
6067 set dummy $ac_prog; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   if test -n "$ac_ct_AR"; then
6074   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081     for ac_exec_ext in '' $ac_executable_extensions; do
6082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083     ac_cv_prog_ac_ct_AR="$ac_prog"
6084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088   done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6094 if test -n "$ac_ct_AR"; then
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6096 $as_echo "$ac_ct_AR" >&6; }
6097 else
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101
6102
6103   test -n "$ac_ct_AR" && break
6104 done
6105
6106   if test "x$ac_ct_AR" = x; then
6107     AR="false"
6108   else
6109     case $cross_compiling:$ac_tool_warned in
6110 yes:)
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned=yes ;;
6114 esac
6115     AR=$ac_ct_AR
6116   fi
6117 fi
6118
6119 : ${AR=ar}
6120 : ${AR_FLAGS=cru}
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6133 $as_echo_n "checking for archiver @FILE support... " >&6; }
6134 if ${lt_cv_ar_at_file+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   lt_cv_ar_at_file=no
6138    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h.  */
6140
6141 int
6142 main ()
6143 {
6144
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150   echo conftest.$ac_objext > conftest.lst
6151       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6152       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6153   (eval $lt_ar_try) 2>&5
6154   ac_status=$?
6155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156   test $ac_status = 0; }
6157       if test "$ac_status" -eq 0; then
6158         # Ensure the archiver fails upon bogus file names.
6159         rm -f conftest.$ac_objext libconftest.a
6160         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6161   (eval $lt_ar_try) 2>&5
6162   ac_status=$?
6163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164   test $ac_status = 0; }
6165         if test "$ac_status" -ne 0; then
6166           lt_cv_ar_at_file=@
6167         fi
6168       fi
6169       rm -f conftest.* libconftest.a
6170
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173
6174 fi
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6176 $as_echo "$lt_cv_ar_at_file" >&6; }
6177
6178 if test "x$lt_cv_ar_at_file" = xno; then
6179   archiver_list_spec=
6180 else
6181   archiver_list_spec=$lt_cv_ar_at_file
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190 if test -n "$ac_tool_prefix"; then
6191   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_STRIP+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   if test -n "$STRIP"; then
6199   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 STRIP=$ac_cv_prog_STRIP
6219 if test -n "$STRIP"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6221 $as_echo "$STRIP" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if test -z "$ac_cv_prog_STRIP"; then
6230   ac_ct_STRIP=$STRIP
6231   # Extract the first word of "strip", so it can be a program name with args.
6232 set dummy strip; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   if test -n "$ac_ct_STRIP"; then
6239   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246     for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_prog_ac_ct_STRIP="strip"
6249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253   done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6259 if test -n "$ac_ct_STRIP"; then
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6261 $as_echo "$ac_ct_STRIP" >&6; }
6262 else
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267   if test "x$ac_ct_STRIP" = x; then
6268     STRIP=":"
6269   else
6270     case $cross_compiling:$ac_tool_warned in
6271 yes:)
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6275 esac
6276     STRIP=$ac_ct_STRIP
6277   fi
6278 else
6279   STRIP="$ac_cv_prog_STRIP"
6280 fi
6281
6282 test -z "$STRIP" && STRIP=:
6283
6284
6285
6286
6287
6288
6289 if test -n "$ac_tool_prefix"; then
6290   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_RANLIB+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$RANLIB"; then
6298   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6320 $as_echo "$RANLIB" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327 fi
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329   ac_ct_RANLIB=$RANLIB
6330   # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -n "$ac_ct_RANLIB"; then
6338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_prog_ac_ct_RANLIB="ranlib"
6348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352   done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6360 $as_echo "$ac_ct_RANLIB" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366   if test "x$ac_ct_RANLIB" = x; then
6367     RANLIB=":"
6368   else
6369     case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     RANLIB=$ac_ct_RANLIB
6376   fi
6377 else
6378   RANLIB="$ac_cv_prog_RANLIB"
6379 fi
6380
6381 test -z "$RANLIB" && RANLIB=:
6382
6383
6384
6385
6386
6387
6388 # Determine commands to create old-style static archives.
6389 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6390 old_postinstall_cmds='chmod 644 $oldlib'
6391 old_postuninstall_cmds=
6392
6393 if test -n "$RANLIB"; then
6394   case $host_os in
6395   openbsd*)
6396     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6397     ;;
6398   *)
6399     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6400     ;;
6401   esac
6402   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6403 fi
6404
6405 case $host_os in
6406   darwin*)
6407     lock_old_archive_extraction=yes ;;
6408   *)
6409     lock_old_archive_extraction=no ;;
6410 esac
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
6449
6450 # If no C compiler was specified, use CC.
6451 LTCC=${LTCC-"$CC"}
6452
6453 # If no C compiler flags were specified, use CFLAGS.
6454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6455
6456 # Allow CC to be a program name with arguments.
6457 compiler=$CC
6458
6459
6460 # Check for command to grab the raw symbol name followed by C symbol from nm.
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6462 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6463 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466
6467 # These are sane defaults that work on at least a few old systems.
6468 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6469
6470 # Character class describing NM global symbol codes.
6471 symcode='[BCDEGRST]'
6472
6473 # Regexp to match symbols that can be accessed directly from C.
6474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6475
6476 # Define system-specific variables.
6477 case $host_os in
6478 aix*)
6479   symcode='[BCDT]'
6480   ;;
6481 cygwin* | mingw* | pw32* | cegcc*)
6482   symcode='[ABCDGISTW]'
6483   ;;
6484 hpux*)
6485   if test "$host_cpu" = ia64; then
6486     symcode='[ABCDEGRST]'
6487   fi
6488   ;;
6489 irix* | nonstopux*)
6490   symcode='[BCDEGRST]'
6491   ;;
6492 osf*)
6493   symcode='[BCDEGQRST]'
6494   ;;
6495 solaris*)
6496   symcode='[BDRT]'
6497   ;;
6498 sco3.2v5*)
6499   symcode='[DT]'
6500   ;;
6501 sysv4.2uw2*)
6502   symcode='[DT]'
6503   ;;
6504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6505   symcode='[ABDT]'
6506   ;;
6507 sysv4)
6508   symcode='[DFNSTU]'
6509   ;;
6510 esac
6511
6512 # If we're using GNU nm, then use its standard symbol codes.
6513 case `$NM -V 2>&1` in
6514 *GNU* | *'with BFD'*)
6515   symcode='[ABCDGIRSTW]' ;;
6516 esac
6517
6518 # Transform an extracted symbol line into a proper C declaration.
6519 # Some systems (esp. on ia64) link data and code symbols differently,
6520 # so use this general approach.
6521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6522
6523 # Transform an extracted symbol line into symbol name and symbol address
6524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6525 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'"
6526
6527 # Handle CRLF in mingw tool chain
6528 opt_cr=
6529 case $build_os in
6530 mingw*)
6531   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6532   ;;
6533 esac
6534
6535 # Try without a prefix underscore, then with it.
6536 for ac_symprfx in "" "_"; do
6537
6538   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6539   symxfrm="\\1 $ac_symprfx\\2 \\2"
6540
6541   # Write the raw and C identifiers.
6542   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6543     # Fake it for dumpbin and say T for any non-static function
6544     # and D for any global variable.
6545     # Also find C++ and __fastcall symbols from MSVC++,
6546     # which start with @ or ?.
6547     lt_cv_sys_global_symbol_pipe="$AWK '"\
6548 "     {last_section=section; section=\$ 3};"\
6549 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6550 "     \$ 0!~/External *\|/{next};"\
6551 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6552 "     {if(hide[section]) next};"\
6553 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6554 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6555 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6556 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6557 "     ' prfx=^$ac_symprfx"
6558   else
6559     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6560   fi
6561   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6562
6563   # Check to see that the pipe works correctly.
6564   pipe_works=no
6565
6566   rm -f conftest*
6567   cat > conftest.$ac_ext <<_LT_EOF
6568 #ifdef __cplusplus
6569 extern "C" {
6570 #endif
6571 char nm_test_var;
6572 void nm_test_func(void);
6573 void nm_test_func(void){}
6574 #ifdef __cplusplus
6575 }
6576 #endif
6577 int main(){nm_test_var='a';nm_test_func();return(0);}
6578 _LT_EOF
6579
6580   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581   (eval $ac_compile) 2>&5
6582   ac_status=$?
6583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584   test $ac_status = 0; }; then
6585     # Now try to grab the symbols.
6586     nlist=conftest.nm
6587     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6588   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6589   ac_status=$?
6590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591   test $ac_status = 0; } && test -s "$nlist"; then
6592       # Try sorting and uniquifying the output.
6593       if sort "$nlist" | uniq > "$nlist"T; then
6594         mv -f "$nlist"T "$nlist"
6595       else
6596         rm -f "$nlist"T
6597       fi
6598
6599       # Make sure that we snagged all the symbols we need.
6600       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6601         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6602           cat <<_LT_EOF > conftest.$ac_ext
6603 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6604 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6605 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6606    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6607 # define LT_DLSYM_CONST
6608 #elif defined(__osf__)
6609 /* This system does not cope well with relocations in const data.  */
6610 # define LT_DLSYM_CONST
6611 #else
6612 # define LT_DLSYM_CONST const
6613 #endif
6614
6615 #ifdef __cplusplus
6616 extern "C" {
6617 #endif
6618
6619 _LT_EOF
6620           # Now generate the symbol file.
6621           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6622
6623           cat <<_LT_EOF >> conftest.$ac_ext
6624
6625 /* The mapping between symbol names and symbols.  */
6626 LT_DLSYM_CONST struct {
6627   const char *name;
6628   void       *address;
6629 }
6630 lt__PROGRAM__LTX_preloaded_symbols[] =
6631 {
6632   { "@PROGRAM@", (void *) 0 },
6633 _LT_EOF
6634           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6635           cat <<\_LT_EOF >> conftest.$ac_ext
6636   {0, (void *) 0}
6637 };
6638
6639 /* This works around a problem in FreeBSD linker */
6640 #ifdef FREEBSD_WORKAROUND
6641 static const void *lt_preloaded_setup() {
6642   return lt__PROGRAM__LTX_preloaded_symbols;
6643 }
6644 #endif
6645
6646 #ifdef __cplusplus
6647 }
6648 #endif
6649 _LT_EOF
6650           # Now try linking the two files.
6651           mv conftest.$ac_objext conftstm.$ac_objext
6652           lt_globsym_save_LIBS=$LIBS
6653           lt_globsym_save_CFLAGS=$CFLAGS
6654           LIBS="conftstm.$ac_objext"
6655           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6656           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6657   (eval $ac_link) 2>&5
6658   ac_status=$?
6659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6661             pipe_works=yes
6662           fi
6663           LIBS=$lt_globsym_save_LIBS
6664           CFLAGS=$lt_globsym_save_CFLAGS
6665         else
6666           echo "cannot find nm_test_func in $nlist" >&5
6667         fi
6668       else
6669         echo "cannot find nm_test_var in $nlist" >&5
6670       fi
6671     else
6672       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6673     fi
6674   else
6675     echo "$progname: failed program was:" >&5
6676     cat conftest.$ac_ext >&5
6677   fi
6678   rm -rf conftest* conftst*
6679
6680   # Do not use the global_symbol_pipe unless it works.
6681   if test "$pipe_works" = yes; then
6682     break
6683   else
6684     lt_cv_sys_global_symbol_pipe=
6685   fi
6686 done
6687
6688 fi
6689
6690 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6691   lt_cv_sys_global_symbol_to_cdecl=
6692 fi
6693 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6695 $as_echo "failed" >&6; }
6696 else
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6698 $as_echo "ok" >&6; }
6699 fi
6700
6701 # Response file support.
6702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6703   nm_file_list_spec='@'
6704 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6705   nm_file_list_spec='@'
6706 fi
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
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6735 $as_echo_n "checking for sysroot... " >&6; }
6736
6737 # Check whether --with-sysroot was given.
6738 if test "${with_sysroot+set}" = set; then :
6739   withval=$with_sysroot;
6740 else
6741   with_sysroot=no
6742 fi
6743
6744
6745 lt_sysroot=
6746 case ${with_sysroot} in #(
6747  yes)
6748    if test "$GCC" = yes; then
6749      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6750    fi
6751    ;; #(
6752  /*)
6753    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6754    ;; #(
6755  no|'')
6756    ;; #(
6757  *)
6758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6759 $as_echo "${with_sysroot}" >&6; }
6760    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6761    ;;
6762 esac
6763
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6765 $as_echo "${lt_sysroot:-no}" >&6; }
6766
6767
6768
6769
6770
6771 # Check whether --enable-libtool-lock was given.
6772 if test "${enable_libtool_lock+set}" = set; then :
6773   enableval=$enable_libtool_lock;
6774 fi
6775
6776 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6777
6778 # Some flags need to be propagated to the compiler or linker for good
6779 # libtool support.
6780 case $host in
6781 ia64-*-hpux*)
6782   # Find out which ABI we are using.
6783   echo 'int i;' > conftest.$ac_ext
6784   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6785   (eval $ac_compile) 2>&5
6786   ac_status=$?
6787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788   test $ac_status = 0; }; then
6789     case `/usr/bin/file conftest.$ac_objext` in
6790       *ELF-32*)
6791         HPUX_IA64_MODE="32"
6792         ;;
6793       *ELF-64*)
6794         HPUX_IA64_MODE="64"
6795         ;;
6796     esac
6797   fi
6798   rm -rf conftest*
6799   ;;
6800 *-*-irix6*)
6801   # Find out which ABI we are using.
6802   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6803   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804   (eval $ac_compile) 2>&5
6805   ac_status=$?
6806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807   test $ac_status = 0; }; then
6808     if test "$lt_cv_prog_gnu_ld" = yes; then
6809       case `/usr/bin/file conftest.$ac_objext` in
6810         *32-bit*)
6811           LD="${LD-ld} -melf32bsmip"
6812           ;;
6813         *N32*)
6814           LD="${LD-ld} -melf32bmipn32"
6815           ;;
6816         *64-bit*)
6817           LD="${LD-ld} -melf64bmip"
6818         ;;
6819       esac
6820     else
6821       case `/usr/bin/file conftest.$ac_objext` in
6822         *32-bit*)
6823           LD="${LD-ld} -32"
6824           ;;
6825         *N32*)
6826           LD="${LD-ld} -n32"
6827           ;;
6828         *64-bit*)
6829           LD="${LD-ld} -64"
6830           ;;
6831       esac
6832     fi
6833   fi
6834   rm -rf conftest*
6835   ;;
6836
6837 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6838 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6839   # Find out which ABI we are using.
6840   echo 'int i;' > conftest.$ac_ext
6841   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842   (eval $ac_compile) 2>&5
6843   ac_status=$?
6844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845   test $ac_status = 0; }; then
6846     case `/usr/bin/file conftest.o` in
6847       *32-bit*)
6848         case $host in
6849           x86_64-*kfreebsd*-gnu)
6850             LD="${LD-ld} -m elf_i386_fbsd"
6851             ;;
6852           x86_64-*linux*)
6853             case `/usr/bin/file conftest.o` in
6854               *x86-64*)
6855                  LD="${LD-ld} -m elf32_x86_64"
6856                  ;;
6857               *)
6858                  LD="${LD-ld} -m elf_i386"
6859                  ;;
6860             esac
6861             ;;
6862           ppc64-*linux*|powerpc64-*linux*)
6863             LD="${LD-ld} -m elf32ppclinux"
6864             ;;
6865           s390x-*linux*)
6866             LD="${LD-ld} -m elf_s390"
6867             ;;
6868           sparc64-*linux*)
6869             LD="${LD-ld} -m elf32_sparc"
6870             ;;
6871         esac
6872         ;;
6873       *64-bit*)
6874         case $host in
6875           x86_64-*kfreebsd*-gnu)
6876             LD="${LD-ld} -m elf_x86_64_fbsd"
6877             ;;
6878           x86_64-*linux*)
6879             LD="${LD-ld} -m elf_x86_64"
6880             ;;
6881           ppc*-*linux*|powerpc*-*linux*)
6882             LD="${LD-ld} -m elf64ppc"
6883             ;;
6884           s390*-*linux*|s390*-*tpf*)
6885             LD="${LD-ld} -m elf64_s390"
6886             ;;
6887           sparc*-*linux*)
6888             LD="${LD-ld} -m elf64_sparc"
6889             ;;
6890         esac
6891         ;;
6892     esac
6893   fi
6894   rm -rf conftest*
6895   ;;
6896
6897 *-*-sco3.2v5*)
6898   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6899   SAVE_CFLAGS="$CFLAGS"
6900   CFLAGS="$CFLAGS -belf"
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6902 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6903 if ${lt_cv_cc_needs_belf+:} false; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   ac_ext=c
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h.  */
6914
6915 int
6916 main ()
6917 {
6918
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_link "$LINENO"; then :
6924   lt_cv_cc_needs_belf=yes
6925 else
6926   lt_cv_cc_needs_belf=no
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext \
6929     conftest$ac_exeext conftest.$ac_ext
6930      ac_ext=c
6931 ac_cpp='$CPP $CPPFLAGS'
6932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6935
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6938 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6939   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6940     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6941     CFLAGS="$SAVE_CFLAGS"
6942   fi
6943   ;;
6944 sparc*-*solaris*)
6945   # Find out which ABI we are using.
6946   echo 'int i;' > conftest.$ac_ext
6947   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948   (eval $ac_compile) 2>&5
6949   ac_status=$?
6950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951   test $ac_status = 0; }; then
6952     case `/usr/bin/file conftest.o` in
6953     *64-bit*)
6954       case $lt_cv_prog_gnu_ld in
6955       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6956       *)
6957         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6958           LD="${LD-ld} -64"
6959         fi
6960         ;;
6961       esac
6962       ;;
6963     esac
6964   fi
6965   rm -rf conftest*
6966   ;;
6967 esac
6968
6969 need_locks="$enable_libtool_lock"
6970
6971 if test -n "$ac_tool_prefix"; then
6972   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}mt; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6977   $as_echo_n "(cached) " >&6
6978 else
6979   if test -n "$MANIFEST_TOOL"; then
6980   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987     for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994   done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7000 if test -n "$MANIFEST_TOOL"; then
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7002 $as_echo "$MANIFEST_TOOL" >&6; }
7003 else
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008
7009 fi
7010 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7011   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7012   # Extract the first word of "mt", so it can be a program name with args.
7013 set dummy mt; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test -n "$ac_ct_MANIFEST_TOOL"; then
7020   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027     for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034   done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7040 if test -n "$ac_ct_MANIFEST_TOOL"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7042 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7049     MANIFEST_TOOL=":"
7050   else
7051     case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7058   fi
7059 else
7060   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7061 fi
7062
7063 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7065 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7066 if ${lt_cv_path_mainfest_tool+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   lt_cv_path_mainfest_tool=no
7070   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7071   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7072   cat conftest.err >&5
7073   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7074     lt_cv_path_mainfest_tool=yes
7075   fi
7076   rm -f conftest*
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7079 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7080 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7081   MANIFEST_TOOL=:
7082 fi
7083
7084
7085
7086
7087
7088
7089   case $host_os in
7090     rhapsody* | darwin*)
7091     if test -n "$ac_tool_prefix"; then
7092   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   if test -n "$DSYMUTIL"; then
7100   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107     for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114   done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7120 if test -n "$DSYMUTIL"; then
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7122 $as_echo "$DSYMUTIL" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 fi
7130 if test -z "$ac_cv_prog_DSYMUTIL"; then
7131   ac_ct_DSYMUTIL=$DSYMUTIL
7132   # Extract the first word of "dsymutil", so it can be a program name with args.
7133 set dummy dsymutil; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   if test -n "$ac_ct_DSYMUTIL"; then
7140   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147     for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154   done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7160 if test -n "$ac_ct_DSYMUTIL"; then
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7162 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7163 else
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168   if test "x$ac_ct_DSYMUTIL" = x; then
7169     DSYMUTIL=":"
7170   else
7171     case $cross_compiling:$ac_tool_warned in
7172 yes:)
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177     DSYMUTIL=$ac_ct_DSYMUTIL
7178   fi
7179 else
7180   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7181 fi
7182
7183     if test -n "$ac_tool_prefix"; then
7184   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_NMEDIT+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   if test -n "$NMEDIT"; then
7192   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199     for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 NMEDIT=$ac_cv_prog_NMEDIT
7212 if test -n "$NMEDIT"; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7214 $as_echo "$NMEDIT" >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221 fi
7222 if test -z "$ac_cv_prog_NMEDIT"; then
7223   ac_ct_NMEDIT=$NMEDIT
7224   # Extract the first word of "nmedit", so it can be a program name with args.
7225 set dummy nmedit; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231   if test -n "$ac_ct_NMEDIT"; then
7232   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239     for ac_exec_ext in '' $ac_executable_extensions; do
7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246   done
7247 IFS=$as_save_IFS
7248
7249 fi
7250 fi
7251 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7252 if test -n "$ac_ct_NMEDIT"; then
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7254 $as_echo "$ac_ct_NMEDIT" >&6; }
7255 else
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259
7260   if test "x$ac_ct_NMEDIT" = x; then
7261     NMEDIT=":"
7262   else
7263     case $cross_compiling:$ac_tool_warned in
7264 yes:)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269     NMEDIT=$ac_ct_NMEDIT
7270   fi
7271 else
7272   NMEDIT="$ac_cv_prog_NMEDIT"
7273 fi
7274
7275     if test -n "$ac_tool_prefix"; then
7276   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_LIPO+:} false; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283   if test -n "$LIPO"; then
7284   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291     for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298   done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 LIPO=$ac_cv_prog_LIPO
7304 if test -n "$LIPO"; then
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7306 $as_echo "$LIPO" >&6; }
7307 else
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312
7313 fi
7314 if test -z "$ac_cv_prog_LIPO"; then
7315   ac_ct_LIPO=$LIPO
7316   # Extract the first word of "lipo", so it can be a program name with args.
7317 set dummy lipo; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$ac_ct_LIPO"; then
7324   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_ac_ct_LIPO="lipo"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7344 if test -n "$ac_ct_LIPO"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7346 $as_echo "$ac_ct_LIPO" >&6; }
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352   if test "x$ac_ct_LIPO" = x; then
7353     LIPO=":"
7354   else
7355     case $cross_compiling:$ac_tool_warned in
7356 yes:)
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359 ac_tool_warned=yes ;;
7360 esac
7361     LIPO=$ac_ct_LIPO
7362   fi
7363 else
7364   LIPO="$ac_cv_prog_LIPO"
7365 fi
7366
7367     if test -n "$ac_tool_prefix"; then
7368   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}otool; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_OTOOL+:} false; then :
7373   $as_echo_n "(cached) " >&6
7374 else
7375   if test -n "$OTOOL"; then
7376   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383     for ac_exec_ext in '' $ac_executable_extensions; do
7384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 OTOOL=$ac_cv_prog_OTOOL
7396 if test -n "$OTOOL"; then
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7398 $as_echo "$OTOOL" >&6; }
7399 else
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405 fi
7406 if test -z "$ac_cv_prog_OTOOL"; then
7407   ac_ct_OTOOL=$OTOOL
7408   # Extract the first word of "otool", so it can be a program name with args.
7409 set dummy otool; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test -n "$ac_ct_OTOOL"; then
7416   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423     for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_prog_ac_ct_OTOOL="otool"
7426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430   done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7436 if test -n "$ac_ct_OTOOL"; then
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7438 $as_echo "$ac_ct_OTOOL" >&6; }
7439 else
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444   if test "x$ac_ct_OTOOL" = x; then
7445     OTOOL=":"
7446   else
7447     case $cross_compiling:$ac_tool_warned in
7448 yes:)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451 ac_tool_warned=yes ;;
7452 esac
7453     OTOOL=$ac_ct_OTOOL
7454   fi
7455 else
7456   OTOOL="$ac_cv_prog_OTOOL"
7457 fi
7458
7459     if test -n "$ac_tool_prefix"; then
7460   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_OTOOL64+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   if test -n "$OTOOL64"; then
7468   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482   done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 OTOOL64=$ac_cv_prog_OTOOL64
7488 if test -n "$OTOOL64"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7490 $as_echo "$OTOOL64" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_OTOOL64"; then
7499   ac_ct_OTOOL64=$OTOOL64
7500   # Extract the first word of "otool64", so it can be a program name with args.
7501 set dummy otool64; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   if test -n "$ac_ct_OTOOL64"; then
7508   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_prog_ac_ct_OTOOL64="otool64"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7528 if test -n "$ac_ct_OTOOL64"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7530 $as_echo "$ac_ct_OTOOL64" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536   if test "x$ac_ct_OTOOL64" = x; then
7537     OTOOL64=":"
7538   else
7539     case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545     OTOOL64=$ac_ct_OTOOL64
7546   fi
7547 else
7548   OTOOL64="$ac_cv_prog_OTOOL64"
7549 fi
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
7576
7577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7578 $as_echo_n "checking for -single_module linker flag... " >&6; }
7579 if ${lt_cv_apple_cc_single_mod+:} false; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   lt_cv_apple_cc_single_mod=no
7583       if test -z "${LT_MULTI_MODULE}"; then
7584         # By default we will add the -single_module flag. You can override
7585         # by either setting the environment variable LT_MULTI_MODULE
7586         # non-empty at configure time, or by adding -multi_module to the
7587         # link flags.
7588         rm -rf libconftest.dylib*
7589         echo "int foo(void){return 1;}" > conftest.c
7590         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7591 -dynamiclib -Wl,-single_module conftest.c" >&5
7592         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7594         _lt_result=$?
7595         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7596           lt_cv_apple_cc_single_mod=yes
7597         else
7598           cat conftest.err >&5
7599         fi
7600         rm -rf libconftest.dylib*
7601         rm -f conftest.*
7602       fi
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7605 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7607 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7608 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   lt_cv_ld_exported_symbols_list=no
7612       save_LDFLAGS=$LDFLAGS
7613       echo "_main" > conftest.sym
7614       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7615       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h.  */
7617
7618 int
7619 main ()
7620 {
7621
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_link "$LINENO"; then :
7627   lt_cv_ld_exported_symbols_list=yes
7628 else
7629   lt_cv_ld_exported_symbols_list=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext \
7632     conftest$ac_exeext conftest.$ac_ext
7633         LDFLAGS="$save_LDFLAGS"
7634
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7637 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7639 $as_echo_n "checking for -force_load linker flag... " >&6; }
7640 if ${lt_cv_ld_force_load+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   lt_cv_ld_force_load=no
7644       cat > conftest.c << _LT_EOF
7645 int forced_loaded() { return 2;}
7646 _LT_EOF
7647       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7648       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7649       echo "$AR cru libconftest.a conftest.o" >&5
7650       $AR cru libconftest.a conftest.o 2>&5
7651       echo "$RANLIB libconftest.a" >&5
7652       $RANLIB libconftest.a 2>&5
7653       cat > conftest.c << _LT_EOF
7654 int main() { return 0;}
7655 _LT_EOF
7656       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7657       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7658       _lt_result=$?
7659       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7660         lt_cv_ld_force_load=yes
7661       else
7662         cat conftest.err >&5
7663       fi
7664         rm -f conftest.err libconftest.a conftest conftest.c
7665         rm -rf conftest.dSYM
7666
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7669 $as_echo "$lt_cv_ld_force_load" >&6; }
7670     case $host_os in
7671     rhapsody* | darwin1.[012])
7672       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7673     darwin1.*)
7674       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675     darwin*) # darwin 5.x on
7676       # if running on 10.5 or later, the deployment target defaults
7677       # to the OS version, if on x86, and 10.4, the deployment
7678       # target defaults to 10.4. Don't you love it?
7679       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7680         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7681           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682         10.[012]*)
7683           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7684         10.*)
7685           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7686       esac
7687     ;;
7688   esac
7689     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7690       _lt_dar_single_mod='$single_module'
7691     fi
7692     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7693       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7694     else
7695       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7696     fi
7697     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7698       _lt_dsymutil='~$DSYMUTIL $lib || :'
7699     else
7700       _lt_dsymutil=
7701     fi
7702     ;;
7703   esac
7704
7705 ac_ext=c
7706 ac_cpp='$CPP $CPPFLAGS'
7707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7712 # On Suns, sometimes $CPP names a directory.
7713 if test -n "$CPP" && test -d "$CPP"; then
7714   CPP=
7715 fi
7716 if test -z "$CPP"; then
7717   if ${ac_cv_prog_CPP+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720       # Double quotes because CPP needs to be expanded
7721     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7722     do
7723       ac_preproc_ok=false
7724 for ac_c_preproc_warn_flag in '' yes
7725 do
7726   # Use a header file that comes with gcc, so configuring glibc
7727   # with a fresh cross-compiler works.
7728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729   # <limits.h> exists even on freestanding compilers.
7730   # On the NeXT, cc -E runs the code through the compiler's parser,
7731   # not just through cpp. "Syntax error" is here to catch this case.
7732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h.  */
7734 #ifdef __STDC__
7735 # include <limits.h>
7736 #else
7737 # include <assert.h>
7738 #endif
7739                      Syntax error
7740 _ACEOF
7741 if ac_fn_c_try_cpp "$LINENO"; then :
7742
7743 else
7744   # Broken: fails on valid input.
7745 continue
7746 fi
7747 rm -f conftest.err conftest.i conftest.$ac_ext
7748
7749   # OK, works on sane cases.  Now check whether nonexistent headers
7750   # can be detected and how.
7751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h.  */
7753 #include <ac_nonexistent.h>
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756   # Broken: success on invalid input.
7757 continue
7758 else
7759   # Passes both tests.
7760 ac_preproc_ok=:
7761 break
7762 fi
7763 rm -f conftest.err conftest.i conftest.$ac_ext
7764
7765 done
7766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7767 rm -f conftest.i conftest.err conftest.$ac_ext
7768 if $ac_preproc_ok; then :
7769   break
7770 fi
7771
7772     done
7773     ac_cv_prog_CPP=$CPP
7774
7775 fi
7776   CPP=$ac_cv_prog_CPP
7777 else
7778   ac_cv_prog_CPP=$CPP
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7781 $as_echo "$CPP" >&6; }
7782 ac_preproc_ok=false
7783 for ac_c_preproc_warn_flag in '' yes
7784 do
7785   # Use a header file that comes with gcc, so configuring glibc
7786   # with a fresh cross-compiler works.
7787   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7788   # <limits.h> exists even on freestanding compilers.
7789   # On the NeXT, cc -E runs the code through the compiler's parser,
7790   # not just through cpp. "Syntax error" is here to catch this case.
7791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h.  */
7793 #ifdef __STDC__
7794 # include <limits.h>
7795 #else
7796 # include <assert.h>
7797 #endif
7798                      Syntax error
7799 _ACEOF
7800 if ac_fn_c_try_cpp "$LINENO"; then :
7801
7802 else
7803   # Broken: fails on valid input.
7804 continue
7805 fi
7806 rm -f conftest.err conftest.i conftest.$ac_ext
7807
7808   # OK, works on sane cases.  Now check whether nonexistent headers
7809   # can be detected and how.
7810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h.  */
7812 #include <ac_nonexistent.h>
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815   # Broken: success on invalid input.
7816 continue
7817 else
7818   # Passes both tests.
7819 ac_preproc_ok=:
7820 break
7821 fi
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7823
7824 done
7825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7826 rm -f conftest.i conftest.err conftest.$ac_ext
7827 if $ac_preproc_ok; then :
7828
7829 else
7830   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7832 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7833 See \`config.log' for more details" "$LINENO" 5; }
7834 fi
7835
7836 ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7844 $as_echo_n "checking for ANSI C header files... " >&6; }
7845 if ${ac_cv_header_stdc+:} false; then :
7846   $as_echo_n "(cached) " >&6
7847 else
7848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h.  */
7850 #include <stdlib.h>
7851 #include <stdarg.h>
7852 #include <string.h>
7853 #include <float.h>
7854
7855 int
7856 main ()
7857 {
7858
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864   ac_cv_header_stdc=yes
7865 else
7866   ac_cv_header_stdc=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869
7870 if test $ac_cv_header_stdc = yes; then
7871   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h.  */
7874 #include <string.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "memchr" >/dev/null 2>&1; then :
7879
7880 else
7881   ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h.  */
7891 #include <stdlib.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "free" >/dev/null 2>&1; then :
7896
7897 else
7898   ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906   if test "$cross_compiling" = yes; then :
7907   :
7908 else
7909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h.  */
7911 #include <ctype.h>
7912 #include <stdlib.h>
7913 #if ((' ' & 0x0FF) == 0x020)
7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7916 #else
7917 # define ISLOWER(c) \
7918                    (('a' <= (c) && (c) <= 'i') \
7919                      || ('j' <= (c) && (c) <= 'r') \
7920                      || ('s' <= (c) && (c) <= 'z'))
7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7922 #endif
7923
7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925 int
7926 main ()
7927 {
7928   int i;
7929   for (i = 0; i < 256; i++)
7930     if (XOR (islower (i), ISLOWER (i))
7931         || toupper (i) != TOUPPER (i))
7932       return 2;
7933   return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_run "$LINENO"; then :
7937
7938 else
7939   ac_cv_header_stdc=no
7940 fi
7941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7942   conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 fi
7944
7945 fi
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7948 $as_echo "$ac_cv_header_stdc" >&6; }
7949 if test $ac_cv_header_stdc = yes; then
7950
7951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7952
7953 fi
7954
7955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7957                   inttypes.h stdint.h unistd.h
7958 do :
7959   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7961 "
7962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7963   cat >>confdefs.h <<_ACEOF
7964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965 _ACEOF
7966
7967 fi
7968
7969 done
7970
7971
7972 for ac_header in dlfcn.h
7973 do :
7974   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7975 "
7976 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7977   cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DLFCN_H 1
7979 _ACEOF
7980
7981 fi
7982
7983 done
7984
7985
7986
7987
7988
7989 # Set options
7990
7991
7992
7993         enable_dlopen=no
7994
7995
7996   enable_win32_dll=no
7997
7998
7999             # Check whether --enable-shared was given.
8000 if test "${enable_shared+set}" = set; then :
8001   enableval=$enable_shared; p=${PACKAGE-default}
8002     case $enableval in
8003     yes) enable_shared=yes ;;
8004     no) enable_shared=no ;;
8005     *)
8006       enable_shared=no
8007       # Look at the argument we got.  We use all the common list separators.
8008       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009       for pkg in $enableval; do
8010         IFS="$lt_save_ifs"
8011         if test "X$pkg" = "X$p"; then
8012           enable_shared=yes
8013         fi
8014       done
8015       IFS="$lt_save_ifs"
8016       ;;
8017     esac
8018 else
8019   enable_shared=yes
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030   # Check whether --enable-static was given.
8031 if test "${enable_static+set}" = set; then :
8032   enableval=$enable_static; p=${PACKAGE-default}
8033     case $enableval in
8034     yes) enable_static=yes ;;
8035     no) enable_static=no ;;
8036     *)
8037      enable_static=no
8038       # Look at the argument we got.  We use all the common list separators.
8039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8040       for pkg in $enableval; do
8041         IFS="$lt_save_ifs"
8042         if test "X$pkg" = "X$p"; then
8043           enable_static=yes
8044         fi
8045       done
8046       IFS="$lt_save_ifs"
8047       ;;
8048     esac
8049 else
8050   enable_static=yes
8051 fi
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 # Check whether --with-pic was given.
8063 if test "${with_pic+set}" = set; then :
8064   withval=$with_pic; pic_mode="$withval"
8065 else
8066   pic_mode=default
8067 fi
8068
8069
8070 test -z "$pic_mode" && pic_mode=default
8071
8072
8073
8074
8075
8076
8077
8078   # Check whether --enable-fast-install was given.
8079 if test "${enable_fast_install+set}" = set; then :
8080   enableval=$enable_fast_install; p=${PACKAGE-default}
8081     case $enableval in
8082     yes) enable_fast_install=yes ;;
8083     no) enable_fast_install=no ;;
8084     *)
8085       enable_fast_install=no
8086       # Look at the argument we got.  We use all the common list separators.
8087       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8088       for pkg in $enableval; do
8089         IFS="$lt_save_ifs"
8090         if test "X$pkg" = "X$p"; then
8091           enable_fast_install=yes
8092         fi
8093       done
8094       IFS="$lt_save_ifs"
8095       ;;
8096     esac
8097 else
8098   enable_fast_install=yes
8099 fi
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111 # This can be used to rebuild libtool when needed
8112 LIBTOOL_DEPS="$ltmain"
8113
8114 # Always use our own libtool.
8115 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8141
8142 test -z "$LN_S" && LN_S="ln -s"
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157 if test -n "${ZSH_VERSION+set}" ; then
8158    setopt NO_GLOB_SUBST
8159 fi
8160
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8162 $as_echo_n "checking for objdir... " >&6; }
8163 if ${lt_cv_objdir+:} false; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   rm -f .libs 2>/dev/null
8167 mkdir .libs 2>/dev/null
8168 if test -d .libs; then
8169   lt_cv_objdir=.libs
8170 else
8171   # MS-DOS does not allow filenames that begin with a dot.
8172   lt_cv_objdir=_libs
8173 fi
8174 rmdir .libs 2>/dev/null
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8177 $as_echo "$lt_cv_objdir" >&6; }
8178 objdir=$lt_cv_objdir
8179
8180
8181
8182
8183
8184 cat >>confdefs.h <<_ACEOF
8185 #define LT_OBJDIR "$lt_cv_objdir/"
8186 _ACEOF
8187
8188
8189
8190
8191 case $host_os in
8192 aix3*)
8193   # AIX sometimes has problems with the GCC collect2 program.  For some
8194   # reason, if we set the COLLECT_NAMES environment variable, the problems
8195   # vanish in a puff of smoke.
8196   if test "X${COLLECT_NAMES+set}" != Xset; then
8197     COLLECT_NAMES=
8198     export COLLECT_NAMES
8199   fi
8200   ;;
8201 esac
8202
8203 # Global variables:
8204 ofile=libtool
8205 can_build_shared=yes
8206
8207 # All known linkers require a `.a' archive for static linking (except MSVC,
8208 # which needs '.lib').
8209 libext=a
8210
8211 with_gnu_ld="$lt_cv_prog_gnu_ld"
8212
8213 old_CC="$CC"
8214 old_CFLAGS="$CFLAGS"
8215
8216 # Set sane defaults for various variables
8217 test -z "$CC" && CC=cc
8218 test -z "$LTCC" && LTCC=$CC
8219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8220 test -z "$LD" && LD=ld
8221 test -z "$ac_objext" && ac_objext=o
8222
8223 for cc_temp in $compiler""; do
8224   case $cc_temp in
8225     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8226     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8227     \-*) ;;
8228     *) break;;
8229   esac
8230 done
8231 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8232
8233
8234 # Only perform the check for file, if the check method requires it
8235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8236 case $deplibs_check_method in
8237 file_magic*)
8238   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8240 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   case $MAGIC_CMD in
8245 [\\/*] |  ?:[\\/]*)
8246   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8247   ;;
8248 *)
8249   lt_save_MAGIC_CMD="$MAGIC_CMD"
8250   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8252   for ac_dir in $ac_dummy; do
8253     IFS="$lt_save_ifs"
8254     test -z "$ac_dir" && ac_dir=.
8255     if test -f $ac_dir/${ac_tool_prefix}file; then
8256       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8257       if test -n "$file_magic_test_file"; then
8258         case $deplibs_check_method in
8259         "file_magic "*)
8260           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8261           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8263             $EGREP "$file_magic_regex" > /dev/null; then
8264             :
8265           else
8266             cat <<_LT_EOF 1>&2
8267
8268 *** Warning: the command libtool uses to detect shared libraries,
8269 *** $file_magic_cmd, produces output that libtool cannot recognize.
8270 *** The result is that libtool may fail to recognize shared libraries
8271 *** as such.  This will affect the creation of libtool libraries that
8272 *** depend on shared libraries, but programs linked with such libtool
8273 *** libraries will work regardless of this problem.  Nevertheless, you
8274 *** may want to report the problem to your system manager and/or to
8275 *** bug-libtool@gnu.org
8276
8277 _LT_EOF
8278           fi ;;
8279         esac
8280       fi
8281       break
8282     fi
8283   done
8284   IFS="$lt_save_ifs"
8285   MAGIC_CMD="$lt_save_MAGIC_CMD"
8286   ;;
8287 esac
8288 fi
8289
8290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291 if test -n "$MAGIC_CMD"; then
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8293 $as_echo "$MAGIC_CMD" >&6; }
8294 else
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300
8301
8302
8303 if test -z "$lt_cv_path_MAGIC_CMD"; then
8304   if test -n "$ac_tool_prefix"; then
8305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8306 $as_echo_n "checking for file... " >&6; }
8307 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   case $MAGIC_CMD in
8311 [\\/*] |  ?:[\\/]*)
8312   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8313   ;;
8314 *)
8315   lt_save_MAGIC_CMD="$MAGIC_CMD"
8316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8317   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8318   for ac_dir in $ac_dummy; do
8319     IFS="$lt_save_ifs"
8320     test -z "$ac_dir" && ac_dir=.
8321     if test -f $ac_dir/file; then
8322       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8323       if test -n "$file_magic_test_file"; then
8324         case $deplibs_check_method in
8325         "file_magic "*)
8326           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8327           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8329             $EGREP "$file_magic_regex" > /dev/null; then
8330             :
8331           else
8332             cat <<_LT_EOF 1>&2
8333
8334 *** Warning: the command libtool uses to detect shared libraries,
8335 *** $file_magic_cmd, produces output that libtool cannot recognize.
8336 *** The result is that libtool may fail to recognize shared libraries
8337 *** as such.  This will affect the creation of libtool libraries that
8338 *** depend on shared libraries, but programs linked with such libtool
8339 *** libraries will work regardless of this problem.  Nevertheless, you
8340 *** may want to report the problem to your system manager and/or to
8341 *** bug-libtool@gnu.org
8342
8343 _LT_EOF
8344           fi ;;
8345         esac
8346       fi
8347       break
8348     fi
8349   done
8350   IFS="$lt_save_ifs"
8351   MAGIC_CMD="$lt_save_MAGIC_CMD"
8352   ;;
8353 esac
8354 fi
8355
8356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357 if test -n "$MAGIC_CMD"; then
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8359 $as_echo "$MAGIC_CMD" >&6; }
8360 else
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 fi
8364
8365
8366   else
8367     MAGIC_CMD=:
8368   fi
8369 fi
8370
8371   fi
8372   ;;
8373 esac
8374
8375 # Use C for the default configuration in the libtool script
8376
8377 lt_save_CC="$CC"
8378 ac_ext=c
8379 ac_cpp='$CPP $CPPFLAGS'
8380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8383
8384
8385 # Source file extension for C test sources.
8386 ac_ext=c
8387
8388 # Object file extension for compiled C test sources.
8389 objext=o
8390 objext=$objext
8391
8392 # Code to be used in simple compile tests
8393 lt_simple_compile_test_code="int some_variable = 0;"
8394
8395 # Code to be used in simple link tests
8396 lt_simple_link_test_code='int main(){return(0);}'
8397
8398
8399
8400
8401
8402
8403
8404 # If no C compiler was specified, use CC.
8405 LTCC=${LTCC-"$CC"}
8406
8407 # If no C compiler flags were specified, use CFLAGS.
8408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8409
8410 # Allow CC to be a program name with arguments.
8411 compiler=$CC
8412
8413 # Save the default compiler, since it gets overwritten when the other
8414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8415 compiler_DEFAULT=$CC
8416
8417 # save warnings/boilerplate of simple test code
8418 ac_outfile=conftest.$ac_objext
8419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8421 _lt_compiler_boilerplate=`cat conftest.err`
8422 $RM conftest*
8423
8424 ac_outfile=conftest.$ac_objext
8425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8427 _lt_linker_boilerplate=`cat conftest.err`
8428 $RM -r conftest*
8429
8430
8431 ## CAVEAT EMPTOR:
8432 ## There is no encapsulation within the following macros, do not change
8433 ## the running order or otherwise move them around unless you know exactly
8434 ## what you are doing...
8435 if test -n "$compiler"; then
8436
8437 lt_prog_compiler_no_builtin_flag=
8438
8439 if test "$GCC" = yes; then
8440   case $cc_basename in
8441   nvcc*)
8442     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8443   *)
8444     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8445   esac
8446
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8449 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   lt_cv_prog_compiler_rtti_exceptions=no
8453    ac_outfile=conftest.$ac_objext
8454    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455    lt_compiler_flag="-fno-rtti -fno-exceptions"
8456    # Insert the option either (1) after the last *FLAGS variable, or
8457    # (2) before a word containing "conftest.", or (3) at the end.
8458    # Note that $ac_compile itself does not contain backslashes and begins
8459    # with a dollar sign (not a hyphen), so the echo should work correctly.
8460    # The option is referenced via a variable to avoid confusing sed.
8461    lt_compile=`echo "$ac_compile" | $SED \
8462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464    -e 's:$: $lt_compiler_flag:'`
8465    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466    (eval "$lt_compile" 2>conftest.err)
8467    ac_status=$?
8468    cat conftest.err >&5
8469    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470    if (exit $ac_status) && test -s "$ac_outfile"; then
8471      # The compiler can only warn and ignore the option if not recognized
8472      # So say no if there are warnings other than the usual output.
8473      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8474      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476        lt_cv_prog_compiler_rtti_exceptions=yes
8477      fi
8478    fi
8479    $RM conftest*
8480
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8484
8485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8486     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8487 else
8488     :
8489 fi
8490
8491 fi
8492
8493
8494
8495
8496
8497
8498   lt_prog_compiler_wl=
8499 lt_prog_compiler_pic=
8500 lt_prog_compiler_static=
8501
8502
8503   if test "$GCC" = yes; then
8504     lt_prog_compiler_wl='-Wl,'
8505     lt_prog_compiler_static='-static'
8506
8507     case $host_os in
8508       aix*)
8509       # All AIX code is PIC.
8510       if test "$host_cpu" = ia64; then
8511         # AIX 5 now supports IA64 processor
8512         lt_prog_compiler_static='-Bstatic'
8513       fi
8514       ;;
8515
8516     amigaos*)
8517       case $host_cpu in
8518       powerpc)
8519             # see comment about AmigaOS4 .so support
8520             lt_prog_compiler_pic='-fPIC'
8521         ;;
8522       m68k)
8523             # FIXME: we need at least 68020 code to build shared libraries, but
8524             # adding the `-m68020' flag to GCC prevents building anything better,
8525             # like `-m68040'.
8526             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8527         ;;
8528       esac
8529       ;;
8530
8531     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8532       # PIC is the default for these OSes.
8533       ;;
8534
8535     mingw* | cygwin* | pw32* | os2* | cegcc*)
8536       # This hack is so that the source file can tell whether it is being
8537       # built for inclusion in a dll (and should export symbols for example).
8538       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8539       # (--disable-auto-import) libraries
8540       lt_prog_compiler_pic='-DDLL_EXPORT'
8541       ;;
8542
8543     darwin* | rhapsody*)
8544       # PIC is the default on this platform
8545       # Common symbols not allowed in MH_DYLIB files
8546       lt_prog_compiler_pic='-fno-common'
8547       ;;
8548
8549     haiku*)
8550       # PIC is the default for Haiku.
8551       # The "-static" flag exists, but is broken.
8552       lt_prog_compiler_static=
8553       ;;
8554
8555     hpux*)
8556       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8557       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8558       # sets the default TLS model and affects inlining.
8559       case $host_cpu in
8560       hppa*64*)
8561         # +Z the default
8562         ;;
8563       *)
8564         lt_prog_compiler_pic='-fPIC'
8565         ;;
8566       esac
8567       ;;
8568
8569     interix[3-9]*)
8570       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8571       # Instead, we relocate shared libraries at runtime.
8572       ;;
8573
8574     msdosdjgpp*)
8575       # Just because we use GCC doesn't mean we suddenly get shared libraries
8576       # on systems that don't support them.
8577       lt_prog_compiler_can_build_shared=no
8578       enable_shared=no
8579       ;;
8580
8581     *nto* | *qnx*)
8582       # QNX uses GNU C++, but need to define -shared option too, otherwise
8583       # it will coredump.
8584       lt_prog_compiler_pic='-fPIC -shared'
8585       ;;
8586
8587     sysv4*MP*)
8588       if test -d /usr/nec; then
8589         lt_prog_compiler_pic=-Kconform_pic
8590       fi
8591       ;;
8592
8593     *)
8594       lt_prog_compiler_pic='-fPIC'
8595       ;;
8596     esac
8597
8598     case $cc_basename in
8599     nvcc*) # Cuda Compiler Driver 2.2
8600       lt_prog_compiler_wl='-Xlinker '
8601       lt_prog_compiler_pic='-Xcompiler -fPIC'
8602       ;;
8603     esac
8604   else
8605     # PORTME Check for flag to pass linker flags through the system compiler.
8606     case $host_os in
8607     aix*)
8608       lt_prog_compiler_wl='-Wl,'
8609       if test "$host_cpu" = ia64; then
8610         # AIX 5 now supports IA64 processor
8611         lt_prog_compiler_static='-Bstatic'
8612       else
8613         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8614       fi
8615       ;;
8616
8617     mingw* | cygwin* | pw32* | os2* | cegcc*)
8618       # This hack is so that the source file can tell whether it is being
8619       # built for inclusion in a dll (and should export symbols for example).
8620       lt_prog_compiler_pic='-DDLL_EXPORT'
8621       ;;
8622
8623     hpux9* | hpux10* | hpux11*)
8624       lt_prog_compiler_wl='-Wl,'
8625       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8626       # not for PA HP-UX.
8627       case $host_cpu in
8628       hppa*64*|ia64*)
8629         # +Z the default
8630         ;;
8631       *)
8632         lt_prog_compiler_pic='+Z'
8633         ;;
8634       esac
8635       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8636       lt_prog_compiler_static='${wl}-a ${wl}archive'
8637       ;;
8638
8639     irix5* | irix6* | nonstopux*)
8640       lt_prog_compiler_wl='-Wl,'
8641       # PIC (with -KPIC) is the default.
8642       lt_prog_compiler_static='-non_shared'
8643       ;;
8644
8645     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8646       case $cc_basename in
8647       # old Intel for x86_64 which still supported -KPIC.
8648       ecc*)
8649         lt_prog_compiler_wl='-Wl,'
8650         lt_prog_compiler_pic='-KPIC'
8651         lt_prog_compiler_static='-static'
8652         ;;
8653       # icc used to be incompatible with GCC.
8654       # ICC 10 doesn't accept -KPIC any more.
8655       icc* | ifort*)
8656         lt_prog_compiler_wl='-Wl,'
8657         lt_prog_compiler_pic='-fPIC'
8658         lt_prog_compiler_static='-static'
8659         ;;
8660       # Lahey Fortran 8.1.
8661       lf95*)
8662         lt_prog_compiler_wl='-Wl,'
8663         lt_prog_compiler_pic='--shared'
8664         lt_prog_compiler_static='--static'
8665         ;;
8666       nagfor*)
8667         # NAG Fortran compiler
8668         lt_prog_compiler_wl='-Wl,-Wl,,'
8669         lt_prog_compiler_pic='-PIC'
8670         lt_prog_compiler_static='-Bstatic'
8671         ;;
8672       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8673         # Portland Group compilers (*not* the Pentium gcc compiler,
8674         # which looks to be a dead project)
8675         lt_prog_compiler_wl='-Wl,'
8676         lt_prog_compiler_pic='-fpic'
8677         lt_prog_compiler_static='-Bstatic'
8678         ;;
8679       ccc*)
8680         lt_prog_compiler_wl='-Wl,'
8681         # All Alpha code is PIC.
8682         lt_prog_compiler_static='-non_shared'
8683         ;;
8684       xl* | bgxl* | bgf* | mpixl*)
8685         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8686         lt_prog_compiler_wl='-Wl,'
8687         lt_prog_compiler_pic='-qpic'
8688         lt_prog_compiler_static='-qstaticlink'
8689         ;;
8690       *)
8691         case `$CC -V 2>&1 | sed 5q` in
8692         *Sun\ F* | *Sun*Fortran*)
8693           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8694           lt_prog_compiler_pic='-KPIC'
8695           lt_prog_compiler_static='-Bstatic'
8696           lt_prog_compiler_wl=''
8697           ;;
8698         *Sun\ C*)
8699           # Sun C 5.9
8700           lt_prog_compiler_pic='-KPIC'
8701           lt_prog_compiler_static='-Bstatic'
8702           lt_prog_compiler_wl='-Wl,'
8703           ;;
8704         esac
8705         ;;
8706       esac
8707       ;;
8708
8709     newsos6)
8710       lt_prog_compiler_pic='-KPIC'
8711       lt_prog_compiler_static='-Bstatic'
8712       ;;
8713
8714     *nto* | *qnx*)
8715       # QNX uses GNU C++, but need to define -shared option too, otherwise
8716       # it will coredump.
8717       lt_prog_compiler_pic='-fPIC -shared'
8718       ;;
8719
8720     osf3* | osf4* | osf5*)
8721       lt_prog_compiler_wl='-Wl,'
8722       # All OSF/1 code is PIC.
8723       lt_prog_compiler_static='-non_shared'
8724       ;;
8725
8726     rdos*)
8727       lt_prog_compiler_static='-non_shared'
8728       ;;
8729
8730     solaris*)
8731       lt_prog_compiler_pic='-KPIC'
8732       lt_prog_compiler_static='-Bstatic'
8733       case $cc_basename in
8734       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8735         lt_prog_compiler_wl='-Qoption ld ';;
8736       *)
8737         lt_prog_compiler_wl='-Wl,';;
8738       esac
8739       ;;
8740
8741     sunos4*)
8742       lt_prog_compiler_wl='-Qoption ld '
8743       lt_prog_compiler_pic='-PIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       ;;
8746
8747     sysv4 | sysv4.2uw2* | sysv4.3*)
8748       lt_prog_compiler_wl='-Wl,'
8749       lt_prog_compiler_pic='-KPIC'
8750       lt_prog_compiler_static='-Bstatic'
8751       ;;
8752
8753     sysv4*MP*)
8754       if test -d /usr/nec ;then
8755         lt_prog_compiler_pic='-Kconform_pic'
8756         lt_prog_compiler_static='-Bstatic'
8757       fi
8758       ;;
8759
8760     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8761       lt_prog_compiler_wl='-Wl,'
8762       lt_prog_compiler_pic='-KPIC'
8763       lt_prog_compiler_static='-Bstatic'
8764       ;;
8765
8766     unicos*)
8767       lt_prog_compiler_wl='-Wl,'
8768       lt_prog_compiler_can_build_shared=no
8769       ;;
8770
8771     uts4*)
8772       lt_prog_compiler_pic='-pic'
8773       lt_prog_compiler_static='-Bstatic'
8774       ;;
8775
8776     *)
8777       lt_prog_compiler_can_build_shared=no
8778       ;;
8779     esac
8780   fi
8781
8782 case $host_os in
8783   # For platforms which do not support PIC, -DPIC is meaningless:
8784   *djgpp*)
8785     lt_prog_compiler_pic=
8786     ;;
8787   *)
8788     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8789     ;;
8790 esac
8791
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8793 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8794 if ${lt_cv_prog_compiler_pic+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8800 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8801 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8802
8803 #
8804 # Check to make sure the PIC flag actually works.
8805 #
8806 if test -n "$lt_prog_compiler_pic"; then
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8808 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8809 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   lt_cv_prog_compiler_pic_works=no
8813    ac_outfile=conftest.$ac_objext
8814    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8816    # Insert the option either (1) after the last *FLAGS variable, or
8817    # (2) before a word containing "conftest.", or (3) at the end.
8818    # Note that $ac_compile itself does not contain backslashes and begins
8819    # with a dollar sign (not a hyphen), so the echo should work correctly.
8820    # The option is referenced via a variable to avoid confusing sed.
8821    lt_compile=`echo "$ac_compile" | $SED \
8822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824    -e 's:$: $lt_compiler_flag:'`
8825    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826    (eval "$lt_compile" 2>conftest.err)
8827    ac_status=$?
8828    cat conftest.err >&5
8829    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830    if (exit $ac_status) && test -s "$ac_outfile"; then
8831      # The compiler can only warn and ignore the option if not recognized
8832      # So say no if there are warnings other than the usual output.
8833      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8834      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8835      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8836        lt_cv_prog_compiler_pic_works=yes
8837      fi
8838    fi
8839    $RM conftest*
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8843 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8844
8845 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8846     case $lt_prog_compiler_pic in
8847      "" | " "*) ;;
8848      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8849      esac
8850 else
8851     lt_prog_compiler_pic=
8852      lt_prog_compiler_can_build_shared=no
8853 fi
8854
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867 #
8868 # Check to make sure the static flag actually works.
8869 #
8870 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8872 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8873 if ${lt_cv_prog_compiler_static_works+:} false; then :
8874   $as_echo_n "(cached) " >&6
8875 else
8876   lt_cv_prog_compiler_static_works=no
8877    save_LDFLAGS="$LDFLAGS"
8878    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8879    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8880    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8881      # The linker can only warn and ignore the option if not recognized
8882      # So say no if there are warnings
8883      if test -s conftest.err; then
8884        # Append any errors to the config.log.
8885        cat conftest.err 1>&5
8886        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8887        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8888        if diff conftest.exp conftest.er2 >/dev/null; then
8889          lt_cv_prog_compiler_static_works=yes
8890        fi
8891      else
8892        lt_cv_prog_compiler_static_works=yes
8893      fi
8894    fi
8895    $RM -r conftest*
8896    LDFLAGS="$save_LDFLAGS"
8897
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8900 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8901
8902 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8903     :
8904 else
8905     lt_prog_compiler_static=
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8916 if ${lt_cv_prog_compiler_c_o+:} false; then :
8917   $as_echo_n "(cached) " >&6
8918 else
8919   lt_cv_prog_compiler_c_o=no
8920    $RM -r conftest 2>/dev/null
8921    mkdir conftest
8922    cd conftest
8923    mkdir out
8924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925
8926    lt_compiler_flag="-o out/conftest2.$ac_objext"
8927    # Insert the option either (1) after the last *FLAGS variable, or
8928    # (2) before a word containing "conftest.", or (3) at the end.
8929    # Note that $ac_compile itself does not contain backslashes and begins
8930    # with a dollar sign (not a hyphen), so the echo should work correctly.
8931    lt_compile=`echo "$ac_compile" | $SED \
8932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934    -e 's:$: $lt_compiler_flag:'`
8935    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936    (eval "$lt_compile" 2>out/conftest.err)
8937    ac_status=$?
8938    cat out/conftest.err >&5
8939    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8941    then
8942      # The compiler can only warn and ignore the option if not recognized
8943      # So say no if there are warnings
8944      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8945      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8946      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8947        lt_cv_prog_compiler_c_o=yes
8948      fi
8949    fi
8950    chmod u+w . 2>&5
8951    $RM conftest*
8952    # SGI C++ compiler will create directory out/ii_files/ for
8953    # template instantiation
8954    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8955    $RM out/* && rmdir out
8956    cd ..
8957    $RM -r conftest
8958    $RM conftest*
8959
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8962 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8963
8964
8965
8966
8967
8968
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8971 if ${lt_cv_prog_compiler_c_o+:} false; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   lt_cv_prog_compiler_c_o=no
8975    $RM -r conftest 2>/dev/null
8976    mkdir conftest
8977    cd conftest
8978    mkdir out
8979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980
8981    lt_compiler_flag="-o out/conftest2.$ac_objext"
8982    # Insert the option either (1) after the last *FLAGS variable, or
8983    # (2) before a word containing "conftest.", or (3) at the end.
8984    # Note that $ac_compile itself does not contain backslashes and begins
8985    # with a dollar sign (not a hyphen), so the echo should work correctly.
8986    lt_compile=`echo "$ac_compile" | $SED \
8987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989    -e 's:$: $lt_compiler_flag:'`
8990    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991    (eval "$lt_compile" 2>out/conftest.err)
8992    ac_status=$?
8993    cat out/conftest.err >&5
8994    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8996    then
8997      # The compiler can only warn and ignore the option if not recognized
8998      # So say no if there are warnings
8999      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9000      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9001      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9002        lt_cv_prog_compiler_c_o=yes
9003      fi
9004    fi
9005    chmod u+w . 2>&5
9006    $RM conftest*
9007    # SGI C++ compiler will create directory out/ii_files/ for
9008    # template instantiation
9009    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9010    $RM out/* && rmdir out
9011    cd ..
9012    $RM -r conftest
9013    $RM conftest*
9014
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9018
9019
9020
9021
9022 hard_links="nottested"
9023 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9024   # do not overwrite the value of need_locks provided by the user
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9026 $as_echo_n "checking if we can lock with hard links... " >&6; }
9027   hard_links=yes
9028   $RM conftest*
9029   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9030   touch conftest.a
9031   ln conftest.a conftest.b 2>&5 || hard_links=no
9032   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9034 $as_echo "$hard_links" >&6; }
9035   if test "$hard_links" = no; then
9036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9037 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9038     need_locks=warn
9039   fi
9040 else
9041   need_locks=no
9042 fi
9043
9044
9045
9046
9047
9048
9049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9050 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9051
9052   runpath_var=
9053   allow_undefined_flag=
9054   always_export_symbols=no
9055   archive_cmds=
9056   archive_expsym_cmds=
9057   compiler_needs_object=no
9058   enable_shared_with_static_runtimes=no
9059   export_dynamic_flag_spec=
9060   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9061   hardcode_automatic=no
9062   hardcode_direct=no
9063   hardcode_direct_absolute=no
9064   hardcode_libdir_flag_spec=
9065   hardcode_libdir_flag_spec_ld=
9066   hardcode_libdir_separator=
9067   hardcode_minus_L=no
9068   hardcode_shlibpath_var=unsupported
9069   inherit_rpath=no
9070   link_all_deplibs=unknown
9071   module_cmds=
9072   module_expsym_cmds=
9073   old_archive_from_new_cmds=
9074   old_archive_from_expsyms_cmds=
9075   thread_safe_flag_spec=
9076   whole_archive_flag_spec=
9077   # include_expsyms should be a list of space-separated symbols to be *always*
9078   # included in the symbol list
9079   include_expsyms=
9080   # exclude_expsyms can be an extended regexp of symbols to exclude
9081   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9082   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9083   # as well as any symbol that contains `d'.
9084   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9085   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9086   # platforms (ab)use it in PIC code, but their linkers get confused if
9087   # the symbol is explicitly referenced.  Since portable code cannot
9088   # rely on this symbol name, it's probably fine to never include it in
9089   # preloaded symbol tables.
9090   # Exclude shared library initialization/finalization symbols.
9091   extract_expsyms_cmds=
9092
9093   case $host_os in
9094   cygwin* | mingw* | pw32* | cegcc*)
9095     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9096     # When not using gcc, we currently assume that we are using
9097     # Microsoft Visual C++.
9098     if test "$GCC" != yes; then
9099       with_gnu_ld=no
9100     fi
9101     ;;
9102   interix*)
9103     # we just hope/assume this is gcc and not c89 (= MSVC++)
9104     with_gnu_ld=yes
9105     ;;
9106   openbsd*)
9107     with_gnu_ld=no
9108     ;;
9109   esac
9110
9111   ld_shlibs=yes
9112
9113   # On some targets, GNU ld is compatible enough with the native linker
9114   # that we're better off using the native interface for both.
9115   lt_use_gnu_ld_interface=no
9116   if test "$with_gnu_ld" = yes; then
9117     case $host_os in
9118       aix*)
9119         # The AIX port of GNU ld has always aspired to compatibility
9120         # with the native linker.  However, as the warning in the GNU ld
9121         # block says, versions before 2.19.5* couldn't really create working
9122         # shared libraries, regardless of the interface used.
9123         case `$LD -v 2>&1` in
9124           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9125           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9126           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9127           *)
9128             lt_use_gnu_ld_interface=yes
9129             ;;
9130         esac
9131         ;;
9132       *)
9133         lt_use_gnu_ld_interface=yes
9134         ;;
9135     esac
9136   fi
9137
9138   if test "$lt_use_gnu_ld_interface" = yes; then
9139     # If archive_cmds runs LD, not CC, wlarc should be empty
9140     wlarc='${wl}'
9141
9142     # Set some defaults for GNU ld with shared library support. These
9143     # are reset later if shared libraries are not supported. Putting them
9144     # here allows them to be overridden if necessary.
9145     runpath_var=LD_RUN_PATH
9146     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147     export_dynamic_flag_spec='${wl}--export-dynamic'
9148     # ancient GNU ld didn't support --whole-archive et. al.
9149     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9150       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9151     else
9152       whole_archive_flag_spec=
9153     fi
9154     supports_anon_versioning=no
9155     case `$LD -v 2>&1` in
9156       *GNU\ gold*) supports_anon_versioning=yes ;;
9157       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9158       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9159       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9160       *\ 2.11.*) ;; # other 2.11 versions
9161       *) supports_anon_versioning=yes ;;
9162     esac
9163
9164     # See if GNU ld supports shared libraries.
9165     case $host_os in
9166     aix[3-9]*)
9167       # On AIX/PPC, the GNU linker is very broken
9168       if test "$host_cpu" != ia64; then
9169         ld_shlibs=no
9170         cat <<_LT_EOF 1>&2
9171
9172 *** Warning: the GNU linker, at least up to release 2.19, is reported
9173 *** to be unable to reliably create shared libraries on AIX.
9174 *** Therefore, libtool is disabling shared libraries support.  If you
9175 *** really care for shared libraries, you may want to install binutils
9176 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9177 *** You will then need to restart the configuration process.
9178
9179 _LT_EOF
9180       fi
9181       ;;
9182
9183     amigaos*)
9184       case $host_cpu in
9185       powerpc)
9186             # see comment about AmigaOS4 .so support
9187             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188             archive_expsym_cmds=''
9189         ;;
9190       m68k)
9191             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)'
9192             hardcode_libdir_flag_spec='-L$libdir'
9193             hardcode_minus_L=yes
9194         ;;
9195       esac
9196       ;;
9197
9198     beos*)
9199       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200         allow_undefined_flag=unsupported
9201         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9202         # support --undefined.  This deserves some investigation.  FIXME
9203         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204       else
9205         ld_shlibs=no
9206       fi
9207       ;;
9208
9209     cygwin* | mingw* | pw32* | cegcc*)
9210       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9211       # as there is no search path for DLLs.
9212       hardcode_libdir_flag_spec='-L$libdir'
9213       export_dynamic_flag_spec='${wl}--export-all-symbols'
9214       allow_undefined_flag=unsupported
9215       always_export_symbols=no
9216       enable_shared_with_static_runtimes=yes
9217       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'
9218       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9219
9220       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9222         # If the export-symbols file already is a .def file (1st line
9223         # is EXPORTS), use it as is; otherwise, prepend...
9224         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9225           cp $export_symbols $output_objdir/$soname.def;
9226         else
9227           echo EXPORTS > $output_objdir/$soname.def;
9228           cat $export_symbols >> $output_objdir/$soname.def;
9229         fi~
9230         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9231       else
9232         ld_shlibs=no
9233       fi
9234       ;;
9235
9236     haiku*)
9237       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238       link_all_deplibs=yes
9239       ;;
9240
9241     interix[3-9]*)
9242       hardcode_direct=no
9243       hardcode_shlibpath_var=no
9244       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9245       export_dynamic_flag_spec='${wl}-E'
9246       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9247       # Instead, shared libraries are loaded at an image base (0x10000000 by
9248       # default) and relocated if they conflict, which is a slow very memory
9249       # consuming and fragmenting process.  To avoid this, we pick a random,
9250       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9251       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9252       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9253       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'
9254       ;;
9255
9256     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9257       tmp_diet=no
9258       if test "$host_os" = linux-dietlibc; then
9259         case $cc_basename in
9260           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9261         esac
9262       fi
9263       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9264          && test "$tmp_diet" = no
9265       then
9266         tmp_addflag=' $pic_flag'
9267         tmp_sharedflag='-shared'
9268         case $cc_basename,$host_cpu in
9269         pgcc*)                          # Portland Group C compiler
9270           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'
9271           tmp_addflag=' $pic_flag'
9272           ;;
9273         pgf77* | pgf90* | pgf95* | pgfortran*)
9274                                         # Portland Group f77 and f90 compilers
9275           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'
9276           tmp_addflag=' $pic_flag -Mnomain' ;;
9277         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9278           tmp_addflag=' -i_dynamic' ;;
9279         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9280           tmp_addflag=' -i_dynamic -nofor_main' ;;
9281         ifc* | ifort*)                  # Intel Fortran compiler
9282           tmp_addflag=' -nofor_main' ;;
9283         lf95*)                          # Lahey Fortran 8.1
9284           whole_archive_flag_spec=
9285           tmp_sharedflag='--shared' ;;
9286         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9287           tmp_sharedflag='-qmkshrobj'
9288           tmp_addflag= ;;
9289         nvcc*)  # Cuda Compiler Driver 2.2
9290           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'
9291           compiler_needs_object=yes
9292           ;;
9293         esac
9294         case `$CC -V 2>&1 | sed 5q` in
9295         *Sun\ C*)                       # Sun C 5.9
9296           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'
9297           compiler_needs_object=yes
9298           tmp_sharedflag='-G' ;;
9299         *Sun\ F*)                       # Sun Fortran 8.3
9300           tmp_sharedflag='-G' ;;
9301         esac
9302         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303
9304         if test "x$supports_anon_versioning" = xyes; then
9305           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9306             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9307             echo "local: *; };" >> $output_objdir/$libname.ver~
9308             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9309         fi
9310
9311         case $cc_basename in
9312         xlf* | bgf* | bgxlf* | mpixlf*)
9313           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9314           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9315           hardcode_libdir_flag_spec=
9316           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9317           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9318           if test "x$supports_anon_versioning" = xyes; then
9319             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321               echo "local: *; };" >> $output_objdir/$libname.ver~
9322               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9323           fi
9324           ;;
9325         esac
9326       else
9327         ld_shlibs=no
9328       fi
9329       ;;
9330
9331     netbsd*)
9332       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9333         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9334         wlarc=
9335       else
9336         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338       fi
9339       ;;
9340
9341     solaris*)
9342       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9343         ld_shlibs=no
9344         cat <<_LT_EOF 1>&2
9345
9346 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9347 *** create shared libraries on Solaris systems.  Therefore, libtool
9348 *** is disabling shared libraries support.  We urge you to upgrade GNU
9349 *** binutils to release 2.9.1 or newer.  Another option is to modify
9350 *** your PATH or compiler configuration so that the native linker is
9351 *** used, and then restart.
9352
9353 _LT_EOF
9354       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357       else
9358         ld_shlibs=no
9359       fi
9360       ;;
9361
9362     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9363       case `$LD -v 2>&1` in
9364         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9365         ld_shlibs=no
9366         cat <<_LT_EOF 1>&2
9367
9368 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9369 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9370 *** is disabling shared libraries support.  We urge you to upgrade GNU
9371 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9372 *** your PATH or compiler configuration so that the native linker is
9373 *** used, and then restart.
9374
9375 _LT_EOF
9376         ;;
9377         *)
9378           # For security reasons, it is highly recommended that you always
9379           # use absolute paths for naming shared libraries, and exclude the
9380           # DT_RUNPATH tag from executables and libraries.  But doing so
9381           # requires that you compile everything twice, which is a pain.
9382           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9386           else
9387             ld_shlibs=no
9388           fi
9389         ;;
9390       esac
9391       ;;
9392
9393     sunos4*)
9394       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395       wlarc=
9396       hardcode_direct=yes
9397       hardcode_shlibpath_var=no
9398       ;;
9399
9400     *)
9401       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9404       else
9405         ld_shlibs=no
9406       fi
9407       ;;
9408     esac
9409
9410     if test "$ld_shlibs" = no; then
9411       runpath_var=
9412       hardcode_libdir_flag_spec=
9413       export_dynamic_flag_spec=
9414       whole_archive_flag_spec=
9415     fi
9416   else
9417     # PORTME fill in a description of your system's linker (not GNU ld)
9418     case $host_os in
9419     aix3*)
9420       allow_undefined_flag=unsupported
9421       always_export_symbols=yes
9422       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'
9423       # Note: this linker hardcodes the directories in LIBPATH if there
9424       # are no directories specified by -L.
9425       hardcode_minus_L=yes
9426       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9427         # Neither direct hardcoding nor static linking is supported with a
9428         # broken collect2.
9429         hardcode_direct=unsupported
9430       fi
9431       ;;
9432
9433     aix[4-9]*)
9434       if test "$host_cpu" = ia64; then
9435         # On IA64, the linker does run time linking by default, so we don't
9436         # have to do anything special.
9437         aix_use_runtimelinking=no
9438         exp_sym_flag='-Bexport'
9439         no_entry_flag=""
9440       else
9441         # If we're using GNU nm, then we don't want the "-C" option.
9442         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9443         # Also, AIX nm treats weak defined symbols like other global
9444         # defined symbols, whereas GNU nm marks them as "W".
9445         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9446           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'
9447         else
9448           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'
9449         fi
9450         aix_use_runtimelinking=no
9451
9452         # Test if we are trying to use run time linking or normal
9453         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9454         # need to do runtime linking.
9455         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9456           for ld_flag in $LDFLAGS; do
9457           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9458             aix_use_runtimelinking=yes
9459             break
9460           fi
9461           done
9462           ;;
9463         esac
9464
9465         exp_sym_flag='-bexport'
9466         no_entry_flag='-bnoentry'
9467       fi
9468
9469       # When large executables or shared objects are built, AIX ld can
9470       # have problems creating the table of contents.  If linking a library
9471       # or program results in "error TOC overflow" add -mminimal-toc to
9472       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9473       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9474
9475       archive_cmds=''
9476       hardcode_direct=yes
9477       hardcode_direct_absolute=yes
9478       hardcode_libdir_separator=':'
9479       link_all_deplibs=yes
9480       file_list_spec='${wl}-f,'
9481
9482       if test "$GCC" = yes; then
9483         case $host_os in aix4.[012]|aix4.[012].*)
9484         # We only want to do this on AIX 4.2 and lower, the check
9485         # below for broken collect2 doesn't work under 4.3+
9486           collect2name=`${CC} -print-prog-name=collect2`
9487           if test -f "$collect2name" &&
9488            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9489           then
9490           # We have reworked collect2
9491           :
9492           else
9493           # We have old collect2
9494           hardcode_direct=unsupported
9495           # It fails to find uninstalled libraries when the uninstalled
9496           # path is not listed in the libpath.  Setting hardcode_minus_L
9497           # to unsupported forces relinking
9498           hardcode_minus_L=yes
9499           hardcode_libdir_flag_spec='-L$libdir'
9500           hardcode_libdir_separator=
9501           fi
9502           ;;
9503         esac
9504         shared_flag='-shared'
9505         if test "$aix_use_runtimelinking" = yes; then
9506           shared_flag="$shared_flag "'${wl}-G'
9507         fi
9508       else
9509         # not using gcc
9510         if test "$host_cpu" = ia64; then
9511         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512         # chokes on -Wl,-G. The following line is correct:
9513           shared_flag='-G'
9514         else
9515           if test "$aix_use_runtimelinking" = yes; then
9516             shared_flag='${wl}-G'
9517           else
9518             shared_flag='${wl}-bM:SRE'
9519           fi
9520         fi
9521       fi
9522
9523       export_dynamic_flag_spec='${wl}-bexpall'
9524       # It seems that -bexpall does not export symbols beginning with
9525       # underscore (_), so it is better to generate a list of symbols to export.
9526       always_export_symbols=yes
9527       if test "$aix_use_runtimelinking" = yes; then
9528         # Warning - without using the other runtime loading flags (-brtl),
9529         # -berok will link without error, but may produce a broken library.
9530         allow_undefined_flag='-berok'
9531         # Determine the default libpath from the value encoded in an
9532         # empty executable.
9533         if test "${lt_cv_aix_libpath+set}" = set; then
9534   aix_libpath=$lt_cv_aix_libpath
9535 else
9536   if ${lt_cv_aix_libpath_+:} false; then :
9537   $as_echo_n "(cached) " >&6
9538 else
9539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h.  */
9541
9542 int
9543 main ()
9544 {
9545
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551
9552   lt_aix_libpath_sed='
9553       /Import File Strings/,/^$/ {
9554           /^0/ {
9555               s/^0  *\([^ ]*\) *$/\1/
9556               p
9557           }
9558       }'
9559   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560   # Check for a 64-bit object if we didn't find anything.
9561   if test -z "$lt_cv_aix_libpath_"; then
9562     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563   fi
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext \
9566     conftest$ac_exeext conftest.$ac_ext
9567   if test -z "$lt_cv_aix_libpath_"; then
9568     lt_cv_aix_libpath_="/usr/lib:/lib"
9569   fi
9570
9571 fi
9572
9573   aix_libpath=$lt_cv_aix_libpath_
9574 fi
9575
9576         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577         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"
9578       else
9579         if test "$host_cpu" = ia64; then
9580           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581           allow_undefined_flag="-z nodefs"
9582           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"
9583         else
9584          # Determine the default libpath from the value encoded in an
9585          # empty executable.
9586          if test "${lt_cv_aix_libpath+set}" = set; then
9587   aix_libpath=$lt_cv_aix_libpath
9588 else
9589   if ${lt_cv_aix_libpath_+:} false; then :
9590   $as_echo_n "(cached) " >&6
9591 else
9592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h.  */
9594
9595 int
9596 main ()
9597 {
9598
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9604
9605   lt_aix_libpath_sed='
9606       /Import File Strings/,/^$/ {
9607           /^0/ {
9608               s/^0  *\([^ ]*\) *$/\1/
9609               p
9610           }
9611       }'
9612   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613   # Check for a 64-bit object if we didn't find anything.
9614   if test -z "$lt_cv_aix_libpath_"; then
9615     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616   fi
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext conftest.$ac_ext
9620   if test -z "$lt_cv_aix_libpath_"; then
9621     lt_cv_aix_libpath_="/usr/lib:/lib"
9622   fi
9623
9624 fi
9625
9626   aix_libpath=$lt_cv_aix_libpath_
9627 fi
9628
9629          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9630           # Warning - without using the other run time loading flags,
9631           # -berok will link without error, but may produce a broken library.
9632           no_undefined_flag=' ${wl}-bernotok'
9633           allow_undefined_flag=' ${wl}-berok'
9634           if test "$with_gnu_ld" = yes; then
9635             # We only use this code for GNU lds that support --whole-archive.
9636             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9637           else
9638             # Exported symbols can be pulled into shared objects from archives
9639             whole_archive_flag_spec='$convenience'
9640           fi
9641           archive_cmds_need_lc=yes
9642           # This is similar to how AIX traditionally builds its shared libraries.
9643           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'
9644         fi
9645       fi
9646       ;;
9647
9648     amigaos*)
9649       case $host_cpu in
9650       powerpc)
9651             # see comment about AmigaOS4 .so support
9652             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653             archive_expsym_cmds=''
9654         ;;
9655       m68k)
9656             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)'
9657             hardcode_libdir_flag_spec='-L$libdir'
9658             hardcode_minus_L=yes
9659         ;;
9660       esac
9661       ;;
9662
9663     bsdi[45]*)
9664       export_dynamic_flag_spec=-rdynamic
9665       ;;
9666
9667     cygwin* | mingw* | pw32* | cegcc*)
9668       # When not using gcc, we currently assume that we are using
9669       # Microsoft Visual C++.
9670       # hardcode_libdir_flag_spec is actually meaningless, as there is
9671       # no search path for DLLs.
9672       case $cc_basename in
9673       cl*)
9674         # Native MSVC
9675         hardcode_libdir_flag_spec=' '
9676         allow_undefined_flag=unsupported
9677         always_export_symbols=yes
9678         file_list_spec='@'
9679         # Tell ltmain to make .lib files, not .a files.
9680         libext=lib
9681         # Tell ltmain to make .dll files, not .so files.
9682         shrext_cmds=".dll"
9683         # FIXME: Setting linknames here is a bad hack.
9684         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9685         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9686             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9687           else
9688             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9689           fi~
9690           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9691           linknames='
9692         # The linker will not automatically build a static lib if we build a DLL.
9693         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9694         enable_shared_with_static_runtimes=yes
9695         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9696         # Don't use ranlib
9697         old_postinstall_cmds='chmod 644 $oldlib'
9698         postlink_cmds='lt_outputfile="@OUTPUT@"~
9699           lt_tool_outputfile="@TOOL_OUTPUT@"~
9700           case $lt_outputfile in
9701             *.exe|*.EXE) ;;
9702             *)
9703               lt_outputfile="$lt_outputfile.exe"
9704               lt_tool_outputfile="$lt_tool_outputfile.exe"
9705               ;;
9706           esac~
9707           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9708             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9709             $RM "$lt_outputfile.manifest";
9710           fi'
9711         ;;
9712       *)
9713         # Assume MSVC wrapper
9714         hardcode_libdir_flag_spec=' '
9715         allow_undefined_flag=unsupported
9716         # Tell ltmain to make .lib files, not .a files.
9717         libext=lib
9718         # Tell ltmain to make .dll files, not .so files.
9719         shrext_cmds=".dll"
9720         # FIXME: Setting linknames here is a bad hack.
9721         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9722         # The linker will automatically build a .lib file if we build a DLL.
9723         old_archive_from_new_cmds='true'
9724         # FIXME: Should let the user specify the lib program.
9725         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9726         enable_shared_with_static_runtimes=yes
9727         ;;
9728       esac
9729       ;;
9730
9731     darwin* | rhapsody*)
9732
9733
9734   archive_cmds_need_lc=no
9735   hardcode_direct=no
9736   hardcode_automatic=yes
9737   hardcode_shlibpath_var=unsupported
9738   if test "$lt_cv_ld_force_load" = "yes"; then
9739     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\"`'
9740   else
9741     whole_archive_flag_spec=''
9742   fi
9743   link_all_deplibs=yes
9744   allow_undefined_flag="$_lt_dar_allow_undefined"
9745   case $cc_basename in
9746      ifort*) _lt_dar_can_shared=yes ;;
9747      *) _lt_dar_can_shared=$GCC ;;
9748   esac
9749   if test "$_lt_dar_can_shared" = "yes"; then
9750     output_verbose_link_cmd=func_echo_all
9751     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9752     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9753     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}"
9754     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}"
9755
9756   else
9757   ld_shlibs=no
9758   fi
9759
9760       ;;
9761
9762     dgux*)
9763       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764       hardcode_libdir_flag_spec='-L$libdir'
9765       hardcode_shlibpath_var=no
9766       ;;
9767
9768     freebsd1*)
9769       ld_shlibs=no
9770       ;;
9771
9772     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9773     # support.  Future versions do this automatically, but an explicit c++rt0.o
9774     # does not break anything, and helps significantly (at the cost of a little
9775     # extra space).
9776     freebsd2.2*)
9777       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9778       hardcode_libdir_flag_spec='-R$libdir'
9779       hardcode_direct=yes
9780       hardcode_shlibpath_var=no
9781       ;;
9782
9783     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9784     freebsd2*)
9785       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9786       hardcode_direct=yes
9787       hardcode_minus_L=yes
9788       hardcode_shlibpath_var=no
9789       ;;
9790
9791     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9792     freebsd* | dragonfly*)
9793       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9794       hardcode_libdir_flag_spec='-R$libdir'
9795       hardcode_direct=yes
9796       hardcode_shlibpath_var=no
9797       ;;
9798
9799     hpux9*)
9800       if test "$GCC" = yes; then
9801         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'
9802       else
9803         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'
9804       fi
9805       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9806       hardcode_libdir_separator=:
9807       hardcode_direct=yes
9808
9809       # hardcode_minus_L: Not really in the search PATH,
9810       # but as the default location of the library.
9811       hardcode_minus_L=yes
9812       export_dynamic_flag_spec='${wl}-E'
9813       ;;
9814
9815     hpux10*)
9816       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9817         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818       else
9819         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9820       fi
9821       if test "$with_gnu_ld" = no; then
9822         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9823         hardcode_libdir_flag_spec_ld='+b $libdir'
9824         hardcode_libdir_separator=:
9825         hardcode_direct=yes
9826         hardcode_direct_absolute=yes
9827         export_dynamic_flag_spec='${wl}-E'
9828         # hardcode_minus_L: Not really in the search PATH,
9829         # but as the default location of the library.
9830         hardcode_minus_L=yes
9831       fi
9832       ;;
9833
9834     hpux11*)
9835       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9836         case $host_cpu in
9837         hppa*64*)
9838           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839           ;;
9840         ia64*)
9841           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842           ;;
9843         *)
9844           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845           ;;
9846         esac
9847       else
9848         case $host_cpu in
9849         hppa*64*)
9850           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851           ;;
9852         ia64*)
9853           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854           ;;
9855         *)
9856
9857           # Older versions of the 11.00 compiler do not understand -b yet
9858           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9859           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9860 $as_echo_n "checking if $CC understands -b... " >&6; }
9861 if ${lt_cv_prog_compiler__b+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864   lt_cv_prog_compiler__b=no
9865    save_LDFLAGS="$LDFLAGS"
9866    LDFLAGS="$LDFLAGS -b"
9867    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9868    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9869      # The linker can only warn and ignore the option if not recognized
9870      # So say no if there are warnings
9871      if test -s conftest.err; then
9872        # Append any errors to the config.log.
9873        cat conftest.err 1>&5
9874        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9875        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9876        if diff conftest.exp conftest.er2 >/dev/null; then
9877          lt_cv_prog_compiler__b=yes
9878        fi
9879      else
9880        lt_cv_prog_compiler__b=yes
9881      fi
9882    fi
9883    $RM -r conftest*
9884    LDFLAGS="$save_LDFLAGS"
9885
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9888 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9889
9890 if test x"$lt_cv_prog_compiler__b" = xyes; then
9891     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892 else
9893     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9894 fi
9895
9896           ;;
9897         esac
9898       fi
9899       if test "$with_gnu_ld" = no; then
9900         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9901         hardcode_libdir_separator=:
9902
9903         case $host_cpu in
9904         hppa*64*|ia64*)
9905           hardcode_direct=no
9906           hardcode_shlibpath_var=no
9907           ;;
9908         *)
9909           hardcode_direct=yes
9910           hardcode_direct_absolute=yes
9911           export_dynamic_flag_spec='${wl}-E'
9912
9913           # hardcode_minus_L: Not really in the search PATH,
9914           # but as the default location of the library.
9915           hardcode_minus_L=yes
9916           ;;
9917         esac
9918       fi
9919       ;;
9920
9921     irix5* | irix6* | nonstopux*)
9922       if test "$GCC" = yes; then
9923         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'
9924         # Try to use the -exported_symbol ld option, if it does not
9925         # work, assume that -exports_file does not work either and
9926         # implicitly export all symbols.
9927         # This should be the same for all languages, so no per-tag cache variable.
9928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9929 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9930 if ${lt_cv_irix_exported_symbol+:} false; then :
9931   $as_echo_n "(cached) " >&6
9932 else
9933   save_LDFLAGS="$LDFLAGS"
9934            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9935            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h.  */
9937 int foo (void) { return 0; }
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940   lt_cv_irix_exported_symbol=yes
9941 else
9942   lt_cv_irix_exported_symbol=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext \
9945     conftest$ac_exeext conftest.$ac_ext
9946            LDFLAGS="$save_LDFLAGS"
9947 fi
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9949 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9950         if test "$lt_cv_irix_exported_symbol" = yes; then
9951           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'
9952         fi
9953       else
9954         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'
9955         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'
9956       fi
9957       archive_cmds_need_lc='no'
9958       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959       hardcode_libdir_separator=:
9960       inherit_rpath=yes
9961       link_all_deplibs=yes
9962       ;;
9963
9964     netbsd*)
9965       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9966         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9967       else
9968         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9969       fi
9970       hardcode_libdir_flag_spec='-R$libdir'
9971       hardcode_direct=yes
9972       hardcode_shlibpath_var=no
9973       ;;
9974
9975     newsos6)
9976       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977       hardcode_direct=yes
9978       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979       hardcode_libdir_separator=:
9980       hardcode_shlibpath_var=no
9981       ;;
9982
9983     *nto* | *qnx*)
9984       ;;
9985
9986     openbsd*)
9987       if test -f /usr/libexec/ld.so; then
9988         hardcode_direct=yes
9989         hardcode_shlibpath_var=no
9990         hardcode_direct_absolute=yes
9991         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9992           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9993           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9994           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9995           export_dynamic_flag_spec='${wl}-E'
9996         else
9997           case $host_os in
9998            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9999              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10000              hardcode_libdir_flag_spec='-R$libdir'
10001              ;;
10002            *)
10003              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10004              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005              ;;
10006           esac
10007         fi
10008       else
10009         ld_shlibs=no
10010       fi
10011       ;;
10012
10013     os2*)
10014       hardcode_libdir_flag_spec='-L$libdir'
10015       hardcode_minus_L=yes
10016       allow_undefined_flag=unsupported
10017       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'
10018       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10019       ;;
10020
10021     osf3*)
10022       if test "$GCC" = yes; then
10023         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10024         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'
10025       else
10026         allow_undefined_flag=' -expect_unresolved \*'
10027         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'
10028       fi
10029       archive_cmds_need_lc='no'
10030       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031       hardcode_libdir_separator=:
10032       ;;
10033
10034     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10035       if test "$GCC" = yes; then
10036         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10037         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'
10038         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039       else
10040         allow_undefined_flag=' -expect_unresolved \*'
10041         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'
10042         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~
10043         $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'
10044
10045         # Both c and cxx compiler support -rpath directly
10046         hardcode_libdir_flag_spec='-rpath $libdir'
10047       fi
10048       archive_cmds_need_lc='no'
10049       hardcode_libdir_separator=:
10050       ;;
10051
10052     solaris*)
10053       no_undefined_flag=' -z defs'
10054       if test "$GCC" = yes; then
10055         wlarc='${wl}'
10056         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10057         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058           $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'
10059       else
10060         case `$CC -V 2>&1` in
10061         *"Compilers 5.0"*)
10062           wlarc=''
10063           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10066           ;;
10067         *)
10068           wlarc='${wl}'
10069           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10070           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10072           ;;
10073         esac
10074       fi
10075       hardcode_libdir_flag_spec='-R$libdir'
10076       hardcode_shlibpath_var=no
10077       case $host_os in
10078       solaris2.[0-5] | solaris2.[0-5].*) ;;
10079       *)
10080         # The compiler driver will combine and reorder linker options,
10081         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10082         # but is careful enough not to reorder.
10083         # Supported since Solaris 2.6 (maybe 2.5.1?)
10084         if test "$GCC" = yes; then
10085           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10086         else
10087           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10088         fi
10089         ;;
10090       esac
10091       link_all_deplibs=yes
10092       ;;
10093
10094     sunos4*)
10095       if test "x$host_vendor" = xsequent; then
10096         # Use $CC to link under sequent, because it throws in some extra .o
10097         # files that make .init and .fini sections work.
10098         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10099       else
10100         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101       fi
10102       hardcode_libdir_flag_spec='-L$libdir'
10103       hardcode_direct=yes
10104       hardcode_minus_L=yes
10105       hardcode_shlibpath_var=no
10106       ;;
10107
10108     sysv4)
10109       case $host_vendor in
10110         sni)
10111           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112           hardcode_direct=yes # is this really true???
10113         ;;
10114         siemens)
10115           ## LD is ld it makes a PLAMLIB
10116           ## CC just makes a GrossModule.
10117           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10118           reload_cmds='$CC -r -o $output$reload_objs'
10119           hardcode_direct=no
10120         ;;
10121         motorola)
10122           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10124         ;;
10125       esac
10126       runpath_var='LD_RUN_PATH'
10127       hardcode_shlibpath_var=no
10128       ;;
10129
10130     sysv4.3*)
10131       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132       hardcode_shlibpath_var=no
10133       export_dynamic_flag_spec='-Bexport'
10134       ;;
10135
10136     sysv4*MP*)
10137       if test -d /usr/nec; then
10138         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139         hardcode_shlibpath_var=no
10140         runpath_var=LD_RUN_PATH
10141         hardcode_runpath_var=yes
10142         ld_shlibs=yes
10143       fi
10144       ;;
10145
10146     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10147       no_undefined_flag='${wl}-z,text'
10148       archive_cmds_need_lc=no
10149       hardcode_shlibpath_var=no
10150       runpath_var='LD_RUN_PATH'
10151
10152       if test "$GCC" = yes; then
10153         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155       else
10156         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158       fi
10159       ;;
10160
10161     sysv5* | sco3.2v5* | sco5v6*)
10162       # Note: We can NOT use -z defs as we might desire, because we do not
10163       # link with -lc, and that would cause any symbols used from libc to
10164       # always be unresolved, which means just about no library would
10165       # ever link correctly.  If we're not using GNU ld we use -z text
10166       # though, which does catch some bad symbols but isn't as heavy-handed
10167       # as -z defs.
10168       no_undefined_flag='${wl}-z,text'
10169       allow_undefined_flag='${wl}-z,nodefs'
10170       archive_cmds_need_lc=no
10171       hardcode_shlibpath_var=no
10172       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10173       hardcode_libdir_separator=':'
10174       link_all_deplibs=yes
10175       export_dynamic_flag_spec='${wl}-Bexport'
10176       runpath_var='LD_RUN_PATH'
10177
10178       if test "$GCC" = yes; then
10179         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181       else
10182         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184       fi
10185       ;;
10186
10187     uts4*)
10188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189       hardcode_libdir_flag_spec='-L$libdir'
10190       hardcode_shlibpath_var=no
10191       ;;
10192
10193     *)
10194       ld_shlibs=no
10195       ;;
10196     esac
10197
10198     if test x$host_vendor = xsni; then
10199       case $host in
10200       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201         export_dynamic_flag_spec='${wl}-Blargedynsym'
10202         ;;
10203       esac
10204     fi
10205   fi
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10208 $as_echo "$ld_shlibs" >&6; }
10209 test "$ld_shlibs" = no && can_build_shared=no
10210
10211 with_gnu_ld=$with_gnu_ld
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227 #
10228 # Do we need to explicitly link libc?
10229 #
10230 case "x$archive_cmds_need_lc" in
10231 x|xyes)
10232   # Assume -lc should be added
10233   archive_cmds_need_lc=yes
10234
10235   if test "$enable_shared" = yes && test "$GCC" = yes; then
10236     case $archive_cmds in
10237     *'~'*)
10238       # FIXME: we may have to deal with multi-command sequences.
10239       ;;
10240     '$CC '*)
10241       # Test whether the compiler implicitly links with -lc since on some
10242       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10243       # to ld, don't add -lc before -lgcc.
10244       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10245 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10246 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   $RM conftest*
10250         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251
10252         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10253   (eval $ac_compile) 2>&5
10254   ac_status=$?
10255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10256   test $ac_status = 0; } 2>conftest.err; then
10257           soname=conftest
10258           lib=conftest
10259           libobjs=conftest.$ac_objext
10260           deplibs=
10261           wl=$lt_prog_compiler_wl
10262           pic_flag=$lt_prog_compiler_pic
10263           compiler_flags=-v
10264           linker_flags=-v
10265           verstring=
10266           output_objdir=.
10267           libname=conftest
10268           lt_save_allow_undefined_flag=$allow_undefined_flag
10269           allow_undefined_flag=
10270           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10271   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10272   ac_status=$?
10273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274   test $ac_status = 0; }
10275           then
10276             lt_cv_archive_cmds_need_lc=no
10277           else
10278             lt_cv_archive_cmds_need_lc=yes
10279           fi
10280           allow_undefined_flag=$lt_save_allow_undefined_flag
10281         else
10282           cat conftest.err 1>&5
10283         fi
10284         $RM conftest*
10285
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10288 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10289       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10290       ;;
10291     esac
10292   fi
10293   ;;
10294 esac
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
10451
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10454
10455 if test "$GCC" = yes; then
10456   case $host_os in
10457     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10458     *) lt_awk_arg="/^libraries:/" ;;
10459   esac
10460   case $host_os in
10461     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10462     *) lt_sed_strip_eq="s,=/,/,g" ;;
10463   esac
10464   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10465   case $lt_search_path_spec in
10466   *\;*)
10467     # if the path contains ";" then we assume it to be the separator
10468     # otherwise default to the standard path separator (i.e. ":") - it is
10469     # assumed that no part of a normal pathname contains ";" but that should
10470     # okay in the real world where ";" in dirpaths is itself problematic.
10471     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10472     ;;
10473   *)
10474     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475     ;;
10476   esac
10477   # Ok, now we have the path, separated by spaces, we can step through it
10478   # and add multilib dir if necessary.
10479   lt_tmp_lt_search_path_spec=
10480   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10481   for lt_sys_path in $lt_search_path_spec; do
10482     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10483       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10484     else
10485       test -d "$lt_sys_path" && \
10486         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10487     fi
10488   done
10489   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10490 BEGIN {RS=" "; FS="/|\n";} {
10491   lt_foo="";
10492   lt_count=0;
10493   for (lt_i = NF; lt_i > 0; lt_i--) {
10494     if ($lt_i != "" && $lt_i != ".") {
10495       if ($lt_i == "..") {
10496         lt_count++;
10497       } else {
10498         if (lt_count == 0) {
10499           lt_foo="/" $lt_i lt_foo;
10500         } else {
10501           lt_count--;
10502         }
10503       }
10504     }
10505   }
10506   if (lt_foo != "") { lt_freq[lt_foo]++; }
10507   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10508 }'`
10509   # AWK program above erroneously prepends '/' to C:/dos/paths
10510   # for these hosts.
10511   case $host_os in
10512     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10513       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10514   esac
10515   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10516 else
10517   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10518 fi
10519 library_names_spec=
10520 libname_spec='lib$name'
10521 soname_spec=
10522 shrext_cmds=".so"
10523 postinstall_cmds=
10524 postuninstall_cmds=
10525 finish_cmds=
10526 finish_eval=
10527 shlibpath_var=
10528 shlibpath_overrides_runpath=unknown
10529 version_type=none
10530 dynamic_linker="$host_os ld.so"
10531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10532 need_lib_prefix=unknown
10533 hardcode_into_libs=no
10534
10535 # when you set need_version to no, make sure it does not cause -set_version
10536 # flags to be left without arguments
10537 need_version=unknown
10538
10539 case $host_os in
10540 aix3*)
10541   version_type=linux
10542   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10543   shlibpath_var=LIBPATH
10544
10545   # AIX 3 has no versioning support, so we append a major version to the name.
10546   soname_spec='${libname}${release}${shared_ext}$major'
10547   ;;
10548
10549 aix[4-9]*)
10550   version_type=linux
10551   need_lib_prefix=no
10552   need_version=no
10553   hardcode_into_libs=yes
10554   if test "$host_cpu" = ia64; then
10555     # AIX 5 supports IA64
10556     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10557     shlibpath_var=LD_LIBRARY_PATH
10558   else
10559     # With GCC up to 2.95.x, collect2 would create an import file
10560     # for dependence libraries.  The import file would start with
10561     # the line `#! .'.  This would cause the generated library to
10562     # depend on `.', always an invalid library.  This was fixed in
10563     # development snapshots of GCC prior to 3.0.
10564     case $host_os in
10565       aix4 | aix4.[01] | aix4.[01].*)
10566       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10567            echo ' yes '
10568            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10569         :
10570       else
10571         can_build_shared=no
10572       fi
10573       ;;
10574     esac
10575     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10576     # soname into executable. Probably we can add versioning support to
10577     # collect2, so additional links can be useful in future.
10578     if test "$aix_use_runtimelinking" = yes; then
10579       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10580       # instead of lib<name>.a to let people know that these are not
10581       # typical AIX shared libraries.
10582       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583     else
10584       # We preserve .a as extension for shared libraries through AIX4.2
10585       # and later when we are not doing run time linking.
10586       library_names_spec='${libname}${release}.a $libname.a'
10587       soname_spec='${libname}${release}${shared_ext}$major'
10588     fi
10589     shlibpath_var=LIBPATH
10590   fi
10591   ;;
10592
10593 amigaos*)
10594   case $host_cpu in
10595   powerpc)
10596     # Since July 2007 AmigaOS4 officially supports .so libraries.
10597     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599     ;;
10600   m68k)
10601     library_names_spec='$libname.ixlibrary $libname.a'
10602     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10603     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'
10604     ;;
10605   esac
10606   ;;
10607
10608 beos*)
10609   library_names_spec='${libname}${shared_ext}'
10610   dynamic_linker="$host_os ld.so"
10611   shlibpath_var=LIBRARY_PATH
10612   ;;
10613
10614 bsdi[45]*)
10615   version_type=linux
10616   need_version=no
10617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618   soname_spec='${libname}${release}${shared_ext}$major'
10619   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10620   shlibpath_var=LD_LIBRARY_PATH
10621   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10622   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10623   # the default ld.so.conf also contains /usr/contrib/lib and
10624   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10625   # libtool to hard-code these into programs
10626   ;;
10627
10628 cygwin* | mingw* | pw32* | cegcc*)
10629   version_type=windows
10630   shrext_cmds=".dll"
10631   need_version=no
10632   need_lib_prefix=no
10633
10634   case $GCC,$cc_basename in
10635   yes,*)
10636     # gcc
10637     library_names_spec='$libname.dll.a'
10638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639     postinstall_cmds='base_file=`basename \${file}`~
10640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641       dldir=$destdir/`dirname \$dlpath`~
10642       test -d \$dldir || mkdir -p \$dldir~
10643       $install_prog $dir/$dlname \$dldir/$dlname~
10644       chmod a+x \$dldir/$dlname~
10645       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10646         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10647       fi'
10648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649       dlpath=$dir/\$dldll~
10650        $RM \$dlpath'
10651     shlibpath_overrides_runpath=yes
10652
10653     case $host_os in
10654     cygwin*)
10655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657
10658       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10659       ;;
10660     mingw* | cegcc*)
10661       # MinGW DLLs use traditional 'lib' prefix
10662       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663       ;;
10664     pw32*)
10665       # pw32 DLLs use 'pw' prefix rather than 'lib'
10666       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10667       ;;
10668     esac
10669     dynamic_linker='Win32 ld.exe'
10670     ;;
10671
10672   *,cl*)
10673     # Native MSVC
10674     libname_spec='$name'
10675     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676     library_names_spec='${libname}.dll.lib'
10677
10678     case $build_os in
10679     mingw*)
10680       sys_lib_search_path_spec=
10681       lt_save_ifs=$IFS
10682       IFS=';'
10683       for lt_path in $LIB
10684       do
10685         IFS=$lt_save_ifs
10686         # Let DOS variable expansion print the short 8.3 style file name.
10687         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10688         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10689       done
10690       IFS=$lt_save_ifs
10691       # Convert to MSYS style.
10692       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10693       ;;
10694     cygwin*)
10695       # Convert to unix form, then to dos form, then back to unix form
10696       # but this time dos style (no spaces!) so that the unix form looks
10697       # like /cygdrive/c/PROGRA~1:/cygdr...
10698       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10699       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10700       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10701       ;;
10702     *)
10703       sys_lib_search_path_spec="$LIB"
10704       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10705         # It is most probably a Windows format PATH.
10706         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10707       else
10708         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10709       fi
10710       # FIXME: find the short name or the path components, as spaces are
10711       # common. (e.g. "Program Files" -> "PROGRA~1")
10712       ;;
10713     esac
10714
10715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716     postinstall_cmds='base_file=`basename \${file}`~
10717       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718       dldir=$destdir/`dirname \$dlpath`~
10719       test -d \$dldir || mkdir -p \$dldir~
10720       $install_prog $dir/$dlname \$dldir/$dlname'
10721     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722       dlpath=$dir/\$dldll~
10723        $RM \$dlpath'
10724     shlibpath_overrides_runpath=yes
10725     dynamic_linker='Win32 link.exe'
10726     ;;
10727
10728   *)
10729     # Assume MSVC wrapper
10730     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10731     dynamic_linker='Win32 ld.exe'
10732     ;;
10733   esac
10734   # FIXME: first we should search . and the directory the executable is in
10735   shlibpath_var=PATH
10736   ;;
10737
10738 darwin* | rhapsody*)
10739   dynamic_linker="$host_os dyld"
10740   version_type=darwin
10741   need_lib_prefix=no
10742   need_version=no
10743   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10744   soname_spec='${libname}${release}${major}$shared_ext'
10745   shlibpath_overrides_runpath=yes
10746   shlibpath_var=DYLD_LIBRARY_PATH
10747   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10748
10749   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10750   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10751   ;;
10752
10753 dgux*)
10754   version_type=linux
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   ;;
10761
10762 freebsd1*)
10763   dynamic_linker=no
10764   ;;
10765
10766 freebsd* | dragonfly*)
10767   # DragonFly does not have aout.  When/if they implement a new
10768   # versioning mechanism, adjust this.
10769   if test -x /usr/bin/objformat; then
10770     objformat=`/usr/bin/objformat`
10771   else
10772     case $host_os in
10773     freebsd[123]*) objformat=aout ;;
10774     *) objformat=elf ;;
10775     esac
10776   fi
10777   version_type=freebsd-$objformat
10778   case $version_type in
10779     freebsd-elf*)
10780       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10781       need_version=no
10782       need_lib_prefix=no
10783       ;;
10784     freebsd-*)
10785       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10786       need_version=yes
10787       ;;
10788   esac
10789   shlibpath_var=LD_LIBRARY_PATH
10790   case $host_os in
10791   freebsd2*)
10792     shlibpath_overrides_runpath=yes
10793     ;;
10794   freebsd3.[01]* | freebsdelf3.[01]*)
10795     shlibpath_overrides_runpath=yes
10796     hardcode_into_libs=yes
10797     ;;
10798   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10799   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10800     shlibpath_overrides_runpath=no
10801     hardcode_into_libs=yes
10802     ;;
10803   *) # from 4.6 on, and DragonFly
10804     shlibpath_overrides_runpath=yes
10805     hardcode_into_libs=yes
10806     ;;
10807   esac
10808   ;;
10809
10810 gnu*)
10811   version_type=linux
10812   need_lib_prefix=no
10813   need_version=no
10814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10815   soname_spec='${libname}${release}${shared_ext}$major'
10816   shlibpath_var=LD_LIBRARY_PATH
10817   hardcode_into_libs=yes
10818   ;;
10819
10820 haiku*)
10821   version_type=linux
10822   need_lib_prefix=no
10823   need_version=no
10824   dynamic_linker="$host_os runtime_loader"
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10826   soname_spec='${libname}${release}${shared_ext}$major'
10827   shlibpath_var=LIBRARY_PATH
10828   shlibpath_overrides_runpath=yes
10829   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10830   hardcode_into_libs=yes
10831   ;;
10832
10833 hpux9* | hpux10* | hpux11*)
10834   # Give a soname corresponding to the major version so that dld.sl refuses to
10835   # link against other versions.
10836   version_type=sunos
10837   need_lib_prefix=no
10838   need_version=no
10839   case $host_cpu in
10840   ia64*)
10841     shrext_cmds='.so'
10842     hardcode_into_libs=yes
10843     dynamic_linker="$host_os dld.so"
10844     shlibpath_var=LD_LIBRARY_PATH
10845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847     soname_spec='${libname}${release}${shared_ext}$major'
10848     if test "X$HPUX_IA64_MODE" = X32; then
10849       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10850     else
10851       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10852     fi
10853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10854     ;;
10855   hppa*64*)
10856     shrext_cmds='.sl'
10857     hardcode_into_libs=yes
10858     dynamic_linker="$host_os dld.sl"
10859     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862     soname_spec='${libname}${release}${shared_ext}$major'
10863     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865     ;;
10866   *)
10867     shrext_cmds='.sl'
10868     dynamic_linker="$host_os dld.sl"
10869     shlibpath_var=SHLIB_PATH
10870     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872     soname_spec='${libname}${release}${shared_ext}$major'
10873     ;;
10874   esac
10875   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10876   postinstall_cmds='chmod 555 $lib'
10877   # or fails outright, so override atomically:
10878   install_override_mode=555
10879   ;;
10880
10881 interix[3-9]*)
10882   version_type=linux
10883   need_lib_prefix=no
10884   need_version=no
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886   soname_spec='${libname}${release}${shared_ext}$major'
10887   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   shlibpath_overrides_runpath=no
10890   hardcode_into_libs=yes
10891   ;;
10892
10893 irix5* | irix6* | nonstopux*)
10894   case $host_os in
10895     nonstopux*) version_type=nonstopux ;;
10896     *)
10897         if test "$lt_cv_prog_gnu_ld" = yes; then
10898                 version_type=linux
10899         else
10900                 version_type=irix
10901         fi ;;
10902   esac
10903   need_lib_prefix=no
10904   need_version=no
10905   soname_spec='${libname}${release}${shared_ext}$major'
10906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10907   case $host_os in
10908   irix5* | nonstopux*)
10909     libsuff= shlibsuff=
10910     ;;
10911   *)
10912     case $LD in # libtool.m4 will add one of these switches to LD
10913     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10914       libsuff= shlibsuff= libmagic=32-bit;;
10915     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10916       libsuff=32 shlibsuff=N32 libmagic=N32;;
10917     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10918       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10919     *) libsuff= shlibsuff= libmagic=never-match;;
10920     esac
10921     ;;
10922   esac
10923   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10924   shlibpath_overrides_runpath=no
10925   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10926   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10927   hardcode_into_libs=yes
10928   ;;
10929
10930 # No shared lib support for Linux oldld, aout, or coff.
10931 linux*oldld* | linux*aout* | linux*coff*)
10932   dynamic_linker=no
10933   ;;
10934
10935 # This must be Linux ELF.
10936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10937   version_type=linux
10938   need_lib_prefix=no
10939   need_version=no
10940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941   soname_spec='${libname}${release}${shared_ext}$major'
10942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   shlibpath_overrides_runpath=no
10945
10946   # Some binutils ld are patched to set DT_RUNPATH
10947   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950   lt_cv_shlibpath_overrides_runpath=no
10951     save_LDFLAGS=$LDFLAGS
10952     save_libdir=$libdir
10953     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10954          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h.  */
10957
10958 int
10959 main ()
10960 {
10961
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10968   lt_cv_shlibpath_overrides_runpath=yes
10969 fi
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972     conftest$ac_exeext conftest.$ac_ext
10973     LDFLAGS=$save_LDFLAGS
10974     libdir=$save_libdir
10975
10976 fi
10977
10978   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10979
10980   # This implies no fast_install, which is unacceptable.
10981   # Some rework will be needed to allow for fast_install
10982   # before this can be enabled.
10983   hardcode_into_libs=yes
10984
10985   # Append ld.so.conf contents to the search path
10986   if test -f /etc/ld.so.conf; then
10987     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' ' '`
10988     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10989   fi
10990
10991   # We used to test for /lib/ld.so.1 and disable shared libraries on
10992   # powerpc, because MkLinux only supported shared libraries with the
10993   # GNU dynamic linker.  Since this was broken with cross compilers,
10994   # most powerpc-linux boxes support dynamic linking these days and
10995   # people can always --disable-shared, the test was removed, and we
10996   # assume the GNU/Linux dynamic linker is in use.
10997   dynamic_linker='GNU/Linux ld.so'
10998   ;;
10999
11000 netbsd*)
11001   version_type=sunos
11002   need_lib_prefix=no
11003   need_version=no
11004   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11006     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11007     dynamic_linker='NetBSD (a.out) ld.so'
11008   else
11009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010     soname_spec='${libname}${release}${shared_ext}$major'
11011     dynamic_linker='NetBSD ld.elf_so'
11012   fi
11013   shlibpath_var=LD_LIBRARY_PATH
11014   shlibpath_overrides_runpath=yes
11015   hardcode_into_libs=yes
11016   ;;
11017
11018 newsos6)
11019   version_type=linux
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   shlibpath_overrides_runpath=yes
11023   ;;
11024
11025 *nto* | *qnx*)
11026   version_type=qnx
11027   need_lib_prefix=no
11028   need_version=no
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030   soname_spec='${libname}${release}${shared_ext}$major'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   shlibpath_overrides_runpath=no
11033   hardcode_into_libs=yes
11034   dynamic_linker='ldqnx.so'
11035   ;;
11036
11037 openbsd*)
11038   version_type=sunos
11039   sys_lib_dlsearch_path_spec="/usr/lib"
11040   need_lib_prefix=no
11041   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11042   case $host_os in
11043     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11044     *)                          need_version=no  ;;
11045   esac
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11047   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11050     case $host_os in
11051       openbsd2.[89] | openbsd2.[89].*)
11052         shlibpath_overrides_runpath=no
11053         ;;
11054       *)
11055         shlibpath_overrides_runpath=yes
11056         ;;
11057       esac
11058   else
11059     shlibpath_overrides_runpath=yes
11060   fi
11061   ;;
11062
11063 os2*)
11064   libname_spec='$name'
11065   shrext_cmds=".dll"
11066   need_lib_prefix=no
11067   library_names_spec='$libname${shared_ext} $libname.a'
11068   dynamic_linker='OS/2 ld.exe'
11069   shlibpath_var=LIBPATH
11070   ;;
11071
11072 osf3* | osf4* | osf5*)
11073   version_type=osf
11074   need_lib_prefix=no
11075   need_version=no
11076   soname_spec='${libname}${release}${shared_ext}$major'
11077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11080   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11081   ;;
11082
11083 rdos*)
11084   dynamic_linker=no
11085   ;;
11086
11087 solaris*)
11088   version_type=linux
11089   need_lib_prefix=no
11090   need_version=no
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   shlibpath_var=LD_LIBRARY_PATH
11094   shlibpath_overrides_runpath=yes
11095   hardcode_into_libs=yes
11096   # ldd complains unless libraries are executable
11097   postinstall_cmds='chmod +x $lib'
11098   ;;
11099
11100 sunos4*)
11101   version_type=sunos
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11103   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=yes
11106   if test "$with_gnu_ld" = yes; then
11107     need_lib_prefix=no
11108   fi
11109   need_version=yes
11110   ;;
11111
11112 sysv4 | sysv4.3*)
11113   version_type=linux
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115   soname_spec='${libname}${release}${shared_ext}$major'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   case $host_vendor in
11118     sni)
11119       shlibpath_overrides_runpath=no
11120       need_lib_prefix=no
11121       runpath_var=LD_RUN_PATH
11122       ;;
11123     siemens)
11124       need_lib_prefix=no
11125       ;;
11126     motorola)
11127       need_lib_prefix=no
11128       need_version=no
11129       shlibpath_overrides_runpath=no
11130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11131       ;;
11132   esac
11133   ;;
11134
11135 sysv4*MP*)
11136   if test -d /usr/nec ;then
11137     version_type=linux
11138     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11139     soname_spec='$libname${shared_ext}.$major'
11140     shlibpath_var=LD_LIBRARY_PATH
11141   fi
11142   ;;
11143
11144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11145   version_type=freebsd-elf
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   shlibpath_overrides_runpath=yes
11152   hardcode_into_libs=yes
11153   if test "$with_gnu_ld" = yes; then
11154     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11155   else
11156     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11157     case $host_os in
11158       sco3.2v5*)
11159         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11160         ;;
11161     esac
11162   fi
11163   sys_lib_dlsearch_path_spec='/usr/lib'
11164   ;;
11165
11166 tpf*)
11167   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11168   version_type=linux
11169   need_lib_prefix=no
11170   need_version=no
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   shlibpath_overrides_runpath=no
11174   hardcode_into_libs=yes
11175   ;;
11176
11177 uts4*)
11178   version_type=linux
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180   soname_spec='${libname}${release}${shared_ext}$major'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   ;;
11183
11184 *)
11185   dynamic_linker=no
11186   ;;
11187 esac
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11189 $as_echo "$dynamic_linker" >&6; }
11190 test "$dynamic_linker" = no && can_build_shared=no
11191
11192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11193 if test "$GCC" = yes; then
11194   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11195 fi
11196
11197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11198   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11199 fi
11200 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11201   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11202 fi
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
11294
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11296 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11297 hardcode_action=
11298 if test -n "$hardcode_libdir_flag_spec" ||
11299    test -n "$runpath_var" ||
11300    test "X$hardcode_automatic" = "Xyes" ; then
11301
11302   # We can hardcode non-existent directories.
11303   if test "$hardcode_direct" != no &&
11304      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11305      # have to relink, otherwise we might link with an installed library
11306      # when we should be linking with a yet-to-be-installed one
11307      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11308      test "$hardcode_minus_L" != no; then
11309     # Linking always hardcodes the temporary library directory.
11310     hardcode_action=relink
11311   else
11312     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11313     hardcode_action=immediate
11314   fi
11315 else
11316   # We cannot hardcode anything, or else we can only hardcode existing
11317   # directories.
11318   hardcode_action=unsupported
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11321 $as_echo "$hardcode_action" >&6; }
11322
11323 if test "$hardcode_action" = relink ||
11324    test "$inherit_rpath" = yes; then
11325   # Fast installation is not supported
11326   enable_fast_install=no
11327 elif test "$shlibpath_overrides_runpath" = yes ||
11328      test "$enable_shared" = no; then
11329   # Fast installation is not necessary
11330   enable_fast_install=needless
11331 fi
11332
11333
11334
11335
11336
11337
11338   if test "x$enable_dlopen" != xyes; then
11339   enable_dlopen=unknown
11340   enable_dlopen_self=unknown
11341   enable_dlopen_self_static=unknown
11342 else
11343   lt_cv_dlopen=no
11344   lt_cv_dlopen_libs=
11345
11346   case $host_os in
11347   beos*)
11348     lt_cv_dlopen="load_add_on"
11349     lt_cv_dlopen_libs=
11350     lt_cv_dlopen_self=yes
11351     ;;
11352
11353   mingw* | pw32* | cegcc*)
11354     lt_cv_dlopen="LoadLibrary"
11355     lt_cv_dlopen_libs=
11356     ;;
11357
11358   cygwin*)
11359     lt_cv_dlopen="dlopen"
11360     lt_cv_dlopen_libs=
11361     ;;
11362
11363   darwin*)
11364   # if libdl is installed we need to link against it
11365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11366 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11367 if ${ac_cv_lib_dl_dlopen+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-ldl  $LIBS"
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h.  */
11374
11375 /* Override any GCC internal prototype to avoid an error.
11376    Use char because int might match the return type of a GCC
11377    builtin and then its argument prototype would still apply.  */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 char dlopen ();
11382 int
11383 main ()
11384 {
11385 return dlopen ();
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391   ac_cv_lib_dl_dlopen=yes
11392 else
11393   ac_cv_lib_dl_dlopen=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396     conftest$ac_exeext conftest.$ac_ext
11397 LIBS=$ac_check_lib_save_LIBS
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11400 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11401 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11403 else
11404
11405     lt_cv_dlopen="dyld"
11406     lt_cv_dlopen_libs=
11407     lt_cv_dlopen_self=yes
11408
11409 fi
11410
11411     ;;
11412
11413   *)
11414     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11415 if test "x$ac_cv_func_shl_load" = xyes; then :
11416   lt_cv_dlopen="shl_load"
11417 else
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11419 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11420 if ${ac_cv_lib_dld_shl_load+:} false; then :
11421   $as_echo_n "(cached) " >&6
11422 else
11423   ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldld  $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h.  */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char shl_load ();
11435 int
11436 main ()
11437 {
11438 return shl_load ();
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444   ac_cv_lib_dld_shl_load=yes
11445 else
11446   ac_cv_lib_dld_shl_load=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449     conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11453 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11454 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11455   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11456 else
11457   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11458 if test "x$ac_cv_func_dlopen" = xyes; then :
11459   lt_cv_dlopen="dlopen"
11460 else
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11462 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11463 if ${ac_cv_lib_dl_dlopen+:} false; then :
11464   $as_echo_n "(cached) " >&6
11465 else
11466   ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldl  $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h.  */
11470
11471 /* Override any GCC internal prototype to avoid an error.
11472    Use char because int might match the return type of a GCC
11473    builtin and then its argument prototype would still apply.  */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dlopen ();
11478 int
11479 main ()
11480 {
11481 return dlopen ();
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487   ac_cv_lib_dl_dlopen=yes
11488 else
11489   ac_cv_lib_dl_dlopen=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492     conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11497 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11498   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 else
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11501 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11502 if ${ac_cv_lib_svld_dlopen+:} false; then :
11503   $as_echo_n "(cached) " >&6
11504 else
11505   ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-lsvld  $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h.  */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511    Use char because int might match the return type of a GCC
11512    builtin and then its argument prototype would still apply.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char dlopen ();
11517 int
11518 main ()
11519 {
11520 return dlopen ();
11521   ;
11522   return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526   ac_cv_lib_svld_dlopen=yes
11527 else
11528   ac_cv_lib_svld_dlopen=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531     conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11535 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11536 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11538 else
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11540 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11541 if ${ac_cv_lib_dld_dld_link+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldld  $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h.  */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550    Use char because int might match the return type of a GCC
11551    builtin and then its argument prototype would still apply.  */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dld_link ();
11556 int
11557 main ()
11558 {
11559 return dld_link ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565   ac_cv_lib_dld_dld_link=yes
11566 else
11567   ac_cv_lib_dld_dld_link=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570     conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11574 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11575 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11576   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11577 fi
11578
11579
11580 fi
11581
11582
11583 fi
11584
11585
11586 fi
11587
11588
11589 fi
11590
11591
11592 fi
11593
11594     ;;
11595   esac
11596
11597   if test "x$lt_cv_dlopen" != xno; then
11598     enable_dlopen=yes
11599   else
11600     enable_dlopen=no
11601   fi
11602
11603   case $lt_cv_dlopen in
11604   dlopen)
11605     save_CPPFLAGS="$CPPFLAGS"
11606     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11607
11608     save_LDFLAGS="$LDFLAGS"
11609     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11610
11611     save_LIBS="$LIBS"
11612     LIBS="$lt_cv_dlopen_libs $LIBS"
11613
11614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11615 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11616 if ${lt_cv_dlopen_self+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619           if test "$cross_compiling" = yes; then :
11620   lt_cv_dlopen_self=cross
11621 else
11622   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11623   lt_status=$lt_dlunknown
11624   cat > conftest.$ac_ext <<_LT_EOF
11625 #line $LINENO "configure"
11626 #include "confdefs.h"
11627
11628 #if HAVE_DLFCN_H
11629 #include <dlfcn.h>
11630 #endif
11631
11632 #include <stdio.h>
11633
11634 #ifdef RTLD_GLOBAL
11635 #  define LT_DLGLOBAL           RTLD_GLOBAL
11636 #else
11637 #  ifdef DL_GLOBAL
11638 #    define LT_DLGLOBAL         DL_GLOBAL
11639 #  else
11640 #    define LT_DLGLOBAL         0
11641 #  endif
11642 #endif
11643
11644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11645    find out it does not work in some platform. */
11646 #ifndef LT_DLLAZY_OR_NOW
11647 #  ifdef RTLD_LAZY
11648 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11649 #  else
11650 #    ifdef DL_LAZY
11651 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11652 #    else
11653 #      ifdef RTLD_NOW
11654 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11655 #      else
11656 #        ifdef DL_NOW
11657 #          define LT_DLLAZY_OR_NOW      DL_NOW
11658 #        else
11659 #          define LT_DLLAZY_OR_NOW      0
11660 #        endif
11661 #      endif
11662 #    endif
11663 #  endif
11664 #endif
11665
11666 /* When -fvisbility=hidden is used, assume the code has been annotated
11667    correspondingly for the symbols needed.  */
11668 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11669 int fnord () __attribute__((visibility("default")));
11670 #endif
11671
11672 int fnord () { return 42; }
11673 int main ()
11674 {
11675   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11676   int status = $lt_dlunknown;
11677
11678   if (self)
11679     {
11680       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11681       else
11682         {
11683           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11684           else puts (dlerror ());
11685         }
11686       /* dlclose (self); */
11687     }
11688   else
11689     puts (dlerror ());
11690
11691   return status;
11692 }
11693 _LT_EOF
11694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11695   (eval $ac_link) 2>&5
11696   ac_status=$?
11697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11699     (./conftest; exit; ) >&5 2>/dev/null
11700     lt_status=$?
11701     case x$lt_status in
11702       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11703       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11704       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11705     esac
11706   else :
11707     # compilation failed
11708     lt_cv_dlopen_self=no
11709   fi
11710 fi
11711 rm -fr conftest*
11712
11713
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11716 $as_echo "$lt_cv_dlopen_self" >&6; }
11717
11718     if test "x$lt_cv_dlopen_self" = xyes; then
11719       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11721 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11722 if ${lt_cv_dlopen_self_static+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725           if test "$cross_compiling" = yes; then :
11726   lt_cv_dlopen_self_static=cross
11727 else
11728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11729   lt_status=$lt_dlunknown
11730   cat > conftest.$ac_ext <<_LT_EOF
11731 #line $LINENO "configure"
11732 #include "confdefs.h"
11733
11734 #if HAVE_DLFCN_H
11735 #include <dlfcn.h>
11736 #endif
11737
11738 #include <stdio.h>
11739
11740 #ifdef RTLD_GLOBAL
11741 #  define LT_DLGLOBAL           RTLD_GLOBAL
11742 #else
11743 #  ifdef DL_GLOBAL
11744 #    define LT_DLGLOBAL         DL_GLOBAL
11745 #  else
11746 #    define LT_DLGLOBAL         0
11747 #  endif
11748 #endif
11749
11750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11751    find out it does not work in some platform. */
11752 #ifndef LT_DLLAZY_OR_NOW
11753 #  ifdef RTLD_LAZY
11754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11755 #  else
11756 #    ifdef DL_LAZY
11757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11758 #    else
11759 #      ifdef RTLD_NOW
11760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11761 #      else
11762 #        ifdef DL_NOW
11763 #          define LT_DLLAZY_OR_NOW      DL_NOW
11764 #        else
11765 #          define LT_DLLAZY_OR_NOW      0
11766 #        endif
11767 #      endif
11768 #    endif
11769 #  endif
11770 #endif
11771
11772 /* When -fvisbility=hidden is used, assume the code has been annotated
11773    correspondingly for the symbols needed.  */
11774 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11775 int fnord () __attribute__((visibility("default")));
11776 #endif
11777
11778 int fnord () { return 42; }
11779 int main ()
11780 {
11781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11782   int status = $lt_dlunknown;
11783
11784   if (self)
11785     {
11786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11787       else
11788         {
11789           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11790           else puts (dlerror ());
11791         }
11792       /* dlclose (self); */
11793     }
11794   else
11795     puts (dlerror ());
11796
11797   return status;
11798 }
11799 _LT_EOF
11800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11801   (eval $ac_link) 2>&5
11802   ac_status=$?
11803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11804   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11805     (./conftest; exit; ) >&5 2>/dev/null
11806     lt_status=$?
11807     case x$lt_status in
11808       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11809       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11810       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11811     esac
11812   else :
11813     # compilation failed
11814     lt_cv_dlopen_self_static=no
11815   fi
11816 fi
11817 rm -fr conftest*
11818
11819
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11822 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11823     fi
11824
11825     CPPFLAGS="$save_CPPFLAGS"
11826     LDFLAGS="$save_LDFLAGS"
11827     LIBS="$save_LIBS"
11828     ;;
11829   esac
11830
11831   case $lt_cv_dlopen_self in
11832   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11833   *) enable_dlopen_self=unknown ;;
11834   esac
11835
11836   case $lt_cv_dlopen_self_static in
11837   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11838   *) enable_dlopen_self_static=unknown ;;
11839   esac
11840 fi
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858 striplib=
11859 old_striplib=
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11861 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11862 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11863   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11864   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867 else
11868 # FIXME - insert some real tests, host_os isn't really good enough
11869   case $host_os in
11870   darwin*)
11871     if test -n "$STRIP" ; then
11872       striplib="$STRIP -x"
11873       old_striplib="$STRIP -S"
11874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; }
11876     else
11877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879     fi
11880     ;;
11881   *)
11882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884     ;;
11885   esac
11886 fi
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899   # Report which library types will actually be built
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11903 $as_echo "$can_build_shared" >&6; }
11904
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11906 $as_echo_n "checking whether to build shared libraries... " >&6; }
11907   test "$can_build_shared" = "no" && enable_shared=no
11908
11909   # On AIX, shared libraries and static libraries use the same namespace, and
11910   # are all built from PIC.
11911   case $host_os in
11912   aix3*)
11913     test "$enable_shared" = yes && enable_static=no
11914     if test -n "$RANLIB"; then
11915       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11916       postinstall_cmds='$RANLIB $lib'
11917     fi
11918     ;;
11919
11920   aix[4-9]*)
11921     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11922       test "$enable_shared" = yes && enable_static=no
11923     fi
11924     ;;
11925   esac
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11927 $as_echo "$enable_shared" >&6; }
11928
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11930 $as_echo_n "checking whether to build static libraries... " >&6; }
11931   # Make sure either enable_shared or enable_static is yes.
11932   test "$enable_shared" = yes || enable_static=yes
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11934 $as_echo "$enable_static" >&6; }
11935
11936
11937
11938
11939 fi
11940 ac_ext=c
11941 ac_cpp='$CPP $CPPFLAGS'
11942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11945
11946 CC="$lt_save_CC"
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960         ac_config_commands="$ac_config_commands libtool"
11961
11962
11963
11964
11965 # Only expand once:
11966
11967
11968
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11971 $as_echo_n "checking for C compiler vendor... " >&6; }
11972 if ${ax_cv_c_compiler_vendor+:} false; then :
11973   $as_echo_n "(cached) " >&6
11974 else
11975   # note: don't check for gcc first since some other compilers define __GNUC__
11976   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
11977            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
11978            pathscale: __PATHCC__,__PATHSCALE__
11979            clang:     __clang__
11980            gnu:       __GNUC__
11981            sun:       __SUNPRO_C,__SUNPRO_CC
11982            hp:        __HP_cc,__HP_aCC
11983            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11984            borland:   __BORLANDC__,__TURBOC__
11985            comeau:    __COMO__
11986            cray:      _CRAYC
11987            kai:       __KCC
11988            lcc:       __LCC__
11989            sgi:       __sgi,sgi
11990            microsoft: _MSC_VER
11991            metrowerks: __MWERKS__
11992            watcom:    __WATCOMC__
11993            portland:  __PGI
11994            unknown:   UNKNOWN"
11995   for ventest in $vendors; do
11996     case $ventest in
11997       *:) vendor=$ventest; continue ;;
11998       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
11999     esac
12000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h.  */
12002
12003 int
12004 main ()
12005 {
12006
12007       #if !($vencpp)
12008         thisisanerror;
12009       #endif
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016   break
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019   done
12020   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12021
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12024 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12025
12026
12027
12028
12029
12030
12031 # Check whether --enable-portable-binary was given.
12032 if test "${enable_portable_binary+set}" = set; then :
12033   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12034 else
12035   acx_maxopt_portable=no
12036 fi
12037
12038
12039 # Try to determine "good" native compiler flags if none specified via CFLAGS
12040 if test "$ac_test_CFLAGS" != "set"; then
12041   CFLAGS=""
12042   case $ax_cv_c_compiler_vendor in
12043     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12044          if test "x$acx_maxopt_portable" = xno; then
12045            CFLAGS="$CFLAGS -arch host"
12046          fi;;
12047
12048     sun) CFLAGS="-native -fast -xO5 -dalign"
12049          if test "x$acx_maxopt_portable" = xyes; then
12050            CFLAGS="$CFLAGS -xarch=generic"
12051          fi;;
12052
12053     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12054          if test "x$acx_maxopt_portable" = xyes; then
12055            CFLAGS="$CFLAGS +DAportable"
12056          fi;;
12057
12058     ibm) if test "x$acx_maxopt_portable" = xno; then
12059            xlc_opt="-qarch=auto -qtune=auto"
12060          else
12061            xlc_opt="-qtune=auto"
12062          fi
12063          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12065 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12066 if eval \${$as_CACHEVAR+:} false; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069
12070   ax_check_save_flags=$CFLAGS
12071   CFLAGS="$CFLAGS  $xlc_opt"
12072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h.  */
12074
12075 int
12076 main ()
12077 {
12078
12079   ;
12080   return 0;
12081 }
12082 _ACEOF
12083 if ac_fn_c_try_compile "$LINENO"; then :
12084   eval "$as_CACHEVAR=yes"
12085 else
12086   eval "$as_CACHEVAR=no"
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089   CFLAGS=$ax_check_save_flags
12090 fi
12091 eval ac_res=\$$as_CACHEVAR
12092                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12093 $as_echo "$ac_res" >&6; }
12094 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12095   CFLAGS="-O3 -qansialias -w $xlc_opt"
12096 else
12097   CFLAGS="-O3 -qansialias -w"
12098                 echo "******************************************************"
12099                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12100                 echo "*  recommended for best performance that you use:    *"
12101                 echo "*                                                    *"
12102                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12103                 echo "*                      ^^^        ^^^                *"
12104                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12105                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12106                 echo "*  and re-run configure.)  For more info, man cc.    *"
12107                 echo "******************************************************"
12108 fi
12109
12110          ;;
12111
12112     intel) CFLAGS="-O3 -ansi_alias"
12113         if test "x$acx_maxopt_portable" = xno; then
12114           icc_archflag=unknown
12115           icc_flags=""
12116           case $host_cpu in
12117             i686*|x86_64*)
12118               # icc accepts gcc assembly syntax, so these should work:
12119
12120 ac_ext=c
12121 ac_cpp='$CPP $CPPFLAGS'
12122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12127 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12128 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   if test "$cross_compiling" = yes; then :
12132   ax_cv_gcc_x86_cpuid_0=unknown
12133 else
12134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h.  */
12136 #include <stdio.h>
12137 int
12138 main ()
12139 {
12140
12141      int op = 0, eax, ebx, ecx, edx;
12142      FILE *f;
12143       __asm__("cpuid"
12144         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12145         : "a" (op));
12146      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12147      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12148      fclose(f);
12149      return 0;
12150
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_run "$LINENO"; then :
12156   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12157 else
12158   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12159 fi
12160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12161   conftest.$ac_objext conftest.beam conftest.$ac_ext
12162 fi
12163
12164 fi
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12166 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12167 ac_ext=c
12168 ac_cpp='$CPP $CPPFLAGS'
12169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12172
12173
12174
12175 ac_ext=c
12176 ac_cpp='$CPP $CPPFLAGS'
12177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12180
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12182 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12183 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   if test "$cross_compiling" = yes; then :
12187   ax_cv_gcc_x86_cpuid_1=unknown
12188 else
12189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h.  */
12191 #include <stdio.h>
12192 int
12193 main ()
12194 {
12195
12196      int op = 1, eax, ebx, ecx, edx;
12197      FILE *f;
12198       __asm__("cpuid"
12199         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12200         : "a" (op));
12201      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12202      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12203      fclose(f);
12204      return 0;
12205
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 if ac_fn_c_try_run "$LINENO"; then :
12211   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12212 else
12213   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12214 fi
12215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12216   conftest.$ac_objext conftest.beam conftest.$ac_ext
12217 fi
12218
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12221 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12222 ac_ext=c
12223 ac_cpp='$CPP $CPPFLAGS'
12224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
12228
12229               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12230                 *:756e6547:*:*) # Intel
12231                   case $ax_cv_gcc_x86_cpuid_1 in
12232                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12233                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12234                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12235                   esac ;;
12236               esac ;;
12237           esac
12238           if test "x$icc_flags" != x; then
12239             for flag in $icc_flags; do
12240               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12242 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12243 if eval \${$as_CACHEVAR+:} false; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246
12247   ax_check_save_flags=$CFLAGS
12248   CFLAGS="$CFLAGS  $flag"
12249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h.  */
12251
12252 int
12253 main ()
12254 {
12255
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 if ac_fn_c_try_compile "$LINENO"; then :
12261   eval "$as_CACHEVAR=yes"
12262 else
12263   eval "$as_CACHEVAR=no"
12264 fi
12265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12266   CFLAGS=$ax_check_save_flags
12267 fi
12268 eval ac_res=\$$as_CACHEVAR
12269                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12270 $as_echo "$ac_res" >&6; }
12271 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12272   icc_archflag=$flag; break
12273 else
12274   :
12275 fi
12276
12277             done
12278           fi
12279           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12280 $as_echo_n "checking for icc architecture flag... " >&6; }
12281           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12282 $as_echo "$icc_archflag" >&6; }
12283           if test "x$icc_archflag" != xunknown; then
12284             CFLAGS="$CFLAGS $icc_archflag"
12285           fi
12286         fi
12287         ;;
12288
12289     gnu)
12290      # default optimization flags for gcc on all systems
12291      CFLAGS="-O3 -fomit-frame-pointer"
12292
12293      # -malign-double for x86 systems
12294      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12295 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12296 if ${ax_cv_check_cflags___malign_double+:} false; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299
12300   ax_check_save_flags=$CFLAGS
12301   CFLAGS="$CFLAGS  -malign-double"
12302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h.  */
12304
12305 int
12306 main ()
12307 {
12308
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_compile "$LINENO"; then :
12314   ax_cv_check_cflags___malign_double=yes
12315 else
12316   ax_cv_check_cflags___malign_double=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319   CFLAGS=$ax_check_save_flags
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12322 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12323 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12324   CFLAGS="$CFLAGS -malign-double"
12325 else
12326   :
12327 fi
12328
12329
12330      #  -fstrict-aliasing for gcc-2.95+
12331      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12332 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12333 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336
12337   ax_check_save_flags=$CFLAGS
12338   CFLAGS="$CFLAGS  -fstrict-aliasing"
12339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h.  */
12341
12342 int
12343 main ()
12344 {
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 if ac_fn_c_try_compile "$LINENO"; then :
12351   ax_cv_check_cflags___fstrict_aliasing=yes
12352 else
12353   ax_cv_check_cflags___fstrict_aliasing=no
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356   CFLAGS=$ax_check_save_flags
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12359 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12360 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12361   CFLAGS="$CFLAGS -fstrict-aliasing"
12362 else
12363   :
12364 fi
12365
12366
12367      # note that we enable "unsafe" fp optimization with other compilers, too
12368      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12369 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12370 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373
12374   ax_check_save_flags=$CFLAGS
12375   CFLAGS="$CFLAGS  -ffast-math"
12376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h.  */
12378
12379 int
12380 main ()
12381 {
12382
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388   ax_cv_check_cflags___ffast_math=yes
12389 else
12390   ax_cv_check_cflags___ffast_math=no
12391 fi
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393   CFLAGS=$ax_check_save_flags
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12396 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12397 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12398   CFLAGS="$CFLAGS -ffast-math"
12399 else
12400   :
12401 fi
12402
12403
12404
12405
12406
12407
12408 # Check whether --with-gcc-arch was given.
12409 if test "${with_gcc_arch+set}" = set; then :
12410   withval=$with_gcc_arch; ax_gcc_arch=$withval
12411 else
12412   ax_gcc_arch=yes
12413 fi
12414
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12417 $as_echo_n "checking for gcc architecture flag... " >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12419 $as_echo "" >&6; }
12420 if ${ax_cv_gcc_archflag+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423
12424 ax_cv_gcc_archflag="unknown"
12425
12426 if test "$GCC" = yes; then
12427
12428 if test "x$ax_gcc_arch" = xyes; then
12429 ax_gcc_arch=""
12430 if test "$cross_compiling" = no; then
12431 case $host_cpu in
12432   i[3456]86*|x86_64*) # use cpuid codes
12433
12434 ac_ext=c
12435 ac_cpp='$CPP $CPPFLAGS'
12436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12441 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12442 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12443   $as_echo_n "(cached) " >&6
12444 else
12445   if test "$cross_compiling" = yes; then :
12446   ax_cv_gcc_x86_cpuid_0=unknown
12447 else
12448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h.  */
12450 #include <stdio.h>
12451 int
12452 main ()
12453 {
12454
12455      int op = 0, eax, ebx, ecx, edx;
12456      FILE *f;
12457       __asm__("cpuid"
12458         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12459         : "a" (op));
12460      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12461      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12462      fclose(f);
12463      return 0;
12464
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 if ac_fn_c_try_run "$LINENO"; then :
12470   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12471 else
12472   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12473 fi
12474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12475   conftest.$ac_objext conftest.beam conftest.$ac_ext
12476 fi
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12480 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12481 ac_ext=c
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
12487
12488
12489 ac_ext=c
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12496 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12497 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   if test "$cross_compiling" = yes; then :
12501   ax_cv_gcc_x86_cpuid_1=unknown
12502 else
12503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h.  */
12505 #include <stdio.h>
12506 int
12507 main ()
12508 {
12509
12510      int op = 1, eax, ebx, ecx, edx;
12511      FILE *f;
12512       __asm__("cpuid"
12513         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12514         : "a" (op));
12515      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12516      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12517      fclose(f);
12518      return 0;
12519
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_run "$LINENO"; then :
12525   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12526 else
12527   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12528 fi
12529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12530   conftest.$ac_objext conftest.beam conftest.$ac_ext
12531 fi
12532
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12535 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12536 ac_ext=c
12537 ac_cpp='$CPP $CPPFLAGS'
12538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12541
12542
12543      case $ax_cv_gcc_x86_cpuid_0 in
12544        *:756e6547:*:*) # Intel
12545           case $ax_cv_gcc_x86_cpuid_1 in
12546             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12547             *5??:*:*:*) ax_gcc_arch=pentium ;;
12548             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12549             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12550             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12551             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12552             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12553             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12554             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12555             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12556             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12557             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12558             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12559             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12560             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12561                 case $host_cpu in
12562                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12563                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12564                 esac ;;
12565             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12566           esac ;;
12567        *:68747541:*:*) # AMD
12568           case $ax_cv_gcc_x86_cpuid_1 in
12569             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12570             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12571             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12572             *60?:*:*:*) ax_gcc_arch=k7 ;;
12573             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12574             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12575             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12576             *6[68a]?:*:*:*)
12577
12578 ac_ext=c
12579 ac_cpp='$CPP $CPPFLAGS'
12580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12585 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12586 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589   if test "$cross_compiling" = yes; then :
12590   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12591 else
12592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h.  */
12594 #include <stdio.h>
12595 int
12596 main ()
12597 {
12598
12599      int op = 0x80000006, eax, ebx, ecx, edx;
12600      FILE *f;
12601       __asm__("cpuid"
12602         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12603         : "a" (op));
12604      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12605      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12606      fclose(f);
12607      return 0;
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_run "$LINENO"; then :
12614   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12615 else
12616   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12617 fi
12618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12619   conftest.$ac_objext conftest.beam conftest.$ac_ext
12620 fi
12621
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12624 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12625 ac_ext=c
12626 ac_cpp='$CPP $CPPFLAGS'
12627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12630
12631  # L2 cache size
12632                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12633                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12634                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12635                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12636                esac ;;
12637             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12638             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12639             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12640             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12641             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12642             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12643             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12644           esac ;;
12645         *:746e6543:*:*) # IDT
12646            case $ax_cv_gcc_x86_cpuid_1 in
12647              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12648              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12649              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12650              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12651            esac ;;
12652      esac
12653      if test x"$ax_gcc_arch" = x; then # fallback
12654         case $host_cpu in
12655           i586*) ax_gcc_arch=pentium ;;
12656           i686*) ax_gcc_arch=pentiumpro ;;
12657         esac
12658      fi
12659      ;;
12660
12661   sparc*)
12662      # Extract the first word of "prtdiag", so it can be a program name with args.
12663 set dummy prtdiag; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_path_PRTDIAG+:} false; then :
12667   $as_echo_n "(cached) " >&6
12668 else
12669   case $PRTDIAG in
12670   [\\/]* | ?:[\\/]*)
12671   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12672   ;;
12673   *)
12674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12676 for as_dir in $as_dummy
12677 do
12678   IFS=$as_save_IFS
12679   test -z "$as_dir" && as_dir=.
12680     for ac_exec_ext in '' $ac_executable_extensions; do
12681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684     break 2
12685   fi
12686 done
12687   done
12688 IFS=$as_save_IFS
12689
12690   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12691   ;;
12692 esac
12693 fi
12694 PRTDIAG=$ac_cv_path_PRTDIAG
12695 if test -n "$PRTDIAG"; then
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12697 $as_echo "$PRTDIAG" >&6; }
12698 else
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 fi
12702
12703
12704      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`
12705      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12706      case $cputype in
12707          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12708          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12709          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12710          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12711          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12712          *cypress*) ax_gcc_arch=cypress ;;
12713      esac ;;
12714
12715   alphaev5) ax_gcc_arch=ev5 ;;
12716   alphaev56) ax_gcc_arch=ev56 ;;
12717   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12718   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12719   alphaev6) ax_gcc_arch=ev6 ;;
12720   alphaev67) ax_gcc_arch=ev67 ;;
12721   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12722   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12723   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12724   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12725
12726   powerpc*)
12727      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`
12728      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12729      case $cputype in
12730        *750*) ax_gcc_arch="750 G3" ;;
12731        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12732        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12733        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12734        *970*) ax_gcc_arch="970 G5 power4";;
12735        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12736        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12737        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12738        *) ax_gcc_arch=$cputype ;;
12739      esac
12740      ax_gcc_arch="$ax_gcc_arch powerpc"
12741      ;;
12742 esac
12743 fi # not cross-compiling
12744 fi # guess arch
12745
12746 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12747 for arch in $ax_gcc_arch; do
12748   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12749     flags="-mtune=$arch"
12750     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12751     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12752     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12753   else
12754     flags="-march=$arch -mcpu=$arch -m$arch"
12755   fi
12756   for flag in $flags; do
12757     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12759 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12760 if eval \${$as_CACHEVAR+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763
12764   ax_check_save_flags=$CFLAGS
12765   CFLAGS="$CFLAGS  $flag"
12766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h.  */
12768
12769 int
12770 main ()
12771 {
12772
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_compile "$LINENO"; then :
12778   eval "$as_CACHEVAR=yes"
12779 else
12780   eval "$as_CACHEVAR=no"
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783   CFLAGS=$ax_check_save_flags
12784 fi
12785 eval ac_res=\$$as_CACHEVAR
12786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12787 $as_echo "$ac_res" >&6; }
12788 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12789   ax_cv_gcc_archflag=$flag; break
12790 else
12791   :
12792 fi
12793
12794   done
12795   test "x$ax_cv_gcc_archflag" = xunknown || break
12796 done
12797 fi
12798
12799 fi # $GCC=yes
12800
12801 fi
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12804 $as_echo_n "checking for gcc architecture flag... " >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12806 $as_echo "$ax_cv_gcc_archflag" >&6; }
12807 if test "x$ax_cv_gcc_archflag" = xunknown; then
12808   :
12809 else
12810   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12811 fi
12812
12813      ;;
12814   esac
12815
12816   if test -z "$CFLAGS"; then
12817         echo ""
12818         echo "********************************************************"
12819         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12820         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12821         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12822         echo "********************************************************"
12823         echo ""
12824         CFLAGS="-O3"
12825   fi
12826
12827   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12829 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12830 if eval \${$as_CACHEVAR+:} false; then :
12831   $as_echo_n "(cached) " >&6
12832 else
12833
12834   ax_check_save_flags=$CFLAGS
12835   CFLAGS="$CFLAGS  $CFLAGS"
12836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h.  */
12838
12839 int
12840 main ()
12841 {
12842
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_compile "$LINENO"; then :
12848   eval "$as_CACHEVAR=yes"
12849 else
12850   eval "$as_CACHEVAR=no"
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853   CFLAGS=$ax_check_save_flags
12854 fi
12855 eval ac_res=\$$as_CACHEVAR
12856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12857 $as_echo "$ac_res" >&6; }
12858 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12859   :
12860 else
12861
12862         echo ""
12863         echo "********************************************************"
12864         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12865         echo "* your compiler.                                       *"
12866         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12867         echo "********************************************************"
12868         echo ""
12869         CFLAGS=""
12870
12871 fi
12872
12873
12874 fi
12875
12876 if ${CFLAGS+:} false; then :
12877   case " $CFLAGS " in
12878     *"  "*)
12879       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12880   (: CFLAGS already contains ) 2>&5
12881   ac_status=$?
12882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12883   test $ac_status = 0; }
12884       ;;
12885     *)
12886       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12887   (: CFLAGS="$CFLAGS ") 2>&5
12888   ac_status=$?
12889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12890   test $ac_status = 0; }
12891       CFLAGS="$CFLAGS "
12892       ;;
12893    esac
12894 else
12895   CFLAGS=""
12896 fi
12897
12898 ac_ext=c
12899 ac_cpp='$CPP $CPPFLAGS'
12900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12905 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12906 if ${ac_cv_cflags_warn_all+:} false; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   ac_cv_cflags_warn_all="no, unknown"
12910 ac_save_CFLAGS="$CFLAGS"
12911 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"    #
12912 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h.  */
12915
12916 int
12917 main ()
12918 {
12919
12920   ;
12921   return 0;
12922 }
12923 _ACEOF
12924 if ac_fn_c_try_compile "$LINENO"; then :
12925   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 done
12929 CFLAGS="$ac_save_CFLAGS"
12930
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12933 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12934
12935 case ".$ac_cv_cflags_warn_all" in
12936      .ok|.ok,*)  ;;
12937    .|.no|.no,*)  ;;
12938    *) if ${CFLAGS+:} false; then :
12939   case " $CFLAGS " in
12940     *" $ac_cv_cflags_warn_all "*)
12941       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12942   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12943   ac_status=$?
12944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945   test $ac_status = 0; }
12946       ;;
12947     *)
12948       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12949   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12950   ac_status=$?
12951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12952   test $ac_status = 0; }
12953       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
12954       ;;
12955    esac
12956 else
12957   CFLAGS="$ac_cv_cflags_warn_all"
12958 fi
12959  ;;
12960 esac
12961
12962 ac_ext=c
12963 ac_cpp='$CPP $CPPFLAGS'
12964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967
12968
12969 if test "x$GCC" = "xyes"; then
12970   CFLAGS="$CFLAGS -fexceptions"
12971 fi
12972
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12975 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12976     # Check whether --enable-maintainer-mode was given.
12977 if test "${enable_maintainer_mode+set}" = set; then :
12978   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12979 else
12980   USE_MAINTAINER_MODE=no
12981 fi
12982
12983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12984 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12985    if test $USE_MAINTAINER_MODE = yes; then
12986   MAINTAINER_MODE_TRUE=
12987   MAINTAINER_MODE_FALSE='#'
12988 else
12989   MAINTAINER_MODE_TRUE='#'
12990   MAINTAINER_MODE_FALSE=
12991 fi
12992
12993   MAINT=$MAINTAINER_MODE_TRUE
12994
12995
12996
12997 for ac_header in sys/mman.h
12998 do :
12999   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13000 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13001   cat >>confdefs.h <<_ACEOF
13002 #define HAVE_SYS_MMAN_H 1
13003 _ACEOF
13004
13005 fi
13006
13007 done
13008
13009 for ac_func in mmap
13010 do :
13011   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13012 if test "x$ac_cv_func_mmap" = xyes; then :
13013   cat >>confdefs.h <<_ACEOF
13014 #define HAVE_MMAP 1
13015 _ACEOF
13016
13017 fi
13018 done
13019
13020
13021 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13022 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13023   libffi_header_sys_mman_h=yes
13024 else
13025   libffi_header_sys_mman_h=no
13026 fi
13027
13028
13029 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13030 if test "x$ac_cv_func_mmap" = xyes; then :
13031   libffi_func_mmap=yes
13032 else
13033   libffi_func_mmap=no
13034 fi
13035
13036 if test "$libffi_header_sys_mman_h" != yes \
13037  || test "$libffi_func_mmap" != yes; then
13038    ac_cv_func_mmap_file=no
13039    ac_cv_func_mmap_dev_zero=no
13040    ac_cv_func_mmap_anon=no
13041 else
13042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13043 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13044 if ${ac_cv_func_mmap_file+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   # Add a system to this blacklist if
13048    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13049    # memory area containing the same data that you'd get if you applied
13050    # read() to the same fd.  The only system known to have a problem here
13051    # is VMS, where text files have record structure.
13052    case "$host_os" in
13053      vms* | ultrix*)
13054         ac_cv_func_mmap_file=no ;;
13055      *)
13056         ac_cv_func_mmap_file=yes;;
13057    esac
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13060 $as_echo "$ac_cv_func_mmap_file" >&6; }
13061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13062 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13063 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13064   $as_echo_n "(cached) " >&6
13065 else
13066   # Add a system to this blacklist if it has mmap() but /dev/zero
13067    # does not exist, or if mmapping /dev/zero does not give anonymous
13068    # zeroed pages with both the following properties:
13069    # 1. If you map N consecutive pages in with one call, and then
13070    #    unmap any subset of those pages, the pages that were not
13071    #    explicitly unmapped remain accessible.
13072    # 2. If you map two adjacent blocks of memory and then unmap them
13073    #    both at once, they must both go away.
13074    # Systems known to be in this category are Windows (all variants),
13075    # VMS, and Darwin.
13076    case "$host_os" in
13077      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13078         ac_cv_func_mmap_dev_zero=no ;;
13079      *)
13080         ac_cv_func_mmap_dev_zero=yes;;
13081    esac
13082 fi
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13084 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13085
13086    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13088 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13089 if ${ac_cv_decl_map_anon+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094 #include <sys/types.h>
13095 #include <sys/mman.h>
13096 #include <unistd.h>
13097
13098 #ifndef MAP_ANONYMOUS
13099 #define MAP_ANONYMOUS MAP_ANON
13100 #endif
13101
13102 int
13103 main ()
13104 {
13105 int n = MAP_ANONYMOUS;
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_compile "$LINENO"; then :
13111   ac_cv_decl_map_anon=yes
13112 else
13113   ac_cv_decl_map_anon=no
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13118 $as_echo "$ac_cv_decl_map_anon" >&6; }
13119
13120    if test $ac_cv_decl_map_anon = no; then
13121      ac_cv_func_mmap_anon=no
13122    else
13123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13124 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13125 if ${ac_cv_func_mmap_anon+:} false; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13129    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13130    # doesn't give anonymous zeroed pages with the same properties listed
13131    # above for use of /dev/zero.
13132    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13133    case "$host_os" in
13134      vms* | cygwin* | pe | mingw* | sco* | udk* )
13135         ac_cv_func_mmap_anon=no ;;
13136      *)
13137         ac_cv_func_mmap_anon=yes;;
13138    esac
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13141 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13142    fi
13143 fi
13144
13145 if test $ac_cv_func_mmap_file = yes; then
13146
13147 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13148
13149 fi
13150 if test $ac_cv_func_mmap_dev_zero = yes; then
13151
13152 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13153
13154 fi
13155 if test $ac_cv_func_mmap_anon = yes; then
13156
13157 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13158
13159 fi
13160
13161
13162  if test -d $srcdir/testsuite; then
13163   TESTSUBDIR_TRUE=
13164   TESTSUBDIR_FALSE='#'
13165 else
13166   TESTSUBDIR_TRUE='#'
13167   TESTSUBDIR_FALSE=
13168 fi
13169
13170
13171 TARGETDIR="unknown"
13172 case "$host" in
13173   alpha*-*-*)
13174         TARGET=ALPHA; TARGETDIR=alpha;
13175         # Support 128-bit long double, changeable via command-line switch.
13176         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13177         ;;
13178
13179   arm*-*-*)
13180         TARGET=ARM; TARGETDIR=arm
13181         ;;
13182
13183   amd64-*-freebsd* | amd64-*-openbsd*)
13184         TARGET=X86_64; TARGETDIR=x86
13185         ;;
13186
13187   amd64-*-freebsd*)
13188         TARGET=X86_64; TARGETDIR=x86
13189         ;;
13190
13191   avr32*-*-*)
13192         TARGET=AVR32; TARGETDIR=avr32
13193         ;;
13194
13195   bfin*)
13196         TARGET=BFIN; TARGETDIR=bfin
13197         ;;
13198
13199   cris-*-*)
13200         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13201         ;;
13202
13203   frv-*-*)
13204         TARGET=FRV; TARGETDIR=frv
13205         ;;
13206
13207   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13208         TARGET=PA_LINUX; TARGETDIR=pa
13209         ;;
13210   hppa*64-*-hpux*)
13211         TARGET=PA64_HPUX; TARGETDIR=pa
13212         ;;
13213   hppa*-*-hpux*)
13214         TARGET=PA_HPUX; TARGETDIR=pa
13215         ;;
13216
13217   i?86-*-freebsd* | i?86-*-openbsd*)
13218         TARGET=X86_FREEBSD; TARGETDIR=x86
13219         ;;
13220   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13221         TARGET=X86_WIN32; TARGETDIR=x86
13222         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13223         # We must also check with_cross_host to decide if this is a native
13224         # or cross-build and select where to install dlls appropriately.
13225         if test -n "$with_cross_host" &&
13226            test x"$with_cross_host" != x"no"; then
13227           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13228         else
13229           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13230         fi
13231         ;;
13232   i?86-*-darwin*)
13233         TARGET=X86_DARWIN; TARGETDIR=x86
13234         ;;
13235   i?86-*-solaris2.1[0-9]*)
13236         TARGET=X86_64; TARGETDIR=x86
13237         ;;
13238   i?86-*-*)
13239         TARGET=X86_64; TARGETDIR=x86
13240         ;;
13241
13242   ia64*-*-*)
13243         TARGET=IA64; TARGETDIR=ia64
13244         ;;
13245
13246   m32r*-*-*)
13247         TARGET=M32R; TARGETDIR=m32r
13248         ;;
13249
13250   m68k-*-*)
13251         TARGET=M68K; TARGETDIR=m68k
13252         ;;
13253
13254   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13255         TARGET=MIPS; TARGETDIR=mips
13256         ;;
13257   mips*-*-linux* | mips*-*-openbsd*)
13258         # Support 128-bit long double for NewABI.
13259         HAVE_LONG_DOUBLE='defined(__mips64)'
13260         TARGET=MIPS; TARGETDIR=mips
13261         ;;
13262
13263   moxie-*-*)
13264         TARGET=MOXIE; TARGETDIR=moxie
13265         ;;
13266
13267   powerpc*-*-linux* | powerpc-*-sysv*)
13268         TARGET=POWERPC; TARGETDIR=powerpc
13269         ;;
13270   powerpc-*-amigaos*)
13271         TARGET=POWERPC; TARGETDIR=powerpc
13272         ;;
13273   powerpc-*-beos*)
13274         TARGET=POWERPC; TARGETDIR=powerpc
13275         ;;
13276   powerpc-*-darwin* | powerpc64-*-darwin*)
13277         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13278         ;;
13279   powerpc-*-aix* | rs6000-*-aix*)
13280         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13281         ;;
13282   powerpc-*-freebsd* | powerpc-*-openbsd*)
13283         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13284         ;;
13285   powerpc64-*-freebsd*)
13286         TARGET=POWERPC; TARGETDIR=powerpc
13287         ;;
13288   powerpc*-*-rtems*)
13289         TARGET=POWERPC; TARGETDIR=powerpc
13290         ;;
13291
13292   s390-*-* | s390x-*-*)
13293         TARGET=S390; TARGETDIR=s390
13294         ;;
13295
13296   sh-*-* | sh[34]*-*-*)
13297         TARGET=SH; TARGETDIR=sh
13298         ;;
13299   sh64-*-* | sh5*-*-*)
13300         TARGET=SH64; TARGETDIR=sh64
13301         ;;
13302
13303   sparc*-*-*)
13304         TARGET=SPARC; TARGETDIR=sparc
13305         ;;
13306
13307   tile*-*)
13308         TARGET=TILE; TARGETDIR=tile
13309         ;;
13310
13311   x86_64-*-darwin*)
13312         TARGET=X86_DARWIN; TARGETDIR=x86
13313         ;;
13314
13315   x86_64-*-cygwin* | x86_64-*-mingw*)
13316         TARGET=X86_WIN64; TARGETDIR=x86
13317         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13318         # We must also check with_cross_host to decide if this is a native
13319         # or cross-build and select where to install dlls appropriately.
13320         if test -n "$with_cross_host" &&
13321            test x"$with_cross_host" != x"no"; then
13322           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13323         else
13324           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13325         fi
13326         ;;
13327
13328   x86_64-*-*)
13329         TARGET=X86_64; TARGETDIR=x86
13330         ;;
13331 esac
13332
13333
13334
13335
13336 if test $TARGETDIR = unknown; then
13337   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13338 fi
13339
13340  if test x$TARGET = xMIPS; then
13341   MIPS_TRUE=
13342   MIPS_FALSE='#'
13343 else
13344   MIPS_TRUE='#'
13345   MIPS_FALSE=
13346 fi
13347
13348  if test x$TARGET = xBFIN; then
13349   BFIN_TRUE=
13350   BFIN_FALSE='#'
13351 else
13352   BFIN_TRUE='#'
13353   BFIN_FALSE=
13354 fi
13355
13356  if test x$TARGET = xSPARC; then
13357   SPARC_TRUE=
13358   SPARC_FALSE='#'
13359 else
13360   SPARC_TRUE='#'
13361   SPARC_FALSE=
13362 fi
13363
13364  if test x$TARGET = xX86; then
13365   X86_TRUE=
13366   X86_FALSE='#'
13367 else
13368   X86_TRUE='#'
13369   X86_FALSE=
13370 fi
13371
13372  if test x$TARGET = xX86_FREEBSD; then
13373   X86_FREEBSD_TRUE=
13374   X86_FREEBSD_FALSE='#'
13375 else
13376   X86_FREEBSD_TRUE='#'
13377   X86_FREEBSD_FALSE=
13378 fi
13379
13380  if test x$TARGET = xX86_WIN32; then
13381   X86_WIN32_TRUE=
13382   X86_WIN32_FALSE='#'
13383 else
13384   X86_WIN32_TRUE='#'
13385   X86_WIN32_FALSE=
13386 fi
13387
13388  if test x$TARGET = xX86_WIN64; then
13389   X86_WIN64_TRUE=
13390   X86_WIN64_FALSE='#'
13391 else
13392   X86_WIN64_TRUE='#'
13393   X86_WIN64_FALSE=
13394 fi
13395
13396  if test x$TARGET = xX86_DARWIN; then
13397   X86_DARWIN_TRUE=
13398   X86_DARWIN_FALSE='#'
13399 else
13400   X86_DARWIN_TRUE='#'
13401   X86_DARWIN_FALSE=
13402 fi
13403
13404  if test x$TARGET = xALPHA; then
13405   ALPHA_TRUE=
13406   ALPHA_FALSE='#'
13407 else
13408   ALPHA_TRUE='#'
13409   ALPHA_FALSE=
13410 fi
13411
13412  if test x$TARGET = xIA64; then
13413   IA64_TRUE=
13414   IA64_FALSE='#'
13415 else
13416   IA64_TRUE='#'
13417   IA64_FALSE=
13418 fi
13419
13420  if test x$TARGET = xM32R; then
13421   M32R_TRUE=
13422   M32R_FALSE='#'
13423 else
13424   M32R_TRUE='#'
13425   M32R_FALSE=
13426 fi
13427
13428  if test x$TARGET = xM68K; then
13429   M68K_TRUE=
13430   M68K_FALSE='#'
13431 else
13432   M68K_TRUE='#'
13433   M68K_FALSE=
13434 fi
13435
13436  if test x$TARGET = xMOXIE; then
13437   MOXIE_TRUE=
13438   MOXIE_FALSE='#'
13439 else
13440   MOXIE_TRUE='#'
13441   MOXIE_FALSE=
13442 fi
13443
13444  if test x$TARGET = xPOWERPC; then
13445   POWERPC_TRUE=
13446   POWERPC_FALSE='#'
13447 else
13448   POWERPC_TRUE='#'
13449   POWERPC_FALSE=
13450 fi
13451
13452  if test x$TARGET = xPOWERPC_AIX; then
13453   POWERPC_AIX_TRUE=
13454   POWERPC_AIX_FALSE='#'
13455 else
13456   POWERPC_AIX_TRUE='#'
13457   POWERPC_AIX_FALSE=
13458 fi
13459
13460  if test x$TARGET = xPOWERPC_DARWIN; then
13461   POWERPC_DARWIN_TRUE=
13462   POWERPC_DARWIN_FALSE='#'
13463 else
13464   POWERPC_DARWIN_TRUE='#'
13465   POWERPC_DARWIN_FALSE=
13466 fi
13467
13468  if test x$TARGET = xPOWERPC_FREEBSD; then
13469   POWERPC_FREEBSD_TRUE=
13470   POWERPC_FREEBSD_FALSE='#'
13471 else
13472   POWERPC_FREEBSD_TRUE='#'
13473   POWERPC_FREEBSD_FALSE=
13474 fi
13475
13476  if test x$TARGET = xARM; then
13477   ARM_TRUE=
13478   ARM_FALSE='#'
13479 else
13480   ARM_TRUE='#'
13481   ARM_FALSE=
13482 fi
13483
13484  if test x$TARGET = xAVR32; then
13485   AVR32_TRUE=
13486   AVR32_FALSE='#'
13487 else
13488   AVR32_TRUE='#'
13489   AVR32_FALSE=
13490 fi
13491
13492  if test x$TARGET = xLIBFFI_CRIS; then
13493   LIBFFI_CRIS_TRUE=
13494   LIBFFI_CRIS_FALSE='#'
13495 else
13496   LIBFFI_CRIS_TRUE='#'
13497   LIBFFI_CRIS_FALSE=
13498 fi
13499
13500  if test x$TARGET = xFRV; then
13501   FRV_TRUE=
13502   FRV_FALSE='#'
13503 else
13504   FRV_TRUE='#'
13505   FRV_FALSE=
13506 fi
13507
13508  if test x$TARGET = xS390; then
13509   S390_TRUE=
13510   S390_FALSE='#'
13511 else
13512   S390_TRUE='#'
13513   S390_FALSE=
13514 fi
13515
13516  if test x$TARGET = xX86_64; then
13517   X86_64_TRUE=
13518   X86_64_FALSE='#'
13519 else
13520   X86_64_TRUE='#'
13521   X86_64_FALSE=
13522 fi
13523
13524  if test x$TARGET = xSH; then
13525   SH_TRUE=
13526   SH_FALSE='#'
13527 else
13528   SH_TRUE='#'
13529   SH_FALSE=
13530 fi
13531
13532  if test x$TARGET = xSH64; then
13533   SH64_TRUE=
13534   SH64_FALSE='#'
13535 else
13536   SH64_TRUE='#'
13537   SH64_FALSE=
13538 fi
13539
13540  if test x$TARGET = xPA_LINUX; then
13541   PA_LINUX_TRUE=
13542   PA_LINUX_FALSE='#'
13543 else
13544   PA_LINUX_TRUE='#'
13545   PA_LINUX_FALSE=
13546 fi
13547
13548  if test x$TARGET = xPA_HPUX; then
13549   PA_HPUX_TRUE=
13550   PA_HPUX_FALSE='#'
13551 else
13552   PA_HPUX_TRUE='#'
13553   PA_HPUX_FALSE=
13554 fi
13555
13556  if test x$TARGET = xPA64_HPUX; then
13557   PA64_HPUX_TRUE=
13558   PA64_HPUX_FALSE='#'
13559 else
13560   PA64_HPUX_TRUE='#'
13561   PA64_HPUX_FALSE=
13562 fi
13563
13564  if test x$TARGET = xTILE; then
13565   TILE_TRUE=
13566   TILE_FALSE='#'
13567 else
13568   TILE_TRUE='#'
13569   TILE_FALSE=
13570 fi
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13574 $as_echo_n "checking for ANSI C header files... " >&6; }
13575 if ${ac_cv_header_stdc+:} false; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h.  */
13580 #include <stdlib.h>
13581 #include <stdarg.h>
13582 #include <string.h>
13583 #include <float.h>
13584
13585 int
13586 main ()
13587 {
13588
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594   ac_cv_header_stdc=yes
13595 else
13596   ac_cv_header_stdc=no
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599
13600 if test $ac_cv_header_stdc = yes; then
13601   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h.  */
13604 #include <string.h>
13605
13606 _ACEOF
13607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13608   $EGREP "memchr" >/dev/null 2>&1; then :
13609
13610 else
13611   ac_cv_header_stdc=no
13612 fi
13613 rm -f conftest*
13614
13615 fi
13616
13617 if test $ac_cv_header_stdc = yes; then
13618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h.  */
13621 #include <stdlib.h>
13622
13623 _ACEOF
13624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13625   $EGREP "free" >/dev/null 2>&1; then :
13626
13627 else
13628   ac_cv_header_stdc=no
13629 fi
13630 rm -f conftest*
13631
13632 fi
13633
13634 if test $ac_cv_header_stdc = yes; then
13635   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13636   if test "$cross_compiling" = yes; then :
13637   :
13638 else
13639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h.  */
13641 #include <ctype.h>
13642 #include <stdlib.h>
13643 #if ((' ' & 0x0FF) == 0x020)
13644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13646 #else
13647 # define ISLOWER(c) \
13648                    (('a' <= (c) && (c) <= 'i') \
13649                      || ('j' <= (c) && (c) <= 'r') \
13650                      || ('s' <= (c) && (c) <= 'z'))
13651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13652 #endif
13653
13654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13655 int
13656 main ()
13657 {
13658   int i;
13659   for (i = 0; i < 256; i++)
13660     if (XOR (islower (i), ISLOWER (i))
13661         || toupper (i) != TOUPPER (i))
13662       return 2;
13663   return 0;
13664 }
13665 _ACEOF
13666 if ac_fn_c_try_run "$LINENO"; then :
13667
13668 else
13669   ac_cv_header_stdc=no
13670 fi
13671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13672   conftest.$ac_objext conftest.beam conftest.$ac_ext
13673 fi
13674
13675 fi
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13678 $as_echo "$ac_cv_header_stdc" >&6; }
13679 if test $ac_cv_header_stdc = yes; then
13680
13681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13682
13683 fi
13684
13685 for ac_func in memcpy
13686 do :
13687   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13688 if test "x$ac_cv_func_memcpy" = xyes; then :
13689   cat >>confdefs.h <<_ACEOF
13690 #define HAVE_MEMCPY 1
13691 _ACEOF
13692
13693 fi
13694 done
13695
13696 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13697 if test "x$ac_cv_type_size_t" = xyes; then :
13698
13699 else
13700
13701 cat >>confdefs.h <<_ACEOF
13702 #define size_t unsigned int
13703 _ACEOF
13704
13705 fi
13706
13707 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13708 # for constant arguments.  Useless!
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13710 $as_echo_n "checking for working alloca.h... " >&6; }
13711 if ${ac_cv_working_alloca_h+:} false; then :
13712   $as_echo_n "(cached) " >&6
13713 else
13714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716 #include <alloca.h>
13717 int
13718 main ()
13719 {
13720 char *p = (char *) alloca (2 * sizeof (int));
13721                           if (p) return 0;
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 if ac_fn_c_try_link "$LINENO"; then :
13727   ac_cv_working_alloca_h=yes
13728 else
13729   ac_cv_working_alloca_h=no
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext \
13732     conftest$ac_exeext conftest.$ac_ext
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13735 $as_echo "$ac_cv_working_alloca_h" >&6; }
13736 if test $ac_cv_working_alloca_h = yes; then
13737
13738 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13739
13740 fi
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13743 $as_echo_n "checking for alloca... " >&6; }
13744 if ${ac_cv_func_alloca_works+:} false; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h.  */
13749 #ifdef __GNUC__
13750 # define alloca __builtin_alloca
13751 #else
13752 # ifdef _MSC_VER
13753 #  include <malloc.h>
13754 #  define alloca _alloca
13755 # else
13756 #  ifdef HAVE_ALLOCA_H
13757 #   include <alloca.h>
13758 #  else
13759 #   ifdef _AIX
13760  #pragma alloca
13761 #   else
13762 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13763 void *alloca (size_t);
13764 #    endif
13765 #   endif
13766 #  endif
13767 # endif
13768 #endif
13769
13770 int
13771 main ()
13772 {
13773 char *p = (char *) alloca (1);
13774                                     if (p) return 0;
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_c_try_link "$LINENO"; then :
13780   ac_cv_func_alloca_works=yes
13781 else
13782   ac_cv_func_alloca_works=no
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext \
13785     conftest$ac_exeext conftest.$ac_ext
13786 fi
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13788 $as_echo "$ac_cv_func_alloca_works" >&6; }
13789
13790 if test $ac_cv_func_alloca_works = yes; then
13791
13792 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13793
13794 else
13795   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13796 # that cause trouble.  Some versions do not even contain alloca or
13797 # contain a buggy version.  If you still want to use their alloca,
13798 # use ar to extract alloca.o from them instead of compiling alloca.c.
13799
13800 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13801
13802 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13803
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13806 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13807 if ${ac_cv_os_cray+:} false; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h.  */
13812 #if defined CRAY && ! defined CRAY2
13813 webecray
13814 #else
13815 wenotbecray
13816 #endif
13817
13818 _ACEOF
13819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13820   $EGREP "webecray" >/dev/null 2>&1; then :
13821   ac_cv_os_cray=yes
13822 else
13823   ac_cv_os_cray=no
13824 fi
13825 rm -f conftest*
13826
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13829 $as_echo "$ac_cv_os_cray" >&6; }
13830 if test $ac_cv_os_cray = yes; then
13831   for ac_func in _getb67 GETB67 getb67; do
13832     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define CRAY_STACKSEG_END $ac_func
13838 _ACEOF
13839
13840     break
13841 fi
13842
13843   done
13844 fi
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13847 $as_echo_n "checking stack direction for C alloca... " >&6; }
13848 if ${ac_cv_c_stack_direction+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   if test "$cross_compiling" = yes; then :
13852   ac_cv_c_stack_direction=0
13853 else
13854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h.  */
13856 $ac_includes_default
13857 int
13858 find_stack_direction ()
13859 {
13860   static char *addr = 0;
13861   auto char dummy;
13862   if (addr == 0)
13863     {
13864       addr = &dummy;
13865       return find_stack_direction ();
13866     }
13867   else
13868     return (&dummy > addr) ? 1 : -1;
13869 }
13870
13871 int
13872 main ()
13873 {
13874   return find_stack_direction () < 0;
13875 }
13876 _ACEOF
13877 if ac_fn_c_try_run "$LINENO"; then :
13878   ac_cv_c_stack_direction=1
13879 else
13880   ac_cv_c_stack_direction=-1
13881 fi
13882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13883   conftest.$ac_objext conftest.beam conftest.$ac_ext
13884 fi
13885
13886 fi
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13888 $as_echo "$ac_cv_c_stack_direction" >&6; }
13889 cat >>confdefs.h <<_ACEOF
13890 #define STACK_DIRECTION $ac_cv_c_stack_direction
13891 _ACEOF
13892
13893
13894 fi
13895
13896
13897 # The cast to long int works around a bug in the HP C Compiler
13898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13900 # This bug is HP SR number 8606223364.
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13902 $as_echo_n "checking size of double... " >&6; }
13903 if ${ac_cv_sizeof_double+:} false; then :
13904   $as_echo_n "(cached) " >&6
13905 else
13906   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
13907
13908 else
13909   if test "$ac_cv_type_double" = yes; then
13910      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13912 as_fn_error 77 "cannot compute sizeof (double)
13913 See \`config.log' for more details" "$LINENO" 5; }
13914    else
13915      ac_cv_sizeof_double=0
13916    fi
13917 fi
13918
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13921 $as_echo "$ac_cv_sizeof_double" >&6; }
13922
13923
13924
13925 cat >>confdefs.h <<_ACEOF
13926 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13927 _ACEOF
13928
13929
13930 # The cast to long int works around a bug in the HP C Compiler
13931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13933 # This bug is HP SR number 8606223364.
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13935 $as_echo_n "checking size of long double... " >&6; }
13936 if ${ac_cv_sizeof_long_double+:} false; then :
13937   $as_echo_n "(cached) " >&6
13938 else
13939   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
13940
13941 else
13942   if test "$ac_cv_type_long_double" = yes; then
13943      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13945 as_fn_error 77 "cannot compute sizeof (long double)
13946 See \`config.log' for more details" "$LINENO" 5; }
13947    else
13948      ac_cv_sizeof_long_double=0
13949    fi
13950 fi
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13954 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13955
13956
13957
13958 cat >>confdefs.h <<_ACEOF
13959 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13960 _ACEOF
13961
13962
13963
13964 # Also AC_SUBST this variable for ffi.h.
13965 if test -z "$HAVE_LONG_DOUBLE"; then
13966   HAVE_LONG_DOUBLE=0
13967   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13968     if test $ac_cv_sizeof_long_double != 0; then
13969       HAVE_LONG_DOUBLE=1
13970
13971 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13972
13973     fi
13974   fi
13975 fi
13976
13977
13978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13979 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13980 if ${ac_cv_c_bigendian+:} false; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   ac_cv_c_bigendian=unknown
13984     # See if we're dealing with a universal compiler.
13985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h.  */
13987 #ifndef __APPLE_CC__
13988                not a universal capable compiler
13989              #endif
13990              typedef int dummy;
13991
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994
13995         # Check for potential -arch flags.  It is not universal unless
13996         # there are at least two -arch flags with different values.
13997         ac_arch=
13998         ac_prev=
13999         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14000          if test -n "$ac_prev"; then
14001            case $ac_word in
14002              i?86 | x86_64 | ppc | ppc64)
14003                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14004                  ac_arch=$ac_word
14005                else
14006                  ac_cv_c_bigendian=universal
14007                  break
14008                fi
14009                ;;
14010            esac
14011            ac_prev=
14012          elif test "x$ac_word" = "x-arch"; then
14013            ac_prev=arch
14014          fi
14015        done
14016 fi
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018     if test $ac_cv_c_bigendian = unknown; then
14019       # See if sys/param.h defines the BYTE_ORDER macro.
14020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h.  */
14022 #include <sys/types.h>
14023              #include <sys/param.h>
14024
14025 int
14026 main ()
14027 {
14028 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14029                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14030                      && LITTLE_ENDIAN)
14031               bogus endian macros
14032              #endif
14033
14034   ;
14035   return 0;
14036 }
14037 _ACEOF
14038 if ac_fn_c_try_compile "$LINENO"; then :
14039   # It does; now see whether it defined to BIG_ENDIAN or not.
14040          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h.  */
14042 #include <sys/types.h>
14043                 #include <sys/param.h>
14044
14045 int
14046 main ()
14047 {
14048 #if BYTE_ORDER != BIG_ENDIAN
14049                  not big endian
14050                 #endif
14051
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_compile "$LINENO"; then :
14057   ac_cv_c_bigendian=yes
14058 else
14059   ac_cv_c_bigendian=no
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064     fi
14065     if test $ac_cv_c_bigendian = unknown; then
14066       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h.  */
14069 #include <limits.h>
14070
14071 int
14072 main ()
14073 {
14074 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14075               bogus endian macros
14076              #endif
14077
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083   # It does; now see whether it defined to _BIG_ENDIAN or not.
14084          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h.  */
14086 #include <limits.h>
14087
14088 int
14089 main ()
14090 {
14091 #ifndef _BIG_ENDIAN
14092                  not big endian
14093                 #endif
14094
14095   ;
14096   return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100   ac_cv_c_bigendian=yes
14101 else
14102   ac_cv_c_bigendian=no
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107     fi
14108     if test $ac_cv_c_bigendian = unknown; then
14109       # Compile a test program.
14110       if test "$cross_compiling" = yes; then :
14111   # Try to guess by grepping values from an object file.
14112          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h.  */
14114 short int ascii_mm[] =
14115                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14116                 short int ascii_ii[] =
14117                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14118                 int use_ascii (int i) {
14119                   return ascii_mm[i] + ascii_ii[i];
14120                 }
14121                 short int ebcdic_ii[] =
14122                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14123                 short int ebcdic_mm[] =
14124                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14125                 int use_ebcdic (int i) {
14126                   return ebcdic_mm[i] + ebcdic_ii[i];
14127                 }
14128                 extern int foo;
14129
14130 int
14131 main ()
14132 {
14133 return use_ascii (foo) == use_ebcdic (foo);
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 if ac_fn_c_try_compile "$LINENO"; then :
14139   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14140               ac_cv_c_bigendian=yes
14141             fi
14142             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14143               if test "$ac_cv_c_bigendian" = unknown; then
14144                 ac_cv_c_bigendian=no
14145               else
14146                 # finding both strings is unlikely to happen, but who knows?
14147                 ac_cv_c_bigendian=unknown
14148               fi
14149             fi
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 else
14153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h.  */
14155 $ac_includes_default
14156 int
14157 main ()
14158 {
14159
14160              /* Are we little or big endian?  From Harbison&Steele.  */
14161              union
14162              {
14163                long int l;
14164                char c[sizeof (long int)];
14165              } u;
14166              u.l = 1;
14167              return u.c[sizeof (long int) - 1] == 1;
14168
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_run "$LINENO"; then :
14174   ac_cv_c_bigendian=no
14175 else
14176   ac_cv_c_bigendian=yes
14177 fi
14178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14179   conftest.$ac_objext conftest.beam conftest.$ac_ext
14180 fi
14181
14182     fi
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14185 $as_echo "$ac_cv_c_bigendian" >&6; }
14186  case $ac_cv_c_bigendian in #(
14187    yes)
14188      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14189 ;; #(
14190    no)
14191       ;; #(
14192    universal)
14193
14194 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14195
14196      ;; #(
14197    *)
14198      as_fn_error $? "unknown endianness
14199  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14200  esac
14201
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14204 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14205 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14206   $as_echo_n "(cached) " >&6
14207 else
14208
14209     gcc_cv_as_cfi_pseudo_op=unknown
14210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h.  */
14212 asm (".cfi_startproc\n\t.cfi_endproc");
14213 int
14214 main ()
14215 {
14216
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 if ac_fn_c_try_compile "$LINENO"; then :
14222   gcc_cv_as_cfi_pseudo_op=yes
14223 else
14224   gcc_cv_as_cfi_pseudo_op=no
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227
14228 fi
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14230 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14231  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14232
14233 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14234
14235  fi
14236
14237
14238 if test x$TARGET = xSPARC; then
14239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14240 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14241 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244
14245         save_CFLAGS="$CFLAGS"
14246         save_LDFLAGS="$LDFLAGS"
14247         CFLAGS="$CFLAGS -fpic"
14248         LDFLAGS="$LDFLAGS -shared"
14249         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h.  */
14251 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14252 int
14253 main ()
14254 {
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261   libffi_cv_as_sparc_ua_pcrel=yes
14262 else
14263   libffi_cv_as_sparc_ua_pcrel=no
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext \
14266     conftest$ac_exeext conftest.$ac_ext
14267         CFLAGS="$save_CFLAGS"
14268         LDFLAGS="$save_LDFLAGS"
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14271 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14272     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14273
14274 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14275
14276     fi
14277
14278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14279 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14280 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14281   $as_echo_n "(cached) " >&6
14282 else
14283
14284        libffi_cv_as_register_pseudo_op=unknown
14285        # Check if we have .register
14286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h.  */
14288 asm (".register %g2, #scratch");
14289 int
14290 main ()
14291 {
14292
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298   libffi_cv_as_register_pseudo_op=yes
14299 else
14300   libffi_cv_as_register_pseudo_op=no
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14306 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14307     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14308
14309 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14310
14311     fi
14312 fi
14313
14314 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14316 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14317 if ${libffi_cv_as_x86_pcrel+:} false; then :
14318   $as_echo_n "(cached) " >&6
14319 else
14320
14321         libffi_cv_as_x86_pcrel=yes
14322         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14323         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14324             libffi_cv_as_x86_pcrel=no
14325         fi
14326
14327 fi
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14329 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14330     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14331
14332 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14333
14334     fi
14335
14336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14337 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14338 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14339   $as_echo_n "(cached) " >&6
14340 else
14341
14342        libffi_cv_as_ascii_pseudo_op=unknown
14343        # Check if we have .ascii
14344        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h.  */
14346 asm (".ascii \\"string\\"");
14347 int
14348 main ()
14349 {
14350
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356   libffi_cv_as_ascii_pseudo_op=yes
14357 else
14358   libffi_cv_as_ascii_pseudo_op=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14364 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14365     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14366
14367 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14368
14369     fi
14370
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14372 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14373 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14374   $as_echo_n "(cached) " >&6
14375 else
14376
14377        libffi_cv_as_string_pseudo_op=unknown
14378        # Check if we have .string
14379        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h.  */
14381 asm (".string \\"string\\"");
14382 int
14383 main ()
14384 {
14385
14386   ;
14387   return 0;
14388 }
14389 _ACEOF
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391   libffi_cv_as_string_pseudo_op=yes
14392 else
14393   libffi_cv_as_string_pseudo_op=no
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14399 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14400     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14401
14402 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14403
14404     fi
14405 fi
14406
14407 if test x$TARGET = xX86_WIN64; then
14408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14409 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14410 if ${lt_cv_sys_symbol_underscore+:} false; then :
14411   $as_echo_n "(cached) " >&6
14412 else
14413   lt_cv_sys_symbol_underscore=no
14414   cat > conftest.$ac_ext <<_LT_EOF
14415 void nm_test_func(){}
14416 int main(){nm_test_func;return 0;}
14417 _LT_EOF
14418   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14419   (eval $ac_compile) 2>&5
14420   ac_status=$?
14421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14422   test $ac_status = 0; }; then
14423     # Now try to grab the symbols.
14424     ac_nlist=conftest.nm
14425     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14426   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14427   ac_status=$?
14428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429   test $ac_status = 0; } && test -s "$ac_nlist"; then
14430       # See whether the symbols have a leading underscore.
14431       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14432         lt_cv_sys_symbol_underscore=yes
14433       else
14434         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14435           :
14436         else
14437           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14438         fi
14439       fi
14440     else
14441       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14442     fi
14443   else
14444     echo "configure: failed program was:" >&5
14445     cat conftest.c >&5
14446   fi
14447   rm -rf conftest*
14448
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14451 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14452   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14453
14454
14455     if test "x$sys_symbol_underscore" = xyes; then
14456
14457 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14458
14459     fi
14460 fi
14461
14462 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14463 # Check whether --enable-pax_emutramp was given.
14464 if test "${enable_pax_emutramp+set}" = set; then :
14465   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14466
14467 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14468
14469   fi
14470 fi
14471
14472
14473 FFI_EXEC_TRAMPOLINE_TABLE=0
14474 case "$target" in
14475      *arm*-apple-darwin*)
14476        FFI_EXEC_TRAMPOLINE_TABLE=1
14477
14478 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14479
14480      ;;
14481      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14482
14483 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14484
14485      ;;
14486 esac
14487  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14488   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14489   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14490 else
14491   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14492   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14493 fi
14494
14495
14496
14497 if test x$TARGET = xX86_64; then
14498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14499 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14500 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503
14504         libffi_cv_as_x86_64_unwind_section_type=yes
14505         echo '.section .eh_frame,"a",@unwind' > conftest.s
14506         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14507             libffi_cv_as_x86_64_unwind_section_type=no
14508         fi
14509
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14512 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14513     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14514
14515 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14516
14517     fi
14518 fi
14519
14520 if test "x$GCC" = "xyes"; then
14521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14522 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14523 if ${libffi_cv_ro_eh_frame+:} false; then :
14524   $as_echo_n "(cached) " >&6
14525 else
14526
14527         libffi_cv_ro_eh_frame=no
14528         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14529         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14530             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14531                 libffi_cv_ro_eh_frame=yes
14532             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14533                  | grep -v '#write' > /dev/null; then
14534                 libffi_cv_ro_eh_frame=yes
14535             fi
14536         fi
14537         rm -f conftest.*
14538
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14541 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14542   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14543
14544 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14545
14546
14547 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14548
14549   else
14550
14551 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14552
14553   fi
14554
14555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14556 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14557 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14558   $as_echo_n "(cached) " >&6
14559 else
14560
14561         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14562         libffi_cv_hidden_visibility_attribute=no
14563         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14564   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14568   test $ac_status = 0; }; }; then
14569             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14570                 libffi_cv_hidden_visibility_attribute=yes
14571             fi
14572         fi
14573         rm -f conftest.*
14574
14575 fi
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14577 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14578   if test $libffi_cv_hidden_visibility_attribute = yes; then
14579
14580 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14581
14582   fi
14583 fi
14584
14585
14586
14587
14588
14589
14590
14591
14592 # Check whether --enable-debug was given.
14593 if test "${enable_debug+set}" = set; then :
14594   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14595
14596 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14597
14598   fi
14599 fi
14600
14601  if test "$enable_debug" = "yes"; then
14602   FFI_DEBUG_TRUE=
14603   FFI_DEBUG_FALSE='#'
14604 else
14605   FFI_DEBUG_TRUE='#'
14606   FFI_DEBUG_FALSE=
14607 fi
14608
14609
14610 # Check whether --enable-structs was given.
14611 if test "${enable_structs+set}" = set; then :
14612   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14613
14614 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14615
14616   fi
14617 fi
14618
14619
14620 # Check whether --enable-raw-api was given.
14621 if test "${enable_raw_api+set}" = set; then :
14622   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14623
14624 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14625
14626   fi
14627 fi
14628
14629
14630 # Check whether --enable-purify-safety was given.
14631 if test "${enable_purify_safety+set}" = set; then :
14632   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14633
14634 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14635
14636   fi
14637 fi
14638
14639
14640 # These variables are only ever used when we cross-build to X86_WIN32.
14641 # And we only support this with GCC, so...
14642 if test x"$GCC" != x"no"; then
14643   if test -n "$with_cross_host" &&
14644      test x"$with_cross_host" != x"no"; then
14645     toolexecdir='$(exec_prefix)/$(target_alias)'
14646     toolexeclibdir='$(toolexecdir)/lib'
14647   else
14648     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14649     toolexeclibdir='$(libdir)'
14650   fi
14651   multi_os_directory=`$CC -print-multi-os-directory`
14652   case $multi_os_directory in
14653     .) ;; # Avoid trailing /.
14654     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14655   esac
14656
14657
14658 fi
14659
14660 if test "${multilib}" = "yes"; then
14661   multilib_arg="--enable-multilib"
14662 else
14663   multilib_arg=
14664 fi
14665
14666 ac_config_commands="$ac_config_commands include"
14667
14668 ac_config_commands="$ac_config_commands src"
14669
14670
14671 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14672
14673
14674 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14675
14676
14677 cat >confcache <<\_ACEOF
14678 # This file is a shell script that caches the results of configure
14679 # tests run on this system so they can be shared between configure
14680 # scripts and configure runs, see configure's option --config-cache.
14681 # It is not useful on other systems.  If it contains results you don't
14682 # want to keep, you may remove or edit it.
14683 #
14684 # config.status only pays attention to the cache file if you give it
14685 # the --recheck option to rerun configure.
14686 #
14687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14689 # following values.
14690
14691 _ACEOF
14692
14693 # The following way of writing the cache mishandles newlines in values,
14694 # but we know of no workaround that is simple, portable, and efficient.
14695 # So, we kill variables containing newlines.
14696 # Ultrix sh set writes to stderr and can't be redirected directly,
14697 # and sets the high bit in the cache file unless we assign to the vars.
14698 (
14699   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14700     eval ac_val=\$$ac_var
14701     case $ac_val in #(
14702     *${as_nl}*)
14703       case $ac_var in #(
14704       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14706       esac
14707       case $ac_var in #(
14708       _ | IFS | as_nl) ;; #(
14709       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14710       *) { eval $ac_var=; unset $ac_var;} ;;
14711       esac ;;
14712     esac
14713   done
14714
14715   (set) 2>&1 |
14716     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14717     *${as_nl}ac_space=\ *)
14718       # `set' does not quote correctly, so add quotes: double-quote
14719       # substitution turns \\\\ into \\, and sed turns \\ into \.
14720       sed -n \
14721         "s/'/'\\\\''/g;
14722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14723       ;; #(
14724     *)
14725       # `set' quotes correctly as required by POSIX, so do not add quotes.
14726       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14727       ;;
14728     esac |
14729     sort
14730 ) |
14731   sed '
14732      /^ac_cv_env_/b end
14733      t clear
14734      :clear
14735      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14736      t end
14737      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14738      :end' >>confcache
14739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14740   if test -w "$cache_file"; then
14741     if test "x$cache_file" != "x/dev/null"; then
14742       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14743 $as_echo "$as_me: updating cache $cache_file" >&6;}
14744       if test ! -f "$cache_file" || test -h "$cache_file"; then
14745         cat confcache >"$cache_file"
14746       else
14747         case $cache_file in #(
14748         */* | ?:*)
14749           mv -f confcache "$cache_file"$$ &&
14750           mv -f "$cache_file"$$ "$cache_file" ;; #(
14751         *)
14752           mv -f confcache "$cache_file" ;;
14753         esac
14754       fi
14755     fi
14756   else
14757     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14758 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14759   fi
14760 fi
14761 rm -f confcache
14762
14763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14764 # Let make expand exec_prefix.
14765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14766
14767 DEFS=-DHAVE_CONFIG_H
14768
14769 ac_libobjs=
14770 ac_ltlibobjs=
14771 U=
14772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14773   # 1. Remove the extension, and $U if already installed.
14774   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14775   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14776   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14777   #    will be set to the directory where LIBOBJS objects are built.
14778   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14779   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14780 done
14781 LIBOBJS=$ac_libobjs
14782
14783 LTLIBOBJS=$ac_ltlibobjs
14784
14785
14786  if test -n "$EXEEXT"; then
14787   am__EXEEXT_TRUE=
14788   am__EXEEXT_FALSE='#'
14789 else
14790   am__EXEEXT_TRUE='#'
14791   am__EXEEXT_FALSE=
14792 fi
14793
14794 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14795   as_fn_error $? "conditional \"AMDEP\" was never defined.
14796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14797 fi
14798 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14799   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14801 fi
14802 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14803   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14805 fi
14806 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14807   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14809 fi
14810 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14811   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 fi
14814 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14815   as_fn_error $? "conditional \"MIPS\" was never defined.
14816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14817 fi
14818 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14819   as_fn_error $? "conditional \"BFIN\" was never defined.
14820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14821 fi
14822 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14823   as_fn_error $? "conditional \"SPARC\" was never defined.
14824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825 fi
14826 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14827   as_fn_error $? "conditional \"X86\" was never defined.
14828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14829 fi
14830 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14831   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14833 fi
14834 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14835   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14837 fi
14838 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14839   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14841 fi
14842 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14843   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14845 fi
14846 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14847   as_fn_error $? "conditional \"ALPHA\" was never defined.
14848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14849 fi
14850 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14851   as_fn_error $? "conditional \"IA64\" was never defined.
14852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14853 fi
14854 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14855   as_fn_error $? "conditional \"M32R\" was never defined.
14856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14857 fi
14858 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14859   as_fn_error $? "conditional \"M68K\" was never defined.
14860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14861 fi
14862 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14863   as_fn_error $? "conditional \"MOXIE\" was never defined.
14864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14865 fi
14866 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14867   as_fn_error $? "conditional \"POWERPC\" was never defined.
14868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14869 fi
14870 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14871   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14873 fi
14874 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14875   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14877 fi
14878 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14879   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14881 fi
14882 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14883   as_fn_error $? "conditional \"ARM\" was never defined.
14884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14885 fi
14886 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14887   as_fn_error $? "conditional \"AVR32\" was never defined.
14888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 fi
14890 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14891   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14893 fi
14894 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14895   as_fn_error $? "conditional \"FRV\" was never defined.
14896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14897 fi
14898 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14899   as_fn_error $? "conditional \"S390\" was never defined.
14900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14901 fi
14902 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14903   as_fn_error $? "conditional \"X86_64\" was never defined.
14904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14905 fi
14906 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14907   as_fn_error $? "conditional \"SH\" was never defined.
14908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14909 fi
14910 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14911   as_fn_error $? "conditional \"SH64\" was never defined.
14912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14913 fi
14914 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14915   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14917 fi
14918 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14919   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14921 fi
14922 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14923   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14925 fi
14926 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
14927   as_fn_error $? "conditional \"TILE\" was never defined.
14928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14929 fi
14930
14931 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14932   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14934 fi
14935 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14936   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14938 fi
14939
14940 : "${CONFIG_STATUS=./config.status}"
14941 ac_write_fail=0
14942 ac_clean_files_save=$ac_clean_files
14943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14945 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14946 as_write_fail=0
14947 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14948 #! $SHELL
14949 # Generated by $as_me.
14950 # Run this file to recreate the current configuration.
14951 # Compiler output produced by configure, useful for debugging
14952 # configure, is in config.log if it exists.
14953
14954 debug=false
14955 ac_cs_recheck=false
14956 ac_cs_silent=false
14957
14958 SHELL=\${CONFIG_SHELL-$SHELL}
14959 export SHELL
14960 _ASEOF
14961 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14962 ## -------------------- ##
14963 ## M4sh Initialization. ##
14964 ## -------------------- ##
14965
14966 # Be more Bourne compatible
14967 DUALCASE=1; export DUALCASE # for MKS sh
14968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14969   emulate sh
14970   NULLCMD=:
14971   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14972   # is contrary to our usage.  Disable this feature.
14973   alias -g '${1+"$@"}'='"$@"'
14974   setopt NO_GLOB_SUBST
14975 else
14976   case `(set -o) 2>/dev/null` in #(
14977   *posix*) :
14978     set -o posix ;; #(
14979   *) :
14980      ;;
14981 esac
14982 fi
14983
14984
14985 as_nl='
14986 '
14987 export as_nl
14988 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14989 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14992 # Prefer a ksh shell builtin over an external printf program on Solaris,
14993 # but without wasting forks for bash or zsh.
14994 if test -z "$BASH_VERSION$ZSH_VERSION" \
14995     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14996   as_echo='print -r --'
14997   as_echo_n='print -rn --'
14998 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14999   as_echo='printf %s\n'
15000   as_echo_n='printf %s'
15001 else
15002   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15003     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15004     as_echo_n='/usr/ucb/echo -n'
15005   else
15006     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15007     as_echo_n_body='eval
15008       arg=$1;
15009       case $arg in #(
15010       *"$as_nl"*)
15011         expr "X$arg" : "X\\(.*\\)$as_nl";
15012         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15013       esac;
15014       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15015     '
15016     export as_echo_n_body
15017     as_echo_n='sh -c $as_echo_n_body as_echo'
15018   fi
15019   export as_echo_body
15020   as_echo='sh -c $as_echo_body as_echo'
15021 fi
15022
15023 # The user is always right.
15024 if test "${PATH_SEPARATOR+set}" != set; then
15025   PATH_SEPARATOR=:
15026   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15027     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15028       PATH_SEPARATOR=';'
15029   }
15030 fi
15031
15032
15033 # IFS
15034 # We need space, tab and new line, in precisely that order.  Quoting is
15035 # there to prevent editors from complaining about space-tab.
15036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15037 # splitting by setting IFS to empty value.)
15038 IFS=" ""        $as_nl"
15039
15040 # Find who we are.  Look in the path if we contain no directory separator.
15041 as_myself=
15042 case $0 in #((
15043   *[\\/]* ) as_myself=$0 ;;
15044   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045 for as_dir in $PATH
15046 do
15047   IFS=$as_save_IFS
15048   test -z "$as_dir" && as_dir=.
15049     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15050   done
15051 IFS=$as_save_IFS
15052
15053      ;;
15054 esac
15055 # We did not find ourselves, most probably we were run as `sh COMMAND'
15056 # in which case we are not to be found in the path.
15057 if test "x$as_myself" = x; then
15058   as_myself=$0
15059 fi
15060 if test ! -f "$as_myself"; then
15061   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15062   exit 1
15063 fi
15064
15065 # Unset variables that we do not need and which cause bugs (e.g. in
15066 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15067 # suppresses any "Segmentation fault" message there.  '((' could
15068 # trigger a bug in pdksh 5.2.14.
15069 for as_var in BASH_ENV ENV MAIL MAILPATH
15070 do eval test x\${$as_var+set} = xset \
15071   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15072 done
15073 PS1='$ '
15074 PS2='> '
15075 PS4='+ '
15076
15077 # NLS nuisances.
15078 LC_ALL=C
15079 export LC_ALL
15080 LANGUAGE=C
15081 export LANGUAGE
15082
15083 # CDPATH.
15084 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15085
15086
15087 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15088 # ----------------------------------------
15089 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15090 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15091 # script with STATUS, using 1 if that was 0.
15092 as_fn_error ()
15093 {
15094   as_status=$1; test $as_status -eq 0 && as_status=1
15095   if test "$4"; then
15096     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15097     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15098   fi
15099   $as_echo "$as_me: error: $2" >&2
15100   as_fn_exit $as_status
15101 } # as_fn_error
15102
15103
15104 # as_fn_set_status STATUS
15105 # -----------------------
15106 # Set $? to STATUS, without forking.
15107 as_fn_set_status ()
15108 {
15109   return $1
15110 } # as_fn_set_status
15111
15112 # as_fn_exit STATUS
15113 # -----------------
15114 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15115 as_fn_exit ()
15116 {
15117   set +e
15118   as_fn_set_status $1
15119   exit $1
15120 } # as_fn_exit
15121
15122 # as_fn_unset VAR
15123 # ---------------
15124 # Portably unset VAR.
15125 as_fn_unset ()
15126 {
15127   { eval $1=; unset $1;}
15128 }
15129 as_unset=as_fn_unset
15130 # as_fn_append VAR VALUE
15131 # ----------------------
15132 # Append the text in VALUE to the end of the definition contained in VAR. Take
15133 # advantage of any shell optimizations that allow amortized linear growth over
15134 # repeated appends, instead of the typical quadratic growth present in naive
15135 # implementations.
15136 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15137   eval 'as_fn_append ()
15138   {
15139     eval $1+=\$2
15140   }'
15141 else
15142   as_fn_append ()
15143   {
15144     eval $1=\$$1\$2
15145   }
15146 fi # as_fn_append
15147
15148 # as_fn_arith ARG...
15149 # ------------------
15150 # Perform arithmetic evaluation on the ARGs, and store the result in the
15151 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15152 # must be portable across $(()) and expr.
15153 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15154   eval 'as_fn_arith ()
15155   {
15156     as_val=$(( $* ))
15157   }'
15158 else
15159   as_fn_arith ()
15160   {
15161     as_val=`expr "$@" || test $? -eq 1`
15162   }
15163 fi # as_fn_arith
15164
15165
15166 if expr a : '\(a\)' >/dev/null 2>&1 &&
15167    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15168   as_expr=expr
15169 else
15170   as_expr=false
15171 fi
15172
15173 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15174   as_basename=basename
15175 else
15176   as_basename=false
15177 fi
15178
15179 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15180   as_dirname=dirname
15181 else
15182   as_dirname=false
15183 fi
15184
15185 as_me=`$as_basename -- "$0" ||
15186 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15187          X"$0" : 'X\(//\)$' \| \
15188          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15189 $as_echo X/"$0" |
15190     sed '/^.*\/\([^/][^/]*\)\/*$/{
15191             s//\1/
15192             q
15193           }
15194           /^X\/\(\/\/\)$/{
15195             s//\1/
15196             q
15197           }
15198           /^X\/\(\/\).*/{
15199             s//\1/
15200             q
15201           }
15202           s/.*/./; q'`
15203
15204 # Avoid depending upon Character Ranges.
15205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15208 as_cr_digits='0123456789'
15209 as_cr_alnum=$as_cr_Letters$as_cr_digits
15210
15211 ECHO_C= ECHO_N= ECHO_T=
15212 case `echo -n x` in #(((((
15213 -n*)
15214   case `echo 'xy\c'` in
15215   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15216   xy)  ECHO_C='\c';;
15217   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15218        ECHO_T=' ';;
15219   esac;;
15220 *)
15221   ECHO_N='-n';;
15222 esac
15223
15224 rm -f conf$$ conf$$.exe conf$$.file
15225 if test -d conf$$.dir; then
15226   rm -f conf$$.dir/conf$$.file
15227 else
15228   rm -f conf$$.dir
15229   mkdir conf$$.dir 2>/dev/null
15230 fi
15231 if (echo >conf$$.file) 2>/dev/null; then
15232   if ln -s conf$$.file conf$$ 2>/dev/null; then
15233     as_ln_s='ln -s'
15234     # ... but there are two gotchas:
15235     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15236     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15237     # In both cases, we have to default to `cp -p'.
15238     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15239       as_ln_s='cp -p'
15240   elif ln conf$$.file conf$$ 2>/dev/null; then
15241     as_ln_s=ln
15242   else
15243     as_ln_s='cp -p'
15244   fi
15245 else
15246   as_ln_s='cp -p'
15247 fi
15248 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15249 rmdir conf$$.dir 2>/dev/null
15250
15251
15252 # as_fn_mkdir_p
15253 # -------------
15254 # Create "$as_dir" as a directory, including parents if necessary.
15255 as_fn_mkdir_p ()
15256 {
15257
15258   case $as_dir in #(
15259   -*) as_dir=./$as_dir;;
15260   esac
15261   test -d "$as_dir" || eval $as_mkdir_p || {
15262     as_dirs=
15263     while :; do
15264       case $as_dir in #(
15265       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15266       *) as_qdir=$as_dir;;
15267       esac
15268       as_dirs="'$as_qdir' $as_dirs"
15269       as_dir=`$as_dirname -- "$as_dir" ||
15270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15271          X"$as_dir" : 'X\(//\)[^/]' \| \
15272          X"$as_dir" : 'X\(//\)$' \| \
15273          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15274 $as_echo X"$as_dir" |
15275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15276             s//\1/
15277             q
15278           }
15279           /^X\(\/\/\)[^/].*/{
15280             s//\1/
15281             q
15282           }
15283           /^X\(\/\/\)$/{
15284             s//\1/
15285             q
15286           }
15287           /^X\(\/\).*/{
15288             s//\1/
15289             q
15290           }
15291           s/.*/./; q'`
15292       test -d "$as_dir" && break
15293     done
15294     test -z "$as_dirs" || eval "mkdir $as_dirs"
15295   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15296
15297
15298 } # as_fn_mkdir_p
15299 if mkdir -p . 2>/dev/null; then
15300   as_mkdir_p='mkdir -p "$as_dir"'
15301 else
15302   test -d ./-p && rmdir ./-p
15303   as_mkdir_p=false
15304 fi
15305
15306 if test -x / >/dev/null 2>&1; then
15307   as_test_x='test -x'
15308 else
15309   if ls -dL / >/dev/null 2>&1; then
15310     as_ls_L_option=L
15311   else
15312     as_ls_L_option=
15313   fi
15314   as_test_x='
15315     eval sh -c '\''
15316       if test -d "$1"; then
15317         test -d "$1/.";
15318       else
15319         case $1 in #(
15320         -*)set "./$1";;
15321         esac;
15322         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15323         ???[sx]*):;;*)false;;esac;fi
15324     '\'' sh
15325   '
15326 fi
15327 as_executable_p=$as_test_x
15328
15329 # Sed expression to map a string onto a valid CPP name.
15330 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15331
15332 # Sed expression to map a string onto a valid variable name.
15333 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15334
15335
15336 exec 6>&1
15337 ## ----------------------------------- ##
15338 ## Main body of $CONFIG_STATUS script. ##
15339 ## ----------------------------------- ##
15340 _ASEOF
15341 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15342
15343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15344 # Save the log message, to keep $0 and so on meaningful, and to
15345 # report actual input values of CONFIG_FILES etc. instead of their
15346 # values after options handling.
15347 ac_log="
15348 This file was extended by libffi $as_me 3.0.11, which was
15349 generated by GNU Autoconf 2.68.  Invocation command line was
15350
15351   CONFIG_FILES    = $CONFIG_FILES
15352   CONFIG_HEADERS  = $CONFIG_HEADERS
15353   CONFIG_LINKS    = $CONFIG_LINKS
15354   CONFIG_COMMANDS = $CONFIG_COMMANDS
15355   $ $0 $@
15356
15357 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15358 "
15359
15360 _ACEOF
15361
15362 case $ac_config_files in *"
15363 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15364 esac
15365
15366 case $ac_config_headers in *"
15367 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15368 esac
15369
15370
15371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15372 # Files that config.status was made for.
15373 config_files="$ac_config_files"
15374 config_headers="$ac_config_headers"
15375 config_links="$ac_config_links"
15376 config_commands="$ac_config_commands"
15377
15378 _ACEOF
15379
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 ac_cs_usage="\
15382 \`$as_me' instantiates files and other configuration actions
15383 from templates according to the current configuration.  Unless the files
15384 and actions are specified as TAGs, all are instantiated by default.
15385
15386 Usage: $0 [OPTION]... [TAG]...
15387
15388   -h, --help       print this help, then exit
15389   -V, --version    print version number and configuration settings, then exit
15390       --config     print configuration, then exit
15391   -q, --quiet, --silent
15392                    do not print progress messages
15393   -d, --debug      don't remove temporary files
15394       --recheck    update $as_me by reconfiguring in the same conditions
15395       --file=FILE[:TEMPLATE]
15396                    instantiate the configuration file FILE
15397       --header=FILE[:TEMPLATE]
15398                    instantiate the configuration header FILE
15399
15400 Configuration files:
15401 $config_files
15402
15403 Configuration headers:
15404 $config_headers
15405
15406 Configuration links:
15407 $config_links
15408
15409 Configuration commands:
15410 $config_commands
15411
15412 Report bugs to <http://github.com/atgreen/libffi/issues>."
15413
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15417 ac_cs_version="\\
15418 libffi config.status 3.0.11
15419 configured by $0, generated by GNU Autoconf 2.68,
15420   with options \\"\$ac_cs_config\\"
15421
15422 Copyright (C) 2010 Free Software Foundation, Inc.
15423 This config.status script is free software; the Free Software Foundation
15424 gives unlimited permission to copy, distribute and modify it."
15425
15426 ac_pwd='$ac_pwd'
15427 srcdir='$srcdir'
15428 INSTALL='$INSTALL'
15429 MKDIR_P='$MKDIR_P'
15430 AWK='$AWK'
15431 test -n "\$AWK" || AWK=awk
15432 _ACEOF
15433
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 # The default lists apply if the user does not specify any file.
15436 ac_need_defaults=:
15437 while test $# != 0
15438 do
15439   case $1 in
15440   --*=?*)
15441     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15442     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15443     ac_shift=:
15444     ;;
15445   --*=)
15446     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15447     ac_optarg=
15448     ac_shift=:
15449     ;;
15450   *)
15451     ac_option=$1
15452     ac_optarg=$2
15453     ac_shift=shift
15454     ;;
15455   esac
15456
15457   case $ac_option in
15458   # Handling of the options.
15459   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15460     ac_cs_recheck=: ;;
15461   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15462     $as_echo "$ac_cs_version"; exit ;;
15463   --config | --confi | --conf | --con | --co | --c )
15464     $as_echo "$ac_cs_config"; exit ;;
15465   --debug | --debu | --deb | --de | --d | -d )
15466     debug=: ;;
15467   --file | --fil | --fi | --f )
15468     $ac_shift
15469     case $ac_optarg in
15470     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15471     '') as_fn_error $? "missing file argument" ;;
15472     esac
15473     as_fn_append CONFIG_FILES " '$ac_optarg'"
15474     ac_need_defaults=false;;
15475   --header | --heade | --head | --hea )
15476     $ac_shift
15477     case $ac_optarg in
15478     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15479     esac
15480     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15481     ac_need_defaults=false;;
15482   --he | --h)
15483     # Conflict between --help and --header
15484     as_fn_error $? "ambiguous option: \`$1'
15485 Try \`$0 --help' for more information.";;
15486   --help | --hel | -h )
15487     $as_echo "$ac_cs_usage"; exit ;;
15488   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15489   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15490     ac_cs_silent=: ;;
15491
15492   # This is an error.
15493   -*) as_fn_error $? "unrecognized option: \`$1'
15494 Try \`$0 --help' for more information." ;;
15495
15496   *) as_fn_append ac_config_targets " $1"
15497      ac_need_defaults=false ;;
15498
15499   esac
15500   shift
15501 done
15502
15503 ac_configure_extra_args=
15504
15505 if $ac_cs_silent; then
15506   exec 6>/dev/null
15507   ac_configure_extra_args="$ac_configure_extra_args --silent"
15508 fi
15509
15510 _ACEOF
15511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512 if \$ac_cs_recheck; then
15513   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15514   shift
15515   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15516   CONFIG_SHELL='$SHELL'
15517   export CONFIG_SHELL
15518   exec "\$@"
15519 fi
15520
15521 _ACEOF
15522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523 exec 5>>config.log
15524 {
15525   echo
15526   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15527 ## Running $as_me. ##
15528 _ASBOX
15529   $as_echo "$ac_log"
15530 } >&5
15531
15532 _ACEOF
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534 #
15535 # INIT-COMMANDS
15536 #
15537 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15538 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15539 ax_enable_builddir_version="$VERSION"                  # $VERSION
15540 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15541 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15542 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15543 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15544
15545 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15546
15547
15548 # The HP-UX ksh and POSIX shell print the target directory to stdout
15549 # if CDPATH is set.
15550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15551
15552 sed_quote_subst='$sed_quote_subst'
15553 double_quote_subst='$double_quote_subst'
15554 delay_variable_subst='$delay_variable_subst'
15555 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15556 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15557 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15558 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15559 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15560 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15561 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15562 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15563 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15564 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15565 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15566 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15567 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15568 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15569 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15570 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15571 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15572 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15573 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15574 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15575 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15576 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15577 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15578 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15579 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15580 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15581 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15582 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15583 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15584 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15585 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15586 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15587 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15588 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15589 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15590 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15591 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15592 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15593 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15594 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15595 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15596 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15597 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15598 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15599 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15600 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15601 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15602 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15603 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15604 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15605 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15606 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15607 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15608 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15609 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15610 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"`'
15611 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15612 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15613 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15614 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15615 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15616 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15617 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15618 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15619 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15620 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15621 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15622 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15623 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15624 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15625 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15626 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15627 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15628 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15629 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15630 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15631 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15632 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15633 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15634 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15635 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15636 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15637 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15638 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15639 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15640 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15641 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15642 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15643 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15644 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15645 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15646 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15647 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15648 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15649 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15650 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15651 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15652 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15653 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15654 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15655 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15656 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15657 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15658 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15659 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15660 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15661 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15662 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15663 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15664 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15665 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15666 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15667 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15668 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15669 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15670 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15671 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15672 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15673 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15674 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15675 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15676 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15677 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15678 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15679 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15680 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15681 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15682 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15683 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15684 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15685
15686 LTCC='$LTCC'
15687 LTCFLAGS='$LTCFLAGS'
15688 compiler='$compiler_DEFAULT'
15689
15690 # A function that is used when there is no print builtin or printf.
15691 func_fallback_echo ()
15692 {
15693   eval 'cat <<_LTECHO_EOF
15694 \$1
15695 _LTECHO_EOF'
15696 }
15697
15698 # Quote evaled strings.
15699 for var in SHELL \
15700 ECHO \
15701 SED \
15702 GREP \
15703 EGREP \
15704 FGREP \
15705 LD \
15706 NM \
15707 LN_S \
15708 lt_SP2NL \
15709 lt_NL2SP \
15710 reload_flag \
15711 OBJDUMP \
15712 deplibs_check_method \
15713 file_magic_cmd \
15714 file_magic_glob \
15715 want_nocaseglob \
15716 DLLTOOL \
15717 sharedlib_from_linklib_cmd \
15718 AR \
15719 AR_FLAGS \
15720 archiver_list_spec \
15721 STRIP \
15722 RANLIB \
15723 CC \
15724 CFLAGS \
15725 compiler \
15726 lt_cv_sys_global_symbol_pipe \
15727 lt_cv_sys_global_symbol_to_cdecl \
15728 lt_cv_sys_global_symbol_to_c_name_address \
15729 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15730 nm_file_list_spec \
15731 lt_prog_compiler_no_builtin_flag \
15732 lt_prog_compiler_pic \
15733 lt_prog_compiler_wl \
15734 lt_prog_compiler_static \
15735 lt_cv_prog_compiler_c_o \
15736 need_locks \
15737 MANIFEST_TOOL \
15738 DSYMUTIL \
15739 NMEDIT \
15740 LIPO \
15741 OTOOL \
15742 OTOOL64 \
15743 shrext_cmds \
15744 export_dynamic_flag_spec \
15745 whole_archive_flag_spec \
15746 compiler_needs_object \
15747 with_gnu_ld \
15748 allow_undefined_flag \
15749 no_undefined_flag \
15750 hardcode_libdir_flag_spec \
15751 hardcode_libdir_flag_spec_ld \
15752 hardcode_libdir_separator \
15753 exclude_expsyms \
15754 include_expsyms \
15755 file_list_spec \
15756 variables_saved_for_relink \
15757 libname_spec \
15758 library_names_spec \
15759 soname_spec \
15760 install_override_mode \
15761 finish_eval \
15762 old_striplib \
15763 striplib; do
15764     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15765     *[\\\\\\\`\\"\\\$]*)
15766       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15767       ;;
15768     *)
15769       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15770       ;;
15771     esac
15772 done
15773
15774 # Double-quote double-evaled strings.
15775 for var in reload_cmds \
15776 old_postinstall_cmds \
15777 old_postuninstall_cmds \
15778 old_archive_cmds \
15779 extract_expsyms_cmds \
15780 old_archive_from_new_cmds \
15781 old_archive_from_expsyms_cmds \
15782 archive_cmds \
15783 archive_expsym_cmds \
15784 module_cmds \
15785 module_expsym_cmds \
15786 export_symbols_cmds \
15787 prelink_cmds \
15788 postlink_cmds \
15789 postinstall_cmds \
15790 postuninstall_cmds \
15791 finish_cmds \
15792 sys_lib_search_path_spec \
15793 sys_lib_dlsearch_path_spec; do
15794     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15795     *[\\\\\\\`\\"\\\$]*)
15796       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15797       ;;
15798     *)
15799       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15800       ;;
15801     esac
15802 done
15803
15804 ac_aux_dir='$ac_aux_dir'
15805 xsi_shell='$xsi_shell'
15806 lt_shell_append='$lt_shell_append'
15807
15808 # See if we are running on zsh, and set the options which allow our
15809 # commands through without removal of \ escapes INIT.
15810 if test -n "\${ZSH_VERSION+set}" ; then
15811    setopt NO_GLOB_SUBST
15812 fi
15813
15814
15815     PACKAGE='$PACKAGE'
15816     VERSION='$VERSION'
15817     TIMESTAMP='$TIMESTAMP'
15818     RM='$RM'
15819     ofile='$ofile'
15820
15821
15822
15823 TARGETDIR="$TARGETDIR"
15824
15825 _ACEOF
15826
15827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15828
15829 # Handling of arguments.
15830 for ac_config_target in $ac_config_targets
15831 do
15832   case $ac_config_target in
15833     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15834     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15835     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15836     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15837     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15838     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15839     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15840     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15841     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15842     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15843     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15844     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15845     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15846
15847   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15848   esac
15849 done
15850
15851
15852 # If the user did not use the arguments to specify the items to instantiate,
15853 # then the envvar interface is used.  Set only those that are not.
15854 # We use the long form for the default assignment because of an extremely
15855 # bizarre bug on SunOS 4.1.3.
15856 if $ac_need_defaults; then
15857   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15858   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15859   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15860   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15861 fi
15862
15863 # Have a temporary directory for convenience.  Make it in the build tree
15864 # simply because there is no reason against having it here, and in addition,
15865 # creating and moving files from /tmp can sometimes cause problems.
15866 # Hook for its removal unless debugging.
15867 # Note that there is a small window in which the directory will not be cleaned:
15868 # after its creation but before its name has been assigned to `$tmp'.
15869 $debug ||
15870 {
15871   tmp= ac_tmp=
15872   trap 'exit_status=$?
15873   : "${ac_tmp:=$tmp}"
15874   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15875 ' 0
15876   trap 'as_fn_exit 1' 1 2 13 15
15877 }
15878 # Create a (secure) tmp directory for tmp files.
15879
15880 {
15881   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15882   test -d "$tmp"
15883 }  ||
15884 {
15885   tmp=./conf$$-$RANDOM
15886   (umask 077 && mkdir "$tmp")
15887 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15888 ac_tmp=$tmp
15889
15890 # Set up the scripts for CONFIG_FILES section.
15891 # No need to generate them if there are no CONFIG_FILES.
15892 # This happens for instance with `./config.status config.h'.
15893 if test -n "$CONFIG_FILES"; then
15894
15895
15896 ac_cr=`echo X | tr X '\015'`
15897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15898 # But we know of no other shell where ac_cr would be empty at this
15899 # point, so we can use a bashism as a fallback.
15900 if test "x$ac_cr" = x; then
15901   eval ac_cr=\$\'\\r\'
15902 fi
15903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15905   ac_cs_awk_cr='\\r'
15906 else
15907   ac_cs_awk_cr=$ac_cr
15908 fi
15909
15910 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15911 _ACEOF
15912
15913
15914 {
15915   echo "cat >conf$$subs.awk <<_ACEOF" &&
15916   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15917   echo "_ACEOF"
15918 } >conf$$subs.sh ||
15919   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15920 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15921 ac_delim='%!_!# '
15922 for ac_last_try in false false false false false :; do
15923   . ./conf$$subs.sh ||
15924     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15925
15926   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15927   if test $ac_delim_n = $ac_delim_num; then
15928     break
15929   elif $ac_last_try; then
15930     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15931   else
15932     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15933   fi
15934 done
15935 rm -f conf$$subs.sh
15936
15937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15938 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15939 _ACEOF
15940 sed -n '
15941 h
15942 s/^/S["/; s/!.*/"]=/
15943 p
15944 g
15945 s/^[^!]*!//
15946 :repl
15947 t repl
15948 s/'"$ac_delim"'$//
15949 t delim
15950 :nl
15951 h
15952 s/\(.\{148\}\)..*/\1/
15953 t more1
15954 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15955 p
15956 n
15957 b repl
15958 :more1
15959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15960 p
15961 g
15962 s/.\{148\}//
15963 t nl
15964 :delim
15965 h
15966 s/\(.\{148\}\)..*/\1/
15967 t more2
15968 s/["\\]/\\&/g; s/^/"/; s/$/"/
15969 p
15970 b
15971 :more2
15972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15973 p
15974 g
15975 s/.\{148\}//
15976 t delim
15977 ' <conf$$subs.awk | sed '
15978 /^[^""]/{
15979   N
15980   s/\n//
15981 }
15982 ' >>$CONFIG_STATUS || ac_write_fail=1
15983 rm -f conf$$subs.awk
15984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15985 _ACAWK
15986 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15987   for (key in S) S_is_set[key] = 1
15988   FS = "\a"
15989
15990 }
15991 {
15992   line = $ 0
15993   nfields = split(line, field, "@")
15994   substed = 0
15995   len = length(field[1])
15996   for (i = 2; i < nfields; i++) {
15997     key = field[i]
15998     keylen = length(key)
15999     if (S_is_set[key]) {
16000       value = S[key]
16001       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16002       len += length(value) + length(field[++i])
16003       substed = 1
16004     } else
16005       len += 1 + keylen
16006   }
16007
16008   print line
16009 }
16010
16011 _ACAWK
16012 _ACEOF
16013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16015   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16016 else
16017   cat
16018 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16019   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16020 _ACEOF
16021
16022 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16023 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16024 # trailing colons and then remove the whole line if VPATH becomes empty
16025 # (actually we leave an empty line to preserve line numbers).
16026 if test "x$srcdir" = x.; then
16027   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16028 h
16029 s///
16030 s/^/:/
16031 s/[      ]*$/:/
16032 s/:\$(srcdir):/:/g
16033 s/:\${srcdir}:/:/g
16034 s/:@srcdir@:/:/g
16035 s/^:*//
16036 s/:*$//
16037 x
16038 s/\(=[   ]*\).*/\1/
16039 G
16040 s/\n//
16041 s/^[^=]*=[       ]*$//
16042 }'
16043 fi
16044
16045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16046 fi # test -n "$CONFIG_FILES"
16047
16048 # Set up the scripts for CONFIG_HEADERS section.
16049 # No need to generate them if there are no CONFIG_HEADERS.
16050 # This happens for instance with `./config.status Makefile'.
16051 if test -n "$CONFIG_HEADERS"; then
16052 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16053 BEGIN {
16054 _ACEOF
16055
16056 # Transform confdefs.h into an awk script `defines.awk', embedded as
16057 # here-document in config.status, that substitutes the proper values into
16058 # config.h.in to produce config.h.
16059
16060 # Create a delimiter string that does not exist in confdefs.h, to ease
16061 # handling of long lines.
16062 ac_delim='%!_!# '
16063 for ac_last_try in false false :; do
16064   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16065   if test -z "$ac_tt"; then
16066     break
16067   elif $ac_last_try; then
16068     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16069   else
16070     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16071   fi
16072 done
16073
16074 # For the awk script, D is an array of macro values keyed by name,
16075 # likewise P contains macro parameters if any.  Preserve backslash
16076 # newline sequences.
16077
16078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16079 sed -n '
16080 s/.\{148\}/&'"$ac_delim"'/g
16081 t rset
16082 :rset
16083 s/^[     ]*#[    ]*define[       ][      ]*/ /
16084 t def
16085 d
16086 :def
16087 s/\\$//
16088 t bsnl
16089 s/["\\]/\\&/g
16090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16091 D["\1"]=" \3"/p
16092 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16093 d
16094 :bsnl
16095 s/["\\]/\\&/g
16096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16097 D["\1"]=" \3\\\\\\n"\\/p
16098 t cont
16099 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16100 t cont
16101 d
16102 :cont
16103 n
16104 s/.\{148\}/&'"$ac_delim"'/g
16105 t clear
16106 :clear
16107 s/\\$//
16108 t bsnlc
16109 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16110 d
16111 :bsnlc
16112 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16113 b cont
16114 ' <confdefs.h | sed '
16115 s/'"$ac_delim"'/"\\\
16116 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16117
16118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16119   for (key in D) D_is_set[key] = 1
16120   FS = "\a"
16121 }
16122 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16123   line = \$ 0
16124   split(line, arg, " ")
16125   if (arg[1] == "#") {
16126     defundef = arg[2]
16127     mac1 = arg[3]
16128   } else {
16129     defundef = substr(arg[1], 2)
16130     mac1 = arg[2]
16131   }
16132   split(mac1, mac2, "(") #)
16133   macro = mac2[1]
16134   prefix = substr(line, 1, index(line, defundef) - 1)
16135   if (D_is_set[macro]) {
16136     # Preserve the white space surrounding the "#".
16137     print prefix "define", macro P[macro] D[macro]
16138     next
16139   } else {
16140     # Replace #undef with comments.  This is necessary, for example,
16141     # in the case of _POSIX_SOURCE, which is predefined and required
16142     # on some systems where configure will not decide to define it.
16143     if (defundef == "undef") {
16144       print "/*", prefix defundef, macro, "*/"
16145       next
16146     }
16147   }
16148 }
16149 { print }
16150 _ACAWK
16151 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16154 fi # test -n "$CONFIG_HEADERS"
16155
16156
16157 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16158 shift
16159 for ac_tag
16160 do
16161   case $ac_tag in
16162   :[FHLC]) ac_mode=$ac_tag; continue;;
16163   esac
16164   case $ac_mode$ac_tag in
16165   :[FHL]*:*);;
16166   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16167   :[FH]-) ac_tag=-:-;;
16168   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16169   esac
16170   ac_save_IFS=$IFS
16171   IFS=:
16172   set x $ac_tag
16173   IFS=$ac_save_IFS
16174   shift
16175   ac_file=$1
16176   shift
16177
16178   case $ac_mode in
16179   :L) ac_source=$1;;
16180   :[FH])
16181     ac_file_inputs=
16182     for ac_f
16183     do
16184       case $ac_f in
16185       -) ac_f="$ac_tmp/stdin";;
16186       *) # Look for the file first in the build tree, then in the source tree
16187          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16188          # because $ac_f cannot contain `:'.
16189          test -f "$ac_f" ||
16190            case $ac_f in
16191            [\\/$]*) false;;
16192            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16193            esac ||
16194            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16195       esac
16196       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16197       as_fn_append ac_file_inputs " '$ac_f'"
16198     done
16199
16200     # Let's still pretend it is `configure' which instantiates (i.e., don't
16201     # use $as_me), people would be surprised to read:
16202     #    /* config.h.  Generated by config.status.  */
16203     configure_input='Generated from '`
16204           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16205         `' by configure.'
16206     if test x"$ac_file" != x-; then
16207       configure_input="$ac_file.  $configure_input"
16208       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16209 $as_echo "$as_me: creating $ac_file" >&6;}
16210     fi
16211     # Neutralize special characters interpreted by sed in replacement strings.
16212     case $configure_input in #(
16213     *\&* | *\|* | *\\* )
16214        ac_sed_conf_input=`$as_echo "$configure_input" |
16215        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16216     *) ac_sed_conf_input=$configure_input;;
16217     esac
16218
16219     case $ac_tag in
16220     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16221       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16222     esac
16223     ;;
16224   esac
16225
16226   ac_dir=`$as_dirname -- "$ac_file" ||
16227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16228          X"$ac_file" : 'X\(//\)[^/]' \| \
16229          X"$ac_file" : 'X\(//\)$' \| \
16230          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16231 $as_echo X"$ac_file" |
16232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16233             s//\1/
16234             q
16235           }
16236           /^X\(\/\/\)[^/].*/{
16237             s//\1/
16238             q
16239           }
16240           /^X\(\/\/\)$/{
16241             s//\1/
16242             q
16243           }
16244           /^X\(\/\).*/{
16245             s//\1/
16246             q
16247           }
16248           s/.*/./; q'`
16249   as_dir="$ac_dir"; as_fn_mkdir_p
16250   ac_builddir=.
16251
16252 case "$ac_dir" in
16253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16254 *)
16255   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16256   # A ".." for each directory in $ac_dir_suffix.
16257   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16258   case $ac_top_builddir_sub in
16259   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16260   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16261   esac ;;
16262 esac
16263 ac_abs_top_builddir=$ac_pwd
16264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16265 # for backward compatibility:
16266 ac_top_builddir=$ac_top_build_prefix
16267
16268 case $srcdir in
16269   .)  # We are building in place.
16270     ac_srcdir=.
16271     ac_top_srcdir=$ac_top_builddir_sub
16272     ac_abs_top_srcdir=$ac_pwd ;;
16273   [\\/]* | ?:[\\/]* )  # Absolute name.
16274     ac_srcdir=$srcdir$ac_dir_suffix;
16275     ac_top_srcdir=$srcdir
16276     ac_abs_top_srcdir=$srcdir ;;
16277   *) # Relative name.
16278     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16279     ac_top_srcdir=$ac_top_build_prefix$srcdir
16280     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16281 esac
16282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16283
16284
16285   case $ac_mode in
16286   :F)
16287   #
16288   # CONFIG_FILE
16289   #
16290
16291   case $INSTALL in
16292   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16293   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16294   esac
16295   ac_MKDIR_P=$MKDIR_P
16296   case $MKDIR_P in
16297   [\\/$]* | ?:[\\/]* ) ;;
16298   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16299   esac
16300 _ACEOF
16301
16302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16303 # If the template does not know about datarootdir, expand it.
16304 # FIXME: This hack should be removed a few years after 2.60.
16305 ac_datarootdir_hack=; ac_datarootdir_seen=
16306 ac_sed_dataroot='
16307 /datarootdir/ {
16308   p
16309   q
16310 }
16311 /@datadir@/p
16312 /@docdir@/p
16313 /@infodir@/p
16314 /@localedir@/p
16315 /@mandir@/p'
16316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16317 *datarootdir*) ac_datarootdir_seen=yes;;
16318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16319   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16320 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323   ac_datarootdir_hack='
16324   s&@datadir@&$datadir&g
16325   s&@docdir@&$docdir&g
16326   s&@infodir@&$infodir&g
16327   s&@localedir@&$localedir&g
16328   s&@mandir@&$mandir&g
16329   s&\\\${datarootdir}&$datarootdir&g' ;;
16330 esac
16331 _ACEOF
16332
16333 # Neutralize VPATH when `$srcdir' = `.'.
16334 # Shell code in configure.ac might set extrasub.
16335 # FIXME: do we really want to maintain this feature?
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337 ac_sed_extra="$ac_vpsub
16338 $extrasub
16339 _ACEOF
16340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341 :t
16342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16343 s|@configure_input@|$ac_sed_conf_input|;t t
16344 s&@top_builddir@&$ac_top_builddir_sub&;t t
16345 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16346 s&@srcdir@&$ac_srcdir&;t t
16347 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16348 s&@top_srcdir@&$ac_top_srcdir&;t t
16349 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16350 s&@builddir@&$ac_builddir&;t t
16351 s&@abs_builddir@&$ac_abs_builddir&;t t
16352 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16353 s&@INSTALL@&$ac_INSTALL&;t t
16354 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16355 $ac_datarootdir_hack
16356 "
16357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16358   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16359
16360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16361   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16362   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16363       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16364   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16365 which seems to be undefined.  Please make sure it is defined" >&5
16366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16367 which seems to be undefined.  Please make sure it is defined" >&2;}
16368
16369   rm -f "$ac_tmp/stdin"
16370   case $ac_file in
16371   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16372   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16373   esac \
16374   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16375  ;;
16376   :H)
16377   #
16378   # CONFIG_HEADER
16379   #
16380   if test x"$ac_file" != x-; then
16381     {
16382       $as_echo "/* $configure_input  */" \
16383       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16384     } >"$ac_tmp/config.h" \
16385       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16386     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16388 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16389     else
16390       rm -f "$ac_file"
16391       mv "$ac_tmp/config.h" "$ac_file" \
16392         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16393     fi
16394   else
16395     $as_echo "/* $configure_input  */" \
16396       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16397       || as_fn_error $? "could not create -" "$LINENO" 5
16398   fi
16399 # Compute "$ac_file"'s index in $config_headers.
16400 _am_arg="$ac_file"
16401 _am_stamp_count=1
16402 for _am_header in $config_headers :; do
16403   case $_am_header in
16404     $_am_arg | $_am_arg:* )
16405       break ;;
16406     * )
16407       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16408   esac
16409 done
16410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16412          X"$_am_arg" : 'X\(//\)[^/]' \| \
16413          X"$_am_arg" : 'X\(//\)$' \| \
16414          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16415 $as_echo X"$_am_arg" |
16416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16417             s//\1/
16418             q
16419           }
16420           /^X\(\/\/\)[^/].*/{
16421             s//\1/
16422             q
16423           }
16424           /^X\(\/\/\)$/{
16425             s//\1/
16426             q
16427           }
16428           /^X\(\/\).*/{
16429             s//\1/
16430             q
16431           }
16432           s/.*/./; q'`/stamp-h$_am_stamp_count
16433  ;;
16434   :L)
16435   #
16436   # CONFIG_LINK
16437   #
16438
16439   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16440     :
16441   else
16442     # Prefer the file from the source tree if names are identical.
16443     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16444       ac_source=$srcdir/$ac_source
16445     fi
16446
16447     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16448 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16449
16450     if test ! -r "$ac_source"; then
16451       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16452     fi
16453     rm -f "$ac_file"
16454
16455     # Try a relative symlink, then a hard link, then a copy.
16456     case $ac_source in
16457     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16458         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16459     esac
16460     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16461       ln "$ac_source" "$ac_file" 2>/dev/null ||
16462       cp -p "$ac_source" "$ac_file" ||
16463       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16464   fi
16465  ;;
16466   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16467 $as_echo "$as_me: executing $ac_file commands" >&6;}
16468  ;;
16469   esac
16470
16471
16472   case $ac_file$ac_mode in
16473     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16474   if test ".$ax_enable_builddir" = ".." ; then
16475     if test -f "$top_srcdir/Makefile" ; then
16476       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16477 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16478     else
16479       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16480 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16481     fi
16482   else
16483     if test -f "$ac_top_srcdir/Makefile" ; then
16484       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16485       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16486     fi
16487     if test -f "$ac_top_srcdir/Makefile" ; then
16488         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16489         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16490       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16491       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16492       then rm $ac_top_srcdir/Makefile ; fi
16493       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16494     fi
16495     if test ! -f "$ac_top_srcdir/Makefile" ; then
16496       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16497 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16498       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16499 /^\$/n
16500 x
16501 /^\$/bS
16502 x
16503 /\\\\\$/{H;d;}
16504 {H;s/.*//;x;}
16505 bM
16506 :S
16507 x
16508 /\\\\\$/{h;d;}
16509 {h;s/.*//;x;}
16510 :M
16511 s/\\(\\n\\)     /\\1 /g
16512 /^      /d
16513 /^[      ]*[\\#]/d
16514 /^VPATH *=/d
16515 s/^srcdir *=.*/srcdir = ./
16516 s/^top_srcdir *=.*/top_srcdir = ./
16517 /[:=]/!d
16518 /^\\./d
16519 / = /b
16520 / .= /b
16521 /:/!b
16522 s/:.*/:/
16523 s/ /  /g
16524 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16525 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16526 s/  / /g
16527 /^all all-all[ :]/i\\
16528 all-configured : all-all
16529 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16530 /-all-all/d
16531 a\\
16532         @ HOST="\$(HOST)\" \\\\\\
16533         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16534         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16535         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16536         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16537         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16538         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16539         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16540         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16541         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16542 /dist-all *:/a\\
16543         @ HOST="\$(HOST)\" \\\\\\
16544         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16545         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16546         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16547         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16548         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16549         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16550         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16551         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16552         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16553 /dist-[a-zA-Z0-9]*-all *:/a\\
16554         @ HOST="\$(HOST)\" \\\\\\
16555         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16556         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16557         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16558         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16559         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16560         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16561         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16562         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16563         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16564 /distclean-all *:/a\\
16565         @ HOST="\$(HOST)\" \\\\\\
16566         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16567         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16568         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16569         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16570         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16571         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16572         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16573         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16574         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16575         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16576         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16577 _EOF
16578       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16579       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16580       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16581         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16582 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16583         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16584       fi ; xxxx="####"
16585       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16586       # sanity check
16587       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16588         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16589 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16590         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16591           >$ac_top_srcdir/Makefile~
16592         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16593       fi
16594     else
16595       xxxx="\\#\\#\\#\\#"
16596       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16597       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16598       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16599         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16600         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16601       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16602         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16603 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16604         rm "$tmp/mkfile.tmp"
16605       else
16606         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16607 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16608         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16609       fi
16610     fi
16611     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16612 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16613     xxxx="####"
16614     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16615   fi
16616  ;;
16617     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16618   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16619   # are listed without --file.  Let's play safe and only enable the eval
16620   # if we detect the quoting.
16621   case $CONFIG_FILES in
16622   *\'*) eval set x "$CONFIG_FILES" ;;
16623   *)   set x $CONFIG_FILES ;;
16624   esac
16625   shift
16626   for mf
16627   do
16628     # Strip MF so we end up with the name of the file.
16629     mf=`echo "$mf" | sed -e 's/:.*$//'`
16630     # Check whether this is an Automake generated Makefile or not.
16631     # We used to match only the files named `Makefile.in', but
16632     # some people rename them; so instead we look at the file content.
16633     # Grep'ing the first line is not enough: some people post-process
16634     # each Makefile.in and add a new line on top of each file to say so.
16635     # Grep'ing the whole file is not good either: AIX grep has a line
16636     # limit of 2048, but all sed's we know have understand at least 4000.
16637     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16638       dirpart=`$as_dirname -- "$mf" ||
16639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640          X"$mf" : 'X\(//\)[^/]' \| \
16641          X"$mf" : 'X\(//\)$' \| \
16642          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16643 $as_echo X"$mf" |
16644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16645             s//\1/
16646             q
16647           }
16648           /^X\(\/\/\)[^/].*/{
16649             s//\1/
16650             q
16651           }
16652           /^X\(\/\/\)$/{
16653             s//\1/
16654             q
16655           }
16656           /^X\(\/\).*/{
16657             s//\1/
16658             q
16659           }
16660           s/.*/./; q'`
16661     else
16662       continue
16663     fi
16664     # Extract the definition of DEPDIR, am__include, and am__quote
16665     # from the Makefile without running `make'.
16666     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16667     test -z "$DEPDIR" && continue
16668     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16669     test -z "am__include" && continue
16670     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16671     # When using ansi2knr, U may be empty or an underscore; expand it
16672     U=`sed -n 's/^U = //p' < "$mf"`
16673     # Find all dependency output files, they are included files with
16674     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16675     # simplest approach to changing $(DEPDIR) to its actual value in the
16676     # expansion.
16677     for file in `sed -n "
16678       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16679          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16680       # Make sure the directory exists.
16681       test -f "$dirpart/$file" && continue
16682       fdir=`$as_dirname -- "$file" ||
16683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16684          X"$file" : 'X\(//\)[^/]' \| \
16685          X"$file" : 'X\(//\)$' \| \
16686          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16687 $as_echo X"$file" |
16688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16689             s//\1/
16690             q
16691           }
16692           /^X\(\/\/\)[^/].*/{
16693             s//\1/
16694             q
16695           }
16696           /^X\(\/\/\)$/{
16697             s//\1/
16698             q
16699           }
16700           /^X\(\/\).*/{
16701             s//\1/
16702             q
16703           }
16704           s/.*/./; q'`
16705       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16706       # echo "creating $dirpart/$file"
16707       echo '# dummy' > "$dirpart/$file"
16708     done
16709   done
16710 }
16711  ;;
16712     "libtool":C)
16713
16714     # See if we are running on zsh, and set the options which allow our
16715     # commands through without removal of \ escapes.
16716     if test -n "${ZSH_VERSION+set}" ; then
16717       setopt NO_GLOB_SUBST
16718     fi
16719
16720     cfgfile="${ofile}T"
16721     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16722     $RM "$cfgfile"
16723
16724     cat <<_LT_EOF >> "$cfgfile"
16725 #! $SHELL
16726
16727 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16728 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16731 #
16732 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16733 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16734 #                 Inc.
16735 #   Written by Gordon Matzigkeit, 1996
16736 #
16737 #   This file is part of GNU Libtool.
16738 #
16739 # GNU Libtool is free software; you can redistribute it and/or
16740 # modify it under the terms of the GNU General Public License as
16741 # published by the Free Software Foundation; either version 2 of
16742 # the License, or (at your option) any later version.
16743 #
16744 # As a special exception to the GNU General Public License,
16745 # if you distribute this file as part of a program or library that
16746 # is built using GNU Libtool, you may include this file under the
16747 # same distribution terms that you use for the rest of that program.
16748 #
16749 # GNU Libtool is distributed in the hope that it will be useful,
16750 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16751 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16752 # GNU General Public License for more details.
16753 #
16754 # You should have received a copy of the GNU General Public License
16755 # along with GNU Libtool; see the file COPYING.  If not, a copy
16756 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16757 # obtained by writing to the Free Software Foundation, Inc.,
16758 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16759
16760
16761 # The names of the tagged configurations supported by this script.
16762 available_tags=""
16763
16764 # ### BEGIN LIBTOOL CONFIG
16765
16766 # Which release of libtool.m4 was used?
16767 macro_version=$macro_version
16768 macro_revision=$macro_revision
16769
16770 # Whether or not to build shared libraries.
16771 build_libtool_libs=$enable_shared
16772
16773 # Whether or not to build static libraries.
16774 build_old_libs=$enable_static
16775
16776 # What type of objects to build.
16777 pic_mode=$pic_mode
16778
16779 # Whether or not to optimize for fast installation.
16780 fast_install=$enable_fast_install
16781
16782 # Shell to use when invoking shell scripts.
16783 SHELL=$lt_SHELL
16784
16785 # An echo program that protects backslashes.
16786 ECHO=$lt_ECHO
16787
16788 # The host system.
16789 host_alias=$host_alias
16790 host=$host
16791 host_os=$host_os
16792
16793 # The build system.
16794 build_alias=$build_alias
16795 build=$build
16796 build_os=$build_os
16797
16798 # A sed program that does not truncate output.
16799 SED=$lt_SED
16800
16801 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16802 Xsed="\$SED -e 1s/^X//"
16803
16804 # A grep program that handles long lines.
16805 GREP=$lt_GREP
16806
16807 # An ERE matcher.
16808 EGREP=$lt_EGREP
16809
16810 # A literal string matcher.
16811 FGREP=$lt_FGREP
16812
16813 # A BSD- or MS-compatible name lister.
16814 NM=$lt_NM
16815
16816 # Whether we need soft or hard links.
16817 LN_S=$lt_LN_S
16818
16819 # What is the maximum length of a command?
16820 max_cmd_len=$max_cmd_len
16821
16822 # Object file suffix (normally "o").
16823 objext=$ac_objext
16824
16825 # Executable file suffix (normally "").
16826 exeext=$exeext
16827
16828 # whether the shell understands "unset".
16829 lt_unset=$lt_unset
16830
16831 # turn spaces into newlines.
16832 SP2NL=$lt_lt_SP2NL
16833
16834 # turn newlines into spaces.
16835 NL2SP=$lt_lt_NL2SP
16836
16837 # convert \$build file names to \$host format.
16838 to_host_file_cmd=$lt_cv_to_host_file_cmd
16839
16840 # convert \$build files to toolchain format.
16841 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16842
16843 # An object symbol dumper.
16844 OBJDUMP=$lt_OBJDUMP
16845
16846 # Method to check whether dependent libraries are shared objects.
16847 deplibs_check_method=$lt_deplibs_check_method
16848
16849 # Command to use when deplibs_check_method = "file_magic".
16850 file_magic_cmd=$lt_file_magic_cmd
16851
16852 # How to find potential files when deplibs_check_method = "file_magic".
16853 file_magic_glob=$lt_file_magic_glob
16854
16855 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16856 want_nocaseglob=$lt_want_nocaseglob
16857
16858 # DLL creation program.
16859 DLLTOOL=$lt_DLLTOOL
16860
16861 # Command to associate shared and link libraries.
16862 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16863
16864 # The archiver.
16865 AR=$lt_AR
16866
16867 # Flags to create an archive.
16868 AR_FLAGS=$lt_AR_FLAGS
16869
16870 # How to feed a file listing to the archiver.
16871 archiver_list_spec=$lt_archiver_list_spec
16872
16873 # A symbol stripping program.
16874 STRIP=$lt_STRIP
16875
16876 # Commands used to install an old-style archive.
16877 RANLIB=$lt_RANLIB
16878 old_postinstall_cmds=$lt_old_postinstall_cmds
16879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16880
16881 # Whether to use a lock for old archive extraction.
16882 lock_old_archive_extraction=$lock_old_archive_extraction
16883
16884 # A C compiler.
16885 LTCC=$lt_CC
16886
16887 # LTCC compiler flags.
16888 LTCFLAGS=$lt_CFLAGS
16889
16890 # Take the output of nm and produce a listing of raw symbols and C names.
16891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16892
16893 # Transform the output of nm in a proper C declaration.
16894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16895
16896 # Transform the output of nm in a C name address pair.
16897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16898
16899 # Transform the output of nm in a C name address pair when lib prefix is needed.
16900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16901
16902 # Specify filename containing input files for \$NM.
16903 nm_file_list_spec=$lt_nm_file_list_spec
16904
16905 # The root where to search for dependent libraries,and in which our libraries should be installed.
16906 lt_sysroot=$lt_sysroot
16907
16908 # The name of the directory that contains temporary libtool files.
16909 objdir=$objdir
16910
16911 # Used to examine libraries when file_magic_cmd begins with "file".
16912 MAGIC_CMD=$MAGIC_CMD
16913
16914 # Must we lock files when doing compilation?
16915 need_locks=$lt_need_locks
16916
16917 # Manifest tool.
16918 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16919
16920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16921 DSYMUTIL=$lt_DSYMUTIL
16922
16923 # Tool to change global to local symbols on Mac OS X.
16924 NMEDIT=$lt_NMEDIT
16925
16926 # Tool to manipulate fat objects and archives on Mac OS X.
16927 LIPO=$lt_LIPO
16928
16929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16930 OTOOL=$lt_OTOOL
16931
16932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16933 OTOOL64=$lt_OTOOL64
16934
16935 # Old archive suffix (normally "a").
16936 libext=$libext
16937
16938 # Shared library suffix (normally ".so").
16939 shrext_cmds=$lt_shrext_cmds
16940
16941 # The commands to extract the exported symbol list from a shared archive.
16942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16943
16944 # Variables whose values should be saved in libtool wrapper scripts and
16945 # restored at link time.
16946 variables_saved_for_relink=$lt_variables_saved_for_relink
16947
16948 # Do we need the "lib" prefix for modules?
16949 need_lib_prefix=$need_lib_prefix
16950
16951 # Do we need a version for libraries?
16952 need_version=$need_version
16953
16954 # Library versioning type.
16955 version_type=$version_type
16956
16957 # Shared library runtime path variable.
16958 runpath_var=$runpath_var
16959
16960 # Shared library path variable.
16961 shlibpath_var=$shlibpath_var
16962
16963 # Is shlibpath searched before the hard-coded library search path?
16964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16965
16966 # Format of library name prefix.
16967 libname_spec=$lt_libname_spec
16968
16969 # List of archive names.  First name is the real one, the rest are links.
16970 # The last name is the one that the linker finds with -lNAME
16971 library_names_spec=$lt_library_names_spec
16972
16973 # The coded name of the library, if different from the real name.
16974 soname_spec=$lt_soname_spec
16975
16976 # Permission mode override for installation of shared libraries.
16977 install_override_mode=$lt_install_override_mode
16978
16979 # Command to use after installation of a shared archive.
16980 postinstall_cmds=$lt_postinstall_cmds
16981
16982 # Command to use after uninstallation of a shared archive.
16983 postuninstall_cmds=$lt_postuninstall_cmds
16984
16985 # Commands used to finish a libtool library installation in a directory.
16986 finish_cmds=$lt_finish_cmds
16987
16988 # As "finish_cmds", except a single script fragment to be evaled but
16989 # not shown.
16990 finish_eval=$lt_finish_eval
16991
16992 # Whether we should hardcode library paths into libraries.
16993 hardcode_into_libs=$hardcode_into_libs
16994
16995 # Compile-time system search path for libraries.
16996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16997
16998 # Run-time system search path for libraries.
16999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17000
17001 # Whether dlopen is supported.
17002 dlopen_support=$enable_dlopen
17003
17004 # Whether dlopen of programs is supported.
17005 dlopen_self=$enable_dlopen_self
17006
17007 # Whether dlopen of statically linked programs is supported.
17008 dlopen_self_static=$enable_dlopen_self_static
17009
17010 # Commands to strip libraries.
17011 old_striplib=$lt_old_striplib
17012 striplib=$lt_striplib
17013
17014
17015 # The linker used to build libraries.
17016 LD=$lt_LD
17017
17018 # How to create reloadable object files.
17019 reload_flag=$lt_reload_flag
17020 reload_cmds=$lt_reload_cmds
17021
17022 # Commands used to build an old-style archive.
17023 old_archive_cmds=$lt_old_archive_cmds
17024
17025 # A language specific compiler.
17026 CC=$lt_compiler
17027
17028 # Is the compiler the GNU compiler?
17029 with_gcc=$GCC
17030
17031 # Compiler flag to turn off builtin functions.
17032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17033
17034 # Additional compiler flags for building library objects.
17035 pic_flag=$lt_lt_prog_compiler_pic
17036
17037 # How to pass a linker flag through the compiler.
17038 wl=$lt_lt_prog_compiler_wl
17039
17040 # Compiler flag to prevent dynamic linking.
17041 link_static_flag=$lt_lt_prog_compiler_static
17042
17043 # Does compiler simultaneously support -c and -o options?
17044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17045
17046 # Whether or not to add -lc for building shared libraries.
17047 build_libtool_need_lc=$archive_cmds_need_lc
17048
17049 # Whether or not to disallow shared libs when runtime libs are static.
17050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17051
17052 # Compiler flag to allow reflexive dlopens.
17053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17054
17055 # Compiler flag to generate shared objects directly from archives.
17056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17057
17058 # Whether the compiler copes with passing no objects directly.
17059 compiler_needs_object=$lt_compiler_needs_object
17060
17061 # Create an old-style archive from a shared archive.
17062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17063
17064 # Create a temporary old-style archive to link instead of a shared archive.
17065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17066
17067 # Commands used to build a shared archive.
17068 archive_cmds=$lt_archive_cmds
17069 archive_expsym_cmds=$lt_archive_expsym_cmds
17070
17071 # Commands used to build a loadable module if different from building
17072 # a shared archive.
17073 module_cmds=$lt_module_cmds
17074 module_expsym_cmds=$lt_module_expsym_cmds
17075
17076 # Whether we are building with GNU ld or not.
17077 with_gnu_ld=$lt_with_gnu_ld
17078
17079 # Flag that allows shared libraries with undefined symbols to be built.
17080 allow_undefined_flag=$lt_allow_undefined_flag
17081
17082 # Flag that enforces no undefined symbols.
17083 no_undefined_flag=$lt_no_undefined_flag
17084
17085 # Flag to hardcode \$libdir into a binary during linking.
17086 # This must work even if \$libdir does not exist
17087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17088
17089 # If ld is used when linking, flag to hardcode \$libdir into a binary
17090 # during linking.  This must work even if \$libdir does not exist.
17091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17092
17093 # Whether we need a single "-rpath" flag with a separated argument.
17094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17095
17096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17097 # DIR into the resulting binary.
17098 hardcode_direct=$hardcode_direct
17099
17100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17101 # DIR into the resulting binary and the resulting library dependency is
17102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17103 # library is relocated.
17104 hardcode_direct_absolute=$hardcode_direct_absolute
17105
17106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17107 # into the resulting binary.
17108 hardcode_minus_L=$hardcode_minus_L
17109
17110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17111 # into the resulting binary.
17112 hardcode_shlibpath_var=$hardcode_shlibpath_var
17113
17114 # Set to "yes" if building a shared library automatically hardcodes DIR
17115 # into the library and all subsequent libraries and executables linked
17116 # against it.
17117 hardcode_automatic=$hardcode_automatic
17118
17119 # Set to yes if linker adds runtime paths of dependent libraries
17120 # to runtime path list.
17121 inherit_rpath=$inherit_rpath
17122
17123 # Whether libtool must link a program against all its dependency libraries.
17124 link_all_deplibs=$link_all_deplibs
17125
17126 # Set to "yes" if exported symbols are required.
17127 always_export_symbols=$always_export_symbols
17128
17129 # The commands to list exported symbols.
17130 export_symbols_cmds=$lt_export_symbols_cmds
17131
17132 # Symbols that should not be listed in the preloaded symbols.
17133 exclude_expsyms=$lt_exclude_expsyms
17134
17135 # Symbols that must always be exported.
17136 include_expsyms=$lt_include_expsyms
17137
17138 # Commands necessary for linking programs (against libraries) with templates.
17139 prelink_cmds=$lt_prelink_cmds
17140
17141 # Commands necessary for finishing linking programs.
17142 postlink_cmds=$lt_postlink_cmds
17143
17144 # Specify filename containing input files.
17145 file_list_spec=$lt_file_list_spec
17146
17147 # How to hardcode a shared library path into an executable.
17148 hardcode_action=$hardcode_action
17149
17150 # ### END LIBTOOL CONFIG
17151
17152 _LT_EOF
17153
17154   case $host_os in
17155   aix3*)
17156     cat <<\_LT_EOF >> "$cfgfile"
17157 # AIX sometimes has problems with the GCC collect2 program.  For some
17158 # reason, if we set the COLLECT_NAMES environment variable, the problems
17159 # vanish in a puff of smoke.
17160 if test "X${COLLECT_NAMES+set}" != Xset; then
17161   COLLECT_NAMES=
17162   export COLLECT_NAMES
17163 fi
17164 _LT_EOF
17165     ;;
17166   esac
17167
17168
17169 ltmain="$ac_aux_dir/ltmain.sh"
17170
17171
17172   # We use sed instead of cat because bash on DJGPP gets confused if
17173   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17174   # text mode, it properly converts lines to CR/LF.  This bash problem
17175   # is reportedly fixed, but why not run on old versions too?
17176   sed '$q' "$ltmain" >> "$cfgfile" \
17177      || (rm -f "$cfgfile"; exit 1)
17178
17179   if test x"$xsi_shell" = xyes; then
17180   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17181 func_dirname ()\
17182 {\
17183 \    case ${1} in\
17184 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17185 \      *  ) func_dirname_result="${3}" ;;\
17186 \    esac\
17187 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17188   && mv -f "$cfgfile.tmp" "$cfgfile" \
17189     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17190 test 0 -eq $? || _lt_function_replace_fail=:
17191
17192
17193   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17194 func_basename ()\
17195 {\
17196 \    func_basename_result="${1##*/}"\
17197 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17198   && mv -f "$cfgfile.tmp" "$cfgfile" \
17199     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17200 test 0 -eq $? || _lt_function_replace_fail=:
17201
17202
17203   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17204 func_dirname_and_basename ()\
17205 {\
17206 \    case ${1} in\
17207 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17208 \      *  ) func_dirname_result="${3}" ;;\
17209 \    esac\
17210 \    func_basename_result="${1##*/}"\
17211 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17212   && mv -f "$cfgfile.tmp" "$cfgfile" \
17213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17214 test 0 -eq $? || _lt_function_replace_fail=:
17215
17216
17217   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17218 func_stripname ()\
17219 {\
17220 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17221 \    # positional parameters, so assign one to ordinary parameter first.\
17222 \    func_stripname_result=${3}\
17223 \    func_stripname_result=${func_stripname_result#"${1}"}\
17224 \    func_stripname_result=${func_stripname_result%"${2}"}\
17225 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17226   && mv -f "$cfgfile.tmp" "$cfgfile" \
17227     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17228 test 0 -eq $? || _lt_function_replace_fail=:
17229
17230
17231   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17232 func_split_long_opt ()\
17233 {\
17234 \    func_split_long_opt_name=${1%%=*}\
17235 \    func_split_long_opt_arg=${1#*=}\
17236 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17237   && mv -f "$cfgfile.tmp" "$cfgfile" \
17238     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17239 test 0 -eq $? || _lt_function_replace_fail=:
17240
17241
17242   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17243 func_split_short_opt ()\
17244 {\
17245 \    func_split_short_opt_arg=${1#??}\
17246 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17247 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17248   && mv -f "$cfgfile.tmp" "$cfgfile" \
17249     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17250 test 0 -eq $? || _lt_function_replace_fail=:
17251
17252
17253   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17254 func_lo2o ()\
17255 {\
17256 \    case ${1} in\
17257 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17258 \      *)    func_lo2o_result=${1} ;;\
17259 \    esac\
17260 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17261   && mv -f "$cfgfile.tmp" "$cfgfile" \
17262     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17263 test 0 -eq $? || _lt_function_replace_fail=:
17264
17265
17266   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17267 func_xform ()\
17268 {\
17269     func_xform_result=${1%.*}.lo\
17270 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17271   && mv -f "$cfgfile.tmp" "$cfgfile" \
17272     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17273 test 0 -eq $? || _lt_function_replace_fail=:
17274
17275
17276   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17277 func_arith ()\
17278 {\
17279     func_arith_result=$(( $* ))\
17280 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17281   && mv -f "$cfgfile.tmp" "$cfgfile" \
17282     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17283 test 0 -eq $? || _lt_function_replace_fail=:
17284
17285
17286   sed -e '/^func_len ()$/,/^} # func_len /c\
17287 func_len ()\
17288 {\
17289     func_len_result=${#1}\
17290 } # Extended-shell func_len 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 fi
17296
17297 if test x"$lt_shell_append" = xyes; then
17298   sed -e '/^func_append ()$/,/^} # func_append /c\
17299 func_append ()\
17300 {\
17301     eval "${1}+=\\${2}"\
17302 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17303   && mv -f "$cfgfile.tmp" "$cfgfile" \
17304     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17305 test 0 -eq $? || _lt_function_replace_fail=:
17306
17307
17308   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17309 func_append_quoted ()\
17310 {\
17311 \    func_quote_for_eval "${2}"\
17312 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17313 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17314   && mv -f "$cfgfile.tmp" "$cfgfile" \
17315     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17316 test 0 -eq $? || _lt_function_replace_fail=:
17317
17318
17319   # Save a `func_append' function call where possible by direct use of '+='
17320   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17321     && mv -f "$cfgfile.tmp" "$cfgfile" \
17322       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17323   test 0 -eq $? || _lt_function_replace_fail=:
17324 else
17325   # Save a `func_append' function call even when '+=' is not available
17326   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17327     && mv -f "$cfgfile.tmp" "$cfgfile" \
17328       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17329   test 0 -eq $? || _lt_function_replace_fail=:
17330 fi
17331
17332 if test x"$_lt_function_replace_fail" = x":"; then
17333   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17334 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17335 fi
17336
17337
17338    mv -f "$cfgfile" "$ofile" ||
17339     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17340   chmod +x "$ofile"
17341
17342  ;;
17343     "include":C) test -d include || mkdir include ;;
17344     "src":C)
17345 test -d src || mkdir src
17346 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17347  ;;
17348
17349   esac
17350 done # for ac_tag
17351
17352
17353 as_fn_exit 0
17354 _ACEOF
17355 ac_clean_files=$ac_clean_files_save
17356
17357 test $ac_write_fail = 0 ||
17358   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17359
17360
17361 # configure is writing to config.log, and then calls config.status.
17362 # config.status does its own redirection, appending to config.log.
17363 # Unfortunately, on DOS this fails, as config.log is still kept open
17364 # by configure, so config.status won't be able to write to it; its
17365 # output is simply discarded.  So we exec the FD to /dev/null,
17366 # effectively closing config.log, so it can be properly (re)opened and
17367 # appended to by config.status.  When coming back to configure, we
17368 # need to make the FD available again.
17369 if test "$no_create" != yes; then
17370   ac_cs_success=:
17371   ac_config_status_args=
17372   test "$silent" = yes &&
17373     ac_config_status_args="$ac_config_status_args --quiet"
17374   exec 5>/dev/null
17375   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17376   exec 5>>config.log
17377   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17378   # would make configure fail if this is the last instruction.
17379   $ac_cs_success || as_fn_exit 1
17380 fi
17381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17382   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17384 fi
17385