Merge pull request #66 from ppizarro/master
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.0.14-rc0.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/atgreen/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.0.14-rc0'
594 PACKAGE_STRING='libffi 3.0.14-rc0'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 toolexeclibdir
639 toolexecdir
640 FFI_DEBUG_FALSE
641 FFI_DEBUG_TRUE
642 TARGETDIR
643 TARGET
644 FFI_EXEC_TRAMPOLINE_TABLE
645 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647 sys_symbol_underscore
648 HAVE_LONG_DOUBLE_VARIANT
649 HAVE_LONG_DOUBLE
650 ALLOCA
651 XTENSA_FALSE
652 XTENSA_TRUE
653 VAX_FALSE
654 VAX_TRUE
655 TILE_FALSE
656 TILE_TRUE
657 PA64_HPUX_FALSE
658 PA64_HPUX_TRUE
659 PA_HPUX_FALSE
660 PA_HPUX_TRUE
661 PA_LINUX_FALSE
662 PA_LINUX_TRUE
663 SH64_FALSE
664 SH64_TRUE
665 SH_FALSE
666 SH_TRUE
667 X86_64_FALSE
668 X86_64_TRUE
669 S390_FALSE
670 S390_TRUE
671 FRV_FALSE
672 FRV_TRUE
673 LIBFFI_CRIS_FALSE
674 LIBFFI_CRIS_TRUE
675 AVR32_FALSE
676 AVR32_TRUE
677 ARM_FALSE
678 ARM_TRUE
679 ARC_FALSE
680 ARC_TRUE
681 AARCH64_FALSE
682 AARCH64_TRUE
683 POWERPC_FREEBSD_FALSE
684 POWERPC_FREEBSD_TRUE
685 POWERPC_DARWIN_FALSE
686 POWERPC_DARWIN_TRUE
687 POWERPC_AIX_FALSE
688 POWERPC_AIX_TRUE
689 POWERPC_FALSE
690 POWERPC_TRUE
691 NIOS2_FALSE
692 NIOS2_TRUE
693 MOXIE_FALSE
694 MOXIE_TRUE
695 METAG_FALSE
696 METAG_TRUE
697 MICROBLAZE_FALSE
698 MICROBLAZE_TRUE
699 M88K_FALSE
700 M88K_TRUE
701 M68K_FALSE
702 M68K_TRUE
703 M32R_FALSE
704 M32R_TRUE
705 IA64_FALSE
706 IA64_TRUE
707 ALPHA_FALSE
708 ALPHA_TRUE
709 X86_DARWIN_FALSE
710 X86_DARWIN_TRUE
711 X86_WIN64_FALSE
712 X86_WIN64_TRUE
713 X86_WIN32_FALSE
714 X86_WIN32_TRUE
715 X86_FREEBSD_FALSE
716 X86_FREEBSD_TRUE
717 X86_FALSE
718 X86_TRUE
719 SPARC_FALSE
720 SPARC_TRUE
721 BFIN_FALSE
722 BFIN_TRUE
723 MIPS_FALSE
724 MIPS_TRUE
725 AM_LTLDFLAGS
726 AM_RUNTESTFLAGS
727 TESTSUBDIR_FALSE
728 TESTSUBDIR_TRUE
729 MAINT
730 MAINTAINER_MODE_FALSE
731 MAINTAINER_MODE_TRUE
732 PRTDIAG
733 CPP
734 OTOOL64
735 OTOOL
736 LIPO
737 NMEDIT
738 DSYMUTIL
739 MANIFEST_TOOL
740 RANLIB
741 ac_ct_AR
742 AR
743 DLLTOOL
744 OBJDUMP
745 LN_S
746 NM
747 ac_ct_DUMPBIN
748 DUMPBIN
749 LD
750 FGREP
751 EGREP
752 GREP
753 SED
754 LIBTOOL
755 am__fastdepCCAS_FALSE
756 am__fastdepCCAS_TRUE
757 CCASDEPMODE
758 CCASFLAGS
759 CCAS
760 am__fastdepCC_FALSE
761 am__fastdepCC_TRUE
762 CCDEPMODE
763 am__nodep
764 AMDEPBACKSLASH
765 AMDEP_FALSE
766 AMDEP_TRUE
767 am__quote
768 am__include
769 DEPDIR
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
776 CC
777 AM_BACKSLASH
778 AM_DEFAULT_VERBOSITY
779 AM_DEFAULT_V
780 AM_V
781 am__untar
782 am__tar
783 AMTAR
784 am__leading_dot
785 SET_MAKE
786 AWK
787 mkdir_p
788 MKDIR_P
789 INSTALL_STRIP_PROGRAM
790 STRIP
791 install_sh
792 MAKEINFO
793 AUTOHEADER
794 AUTOMAKE
795 AUTOCONF
796 ACLOCAL
797 VERSION
798 PACKAGE
799 CYGPATH_W
800 am__isrc
801 INSTALL_DATA
802 INSTALL_SCRIPT
803 INSTALL_PROGRAM
804 ax_enable_builddir_sed
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files=''
856 ac_user_opts='
857 enable_option_checking
858 enable_builddir
859 enable_silent_rules
860 enable_dependency_tracking
861 enable_shared
862 enable_static
863 with_pic
864 enable_fast_install
865 with_gnu_ld
866 with_sysroot
867 enable_libtool_lock
868 enable_portable_binary
869 with_gcc_arch
870 enable_maintainer_mode
871 enable_pax_emutramp
872 enable_debug
873 enable_structs
874 enable_raw_api
875 enable_purify_safety
876 '
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CCAS
881 CCASFLAGS
882 CPP
883 CPPFLAGS'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938   # If the previous option needs an argument, assign it.
939   if test -n "$ac_prev"; then
940     eval $ac_prev=\$ac_option
941     ac_prev=
942     continue
943   fi
944
945   case $ac_option in
946   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947   *=)   ac_optarg= ;;
948   *)    ac_optarg=yes ;;
949   esac
950
951   # Accept the important Cygnus configure options, so we can diagnose typos.
952
953   case $ac_dashdash$ac_option in
954   --)
955     ac_dashdash=yes ;;
956
957   -bindir | --bindir | --bindi | --bind | --bin | --bi)
958     ac_prev=bindir ;;
959   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960     bindir=$ac_optarg ;;
961
962   -build | --build | --buil | --bui | --bu)
963     ac_prev=build_alias ;;
964   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965     build_alias=$ac_optarg ;;
966
967   -cache-file | --cache-file | --cache-fil | --cache-fi \
968   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969     ac_prev=cache_file ;;
970   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972     cache_file=$ac_optarg ;;
973
974   --config-cache | -C)
975     cache_file=config.cache ;;
976
977   -datadir | --datadir | --datadi | --datad)
978     ac_prev=datadir ;;
979   -datadir=* | --datadir=* | --datadi=* | --datad=*)
980     datadir=$ac_optarg ;;
981
982   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983   | --dataroo | --dataro | --datar)
984     ac_prev=datarootdir ;;
985   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987     datarootdir=$ac_optarg ;;
988
989   -disable-* | --disable-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid feature name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "enable_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval enable_$ac_useropt=no ;;
1004
1005   -docdir | --docdir | --docdi | --doc | --do)
1006     ac_prev=docdir ;;
1007   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008     docdir=$ac_optarg ;;
1009
1010   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011     ac_prev=dvidir ;;
1012   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013     dvidir=$ac_optarg ;;
1014
1015   -enable-* | --enable-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error $? "invalid feature name: $ac_useropt"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033   | --exec | --exe | --ex)
1034     ac_prev=exec_prefix ;;
1035   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037   | --exec=* | --exe=* | --ex=*)
1038     exec_prefix=$ac_optarg ;;
1039
1040   -gas | --gas | --ga | --g)
1041     # Obsolete; use --with-gas.
1042     with_gas=yes ;;
1043
1044   -help | --help | --hel | --he | -h)
1045     ac_init_help=long ;;
1046   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047     ac_init_help=recursive ;;
1048   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049     ac_init_help=short ;;
1050
1051   -host | --host | --hos | --ho)
1052     ac_prev=host_alias ;;
1053   -host=* | --host=* | --hos=* | --ho=*)
1054     host_alias=$ac_optarg ;;
1055
1056   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057     ac_prev=htmldir ;;
1058   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059   | --ht=*)
1060     htmldir=$ac_optarg ;;
1061
1062   -includedir | --includedir | --includedi | --included | --include \
1063   | --includ | --inclu | --incl | --inc)
1064     ac_prev=includedir ;;
1065   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066   | --includ=* | --inclu=* | --incl=* | --inc=*)
1067     includedir=$ac_optarg ;;
1068
1069   -infodir | --infodir | --infodi | --infod | --info | --inf)
1070     ac_prev=infodir ;;
1071   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072     infodir=$ac_optarg ;;
1073
1074   -libdir | --libdir | --libdi | --libd)
1075     ac_prev=libdir ;;
1076   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077     libdir=$ac_optarg ;;
1078
1079   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080   | --libexe | --libex | --libe)
1081     ac_prev=libexecdir ;;
1082   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083   | --libexe=* | --libex=* | --libe=*)
1084     libexecdir=$ac_optarg ;;
1085
1086   -localedir | --localedir | --localedi | --localed | --locale)
1087     ac_prev=localedir ;;
1088   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089     localedir=$ac_optarg ;;
1090
1091   -localstatedir | --localstatedir | --localstatedi | --localstated \
1092   | --localstate | --localstat | --localsta | --localst | --locals)
1093     ac_prev=localstatedir ;;
1094   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096     localstatedir=$ac_optarg ;;
1097
1098   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099     ac_prev=mandir ;;
1100   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101     mandir=$ac_optarg ;;
1102
1103   -nfp | --nfp | --nf)
1104     # Obsolete; use --without-fp.
1105     with_fp=no ;;
1106
1107   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108   | --no-cr | --no-c | -n)
1109     no_create=yes ;;
1110
1111   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113     no_recursion=yes ;;
1114
1115   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117   | --oldin | --oldi | --old | --ol | --o)
1118     ac_prev=oldincludedir ;;
1119   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122     oldincludedir=$ac_optarg ;;
1123
1124   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125     ac_prev=prefix ;;
1126   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127     prefix=$ac_optarg ;;
1128
1129   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130   | --program-pre | --program-pr | --program-p)
1131     ac_prev=program_prefix ;;
1132   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134     program_prefix=$ac_optarg ;;
1135
1136   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137   | --program-suf | --program-su | --program-s)
1138     ac_prev=program_suffix ;;
1139   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141     program_suffix=$ac_optarg ;;
1142
1143   -program-transform-name | --program-transform-name \
1144   | --program-transform-nam | --program-transform-na \
1145   | --program-transform-n | --program-transform- \
1146   | --program-transform | --program-transfor \
1147   | --program-transfo | --program-transf \
1148   | --program-trans | --program-tran \
1149   | --progr-tra | --program-tr | --program-t)
1150     ac_prev=program_transform_name ;;
1151   -program-transform-name=* | --program-transform-name=* \
1152   | --program-transform-nam=* | --program-transform-na=* \
1153   | --program-transform-n=* | --program-transform-=* \
1154   | --program-transform=* | --program-transfor=* \
1155   | --program-transfo=* | --program-transf=* \
1156   | --program-trans=* | --program-tran=* \
1157   | --progr-tra=* | --program-tr=* | --program-t=*)
1158     program_transform_name=$ac_optarg ;;
1159
1160   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161     ac_prev=pdfdir ;;
1162   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163     pdfdir=$ac_optarg ;;
1164
1165   -psdir | --psdir | --psdi | --psd | --ps)
1166     ac_prev=psdir ;;
1167   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168     psdir=$ac_optarg ;;
1169
1170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171   | -silent | --silent | --silen | --sile | --sil)
1172     silent=yes ;;
1173
1174   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175     ac_prev=sbindir ;;
1176   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177   | --sbi=* | --sb=*)
1178     sbindir=$ac_optarg ;;
1179
1180   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182   | --sharedst | --shareds | --shared | --share | --shar \
1183   | --sha | --sh)
1184     ac_prev=sharedstatedir ;;
1185   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188   | --sha=* | --sh=*)
1189     sharedstatedir=$ac_optarg ;;
1190
1191   -site | --site | --sit)
1192     ac_prev=site ;;
1193   -site=* | --site=* | --sit=*)
1194     site=$ac_optarg ;;
1195
1196   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197     ac_prev=srcdir ;;
1198   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199     srcdir=$ac_optarg ;;
1200
1201   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202   | --syscon | --sysco | --sysc | --sys | --sy)
1203     ac_prev=sysconfdir ;;
1204   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206     sysconfdir=$ac_optarg ;;
1207
1208   -target | --target | --targe | --targ | --tar | --ta | --t)
1209     ac_prev=target_alias ;;
1210   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211     target_alias=$ac_optarg ;;
1212
1213   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214     verbose=yes ;;
1215
1216   -version | --version | --versio | --versi | --vers | -V)
1217     ac_init_version=: ;;
1218
1219   -with-* | --with-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error $? "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=no ;;
1250
1251   --x)
1252     # Obsolete; use --with-x.
1253     with_x=yes ;;
1254
1255   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256   | --x-incl | --x-inc | --x-in | --x-i)
1257     ac_prev=x_includes ;;
1258   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260     x_includes=$ac_optarg ;;
1261
1262   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264     ac_prev=x_libraries ;;
1265   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267     x_libraries=$ac_optarg ;;
1268
1269   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271     ;;
1272
1273   *=*)
1274     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275     # Reject names that are not valid shell variable names.
1276     case $ac_envvar in #(
1277       '' | [0-9]* | *[!_$as_cr_alnum]* )
1278       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279     esac
1280     eval $ac_envvar=\$ac_optarg
1281     export $ac_envvar ;;
1282
1283   *)
1284     # FIXME: should be removed in autoconf 3.0.
1285     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289     ;;
1290
1291   esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296   as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300   case $enable_option_checking in
1301     no) ;;
1302     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304   esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309                 datadir sysconfdir sharedstatedir localstatedir includedir \
1310                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311                 libdir localedir mandir
1312 do
1313   eval ac_val=\$$ac_var
1314   # Remove trailing slashes.
1315   case $ac_val in
1316     */ )
1317       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318       eval $ac_var=\$ac_val;;
1319   esac
1320   # Be sure to have absolute directory names.
1321   case $ac_val in
1322     [\\/$]* | ?:[\\/]* )  continue;;
1323     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324   esac
1325   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337   if test "x$build_alias" = x; then
1338     cross_compiling=maybe
1339   elif test "x$build_alias" != "x$host_alias"; then
1340     cross_compiling=yes
1341   fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353   as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355   as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360   ac_srcdir_defaulted=yes
1361   # Try the directory containing this script, then the parent directory.
1362   ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364          X"$as_myself" : 'X\(//\)[^/]' \| \
1365          X"$as_myself" : 'X\(//\)$' \| \
1366          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)[^/].*/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\).*/{
1381             s//\1/
1382             q
1383           }
1384           s/.*/./; q'`
1385   srcdir=$ac_confdir
1386   if test ! -r "$srcdir/$ac_unique_file"; then
1387     srcdir=..
1388   fi
1389 else
1390   ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399         pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402   srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_env_${ac_var}_value=\$${ac_var}
1413   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421   # Omit some internal or obsolete options to make the list less imposing.
1422   # This message is too long to be a string in the A/UX 3.1 sh.
1423   cat <<_ACEOF
1424 \`configure' configures libffi 3.0.14-rc0 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434   -h, --help              display this help and exit
1435       --help=short        display options specific to this package
1436       --help=recursive    display the short help of all the included packages
1437   -V, --version           display version information and exit
1438   -q, --quiet, --silent   do not print \`checking ...' messages
1439       --cache-file=FILE   cache test results in FILE [disabled]
1440   -C, --config-cache      alias for \`--cache-file=config.cache'
1441   -n, --no-create         do not create output files
1442       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445   --prefix=PREFIX         install architecture-independent files in PREFIX
1446                           [$ac_default_prefix]
1447   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448                           [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458   --bindir=DIR            user executables [EPREFIX/bin]
1459   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460   --libexecdir=DIR        program executables [EPREFIX/libexec]
1461   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464   --libdir=DIR            object code libraries [EPREFIX/lib]
1465   --includedir=DIR        C header files [PREFIX/include]
1466   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469   --infodir=DIR           info documentation [DATAROOTDIR/info]
1470   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471   --mandir=DIR            man documentation [DATAROOTDIR/man]
1472   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1473   --htmldir=DIR           html documentation [DOCDIR]
1474   --dvidir=DIR            dvi documentation [DOCDIR]
1475   --pdfdir=DIR            pdf documentation [DOCDIR]
1476   --psdir=DIR             ps documentation [DOCDIR]
1477 _ACEOF
1478
1479   cat <<\_ACEOF
1480
1481 Program names:
1482   --program-prefix=PREFIX            prepend PREFIX to installed program names
1483   --program-suffix=SUFFIX            append SUFFIX to installed program names
1484   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486 System types:
1487   --build=BUILD     configure for building on BUILD [guessed]
1488   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489   --target=TARGET   configure for building compilers for TARGET [HOST]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494   case $ac_init_help in
1495      short | recursive ) echo "Configuration of libffi 3.0.14-rc0:";;
1496    esac
1497   cat <<\_ACEOF
1498
1499 Optional Features:
1500   --disable-option-checking  ignore unrecognized --enable/--with options
1501   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503   --disable-builddir      disable automatic build in subdir of sources
1504
1505   --enable-silent-rules   less verbose build output (undo: "make V=1")
1506   --disable-silent-rules  verbose build output (undo: "make V=0")
1507   --enable-dependency-tracking
1508                           do not reject slow dependency extractors
1509   --disable-dependency-tracking
1510                           speeds up one-time build
1511   --enable-shared[=PKGS]  build shared libraries [default=yes]
1512   --enable-static[=PKGS]  build static libraries [default=yes]
1513   --enable-fast-install[=PKGS]
1514                           optimize for fast installation [default=yes]
1515   --disable-libtool-lock  avoid locking (might break parallel builds)
1516   --enable-portable-binary
1517                           disable compiler optimizations that would produce
1518                           unportable binaries
1519   --enable-maintainer-mode
1520                           enable make rules and dependencies not useful (and
1521                           sometimes confusing) to the casual installer
1522   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1523   --enable-debug          debugging mode
1524   --disable-structs       omit code for struct support
1525   --disable-raw-api       make the raw api unavailable
1526   --enable-purify-safety  purify-safe mode
1527
1528 Optional Packages:
1529   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1530   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1531   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1532                           both]
1533   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1534   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1535                           compiler's sysroot if not specified).
1536   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1537                           instead of guessing
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CCAS        assembler compiler command (defaults to CC)
1548   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1549   CPP         C preprocessor
1550
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1553
1554 Report bugs to <http://github.com/atgreen/libffi/issues>.
1555 _ACEOF
1556 ac_status=$?
1557 fi
1558
1559 if test "$ac_init_help" = "recursive"; then
1560   # If there are subdirs, report their specific --help.
1561   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562     test -d "$ac_dir" ||
1563       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564       continue
1565     ac_builddir=.
1566
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *)
1570   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571   # A ".." for each directory in $ac_dir_suffix.
1572   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573   case $ac_top_builddir_sub in
1574   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576   esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1582
1583 case $srcdir in
1584   .)  # We are building in place.
1585     ac_srcdir=.
1586     ac_top_srcdir=$ac_top_builddir_sub
1587     ac_abs_top_srcdir=$ac_pwd ;;
1588   [\\/]* | ?:[\\/]* )  # Absolute name.
1589     ac_srcdir=$srcdir$ac_dir_suffix;
1590     ac_top_srcdir=$srcdir
1591     ac_abs_top_srcdir=$srcdir ;;
1592   *) # Relative name.
1593     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594     ac_top_srcdir=$ac_top_build_prefix$srcdir
1595     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599     cd "$ac_dir" || { ac_status=$?; continue; }
1600     # Check for guested configure.
1601     if test -f "$ac_srcdir/configure.gnu"; then
1602       echo &&
1603       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604     elif test -f "$ac_srcdir/configure"; then
1605       echo &&
1606       $SHELL "$ac_srcdir/configure" --help=recursive
1607     else
1608       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609     fi || ac_status=$?
1610     cd "$ac_pwd" || { ac_status=$?; break; }
1611   done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616   cat <<\_ACEOF
1617 libffi configure 3.0.14-rc0
1618 generated by GNU Autoconf 2.69
1619
1620 Copyright (C) 2012 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   rm -f conftest.$ac_objext
1638   if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_compile") 2>conftest.err
1646   ac_status=$?
1647   if test -s conftest.err; then
1648     grep -v '^ *+' conftest.err >conftest.er1
1649     cat conftest.er1 >&5
1650     mv -f conftest.er1 conftest.err
1651   fi
1652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653   test $ac_status = 0; } && {
1654          test -z "$ac_c_werror_flag" ||
1655          test ! -s conftest.err
1656        } && test -s conftest.$ac_objext; then :
1657   ac_retval=0
1658 else
1659   $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662         ac_retval=1
1663 fi
1664   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665   as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_compile
1668
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_link ()
1673 {
1674   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675   rm -f conftest.$ac_objext conftest$ac_exeext
1676   if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679   *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683   (eval "$ac_link") 2>conftest.err
1684   ac_status=$?
1685   if test -s conftest.err; then
1686     grep -v '^ *+' conftest.err >conftest.er1
1687     cat conftest.er1 >&5
1688     mv -f conftest.er1 conftest.err
1689   fi
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; } && {
1692          test -z "$ac_c_werror_flag" ||
1693          test ! -s conftest.err
1694        } && test -s conftest$ac_exeext && {
1695          test "$cross_compiling" = yes ||
1696          test -x conftest$ac_exeext
1697        }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703         ac_retval=1
1704 fi
1705   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707   # interfere with the next link command; also delete a directory that is
1708   # left behind by Apple's compiler.  We do this before executing the actions.
1709   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_link
1714
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725   $as_echo_n "(cached) " >&6
1726 else
1727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h.  */
1729 $4
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733   eval "$3=yes"
1734 else
1735   eval "$3=no"
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 fi
1739 eval ac_res=\$$3
1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744 } # ac_fn_c_check_header_compile
1745
1746 # ac_fn_c_try_cpp LINENO
1747 # ----------------------
1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_cpp ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760   ac_status=$?
1761   if test -s conftest.err; then
1762     grep -v '^ *+' conftest.err >conftest.er1
1763     cat conftest.er1 >&5
1764     mv -f conftest.er1 conftest.err
1765   fi
1766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767   test $ac_status = 0; } > conftest.i && {
1768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769          test ! -s conftest.err
1770        }; then :
1771   ac_retval=0
1772 else
1773   $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776     ac_retval=1
1777 fi
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779   as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_cpp
1782
1783 # ac_fn_c_try_run LINENO
1784 # ----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786 # that executables *can* be run.
1787 ac_fn_c_try_run ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_link") 2>&5
1798   ac_status=$?
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801   { { case "(($ac_try" in
1802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803   *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807   (eval "$ac_try") 2>&5
1808   ac_status=$?
1809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810   test $ac_status = 0; }; }; then :
1811   ac_retval=0
1812 else
1813   $as_echo "$as_me: program exited with status $ac_status" >&5
1814        $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817        ac_retval=$ac_status
1818 fi
1819   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_run
1824
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834   $as_echo_n "(cached) " >&6
1835 else
1836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1840 #define $2 innocuous_$2
1841
1842 /* System header to define __stub macros and hopefully few prototypes,
1843     which can conflict with char $2 (); below.
1844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845     <limits.h> exists even on freestanding compilers.  */
1846
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1852
1853 #undef $2
1854
1855 /* Override any GCC internal prototype to avoid an error.
1856    Use char because int might match the return type of a GCC
1857    builtin and then its argument prototype would still apply.  */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863     to always fail with ENOSYS.  Some functions are actually named
1864     something starting with __ and the normal name is an alias.  */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1868
1869 int
1870 main ()
1871 {
1872 return $2 ();
1873   ;
1874   return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878   eval "$3=yes"
1879 else
1880   eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext \
1883     conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1893 # --------------------------------------------
1894 # Tries to find the compile-time value of EXPR in a program that includes
1895 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1896 # computed
1897 ac_fn_c_compute_int ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   if test "$cross_compiling" = yes; then
1901     # Depending upon the size, compute the lo and hi bounds.
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h.  */
1904 $4
1905 int
1906 main ()
1907 {
1908 static int test_array [1 - 2 * !(($2) >= 0)];
1909 test_array [0] = 0;
1910 return test_array [0];
1911
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917   ac_lo=0 ac_mid=0
1918   while :; do
1919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 $4
1922 int
1923 main ()
1924 {
1925 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926 test_array [0] = 0;
1927 return test_array [0];
1928
1929   ;
1930   return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934   ac_hi=$ac_mid; break
1935 else
1936   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937                         if test $ac_lo -le $ac_mid; then
1938                           ac_lo= ac_hi=
1939                           break
1940                         fi
1941                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944   done
1945 else
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 $4
1949 int
1950 main ()
1951 {
1952 static int test_array [1 - 2 * !(($2) < 0)];
1953 test_array [0] = 0;
1954 return test_array [0];
1955
1956   ;
1957   return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961   ac_hi=-1 ac_mid=-1
1962   while :; do
1963     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 int
1967 main ()
1968 {
1969 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978   ac_lo=$ac_mid; break
1979 else
1980   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981                         if test $ac_mid -le $ac_hi; then
1982                           ac_lo= ac_hi=
1983                           break
1984                         fi
1985                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988   done
1989 else
1990   ac_lo= ac_hi=
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 # Binary search between lo and hi bounds.
1996 while test "x$ac_lo" != "x$ac_hi"; do
1997   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 $4
2001 int
2002 main ()
2003 {
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 test_array [0] = 0;
2006 return test_array [0];
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   ac_hi=$ac_mid
2014 else
2015   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 case $ac_lo in #((
2020 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021 '') ac_retval=1 ;;
2022 esac
2023   else
2024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 static long int longval () { return $2; }
2028 static unsigned long int ulongval () { return $2; }
2029 #include <stdio.h>
2030 #include <stdlib.h>
2031 int
2032 main ()
2033 {
2034
2035   FILE *f = fopen ("conftest.val", "w");
2036   if (! f)
2037     return 1;
2038   if (($2) < 0)
2039     {
2040       long int i = longval ();
2041       if (i != ($2))
2042         return 1;
2043       fprintf (f, "%ld", i);
2044     }
2045   else
2046     {
2047       unsigned long int i = ulongval ();
2048       if (i != ($2))
2049         return 1;
2050       fprintf (f, "%lu", i);
2051     }
2052   /* Do not output a trailing newline, as this causes \r\n confusion
2053      on some platforms.  */
2054   return ferror (f) || fclose (f) != 0;
2055
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_run "$LINENO"; then :
2061   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062 else
2063   ac_retval=1
2064 fi
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066   conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f conftest.val
2068
2069   fi
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_compute_int
2074
2075 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2078 # the include files in INCLUDES and setting the cache variable VAR
2079 # accordingly.
2080 ac_fn_c_check_header_mongrel ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   if eval \${$3+:} false; then :
2084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval \${$3+:} false; then :
2087   $as_echo_n "(cached) " >&6
2088 fi
2089 eval ac_res=\$$3
2090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 else
2093   # Is the header compilable?
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2095 $as_echo_n "checking $2 usability... " >&6; }
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102   ac_header_compiler=yes
2103 else
2104   ac_header_compiler=no
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2108 $as_echo "$ac_header_compiler" >&6; }
2109
2110 # Is the header present?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2112 $as_echo_n "checking $2 presence... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_c_try_cpp "$LINENO"; then :
2118   ac_header_preproc=yes
2119 else
2120   ac_header_preproc=no
2121 fi
2122 rm -f conftest.err conftest.i conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2124 $as_echo "$ac_header_preproc" >&6; }
2125
2126 # So?  What about this header?
2127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2128   yes:no: )
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2130 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133     ;;
2134   no:yes:* )
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2136 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2138 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2140 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2142 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ( $as_echo "## ------------------------------------------------------ ##
2146 ## Report this to http://github.com/atgreen/libffi/issues ##
2147 ## ------------------------------------------------------ ##"
2148      ) | sed "s/^/$as_me: WARNING:     /" >&2
2149     ;;
2150 esac
2151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154   $as_echo_n "(cached) " >&6
2155 else
2156   eval "$3=\$ac_header_compiler"
2157 fi
2158 eval ac_res=\$$3
2159                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 fi
2162   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163
2164 } # ac_fn_c_check_header_mongrel
2165
2166 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2167 # -------------------------------------------
2168 # Tests whether TYPE exists after having included INCLUDES, setting cache
2169 # variable VAR accordingly.
2170 ac_fn_c_check_type ()
2171 {
2172   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176   $as_echo_n "(cached) " >&6
2177 else
2178   eval "$3=no"
2179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 if (sizeof ($2))
2186          return 0;
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h.  */
2194 $4
2195 int
2196 main ()
2197 {
2198 if (sizeof (($2)))
2199             return 0;
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205
2206 else
2207   eval "$3=yes"
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_c_check_type
2219 cat >config.log <<_ACEOF
2220 This file contains any messages produced by compilers while
2221 running configure, to aid debugging if configure makes a mistake.
2222
2223 It was created by libffi $as_me 3.0.14-rc0, which was
2224 generated by GNU Autoconf 2.69.  Invocation command line was
2225
2226   $ $0 $@
2227
2228 _ACEOF
2229 exec 5>>config.log
2230 {
2231 cat <<_ASUNAME
2232 ## --------- ##
2233 ## Platform. ##
2234 ## --------- ##
2235
2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2241
2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2244
2245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2248 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2252
2253 _ASUNAME
2254
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260     $as_echo "PATH: $as_dir"
2261   done
2262 IFS=$as_save_IFS
2263
2264 } >&5
2265
2266 cat >&5 <<_ACEOF
2267
2268
2269 ## ----------- ##
2270 ## Core tests. ##
2271 ## ----------- ##
2272
2273 _ACEOF
2274
2275
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2281 ac_configure_args=
2282 ac_configure_args0=
2283 ac_configure_args1=
2284 ac_must_keep_next=false
2285 for ac_pass in 1 2
2286 do
2287   for ac_arg
2288   do
2289     case $ac_arg in
2290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292     | -silent | --silent | --silen | --sile | --sil)
2293       continue ;;
2294     *\'*)
2295       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2296     esac
2297     case $ac_pass in
2298     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299     2)
2300       as_fn_append ac_configure_args1 " '$ac_arg'"
2301       if test $ac_must_keep_next = true; then
2302         ac_must_keep_next=false # Got value, back to normal.
2303       else
2304         case $ac_arg in
2305           *=* | --config-cache | -C | -disable-* | --disable-* \
2306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308           | -with-* | --with-* | -without-* | --without-* | --x)
2309             case "$ac_configure_args0 " in
2310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2311             esac
2312             ;;
2313           -* ) ac_must_keep_next=true ;;
2314         esac
2315       fi
2316       as_fn_append ac_configure_args " '$ac_arg'"
2317       ;;
2318     esac
2319   done
2320 done
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2323
2324 # When interrupted or exit'd, cleanup temporary files, and complete
2325 # config.log.  We remove comments because anyway the quotes in there
2326 # would cause problems or look ugly.
2327 # WARNING: Use '\'' to represent an apostrophe within the trap.
2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2329 trap 'exit_status=$?
2330   # Save into config.log some information that might help in debugging.
2331   {
2332     echo
2333
2334     $as_echo "## ---------------- ##
2335 ## Cache variables. ##
2336 ## ---------------- ##"
2337     echo
2338     # The following way of writing the cache mishandles newlines in values,
2339 (
2340   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2341     eval ac_val=\$$ac_var
2342     case $ac_val in #(
2343     *${as_nl}*)
2344       case $ac_var in #(
2345       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2347       esac
2348       case $ac_var in #(
2349       _ | IFS | as_nl) ;; #(
2350       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2351       *) { eval $ac_var=; unset $ac_var;} ;;
2352       esac ;;
2353     esac
2354   done
2355   (set) 2>&1 |
2356     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2357     *${as_nl}ac_space=\ *)
2358       sed -n \
2359         "s/'\''/'\''\\\\'\'''\''/g;
2360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2361       ;; #(
2362     *)
2363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364       ;;
2365     esac |
2366     sort
2367 )
2368     echo
2369
2370     $as_echo "## ----------------- ##
2371 ## Output variables. ##
2372 ## ----------------- ##"
2373     echo
2374     for ac_var in $ac_subst_vars
2375     do
2376       eval ac_val=\$$ac_var
2377       case $ac_val in
2378       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379       esac
2380       $as_echo "$ac_var='\''$ac_val'\''"
2381     done | sort
2382     echo
2383
2384     if test -n "$ac_subst_files"; then
2385       $as_echo "## ------------------- ##
2386 ## File substitutions. ##
2387 ## ------------------- ##"
2388       echo
2389       for ac_var in $ac_subst_files
2390       do
2391         eval ac_val=\$$ac_var
2392         case $ac_val in
2393         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394         esac
2395         $as_echo "$ac_var='\''$ac_val'\''"
2396       done | sort
2397       echo
2398     fi
2399
2400     if test -s confdefs.h; then
2401       $as_echo "## ----------- ##
2402 ## confdefs.h. ##
2403 ## ----------- ##"
2404       echo
2405       cat confdefs.h
2406       echo
2407     fi
2408     test "$ac_signal" != 0 &&
2409       $as_echo "$as_me: caught signal $ac_signal"
2410     $as_echo "$as_me: exit $exit_status"
2411   } >&5
2412   rm -f core *.core core.conftest.* &&
2413     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2414     exit $exit_status
2415 ' 0
2416 for ac_signal in 1 2 13 15; do
2417   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2418 done
2419 ac_signal=0
2420
2421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2422 rm -f -r conftest* confdefs.h
2423
2424 $as_echo "/* confdefs.h */" > confdefs.h
2425
2426 # Predefined preprocessor variables.
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_NAME "$PACKAGE_NAME"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_STRING "$PACKAGE_STRING"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_URL "$PACKAGE_URL"
2450 _ACEOF
2451
2452
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2455 ac_site_file1=NONE
2456 ac_site_file2=NONE
2457 if test -n "$CONFIG_SITE"; then
2458   # We do not want a PATH search for config.site.
2459   case $CONFIG_SITE in #((
2460     -*)  ac_site_file1=./$CONFIG_SITE;;
2461     */*) ac_site_file1=$CONFIG_SITE;;
2462     *)   ac_site_file1=./$CONFIG_SITE;;
2463   esac
2464 elif test "x$prefix" != xNONE; then
2465   ac_site_file1=$prefix/share/config.site
2466   ac_site_file2=$prefix/etc/config.site
2467 else
2468   ac_site_file1=$ac_default_prefix/share/config.site
2469   ac_site_file2=$ac_default_prefix/etc/config.site
2470 fi
2471 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2472 do
2473   test "x$ac_site_file" = xNONE && continue
2474   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2476 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2477     sed 's/^/| /' "$ac_site_file" >&5
2478     . "$ac_site_file" \
2479       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "failed to load site script $ac_site_file
2482 See \`config.log' for more details" "$LINENO" 5; }
2483   fi
2484 done
2485
2486 if test -r "$cache_file"; then
2487   # Some versions of bash will fail to source /dev/null (special files
2488   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2489   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492     case $cache_file in
2493       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494       *)                      . "./$cache_file";;
2495     esac
2496   fi
2497 else
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2500   >$cache_file
2501 fi
2502
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508   eval ac_new_set=\$ac_env_${ac_var}_set
2509   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510   eval ac_new_val=\$ac_env_${ac_var}_value
2511   case $ac_old_set,$ac_new_set in
2512     set,)
2513       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515       ac_cache_corrupted=: ;;
2516     ,set)
2517       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519       ac_cache_corrupted=: ;;
2520     ,);;
2521     *)
2522       if test "x$ac_old_val" != "x$ac_new_val"; then
2523         # differences in whitespace do not lead to failure.
2524         ac_old_val_w=`echo x $ac_old_val`
2525         ac_new_val_w=`echo x $ac_new_val`
2526         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529           ac_cache_corrupted=:
2530         else
2531           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533           eval $ac_var=\$ac_old_val
2534         fi
2535         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2536 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2537         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2539       fi;;
2540   esac
2541   # Pass precious variables to config.status.
2542   if test "$ac_new_set" = set; then
2543     case $ac_new_val in
2544     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545     *) ac_arg=$ac_var=$ac_new_val ;;
2546     esac
2547     case " $ac_configure_args " in
2548       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2549       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550     esac
2551   fi
2552 done
2553 if $ac_cache_corrupted; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571 ac_config_headers="$ac_config_headers fficonfig.h"
2572
2573
2574 ac_aux_dir=
2575 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2576   if test -f "$ac_dir/install-sh"; then
2577     ac_aux_dir=$ac_dir
2578     ac_install_sh="$ac_aux_dir/install-sh -c"
2579     break
2580   elif test -f "$ac_dir/install.sh"; then
2581     ac_aux_dir=$ac_dir
2582     ac_install_sh="$ac_aux_dir/install.sh -c"
2583     break
2584   elif test -f "$ac_dir/shtool"; then
2585     ac_aux_dir=$ac_dir
2586     ac_install_sh="$ac_aux_dir/shtool install -c"
2587     break
2588   fi
2589 done
2590 if test -z "$ac_aux_dir"; then
2591   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592 fi
2593
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2599 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2600 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2601
2602
2603 # Make sure we can run config.sub.
2604 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608 $as_echo_n "checking build system type... " >&6; }
2609 if ${ac_cv_build+:} false; then :
2610   $as_echo_n "(cached) " >&6
2611 else
2612   ac_build_alias=$build_alias
2613 test "x$ac_build_alias" = x &&
2614   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615 test "x$ac_build_alias" = x &&
2616   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2617 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622 $as_echo "$ac_cv_build" >&6; }
2623 case $ac_cv_build in
2624 *-*-*) ;;
2625 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2626 esac
2627 build=$ac_cv_build
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_build
2630 shift
2631 build_cpu=$1
2632 build_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 build_os=$*
2637 IFS=$ac_save_IFS
2638 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642 $as_echo_n "checking host system type... " >&6; }
2643 if ${ac_cv_host+:} false; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test "x$host_alias" = x; then
2647   ac_cv_host=$ac_cv_build
2648 else
2649   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2651 fi
2652
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655 $as_echo "$ac_cv_host" >&6; }
2656 case $ac_cv_host in
2657 *-*-*) ;;
2658 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2659 esac
2660 host=$ac_cv_host
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_host
2663 shift
2664 host_cpu=$1
2665 host_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 host_os=$*
2670 IFS=$ac_save_IFS
2671 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675 $as_echo_n "checking target system type... " >&6; }
2676 if ${ac_cv_target+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test "x$target_alias" = x; then
2680   ac_cv_target=$ac_cv_host
2681 else
2682   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2684 fi
2685
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688 $as_echo "$ac_cv_target" >&6; }
2689 case $ac_cv_target in
2690 *-*-*) ;;
2691 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2692 esac
2693 target=$ac_cv_target
2694 ac_save_IFS=$IFS; IFS='-'
2695 set x $ac_cv_target
2696 shift
2697 target_cpu=$1
2698 target_vendor=$2
2699 shift; shift
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2702 target_os=$*
2703 IFS=$ac_save_IFS
2704 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2705
2706
2707 # The aliases save the names the user supplied, while $host etc.
2708 # will get canonicalized.
2709 test -n "$target_alias" &&
2710   test "$program_prefix$program_suffix$program_transform_name" = \
2711     NONENONEs,x,x, &&
2712   program_prefix=${target_alias}-
2713
2714 target_alias=${target_alias-$host_alias}
2715
2716 . ${srcdir}/configure.host
2717
2718
2719    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2720    if test "${ac_configure_args+set}" != "set" ; then
2721       ac_configure_args=
2722       for ac_arg in ${1+"$@"}; do
2723          ac_configure_args="$ac_configure_args '$ac_arg'"
2724       done
2725    fi
2726
2727 # expand $ac_aux_dir to an absolute path
2728 am_aux_dir=`cd $ac_aux_dir && pwd`
2729
2730
2731 ax_enable_builddir="."
2732 # Check whether --enable-builddir was given.
2733 if test "${enable_builddir+set}" = set; then :
2734   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2735 else
2736   ax_enable_builddir="auto"
2737 fi
2738
2739 if test ".$ac_srcdir_defaulted" != ".no" ; then
2740 if test ".$srcdir" = ".." ; then
2741   if test -f config.status ; then
2742     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2743 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2744   else
2745     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2746     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2747     test ".$TARGET" = "." && TARGET="$target"
2748     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2749     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2750       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2751       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2752       cd $ax_enable_builddir
2753       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2754         rm conftest.tmp
2755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2756 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2757       else
2758         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2759       fi
2760       srcdir=`echo "$ax_enable_builddir" |
2761               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2762       # going to restart from subdirectory location
2763       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2764       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2765       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2766       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2768 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2769       case "$0" in # restart
2770        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2771        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2772       esac ; exit $?
2773     fi
2774   fi
2775 fi fi
2776 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2777 # Extract the first word of "gsed sed", so it can be a program name with args.
2778 set dummy gsed sed; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   case $ax_enable_builddir_sed in
2785   [\\/]* | ?:[\\/]*)
2786   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2787   ;;
2788   *)
2789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     for ac_exec_ext in '' $ac_executable_extensions; do
2795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801   done
2802 IFS=$as_save_IFS
2803
2804   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2805   ;;
2806 esac
2807 fi
2808 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2809 if test -n "$ax_enable_builddir_sed"; then
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2811 $as_echo "$ax_enable_builddir_sed" >&6; }
2812 else
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 ax_enable_builddir_auxdir="$am_aux_dir"
2819 ac_config_commands="$ac_config_commands buildir"
2820
2821
2822 am__api_version='1.13'
2823
2824 # Find a good install program.  We prefer a C program (faster),
2825 # so one script is as good as another.  But avoid the broken or
2826 # incompatible versions:
2827 # SysV /etc/install, /usr/sbin/install
2828 # SunOS /usr/etc/install
2829 # IRIX /sbin/install
2830 # AIX /bin/install
2831 # AmigaOS /C/install, which installs bootblocks on floppy discs
2832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2835 # OS/2's system install, which has a completely different semantic
2836 # ./install, which can be erroneously created by make from ./install.sh.
2837 # Reject install programs that cannot install multiple files.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2839 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2840 if test -z "$INSTALL"; then
2841 if ${ac_cv_path_install+:} false; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849     # Account for people who put trailing slashes in PATH elements.
2850 case $as_dir/ in #((
2851   ./ | .// | /[cC]/* | \
2852   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2853   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2854   /usr/ucb/* ) ;;
2855   *)
2856     # OSF1 and SCO ODT 3.0 have their own names for install.
2857     # Don't use installbsd from OSF since it installs stuff as root
2858     # by default.
2859     for ac_prog in ginstall scoinst install; do
2860       for ac_exec_ext in '' $ac_executable_extensions; do
2861         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2862           if test $ac_prog = install &&
2863             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2864             # AIX install.  It has an incompatible calling convention.
2865             :
2866           elif test $ac_prog = install &&
2867             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868             # program-specific install script used by HP pwplus--don't use.
2869             :
2870           else
2871             rm -rf conftest.one conftest.two conftest.dir
2872             echo one > conftest.one
2873             echo two > conftest.two
2874             mkdir conftest.dir
2875             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2876               test -s conftest.one && test -s conftest.two &&
2877               test -s conftest.dir/conftest.one &&
2878               test -s conftest.dir/conftest.two
2879             then
2880               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881               break 3
2882             fi
2883           fi
2884         fi
2885       done
2886     done
2887     ;;
2888 esac
2889
2890   done
2891 IFS=$as_save_IFS
2892
2893 rm -rf conftest.one conftest.two conftest.dir
2894
2895 fi
2896   if test "${ac_cv_path_install+set}" = set; then
2897     INSTALL=$ac_cv_path_install
2898   else
2899     # As a last resort, use the slow shell script.  Don't cache a
2900     # value for INSTALL within a source directory, because that will
2901     # break other packages using the cache if that directory is
2902     # removed, or if the value is a relative name.
2903     INSTALL=$ac_install_sh
2904   fi
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2907 $as_echo "$INSTALL" >&6; }
2908
2909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2910 # It thinks the first close brace ends the variable substitution.
2911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2912
2913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2914
2915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2916
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2918 $as_echo_n "checking whether build environment is sane... " >&6; }
2919 # Reject unsafe characters in $srcdir or the absolute working directory
2920 # name.  Accept space and tab only in the latter.
2921 am_lf='
2922 '
2923 case `pwd` in
2924   *[\\\"\#\$\&\'\`$am_lf]*)
2925     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2926 esac
2927 case $srcdir in
2928   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2929     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2930 esac
2931
2932 # Do 'set' in a subshell so we don't clobber the current shell's
2933 # arguments.  Must try -L first in case configure is actually a
2934 # symlink; some systems play weird games with the mod time of symlinks
2935 # (eg FreeBSD returns the mod time of the symlink's containing
2936 # directory).
2937 if (
2938    am_has_slept=no
2939    for am_try in 1 2; do
2940      echo "timestamp, slept: $am_has_slept" > conftest.file
2941      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2942      if test "$*" = "X"; then
2943         # -L didn't work.
2944         set X `ls -t "$srcdir/configure" conftest.file`
2945      fi
2946      if test "$*" != "X $srcdir/configure conftest.file" \
2947         && test "$*" != "X conftest.file $srcdir/configure"; then
2948
2949         # If neither matched, then we have a broken ls.  This can happen
2950         # if, for instance, CONFIG_SHELL is bash and it inherits a
2951         # broken ls alias from the environment.  This has actually
2952         # happened.  Such a system could not be considered "sane".
2953         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2954   alias in your environment" "$LINENO" 5
2955      fi
2956      if test "$2" = conftest.file || test $am_try -eq 2; then
2957        break
2958      fi
2959      # Just in case.
2960      sleep 1
2961      am_has_slept=yes
2962    done
2963    test "$2" = conftest.file
2964    )
2965 then
2966    # Ok.
2967    :
2968 else
2969    as_fn_error $? "newly created file is older than distributed files!
2970 Check your system clock" "$LINENO" 5
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 # If we didn't sleep, we still need to ensure time stamps of config.status and
2975 # generated files are strictly newer.
2976 am_sleep_pid=
2977 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2978   ( sleep 1 ) &
2979   am_sleep_pid=$!
2980 fi
2981
2982 rm -f conftest.file
2983
2984 test "$program_prefix" != NONE &&
2985   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2986 # Use a double $ so make ignores it.
2987 test "$program_suffix" != NONE &&
2988   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2989 # Double any \ or $.
2990 # By default was `s,x,x', remove it if useless.
2991 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2992 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2993
2994 if test x"${MISSING+set}" != xset; then
2995   case $am_aux_dir in
2996   *\ * | *\     *)
2997     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2998   *)
2999     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3000   esac
3001 fi
3002 # Use eval to expand $SHELL
3003 if eval "$MISSING --is-lightweight"; then
3004   am_missing_run="$MISSING "
3005 else
3006   am_missing_run=
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3008 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3009 fi
3010
3011 if test x"${install_sh}" != xset; then
3012   case $am_aux_dir in
3013   *\ * | *\     *)
3014     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3015   *)
3016     install_sh="\${SHELL} $am_aux_dir/install-sh"
3017   esac
3018 fi
3019
3020 # Installed binaries are usually stripped using 'strip' when the user
3021 # run "make install-strip".  However 'strip' might not be the right
3022 # tool to use in cross-compilation environments, therefore Automake
3023 # will honor the 'STRIP' environment variable to overrule this program.
3024 if test "$cross_compiling" != no; then
3025   if test -n "$ac_tool_prefix"; then
3026   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}strip; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_STRIP+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$STRIP"; then
3034   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 STRIP=$ac_cv_prog_STRIP
3054 if test -n "$STRIP"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3056 $as_echo "$STRIP" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063 fi
3064 if test -z "$ac_cv_prog_STRIP"; then
3065   ac_ct_STRIP=$STRIP
3066   # Extract the first word of "strip", so it can be a program name with args.
3067 set dummy strip; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$ac_ct_STRIP"; then
3074   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_ac_ct_STRIP="strip"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3094 if test -n "$ac_ct_STRIP"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3096 $as_echo "$ac_ct_STRIP" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102   if test "x$ac_ct_STRIP" = x; then
3103     STRIP=":"
3104   else
3105     case $cross_compiling:$ac_tool_warned in
3106 yes:)
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3110 esac
3111     STRIP=$ac_ct_STRIP
3112   fi
3113 else
3114   STRIP="$ac_cv_prog_STRIP"
3115 fi
3116
3117 fi
3118 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3119
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3121 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3122 if test -z "$MKDIR_P"; then
3123   if ${ac_cv_path_mkdir+:} false; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131     for ac_prog in mkdir gmkdir; do
3132          for ac_exec_ext in '' $ac_executable_extensions; do
3133            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3134            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3135              'mkdir (GNU coreutils) '* | \
3136              'mkdir (coreutils) '* | \
3137              'mkdir (fileutils) '4.1*)
3138                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3139                break 3;;
3140            esac
3141          done
3142        done
3143   done
3144 IFS=$as_save_IFS
3145
3146 fi
3147
3148   test -d ./--version && rmdir ./--version
3149   if test "${ac_cv_path_mkdir+set}" = set; then
3150     MKDIR_P="$ac_cv_path_mkdir -p"
3151   else
3152     # As a last resort, use the slow shell script.  Don't cache a
3153     # value for MKDIR_P within a source directory, because that will
3154     # break other packages using the cache if that directory is
3155     # removed, or if the value is a relative name.
3156     MKDIR_P="$ac_install_sh -d"
3157   fi
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3160 $as_echo "$MKDIR_P" >&6; }
3161
3162 for ac_prog in gawk mawk nawk awk
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_AWK+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$AWK"; then
3172   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_AWK="$ac_prog"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 AWK=$ac_cv_prog_AWK
3192 if test -n "$AWK"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3194 $as_echo "$AWK" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201   test -n "$AWK" && break
3202 done
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3206 set x ${MAKE-make}
3207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3208 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   cat >conftest.make <<\_ACEOF
3212 SHELL = /bin/sh
3213 all:
3214         @echo '@@@%%%=$(MAKE)=@@@%%%'
3215 _ACEOF
3216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218   *@@@%%%=?*=@@@%%%*)
3219     eval ac_cv_prog_make_${ac_make}_set=yes;;
3220   *)
3221     eval ac_cv_prog_make_${ac_make}_set=no;;
3222 esac
3223 rm -f conftest.make
3224 fi
3225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228   SET_MAKE=
3229 else
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232   SET_MAKE="MAKE=${MAKE-make}"
3233 fi
3234
3235 rm -rf .tst 2>/dev/null
3236 mkdir .tst 2>/dev/null
3237 if test -d .tst; then
3238   am__leading_dot=.
3239 else
3240   am__leading_dot=_
3241 fi
3242 rmdir .tst 2>/dev/null
3243
3244 # Check whether --enable-silent-rules was given.
3245 if test "${enable_silent_rules+set}" = set; then :
3246   enableval=$enable_silent_rules;
3247 fi
3248
3249 case $enable_silent_rules in # (((
3250   yes) AM_DEFAULT_VERBOSITY=0;;
3251    no) AM_DEFAULT_VERBOSITY=1;;
3252     *) AM_DEFAULT_VERBOSITY=1;;
3253 esac
3254 am_make=${MAKE-make}
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3256 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3257 if ${am_cv_make_support_nested_variables+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if $as_echo 'TRUE=$(BAR$(V))
3261 BAR0=false
3262 BAR1=true
3263 V=1
3264 am__doit:
3265         @$(TRUE)
3266 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3267   am_cv_make_support_nested_variables=yes
3268 else
3269   am_cv_make_support_nested_variables=no
3270 fi
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3273 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3274 if test $am_cv_make_support_nested_variables = yes; then
3275     AM_V='$(V)'
3276   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3277 else
3278   AM_V=$AM_DEFAULT_VERBOSITY
3279   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3280 fi
3281 AM_BACKSLASH='\'
3282
3283 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3284   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3285   # is not polluted with repeated "-I."
3286   am__isrc=' -I$(srcdir)'
3287   # test to see if srcdir already configured
3288   if test -f $srcdir/config.status; then
3289     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3290   fi
3291 fi
3292
3293 # test whether we have cygpath
3294 if test -z "$CYGPATH_W"; then
3295   if (cygpath --version) >/dev/null 2>/dev/null; then
3296     CYGPATH_W='cygpath -w'
3297   else
3298     CYGPATH_W=echo
3299   fi
3300 fi
3301
3302
3303 # Define the identity of the package.
3304  PACKAGE='libffi'
3305  VERSION='3.0.14-rc0'
3306
3307
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE "$PACKAGE"
3310 _ACEOF
3311
3312
3313 cat >>confdefs.h <<_ACEOF
3314 #define VERSION "$VERSION"
3315 _ACEOF
3316
3317 # Some tools Automake needs.
3318
3319 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3320
3321
3322 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3323
3324
3325 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3326
3327
3328 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3329
3330
3331 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3332
3333 # For better backward compatibility.  To be removed once Automake 1.9.x
3334 # dies out for good.  For more background, see:
3335 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3336 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3337 mkdir_p='$(MKDIR_P)'
3338
3339 # We need awk for the "check" target.  The system "awk" is bad on
3340 # some platforms.
3341 # Always define AMTAR for backward compatibility.  Yes, it's still used
3342 # in the wild :-(  We should find a proper way to deprecate it ...
3343 AMTAR='$${TAR-tar}'
3344
3345
3346 # We'll loop over all known methods to create a tar archive until one works.
3347 _am_tools='gnutar  pax cpio none'
3348
3349 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3350
3351
3352
3353
3354
3355
3356
3357 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3358 # We must force CC to /not/ be precious variables; otherwise
3359 # the wrong, non-multilib-adjusted value will be used in multilibs.
3360 # As a side effect, we have to subst CFLAGS ourselves.
3361 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3362 # defaults of its own if none are provided.
3363
3364
3365
3366 save_CFLAGS=$CFLAGS
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 if test -n "$ac_tool_prefix"; then
3373   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3374 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   if test -n "$CC"; then
3381   ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409
3410 fi
3411 if test -z "$ac_cv_prog_CC"; then
3412   ac_ct_CC=$CC
3413   # Extract the first word of "gcc", so it can be a program name with args.
3414 set dummy gcc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$ac_ct_CC"; then
3421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_exec_ext in '' $ac_executable_extensions; do
3429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_ac_ct_CC="gcc"
3431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435   done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3441 if test -n "$ac_ct_CC"; then
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3443 $as_echo "$ac_ct_CC" >&6; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449   if test "x$ac_ct_CC" = x; then
3450     CC=""
3451   else
3452     case $cross_compiling:$ac_tool_warned in
3453 yes:)
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3456 ac_tool_warned=yes ;;
3457 esac
3458     CC=$ac_ct_CC
3459   fi
3460 else
3461   CC="$ac_cv_prog_CC"
3462 fi
3463
3464 if test -z "$CC"; then
3465           if test -n "$ac_tool_prefix"; then
3466     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3467 set dummy ${ac_tool_prefix}cc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   if test -n "$CC"; then
3474   ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481     for ac_exec_ext in '' $ac_executable_extensions; do
3482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_prog_CC="${ac_tool_prefix}cc"
3484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488   done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 $as_echo "$CC" >&6; }
3497 else
3498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502
3503   fi
3504 fi
3505 if test -z "$CC"; then
3506   # Extract the first word of "cc", so it can be a program name with args.
3507 set dummy cc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_CC+:} false; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   if test -n "$CC"; then
3514   ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516   ac_prog_rejected=no
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522     for ac_exec_ext in '' $ac_executable_extensions; do
3523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3525        ac_prog_rejected=yes
3526        continue
3527      fi
3528     ac_cv_prog_CC="cc"
3529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533   done
3534 IFS=$as_save_IFS
3535
3536 if test $ac_prog_rejected = yes; then
3537   # We found a bogon in the path, so make sure we never use it.
3538   set dummy $ac_cv_prog_CC
3539   shift
3540   if test $# != 0; then
3541     # We chose a different compiler from the bogus one.
3542     # However, it has the same basename, so the bogon will be chosen
3543     # first if we set CC to just the basename; use the full file name.
3544     shift
3545     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3546   fi
3547 fi
3548 fi
3549 fi
3550 CC=$ac_cv_prog_CC
3551 if test -n "$CC"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553 $as_echo "$CC" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559
3560 fi
3561 if test -z "$CC"; then
3562   if test -n "$ac_tool_prefix"; then
3563   for ac_prog in cl.exe
3564   do
3565     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_CC+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   if test -n "$CC"; then
3573   ac_cv_prog_CC="$CC" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580     for ac_exec_ext in '' $ac_executable_extensions; do
3581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587   done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 CC=$ac_cv_prog_CC
3593 if test -n "$CC"; then
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3596 else
3597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601
3602     test -n "$CC" && break
3603   done
3604 fi
3605 if test -z "$CC"; then
3606   ac_ct_CC=$CC
3607   for ac_prog in cl.exe
3608 do
3609   # Extract the first word of "$ac_prog", so it can be a program name with args.
3610 set dummy $ac_prog; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   if test -n "$ac_ct_CC"; then
3617   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622   IFS=$as_save_IFS
3623   test -z "$as_dir" && as_dir=.
3624     for ac_exec_ext in '' $ac_executable_extensions; do
3625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626     ac_cv_prog_ac_ct_CC="$ac_prog"
3627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628     break 2
3629   fi
3630 done
3631   done
3632 IFS=$as_save_IFS
3633
3634 fi
3635 fi
3636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3637 if test -n "$ac_ct_CC"; then
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3639 $as_echo "$ac_ct_CC" >&6; }
3640 else
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 fi
3644
3645
3646   test -n "$ac_ct_CC" && break
3647 done
3648
3649   if test "x$ac_ct_CC" = x; then
3650     CC=""
3651   else
3652     case $cross_compiling:$ac_tool_warned in
3653 yes:)
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3656 ac_tool_warned=yes ;;
3657 esac
3658     CC=$ac_ct_CC
3659   fi
3660 fi
3661
3662 fi
3663
3664
3665 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error $? "no acceptable C compiler found in \$PATH
3668 See \`config.log' for more details" "$LINENO" 5; }
3669
3670 # Provide some information about the compiler.
3671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3672 set X $ac_compile
3673 ac_compiler=$2
3674 for ac_option in --version -v -V -qversion; do
3675   { { ac_try="$ac_compiler $ac_option >&5"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3683   ac_status=$?
3684   if test -s conftest.err; then
3685     sed '10a\
3686 ... rest of stderr output deleted ...
3687          10q' conftest.err >conftest.er1
3688     cat conftest.er1 >&5
3689   fi
3690   rm -f conftest.er1 conftest.err
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }
3693 done
3694
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h.  */
3697
3698 int
3699 main ()
3700 {
3701
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 ac_clean_files_save=$ac_clean_files
3707 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3708 # Try to create an executable without -o first, disregard a.out.
3709 # It will help us diagnose broken compilers, and finding out an intuition
3710 # of exeext.
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3712 $as_echo_n "checking whether the C compiler works... " >&6; }
3713 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3714
3715 # The possible output files:
3716 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3717
3718 ac_rmfiles=
3719 for ac_file in $ac_files
3720 do
3721   case $ac_file in
3722     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3723     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3724   esac
3725 done
3726 rm -f $ac_rmfiles
3727
3728 if { { ac_try="$ac_link_default"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735   (eval "$ac_link_default") 2>&5
3736   ac_status=$?
3737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738   test $ac_status = 0; }; then :
3739   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3741 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3742 # so that the user can short-circuit this test for compilers unknown to
3743 # Autoconf.
3744 for ac_file in $ac_files ''
3745 do
3746   test -f "$ac_file" || continue
3747   case $ac_file in
3748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3749         ;;
3750     [ab].out )
3751         # We found the default executable, but exeext='' is most
3752         # certainly right.
3753         break;;
3754     *.* )
3755         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3756         then :; else
3757            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3758         fi
3759         # We set ac_cv_exeext here because the later test for it is not
3760         # safe: cross compilers may not add the suffix if given an `-o'
3761         # argument, so we may need to know it at that point already.
3762         # Even if this section looks crufty: it has the advantage of
3763         # actually working.
3764         break;;
3765     * )
3766         break;;
3767   esac
3768 done
3769 test "$ac_cv_exeext" = no && ac_cv_exeext=
3770
3771 else
3772   ac_file=''
3773 fi
3774 if test -z "$ac_file"; then :
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error 77 "C compiler cannot create executables
3783 See \`config.log' for more details" "$LINENO" 5; }
3784 else
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3786 $as_echo "yes" >&6; }
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3789 $as_echo_n "checking for C compiler default output file name... " >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3791 $as_echo "$ac_file" >&6; }
3792 ac_exeext=$ac_cv_exeext
3793
3794 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3795 ac_clean_files=$ac_clean_files_save
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3797 $as_echo_n "checking for suffix of executables... " >&6; }
3798 if { { ac_try="$ac_link"
3799 case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805   (eval "$ac_link") 2>&5
3806   ac_status=$?
3807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808   test $ac_status = 0; }; then :
3809   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3810 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3811 # work properly (i.e., refer to `conftest.exe'), while it won't with
3812 # `rm'.
3813 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3817     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818           break;;
3819     * ) break;;
3820   esac
3821 done
3822 else
3823   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3826 See \`config.log' for more details" "$LINENO" 5; }
3827 fi
3828 rm -f conftest conftest$ac_cv_exeext
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3830 $as_echo "$ac_cv_exeext" >&6; }
3831
3832 rm -f conftest.$ac_ext
3833 EXEEXT=$ac_cv_exeext
3834 ac_exeext=$EXEEXT
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837 #include <stdio.h>
3838 int
3839 main ()
3840 {
3841 FILE *f = fopen ("conftest.out", "w");
3842  return ferror (f) || fclose (f) != 0;
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 ac_clean_files="$ac_clean_files conftest.out"
3849 # Check that the compiler produces executables we can run.  If not, either
3850 # the compiler is broken, or we cross compile.
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3852 $as_echo_n "checking whether we are cross compiling... " >&6; }
3853 if test "$cross_compiling" != yes; then
3854   { { ac_try="$ac_link"
3855 case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861   (eval "$ac_link") 2>&5
3862   ac_status=$?
3863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864   test $ac_status = 0; }
3865   if { ac_try='./conftest$ac_cv_exeext'
3866   { { case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872   (eval "$ac_try") 2>&5
3873   ac_status=$?
3874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875   test $ac_status = 0; }; }; then
3876     cross_compiling=no
3877   else
3878     if test "$cross_compiling" = maybe; then
3879         cross_compiling=yes
3880     else
3881         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot run C compiled programs.
3884 If you meant to cross compile, use \`--host'.
3885 See \`config.log' for more details" "$LINENO" 5; }
3886     fi
3887   fi
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3890 $as_echo "$cross_compiling" >&6; }
3891
3892 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3893 ac_clean_files=$ac_clean_files_save
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3895 $as_echo_n "checking for suffix of object files... " >&6; }
3896 if ${ac_cv_objext+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h.  */
3901
3902 int
3903 main ()
3904 {
3905
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest.o conftest.obj
3911 if { { ac_try="$ac_compile"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918   (eval "$ac_compile") 2>&5
3919   ac_status=$?
3920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921   test $ac_status = 0; }; then :
3922   for ac_file in conftest.o conftest.obj conftest.*; do
3923   test -f "$ac_file" || continue;
3924   case $ac_file in
3925     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3926     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3927        break;;
3928   esac
3929 done
3930 else
3931   $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error $? "cannot compute suffix of object files: cannot compile
3937 See \`config.log' for more details" "$LINENO" 5; }
3938 fi
3939 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3942 $as_echo "$ac_cv_objext" >&6; }
3943 OBJEXT=$ac_cv_objext
3944 ac_objext=$OBJEXT
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3946 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3947 if ${ac_cv_c_compiler_gnu+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952
3953 int
3954 main ()
3955 {
3956 #ifndef __GNUC__
3957        choke me
3958 #endif
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965   ac_compiler_gnu=yes
3966 else
3967   ac_compiler_gnu=no
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3971
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3974 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3975 if test $ac_compiler_gnu = yes; then
3976   GCC=yes
3977 else
3978   GCC=
3979 fi
3980 ac_test_CFLAGS=${CFLAGS+set}
3981 ac_save_CFLAGS=$CFLAGS
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3983 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3984 if ${ac_cv_prog_cc_g+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   ac_save_c_werror_flag=$ac_c_werror_flag
3988    ac_c_werror_flag=yes
3989    ac_cv_prog_cc_g=no
3990    CFLAGS="-g"
3991    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h.  */
3993
3994 int
3995 main ()
3996 {
3997
3998   ;
3999   return 0;
4000 }
4001 _ACEOF
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003   ac_cv_prog_cc_g=yes
4004 else
4005   CFLAGS=""
4006       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018
4019 else
4020   ac_c_werror_flag=$ac_save_c_werror_flag
4021          CFLAGS="-g"
4022          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024
4025 int
4026 main ()
4027 {
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034   ac_cv_prog_cc_g=yes
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 fi
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041    ac_c_werror_flag=$ac_save_c_werror_flag
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4044 $as_echo "$ac_cv_prog_cc_g" >&6; }
4045 if test "$ac_test_CFLAGS" = set; then
4046   CFLAGS=$ac_save_CFLAGS
4047 elif test $ac_cv_prog_cc_g = yes; then
4048   if test "$GCC" = yes; then
4049     CFLAGS="-g -O2"
4050   else
4051     CFLAGS="-g"
4052   fi
4053 else
4054   if test "$GCC" = yes; then
4055     CFLAGS="-O2"
4056   else
4057     CFLAGS=
4058   fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4061 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4062 if ${ac_cv_prog_cc_c89+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   ac_cv_prog_cc_c89=no
4066 ac_save_CC=$CC
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069 #include <stdarg.h>
4070 #include <stdio.h>
4071 struct stat;
4072 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4073 struct buf { int x; };
4074 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4075 static char *e (p, i)
4076      char **p;
4077      int i;
4078 {
4079   return p[i];
4080 }
4081 static char *f (char * (*g) (char **, int), char **p, ...)
4082 {
4083   char *s;
4084   va_list v;
4085   va_start (v,p);
4086   s = g (p, va_arg (v,int));
4087   va_end (v);
4088   return s;
4089 }
4090
4091 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4092    function prototypes and stuff, but not '\xHH' hex character constants.
4093    These don't provoke an error unfortunately, instead are silently treated
4094    as 'x'.  The following induces an error, until -std is added to get
4095    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4096    array size at least.  It's necessary to write '\x00'==0 to get something
4097    that's true only with -std.  */
4098 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4099
4100 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4101    inside strings and character constants.  */
4102 #define FOO(x) 'x'
4103 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4104
4105 int test (int i, double x);
4106 struct s1 {int (*f) (int a);};
4107 struct s2 {int (*f) (double a);};
4108 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4109 int argc;
4110 char **argv;
4111 int
4112 main ()
4113 {
4114 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4120         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4121 do
4122   CC="$ac_save_CC $ac_arg"
4123   if ac_fn_c_try_compile "$LINENO"; then :
4124   ac_cv_prog_cc_c89=$ac_arg
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext
4127   test "x$ac_cv_prog_cc_c89" != "xno" && break
4128 done
4129 rm -f conftest.$ac_ext
4130 CC=$ac_save_CC
4131
4132 fi
4133 # AC_CACHE_VAL
4134 case "x$ac_cv_prog_cc_c89" in
4135   x)
4136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137 $as_echo "none needed" >&6; } ;;
4138   xno)
4139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4140 $as_echo "unsupported" >&6; } ;;
4141   *)
4142     CC="$CC $ac_cv_prog_cc_c89"
4143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4144 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4145 esac
4146 if test "x$ac_cv_prog_cc_c89" != xno; then :
4147
4148 fi
4149
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 DEPDIR="${am__leading_dot}deps"
4156
4157 ac_config_commands="$ac_config_commands depfiles"
4158
4159
4160 am_make=${MAKE-make}
4161 cat > confinc << 'END'
4162 am__doit:
4163         @echo this is the am__doit target
4164 .PHONY: am__doit
4165 END
4166 # If we don't find an include directive, just comment out the code.
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4168 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4169 am__include="#"
4170 am__quote=
4171 _am_result=none
4172 # First try GNU make style include.
4173 echo "include confinc" > confmf
4174 # Ignore all kinds of additional output from 'make'.
4175 case `$am_make -s -f confmf 2> /dev/null` in #(
4176 *the\ am__doit\ target*)
4177   am__include=include
4178   am__quote=
4179   _am_result=GNU
4180   ;;
4181 esac
4182 # Now try BSD make style include.
4183 if test "$am__include" = "#"; then
4184    echo '.include "confinc"' > confmf
4185    case `$am_make -s -f confmf 2> /dev/null` in #(
4186    *the\ am__doit\ target*)
4187      am__include=.include
4188      am__quote="\""
4189      _am_result=BSD
4190      ;;
4191    esac
4192 fi
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4196 $as_echo "$_am_result" >&6; }
4197 rm -f confinc confmf
4198
4199 # Check whether --enable-dependency-tracking was given.
4200 if test "${enable_dependency_tracking+set}" = set; then :
4201   enableval=$enable_dependency_tracking;
4202 fi
4203
4204 if test "x$enable_dependency_tracking" != xno; then
4205   am_depcomp="$ac_aux_dir/depcomp"
4206   AMDEPBACKSLASH='\'
4207   am__nodep='_no'
4208 fi
4209  if test "x$enable_dependency_tracking" != xno; then
4210   AMDEP_TRUE=
4211   AMDEP_FALSE='#'
4212 else
4213   AMDEP_TRUE='#'
4214   AMDEP_FALSE=
4215 fi
4216
4217
4218
4219 depcc="$CC"   am_compiler_list=
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4222 $as_echo_n "checking dependency style of $depcc... " >&6; }
4223 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4227   # We make a subdir and do the tests there.  Otherwise we can end up
4228   # making bogus files that we don't know about and never remove.  For
4229   # instance it was reported that on HP-UX the gcc test will end up
4230   # making a dummy file named 'D' -- because '-MD' means "put the output
4231   # in D".
4232   rm -rf conftest.dir
4233   mkdir conftest.dir
4234   # Copy depcomp to subdir because otherwise we won't find it if we're
4235   # using a relative directory.
4236   cp "$am_depcomp" conftest.dir
4237   cd conftest.dir
4238   # We will build objects and dependencies in a subdirectory because
4239   # it helps to detect inapplicable dependency modes.  For instance
4240   # both Tru64's cc and ICC support -MD to output dependencies as a
4241   # side effect of compilation, but ICC will put the dependencies in
4242   # the current directory while Tru64 will put them in the object
4243   # directory.
4244   mkdir sub
4245
4246   am_cv_CC_dependencies_compiler_type=none
4247   if test "$am_compiler_list" = ""; then
4248      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4249   fi
4250   am__universal=false
4251   case " $depcc " in #(
4252      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4253      esac
4254
4255   for depmode in $am_compiler_list; do
4256     # Setup a source with many dependencies, because some compilers
4257     # like to wrap large dependency lists on column 80 (with \), and
4258     # we should not choose a depcomp mode which is confused by this.
4259     #
4260     # We need to recreate these files for each test, as the compiler may
4261     # overwrite some of them when testing with obscure command lines.
4262     # This happens at least with the AIX C compiler.
4263     : > sub/conftest.c
4264     for i in 1 2 3 4 5 6; do
4265       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4266       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4267       # Solaris 10 /bin/sh.
4268       echo '/* dummy */' > sub/conftst$i.h
4269     done
4270     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4271
4272     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4273     # mode.  It turns out that the SunPro C++ compiler does not properly
4274     # handle '-M -o', and we need to detect this.  Also, some Intel
4275     # versions had trouble with output in subdirs.
4276     am__obj=sub/conftest.${OBJEXT-o}
4277     am__minus_obj="-o $am__obj"
4278     case $depmode in
4279     gcc)
4280       # This depmode causes a compiler race in universal mode.
4281       test "$am__universal" = false || continue
4282       ;;
4283     nosideeffect)
4284       # After this tag, mechanisms are not by side-effect, so they'll
4285       # only be used when explicitly requested.
4286       if test "x$enable_dependency_tracking" = xyes; then
4287         continue
4288       else
4289         break
4290       fi
4291       ;;
4292     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4293       # This compiler won't grok '-c -o', but also, the minuso test has
4294       # not run yet.  These depmodes are late enough in the game, and
4295       # so weak that their functioning should not be impacted.
4296       am__obj=conftest.${OBJEXT-o}
4297       am__minus_obj=
4298       ;;
4299     none) break ;;
4300     esac
4301     if depmode=$depmode \
4302        source=sub/conftest.c object=$am__obj \
4303        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4304        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4305          >/dev/null 2>conftest.err &&
4306        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4307        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4308        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4309        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4310       # icc doesn't choke on unknown options, it will just issue warnings
4311       # or remarks (even with -Werror).  So we grep stderr for any message
4312       # that says an option was ignored or not supported.
4313       # When given -MP, icc 7.0 and 7.1 complain thusly:
4314       #   icc: Command line warning: ignoring option '-M'; no argument required
4315       # The diagnosis changed in icc 8.0:
4316       #   icc: Command line remark: option '-MP' not supported
4317       if (grep 'ignoring option' conftest.err ||
4318           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4319         am_cv_CC_dependencies_compiler_type=$depmode
4320         break
4321       fi
4322     fi
4323   done
4324
4325   cd ..
4326   rm -rf conftest.dir
4327 else
4328   am_cv_CC_dependencies_compiler_type=none
4329 fi
4330
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4333 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4334 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4335
4336  if
4337   test "x$enable_dependency_tracking" != xno \
4338   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4339   am__fastdepCC_TRUE=
4340   am__fastdepCC_FALSE='#'
4341 else
4342   am__fastdepCC_TRUE='#'
4343   am__fastdepCC_FALSE=
4344 fi
4345
4346
4347 CFLAGS=$save_CFLAGS
4348
4349
4350
4351
4352
4353 # By default we simply use the C compiler to build assembly code.
4354
4355 test "${CCAS+set}" = set || CCAS=$CC
4356 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4357
4358
4359
4360 depcc="$CCAS"   am_compiler_list=
4361
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4363 $as_echo_n "checking dependency style of $depcc... " >&6; }
4364 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4368   # We make a subdir and do the tests there.  Otherwise we can end up
4369   # making bogus files that we don't know about and never remove.  For
4370   # instance it was reported that on HP-UX the gcc test will end up
4371   # making a dummy file named 'D' -- because '-MD' means "put the output
4372   # in D".
4373   rm -rf conftest.dir
4374   mkdir conftest.dir
4375   # Copy depcomp to subdir because otherwise we won't find it if we're
4376   # using a relative directory.
4377   cp "$am_depcomp" conftest.dir
4378   cd conftest.dir
4379   # We will build objects and dependencies in a subdirectory because
4380   # it helps to detect inapplicable dependency modes.  For instance
4381   # both Tru64's cc and ICC support -MD to output dependencies as a
4382   # side effect of compilation, but ICC will put the dependencies in
4383   # the current directory while Tru64 will put them in the object
4384   # directory.
4385   mkdir sub
4386
4387   am_cv_CCAS_dependencies_compiler_type=none
4388   if test "$am_compiler_list" = ""; then
4389      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4390   fi
4391   am__universal=false
4392
4393
4394   for depmode in $am_compiler_list; do
4395     # Setup a source with many dependencies, because some compilers
4396     # like to wrap large dependency lists on column 80 (with \), and
4397     # we should not choose a depcomp mode which is confused by this.
4398     #
4399     # We need to recreate these files for each test, as the compiler may
4400     # overwrite some of them when testing with obscure command lines.
4401     # This happens at least with the AIX C compiler.
4402     : > sub/conftest.c
4403     for i in 1 2 3 4 5 6; do
4404       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4405       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4406       # Solaris 10 /bin/sh.
4407       echo '/* dummy */' > sub/conftst$i.h
4408     done
4409     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4410
4411     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4412     # mode.  It turns out that the SunPro C++ compiler does not properly
4413     # handle '-M -o', and we need to detect this.  Also, some Intel
4414     # versions had trouble with output in subdirs.
4415     am__obj=sub/conftest.${OBJEXT-o}
4416     am__minus_obj="-o $am__obj"
4417     case $depmode in
4418     gcc)
4419       # This depmode causes a compiler race in universal mode.
4420       test "$am__universal" = false || continue
4421       ;;
4422     nosideeffect)
4423       # After this tag, mechanisms are not by side-effect, so they'll
4424       # only be used when explicitly requested.
4425       if test "x$enable_dependency_tracking" = xyes; then
4426         continue
4427       else
4428         break
4429       fi
4430       ;;
4431     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4432       # This compiler won't grok '-c -o', but also, the minuso test has
4433       # not run yet.  These depmodes are late enough in the game, and
4434       # so weak that their functioning should not be impacted.
4435       am__obj=conftest.${OBJEXT-o}
4436       am__minus_obj=
4437       ;;
4438     none) break ;;
4439     esac
4440     if depmode=$depmode \
4441        source=sub/conftest.c object=$am__obj \
4442        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4443        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4444          >/dev/null 2>conftest.err &&
4445        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4446        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4447        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4448        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4449       # icc doesn't choke on unknown options, it will just issue warnings
4450       # or remarks (even with -Werror).  So we grep stderr for any message
4451       # that says an option was ignored or not supported.
4452       # When given -MP, icc 7.0 and 7.1 complain thusly:
4453       #   icc: Command line warning: ignoring option '-M'; no argument required
4454       # The diagnosis changed in icc 8.0:
4455       #   icc: Command line remark: option '-MP' not supported
4456       if (grep 'ignoring option' conftest.err ||
4457           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4458         am_cv_CCAS_dependencies_compiler_type=$depmode
4459         break
4460       fi
4461     fi
4462   done
4463
4464   cd ..
4465   rm -rf conftest.dir
4466 else
4467   am_cv_CCAS_dependencies_compiler_type=none
4468 fi
4469
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4472 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4473 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4474
4475  if
4476   test "x$enable_dependency_tracking" != xno \
4477   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4478   am__fastdepCCAS_TRUE=
4479   am__fastdepCCAS_FALSE='#'
4480 else
4481   am__fastdepCCAS_TRUE='#'
4482   am__fastdepCCAS_FALSE=
4483 fi
4484
4485
4486 if test "x$CC" != xcc; then
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4488 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4489 else
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4491 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4492 fi
4493 set dummy $CC; ac_cc=`$as_echo "$2" |
4494                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4495 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500
4501 int
4502 main ()
4503 {
4504
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 # Make sure it works both with $CC and with simple cc.
4510 # We do the test twice because some compilers refuse to overwrite an
4511 # existing .o file with -o, though they will create one.
4512 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4513 rm -f conftest2.*
4514 if { { case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 $as_echo "$ac_try_echo"; } >&5
4520   (eval "$ac_try") 2>&5
4521   ac_status=$?
4522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523   test $ac_status = 0; } &&
4524    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529 $as_echo "$ac_try_echo"; } >&5
4530   (eval "$ac_try") 2>&5
4531   ac_status=$?
4532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4533   test $ac_status = 0; };
4534 then
4535   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4536   if test "x$CC" != xcc; then
4537     # Test first that cc exists at all.
4538     if { ac_try='cc -c conftest.$ac_ext >&5'
4539   { { case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545   (eval "$ac_try") 2>&5
4546   ac_status=$?
4547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548   test $ac_status = 0; }; }; then
4549       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4550       rm -f conftest2.*
4551       if { { case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557   (eval "$ac_try") 2>&5
4558   ac_status=$?
4559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560   test $ac_status = 0; } &&
4561          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 $as_echo "$ac_try_echo"; } >&5
4567   (eval "$ac_try") 2>&5
4568   ac_status=$?
4569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570   test $ac_status = 0; };
4571       then
4572         # cc works too.
4573         :
4574       else
4575         # cc exists but doesn't like -o.
4576         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4577       fi
4578     fi
4579   fi
4580 else
4581   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4582 fi
4583 rm -f core conftest*
4584
4585 fi
4586 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4588 $as_echo "yes" >&6; }
4589 else
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592
4593 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4594
4595 fi
4596
4597 # FIXME: we rely on the cache variable name because
4598 # there is no other way.
4599 set dummy $CC
4600 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4601 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4602 if test "$am_t" != yes; then
4603    # Losing compiler, so override with the script.
4604    # FIXME: It is wrong to rewrite CC.
4605    # But if we don't then we get into trouble of one sort or another.
4606    # A longer-term fix would be to have automake use am__CC in this case,
4607    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4608    CC="$am_aux_dir/compile $CC"
4609 fi
4610
4611
4612 case `pwd` in
4613   *\ * | *\     *)
4614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4615 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4616 esac
4617
4618
4619
4620 macro_version='2.4.2.418'
4621 macro_revision='2.4.2.418'
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 ltmain=$ac_aux_dir/ltmain.sh
4636
4637 # Backslashify metacharacters that are still active within
4638 # double-quoted strings.
4639 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4640
4641 # Same as above, but do not quote variable references.
4642 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4643
4644 # Sed substitution to delay expansion of an escaped shell variable in a
4645 # double_quote_subst'ed string.
4646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4647
4648 # Sed substitution to delay expansion of an escaped single quote.
4649 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4650
4651 # Sed substitution to avoid accidental globbing in evaled expressions
4652 no_glob_subst='s/\*/\\\*/g'
4653
4654 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4656 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4659 $as_echo_n "checking how to print strings... " >&6; }
4660 # Test print first, because it will be a builtin if present.
4661 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4662    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4663   ECHO='print -r --'
4664 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4665   ECHO='printf %s\n'
4666 else
4667   # Use this function as a fallback that always works.
4668   func_fallback_echo ()
4669   {
4670     eval 'cat <<_LTECHO_EOF
4671 $1
4672 _LTECHO_EOF'
4673   }
4674   ECHO='func_fallback_echo'
4675 fi
4676
4677 # func_echo_all arg...
4678 # Invoke $ECHO with all args, space-separated.
4679 func_echo_all ()
4680 {
4681     $ECHO ""
4682 }
4683
4684 case $ECHO in
4685   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4686 $as_echo "printf" >&6; } ;;
4687   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4688 $as_echo "print -r" >&6; } ;;
4689   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4690 $as_echo "cat" >&6; } ;;
4691 esac
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4707 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4708 if ${ac_cv_path_SED+:} false; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4712      for ac_i in 1 2 3 4 5 6 7; do
4713        ac_script="$ac_script$as_nl$ac_script"
4714      done
4715      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4716      { ac_script=; unset ac_script;}
4717      if test -z "$SED"; then
4718   ac_path_SED_found=false
4719   # Loop through the user's path and test for each of PROGNAME-LIST
4720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725     for ac_prog in sed gsed; do
4726     for ac_exec_ext in '' $ac_executable_extensions; do
4727       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4728       as_fn_executable_p "$ac_path_SED" || continue
4729 # Check for GNU ac_path_SED and select it if it is found.
4730   # Check for GNU $ac_path_SED
4731 case `"$ac_path_SED" --version 2>&1` in
4732 *GNU*)
4733   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4734 *)
4735   ac_count=0
4736   $as_echo_n 0123456789 >"conftest.in"
4737   while :
4738   do
4739     cat "conftest.in" "conftest.in" >"conftest.tmp"
4740     mv "conftest.tmp" "conftest.in"
4741     cp "conftest.in" "conftest.nl"
4742     $as_echo '' >> "conftest.nl"
4743     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4744     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4745     as_fn_arith $ac_count + 1 && ac_count=$as_val
4746     if test $ac_count -gt ${ac_path_SED_max-0}; then
4747       # Best one so far, save it but keep looking for a better one
4748       ac_cv_path_SED="$ac_path_SED"
4749       ac_path_SED_max=$ac_count
4750     fi
4751     # 10*(2^10) chars as input seems more than enough
4752     test $ac_count -gt 10 && break
4753   done
4754   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755 esac
4756
4757       $ac_path_SED_found && break 3
4758     done
4759   done
4760   done
4761 IFS=$as_save_IFS
4762   if test -z "$ac_cv_path_SED"; then
4763     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4764   fi
4765 else
4766   ac_cv_path_SED=$SED
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4771 $as_echo "$ac_cv_path_SED" >&6; }
4772  SED="$ac_cv_path_SED"
4773   rm -f conftest.sed
4774
4775 test -z "$SED" && SED=sed
4776 Xsed="$SED -e 1s/^X//"
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4789 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4790 if ${ac_cv_path_GREP+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   if test -z "$GREP"; then
4794   ac_path_GREP_found=false
4795   # Loop through the user's path and test for each of PROGNAME-LIST
4796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801     for ac_prog in grep ggrep; do
4802     for ac_exec_ext in '' $ac_executable_extensions; do
4803       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4804       as_fn_executable_p "$ac_path_GREP" || continue
4805 # Check for GNU ac_path_GREP and select it if it is found.
4806   # Check for GNU $ac_path_GREP
4807 case `"$ac_path_GREP" --version 2>&1` in
4808 *GNU*)
4809   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4810 *)
4811   ac_count=0
4812   $as_echo_n 0123456789 >"conftest.in"
4813   while :
4814   do
4815     cat "conftest.in" "conftest.in" >"conftest.tmp"
4816     mv "conftest.tmp" "conftest.in"
4817     cp "conftest.in" "conftest.nl"
4818     $as_echo 'GREP' >> "conftest.nl"
4819     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821     as_fn_arith $ac_count + 1 && ac_count=$as_val
4822     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4823       # Best one so far, save it but keep looking for a better one
4824       ac_cv_path_GREP="$ac_path_GREP"
4825       ac_path_GREP_max=$ac_count
4826     fi
4827     # 10*(2^10) chars as input seems more than enough
4828     test $ac_count -gt 10 && break
4829   done
4830   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4832
4833       $ac_path_GREP_found && break 3
4834     done
4835   done
4836   done
4837 IFS=$as_save_IFS
4838   if test -z "$ac_cv_path_GREP"; then
4839     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840   fi
4841 else
4842   ac_cv_path_GREP=$GREP
4843 fi
4844
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4847 $as_echo "$ac_cv_path_GREP" >&6; }
4848  GREP="$ac_cv_path_GREP"
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4852 $as_echo_n "checking for egrep... " >&6; }
4853 if ${ac_cv_path_EGREP+:} false; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4857    then ac_cv_path_EGREP="$GREP -E"
4858    else
4859      if test -z "$EGREP"; then
4860   ac_path_EGREP_found=false
4861   # Loop through the user's path and test for each of PROGNAME-LIST
4862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_prog in egrep; do
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4870       as_fn_executable_p "$ac_path_EGREP" || continue
4871 # Check for GNU ac_path_EGREP and select it if it is found.
4872   # Check for GNU $ac_path_EGREP
4873 case `"$ac_path_EGREP" --version 2>&1` in
4874 *GNU*)
4875   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4876 *)
4877   ac_count=0
4878   $as_echo_n 0123456789 >"conftest.in"
4879   while :
4880   do
4881     cat "conftest.in" "conftest.in" >"conftest.tmp"
4882     mv "conftest.tmp" "conftest.in"
4883     cp "conftest.in" "conftest.nl"
4884     $as_echo 'EGREP' >> "conftest.nl"
4885     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887     as_fn_arith $ac_count + 1 && ac_count=$as_val
4888     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4889       # Best one so far, save it but keep looking for a better one
4890       ac_cv_path_EGREP="$ac_path_EGREP"
4891       ac_path_EGREP_max=$ac_count
4892     fi
4893     # 10*(2^10) chars as input seems more than enough
4894     test $ac_count -gt 10 && break
4895   done
4896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 esac
4898
4899       $ac_path_EGREP_found && break 3
4900     done
4901   done
4902   done
4903 IFS=$as_save_IFS
4904   if test -z "$ac_cv_path_EGREP"; then
4905     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906   fi
4907 else
4908   ac_cv_path_EGREP=$EGREP
4909 fi
4910
4911    fi
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4914 $as_echo "$ac_cv_path_EGREP" >&6; }
4915  EGREP="$ac_cv_path_EGREP"
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4919 $as_echo_n "checking for fgrep... " >&6; }
4920 if ${ac_cv_path_FGREP+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4924    then ac_cv_path_FGREP="$GREP -F"
4925    else
4926      if test -z "$FGREP"; then
4927   ac_path_FGREP_found=false
4928   # Loop through the user's path and test for each of PROGNAME-LIST
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_prog in fgrep; do
4935     for ac_exec_ext in '' $ac_executable_extensions; do
4936       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4937       as_fn_executable_p "$ac_path_FGREP" || continue
4938 # Check for GNU ac_path_FGREP and select it if it is found.
4939   # Check for GNU $ac_path_FGREP
4940 case `"$ac_path_FGREP" --version 2>&1` in
4941 *GNU*)
4942   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4943 *)
4944   ac_count=0
4945   $as_echo_n 0123456789 >"conftest.in"
4946   while :
4947   do
4948     cat "conftest.in" "conftest.in" >"conftest.tmp"
4949     mv "conftest.tmp" "conftest.in"
4950     cp "conftest.in" "conftest.nl"
4951     $as_echo 'FGREP' >> "conftest.nl"
4952     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4953     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4954     as_fn_arith $ac_count + 1 && ac_count=$as_val
4955     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4956       # Best one so far, save it but keep looking for a better one
4957       ac_cv_path_FGREP="$ac_path_FGREP"
4958       ac_path_FGREP_max=$ac_count
4959     fi
4960     # 10*(2^10) chars as input seems more than enough
4961     test $ac_count -gt 10 && break
4962   done
4963   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4964 esac
4965
4966       $ac_path_FGREP_found && break 3
4967     done
4968   done
4969   done
4970 IFS=$as_save_IFS
4971   if test -z "$ac_cv_path_FGREP"; then
4972     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4973   fi
4974 else
4975   ac_cv_path_FGREP=$FGREP
4976 fi
4977
4978    fi
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4981 $as_echo "$ac_cv_path_FGREP" >&6; }
4982  FGREP="$ac_cv_path_FGREP"
4983
4984
4985 test -z "$GREP" && GREP=grep
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 # Check whether --with-gnu-ld was given.
5006 if test "${with_gnu_ld+set}" = set; then :
5007   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5008 else
5009   with_gnu_ld=no
5010 fi
5011
5012 ac_prog=ld
5013 if test yes = "$GCC"; then
5014   # Check if gcc -print-prog-name=ld gives a path.
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5016 $as_echo_n "checking for ld used by $CC... " >&6; }
5017   case $host in
5018   *-*-mingw*)
5019     # gcc leaves a trailing carriage return, which upsets mingw
5020     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5021   *)
5022     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5023   esac
5024   case $ac_prog in
5025     # Accept absolute paths.
5026     [\\/]* | ?:[\\/]*)
5027       re_direlt='/[^/][^/]*/\.\./'
5028       # Canonicalize the pathname of ld
5029       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5030       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5031         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5032       done
5033       test -z "$LD" && LD=$ac_prog
5034       ;;
5035   "")
5036     # If it fails, then pretend we aren't using GCC.
5037     ac_prog=ld
5038     ;;
5039   *)
5040     # If it is relative, then search for the first ld in PATH.
5041     with_gnu_ld=unknown
5042     ;;
5043   esac
5044 elif test yes = "$with_gnu_ld"; then
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5046 $as_echo_n "checking for GNU ld... " >&6; }
5047 else
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5049 $as_echo_n "checking for non-GNU ld... " >&6; }
5050 fi
5051 if ${lt_cv_path_LD+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   if test -z "$LD"; then
5055   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5056   for ac_dir in $PATH; do
5057     IFS=$lt_save_ifs
5058     test -z "$ac_dir" && ac_dir=.
5059     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5060       lt_cv_path_LD=$ac_dir/$ac_prog
5061       # Check to see if the program is GNU ld.  I'd rather use --version,
5062       # but apparently some variants of GNU ld only accept -v.
5063       # Break only if it was the GNU/non-GNU ld that we prefer.
5064       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5065       *GNU* | *'with BFD'*)
5066         test no != "$with_gnu_ld" && break
5067         ;;
5068       *)
5069         test yes != "$with_gnu_ld" && break
5070         ;;
5071       esac
5072     fi
5073   done
5074   IFS=$lt_save_ifs
5075 else
5076   lt_cv_path_LD=$LD # Let the user override the test with a path.
5077 fi
5078 fi
5079
5080 LD=$lt_cv_path_LD
5081 if test -n "$LD"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5083 $as_echo "$LD" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5090 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5091 if ${lt_cv_prog_gnu_ld+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5095 case `$LD -v 2>&1 </dev/null` in
5096 *GNU* | *'with BFD'*)
5097   lt_cv_prog_gnu_ld=yes
5098   ;;
5099 *)
5100   lt_cv_prog_gnu_ld=no
5101   ;;
5102 esac
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5105 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5106 with_gnu_ld=$lt_cv_prog_gnu_ld
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5117 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5118 if ${lt_cv_path_NM+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -n "$NM"; then
5122   # Let the user override the test.
5123   lt_cv_path_NM=$NM
5124 else
5125   lt_nm_to_check=${ac_tool_prefix}nm
5126   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5127     lt_nm_to_check="$lt_nm_to_check nm"
5128   fi
5129   for lt_tmp_nm in $lt_nm_to_check; do
5130     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5131     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5132       IFS=$lt_save_ifs
5133       test -z "$ac_dir" && ac_dir=.
5134       tmp_nm=$ac_dir/$lt_tmp_nm
5135       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5136         # Check to see if the nm accepts a BSD-compat flag.
5137         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5138         #   nm: unknown option "B" ignored
5139         # Tru64's nm complains that /dev/null is an invalid object file
5140         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5141         */dev/null* | *'Invalid file or object type'*)
5142           lt_cv_path_NM="$tmp_nm -B"
5143           break 2
5144           ;;
5145         *)
5146           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5147           */dev/null*)
5148             lt_cv_path_NM="$tmp_nm -p"
5149             break 2
5150             ;;
5151           *)
5152             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5153             continue # so that we can try to find one that supports BSD flags
5154             ;;
5155           esac
5156           ;;
5157         esac
5158       fi
5159     done
5160     IFS=$lt_save_ifs
5161   done
5162   : ${lt_cv_path_NM=no}
5163 fi
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5166 $as_echo "$lt_cv_path_NM" >&6; }
5167 if test no != "$lt_cv_path_NM"; then
5168   NM=$lt_cv_path_NM
5169 else
5170   # Didn't find any BSD compatible name lister, look for dumpbin.
5171   if test -n "$DUMPBIN"; then :
5172     # Let the user override the test.
5173   else
5174     if test -n "$ac_tool_prefix"; then
5175   for ac_prog in dumpbin "link -dump"
5176   do
5177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_DUMPBIN+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   if test -n "$DUMPBIN"; then
5185   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199   done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 DUMPBIN=$ac_cv_prog_DUMPBIN
5205 if test -n "$DUMPBIN"; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5207 $as_echo "$DUMPBIN" >&6; }
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214     test -n "$DUMPBIN" && break
5215   done
5216 fi
5217 if test -z "$DUMPBIN"; then
5218   ac_ct_DUMPBIN=$DUMPBIN
5219   for ac_prog in dumpbin "link -dump"
5220 do
5221   # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   if test -n "$ac_ct_DUMPBIN"; then
5229   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5249 if test -n "$ac_ct_DUMPBIN"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5251 $as_echo "$ac_ct_DUMPBIN" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258   test -n "$ac_ct_DUMPBIN" && break
5259 done
5260
5261   if test "x$ac_ct_DUMPBIN" = x; then
5262     DUMPBIN=":"
5263   else
5264     case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270     DUMPBIN=$ac_ct_DUMPBIN
5271   fi
5272 fi
5273
5274     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5275     *COFF*)
5276       DUMPBIN="$DUMPBIN -symbols -headers"
5277       ;;
5278     *)
5279       DUMPBIN=:
5280       ;;
5281     esac
5282   fi
5283
5284   if test : != "$DUMPBIN"; then
5285     NM=$DUMPBIN
5286   fi
5287 fi
5288 test -z "$NM" && NM=nm
5289
5290
5291
5292
5293
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5296 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5297 if ${lt_cv_nm_interface+:} false; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   lt_cv_nm_interface="BSD nm"
5301   echo "int some_variable = 0;" > conftest.$ac_ext
5302   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5303   (eval "$ac_compile" 2>conftest.err)
5304   cat conftest.err >&5
5305   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5306   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5307   cat conftest.err >&5
5308   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5309   cat conftest.out >&5
5310   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5311     lt_cv_nm_interface="MS dumpbin"
5312   fi
5313   rm -f conftest*
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5316 $as_echo "$lt_cv_nm_interface" >&6; }
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5319 $as_echo_n "checking whether ln -s works... " >&6; }
5320 LN_S=$as_ln_s
5321 if test "$LN_S" = "ln -s"; then
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5326 $as_echo "no, using $LN_S" >&6; }
5327 fi
5328
5329 # find the maximum length of command line arguments
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5331 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5332 if ${lt_cv_sys_max_cmd_len+:} false; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335     i=0
5336   teststring=ABCD
5337
5338   case $build_os in
5339   msdosdjgpp*)
5340     # On DJGPP, this test can blow up pretty badly due to problems in libc
5341     # (any single argument exceeding 2000 bytes causes a buffer overrun
5342     # during glob expansion).  Even if it were fixed, the result of this
5343     # check would be larger than it should be.
5344     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5345     ;;
5346
5347   gnu*)
5348     # Under GNU Hurd, this test is not required because there is
5349     # no limit to the length of command line arguments.
5350     # Libtool will interpret -1 as no limit whatsoever
5351     lt_cv_sys_max_cmd_len=-1;
5352     ;;
5353
5354   cygwin* | mingw* | cegcc*)
5355     # On Win9x/ME, this test blows up -- it succeeds, but takes
5356     # about 5 minutes as the teststring grows exponentially.
5357     # Worse, since 9x/ME are not pre-emptively multitasking,
5358     # you end up with a "frozen" computer, even though with patience
5359     # the test eventually succeeds (with a max line length of 256k).
5360     # Instead, let's just punt: use the minimum linelength reported by
5361     # all of the supported platforms: 8192 (on NT/2K/XP).
5362     lt_cv_sys_max_cmd_len=8192;
5363     ;;
5364
5365   mint*)
5366     # On MiNT this can take a long time and run out of memory.
5367     lt_cv_sys_max_cmd_len=8192;
5368     ;;
5369
5370   amigaos*)
5371     # On AmigaOS with pdksh, this test takes hours, literally.
5372     # So we just punt and use a minimum line length of 8192.
5373     lt_cv_sys_max_cmd_len=8192;
5374     ;;
5375
5376   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5377     # This has been around since 386BSD, at least.  Likely further.
5378     if test -x /sbin/sysctl; then
5379       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5380     elif test -x /usr/sbin/sysctl; then
5381       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5382     else
5383       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5384     fi
5385     # And add a safety zone
5386     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5387     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5388     ;;
5389
5390   interix*)
5391     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5392     lt_cv_sys_max_cmd_len=196608
5393     ;;
5394
5395   os2*)
5396     # The test takes a long time on OS/2.
5397     lt_cv_sys_max_cmd_len=8192
5398     ;;
5399
5400   osf*)
5401     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5402     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5403     # nice to cause kernel panics so lets avoid the loop below.
5404     # First set a reasonable default.
5405     lt_cv_sys_max_cmd_len=16384
5406     #
5407     if test -x /sbin/sysconfig; then
5408       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5409         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5410       esac
5411     fi
5412     ;;
5413   sco3.2v5*)
5414     lt_cv_sys_max_cmd_len=102400
5415     ;;
5416   sysv5* | sco5v6* | sysv4.2uw2*)
5417     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5418     if test -n "$kargmax"; then
5419       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5420     else
5421       lt_cv_sys_max_cmd_len=32768
5422     fi
5423     ;;
5424   *)
5425     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5426     if test -n "$lt_cv_sys_max_cmd_len" && \
5427        test undefined != "$lt_cv_sys_max_cmd_len"; then
5428       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430     else
5431       # Make teststring a little bigger before we do anything with it.
5432       # a 1K string should be a reasonable start.
5433       for i in 1 2 3 4 5 6 7 8; do
5434         teststring=$teststring$teststring
5435       done
5436       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437       # If test is not a shell built-in, we'll probably end up computing a
5438       # maximum length that is only half of the actual maximum length, but
5439       # we can't tell.
5440       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5441                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5442               test 17 != "$i" # 1/2 MB should be enough
5443       do
5444         i=`expr $i + 1`
5445         teststring=$teststring$teststring
5446       done
5447       # Only check the string length outside the loop.
5448       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5449       teststring=
5450       # Add a significant safety factor because C++ compilers can tack on
5451       # massive amounts of additional arguments before passing them to the
5452       # linker.  It appears as though 1/2 is a usable value.
5453       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454     fi
5455     ;;
5456   esac
5457
5458 fi
5459
5460 if test -n "$lt_cv_sys_max_cmd_len"; then
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5462 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5463 else
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5465 $as_echo "none" >&6; }
5466 fi
5467 max_cmd_len=$lt_cv_sys_max_cmd_len
5468
5469
5470
5471
5472
5473
5474 : ${CP="cp -f"}
5475 : ${MV="mv -f"}
5476 : ${RM="rm -f"}
5477
5478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5479   lt_unset=unset
5480 else
5481   lt_unset=false
5482 fi
5483
5484
5485
5486
5487
5488 # test EBCDIC or ASCII
5489 case `echo X|tr X '\101'` in
5490  A) # ASCII based system
5491     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5492   lt_SP2NL='tr \040 \012'
5493   lt_NL2SP='tr \015\012 \040\040'
5494   ;;
5495  *) # EBCDIC based system
5496   lt_SP2NL='tr \100 \n'
5497   lt_NL2SP='tr \r\n \100\100'
5498   ;;
5499 esac
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5510 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5511 if ${lt_cv_to_host_file_cmd+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   case $host in
5515   *-*-mingw* )
5516     case $build in
5517       *-*-mingw* ) # actually msys
5518         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5519         ;;
5520       *-*-cygwin* )
5521         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5522         ;;
5523       * ) # otherwise, assume *nix
5524         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5525         ;;
5526     esac
5527     ;;
5528   *-*-cygwin* )
5529     case $build in
5530       *-*-mingw* ) # actually msys
5531         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5532         ;;
5533       *-*-cygwin* )
5534         lt_cv_to_host_file_cmd=func_convert_file_noop
5535         ;;
5536       * ) # otherwise, assume *nix
5537         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5538         ;;
5539     esac
5540     ;;
5541   * ) # unhandled hosts (and "normal" native builds)
5542     lt_cv_to_host_file_cmd=func_convert_file_noop
5543     ;;
5544 esac
5545
5546 fi
5547
5548 to_host_file_cmd=$lt_cv_to_host_file_cmd
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5550 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5557 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5558 if ${lt_cv_to_tool_file_cmd+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   #assume ordinary cross tools, or native build.
5562 lt_cv_to_tool_file_cmd=func_convert_file_noop
5563 case $host in
5564   *-*-mingw* )
5565     case $build in
5566       *-*-mingw* ) # actually msys
5567         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5568         ;;
5569     esac
5570     ;;
5571 esac
5572
5573 fi
5574
5575 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5577 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5578
5579
5580
5581
5582
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5584 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5585 if ${lt_cv_ld_reload_flag+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   lt_cv_ld_reload_flag='-r'
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5591 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5592 reload_flag=$lt_cv_ld_reload_flag
5593 case $reload_flag in
5594 "" | " "*) ;;
5595 *) reload_flag=" $reload_flag" ;;
5596 esac
5597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5598 case $host_os in
5599   cygwin* | mingw* | pw32* | cegcc*)
5600     if test yes != "$GCC"; then
5601       reload_cmds=false
5602     fi
5603     ;;
5604   darwin*)
5605     if test yes = "$GCC"; then
5606       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5607     else
5608       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5609     fi
5610     ;;
5611 esac
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 if test -n "$ac_tool_prefix"; then
5622   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_OBJDUMP+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   if test -n "$OBJDUMP"; then
5630   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644   done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 OBJDUMP=$ac_cv_prog_OBJDUMP
5650 if test -n "$OBJDUMP"; then
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5652 $as_echo "$OBJDUMP" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659 fi
5660 if test -z "$ac_cv_prog_OBJDUMP"; then
5661   ac_ct_OBJDUMP=$OBJDUMP
5662   # Extract the first word of "objdump", so it can be a program name with args.
5663 set dummy objdump; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   if test -n "$ac_ct_OBJDUMP"; then
5670   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684   done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5690 if test -n "$ac_ct_OBJDUMP"; then
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5692 $as_echo "$ac_ct_OBJDUMP" >&6; }
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698   if test "x$ac_ct_OBJDUMP" = x; then
5699     OBJDUMP="false"
5700   else
5701     case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707     OBJDUMP=$ac_ct_OBJDUMP
5708   fi
5709 else
5710   OBJDUMP="$ac_cv_prog_OBJDUMP"
5711 fi
5712
5713 test -z "$OBJDUMP" && OBJDUMP=objdump
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5724 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5725 if ${lt_cv_deplibs_check_method+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   lt_cv_file_magic_cmd='$MAGIC_CMD'
5729 lt_cv_file_magic_test_file=
5730 lt_cv_deplibs_check_method='unknown'
5731 # Need to set the preceding variable on all platforms that support
5732 # interlibrary dependencies.
5733 # 'none' -- dependencies not supported.
5734 # 'unknown' -- same as none, but documents that we really don't know.
5735 # 'pass_all' -- all dependencies passed with no checks.
5736 # 'test_compile' -- check by making test program.
5737 # 'file_magic [[regex]]' -- check by looking for files in library path
5738 # that responds to the $file_magic_cmd with a given extended regex.
5739 # If you have 'file' or equivalent on your system and you're not sure
5740 # whether 'pass_all' will *always* work, you probably want this one.
5741
5742 case $host_os in
5743 aix[4-9]*)
5744   lt_cv_deplibs_check_method=pass_all
5745   ;;
5746
5747 beos*)
5748   lt_cv_deplibs_check_method=pass_all
5749   ;;
5750
5751 bsdi[45]*)
5752   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5753   lt_cv_file_magic_cmd='/usr/bin/file -L'
5754   lt_cv_file_magic_test_file=/shlib/libc.so
5755   ;;
5756
5757 cygwin*)
5758   # func_win32_libid is a shell function defined in ltmain.sh
5759   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5760   lt_cv_file_magic_cmd='func_win32_libid'
5761   ;;
5762
5763 mingw* | pw32*)
5764   # Base MSYS/MinGW do not provide the 'file' command needed by
5765   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5766   # unless we find 'file', for example because we are cross-compiling.
5767   if ( file / ) >/dev/null 2>&1; then
5768     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5769     lt_cv_file_magic_cmd='func_win32_libid'
5770   else
5771     # Keep this pattern in sync with the one in func_win32_libid.
5772     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5773     lt_cv_file_magic_cmd='$OBJDUMP -f'
5774   fi
5775   ;;
5776
5777 cegcc*)
5778   # use the weaker test based on 'objdump'. See mingw*.
5779   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5780   lt_cv_file_magic_cmd='$OBJDUMP -f'
5781   ;;
5782
5783 darwin* | rhapsody*)
5784   lt_cv_deplibs_check_method=pass_all
5785   ;;
5786
5787 freebsd* | dragonfly*)
5788   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5789     case $host_cpu in
5790     i*86 )
5791       # Not sure whether the presence of OpenBSD here was a mistake.
5792       # Let's accept both of them until this is cleared up.
5793       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5794       lt_cv_file_magic_cmd=/usr/bin/file
5795       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5796       ;;
5797     esac
5798   else
5799     lt_cv_deplibs_check_method=pass_all
5800   fi
5801   ;;
5802
5803 haiku*)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 hpux10.20* | hpux11*)
5808   lt_cv_file_magic_cmd=/usr/bin/file
5809   case $host_cpu in
5810   ia64*)
5811     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5812     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5813     ;;
5814   hppa*64*)
5815     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]'
5816     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5817     ;;
5818   *)
5819     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5820     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5821     ;;
5822   esac
5823   ;;
5824
5825 interix[3-9]*)
5826   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5827   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5828   ;;
5829
5830 irix5* | irix6* | nonstopux*)
5831   case $LD in
5832   *-32|*"-32 ") libmagic=32-bit;;
5833   *-n32|*"-n32 ") libmagic=N32;;
5834   *-64|*"-64 ") libmagic=64-bit;;
5835   *) libmagic=never-match;;
5836   esac
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 # This must be glibc/ELF.
5841 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5842   lt_cv_deplibs_check_method=pass_all
5843   ;;
5844
5845 netbsd*)
5846   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5847     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5848   else
5849     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5850   fi
5851   ;;
5852
5853 newos6*)
5854   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5855   lt_cv_file_magic_cmd=/usr/bin/file
5856   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5857   ;;
5858
5859 *nto* | *qnx*)
5860   lt_cv_deplibs_check_method=pass_all
5861   ;;
5862
5863 openbsd* | bitrig*)
5864   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5865     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5866   else
5867     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5868   fi
5869   ;;
5870
5871 osf3* | osf4* | osf5*)
5872   lt_cv_deplibs_check_method=pass_all
5873   ;;
5874
5875 rdos*)
5876   lt_cv_deplibs_check_method=pass_all
5877   ;;
5878
5879 solaris*)
5880   lt_cv_deplibs_check_method=pass_all
5881   ;;
5882
5883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5884   lt_cv_deplibs_check_method=pass_all
5885   ;;
5886
5887 sysv4 | sysv4.3*)
5888   case $host_vendor in
5889   motorola)
5890     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]'
5891     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5892     ;;
5893   ncr)
5894     lt_cv_deplibs_check_method=pass_all
5895     ;;
5896   sequent)
5897     lt_cv_file_magic_cmd='/bin/file'
5898     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5899     ;;
5900   sni)
5901     lt_cv_file_magic_cmd='/bin/file'
5902     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5903     lt_cv_file_magic_test_file=/lib/libc.so
5904     ;;
5905   siemens)
5906     lt_cv_deplibs_check_method=pass_all
5907     ;;
5908   pc)
5909     lt_cv_deplibs_check_method=pass_all
5910     ;;
5911   esac
5912   ;;
5913
5914 tpf*)
5915   lt_cv_deplibs_check_method=pass_all
5916   ;;
5917 esac
5918
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5921 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5922
5923 file_magic_glob=
5924 want_nocaseglob=no
5925 if test "$build" = "$host"; then
5926   case $host_os in
5927   mingw* | pw32*)
5928     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5929       want_nocaseglob=yes
5930     else
5931       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5932     fi
5933     ;;
5934   esac
5935 fi
5936
5937 file_magic_cmd=$lt_cv_file_magic_cmd
5938 deplibs_check_method=$lt_cv_deplibs_check_method
5939 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 if test -n "$ac_tool_prefix"; then
5963   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_prog_DLLTOOL+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   if test -n "$DLLTOOL"; then
5971   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978     for ac_exec_ext in '' $ac_executable_extensions; do
5979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985   done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 DLLTOOL=$ac_cv_prog_DLLTOOL
5991 if test -n "$DLLTOOL"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5993 $as_echo "$DLLTOOL" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999
6000 fi
6001 if test -z "$ac_cv_prog_DLLTOOL"; then
6002   ac_ct_DLLTOOL=$DLLTOOL
6003   # Extract the first word of "dlltool", so it can be a program name with args.
6004 set dummy dlltool; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test -n "$ac_ct_DLLTOOL"; then
6011   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6031 if test -n "$ac_ct_DLLTOOL"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6033 $as_echo "$ac_ct_DLLTOOL" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039   if test "x$ac_ct_DLLTOOL" = x; then
6040     DLLTOOL="false"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     DLLTOOL=$ac_ct_DLLTOOL
6049   fi
6050 else
6051   DLLTOOL="$ac_cv_prog_DLLTOOL"
6052 fi
6053
6054 test -z "$DLLTOOL" && DLLTOOL=dlltool
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6066 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6067 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   lt_cv_sharedlib_from_linklib_cmd='unknown'
6071
6072 case $host_os in
6073 cygwin* | mingw* | pw32* | cegcc*)
6074   # two different shell functions defined in ltmain.sh;
6075   # decide which one to use based on capabilities of $DLLTOOL
6076   case `$DLLTOOL --help 2>&1` in
6077   *--identify-strict*)
6078     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6079     ;;
6080   *)
6081     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6082     ;;
6083   esac
6084   ;;
6085 *)
6086   # fallback: assume linklib IS sharedlib
6087   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6088   ;;
6089 esac
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6093 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6094 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6095 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6096
6097
6098
6099
6100
6101
6102
6103
6104 if test -n "$ac_tool_prefix"; then
6105   for ac_prog in ar
6106   do
6107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_AR+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   if test -n "$AR"; then
6115   ac_cv_prog_AR="$AR" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_exec_ext in '' $ac_executable_extensions; do
6123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129   done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 AR=$ac_cv_prog_AR
6135 if test -n "$AR"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6137 $as_echo "$AR" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144     test -n "$AR" && break
6145   done
6146 fi
6147 if test -z "$AR"; then
6148   ac_ct_AR=$AR
6149   for ac_prog in ar
6150 do
6151   # Extract the first word of "$ac_prog", so it can be a program name with args.
6152 set dummy $ac_prog; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   if test -n "$ac_ct_AR"; then
6159   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_exec_ext in '' $ac_executable_extensions; do
6167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168     ac_cv_prog_ac_ct_AR="$ac_prog"
6169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6179 if test -n "$ac_ct_AR"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6181 $as_echo "$ac_ct_AR" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188   test -n "$ac_ct_AR" && break
6189 done
6190
6191   if test "x$ac_ct_AR" = x; then
6192     AR="false"
6193   else
6194     case $cross_compiling:$ac_tool_warned in
6195 yes:)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200     AR=$ac_ct_AR
6201   fi
6202 fi
6203
6204 : ${AR=ar}
6205 : ${AR_FLAGS=cru}
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6218 $as_echo_n "checking for archiver @FILE support... " >&6; }
6219 if ${lt_cv_ar_at_file+:} false; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   lt_cv_ar_at_file=no
6223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h.  */
6225
6226 int
6227 main ()
6228 {
6229
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235   echo conftest.$ac_objext > conftest.lst
6236       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6237       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6238   (eval $lt_ar_try) 2>&5
6239   ac_status=$?
6240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241   test $ac_status = 0; }
6242       if test 0 -eq "$ac_status"; then
6243         # Ensure the archiver fails upon bogus file names.
6244         rm -f conftest.$ac_objext libconftest.a
6245         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6246   (eval $lt_ar_try) 2>&5
6247   ac_status=$?
6248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249   test $ac_status = 0; }
6250         if test 0 -ne "$ac_status"; then
6251           lt_cv_ar_at_file=@
6252         fi
6253       fi
6254       rm -f conftest.* libconftest.a
6255
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6261 $as_echo "$lt_cv_ar_at_file" >&6; }
6262
6263 if test no = "$lt_cv_ar_at_file"; then
6264   archiver_list_spec=
6265 else
6266   archiver_list_spec=$lt_cv_ar_at_file
6267 fi
6268
6269
6270
6271
6272
6273
6274
6275 if test -n "$ac_tool_prefix"; then
6276   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}strip; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_prog_STRIP+:} false; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   if test -n "$STRIP"; then
6284   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289   IFS=$as_save_IFS
6290   test -z "$as_dir" && as_dir=.
6291     for ac_exec_ext in '' $ac_executable_extensions; do
6292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295     break 2
6296   fi
6297 done
6298   done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 STRIP=$ac_cv_prog_STRIP
6304 if test -n "$STRIP"; then
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6306 $as_echo "$STRIP" >&6; }
6307 else
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312
6313 fi
6314 if test -z "$ac_cv_prog_STRIP"; then
6315   ac_ct_STRIP=$STRIP
6316   # Extract the first word of "strip", so it can be a program name with args.
6317 set dummy strip; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   if test -n "$ac_ct_STRIP"; then
6324   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331     for ac_exec_ext in '' $ac_executable_extensions; do
6332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333     ac_cv_prog_ac_ct_STRIP="strip"
6334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338   done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6344 if test -n "$ac_ct_STRIP"; then
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6346 $as_echo "$ac_ct_STRIP" >&6; }
6347 else
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 fi
6351
6352   if test "x$ac_ct_STRIP" = x; then
6353     STRIP=":"
6354   else
6355     case $cross_compiling:$ac_tool_warned in
6356 yes:)
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359 ac_tool_warned=yes ;;
6360 esac
6361     STRIP=$ac_ct_STRIP
6362   fi
6363 else
6364   STRIP="$ac_cv_prog_STRIP"
6365 fi
6366
6367 test -z "$STRIP" && STRIP=:
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_RANLIB+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   if test -n "$RANLIB"; then
6383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388   IFS=$as_save_IFS
6389   test -z "$as_dir" && as_dir=.
6390     for ac_exec_ext in '' $ac_executable_extensions; do
6391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394     break 2
6395   fi
6396 done
6397   done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 RANLIB=$ac_cv_prog_RANLIB
6403 if test -n "$RANLIB"; then
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6405 $as_echo "$RANLIB" >&6; }
6406 else
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411
6412 fi
6413 if test -z "$ac_cv_prog_RANLIB"; then
6414   ac_ct_RANLIB=$RANLIB
6415   # Extract the first word of "ranlib", so it can be a program name with args.
6416 set dummy ranlib; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   if test -n "$ac_ct_RANLIB"; then
6423   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
6429   test -z "$as_dir" && as_dir=.
6430     for ac_exec_ext in '' $ac_executable_extensions; do
6431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432     ac_cv_prog_ac_ct_RANLIB="ranlib"
6433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434     break 2
6435   fi
6436 done
6437   done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6443 if test -n "$ac_ct_RANLIB"; then
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6445 $as_echo "$ac_ct_RANLIB" >&6; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451   if test "x$ac_ct_RANLIB" = x; then
6452     RANLIB=":"
6453   else
6454     case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6459 esac
6460     RANLIB=$ac_ct_RANLIB
6461   fi
6462 else
6463   RANLIB="$ac_cv_prog_RANLIB"
6464 fi
6465
6466 test -z "$RANLIB" && RANLIB=:
6467
6468
6469
6470
6471
6472
6473 # Determine commands to create old-style static archives.
6474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6475 old_postinstall_cmds='chmod 644 $oldlib'
6476 old_postuninstall_cmds=
6477
6478 if test -n "$RANLIB"; then
6479   case $host_os in
6480   bitrig* | openbsd*)
6481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6482     ;;
6483   *)
6484     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6485     ;;
6486   esac
6487   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6488 fi
6489
6490 case $host_os in
6491   darwin*)
6492     lock_old_archive_extraction=yes ;;
6493   *)
6494     lock_old_archive_extraction=no ;;
6495 esac
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535 # If no C compiler was specified, use CC.
6536 LTCC=${LTCC-"$CC"}
6537
6538 # If no C compiler flags were specified, use CFLAGS.
6539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6540
6541 # Allow CC to be a program name with arguments.
6542 compiler=$CC
6543
6544
6545 # Check for command to grab the raw symbol name followed by C symbol from nm.
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6547 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6548 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551
6552 # These are sane defaults that work on at least a few old systems.
6553 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6554
6555 # Character class describing NM global symbol codes.
6556 symcode='[BCDEGRST]'
6557
6558 # Regexp to match symbols that can be accessed directly from C.
6559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6560
6561 # Define system-specific variables.
6562 case $host_os in
6563 aix*)
6564   symcode='[BCDT]'
6565   ;;
6566 cygwin* | mingw* | pw32* | cegcc*)
6567   symcode='[ABCDGISTW]'
6568   ;;
6569 hpux*)
6570   if test ia64 = "$host_cpu"; then
6571     symcode='[ABCDEGRST]'
6572   fi
6573   ;;
6574 irix* | nonstopux*)
6575   symcode='[BCDEGRST]'
6576   ;;
6577 osf*)
6578   symcode='[BCDEGQRST]'
6579   ;;
6580 solaris*)
6581   symcode='[BDRT]'
6582   ;;
6583 sco3.2v5*)
6584   symcode='[DT]'
6585   ;;
6586 sysv4.2uw2*)
6587   symcode='[DT]'
6588   ;;
6589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6590   symcode='[ABDT]'
6591   ;;
6592 sysv4)
6593   symcode='[DFNSTU]'
6594   ;;
6595 esac
6596
6597 # If we're using GNU nm, then use its standard symbol codes.
6598 case `$NM -V 2>&1` in
6599 *GNU* | *'with BFD'*)
6600   symcode='[ABCDGIRSTW]' ;;
6601 esac
6602
6603 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6604   # Gets list of data symbols to import.
6605   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6606   # Adjust the below global symbol transforms to fixup imported variables.
6607   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6608   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6609   lt_c_name_lib_hook="\
6610   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6611   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6612 else
6613   # Disable hooks by default.
6614   lt_cv_sys_global_symbol_to_import=
6615   lt_cdecl_hook=
6616   lt_c_name_hook=
6617   lt_c_name_lib_hook=
6618 fi
6619
6620 # Transform an extracted symbol line into a proper C declaration.
6621 # Some systems (esp. on ia64) link data and code symbols differently,
6622 # so use this general approach.
6623 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6624 $lt_cdecl_hook\
6625 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6626 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6627
6628 # Transform an extracted symbol line into symbol name and symbol address
6629 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6630 $lt_c_name_hook\
6631 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6632 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6633
6634 # Transform an extracted symbol line into symbol name with lib prefix and
6635 # symbol address.
6636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6637 $lt_c_name_lib_hook\
6638 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6639 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6640 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6641
6642 # Handle CRLF in mingw tool chain
6643 opt_cr=
6644 case $build_os in
6645 mingw*)
6646   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6647   ;;
6648 esac
6649
6650 # Try without a prefix underscore, then with it.
6651 for ac_symprfx in "" "_"; do
6652
6653   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6654   symxfrm="\\1 $ac_symprfx\\2 \\2"
6655
6656   # Write the raw and C identifiers.
6657   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6658     # Fake it for dumpbin and say T for any non-static function,
6659     # D for any global variable and I for any imported variable.
6660     # Also find C++ and __fastcall symbols from MSVC++,
6661     # which start with @ or ?.
6662     lt_cv_sys_global_symbol_pipe="$AWK '"\
6663 "     {last_section=section; section=\$ 3};"\
6664 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6665 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6666 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6667 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6668 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6669 "     \$ 0!~/External *\|/{next};"\
6670 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6671 "     {if(hide[section]) next};"\
6672 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6673 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6674 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6675 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6676 "     ' prfx=^$ac_symprfx"
6677   else
6678     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6679   fi
6680   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6681
6682   # Check to see that the pipe works correctly.
6683   pipe_works=no
6684
6685   rm -f conftest*
6686   cat > conftest.$ac_ext <<_LT_EOF
6687 #ifdef __cplusplus
6688 extern "C" {
6689 #endif
6690 char nm_test_var;
6691 void nm_test_func(void);
6692 void nm_test_func(void){}
6693 #ifdef __cplusplus
6694 }
6695 #endif
6696 int main(){nm_test_var='a';nm_test_func();return(0);}
6697 _LT_EOF
6698
6699   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700   (eval $ac_compile) 2>&5
6701   ac_status=$?
6702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703   test $ac_status = 0; }; then
6704     # Now try to grab the symbols.
6705     nlist=conftest.nm
6706     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6707   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6708   ac_status=$?
6709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710   test $ac_status = 0; } && test -s "$nlist"; then
6711       # Try sorting and uniquifying the output.
6712       if sort "$nlist" | uniq > "$nlist"T; then
6713         mv -f "$nlist"T "$nlist"
6714       else
6715         rm -f "$nlist"T
6716       fi
6717
6718       # Make sure that we snagged all the symbols we need.
6719       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6720         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6721           cat <<_LT_EOF > conftest.$ac_ext
6722 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6723 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6724 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6725    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6726 # define LT_DLSYM_CONST
6727 #elif defined __osf__
6728 /* This system does not cope well with relocations in const data.  */
6729 # define LT_DLSYM_CONST
6730 #else
6731 # define LT_DLSYM_CONST const
6732 #endif
6733
6734 #ifdef __cplusplus
6735 extern "C" {
6736 #endif
6737
6738 _LT_EOF
6739           # Now generate the symbol file.
6740           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6741
6742           cat <<_LT_EOF >> conftest.$ac_ext
6743
6744 /* The mapping between symbol names and symbols.  */
6745 LT_DLSYM_CONST struct {
6746   const char *name;
6747   void       *address;
6748 }
6749 lt__PROGRAM__LTX_preloaded_symbols[] =
6750 {
6751   { "@PROGRAM@", (void *) 0 },
6752 _LT_EOF
6753           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6754           cat <<\_LT_EOF >> conftest.$ac_ext
6755   {0, (void *) 0}
6756 };
6757
6758 /* This works around a problem in FreeBSD linker */
6759 #ifdef FREEBSD_WORKAROUND
6760 static const void *lt_preloaded_setup() {
6761   return lt__PROGRAM__LTX_preloaded_symbols;
6762 }
6763 #endif
6764
6765 #ifdef __cplusplus
6766 }
6767 #endif
6768 _LT_EOF
6769           # Now try linking the two files.
6770           mv conftest.$ac_objext conftstm.$ac_objext
6771           lt_globsym_save_LIBS=$LIBS
6772           lt_globsym_save_CFLAGS=$CFLAGS
6773           LIBS=conftstm.$ac_objext
6774           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6775           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6776   (eval $ac_link) 2>&5
6777   ac_status=$?
6778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6780             pipe_works=yes
6781           fi
6782           LIBS=$lt_globsym_save_LIBS
6783           CFLAGS=$lt_globsym_save_CFLAGS
6784         else
6785           echo "cannot find nm_test_func in $nlist" >&5
6786         fi
6787       else
6788         echo "cannot find nm_test_var in $nlist" >&5
6789       fi
6790     else
6791       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6792     fi
6793   else
6794     echo "$progname: failed program was:" >&5
6795     cat conftest.$ac_ext >&5
6796   fi
6797   rm -rf conftest* conftst*
6798
6799   # Do not use the global_symbol_pipe unless it works.
6800   if test yes = "$pipe_works"; then
6801     break
6802   else
6803     lt_cv_sys_global_symbol_pipe=
6804   fi
6805 done
6806
6807 fi
6808
6809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6810   lt_cv_sys_global_symbol_to_cdecl=
6811 fi
6812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6814 $as_echo "failed" >&6; }
6815 else
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6817 $as_echo "ok" >&6; }
6818 fi
6819
6820 # Response file support.
6821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6822   nm_file_list_spec='@'
6823 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6824   nm_file_list_spec='@'
6825 fi
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6864 $as_echo_n "checking for sysroot... " >&6; }
6865
6866 # Check whether --with-sysroot was given.
6867 if test "${with_sysroot+set}" = set; then :
6868   withval=$with_sysroot;
6869 else
6870   with_sysroot=no
6871 fi
6872
6873
6874 lt_sysroot=
6875 case $with_sysroot in #(
6876  yes)
6877    if test yes = "$GCC"; then
6878      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6879    fi
6880    ;; #(
6881  /*)
6882    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6883    ;; #(
6884  no|'')
6885    ;; #(
6886  *)
6887    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6888 $as_echo "$with_sysroot" >&6; }
6889    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6890    ;;
6891 esac
6892
6893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6894 $as_echo "${lt_sysroot:-no}" >&6; }
6895
6896
6897
6898
6899
6900 # Check whether --enable-libtool-lock was given.
6901 if test "${enable_libtool_lock+set}" = set; then :
6902   enableval=$enable_libtool_lock;
6903 fi
6904
6905 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6906
6907 # Some flags need to be propagated to the compiler or linker for good
6908 # libtool support.
6909 case $host in
6910 ia64-*-hpux*)
6911   # Find out what ABI is being produced by ac_compile, and set mode
6912   # options accordingly.
6913   echo 'int i;' > conftest.$ac_ext
6914   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915   (eval $ac_compile) 2>&5
6916   ac_status=$?
6917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918   test $ac_status = 0; }; then
6919     case `/usr/bin/file conftest.$ac_objext` in
6920       *ELF-32*)
6921         HPUX_IA64_MODE=32
6922         ;;
6923       *ELF-64*)
6924         HPUX_IA64_MODE=64
6925         ;;
6926     esac
6927   fi
6928   rm -rf conftest*
6929   ;;
6930 *-*-irix6*)
6931   # Find out what ABI is being produced by ac_compile, and set linker
6932   # options accordingly.
6933   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6934   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6935   (eval $ac_compile) 2>&5
6936   ac_status=$?
6937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938   test $ac_status = 0; }; then
6939     if test yes = "$lt_cv_prog_gnu_ld"; then
6940       case `/usr/bin/file conftest.$ac_objext` in
6941         *32-bit*)
6942           LD="${LD-ld} -melf32bsmip"
6943           ;;
6944         *N32*)
6945           LD="${LD-ld} -melf32bmipn32"
6946           ;;
6947         *64-bit*)
6948           LD="${LD-ld} -melf64bmip"
6949         ;;
6950       esac
6951     else
6952       case `/usr/bin/file conftest.$ac_objext` in
6953         *32-bit*)
6954           LD="${LD-ld} -32"
6955           ;;
6956         *N32*)
6957           LD="${LD-ld} -n32"
6958           ;;
6959         *64-bit*)
6960           LD="${LD-ld} -64"
6961           ;;
6962       esac
6963     fi
6964   fi
6965   rm -rf conftest*
6966   ;;
6967
6968 mips64*-*linux*)
6969   # Find out what ABI is being produced by ac_compile, and set linker
6970   # options accordingly.
6971   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6972   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973   (eval $ac_compile) 2>&5
6974   ac_status=$?
6975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976   test $ac_status = 0; }; then
6977     emul=elf
6978     case `/usr/bin/file conftest.$ac_objext` in
6979       *32-bit*)
6980         emul="${emul}32"
6981         ;;
6982       *64-bit*)
6983         emul="${emul}64"
6984         ;;
6985     esac
6986     case `/usr/bin/file conftest.$ac_objext` in
6987       *MSB*)
6988         emul="${emul}btsmip"
6989         ;;
6990       *LSB*)
6991         emul="${emul}ltsmip"
6992         ;;
6993     esac
6994     case `/usr/bin/file conftest.$ac_objext` in
6995       *N32*)
6996         emul="${emul}n32"
6997         ;;
6998     esac
6999     LD="${LD-ld} -m $emul"
7000   fi
7001   rm -rf conftest*
7002   ;;
7003
7004 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7005 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7006   # Find out what ABI is being produced by ac_compile, and set linker
7007   # options accordingly.  Note that the listed cases only cover the
7008   # situations where additional linker options are needed (such as when
7009   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7010   # vice versa); the common cases where no linker options are needed do
7011   # not appear in the list.
7012   echo 'int i;' > conftest.$ac_ext
7013   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7014   (eval $ac_compile) 2>&5
7015   ac_status=$?
7016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017   test $ac_status = 0; }; then
7018     case `/usr/bin/file conftest.o` in
7019       *32-bit*)
7020         case $host in
7021           x86_64-*kfreebsd*-gnu)
7022             LD="${LD-ld} -m elf_i386_fbsd"
7023             ;;
7024           x86_64-*linux*)
7025             case `/usr/bin/file conftest.o` in
7026               *x86-64*)
7027                 LD="${LD-ld} -m elf32_x86_64"
7028                 ;;
7029               *)
7030                 LD="${LD-ld} -m elf_i386"
7031                 ;;
7032             esac
7033             ;;
7034           powerpc64le-*linux*)
7035             LD="${LD-ld} -m elf32lppclinux"
7036             ;;
7037           powerpc64-*linux*)
7038             LD="${LD-ld} -m elf32ppclinux"
7039             ;;
7040           s390x-*linux*)
7041             LD="${LD-ld} -m elf_s390"
7042             ;;
7043           sparc64-*linux*)
7044             LD="${LD-ld} -m elf32_sparc"
7045             ;;
7046         esac
7047         ;;
7048       *64-bit*)
7049         case $host in
7050           x86_64-*kfreebsd*-gnu)
7051             LD="${LD-ld} -m elf_x86_64_fbsd"
7052             ;;
7053           x86_64-*linux*)
7054             LD="${LD-ld} -m elf_x86_64"
7055             ;;
7056           powerpcle-*linux*)
7057             LD="${LD-ld} -m elf64lppc"
7058             ;;
7059           powerpc-*linux*)
7060             LD="${LD-ld} -m elf64ppc"
7061             ;;
7062           s390*-*linux*|s390*-*tpf*)
7063             LD="${LD-ld} -m elf64_s390"
7064             ;;
7065           sparc*-*linux*)
7066             LD="${LD-ld} -m elf64_sparc"
7067             ;;
7068         esac
7069         ;;
7070     esac
7071   fi
7072   rm -rf conftest*
7073   ;;
7074
7075 *-*-sco3.2v5*)
7076   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7077   SAVE_CFLAGS=$CFLAGS
7078   CFLAGS="$CFLAGS -belf"
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7080 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7081 if ${lt_cv_cc_needs_belf+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   ac_ext=c
7085 ac_cpp='$CPP $CPPFLAGS'
7086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089
7090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h.  */
7092
7093 int
7094 main ()
7095 {
7096
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102   lt_cv_cc_needs_belf=yes
7103 else
7104   lt_cv_cc_needs_belf=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107     conftest$ac_exeext conftest.$ac_ext
7108      ac_ext=c
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7116 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7117   if test yes != "$lt_cv_cc_needs_belf"; then
7118     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7119     CFLAGS=$SAVE_CFLAGS
7120   fi
7121   ;;
7122 *-*solaris*)
7123   # Find out what ABI is being produced by ac_compile, and set linker
7124   # options accordingly.
7125   echo 'int i;' > conftest.$ac_ext
7126   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7127   (eval $ac_compile) 2>&5
7128   ac_status=$?
7129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130   test $ac_status = 0; }; then
7131     case `/usr/bin/file conftest.o` in
7132     *64-bit*)
7133       case $lt_cv_prog_gnu_ld in
7134       yes*)
7135         case $host in
7136         i?86-*-solaris*|x86_64-*-solaris*)
7137           LD="${LD-ld} -m elf_x86_64"
7138           ;;
7139         sparc*-*-solaris*)
7140           LD="${LD-ld} -m elf64_sparc"
7141           ;;
7142         esac
7143         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7144         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7145           LD=${LD-ld}_sol2
7146         fi
7147         ;;
7148       *)
7149         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7150           LD="${LD-ld} -64"
7151         fi
7152         ;;
7153       esac
7154       ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159 esac
7160
7161 need_locks=$enable_libtool_lock
7162
7163 if test -n "$ac_tool_prefix"; then
7164   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}mt; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$MANIFEST_TOOL"; then
7172   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7192 if test -n "$MANIFEST_TOOL"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7194 $as_echo "$MANIFEST_TOOL" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201 fi
7202 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7203   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7204   # Extract the first word of "mt", so it can be a program name with args.
7205 set dummy mt; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$ac_ct_MANIFEST_TOOL"; then
7212   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7232 if test -n "$ac_ct_MANIFEST_TOOL"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7234 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7241     MANIFEST_TOOL=":"
7242   else
7243     case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7250   fi
7251 else
7252   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7253 fi
7254
7255 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7257 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7258 if ${lt_cv_path_mainfest_tool+:} false; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   lt_cv_path_mainfest_tool=no
7262   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7263   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7264   cat conftest.err >&5
7265   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7266     lt_cv_path_mainfest_tool=yes
7267   fi
7268   rm -f conftest*
7269 fi
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7271 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7272 if test yes != "$lt_cv_path_mainfest_tool"; then
7273   MANIFEST_TOOL=:
7274 fi
7275
7276
7277
7278
7279
7280
7281   case $host_os in
7282     rhapsody* | darwin*)
7283     if test -n "$ac_tool_prefix"; then
7284   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   if test -n "$DSYMUTIL"; then
7292   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299     for ac_exec_ext in '' $ac_executable_extensions; do
7300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306   done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7312 if test -n "$DSYMUTIL"; then
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7314 $as_echo "$DSYMUTIL" >&6; }
7315 else
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320
7321 fi
7322 if test -z "$ac_cv_prog_DSYMUTIL"; then
7323   ac_ct_DSYMUTIL=$DSYMUTIL
7324   # Extract the first word of "dsymutil", so it can be a program name with args.
7325 set dummy dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$ac_ct_DSYMUTIL"; then
7332   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7352 if test -n "$ac_ct_DSYMUTIL"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7354 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360   if test "x$ac_ct_DSYMUTIL" = x; then
7361     DSYMUTIL=":"
7362   else
7363     case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369     DSYMUTIL=$ac_ct_DSYMUTIL
7370   fi
7371 else
7372   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7373 fi
7374
7375     if test -n "$ac_tool_prefix"; then
7376   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_NMEDIT+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   if test -n "$NMEDIT"; then
7384   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391     for ac_exec_ext in '' $ac_executable_extensions; do
7392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398   done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 NMEDIT=$ac_cv_prog_NMEDIT
7404 if test -n "$NMEDIT"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7406 $as_echo "$NMEDIT" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_NMEDIT"; then
7415   ac_ct_NMEDIT=$NMEDIT
7416   # Extract the first word of "nmedit", so it can be a program name with args.
7417 set dummy nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   if test -n "$ac_ct_NMEDIT"; then
7424   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431     for ac_exec_ext in '' $ac_executable_extensions; do
7432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438   done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7444 if test -n "$ac_ct_NMEDIT"; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7446 $as_echo "$ac_ct_NMEDIT" >&6; }
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452   if test "x$ac_ct_NMEDIT" = x; then
7453     NMEDIT=":"
7454   else
7455     case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461     NMEDIT=$ac_ct_NMEDIT
7462   fi
7463 else
7464   NMEDIT="$ac_cv_prog_NMEDIT"
7465 fi
7466
7467     if test -n "$ac_tool_prefix"; then
7468   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_LIPO+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   if test -n "$LIPO"; then
7476   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483     for ac_exec_ext in '' $ac_executable_extensions; do
7484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490   done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 LIPO=$ac_cv_prog_LIPO
7496 if test -n "$LIPO"; then
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7498 $as_echo "$LIPO" >&6; }
7499 else
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504
7505 fi
7506 if test -z "$ac_cv_prog_LIPO"; then
7507   ac_ct_LIPO=$LIPO
7508   # Extract the first word of "lipo", so it can be a program name with args.
7509 set dummy lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   if test -n "$ac_ct_LIPO"; then
7516   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523     for ac_exec_ext in '' $ac_executable_extensions; do
7524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525     ac_cv_prog_ac_ct_LIPO="lipo"
7526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530   done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7536 if test -n "$ac_ct_LIPO"; then
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7538 $as_echo "$ac_ct_LIPO" >&6; }
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544   if test "x$ac_ct_LIPO" = x; then
7545     LIPO=":"
7546   else
7547     case $cross_compiling:$ac_tool_warned in
7548 yes:)
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned=yes ;;
7552 esac
7553     LIPO=$ac_ct_LIPO
7554   fi
7555 else
7556   LIPO="$ac_cv_prog_LIPO"
7557 fi
7558
7559     if test -n "$ac_tool_prefix"; then
7560   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}otool; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_OTOOL+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   if test -n "$OTOOL"; then
7568   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573   IFS=$as_save_IFS
7574   test -z "$as_dir" && as_dir=.
7575     for ac_exec_ext in '' $ac_executable_extensions; do
7576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579     break 2
7580   fi
7581 done
7582   done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 OTOOL=$ac_cv_prog_OTOOL
7588 if test -n "$OTOOL"; then
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7590 $as_echo "$OTOOL" >&6; }
7591 else
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596
7597 fi
7598 if test -z "$ac_cv_prog_OTOOL"; then
7599   ac_ct_OTOOL=$OTOOL
7600   # Extract the first word of "otool", so it can be a program name with args.
7601 set dummy otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test -n "$ac_ct_OTOOL"; then
7608   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617     ac_cv_prog_ac_ct_OTOOL="otool"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7628 if test -n "$ac_ct_OTOOL"; then
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7630 $as_echo "$ac_ct_OTOOL" >&6; }
7631 else
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636   if test "x$ac_ct_OTOOL" = x; then
7637     OTOOL=":"
7638   else
7639     case $cross_compiling:$ac_tool_warned in
7640 yes:)
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643 ac_tool_warned=yes ;;
7644 esac
7645     OTOOL=$ac_ct_OTOOL
7646   fi
7647 else
7648   OTOOL="$ac_cv_prog_OTOOL"
7649 fi
7650
7651     if test -n "$ac_tool_prefix"; then
7652   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7653 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_OTOOL64+:} false; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   if test -n "$OTOOL64"; then
7660   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667     for ac_exec_ext in '' $ac_executable_extensions; do
7668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671     break 2
7672   fi
7673 done
7674   done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 OTOOL64=$ac_cv_prog_OTOOL64
7680 if test -n "$OTOOL64"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7682 $as_echo "$OTOOL64" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689 fi
7690 if test -z "$ac_cv_prog_OTOOL64"; then
7691   ac_ct_OTOOL64=$OTOOL64
7692   # Extract the first word of "otool64", so it can be a program name with args.
7693 set dummy otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$ac_ct_OTOOL64"; then
7700   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_prog_ac_ct_OTOOL64="otool64"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7720 if test -n "$ac_ct_OTOOL64"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7722 $as_echo "$ac_ct_OTOOL64" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728   if test "x$ac_ct_OTOOL64" = x; then
7729     OTOOL64=":"
7730   else
7731     case $cross_compiling:$ac_tool_warned in
7732 yes:)
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7735 ac_tool_warned=yes ;;
7736 esac
7737     OTOOL64=$ac_ct_OTOOL64
7738   fi
7739 else
7740   OTOOL64="$ac_cv_prog_OTOOL64"
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7770 $as_echo_n "checking for -single_module linker flag... " >&6; }
7771 if ${lt_cv_apple_cc_single_mod+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   lt_cv_apple_cc_single_mod=no
7775       if test -z "$LT_MULTI_MODULE"; then
7776         # By default we will add the -single_module flag. You can override
7777         # by either setting the environment variable LT_MULTI_MODULE
7778         # non-empty at configure time, or by adding -multi_module to the
7779         # link flags.
7780         rm -rf libconftest.dylib*
7781         echo "int foo(void){return 1;}" > conftest.c
7782         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7783 -dynamiclib -Wl,-single_module conftest.c" >&5
7784         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7785           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7786         _lt_result=$?
7787         # If there is a non-empty error log, and "single_module"
7788         # appears in it, assume the flag caused a linker warning
7789         if test -s conftest.err && $GREP single_module conftest.err; then
7790           cat conftest.err >&5
7791         # Otherwise, if the output was created with a 0 exit code from
7792         # the compiler, it worked.
7793         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7794           lt_cv_apple_cc_single_mod=yes
7795         else
7796           cat conftest.err >&5
7797         fi
7798         rm -rf libconftest.dylib*
7799         rm -f conftest.*
7800       fi
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7803 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7804
7805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7806 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7807 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   lt_cv_ld_exported_symbols_list=no
7811       save_LDFLAGS=$LDFLAGS
7812       echo "_main" > conftest.sym
7813       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7814       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h.  */
7816
7817 int
7818 main ()
7819 {
7820
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_link "$LINENO"; then :
7826   lt_cv_ld_exported_symbols_list=yes
7827 else
7828   lt_cv_ld_exported_symbols_list=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext \
7831     conftest$ac_exeext conftest.$ac_ext
7832         LDFLAGS=$save_LDFLAGS
7833
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7836 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7837
7838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7839 $as_echo_n "checking for -force_load linker flag... " >&6; }
7840 if ${lt_cv_ld_force_load+:} false; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   lt_cv_ld_force_load=no
7844       cat > conftest.c << _LT_EOF
7845 int forced_loaded() { return 2;}
7846 _LT_EOF
7847       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7848       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7849       echo "$AR cru libconftest.a conftest.o" >&5
7850       $AR cru libconftest.a conftest.o 2>&5
7851       echo "$RANLIB libconftest.a" >&5
7852       $RANLIB libconftest.a 2>&5
7853       cat > conftest.c << _LT_EOF
7854 int main() { return 0;}
7855 _LT_EOF
7856       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7857       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7858       _lt_result=$?
7859       if test -s conftest.err && $GREP force_load conftest.err; then
7860         cat conftest.err >&5
7861       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7862         lt_cv_ld_force_load=yes
7863       else
7864         cat conftest.err >&5
7865       fi
7866         rm -f conftest.err libconftest.a conftest conftest.c
7867         rm -rf conftest.dSYM
7868
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7871 $as_echo "$lt_cv_ld_force_load" >&6; }
7872     case $host_os in
7873     rhapsody* | darwin1.[012])
7874       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7875     darwin1.*)
7876       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7877     darwin*) # darwin 5.x on
7878       # if running on 10.5 or later, the deployment target defaults
7879       # to the OS version, if on x86, and 10.4, the deployment
7880       # target defaults to 10.4. Don't you love it?
7881       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7882         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7883           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7884         10.[012]*)
7885           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7886         10.*)
7887           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7888       esac
7889     ;;
7890   esac
7891     if test yes = "$lt_cv_apple_cc_single_mod"; then
7892       _lt_dar_single_mod='$single_module'
7893     fi
7894     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7895       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7896     else
7897       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7898     fi
7899     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7900       _lt_dsymutil='~$DSYMUTIL $lib || :'
7901     else
7902       _lt_dsymutil=
7903     fi
7904     ;;
7905   esac
7906
7907 ac_ext=c
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7913 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7914 # On Suns, sometimes $CPP names a directory.
7915 if test -n "$CPP" && test -d "$CPP"; then
7916   CPP=
7917 fi
7918 if test -z "$CPP"; then
7919   if ${ac_cv_prog_CPP+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922       # Double quotes because CPP needs to be expanded
7923     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7924     do
7925       ac_preproc_ok=false
7926 for ac_c_preproc_warn_flag in '' yes
7927 do
7928   # Use a header file that comes with gcc, so configuring glibc
7929   # with a fresh cross-compiler works.
7930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7931   # <limits.h> exists even on freestanding compilers.
7932   # On the NeXT, cc -E runs the code through the compiler's parser,
7933   # not just through cpp. "Syntax error" is here to catch this case.
7934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h.  */
7936 #ifdef __STDC__
7937 # include <limits.h>
7938 #else
7939 # include <assert.h>
7940 #endif
7941                      Syntax error
7942 _ACEOF
7943 if ac_fn_c_try_cpp "$LINENO"; then :
7944
7945 else
7946   # Broken: fails on valid input.
7947 continue
7948 fi
7949 rm -f conftest.err conftest.i conftest.$ac_ext
7950
7951   # OK, works on sane cases.  Now check whether nonexistent headers
7952   # can be detected and how.
7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h.  */
7955 #include <ac_nonexistent.h>
7956 _ACEOF
7957 if ac_fn_c_try_cpp "$LINENO"; then :
7958   # Broken: success on invalid input.
7959 continue
7960 else
7961   # Passes both tests.
7962 ac_preproc_ok=:
7963 break
7964 fi
7965 rm -f conftest.err conftest.i conftest.$ac_ext
7966
7967 done
7968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7969 rm -f conftest.i conftest.err conftest.$ac_ext
7970 if $ac_preproc_ok; then :
7971   break
7972 fi
7973
7974     done
7975     ac_cv_prog_CPP=$CPP
7976
7977 fi
7978   CPP=$ac_cv_prog_CPP
7979 else
7980   ac_cv_prog_CPP=$CPP
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7983 $as_echo "$CPP" >&6; }
7984 ac_preproc_ok=false
7985 for ac_c_preproc_warn_flag in '' yes
7986 do
7987   # Use a header file that comes with gcc, so configuring glibc
7988   # with a fresh cross-compiler works.
7989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7990   # <limits.h> exists even on freestanding compilers.
7991   # On the NeXT, cc -E runs the code through the compiler's parser,
7992   # not just through cpp. "Syntax error" is here to catch this case.
7993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h.  */
7995 #ifdef __STDC__
7996 # include <limits.h>
7997 #else
7998 # include <assert.h>
7999 #endif
8000                      Syntax error
8001 _ACEOF
8002 if ac_fn_c_try_cpp "$LINENO"; then :
8003
8004 else
8005   # Broken: fails on valid input.
8006 continue
8007 fi
8008 rm -f conftest.err conftest.i conftest.$ac_ext
8009
8010   # OK, works on sane cases.  Now check whether nonexistent headers
8011   # can be detected and how.
8012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h.  */
8014 #include <ac_nonexistent.h>
8015 _ACEOF
8016 if ac_fn_c_try_cpp "$LINENO"; then :
8017   # Broken: success on invalid input.
8018 continue
8019 else
8020   # Passes both tests.
8021 ac_preproc_ok=:
8022 break
8023 fi
8024 rm -f conftest.err conftest.i conftest.$ac_ext
8025
8026 done
8027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8028 rm -f conftest.i conftest.err conftest.$ac_ext
8029 if $ac_preproc_ok; then :
8030
8031 else
8032   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8034 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8035 See \`config.log' for more details" "$LINENO" 5; }
8036 fi
8037
8038 ac_ext=c
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8046 $as_echo_n "checking for ANSI C header files... " >&6; }
8047 if ${ac_cv_header_stdc+:} false; then :
8048   $as_echo_n "(cached) " >&6
8049 else
8050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h.  */
8052 #include <stdlib.h>
8053 #include <stdarg.h>
8054 #include <string.h>
8055 #include <float.h>
8056
8057 int
8058 main ()
8059 {
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066   ac_cv_header_stdc=yes
8067 else
8068   ac_cv_header_stdc=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071
8072 if test $ac_cv_header_stdc = yes; then
8073   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h.  */
8076 #include <string.h>
8077
8078 _ACEOF
8079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8080   $EGREP "memchr" >/dev/null 2>&1; then :
8081
8082 else
8083   ac_cv_header_stdc=no
8084 fi
8085 rm -f conftest*
8086
8087 fi
8088
8089 if test $ac_cv_header_stdc = yes; then
8090   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h.  */
8093 #include <stdlib.h>
8094
8095 _ACEOF
8096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8097   $EGREP "free" >/dev/null 2>&1; then :
8098
8099 else
8100   ac_cv_header_stdc=no
8101 fi
8102 rm -f conftest*
8103
8104 fi
8105
8106 if test $ac_cv_header_stdc = yes; then
8107   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8108   if test "$cross_compiling" = yes; then :
8109   :
8110 else
8111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h.  */
8113 #include <ctype.h>
8114 #include <stdlib.h>
8115 #if ((' ' & 0x0FF) == 0x020)
8116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8118 #else
8119 # define ISLOWER(c) \
8120                    (('a' <= (c) && (c) <= 'i') \
8121                      || ('j' <= (c) && (c) <= 'r') \
8122                      || ('s' <= (c) && (c) <= 'z'))
8123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8124 #endif
8125
8126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8127 int
8128 main ()
8129 {
8130   int i;
8131   for (i = 0; i < 256; i++)
8132     if (XOR (islower (i), ISLOWER (i))
8133         || toupper (i) != TOUPPER (i))
8134       return 2;
8135   return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_run "$LINENO"; then :
8139
8140 else
8141   ac_cv_header_stdc=no
8142 fi
8143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8144   conftest.$ac_objext conftest.beam conftest.$ac_ext
8145 fi
8146
8147 fi
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8150 $as_echo "$ac_cv_header_stdc" >&6; }
8151 if test $ac_cv_header_stdc = yes; then
8152
8153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8154
8155 fi
8156
8157 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8158 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8159                   inttypes.h stdint.h unistd.h
8160 do :
8161   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8162 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8163 "
8164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8165   cat >>confdefs.h <<_ACEOF
8166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8167 _ACEOF
8168
8169 fi
8170
8171 done
8172
8173
8174 for ac_header in dlfcn.h
8175 do :
8176   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8177 "
8178 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8179   cat >>confdefs.h <<_ACEOF
8180 #define HAVE_DLFCN_H 1
8181 _ACEOF
8182
8183 fi
8184
8185 done
8186
8187
8188
8189
8190
8191 # Set options
8192
8193
8194
8195         enable_dlopen=no
8196
8197
8198   enable_win32_dll=no
8199
8200
8201             # Check whether --enable-shared was given.
8202 if test "${enable_shared+set}" = set; then :
8203   enableval=$enable_shared; p=${PACKAGE-default}
8204     case $enableval in
8205     yes) enable_shared=yes ;;
8206     no) enable_shared=no ;;
8207     *)
8208       enable_shared=no
8209       # Look at the argument we got.  We use all the common list separators.
8210       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8211       for pkg in $enableval; do
8212         IFS=$lt_save_ifs
8213         if test "X$pkg" = "X$p"; then
8214           enable_shared=yes
8215         fi
8216       done
8217       IFS=$lt_save_ifs
8218       ;;
8219     esac
8220 else
8221   enable_shared=yes
8222 fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232   # Check whether --enable-static was given.
8233 if test "${enable_static+set}" = set; then :
8234   enableval=$enable_static; p=${PACKAGE-default}
8235     case $enableval in
8236     yes) enable_static=yes ;;
8237     no) enable_static=no ;;
8238     *)
8239      enable_static=no
8240       # Look at the argument we got.  We use all the common list separators.
8241       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8242       for pkg in $enableval; do
8243         IFS=$lt_save_ifs
8244         if test "X$pkg" = "X$p"; then
8245           enable_static=yes
8246         fi
8247       done
8248       IFS=$lt_save_ifs
8249       ;;
8250     esac
8251 else
8252   enable_static=yes
8253 fi
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264 # Check whether --with-pic was given.
8265 if test "${with_pic+set}" = set; then :
8266   withval=$with_pic; lt_p=${PACKAGE-default}
8267     case $withval in
8268     yes|no) pic_mode=$withval ;;
8269     *)
8270       pic_mode=default
8271       # Look at the argument we got.  We use all the common list separators.
8272       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8273       for lt_pkg in $withval; do
8274         IFS=$lt_save_ifs
8275         if test "X$lt_pkg" = "X$lt_p"; then
8276           pic_mode=yes
8277         fi
8278       done
8279       IFS=$lt_save_ifs
8280       ;;
8281     esac
8282 else
8283   pic_mode=default
8284 fi
8285
8286
8287
8288
8289
8290
8291
8292
8293   # Check whether --enable-fast-install was given.
8294 if test "${enable_fast_install+set}" = set; then :
8295   enableval=$enable_fast_install; p=${PACKAGE-default}
8296     case $enableval in
8297     yes) enable_fast_install=yes ;;
8298     no) enable_fast_install=no ;;
8299     *)
8300       enable_fast_install=no
8301       # Look at the argument we got.  We use all the common list separators.
8302       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8303       for pkg in $enableval; do
8304         IFS=$lt_save_ifs
8305         if test "X$pkg" = "X$p"; then
8306           enable_fast_install=yes
8307         fi
8308       done
8309       IFS=$lt_save_ifs
8310       ;;
8311     esac
8312 else
8313   enable_fast_install=yes
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 # This can be used to rebuild libtool when needed
8327 LIBTOOL_DEPS=$ltmain
8328
8329 # Always use our own libtool.
8330 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361 test -z "$LN_S" && LN_S="ln -s"
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376 if test -n "${ZSH_VERSION+set}"; then
8377    setopt NO_GLOB_SUBST
8378 fi
8379
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8381 $as_echo_n "checking for objdir... " >&6; }
8382 if ${lt_cv_objdir+:} false; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   rm -f .libs 2>/dev/null
8386 mkdir .libs 2>/dev/null
8387 if test -d .libs; then
8388   lt_cv_objdir=.libs
8389 else
8390   # MS-DOS does not allow filenames that begin with a dot.
8391   lt_cv_objdir=_libs
8392 fi
8393 rmdir .libs 2>/dev/null
8394 fi
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8396 $as_echo "$lt_cv_objdir" >&6; }
8397 objdir=$lt_cv_objdir
8398
8399
8400
8401
8402
8403 cat >>confdefs.h <<_ACEOF
8404 #define LT_OBJDIR "$lt_cv_objdir/"
8405 _ACEOF
8406
8407
8408
8409
8410 case $host_os in
8411 aix3*)
8412   # AIX sometimes has problems with the GCC collect2 program.  For some
8413   # reason, if we set the COLLECT_NAMES environment variable, the problems
8414   # vanish in a puff of smoke.
8415   if test set != "${COLLECT_NAMES+set}"; then
8416     COLLECT_NAMES=
8417     export COLLECT_NAMES
8418   fi
8419   ;;
8420 esac
8421
8422 # Global variables:
8423 ofile=libtool
8424 can_build_shared=yes
8425
8426 # All known linkers require a '.a' archive for static linking (except MSVC,
8427 # which needs '.lib').
8428 libext=a
8429
8430 with_gnu_ld=$lt_cv_prog_gnu_ld
8431
8432 old_CC=$CC
8433 old_CFLAGS=$CFLAGS
8434
8435 # Set sane defaults for various variables
8436 test -z "$CC" && CC=cc
8437 test -z "$LTCC" && LTCC=$CC
8438 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8439 test -z "$LD" && LD=ld
8440 test -z "$ac_objext" && ac_objext=o
8441
8442 for cc_temp in $compiler""; do
8443   case $cc_temp in
8444     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8445     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8446     \-*) ;;
8447     *) break;;
8448   esac
8449 done
8450 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8451
8452
8453 # Only perform the check for file, if the check method requires it
8454 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8455 case $deplibs_check_method in
8456 file_magic*)
8457   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8459 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8460 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   case $MAGIC_CMD in
8464 [\\/*] |  ?:[\\/]*)
8465   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8466   ;;
8467 *)
8468   lt_save_MAGIC_CMD=$MAGIC_CMD
8469   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8470   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8471   for ac_dir in $ac_dummy; do
8472     IFS=$lt_save_ifs
8473     test -z "$ac_dir" && ac_dir=.
8474     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8475       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8476       if test -n "$file_magic_test_file"; then
8477         case $deplibs_check_method in
8478         "file_magic "*)
8479           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8480           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8481           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8482             $EGREP "$file_magic_regex" > /dev/null; then
8483             :
8484           else
8485             cat <<_LT_EOF 1>&2
8486
8487 *** Warning: the command libtool uses to detect shared libraries,
8488 *** $file_magic_cmd, produces output that libtool cannot recognize.
8489 *** The result is that libtool may fail to recognize shared libraries
8490 *** as such.  This will affect the creation of libtool libraries that
8491 *** depend on shared libraries, but programs linked with such libtool
8492 *** libraries will work regardless of this problem.  Nevertheless, you
8493 *** may want to report the problem to your system manager and/or to
8494 *** bug-libtool@gnu.org
8495
8496 _LT_EOF
8497           fi ;;
8498         esac
8499       fi
8500       break
8501     fi
8502   done
8503   IFS=$lt_save_ifs
8504   MAGIC_CMD=$lt_save_MAGIC_CMD
8505   ;;
8506 esac
8507 fi
8508
8509 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8510 if test -n "$MAGIC_CMD"; then
8511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8512 $as_echo "$MAGIC_CMD" >&6; }
8513 else
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8516 fi
8517
8518
8519
8520
8521
8522 if test -z "$lt_cv_path_MAGIC_CMD"; then
8523   if test -n "$ac_tool_prefix"; then
8524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8525 $as_echo_n "checking for file... " >&6; }
8526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   case $MAGIC_CMD in
8530 [\\/*] |  ?:[\\/]*)
8531   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8532   ;;
8533 *)
8534   lt_save_MAGIC_CMD=$MAGIC_CMD
8535   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8536   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537   for ac_dir in $ac_dummy; do
8538     IFS=$lt_save_ifs
8539     test -z "$ac_dir" && ac_dir=.
8540     if test -f "$ac_dir/file"; then
8541       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8542       if test -n "$file_magic_test_file"; then
8543         case $deplibs_check_method in
8544         "file_magic "*)
8545           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8547           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548             $EGREP "$file_magic_regex" > /dev/null; then
8549             :
8550           else
8551             cat <<_LT_EOF 1>&2
8552
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such.  This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem.  Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8561
8562 _LT_EOF
8563           fi ;;
8564         esac
8565       fi
8566       break
8567     fi
8568   done
8569   IFS=$lt_save_ifs
8570   MAGIC_CMD=$lt_save_MAGIC_CMD
8571   ;;
8572 esac
8573 fi
8574
8575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8576 if test -n "$MAGIC_CMD"; then
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8579 else
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584
8585   else
8586     MAGIC_CMD=:
8587   fi
8588 fi
8589
8590   fi
8591   ;;
8592 esac
8593
8594 # Use C for the default configuration in the libtool script
8595
8596 lt_save_CC=$CC
8597 ac_ext=c
8598 ac_cpp='$CPP $CPPFLAGS'
8599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8602
8603
8604 # Source file extension for C test sources.
8605 ac_ext=c
8606
8607 # Object file extension for compiled C test sources.
8608 objext=o
8609 objext=$objext
8610
8611 # Code to be used in simple compile tests
8612 lt_simple_compile_test_code="int some_variable = 0;"
8613
8614 # Code to be used in simple link tests
8615 lt_simple_link_test_code='int main(){return(0);}'
8616
8617
8618
8619
8620
8621
8622
8623 # If no C compiler was specified, use CC.
8624 LTCC=${LTCC-"$CC"}
8625
8626 # If no C compiler flags were specified, use CFLAGS.
8627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8628
8629 # Allow CC to be a program name with arguments.
8630 compiler=$CC
8631
8632 # Save the default compiler, since it gets overwritten when the other
8633 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8634 compiler_DEFAULT=$CC
8635
8636 # save warnings/boilerplate of simple test code
8637 ac_outfile=conftest.$ac_objext
8638 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8640 _lt_compiler_boilerplate=`cat conftest.err`
8641 $RM conftest*
8642
8643 ac_outfile=conftest.$ac_objext
8644 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8646 _lt_linker_boilerplate=`cat conftest.err`
8647 $RM -r conftest*
8648
8649
8650 ## CAVEAT EMPTOR:
8651 ## There is no encapsulation within the following macros, do not change
8652 ## the running order or otherwise move them around unless you know exactly
8653 ## what you are doing...
8654 if test -n "$compiler"; then
8655
8656 lt_prog_compiler_no_builtin_flag=
8657
8658 if test yes = "$GCC"; then
8659   case $cc_basename in
8660   nvcc*)
8661     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8662   *)
8663     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8664   esac
8665
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8667 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8668 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   lt_cv_prog_compiler_rtti_exceptions=no
8672    ac_outfile=conftest.$ac_objext
8673    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8674    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8675    # Insert the option either (1) after the last *FLAGS variable, or
8676    # (2) before a word containing "conftest.", or (3) at the end.
8677    # Note that $ac_compile itself does not contain backslashes and begins
8678    # with a dollar sign (not a hyphen), so the echo should work correctly.
8679    # The option is referenced via a variable to avoid confusing sed.
8680    lt_compile=`echo "$ac_compile" | $SED \
8681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8683    -e 's:$: $lt_compiler_flag:'`
8684    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8685    (eval "$lt_compile" 2>conftest.err)
8686    ac_status=$?
8687    cat conftest.err >&5
8688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689    if (exit $ac_status) && test -s "$ac_outfile"; then
8690      # The compiler can only warn and ignore the option if not recognized
8691      # So say no if there are warnings other than the usual output.
8692      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8693      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8694      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8695        lt_cv_prog_compiler_rtti_exceptions=yes
8696      fi
8697    fi
8698    $RM conftest*
8699
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8702 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8703
8704 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8705     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8706 else
8707     :
8708 fi
8709
8710 fi
8711
8712
8713
8714
8715
8716
8717   lt_prog_compiler_wl=
8718 lt_prog_compiler_pic=
8719 lt_prog_compiler_static=
8720
8721
8722   if test yes = "$GCC"; then
8723     lt_prog_compiler_wl='-Wl,'
8724     lt_prog_compiler_static='-static'
8725
8726     case $host_os in
8727       aix*)
8728       # All AIX code is PIC.
8729       if test ia64 = "$host_cpu"; then
8730         # AIX 5 now supports IA64 processor
8731         lt_prog_compiler_static='-Bstatic'
8732       fi
8733       lt_prog_compiler_pic='-fPIC'
8734       ;;
8735
8736     amigaos*)
8737       case $host_cpu in
8738       powerpc)
8739             # see comment about AmigaOS4 .so support
8740             lt_prog_compiler_pic='-fPIC'
8741         ;;
8742       m68k)
8743             # FIXME: we need at least 68020 code to build shared libraries, but
8744             # adding the '-m68020' flag to GCC prevents building anything better,
8745             # like '-m68040'.
8746             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8747         ;;
8748       esac
8749       ;;
8750
8751     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8752       # PIC is the default for these OSes.
8753       ;;
8754
8755     mingw* | cygwin* | pw32* | os2* | cegcc*)
8756       # This hack is so that the source file can tell whether it is being
8757       # built for inclusion in a dll (and should export symbols for example).
8758       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8759       # (--disable-auto-import) libraries
8760       lt_prog_compiler_pic='-DDLL_EXPORT'
8761       ;;
8762
8763     darwin* | rhapsody*)
8764       # PIC is the default on this platform
8765       # Common symbols not allowed in MH_DYLIB files
8766       lt_prog_compiler_pic='-fno-common'
8767       ;;
8768
8769     haiku*)
8770       # PIC is the default for Haiku.
8771       # The "-static" flag exists, but is broken.
8772       lt_prog_compiler_static=
8773       ;;
8774
8775     hpux*)
8776       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8777       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8778       # sets the default TLS model and affects inlining.
8779       case $host_cpu in
8780       hppa*64*)
8781         # +Z the default
8782         ;;
8783       *)
8784         lt_prog_compiler_pic='-fPIC'
8785         ;;
8786       esac
8787       ;;
8788
8789     interix[3-9]*)
8790       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8791       # Instead, we relocate shared libraries at runtime.
8792       ;;
8793
8794     msdosdjgpp*)
8795       # Just because we use GCC doesn't mean we suddenly get shared libraries
8796       # on systems that don't support them.
8797       lt_prog_compiler_can_build_shared=no
8798       enable_shared=no
8799       ;;
8800
8801     *nto* | *qnx*)
8802       # QNX uses GNU C++, but need to define -shared option too, otherwise
8803       # it will coredump.
8804       lt_prog_compiler_pic='-fPIC -shared'
8805       ;;
8806
8807     sysv4*MP*)
8808       if test -d /usr/nec; then
8809         lt_prog_compiler_pic=-Kconform_pic
8810       fi
8811       ;;
8812
8813     *)
8814       lt_prog_compiler_pic='-fPIC'
8815       ;;
8816     esac
8817
8818     case $cc_basename in
8819     nvcc*) # Cuda Compiler Driver 2.2
8820       lt_prog_compiler_wl='-Xlinker '
8821       if test -n "$lt_prog_compiler_pic"; then
8822         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8823       fi
8824       ;;
8825     esac
8826   else
8827     # PORTME Check for flag to pass linker flags through the system compiler.
8828     case $host_os in
8829     aix*)
8830       lt_prog_compiler_wl='-Wl,'
8831       if test ia64 = "$host_cpu"; then
8832         # AIX 5 now supports IA64 processor
8833         lt_prog_compiler_static='-Bstatic'
8834       else
8835         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8836       fi
8837       ;;
8838
8839     darwin* | rhapsody*)
8840       # PIC is the default on this platform
8841       # Common symbols not allowed in MH_DYLIB files
8842       lt_prog_compiler_pic='-fno-common'
8843       case $cc_basename in
8844       nagfor*)
8845         # NAG Fortran compiler
8846         lt_prog_compiler_wl='-Wl,-Wl,,'
8847         lt_prog_compiler_pic='-PIC'
8848         lt_prog_compiler_static='-Bstatic'
8849         ;;
8850       esac
8851       ;;
8852
8853     mingw* | cygwin* | pw32* | os2* | cegcc*)
8854       # This hack is so that the source file can tell whether it is being
8855       # built for inclusion in a dll (and should export symbols for example).
8856       lt_prog_compiler_pic='-DDLL_EXPORT'
8857       ;;
8858
8859     hpux9* | hpux10* | hpux11*)
8860       lt_prog_compiler_wl='-Wl,'
8861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8862       # not for PA HP-UX.
8863       case $host_cpu in
8864       hppa*64*|ia64*)
8865         # +Z the default
8866         ;;
8867       *)
8868         lt_prog_compiler_pic='+Z'
8869         ;;
8870       esac
8871       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8872       lt_prog_compiler_static='$wl-a ${wl}archive'
8873       ;;
8874
8875     irix5* | irix6* | nonstopux*)
8876       lt_prog_compiler_wl='-Wl,'
8877       # PIC (with -KPIC) is the default.
8878       lt_prog_compiler_static='-non_shared'
8879       ;;
8880
8881     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8882       case $cc_basename in
8883       # old Intel for x86_64, which still supported -KPIC.
8884       ecc*)
8885         lt_prog_compiler_wl='-Wl,'
8886         lt_prog_compiler_pic='-KPIC'
8887         lt_prog_compiler_static='-static'
8888         ;;
8889       # icc used to be incompatible with GCC.
8890       # ICC 10 doesn't accept -KPIC any more.
8891       icc* | ifort*)
8892         lt_prog_compiler_wl='-Wl,'
8893         lt_prog_compiler_pic='-fPIC'
8894         lt_prog_compiler_static='-static'
8895         ;;
8896       # Lahey Fortran 8.1.
8897       lf95*)
8898         lt_prog_compiler_wl='-Wl,'
8899         lt_prog_compiler_pic='--shared'
8900         lt_prog_compiler_static='--static'
8901         ;;
8902       nagfor*)
8903         # NAG Fortran compiler
8904         lt_prog_compiler_wl='-Wl,-Wl,,'
8905         lt_prog_compiler_pic='-PIC'
8906         lt_prog_compiler_static='-Bstatic'
8907         ;;
8908       tcc*)
8909         # Fabrice Bellard et al's Tiny C Compiler
8910         lt_prog_compiler_wl='-Wl,'
8911         lt_prog_compiler_pic='-fPIC'
8912         lt_prog_compiler_static='-static'
8913         ;;
8914       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8915         # Portland Group compilers (*not* the Pentium gcc compiler,
8916         # which looks to be a dead project)
8917         lt_prog_compiler_wl='-Wl,'
8918         lt_prog_compiler_pic='-fpic'
8919         lt_prog_compiler_static='-Bstatic'
8920         ;;
8921       ccc*)
8922         lt_prog_compiler_wl='-Wl,'
8923         # All Alpha code is PIC.
8924         lt_prog_compiler_static='-non_shared'
8925         ;;
8926       xl* | bgxl* | bgf* | mpixl*)
8927         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8928         lt_prog_compiler_wl='-Wl,'
8929         lt_prog_compiler_pic='-qpic'
8930         lt_prog_compiler_static='-qstaticlink'
8931         ;;
8932       *)
8933         case `$CC -V 2>&1 | sed 5q` in
8934         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8935           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8936           lt_prog_compiler_pic='-KPIC'
8937           lt_prog_compiler_static='-Bstatic'
8938           lt_prog_compiler_wl=''
8939           ;;
8940         *Sun\ F* | *Sun*Fortran*)
8941           lt_prog_compiler_pic='-KPIC'
8942           lt_prog_compiler_static='-Bstatic'
8943           lt_prog_compiler_wl='-Qoption ld '
8944           ;;
8945         *Sun\ C*)
8946           # Sun C 5.9
8947           lt_prog_compiler_pic='-KPIC'
8948           lt_prog_compiler_static='-Bstatic'
8949           lt_prog_compiler_wl='-Wl,'
8950           ;;
8951         *Intel*\ [CF]*Compiler*)
8952           lt_prog_compiler_wl='-Wl,'
8953           lt_prog_compiler_pic='-fPIC'
8954           lt_prog_compiler_static='-static'
8955           ;;
8956         *Portland\ Group*)
8957           lt_prog_compiler_wl='-Wl,'
8958           lt_prog_compiler_pic='-fpic'
8959           lt_prog_compiler_static='-Bstatic'
8960           ;;
8961         esac
8962         ;;
8963       esac
8964       ;;
8965
8966     newsos6)
8967       lt_prog_compiler_pic='-KPIC'
8968       lt_prog_compiler_static='-Bstatic'
8969       ;;
8970
8971     *nto* | *qnx*)
8972       # QNX uses GNU C++, but need to define -shared option too, otherwise
8973       # it will coredump.
8974       lt_prog_compiler_pic='-fPIC -shared'
8975       ;;
8976
8977     osf3* | osf4* | osf5*)
8978       lt_prog_compiler_wl='-Wl,'
8979       # All OSF/1 code is PIC.
8980       lt_prog_compiler_static='-non_shared'
8981       ;;
8982
8983     rdos*)
8984       lt_prog_compiler_static='-non_shared'
8985       ;;
8986
8987     solaris*)
8988       lt_prog_compiler_pic='-KPIC'
8989       lt_prog_compiler_static='-Bstatic'
8990       case $cc_basename in
8991       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8992         lt_prog_compiler_wl='-Qoption ld ';;
8993       *)
8994         lt_prog_compiler_wl='-Wl,';;
8995       esac
8996       ;;
8997
8998     sunos4*)
8999       lt_prog_compiler_wl='-Qoption ld '
9000       lt_prog_compiler_pic='-PIC'
9001       lt_prog_compiler_static='-Bstatic'
9002       ;;
9003
9004     sysv4 | sysv4.2uw2* | sysv4.3*)
9005       lt_prog_compiler_wl='-Wl,'
9006       lt_prog_compiler_pic='-KPIC'
9007       lt_prog_compiler_static='-Bstatic'
9008       ;;
9009
9010     sysv4*MP*)
9011       if test -d /usr/nec; then
9012         lt_prog_compiler_pic='-Kconform_pic'
9013         lt_prog_compiler_static='-Bstatic'
9014       fi
9015       ;;
9016
9017     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9018       lt_prog_compiler_wl='-Wl,'
9019       lt_prog_compiler_pic='-KPIC'
9020       lt_prog_compiler_static='-Bstatic'
9021       ;;
9022
9023     unicos*)
9024       lt_prog_compiler_wl='-Wl,'
9025       lt_prog_compiler_can_build_shared=no
9026       ;;
9027
9028     uts4*)
9029       lt_prog_compiler_pic='-pic'
9030       lt_prog_compiler_static='-Bstatic'
9031       ;;
9032
9033     *)
9034       lt_prog_compiler_can_build_shared=no
9035       ;;
9036     esac
9037   fi
9038
9039 case $host_os in
9040   # For platforms that do not support PIC, -DPIC is meaningless:
9041   *djgpp*)
9042     lt_prog_compiler_pic=
9043     ;;
9044   *)
9045     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9046     ;;
9047 esac
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9050 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9051 if ${lt_cv_prog_compiler_pic+:} false; then :
9052   $as_echo_n "(cached) " >&6
9053 else
9054   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9055 fi
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9057 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9058 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9059
9060 #
9061 # Check to make sure the PIC flag actually works.
9062 #
9063 if test -n "$lt_prog_compiler_pic"; then
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9065 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9066 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9067   $as_echo_n "(cached) " >&6
9068 else
9069   lt_cv_prog_compiler_pic_works=no
9070    ac_outfile=conftest.$ac_objext
9071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9073    # Insert the option either (1) after the last *FLAGS variable, or
9074    # (2) before a word containing "conftest.", or (3) at the end.
9075    # Note that $ac_compile itself does not contain backslashes and begins
9076    # with a dollar sign (not a hyphen), so the echo should work correctly.
9077    # The option is referenced via a variable to avoid confusing sed.
9078    lt_compile=`echo "$ac_compile" | $SED \
9079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081    -e 's:$: $lt_compiler_flag:'`
9082    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083    (eval "$lt_compile" 2>conftest.err)
9084    ac_status=$?
9085    cat conftest.err >&5
9086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087    if (exit $ac_status) && test -s "$ac_outfile"; then
9088      # The compiler can only warn and ignore the option if not recognized
9089      # So say no if there are warnings other than the usual output.
9090      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9091      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9092      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9093        lt_cv_prog_compiler_pic_works=yes
9094      fi
9095    fi
9096    $RM conftest*
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9100 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9101
9102 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9103     case $lt_prog_compiler_pic in
9104      "" | " "*) ;;
9105      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9106      esac
9107 else
9108     lt_prog_compiler_pic=
9109      lt_prog_compiler_can_build_shared=no
9110 fi
9111
9112 fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124 #
9125 # Check to make sure the static flag actually works.
9126 #
9127 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9129 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9130 if ${lt_cv_prog_compiler_static_works+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   lt_cv_prog_compiler_static_works=no
9134    save_LDFLAGS=$LDFLAGS
9135    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9136    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9137    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9138      # The linker can only warn and ignore the option if not recognized
9139      # So say no if there are warnings
9140      if test -s conftest.err; then
9141        # Append any errors to the config.log.
9142        cat conftest.err 1>&5
9143        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9144        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145        if diff conftest.exp conftest.er2 >/dev/null; then
9146          lt_cv_prog_compiler_static_works=yes
9147        fi
9148      else
9149        lt_cv_prog_compiler_static_works=yes
9150      fi
9151    fi
9152    $RM -r conftest*
9153    LDFLAGS=$save_LDFLAGS
9154
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9157 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9158
9159 if test yes = "$lt_cv_prog_compiler_static_works"; then
9160     :
9161 else
9162     lt_prog_compiler_static=
9163 fi
9164
9165
9166
9167
9168
9169
9170
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9172 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9173 if ${lt_cv_prog_compiler_c_o+:} false; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   lt_cv_prog_compiler_c_o=no
9177    $RM -r conftest 2>/dev/null
9178    mkdir conftest
9179    cd conftest
9180    mkdir out
9181    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182
9183    lt_compiler_flag="-o out/conftest2.$ac_objext"
9184    # Insert the option either (1) after the last *FLAGS variable, or
9185    # (2) before a word containing "conftest.", or (3) at the end.
9186    # Note that $ac_compile itself does not contain backslashes and begins
9187    # with a dollar sign (not a hyphen), so the echo should work correctly.
9188    lt_compile=`echo "$ac_compile" | $SED \
9189    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9190    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9191    -e 's:$: $lt_compiler_flag:'`
9192    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9193    (eval "$lt_compile" 2>out/conftest.err)
9194    ac_status=$?
9195    cat out/conftest.err >&5
9196    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9198    then
9199      # The compiler can only warn and ignore the option if not recognized
9200      # So say no if there are warnings
9201      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9202      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9203      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9204        lt_cv_prog_compiler_c_o=yes
9205      fi
9206    fi
9207    chmod u+w . 2>&5
9208    $RM conftest*
9209    # SGI C++ compiler will create directory out/ii_files/ for
9210    # template instantiation
9211    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9212    $RM out/* && rmdir out
9213    cd ..
9214    $RM -r conftest
9215    $RM conftest*
9216
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9219 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9220
9221
9222
9223
9224
9225
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9227 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9228 if ${lt_cv_prog_compiler_c_o+:} false; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   lt_cv_prog_compiler_c_o=no
9232    $RM -r conftest 2>/dev/null
9233    mkdir conftest
9234    cd conftest
9235    mkdir out
9236    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9237
9238    lt_compiler_flag="-o out/conftest2.$ac_objext"
9239    # Insert the option either (1) after the last *FLAGS variable, or
9240    # (2) before a word containing "conftest.", or (3) at the end.
9241    # Note that $ac_compile itself does not contain backslashes and begins
9242    # with a dollar sign (not a hyphen), so the echo should work correctly.
9243    lt_compile=`echo "$ac_compile" | $SED \
9244    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9245    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9246    -e 's:$: $lt_compiler_flag:'`
9247    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9248    (eval "$lt_compile" 2>out/conftest.err)
9249    ac_status=$?
9250    cat out/conftest.err >&5
9251    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9253    then
9254      # The compiler can only warn and ignore the option if not recognized
9255      # So say no if there are warnings
9256      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9257      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9258      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9259        lt_cv_prog_compiler_c_o=yes
9260      fi
9261    fi
9262    chmod u+w . 2>&5
9263    $RM conftest*
9264    # SGI C++ compiler will create directory out/ii_files/ for
9265    # template instantiation
9266    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9267    $RM out/* && rmdir out
9268    cd ..
9269    $RM -r conftest
9270    $RM conftest*
9271
9272 fi
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9274 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9275
9276
9277
9278
9279 hard_links=nottested
9280 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9281   # do not overwrite the value of need_locks provided by the user
9282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9283 $as_echo_n "checking if we can lock with hard links... " >&6; }
9284   hard_links=yes
9285   $RM conftest*
9286   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9287   touch conftest.a
9288   ln conftest.a conftest.b 2>&5 || hard_links=no
9289   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9291 $as_echo "$hard_links" >&6; }
9292   if test no = "$hard_links"; then
9293     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9294 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9295     need_locks=warn
9296   fi
9297 else
9298   need_locks=no
9299 fi
9300
9301
9302
9303
9304
9305
9306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9307 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9308
9309   runpath_var=
9310   allow_undefined_flag=
9311   always_export_symbols=no
9312   archive_cmds=
9313   archive_expsym_cmds=
9314   compiler_needs_object=no
9315   enable_shared_with_static_runtimes=no
9316   export_dynamic_flag_spec=
9317   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9318   hardcode_automatic=no
9319   hardcode_direct=no
9320   hardcode_direct_absolute=no
9321   hardcode_libdir_flag_spec=
9322   hardcode_libdir_separator=
9323   hardcode_minus_L=no
9324   hardcode_shlibpath_var=unsupported
9325   inherit_rpath=no
9326   link_all_deplibs=unknown
9327   module_cmds=
9328   module_expsym_cmds=
9329   old_archive_from_new_cmds=
9330   old_archive_from_expsyms_cmds=
9331   thread_safe_flag_spec=
9332   whole_archive_flag_spec=
9333   # include_expsyms should be a list of space-separated symbols to be *always*
9334   # included in the symbol list
9335   include_expsyms=
9336   # exclude_expsyms can be an extended regexp of symbols to exclude
9337   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9338   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9339   # as well as any symbol that contains 'd'.
9340   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9341   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9342   # platforms (ab)use it in PIC code, but their linkers get confused if
9343   # the symbol is explicitly referenced.  Since portable code cannot
9344   # rely on this symbol name, it's probably fine to never include it in
9345   # preloaded symbol tables.
9346   # Exclude shared library initialization/finalization symbols.
9347   extract_expsyms_cmds=
9348
9349   case $host_os in
9350   cygwin* | mingw* | pw32* | cegcc*)
9351     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9352     # When not using gcc, we currently assume that we are using
9353     # Microsoft Visual C++.
9354     if test yes != "$GCC"; then
9355       with_gnu_ld=no
9356     fi
9357     ;;
9358   interix*)
9359     # we just hope/assume this is gcc and not c89 (= MSVC++)
9360     with_gnu_ld=yes
9361     ;;
9362   openbsd* | bitrig*)
9363     with_gnu_ld=no
9364     ;;
9365   esac
9366
9367   ld_shlibs=yes
9368
9369   # On some targets, GNU ld is compatible enough with the native linker
9370   # that we're better off using the native interface for both.
9371   lt_use_gnu_ld_interface=no
9372   if test yes = "$with_gnu_ld"; then
9373     case $host_os in
9374       aix*)
9375         # The AIX port of GNU ld has always aspired to compatibility
9376         # with the native linker.  However, as the warning in the GNU ld
9377         # block says, versions before 2.19.5* couldn't really create working
9378         # shared libraries, regardless of the interface used.
9379         case `$LD -v 2>&1` in
9380           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9381           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9382           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9383           *)
9384             lt_use_gnu_ld_interface=yes
9385             ;;
9386         esac
9387         ;;
9388       *)
9389         lt_use_gnu_ld_interface=yes
9390         ;;
9391     esac
9392   fi
9393
9394   if test yes = "$lt_use_gnu_ld_interface"; then
9395     # If archive_cmds runs LD, not CC, wlarc should be empty
9396     wlarc='$wl'
9397
9398     # Set some defaults for GNU ld with shared library support. These
9399     # are reset later if shared libraries are not supported. Putting them
9400     # here allows them to be overridden if necessary.
9401     runpath_var=LD_RUN_PATH
9402     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9403     export_dynamic_flag_spec='$wl--export-dynamic'
9404     # ancient GNU ld didn't support --whole-archive et. al.
9405     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9406       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9407     else
9408       whole_archive_flag_spec=
9409     fi
9410     supports_anon_versioning=no
9411     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9412       *GNU\ gold*) supports_anon_versioning=yes ;;
9413       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9414       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9415       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9416       *\ 2.11.*) ;; # other 2.11 versions
9417       *) supports_anon_versioning=yes ;;
9418     esac
9419
9420     # See if GNU ld supports shared libraries.
9421     case $host_os in
9422     aix[3-9]*)
9423       # On AIX/PPC, the GNU linker is very broken
9424       if test ia64 != "$host_cpu"; then
9425         ld_shlibs=no
9426         cat <<_LT_EOF 1>&2
9427
9428 *** Warning: the GNU linker, at least up to release 2.19, is reported
9429 *** to be unable to reliably create shared libraries on AIX.
9430 *** Therefore, libtool is disabling shared libraries support.  If you
9431 *** really care for shared libraries, you may want to install binutils
9432 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9433 *** You will then need to restart the configuration process.
9434
9435 _LT_EOF
9436       fi
9437       ;;
9438
9439     amigaos*)
9440       case $host_cpu in
9441       powerpc)
9442             # see comment about AmigaOS4 .so support
9443             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9444             archive_expsym_cmds=''
9445         ;;
9446       m68k)
9447             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)'
9448             hardcode_libdir_flag_spec='-L$libdir'
9449             hardcode_minus_L=yes
9450         ;;
9451       esac
9452       ;;
9453
9454     beos*)
9455       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9456         allow_undefined_flag=unsupported
9457         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9458         # support --undefined.  This deserves some investigation.  FIXME
9459         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9460       else
9461         ld_shlibs=no
9462       fi
9463       ;;
9464
9465     cygwin* | mingw* | pw32* | cegcc*)
9466       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9467       # as there is no search path for DLLs.
9468       hardcode_libdir_flag_spec='-L$libdir'
9469       export_dynamic_flag_spec='$wl--export-all-symbols'
9470       allow_undefined_flag=unsupported
9471       always_export_symbols=no
9472       enable_shared_with_static_runtimes=yes
9473       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'
9474       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9475
9476       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9477         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478         # If the export-symbols file already is a .def file, use it as
9479         # is; otherwise, prepend EXPORTS...
9480         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9481           cp $export_symbols $output_objdir/$soname.def;
9482         else
9483           echo EXPORTS > $output_objdir/$soname.def;
9484           cat $export_symbols >> $output_objdir/$soname.def;
9485         fi~
9486         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9487       else
9488         ld_shlibs=no
9489       fi
9490       ;;
9491
9492     haiku*)
9493       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9494       link_all_deplibs=yes
9495       ;;
9496
9497     interix[3-9]*)
9498       hardcode_direct=no
9499       hardcode_shlibpath_var=no
9500       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9501       export_dynamic_flag_spec='$wl-E'
9502       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9503       # Instead, shared libraries are loaded at an image base (0x10000000 by
9504       # default) and relocated if they conflict, which is a slow very memory
9505       # consuming and fragmenting process.  To avoid this, we pick a random,
9506       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9507       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9508       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9509       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'
9510       ;;
9511
9512     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9513       tmp_diet=no
9514       if test linux-dietlibc = "$host_os"; then
9515         case $cc_basename in
9516           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9517         esac
9518       fi
9519       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9520          && test no = "$tmp_diet"
9521       then
9522         tmp_addflag=' $pic_flag'
9523         tmp_sharedflag='-shared'
9524         case $cc_basename,$host_cpu in
9525         pgcc*)                          # Portland Group C compiler
9526           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'
9527           tmp_addflag=' $pic_flag'
9528           ;;
9529         pgf77* | pgf90* | pgf95* | pgfortran*)
9530                                         # Portland Group f77 and f90 compilers
9531           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'
9532           tmp_addflag=' $pic_flag -Mnomain' ;;
9533         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9534           tmp_addflag=' -i_dynamic' ;;
9535         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9536           tmp_addflag=' -i_dynamic -nofor_main' ;;
9537         ifc* | ifort*)                  # Intel Fortran compiler
9538           tmp_addflag=' -nofor_main' ;;
9539         lf95*)                          # Lahey Fortran 8.1
9540           whole_archive_flag_spec=
9541           tmp_sharedflag='--shared' ;;
9542         nagfor*)                        # NAGFOR 5.3
9543           tmp_sharedflag='-Wl,-shared' ;;
9544         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9545           tmp_sharedflag='-qmkshrobj'
9546           tmp_addflag= ;;
9547         nvcc*)  # Cuda Compiler Driver 2.2
9548           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'
9549           compiler_needs_object=yes
9550           ;;
9551         esac
9552         case `$CC -V 2>&1 | sed 5q` in
9553         *Sun\ C*)                       # Sun C 5.9
9554           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'
9555           compiler_needs_object=yes
9556           tmp_sharedflag='-G' ;;
9557         *Sun\ F*)                       # Sun Fortran 8.3
9558           tmp_sharedflag='-G' ;;
9559         esac
9560         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9561
9562         if test yes = "$supports_anon_versioning"; then
9563           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9564             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9565             echo "local: *; };" >> $output_objdir/$libname.ver~
9566             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9567         fi
9568
9569         case $cc_basename in
9570         xlf* | bgf* | bgxlf* | mpixlf*)
9571           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9572           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9573           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9574           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9575           if test yes = "$supports_anon_versioning"; then
9576             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9577               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9578               echo "local: *; };" >> $output_objdir/$libname.ver~
9579               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9580           fi
9581           ;;
9582         esac
9583       else
9584         ld_shlibs=no
9585       fi
9586       ;;
9587
9588     netbsd*)
9589       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9590         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9591         wlarc=
9592       else
9593         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9594         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9595       fi
9596       ;;
9597
9598     solaris*)
9599       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9600         ld_shlibs=no
9601         cat <<_LT_EOF 1>&2
9602
9603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9604 *** create shared libraries on Solaris systems.  Therefore, libtool
9605 *** is disabling shared libraries support.  We urge you to upgrade GNU
9606 *** binutils to release 2.9.1 or newer.  Another option is to modify
9607 *** your PATH or compiler configuration so that the native linker is
9608 *** used, and then restart.
9609
9610 _LT_EOF
9611       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9612         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9613         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9614       else
9615         ld_shlibs=no
9616       fi
9617       ;;
9618
9619     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9620       case `$LD -v 2>&1` in
9621         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9622         ld_shlibs=no
9623         cat <<_LT_EOF 1>&2
9624
9625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9626 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9627 *** is disabling shared libraries support.  We urge you to upgrade GNU
9628 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9629 *** your PATH or compiler configuration so that the native linker is
9630 *** used, and then restart.
9631
9632 _LT_EOF
9633         ;;
9634         *)
9635           # For security reasons, it is highly recommended that you always
9636           # use absolute paths for naming shared libraries, and exclude the
9637           # DT_RUNPATH tag from executables and libraries.  But doing so
9638           # requires that you compile everything twice, which is a pain.
9639           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9640             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9641             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9643           else
9644             ld_shlibs=no
9645           fi
9646         ;;
9647       esac
9648       ;;
9649
9650     sunos4*)
9651       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9652       wlarc=
9653       hardcode_direct=yes
9654       hardcode_shlibpath_var=no
9655       ;;
9656
9657     *)
9658       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9660         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9661       else
9662         ld_shlibs=no
9663       fi
9664       ;;
9665     esac
9666
9667     if test no = "$ld_shlibs"; then
9668       runpath_var=
9669       hardcode_libdir_flag_spec=
9670       export_dynamic_flag_spec=
9671       whole_archive_flag_spec=
9672     fi
9673   else
9674     # PORTME fill in a description of your system's linker (not GNU ld)
9675     case $host_os in
9676     aix3*)
9677       allow_undefined_flag=unsupported
9678       always_export_symbols=yes
9679       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'
9680       # Note: this linker hardcodes the directories in LIBPATH if there
9681       # are no directories specified by -L.
9682       hardcode_minus_L=yes
9683       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9684         # Neither direct hardcoding nor static linking is supported with a
9685         # broken collect2.
9686         hardcode_direct=unsupported
9687       fi
9688       ;;
9689
9690     aix[4-9]*)
9691       if test ia64 = "$host_cpu"; then
9692         # On IA64, the linker does run time linking by default, so we don't
9693         # have to do anything special.
9694         aix_use_runtimelinking=no
9695         exp_sym_flag='-Bexport'
9696         no_entry_flag=
9697       else
9698         # If we're using GNU nm, then we don't want the "-C" option.
9699         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9700         # Also, AIX nm treats weak defined symbols like other global
9701         # defined symbols, whereas GNU nm marks them as "W".
9702         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9703           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'
9704         else
9705           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'
9706         fi
9707         aix_use_runtimelinking=no
9708
9709         # Test if we are trying to use run time linking or normal
9710         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9711         # need to do runtime linking.
9712         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9713           for ld_flag in $LDFLAGS; do
9714           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9715             aix_use_runtimelinking=yes
9716             break
9717           fi
9718           done
9719           ;;
9720         esac
9721
9722         exp_sym_flag='-bexport'
9723         no_entry_flag='-bnoentry'
9724       fi
9725
9726       # When large executables or shared objects are built, AIX ld can
9727       # have problems creating the table of contents.  If linking a library
9728       # or program results in "error TOC overflow" add -mminimal-toc to
9729       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9730       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9731
9732       archive_cmds=''
9733       hardcode_direct=yes
9734       hardcode_direct_absolute=yes
9735       hardcode_libdir_separator=':'
9736       link_all_deplibs=yes
9737       file_list_spec='$wl-f,'
9738
9739       if test yes = "$GCC"; then
9740         case $host_os in aix4.[012]|aix4.[012].*)
9741         # We only want to do this on AIX 4.2 and lower, the check
9742         # below for broken collect2 doesn't work under 4.3+
9743           collect2name=`$CC -print-prog-name=collect2`
9744           if test -f "$collect2name" &&
9745            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9746           then
9747           # We have reworked collect2
9748           :
9749           else
9750           # We have old collect2
9751           hardcode_direct=unsupported
9752           # It fails to find uninstalled libraries when the uninstalled
9753           # path is not listed in the libpath.  Setting hardcode_minus_L
9754           # to unsupported forces relinking
9755           hardcode_minus_L=yes
9756           hardcode_libdir_flag_spec='-L$libdir'
9757           hardcode_libdir_separator=
9758           fi
9759           ;;
9760         esac
9761         shared_flag='-shared'
9762         if test yes = "$aix_use_runtimelinking"; then
9763           shared_flag="$shared_flag "'$wl-G'
9764         fi
9765       else
9766         # not using gcc
9767         if test ia64 = "$host_cpu"; then
9768         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9769         # chokes on -Wl,-G. The following line is correct:
9770           shared_flag='-G'
9771         else
9772           if test yes = "$aix_use_runtimelinking"; then
9773             shared_flag='$wl-G'
9774           else
9775             shared_flag='$wl-bM:SRE'
9776           fi
9777         fi
9778       fi
9779
9780       export_dynamic_flag_spec='$wl-bexpall'
9781       # It seems that -bexpall does not export symbols beginning with
9782       # underscore (_), so it is better to generate a list of symbols to export.
9783       always_export_symbols=yes
9784       if test yes = "$aix_use_runtimelinking"; then
9785         # Warning - without using the other runtime loading flags (-brtl),
9786         # -berok will link without error, but may produce a broken library.
9787         allow_undefined_flag='-berok'
9788         # Determine the default libpath from the value encoded in an
9789         # empty executable.
9790         if test set = "${lt_cv_aix_libpath+set}"; then
9791   aix_libpath=$lt_cv_aix_libpath
9792 else
9793   if ${lt_cv_aix_libpath_+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h.  */
9798
9799 int
9800 main ()
9801 {
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808
9809   lt_aix_libpath_sed='
9810       /Import File Strings/,/^$/ {
9811           /^0/ {
9812               s/^0  *\([^ ]*\) *$/\1/
9813               p
9814           }
9815       }'
9816   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9817   # Check for a 64-bit object if we didn't find anything.
9818   if test -z "$lt_cv_aix_libpath_"; then
9819     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820   fi
9821 fi
9822 rm -f core conftest.err conftest.$ac_objext \
9823     conftest$ac_exeext conftest.$ac_ext
9824   if test -z "$lt_cv_aix_libpath_"; then
9825     lt_cv_aix_libpath_=/usr/lib:/lib
9826   fi
9827
9828 fi
9829
9830   aix_libpath=$lt_cv_aix_libpath_
9831 fi
9832
9833         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9834         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9835       else
9836         if test ia64 = "$host_cpu"; then
9837           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9838           allow_undefined_flag="-z nodefs"
9839           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"
9840         else
9841          # Determine the default libpath from the value encoded in an
9842          # empty executable.
9843          if test set = "${lt_cv_aix_libpath+set}"; then
9844   aix_libpath=$lt_cv_aix_libpath
9845 else
9846   if ${lt_cv_aix_libpath_+:} false; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h.  */
9851
9852 int
9853 main ()
9854 {
9855
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 if ac_fn_c_try_link "$LINENO"; then :
9861
9862   lt_aix_libpath_sed='
9863       /Import File Strings/,/^$/ {
9864           /^0/ {
9865               s/^0  *\([^ ]*\) *$/\1/
9866               p
9867           }
9868       }'
9869   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9870   # Check for a 64-bit object if we didn't find anything.
9871   if test -z "$lt_cv_aix_libpath_"; then
9872     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9873   fi
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext \
9876     conftest$ac_exeext conftest.$ac_ext
9877   if test -z "$lt_cv_aix_libpath_"; then
9878     lt_cv_aix_libpath_=/usr/lib:/lib
9879   fi
9880
9881 fi
9882
9883   aix_libpath=$lt_cv_aix_libpath_
9884 fi
9885
9886          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9887           # Warning - without using the other run time loading flags,
9888           # -berok will link without error, but may produce a broken library.
9889           no_undefined_flag=' $wl-bernotok'
9890           allow_undefined_flag=' $wl-berok'
9891           if test yes = "$with_gnu_ld"; then
9892             # We only use this code for GNU lds that support --whole-archive.
9893             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9894           else
9895             # Exported symbols can be pulled into shared objects from archives
9896             whole_archive_flag_spec='$convenience'
9897           fi
9898           archive_cmds_need_lc=yes
9899           # This is similar to how AIX traditionally builds its shared libraries.
9900           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'
9901         fi
9902       fi
9903       ;;
9904
9905     amigaos*)
9906       case $host_cpu in
9907       powerpc)
9908             # see comment about AmigaOS4 .so support
9909             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9910             archive_expsym_cmds=''
9911         ;;
9912       m68k)
9913             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)'
9914             hardcode_libdir_flag_spec='-L$libdir'
9915             hardcode_minus_L=yes
9916         ;;
9917       esac
9918       ;;
9919
9920     bsdi[45]*)
9921       export_dynamic_flag_spec=-rdynamic
9922       ;;
9923
9924     cygwin* | mingw* | pw32* | cegcc*)
9925       # When not using gcc, we currently assume that we are using
9926       # Microsoft Visual C++.
9927       # hardcode_libdir_flag_spec is actually meaningless, as there is
9928       # no search path for DLLs.
9929       case $cc_basename in
9930       cl*)
9931         # Native MSVC
9932         hardcode_libdir_flag_spec=' '
9933         allow_undefined_flag=unsupported
9934         always_export_symbols=yes
9935         file_list_spec='@'
9936         # Tell ltmain to make .lib files, not .a files.
9937         libext=lib
9938         # Tell ltmain to make .dll files, not .so files.
9939         shrext_cmds=.dll
9940         # FIXME: Setting linknames here is a bad hack.
9941         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9942         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9943             cp "$export_symbols" "$output_objdir/$soname.def";
9944             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9945           else
9946             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9947           fi~
9948           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9949           linknames='
9950         # The linker will not automatically build a static lib if we build a DLL.
9951         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9952         enable_shared_with_static_runtimes=yes
9953         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9954         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9955         # Don't use ranlib
9956         old_postinstall_cmds='chmod 644 $oldlib'
9957         postlink_cmds='lt_outputfile="@OUTPUT@"~
9958           lt_tool_outputfile="@TOOL_OUTPUT@"~
9959           case $lt_outputfile in
9960             *.exe|*.EXE) ;;
9961             *)
9962               lt_outputfile=$lt_outputfile.exe
9963               lt_tool_outputfile=$lt_tool_outputfile.exe
9964               ;;
9965           esac~
9966           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9967             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9968             $RM "$lt_outputfile.manifest";
9969           fi'
9970         ;;
9971       *)
9972         # Assume MSVC wrapper
9973         hardcode_libdir_flag_spec=' '
9974         allow_undefined_flag=unsupported
9975         # Tell ltmain to make .lib files, not .a files.
9976         libext=lib
9977         # Tell ltmain to make .dll files, not .so files.
9978         shrext_cmds=.dll
9979         # FIXME: Setting linknames here is a bad hack.
9980         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9981         # The linker will automatically build a .lib file if we build a DLL.
9982         old_archive_from_new_cmds='true'
9983         # FIXME: Should let the user specify the lib program.
9984         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9985         enable_shared_with_static_runtimes=yes
9986         ;;
9987       esac
9988       ;;
9989
9990     darwin* | rhapsody*)
9991
9992
9993   archive_cmds_need_lc=no
9994   hardcode_direct=no
9995   hardcode_automatic=yes
9996   hardcode_shlibpath_var=unsupported
9997   if test yes = "$lt_cv_ld_force_load"; then
9998     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\"`'
9999
10000   else
10001     whole_archive_flag_spec=''
10002   fi
10003   link_all_deplibs=yes
10004   allow_undefined_flag=$_lt_dar_allow_undefined
10005   case $cc_basename in
10006      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10007      *) _lt_dar_can_shared=$GCC ;;
10008   esac
10009   if test yes = "$_lt_dar_can_shared"; then
10010     output_verbose_link_cmd=func_echo_all
10011     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10012     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10013     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"
10014     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"
10015
10016   else
10017   ld_shlibs=no
10018   fi
10019
10020       ;;
10021
10022     dgux*)
10023       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024       hardcode_libdir_flag_spec='-L$libdir'
10025       hardcode_shlibpath_var=no
10026       ;;
10027
10028     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10029     # support.  Future versions do this automatically, but an explicit c++rt0.o
10030     # does not break anything, and helps significantly (at the cost of a little
10031     # extra space).
10032     freebsd2.2*)
10033       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10034       hardcode_libdir_flag_spec='-R$libdir'
10035       hardcode_direct=yes
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10040     freebsd2.*)
10041       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10042       hardcode_direct=yes
10043       hardcode_minus_L=yes
10044       hardcode_shlibpath_var=no
10045       ;;
10046
10047     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10048     freebsd* | dragonfly*)
10049       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10050       hardcode_libdir_flag_spec='-R$libdir'
10051       hardcode_direct=yes
10052       hardcode_shlibpath_var=no
10053       ;;
10054
10055     hpux9*)
10056       if test yes = "$GCC"; then
10057         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10058       else
10059         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10060       fi
10061       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10062       hardcode_libdir_separator=:
10063       hardcode_direct=yes
10064
10065       # hardcode_minus_L: Not really in the search PATH,
10066       # but as the default location of the library.
10067       hardcode_minus_L=yes
10068       export_dynamic_flag_spec='$wl-E'
10069       ;;
10070
10071     hpux10*)
10072       if test yes,no = "$GCC,$with_gnu_ld"; then
10073         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10074       else
10075         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10076       fi
10077       if test no = "$with_gnu_ld"; then
10078         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10079         hardcode_libdir_separator=:
10080         hardcode_direct=yes
10081         hardcode_direct_absolute=yes
10082         export_dynamic_flag_spec='$wl-E'
10083         # hardcode_minus_L: Not really in the search PATH,
10084         # but as the default location of the library.
10085         hardcode_minus_L=yes
10086       fi
10087       ;;
10088
10089     hpux11*)
10090       if test yes,no = "$GCC,$with_gnu_ld"; then
10091         case $host_cpu in
10092         hppa*64*)
10093           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10094           ;;
10095         ia64*)
10096           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10097           ;;
10098         *)
10099           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10100           ;;
10101         esac
10102       else
10103         case $host_cpu in
10104         hppa*64*)
10105           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10106           ;;
10107         ia64*)
10108           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10109           ;;
10110         *)
10111
10112           # Older versions of the 11.00 compiler do not understand -b yet
10113           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10114           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10115 $as_echo_n "checking if $CC understands -b... " >&6; }
10116 if ${lt_cv_prog_compiler__b+:} false; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119   lt_cv_prog_compiler__b=no
10120    save_LDFLAGS=$LDFLAGS
10121    LDFLAGS="$LDFLAGS -b"
10122    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10123    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10124      # The linker can only warn and ignore the option if not recognized
10125      # So say no if there are warnings
10126      if test -s conftest.err; then
10127        # Append any errors to the config.log.
10128        cat conftest.err 1>&5
10129        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10130        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10131        if diff conftest.exp conftest.er2 >/dev/null; then
10132          lt_cv_prog_compiler__b=yes
10133        fi
10134      else
10135        lt_cv_prog_compiler__b=yes
10136      fi
10137    fi
10138    $RM -r conftest*
10139    LDFLAGS=$save_LDFLAGS
10140
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10143 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10144
10145 if test yes = "$lt_cv_prog_compiler__b"; then
10146     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10147 else
10148     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10149 fi
10150
10151           ;;
10152         esac
10153       fi
10154       if test no = "$with_gnu_ld"; then
10155         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10156         hardcode_libdir_separator=:
10157
10158         case $host_cpu in
10159         hppa*64*|ia64*)
10160           hardcode_direct=no
10161           hardcode_shlibpath_var=no
10162           ;;
10163         *)
10164           hardcode_direct=yes
10165           hardcode_direct_absolute=yes
10166           export_dynamic_flag_spec='$wl-E'
10167
10168           # hardcode_minus_L: Not really in the search PATH,
10169           # but as the default location of the library.
10170           hardcode_minus_L=yes
10171           ;;
10172         esac
10173       fi
10174       ;;
10175
10176     irix5* | irix6* | nonstopux*)
10177       if test yes = "$GCC"; then
10178         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'
10179         # Try to use the -exported_symbol ld option, if it does not
10180         # work, assume that -exports_file does not work either and
10181         # implicitly export all symbols.
10182         # This should be the same for all languages, so no per-tag cache variable.
10183         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10184 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10185 if ${lt_cv_irix_exported_symbol+:} false; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   save_LDFLAGS=$LDFLAGS
10189            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10190            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h.  */
10192 int foo (void) { return 0; }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195   lt_cv_irix_exported_symbol=yes
10196 else
10197   lt_cv_irix_exported_symbol=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200     conftest$ac_exeext conftest.$ac_ext
10201            LDFLAGS=$save_LDFLAGS
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10204 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10205         if test yes = "$lt_cv_irix_exported_symbol"; then
10206           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'
10207         fi
10208       else
10209         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'
10210         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'
10211       fi
10212       archive_cmds_need_lc='no'
10213       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10214       hardcode_libdir_separator=:
10215       inherit_rpath=yes
10216       link_all_deplibs=yes
10217       ;;
10218
10219     netbsd*)
10220       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10221         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10222       else
10223         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10224       fi
10225       hardcode_libdir_flag_spec='-R$libdir'
10226       hardcode_direct=yes
10227       hardcode_shlibpath_var=no
10228       ;;
10229
10230     newsos6)
10231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232       hardcode_direct=yes
10233       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10234       hardcode_libdir_separator=:
10235       hardcode_shlibpath_var=no
10236       ;;
10237
10238     *nto* | *qnx*)
10239       ;;
10240
10241     openbsd* | bitrig*)
10242       if test -f /usr/libexec/ld.so; then
10243         hardcode_direct=yes
10244         hardcode_shlibpath_var=no
10245         hardcode_direct_absolute=yes
10246         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10247           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10248           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10249           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10250           export_dynamic_flag_spec='$wl-E'
10251         else
10252           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10254         fi
10255       else
10256         ld_shlibs=no
10257       fi
10258       ;;
10259
10260     os2*)
10261       hardcode_libdir_flag_spec='-L$libdir'
10262       hardcode_minus_L=yes
10263       allow_undefined_flag=unsupported
10264       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'
10265       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10266       ;;
10267
10268     osf3*)
10269       if test yes = "$GCC"; then
10270         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10271         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'
10272       else
10273         allow_undefined_flag=' -expect_unresolved \*'
10274         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'
10275       fi
10276       archive_cmds_need_lc='no'
10277       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10278       hardcode_libdir_separator=:
10279       ;;
10280
10281     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10282       if test yes = "$GCC"; then
10283         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10284         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'
10285         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10286       else
10287         allow_undefined_flag=' -expect_unresolved \*'
10288         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'
10289         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~
10290           $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'
10291
10292         # Both c and cxx compiler support -rpath directly
10293         hardcode_libdir_flag_spec='-rpath $libdir'
10294       fi
10295       archive_cmds_need_lc='no'
10296       hardcode_libdir_separator=:
10297       ;;
10298
10299     solaris*)
10300       no_undefined_flag=' -z defs'
10301       if test yes = "$GCC"; then
10302         wlarc='$wl'
10303         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10304         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10305           $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'
10306       else
10307         case `$CC -V 2>&1` in
10308         *"Compilers 5.0"*)
10309           wlarc=''
10310           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10312             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10313           ;;
10314         *)
10315           wlarc='$wl'
10316           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10317           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10318             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10319           ;;
10320         esac
10321       fi
10322       hardcode_libdir_flag_spec='-R$libdir'
10323       hardcode_shlibpath_var=no
10324       case $host_os in
10325       solaris2.[0-5] | solaris2.[0-5].*) ;;
10326       *)
10327         # The compiler driver will combine and reorder linker options,
10328         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10329         # but is careful enough not to reorder.
10330         # Supported since Solaris 2.6 (maybe 2.5.1?)
10331         if test yes = "$GCC"; then
10332           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10333         else
10334           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10335         fi
10336         ;;
10337       esac
10338       link_all_deplibs=yes
10339       ;;
10340
10341     sunos4*)
10342       if test sequent = "$host_vendor"; then
10343         # Use $CC to link under sequent, because it throws in some extra .o
10344         # files that make .init and .fini sections work.
10345         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10346       else
10347         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10348       fi
10349       hardcode_libdir_flag_spec='-L$libdir'
10350       hardcode_direct=yes
10351       hardcode_minus_L=yes
10352       hardcode_shlibpath_var=no
10353       ;;
10354
10355     sysv4)
10356       case $host_vendor in
10357         sni)
10358           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359           hardcode_direct=yes # is this really true???
10360         ;;
10361         siemens)
10362           ## LD is ld it makes a PLAMLIB
10363           ## CC just makes a GrossModule.
10364           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10365           reload_cmds='$CC -r -o $output$reload_objs'
10366           hardcode_direct=no
10367         ;;
10368         motorola)
10369           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10371         ;;
10372       esac
10373       runpath_var='LD_RUN_PATH'
10374       hardcode_shlibpath_var=no
10375       ;;
10376
10377     sysv4.3*)
10378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379       hardcode_shlibpath_var=no
10380       export_dynamic_flag_spec='-Bexport'
10381       ;;
10382
10383     sysv4*MP*)
10384       if test -d /usr/nec; then
10385         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386         hardcode_shlibpath_var=no
10387         runpath_var=LD_RUN_PATH
10388         hardcode_runpath_var=yes
10389         ld_shlibs=yes
10390       fi
10391       ;;
10392
10393     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10394       no_undefined_flag='$wl-z,text'
10395       archive_cmds_need_lc=no
10396       hardcode_shlibpath_var=no
10397       runpath_var='LD_RUN_PATH'
10398
10399       if test yes = "$GCC"; then
10400         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10402       else
10403         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405       fi
10406       ;;
10407
10408     sysv5* | sco3.2v5* | sco5v6*)
10409       # Note: We CANNOT use -z defs as we might desire, because we do not
10410       # link with -lc, and that would cause any symbols used from libc to
10411       # always be unresolved, which means just about no library would
10412       # ever link correctly.  If we're not using GNU ld we use -z text
10413       # though, which does catch some bad symbols but isn't as heavy-handed
10414       # as -z defs.
10415       no_undefined_flag='$wl-z,text'
10416       allow_undefined_flag='$wl-z,nodefs'
10417       archive_cmds_need_lc=no
10418       hardcode_shlibpath_var=no
10419       hardcode_libdir_flag_spec='$wl-R,$libdir'
10420       hardcode_libdir_separator=':'
10421       link_all_deplibs=yes
10422       export_dynamic_flag_spec='$wl-Bexport'
10423       runpath_var='LD_RUN_PATH'
10424
10425       if test yes = "$GCC"; then
10426         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428       else
10429         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431       fi
10432       ;;
10433
10434     uts4*)
10435       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436       hardcode_libdir_flag_spec='-L$libdir'
10437       hardcode_shlibpath_var=no
10438       ;;
10439
10440     *)
10441       ld_shlibs=no
10442       ;;
10443     esac
10444
10445     if test sni = "$host_vendor"; then
10446       case $host in
10447       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10448         export_dynamic_flag_spec='$wl-Blargedynsym'
10449         ;;
10450       esac
10451     fi
10452   fi
10453
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10455 $as_echo "$ld_shlibs" >&6; }
10456 test no = "$ld_shlibs" && can_build_shared=no
10457
10458 with_gnu_ld=$with_gnu_ld
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474 #
10475 # Do we need to explicitly link libc?
10476 #
10477 case "x$archive_cmds_need_lc" in
10478 x|xyes)
10479   # Assume -lc should be added
10480   archive_cmds_need_lc=yes
10481
10482   if test yes,yes = "$GCC,$enable_shared"; then
10483     case $archive_cmds in
10484     *'~'*)
10485       # FIXME: we may have to deal with multi-command sequences.
10486       ;;
10487     '$CC '*)
10488       # Test whether the compiler implicitly links with -lc since on some
10489       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10490       # to ld, don't add -lc before -lgcc.
10491       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10492 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10493 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   $RM conftest*
10497         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10498
10499         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10500   (eval $ac_compile) 2>&5
10501   ac_status=$?
10502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10503   test $ac_status = 0; } 2>conftest.err; then
10504           soname=conftest
10505           lib=conftest
10506           libobjs=conftest.$ac_objext
10507           deplibs=
10508           wl=$lt_prog_compiler_wl
10509           pic_flag=$lt_prog_compiler_pic
10510           compiler_flags=-v
10511           linker_flags=-v
10512           verstring=
10513           output_objdir=.
10514           libname=conftest
10515           lt_save_allow_undefined_flag=$allow_undefined_flag
10516           allow_undefined_flag=
10517           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10518   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10519   ac_status=$?
10520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10521   test $ac_status = 0; }
10522           then
10523             lt_cv_archive_cmds_need_lc=no
10524           else
10525             lt_cv_archive_cmds_need_lc=yes
10526           fi
10527           allow_undefined_flag=$lt_save_allow_undefined_flag
10528         else
10529           cat conftest.err 1>&5
10530         fi
10531         $RM conftest*
10532
10533 fi
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10535 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10536       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10537       ;;
10538     esac
10539   fi
10540   ;;
10541 esac
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10695 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10696
10697 if test yes = "$GCC"; then
10698   case $host_os in
10699     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10700     *) lt_awk_arg='/^libraries:/' ;;
10701   esac
10702   case $host_os in
10703     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10704     *) lt_sed_strip_eq='s|=/|/|g' ;;
10705   esac
10706   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10707   case $lt_search_path_spec in
10708   *\;*)
10709     # if the path contains ";" then we assume it to be the separator
10710     # otherwise default to the standard path separator (i.e. ":") - it is
10711     # assumed that no part of a normal pathname contains ";" but that should
10712     # okay in the real world where ";" in dirpaths is itself problematic.
10713     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10714     ;;
10715   *)
10716     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10717     ;;
10718   esac
10719   # Ok, now we have the path, separated by spaces, we can step through it
10720   # and add multilib dir if necessary...
10721   lt_tmp_lt_search_path_spec=
10722   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10723   # ...but if some path component already ends with the multilib dir we assume
10724   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10725   case "$lt_multi_os_dir; $lt_search_path_spec " in
10726   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10727     lt_multi_os_dir=
10728     ;;
10729   esac
10730   for lt_sys_path in $lt_search_path_spec; do
10731     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10732       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10733     elif test -n "$lt_multi_os_dir"; then
10734       test -d "$lt_sys_path" && \
10735         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10736     fi
10737   done
10738   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10739 BEGIN {RS = " "; FS = "/|\n";} {
10740   lt_foo = "";
10741   lt_count = 0;
10742   for (lt_i = NF; lt_i > 0; lt_i--) {
10743     if ($lt_i != "" && $lt_i != ".") {
10744       if ($lt_i == "..") {
10745         lt_count++;
10746       } else {
10747         if (lt_count == 0) {
10748           lt_foo = "/" $lt_i lt_foo;
10749         } else {
10750           lt_count--;
10751         }
10752       }
10753     }
10754   }
10755   if (lt_foo != "") { lt_freq[lt_foo]++; }
10756   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10757 }'`
10758   # AWK program above erroneously prepends '/' to C:/dos/paths
10759   # for these hosts.
10760   case $host_os in
10761     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10762       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10763   esac
10764   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10765 else
10766   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10767 fi
10768 library_names_spec=
10769 libname_spec='lib$name'
10770 soname_spec=
10771 shrext_cmds=.so
10772 postinstall_cmds=
10773 postuninstall_cmds=
10774 finish_cmds=
10775 finish_eval=
10776 shlibpath_var=
10777 shlibpath_overrides_runpath=unknown
10778 version_type=none
10779 dynamic_linker="$host_os ld.so"
10780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10781 need_lib_prefix=unknown
10782 hardcode_into_libs=no
10783
10784 # when you set need_version to no, make sure it does not cause -set_version
10785 # flags to be left without arguments
10786 need_version=unknown
10787
10788 case $host_os in
10789 aix3*)
10790   version_type=linux # correct to gnu/linux during the next big refactor
10791   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10792   shlibpath_var=LIBPATH
10793
10794   # AIX 3 has no versioning support, so we append a major version to the name.
10795   soname_spec='$libname$release$shared_ext$major'
10796   ;;
10797
10798 aix[4-9]*)
10799   version_type=linux # correct to gnu/linux during the next big refactor
10800   need_lib_prefix=no
10801   need_version=no
10802   hardcode_into_libs=yes
10803   if test ia64 = "$host_cpu"; then
10804     # AIX 5 supports IA64
10805     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10806     shlibpath_var=LD_LIBRARY_PATH
10807   else
10808     # With GCC up to 2.95.x, collect2 would create an import file
10809     # for dependence libraries.  The import file would start with
10810     # the line '#! .'.  This would cause the generated library to
10811     # depend on '.', always an invalid library.  This was fixed in
10812     # development snapshots of GCC prior to 3.0.
10813     case $host_os in
10814       aix4 | aix4.[01] | aix4.[01].*)
10815       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10816            echo ' yes '
10817            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10818         :
10819       else
10820         can_build_shared=no
10821       fi
10822       ;;
10823     esac
10824     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10825     # soname into executable. Probably we can add versioning support to
10826     # collect2, so additional links can be useful in future.
10827     if test yes = "$aix_use_runtimelinking"; then
10828       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10829       # instead of lib<name>.a to let people know that these are not
10830       # typical AIX shared libraries.
10831       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10832     else
10833       # We preserve .a as extension for shared libraries through AIX4.2
10834       # and later when we are not doing run time linking.
10835       library_names_spec='$libname$release.a $libname.a'
10836       soname_spec='$libname$release$shared_ext$major'
10837     fi
10838     shlibpath_var=LIBPATH
10839   fi
10840   ;;
10841
10842 amigaos*)
10843   case $host_cpu in
10844   powerpc)
10845     # Since July 2007 AmigaOS4 officially supports .so libraries.
10846     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10847     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848     ;;
10849   m68k)
10850     library_names_spec='$libname.ixlibrary $libname.a'
10851     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10852     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10853     ;;
10854   esac
10855   ;;
10856
10857 beos*)
10858   library_names_spec='$libname$shared_ext'
10859   dynamic_linker="$host_os ld.so"
10860   shlibpath_var=LIBRARY_PATH
10861   ;;
10862
10863 bsdi[45]*)
10864   version_type=linux # correct to gnu/linux during the next big refactor
10865   need_version=no
10866   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867   soname_spec='$libname$release$shared_ext$major'
10868   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10871   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10872   # the default ld.so.conf also contains /usr/contrib/lib and
10873   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10874   # libtool to hard-code these into programs
10875   ;;
10876
10877 cygwin* | mingw* | pw32* | cegcc*)
10878   version_type=windows
10879   shrext_cmds=.dll
10880   need_version=no
10881   need_lib_prefix=no
10882
10883   case $GCC,$cc_basename in
10884   yes,*)
10885     # gcc
10886     library_names_spec='$libname.dll.a'
10887     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10888     postinstall_cmds='base_file=`basename \$file`~
10889       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10890       dldir=$destdir/`dirname \$dlpath`~
10891       test -d \$dldir || mkdir -p \$dldir~
10892       $install_prog $dir/$dlname \$dldir/$dlname~
10893       chmod a+x \$dldir/$dlname~
10894       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10895         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10896       fi'
10897     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10898       dlpath=$dir/\$dldll~
10899        $RM \$dlpath'
10900     shlibpath_overrides_runpath=yes
10901
10902     case $host_os in
10903     cygwin*)
10904       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10905       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10906
10907       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10908       ;;
10909     mingw* | cegcc*)
10910       # MinGW DLLs use traditional 'lib' prefix
10911       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10912       ;;
10913     pw32*)
10914       # pw32 DLLs use 'pw' prefix rather than 'lib'
10915       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10916       ;;
10917     esac
10918     dynamic_linker='Win32 ld.exe'
10919     ;;
10920
10921   *,cl*)
10922     # Native MSVC
10923     libname_spec='$name'
10924     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10925     library_names_spec='$libname.dll.lib'
10926
10927     case $build_os in
10928     mingw*)
10929       sys_lib_search_path_spec=
10930       lt_save_ifs=$IFS
10931       IFS=';'
10932       for lt_path in $LIB
10933       do
10934         IFS=$lt_save_ifs
10935         # Let DOS variable expansion print the short 8.3 style file name.
10936         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10937         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10938       done
10939       IFS=$lt_save_ifs
10940       # Convert to MSYS style.
10941       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10942       ;;
10943     cygwin*)
10944       # Convert to unix form, then to dos form, then back to unix form
10945       # but this time dos style (no spaces!) so that the unix form looks
10946       # like /cygdrive/c/PROGRA~1:/cygdr...
10947       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10948       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10949       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10950       ;;
10951     *)
10952       sys_lib_search_path_spec=$LIB
10953       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10954         # It is most probably a Windows format PATH.
10955         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10956       else
10957         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10958       fi
10959       # FIXME: find the short name or the path components, as spaces are
10960       # common. (e.g. "Program Files" -> "PROGRA~1")
10961       ;;
10962     esac
10963
10964     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10965     postinstall_cmds='base_file=`basename \$file`~
10966       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10967       dldir=$destdir/`dirname \$dlpath`~
10968       test -d \$dldir || mkdir -p \$dldir~
10969       $install_prog $dir/$dlname \$dldir/$dlname'
10970     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10971       dlpath=$dir/\$dldll~
10972        $RM \$dlpath'
10973     shlibpath_overrides_runpath=yes
10974     dynamic_linker='Win32 link.exe'
10975     ;;
10976
10977   *)
10978     # Assume MSVC wrapper
10979     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10980     dynamic_linker='Win32 ld.exe'
10981     ;;
10982   esac
10983   # FIXME: first we should search . and the directory the executable is in
10984   shlibpath_var=PATH
10985   ;;
10986
10987 darwin* | rhapsody*)
10988   dynamic_linker="$host_os dyld"
10989   version_type=darwin
10990   need_lib_prefix=no
10991   need_version=no
10992   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10993   soname_spec='$libname$release$major$shared_ext'
10994   shlibpath_overrides_runpath=yes
10995   shlibpath_var=DYLD_LIBRARY_PATH
10996   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10997
10998   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11000   ;;
11001
11002 dgux*)
11003   version_type=linux # correct to gnu/linux during the next big refactor
11004   need_lib_prefix=no
11005   need_version=no
11006   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11007   soname_spec='$libname$release$shared_ext$major'
11008   shlibpath_var=LD_LIBRARY_PATH
11009   ;;
11010
11011 freebsd* | dragonfly*)
11012   # DragonFly does not have aout.  When/if they implement a new
11013   # versioning mechanism, adjust this.
11014   if test -x /usr/bin/objformat; then
11015     objformat=`/usr/bin/objformat`
11016   else
11017     case $host_os in
11018     freebsd[23].*) objformat=aout ;;
11019     *) objformat=elf ;;
11020     esac
11021   fi
11022   version_type=freebsd-$objformat
11023   case $version_type in
11024     freebsd-elf*)
11025       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11026       need_version=no
11027       need_lib_prefix=no
11028       ;;
11029     freebsd-*)
11030       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11031       need_version=yes
11032       ;;
11033   esac
11034   shlibpath_var=LD_LIBRARY_PATH
11035   case $host_os in
11036   freebsd2.*)
11037     shlibpath_overrides_runpath=yes
11038     ;;
11039   freebsd3.[01]* | freebsdelf3.[01]*)
11040     shlibpath_overrides_runpath=yes
11041     hardcode_into_libs=yes
11042     ;;
11043   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11044   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11045     shlibpath_overrides_runpath=no
11046     hardcode_into_libs=yes
11047     ;;
11048   *) # from 4.6 on, and DragonFly
11049     shlibpath_overrides_runpath=yes
11050     hardcode_into_libs=yes
11051     ;;
11052   esac
11053   ;;
11054
11055 haiku*)
11056   version_type=linux # correct to gnu/linux during the next big refactor
11057   need_lib_prefix=no
11058   need_version=no
11059   dynamic_linker="$host_os runtime_loader"
11060   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061   soname_spec='$libname$release$shared_ext$major'
11062   shlibpath_var=LIBRARY_PATH
11063   shlibpath_overrides_runpath=no
11064   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11065   hardcode_into_libs=yes
11066   ;;
11067
11068 hpux9* | hpux10* | hpux11*)
11069   # Give a soname corresponding to the major version so that dld.sl refuses to
11070   # link against other versions.
11071   version_type=sunos
11072   need_lib_prefix=no
11073   need_version=no
11074   case $host_cpu in
11075   ia64*)
11076     shrext_cmds='.so'
11077     hardcode_into_libs=yes
11078     dynamic_linker="$host_os dld.so"
11079     shlibpath_var=LD_LIBRARY_PATH
11080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11081     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082     soname_spec='$libname$release$shared_ext$major'
11083     if test 32 = "$HPUX_IA64_MODE"; then
11084       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11085     else
11086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11087     fi
11088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11089     ;;
11090   hppa*64*)
11091     shrext_cmds='.sl'
11092     hardcode_into_libs=yes
11093     dynamic_linker="$host_os dld.sl"
11094     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11096     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097     soname_spec='$libname$release$shared_ext$major'
11098     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11099     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11100     ;;
11101   *)
11102     shrext_cmds='.sl'
11103     dynamic_linker="$host_os dld.sl"
11104     shlibpath_var=SHLIB_PATH
11105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11106     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107     soname_spec='$libname$release$shared_ext$major'
11108     ;;
11109   esac
11110   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11111   postinstall_cmds='chmod 555 $lib'
11112   # or fails outright, so override atomically:
11113   install_override_mode=555
11114   ;;
11115
11116 interix[3-9]*)
11117   version_type=linux # correct to gnu/linux during the next big refactor
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121   soname_spec='$libname$release$shared_ext$major'
11122   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=no
11125   hardcode_into_libs=yes
11126   ;;
11127
11128 irix5* | irix6* | nonstopux*)
11129   case $host_os in
11130     nonstopux*) version_type=nonstopux ;;
11131     *)
11132         if test yes = "$lt_cv_prog_gnu_ld"; then
11133                 version_type=linux # correct to gnu/linux during the next big refactor
11134         else
11135                 version_type=irix
11136         fi ;;
11137   esac
11138   need_lib_prefix=no
11139   need_version=no
11140   soname_spec='$libname$release$shared_ext$major'
11141   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11142   case $host_os in
11143   irix5* | nonstopux*)
11144     libsuff= shlibsuff=
11145     ;;
11146   *)
11147     case $LD in # libtool.m4 will add one of these switches to LD
11148     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11149       libsuff= shlibsuff= libmagic=32-bit;;
11150     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11151       libsuff=32 shlibsuff=N32 libmagic=N32;;
11152     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11153       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11154     *) libsuff= shlibsuff= libmagic=never-match;;
11155     esac
11156     ;;
11157   esac
11158   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11159   shlibpath_overrides_runpath=no
11160   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11161   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11162   hardcode_into_libs=yes
11163   ;;
11164
11165 # No shared lib support for Linux oldld, aout, or coff.
11166 linux*oldld* | linux*aout* | linux*coff*)
11167   dynamic_linker=no
11168   ;;
11169
11170 linux*android*)
11171   version_type=none # Android doesn't support versioned libraries.
11172   need_lib_prefix=no
11173   need_version=no
11174   library_names_spec='$libname$release$shared_ext'
11175   soname_spec='$libname$release$shared_ext'
11176   finish_cmds=
11177   shlibpath_var=LD_LIBRARY_PATH
11178   shlibpath_overrides_runpath=yes
11179
11180   # This implies no fast_install, which is unacceptable.
11181   # Some rework will be needed to allow for fast_install
11182   # before this can be enabled.
11183   hardcode_into_libs=yes
11184
11185   dynamic_linker='Android linker'
11186   # Don't embed -rpath directories since the linker doesn't support them.
11187   hardcode_libdir_flag_spec='-L$libdir'
11188   ;;
11189
11190 # This must be glibc/ELF.
11191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11192   version_type=linux # correct to gnu/linux during the next big refactor
11193   need_lib_prefix=no
11194   need_version=no
11195   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196   soname_spec='$libname$release$shared_ext$major'
11197   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=no
11200
11201   # Some binutils ld are patched to set DT_RUNPATH
11202   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205   lt_cv_shlibpath_overrides_runpath=no
11206     save_LDFLAGS=$LDFLAGS
11207     save_libdir=$libdir
11208     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11209          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h.  */
11212
11213 int
11214 main ()
11215 {
11216
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_link "$LINENO"; then :
11222   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11223   lt_cv_shlibpath_overrides_runpath=yes
11224 fi
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext \
11227     conftest$ac_exeext conftest.$ac_ext
11228     LDFLAGS=$save_LDFLAGS
11229     libdir=$save_libdir
11230
11231 fi
11232
11233   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11234
11235   # This implies no fast_install, which is unacceptable.
11236   # Some rework will be needed to allow for fast_install
11237   # before this can be enabled.
11238   hardcode_into_libs=yes
11239
11240   # Append ld.so.conf contents to the search path
11241   if test -f /etc/ld.so.conf; then
11242     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' ' '`
11243     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11244   fi
11245
11246   # We used to test for /lib/ld.so.1 and disable shared libraries on
11247   # powerpc, because MkLinux only supported shared libraries with the
11248   # GNU dynamic linker.  Since this was broken with cross compilers,
11249   # most powerpc-linux boxes support dynamic linking these days and
11250   # people can always --disable-shared, the test was removed, and we
11251   # assume the GNU/Linux dynamic linker is in use.
11252   dynamic_linker='GNU/Linux ld.so'
11253   ;;
11254
11255 netbsd*)
11256   version_type=sunos
11257   need_lib_prefix=no
11258   need_version=no
11259   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11260     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11261     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11262     dynamic_linker='NetBSD (a.out) ld.so'
11263   else
11264     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265     soname_spec='$libname$release$shared_ext$major'
11266     dynamic_linker='NetBSD ld.elf_so'
11267   fi
11268   shlibpath_var=LD_LIBRARY_PATH
11269   shlibpath_overrides_runpath=yes
11270   hardcode_into_libs=yes
11271   ;;
11272
11273 newsos6)
11274   version_type=linux # correct to gnu/linux during the next big refactor
11275   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278   ;;
11279
11280 *nto* | *qnx*)
11281   version_type=qnx
11282   need_lib_prefix=no
11283   need_version=no
11284   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285   soname_spec='$libname$release$shared_ext$major'
11286   shlibpath_var=LD_LIBRARY_PATH
11287   shlibpath_overrides_runpath=no
11288   hardcode_into_libs=yes
11289   dynamic_linker='ldqnx.so'
11290   ;;
11291
11292 openbsd* | bitrig*)
11293   version_type=sunos
11294   sys_lib_dlsearch_path_spec=/usr/lib
11295   need_lib_prefix=no
11296   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11297     need_version=no
11298   else
11299     need_version=yes
11300   fi
11301   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11303   shlibpath_var=LD_LIBRARY_PATH
11304   shlibpath_overrides_runpath=yes
11305   ;;
11306
11307 os2*)
11308   libname_spec='$name'
11309   shrext_cmds=.dll
11310   need_lib_prefix=no
11311   library_names_spec='$libname$shared_ext $libname.a'
11312   dynamic_linker='OS/2 ld.exe'
11313   shlibpath_var=LIBPATH
11314   ;;
11315
11316 osf3* | osf4* | osf5*)
11317   version_type=osf
11318   need_lib_prefix=no
11319   need_version=no
11320   soname_spec='$libname$release$shared_ext$major'
11321   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11322   shlibpath_var=LD_LIBRARY_PATH
11323   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11324   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11325   ;;
11326
11327 rdos*)
11328   dynamic_linker=no
11329   ;;
11330
11331 solaris*)
11332   version_type=linux # correct to gnu/linux during the next big refactor
11333   need_lib_prefix=no
11334   need_version=no
11335   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336   soname_spec='$libname$release$shared_ext$major'
11337   shlibpath_var=LD_LIBRARY_PATH
11338   shlibpath_overrides_runpath=yes
11339   hardcode_into_libs=yes
11340   # ldd complains unless libraries are executable
11341   postinstall_cmds='chmod +x $lib'
11342   ;;
11343
11344 sunos4*)
11345   version_type=sunos
11346   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11347   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=yes
11350   if test yes = "$with_gnu_ld"; then
11351     need_lib_prefix=no
11352   fi
11353   need_version=yes
11354   ;;
11355
11356 sysv4 | sysv4.3*)
11357   version_type=linux # correct to gnu/linux during the next big refactor
11358   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359   soname_spec='$libname$release$shared_ext$major'
11360   shlibpath_var=LD_LIBRARY_PATH
11361   case $host_vendor in
11362     sni)
11363       shlibpath_overrides_runpath=no
11364       need_lib_prefix=no
11365       runpath_var=LD_RUN_PATH
11366       ;;
11367     siemens)
11368       need_lib_prefix=no
11369       ;;
11370     motorola)
11371       need_lib_prefix=no
11372       need_version=no
11373       shlibpath_overrides_runpath=no
11374       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11375       ;;
11376   esac
11377   ;;
11378
11379 sysv4*MP*)
11380   if test -d /usr/nec; then
11381     version_type=linux # correct to gnu/linux during the next big refactor
11382     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11383     soname_spec='$libname$shared_ext.$major'
11384     shlibpath_var=LD_LIBRARY_PATH
11385   fi
11386   ;;
11387
11388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11389   version_type=freebsd-elf
11390   need_lib_prefix=no
11391   need_version=no
11392   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11393   soname_spec='$libname$release$shared_ext$major'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   shlibpath_overrides_runpath=yes
11396   hardcode_into_libs=yes
11397   if test yes = "$with_gnu_ld"; then
11398     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11399   else
11400     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11401     case $host_os in
11402       sco3.2v5*)
11403         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11404         ;;
11405     esac
11406   fi
11407   sys_lib_dlsearch_path_spec='/usr/lib'
11408   ;;
11409
11410 tpf*)
11411   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11412   version_type=linux # correct to gnu/linux during the next big refactor
11413   need_lib_prefix=no
11414   need_version=no
11415   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11416   shlibpath_var=LD_LIBRARY_PATH
11417   shlibpath_overrides_runpath=no
11418   hardcode_into_libs=yes
11419   ;;
11420
11421 uts4*)
11422   version_type=linux # correct to gnu/linux during the next big refactor
11423   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424   soname_spec='$libname$release$shared_ext$major'
11425   shlibpath_var=LD_LIBRARY_PATH
11426   ;;
11427
11428 *)
11429   dynamic_linker=no
11430   ;;
11431 esac
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11433 $as_echo "$dynamic_linker" >&6; }
11434 test no = "$dynamic_linker" && can_build_shared=no
11435
11436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11437 if test yes = "$GCC"; then
11438   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11439 fi
11440
11441 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11442   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11443 fi
11444 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11445   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11446 fi
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11540 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11541 hardcode_action=
11542 if test -n "$hardcode_libdir_flag_spec" ||
11543    test -n "$runpath_var" ||
11544    test yes = "$hardcode_automatic"; then
11545
11546   # We can hardcode non-existent directories.
11547   if test no != "$hardcode_direct" &&
11548      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11549      # have to relink, otherwise we might link with an installed library
11550      # when we should be linking with a yet-to-be-installed one
11551      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11552      test no != "$hardcode_minus_L"; then
11553     # Linking always hardcodes the temporary library directory.
11554     hardcode_action=relink
11555   else
11556     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11557     hardcode_action=immediate
11558   fi
11559 else
11560   # We cannot hardcode anything, or else we can only hardcode existing
11561   # directories.
11562   hardcode_action=unsupported
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11565 $as_echo "$hardcode_action" >&6; }
11566
11567 if test relink = "$hardcode_action" ||
11568    test yes = "$inherit_rpath"; then
11569   # Fast installation is not supported
11570   enable_fast_install=no
11571 elif test yes = "$shlibpath_overrides_runpath" ||
11572      test no = "$enable_shared"; then
11573   # Fast installation is not necessary
11574   enable_fast_install=needless
11575 fi
11576
11577
11578
11579
11580
11581
11582   if test yes != "$enable_dlopen"; then
11583   enable_dlopen=unknown
11584   enable_dlopen_self=unknown
11585   enable_dlopen_self_static=unknown
11586 else
11587   lt_cv_dlopen=no
11588   lt_cv_dlopen_libs=
11589
11590   case $host_os in
11591   beos*)
11592     lt_cv_dlopen=load_add_on
11593     lt_cv_dlopen_libs=
11594     lt_cv_dlopen_self=yes
11595     ;;
11596
11597   mingw* | pw32* | cegcc*)
11598     lt_cv_dlopen=LoadLibrary
11599     lt_cv_dlopen_libs=
11600     ;;
11601
11602   cygwin*)
11603     lt_cv_dlopen=dlopen
11604     lt_cv_dlopen_libs=
11605     ;;
11606
11607   darwin*)
11608     # if libdl is installed we need to link against it
11609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11610 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11611 if ${ac_cv_lib_dl_dlopen+:} false; then :
11612   $as_echo_n "(cached) " >&6
11613 else
11614   ac_check_lib_save_LIBS=$LIBS
11615 LIBS="-ldl  $LIBS"
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h.  */
11618
11619 /* Override any GCC internal prototype to avoid an error.
11620    Use char because int might match the return type of a GCC
11621    builtin and then its argument prototype would still apply.  */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 char dlopen ();
11626 int
11627 main ()
11628 {
11629 return dlopen ();
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 if ac_fn_c_try_link "$LINENO"; then :
11635   ac_cv_lib_dl_dlopen=yes
11636 else
11637   ac_cv_lib_dl_dlopen=no
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext \
11640     conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11642 fi
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11644 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11645 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11646   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11647 else
11648
11649     lt_cv_dlopen=dyld
11650     lt_cv_dlopen_libs=
11651     lt_cv_dlopen_self=yes
11652
11653 fi
11654
11655     ;;
11656
11657   tpf*)
11658     # Don't try to run any link tests for TPF.  We know it's impossible
11659     # because TPF is a cross-compiler, and we know how we open DSOs.
11660     lt_cv_dlopen=dlopen
11661     lt_cv_dlopen_libs=
11662     lt_cv_dlopen_self=no
11663     ;;
11664
11665   *)
11666     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11667 if test "x$ac_cv_func_shl_load" = xyes; then :
11668   lt_cv_dlopen=shl_load
11669 else
11670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11671 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11672 if ${ac_cv_lib_dld_shl_load+:} false; then :
11673   $as_echo_n "(cached) " >&6
11674 else
11675   ac_check_lib_save_LIBS=$LIBS
11676 LIBS="-ldld  $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h.  */
11679
11680 /* Override any GCC internal prototype to avoid an error.
11681    Use char because int might match the return type of a GCC
11682    builtin and then its argument prototype would still apply.  */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char shl_load ();
11687 int
11688 main ()
11689 {
11690 return shl_load ();
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696   ac_cv_lib_dld_shl_load=yes
11697 else
11698   ac_cv_lib_dld_shl_load=no
11699 fi
11700 rm -f core conftest.err conftest.$ac_objext \
11701     conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11705 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11706 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11707   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11708 else
11709   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11710 if test "x$ac_cv_func_dlopen" = xyes; then :
11711   lt_cv_dlopen=dlopen
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11714 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11715 if ${ac_cv_lib_dl_dlopen+:} false; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718   ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-ldl  $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h.  */
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724    Use char because int might match the return type of a GCC
11725    builtin and then its argument prototype would still apply.  */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char dlopen ();
11730 int
11731 main ()
11732 {
11733 return dlopen ();
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739   ac_cv_lib_dl_dlopen=yes
11740 else
11741   ac_cv_lib_dl_dlopen=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext \
11744     conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11749 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11750   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11751 else
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11753 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11754 if ${ac_cv_lib_svld_dlopen+:} false; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   ac_check_lib_save_LIBS=$LIBS
11758 LIBS="-lsvld  $LIBS"
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h.  */
11761
11762 /* Override any GCC internal prototype to avoid an error.
11763    Use char because int might match the return type of a GCC
11764    builtin and then its argument prototype would still apply.  */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char dlopen ();
11769 int
11770 main ()
11771 {
11772 return dlopen ();
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 if ac_fn_c_try_link "$LINENO"; then :
11778   ac_cv_lib_svld_dlopen=yes
11779 else
11780   ac_cv_lib_svld_dlopen=no
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext \
11783     conftest$ac_exeext conftest.$ac_ext
11784 LIBS=$ac_check_lib_save_LIBS
11785 fi
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11787 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11788 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11789   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11790 else
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11792 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11793 if ${ac_cv_lib_dld_dld_link+:} false; then :
11794   $as_echo_n "(cached) " >&6
11795 else
11796   ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-ldld  $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h.  */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802    Use char because int might match the return type of a GCC
11803    builtin and then its argument prototype would still apply.  */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char dld_link ();
11808 int
11809 main ()
11810 {
11811 return dld_link ();
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817   ac_cv_lib_dld_dld_link=yes
11818 else
11819   ac_cv_lib_dld_dld_link=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822     conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11826 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11827 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11828   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11829 fi
11830
11831
11832 fi
11833
11834
11835 fi
11836
11837
11838 fi
11839
11840
11841 fi
11842
11843
11844 fi
11845
11846     ;;
11847   esac
11848
11849   if test no = "$lt_cv_dlopen"; then
11850     enable_dlopen=no
11851   else
11852     enable_dlopen=yes
11853   fi
11854
11855   case $lt_cv_dlopen in
11856   dlopen)
11857     save_CPPFLAGS=$CPPFLAGS
11858     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11859
11860     save_LDFLAGS=$LDFLAGS
11861     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11862
11863     save_LIBS=$LIBS
11864     LIBS="$lt_cv_dlopen_libs $LIBS"
11865
11866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11867 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11868 if ${lt_cv_dlopen_self+:} false; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871           if test yes = "$cross_compiling"; then :
11872   lt_cv_dlopen_self=cross
11873 else
11874   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875   lt_status=$lt_dlunknown
11876   cat > conftest.$ac_ext <<_LT_EOF
11877 #line $LINENO "configure"
11878 #include "confdefs.h"
11879
11880 #if HAVE_DLFCN_H
11881 #include <dlfcn.h>
11882 #endif
11883
11884 #include <stdio.h>
11885
11886 #ifdef RTLD_GLOBAL
11887 #  define LT_DLGLOBAL           RTLD_GLOBAL
11888 #else
11889 #  ifdef DL_GLOBAL
11890 #    define LT_DLGLOBAL         DL_GLOBAL
11891 #  else
11892 #    define LT_DLGLOBAL         0
11893 #  endif
11894 #endif
11895
11896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11897    find out it does not work in some platform. */
11898 #ifndef LT_DLLAZY_OR_NOW
11899 #  ifdef RTLD_LAZY
11900 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11901 #  else
11902 #    ifdef DL_LAZY
11903 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11904 #    else
11905 #      ifdef RTLD_NOW
11906 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11907 #      else
11908 #        ifdef DL_NOW
11909 #          define LT_DLLAZY_OR_NOW      DL_NOW
11910 #        else
11911 #          define LT_DLLAZY_OR_NOW      0
11912 #        endif
11913 #      endif
11914 #    endif
11915 #  endif
11916 #endif
11917
11918 /* When -fvisbility=hidden is used, assume the code has been annotated
11919    correspondingly for the symbols needed.  */
11920 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11921 int fnord () __attribute__((visibility("default")));
11922 #endif
11923
11924 int fnord () { return 42; }
11925 int main ()
11926 {
11927   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11928   int status = $lt_dlunknown;
11929
11930   if (self)
11931     {
11932       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11933       else
11934         {
11935           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11936           else puts (dlerror ());
11937         }
11938       /* dlclose (self); */
11939     }
11940   else
11941     puts (dlerror ());
11942
11943   return status;
11944 }
11945 _LT_EOF
11946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11947   (eval $ac_link) 2>&5
11948   ac_status=$?
11949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11950   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11951     (./conftest; exit; ) >&5 2>/dev/null
11952     lt_status=$?
11953     case x$lt_status in
11954       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11955       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11956       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11957     esac
11958   else :
11959     # compilation failed
11960     lt_cv_dlopen_self=no
11961   fi
11962 fi
11963 rm -fr conftest*
11964
11965
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11968 $as_echo "$lt_cv_dlopen_self" >&6; }
11969
11970     if test yes = "$lt_cv_dlopen_self"; then
11971       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11972       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11973 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11974 if ${lt_cv_dlopen_self_static+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977           if test yes = "$cross_compiling"; then :
11978   lt_cv_dlopen_self_static=cross
11979 else
11980   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11981   lt_status=$lt_dlunknown
11982   cat > conftest.$ac_ext <<_LT_EOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11985
11986 #if HAVE_DLFCN_H
11987 #include <dlfcn.h>
11988 #endif
11989
11990 #include <stdio.h>
11991
11992 #ifdef RTLD_GLOBAL
11993 #  define LT_DLGLOBAL           RTLD_GLOBAL
11994 #else
11995 #  ifdef DL_GLOBAL
11996 #    define LT_DLGLOBAL         DL_GLOBAL
11997 #  else
11998 #    define LT_DLGLOBAL         0
11999 #  endif
12000 #endif
12001
12002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12003    find out it does not work in some platform. */
12004 #ifndef LT_DLLAZY_OR_NOW
12005 #  ifdef RTLD_LAZY
12006 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12007 #  else
12008 #    ifdef DL_LAZY
12009 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12010 #    else
12011 #      ifdef RTLD_NOW
12012 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12013 #      else
12014 #        ifdef DL_NOW
12015 #          define LT_DLLAZY_OR_NOW      DL_NOW
12016 #        else
12017 #          define LT_DLLAZY_OR_NOW      0
12018 #        endif
12019 #      endif
12020 #    endif
12021 #  endif
12022 #endif
12023
12024 /* When -fvisbility=hidden is used, assume the code has been annotated
12025    correspondingly for the symbols needed.  */
12026 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12027 int fnord () __attribute__((visibility("default")));
12028 #endif
12029
12030 int fnord () { return 42; }
12031 int main ()
12032 {
12033   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12034   int status = $lt_dlunknown;
12035
12036   if (self)
12037     {
12038       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12039       else
12040         {
12041           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12042           else puts (dlerror ());
12043         }
12044       /* dlclose (self); */
12045     }
12046   else
12047     puts (dlerror ());
12048
12049   return status;
12050 }
12051 _LT_EOF
12052   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12053   (eval $ac_link) 2>&5
12054   ac_status=$?
12055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12056   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12057     (./conftest; exit; ) >&5 2>/dev/null
12058     lt_status=$?
12059     case x$lt_status in
12060       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12061       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12062       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12063     esac
12064   else :
12065     # compilation failed
12066     lt_cv_dlopen_self_static=no
12067   fi
12068 fi
12069 rm -fr conftest*
12070
12071
12072 fi
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12074 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12075     fi
12076
12077     CPPFLAGS=$save_CPPFLAGS
12078     LDFLAGS=$save_LDFLAGS
12079     LIBS=$save_LIBS
12080     ;;
12081   esac
12082
12083   case $lt_cv_dlopen_self in
12084   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12085   *) enable_dlopen_self=unknown ;;
12086   esac
12087
12088   case $lt_cv_dlopen_self_static in
12089   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12090   *) enable_dlopen_self_static=unknown ;;
12091   esac
12092 fi
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110 striplib=
12111 old_striplib=
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12113 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12114 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12115   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12116   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119 else
12120 # FIXME - insert some real tests, host_os isn't really good enough
12121   case $host_os in
12122   darwin*)
12123     if test -n "$STRIP"; then
12124       striplib="$STRIP -x"
12125       old_striplib="$STRIP -S"
12126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127 $as_echo "yes" >&6; }
12128     else
12129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12131     fi
12132     ;;
12133   *)
12134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136     ;;
12137   esac
12138 fi
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151   # Report what library types will actually be built
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12153 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12155 $as_echo "$can_build_shared" >&6; }
12156
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12158 $as_echo_n "checking whether to build shared libraries... " >&6; }
12159   test no = "$can_build_shared" && enable_shared=no
12160
12161   # On AIX, shared libraries and static libraries use the same namespace, and
12162   # are all built from PIC.
12163   case $host_os in
12164   aix3*)
12165     test yes = "$enable_shared" && enable_static=no
12166     if test -n "$RANLIB"; then
12167       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12168       postinstall_cmds='$RANLIB $lib'
12169     fi
12170     ;;
12171
12172   aix[4-9]*)
12173     if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
12174       test yes = "$enable_shared" && enable_static=no
12175     fi
12176     ;;
12177   esac
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12179 $as_echo "$enable_shared" >&6; }
12180
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12182 $as_echo_n "checking whether to build static libraries... " >&6; }
12183   # Make sure either enable_shared or enable_static is yes.
12184   test yes = "$enable_shared" || enable_static=yes
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12186 $as_echo "$enable_static" >&6; }
12187
12188
12189
12190
12191 fi
12192 ac_ext=c
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198 CC=$lt_save_CC
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214         ac_config_commands="$ac_config_commands libtool"
12215
12216
12217
12218
12219 # Only expand once:
12220
12221
12222
12223
12224 # Test for 64-bit build.
12225 # The cast to long int works around a bug in the HP C Compiler
12226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12228 # This bug is HP SR number 8606223364.
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12230 $as_echo_n "checking size of size_t... " >&6; }
12231 if ${ac_cv_sizeof_size_t+:} false; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12235
12236 else
12237   if test "$ac_cv_type_size_t" = yes; then
12238      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12240 as_fn_error 77 "cannot compute sizeof (size_t)
12241 See \`config.log' for more details" "$LINENO" 5; }
12242    else
12243      ac_cv_sizeof_size_t=0
12244    fi
12245 fi
12246
12247 fi
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12249 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12250
12251
12252
12253 cat >>confdefs.h <<_ACEOF
12254 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12255 _ACEOF
12256
12257
12258
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12260 $as_echo_n "checking for C compiler vendor... " >&6; }
12261 if ${ax_cv_c_compiler_vendor+:} false; then :
12262   $as_echo_n "(cached) " >&6
12263 else
12264   # note: don't check for gcc first since some other compilers define __GNUC__
12265   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12266            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12267            pathscale: __PATHCC__,__PATHSCALE__
12268            clang:     __clang__
12269            gnu:       __GNUC__
12270            sun:       __SUNPRO_C,__SUNPRO_CC
12271            hp:        __HP_cc,__HP_aCC
12272            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12273            borland:   __BORLANDC__,__TURBOC__
12274            comeau:    __COMO__
12275            cray:      _CRAYC
12276            kai:       __KCC
12277            lcc:       __LCC__
12278            sgi:       __sgi,sgi
12279            microsoft: _MSC_VER
12280            metrowerks: __MWERKS__
12281            watcom:    __WATCOMC__
12282            portland:  __PGI
12283            unknown:   UNKNOWN"
12284   for ventest in $vendors; do
12285     case $ventest in
12286       *:) vendor=$ventest; continue ;;
12287       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12288     esac
12289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h.  */
12291
12292 int
12293 main ()
12294 {
12295
12296       #if !($vencpp)
12297         thisisanerror;
12298       #endif
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_compile "$LINENO"; then :
12305   break
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308   done
12309   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12310
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12313 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12314
12315
12316
12317
12318
12319
12320 # Check whether --enable-portable-binary was given.
12321 if test "${enable_portable_binary+set}" = set; then :
12322   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12323 else
12324   acx_maxopt_portable=no
12325 fi
12326
12327
12328 # Try to determine "good" native compiler flags if none specified via CFLAGS
12329 if test "$ac_test_CFLAGS" != "set"; then
12330   CFLAGS=""
12331   case $ax_cv_c_compiler_vendor in
12332     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12333          if test "x$acx_maxopt_portable" = xno; then
12334            CFLAGS="$CFLAGS -arch host"
12335          fi;;
12336
12337     sun) CFLAGS="-native -fast -xO5 -dalign"
12338          if test "x$acx_maxopt_portable" = xyes; then
12339            CFLAGS="$CFLAGS -xarch=generic"
12340          fi;;
12341
12342     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12343          if test "x$acx_maxopt_portable" = xyes; then
12344            CFLAGS="$CFLAGS +DAportable"
12345          fi;;
12346
12347     ibm) if test "x$acx_maxopt_portable" = xno; then
12348            xlc_opt="-qarch=auto -qtune=auto"
12349          else
12350            xlc_opt="-qtune=auto"
12351          fi
12352          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12354 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12355 if eval \${$as_CACHEVAR+:} false; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358
12359   ax_check_save_flags=$CFLAGS
12360   CFLAGS="$CFLAGS  $xlc_opt"
12361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363
12364 int
12365 main ()
12366 {
12367
12368   ;
12369   return 0;
12370 }
12371 _ACEOF
12372 if ac_fn_c_try_compile "$LINENO"; then :
12373   eval "$as_CACHEVAR=yes"
12374 else
12375   eval "$as_CACHEVAR=no"
12376 fi
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378   CFLAGS=$ax_check_save_flags
12379 fi
12380 eval ac_res=\$$as_CACHEVAR
12381                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12382 $as_echo "$ac_res" >&6; }
12383 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12384   CFLAGS="-O3 -qansialias -w $xlc_opt"
12385 else
12386   CFLAGS="-O3 -qansialias -w"
12387                 echo "******************************************************"
12388                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12389                 echo "*  recommended for best performance that you use:    *"
12390                 echo "*                                                    *"
12391                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12392                 echo "*                      ^^^        ^^^                *"
12393                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12394                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12395                 echo "*  and re-run configure.)  For more info, man cc.    *"
12396                 echo "******************************************************"
12397 fi
12398
12399          ;;
12400
12401     intel) CFLAGS="-O3 -ansi_alias"
12402         if test "x$acx_maxopt_portable" = xno; then
12403           icc_archflag=unknown
12404           icc_flags=""
12405           case $host_cpu in
12406             i686*|x86_64*)
12407               # icc accepts gcc assembly syntax, so these should work:
12408
12409 ac_ext=c
12410 ac_cpp='$CPP $CPPFLAGS'
12411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12416 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12417 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12418   $as_echo_n "(cached) " >&6
12419 else
12420   if test "$cross_compiling" = yes; then :
12421   ax_cv_gcc_x86_cpuid_0=unknown
12422 else
12423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h.  */
12425 #include <stdio.h>
12426 int
12427 main ()
12428 {
12429
12430      int op = 0, eax, ebx, ecx, edx;
12431      FILE *f;
12432       __asm__("cpuid"
12433         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12434         : "a" (op));
12435      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12436      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12437      fclose(f);
12438      return 0;
12439
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_c_try_run "$LINENO"; then :
12445   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12446 else
12447   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12448 fi
12449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12450   conftest.$ac_objext conftest.beam conftest.$ac_ext
12451 fi
12452
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12455 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12456 ac_ext=c
12457 ac_cpp='$CPP $CPPFLAGS'
12458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12461
12462
12463
12464 ac_ext=c
12465 ac_cpp='$CPP $CPPFLAGS'
12466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12471 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12472 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12473   $as_echo_n "(cached) " >&6
12474 else
12475   if test "$cross_compiling" = yes; then :
12476   ax_cv_gcc_x86_cpuid_1=unknown
12477 else
12478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h.  */
12480 #include <stdio.h>
12481 int
12482 main ()
12483 {
12484
12485      int op = 1, eax, ebx, ecx, edx;
12486      FILE *f;
12487       __asm__("cpuid"
12488         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12489         : "a" (op));
12490      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12491      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12492      fclose(f);
12493      return 0;
12494
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_run "$LINENO"; then :
12500   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12501 else
12502   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12503 fi
12504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12505   conftest.$ac_objext conftest.beam conftest.$ac_ext
12506 fi
12507
12508 fi
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12510 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12511 ac_ext=c
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516
12517
12518               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12519                 *:756e6547:*:*) # Intel
12520                   case $ax_cv_gcc_x86_cpuid_1 in
12521                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12522                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12523                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12524                   esac ;;
12525               esac ;;
12526           esac
12527           if test "x$icc_flags" != x; then
12528             for flag in $icc_flags; do
12529               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12531 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12532 if eval \${$as_CACHEVAR+:} false; then :
12533   $as_echo_n "(cached) " >&6
12534 else
12535
12536   ax_check_save_flags=$CFLAGS
12537   CFLAGS="$CFLAGS  $flag"
12538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h.  */
12540
12541 int
12542 main ()
12543 {
12544
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550   eval "$as_CACHEVAR=yes"
12551 else
12552   eval "$as_CACHEVAR=no"
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555   CFLAGS=$ax_check_save_flags
12556 fi
12557 eval ac_res=\$$as_CACHEVAR
12558                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12559 $as_echo "$ac_res" >&6; }
12560 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12561   icc_archflag=$flag; break
12562 else
12563   :
12564 fi
12565
12566             done
12567           fi
12568           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12569 $as_echo_n "checking for icc architecture flag... " >&6; }
12570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12571 $as_echo "$icc_archflag" >&6; }
12572           if test "x$icc_archflag" != xunknown; then
12573             CFLAGS="$CFLAGS $icc_archflag"
12574           fi
12575         fi
12576         ;;
12577
12578     gnu)
12579      # default optimization flags for gcc on all systems
12580      CFLAGS="-O3 -fomit-frame-pointer"
12581
12582      # -malign-double for x86 systems
12583      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12584      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12585
12586      #  -fstrict-aliasing for gcc-2.95+
12587      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12588 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12589 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592
12593   ax_check_save_flags=$CFLAGS
12594   CFLAGS="$CFLAGS  -fstrict-aliasing"
12595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597
12598 int
12599 main ()
12600 {
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607   ax_cv_check_cflags___fstrict_aliasing=yes
12608 else
12609   ax_cv_check_cflags___fstrict_aliasing=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612   CFLAGS=$ax_check_save_flags
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12615 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12616 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12617   CFLAGS="$CFLAGS -fstrict-aliasing"
12618 else
12619   :
12620 fi
12621
12622
12623      # note that we enable "unsafe" fp optimization with other compilers, too
12624      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12625 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12626 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12627   $as_echo_n "(cached) " >&6
12628 else
12629
12630   ax_check_save_flags=$CFLAGS
12631   CFLAGS="$CFLAGS  -ffast-math"
12632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h.  */
12634
12635 int
12636 main ()
12637 {
12638
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_compile "$LINENO"; then :
12644   ax_cv_check_cflags___ffast_math=yes
12645 else
12646   ax_cv_check_cflags___ffast_math=no
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649   CFLAGS=$ax_check_save_flags
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12652 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12653 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12654   CFLAGS="$CFLAGS -ffast-math"
12655 else
12656   :
12657 fi
12658
12659
12660
12661
12662
12663
12664 # Check whether --with-gcc-arch was given.
12665 if test "${with_gcc_arch+set}" = set; then :
12666   withval=$with_gcc_arch; ax_gcc_arch=$withval
12667 else
12668   ax_gcc_arch=yes
12669 fi
12670
12671
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12673 $as_echo_n "checking for gcc architecture flag... " >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12675 $as_echo "" >&6; }
12676 if ${ax_cv_gcc_archflag+:} false; then :
12677   $as_echo_n "(cached) " >&6
12678 else
12679
12680 ax_cv_gcc_archflag="unknown"
12681
12682 if test "$GCC" = yes; then
12683
12684 if test "x$ax_gcc_arch" = xyes; then
12685 ax_gcc_arch=""
12686 if test "$cross_compiling" = no; then
12687 case $host_cpu in
12688   i[3456]86*|x86_64*) # use cpuid codes
12689
12690 ac_ext=c
12691 ac_cpp='$CPP $CPPFLAGS'
12692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12695
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12697 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12698 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12699   $as_echo_n "(cached) " >&6
12700 else
12701   if test "$cross_compiling" = yes; then :
12702   ax_cv_gcc_x86_cpuid_0=unknown
12703 else
12704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h.  */
12706 #include <stdio.h>
12707 int
12708 main ()
12709 {
12710
12711      int op = 0, eax, ebx, ecx, edx;
12712      FILE *f;
12713       __asm__("cpuid"
12714         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12715         : "a" (op));
12716      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12717      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12718      fclose(f);
12719      return 0;
12720
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_run "$LINENO"; then :
12726   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12727 else
12728   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12729 fi
12730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12731   conftest.$ac_objext conftest.beam conftest.$ac_ext
12732 fi
12733
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12736 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12737 ac_ext=c
12738 ac_cpp='$CPP $CPPFLAGS'
12739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742
12743
12744
12745 ac_ext=c
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12752 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12753 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   if test "$cross_compiling" = yes; then :
12757   ax_cv_gcc_x86_cpuid_1=unknown
12758 else
12759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761 #include <stdio.h>
12762 int
12763 main ()
12764 {
12765
12766      int op = 1, eax, ebx, ecx, edx;
12767      FILE *f;
12768       __asm__("cpuid"
12769         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12770         : "a" (op));
12771      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12772      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12773      fclose(f);
12774      return 0;
12775
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 if ac_fn_c_try_run "$LINENO"; then :
12781   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12782 else
12783   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12784 fi
12785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12786   conftest.$ac_objext conftest.beam conftest.$ac_ext
12787 fi
12788
12789 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12791 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12792 ac_ext=c
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12797
12798
12799      case $ax_cv_gcc_x86_cpuid_0 in
12800        *:756e6547:*:*) # Intel
12801           case $ax_cv_gcc_x86_cpuid_1 in
12802             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12803             *5??:*:*:*) ax_gcc_arch=pentium ;;
12804             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12805             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12806             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12807             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12808             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12809             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12810             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12811             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12812             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12813             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12814             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12815             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12816             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12817                 case $host_cpu in
12818                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12819                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12820                 esac ;;
12821             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12822           esac ;;
12823        *:68747541:*:*) # AMD
12824           case $ax_cv_gcc_x86_cpuid_1 in
12825             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12826             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12827             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12828             *60?:*:*:*) ax_gcc_arch=k7 ;;
12829             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12830             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12831             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12832             *6[68a]?:*:*:*)
12833
12834 ac_ext=c
12835 ac_cpp='$CPP $CPPFLAGS'
12836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12839
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12841 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12842 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   if test "$cross_compiling" = yes; then :
12846   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12847 else
12848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h.  */
12850 #include <stdio.h>
12851 int
12852 main ()
12853 {
12854
12855      int op = 0x80000006, eax, ebx, ecx, edx;
12856      FILE *f;
12857       __asm__("cpuid"
12858         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12859         : "a" (op));
12860      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12861      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12862      fclose(f);
12863      return 0;
12864
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 if ac_fn_c_try_run "$LINENO"; then :
12870   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12871 else
12872   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12873 fi
12874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12875   conftest.$ac_objext conftest.beam conftest.$ac_ext
12876 fi
12877
12878 fi
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12880 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12881 ac_ext=c
12882 ac_cpp='$CPP $CPPFLAGS'
12883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12886
12887  # L2 cache size
12888                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12889                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12890                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12891                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12892                esac ;;
12893             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12894             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12895             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12896             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12897             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12898             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12899             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12900           esac ;;
12901         *:746e6543:*:*) # IDT
12902            case $ax_cv_gcc_x86_cpuid_1 in
12903              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12904              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12905              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12906              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12907            esac ;;
12908      esac
12909      if test x"$ax_gcc_arch" = x; then # fallback
12910         case $host_cpu in
12911           i586*) ax_gcc_arch=pentium ;;
12912           i686*) ax_gcc_arch=pentiumpro ;;
12913         esac
12914      fi
12915      ;;
12916
12917   sparc*)
12918      # Extract the first word of "prtdiag", so it can be a program name with args.
12919 set dummy prtdiag; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_path_PRTDIAG+:} false; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   case $PRTDIAG in
12926   [\\/]* | ?:[\\/]*)
12927   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12928   ;;
12929   *)
12930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12932 for as_dir in $as_dummy
12933 do
12934   IFS=$as_save_IFS
12935   test -z "$as_dir" && as_dir=.
12936     for ac_exec_ext in '' $ac_executable_extensions; do
12937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12938     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940     break 2
12941   fi
12942 done
12943   done
12944 IFS=$as_save_IFS
12945
12946   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12947   ;;
12948 esac
12949 fi
12950 PRTDIAG=$ac_cv_path_PRTDIAG
12951 if test -n "$PRTDIAG"; then
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12953 $as_echo "$PRTDIAG" >&6; }
12954 else
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958
12959
12960      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`
12961      cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' | tr $as_cr_LETTERS $as_cr_letters`
12962      case $cputype in
12963          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12964          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12965          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12966          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12967          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12968          *cypress*) ax_gcc_arch=cypress ;;
12969      esac ;;
12970
12971   alphaev5) ax_gcc_arch=ev5 ;;
12972   alphaev56) ax_gcc_arch=ev56 ;;
12973   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12974   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12975   alphaev6) ax_gcc_arch=ev6 ;;
12976   alphaev67) ax_gcc_arch=ev67 ;;
12977   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12978   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12979   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12980   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12981
12982   powerpc*)
12983      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`
12984      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12985      case $cputype in
12986        *750*) ax_gcc_arch="750 G3" ;;
12987        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12988        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12989        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12990        *970*) ax_gcc_arch="970 G5 power4";;
12991        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12992        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12993        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12994        *) ax_gcc_arch=$cputype ;;
12995      esac
12996      ax_gcc_arch="$ax_gcc_arch powerpc"
12997      ;;
12998 esac
12999 fi # not cross-compiling
13000 fi # guess arch
13001
13002 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
13003 for arch in $ax_gcc_arch; do
13004   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
13005     flags="-mtune=$arch"
13006     # -mcpu=$arch and m$arch generate nonportable code on every arch except
13007     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
13008     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
13009   else
13010     flags="-march=$arch -mcpu=$arch -m$arch"
13011   fi
13012   for flag in $flags; do
13013     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13015 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13016 if eval \${$as_CACHEVAR+:} false; then :
13017   $as_echo_n "(cached) " >&6
13018 else
13019
13020   ax_check_save_flags=$CFLAGS
13021   CFLAGS="$CFLAGS  $flag"
13022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h.  */
13024
13025 int
13026 main ()
13027 {
13028
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_c_try_compile "$LINENO"; then :
13034   eval "$as_CACHEVAR=yes"
13035 else
13036   eval "$as_CACHEVAR=no"
13037 fi
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039   CFLAGS=$ax_check_save_flags
13040 fi
13041 eval ac_res=\$$as_CACHEVAR
13042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13043 $as_echo "$ac_res" >&6; }
13044 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13045   ax_cv_gcc_archflag=$flag; break
13046 else
13047   :
13048 fi
13049
13050   done
13051   test "x$ax_cv_gcc_archflag" = xunknown || break
13052 done
13053 fi
13054
13055 fi # $GCC=yes
13056
13057 fi
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
13060 $as_echo_n "checking for gcc architecture flag... " >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
13062 $as_echo "$ax_cv_gcc_archflag" >&6; }
13063 if test "x$ax_cv_gcc_archflag" = xunknown; then
13064   :
13065 else
13066   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
13067 fi
13068
13069      ;;
13070   esac
13071
13072   if test -z "$CFLAGS"; then
13073         echo ""
13074         echo "********************************************************"
13075         echo "* WARNING: Don't know the best CFLAGS for this system  *"
13076         echo "* Use ./configure CFLAGS=... to specify your own flags *"
13077         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
13078         echo "********************************************************"
13079         echo ""
13080         CFLAGS="-O3"
13081   fi
13082
13083   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
13085 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
13086 if eval \${$as_CACHEVAR+:} false; then :
13087   $as_echo_n "(cached) " >&6
13088 else
13089
13090   ax_check_save_flags=$CFLAGS
13091   CFLAGS="$CFLAGS  $CFLAGS"
13092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094
13095 int
13096 main ()
13097 {
13098
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104   eval "$as_CACHEVAR=yes"
13105 else
13106   eval "$as_CACHEVAR=no"
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109   CFLAGS=$ax_check_save_flags
13110 fi
13111 eval ac_res=\$$as_CACHEVAR
13112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13113 $as_echo "$ac_res" >&6; }
13114 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13115   :
13116 else
13117
13118         echo ""
13119         echo "********************************************************"
13120         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
13121         echo "* your compiler.                                       *"
13122         echo "* Use ./configure CFLAGS=... to specify your own flags *"
13123         echo "********************************************************"
13124         echo ""
13125         CFLAGS=""
13126
13127 fi
13128
13129
13130 fi
13131
13132 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
13133 # compiler.
13134 if test "$ax_cv_c_compiler_vendor" != "sun"; then
13135   if ${CFLAGS+:} false; then :
13136   case " $CFLAGS " in
13137     *"  "*)
13138       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13139   (: CFLAGS already contains ) 2>&5
13140   ac_status=$?
13141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13142   test $ac_status = 0; }
13143       ;;
13144     *)
13145       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13146   (: CFLAGS="$CFLAGS ") 2>&5
13147   ac_status=$?
13148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149   test $ac_status = 0; }
13150       CFLAGS="$CFLAGS "
13151       ;;
13152    esac
13153 else
13154   CFLAGS=""
13155 fi
13156
13157 ac_ext=c
13158 ac_cpp='$CPP $CPPFLAGS'
13159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13162
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13164 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13165 if ${ac_cv_cflags_warn_all+:} false; then :
13166   $as_echo_n "(cached) " >&6
13167 else
13168   ac_cv_cflags_warn_all="no, unknown"
13169 ac_save_CFLAGS="$CFLAGS"
13170 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"    #
13171 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h.  */
13174
13175 int
13176 main ()
13177 {
13178
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_compile "$LINENO"; then :
13184   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 done
13188 CFLAGS="$ac_save_CFLAGS"
13189
13190 fi
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13192 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13193
13194 case ".$ac_cv_cflags_warn_all" in
13195      .ok|.ok,*)  ;;
13196    .|.no|.no,*)  ;;
13197    *) if ${CFLAGS+:} false; then :
13198   case " $CFLAGS " in
13199     *" $ac_cv_cflags_warn_all "*)
13200       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13201   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13202   ac_status=$?
13203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204   test $ac_status = 0; }
13205       ;;
13206     *)
13207       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13208   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13209   ac_status=$?
13210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211   test $ac_status = 0; }
13212       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13213       ;;
13214    esac
13215 else
13216   CFLAGS="$ac_cv_cflags_warn_all"
13217 fi
13218  ;;
13219 esac
13220
13221 ac_ext=c
13222 ac_cpp='$CPP $CPPFLAGS'
13223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226
13227
13228 fi
13229
13230 if test "x$GCC" = "xyes"; then
13231   CFLAGS="$CFLAGS -fexceptions"
13232   touch local.exp
13233 else
13234   cat > local.exp <<EOF
13235 set CC_FOR_TARGET "$CC"
13236 EOF
13237 fi
13238
13239
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13242     # Check whether --enable-maintainer-mode was given.
13243 if test "${enable_maintainer_mode+set}" = set; then :
13244   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13245 else
13246   USE_MAINTAINER_MODE=no
13247 fi
13248
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13251    if test $USE_MAINTAINER_MODE = yes; then
13252   MAINTAINER_MODE_TRUE=
13253   MAINTAINER_MODE_FALSE='#'
13254 else
13255   MAINTAINER_MODE_TRUE='#'
13256   MAINTAINER_MODE_FALSE=
13257 fi
13258
13259   MAINT=$MAINTAINER_MODE_TRUE
13260
13261
13262
13263 for ac_header in sys/mman.h
13264 do :
13265   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13266 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13267   cat >>confdefs.h <<_ACEOF
13268 #define HAVE_SYS_MMAN_H 1
13269 _ACEOF
13270
13271 fi
13272
13273 done
13274
13275 for ac_func in mmap
13276 do :
13277   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13278 if test "x$ac_cv_func_mmap" = xyes; then :
13279   cat >>confdefs.h <<_ACEOF
13280 #define HAVE_MMAP 1
13281 _ACEOF
13282
13283 fi
13284 done
13285
13286
13287 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13288 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13289   libffi_header_sys_mman_h=yes
13290 else
13291   libffi_header_sys_mman_h=no
13292 fi
13293
13294
13295 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13296 if test "x$ac_cv_func_mmap" = xyes; then :
13297   libffi_func_mmap=yes
13298 else
13299   libffi_func_mmap=no
13300 fi
13301
13302 if test "$libffi_header_sys_mman_h" != yes \
13303  || test "$libffi_func_mmap" != yes; then
13304    ac_cv_func_mmap_file=no
13305    ac_cv_func_mmap_dev_zero=no
13306    ac_cv_func_mmap_anon=no
13307 else
13308    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13309 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13310 if ${ac_cv_func_mmap_file+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   # Add a system to this blacklist if
13314    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13315    # memory area containing the same data that you'd get if you applied
13316    # read() to the same fd.  The only system known to have a problem here
13317    # is VMS, where text files have record structure.
13318    case "$host_os" in
13319      vms* | ultrix*)
13320         ac_cv_func_mmap_file=no ;;
13321      *)
13322         ac_cv_func_mmap_file=yes;;
13323    esac
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13326 $as_echo "$ac_cv_func_mmap_file" >&6; }
13327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13328 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13329 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13330   $as_echo_n "(cached) " >&6
13331 else
13332   # Add a system to this blacklist if it has mmap() but /dev/zero
13333    # does not exist, or if mmapping /dev/zero does not give anonymous
13334    # zeroed pages with both the following properties:
13335    # 1. If you map N consecutive pages in with one call, and then
13336    #    unmap any subset of those pages, the pages that were not
13337    #    explicitly unmapped remain accessible.
13338    # 2. If you map two adjacent blocks of memory and then unmap them
13339    #    both at once, they must both go away.
13340    # Systems known to be in this category are Windows (all variants),
13341    # VMS, and Darwin.
13342    case "$host_os" in
13343      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13344         ac_cv_func_mmap_dev_zero=no ;;
13345      *)
13346         ac_cv_func_mmap_dev_zero=yes;;
13347    esac
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13350 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13351
13352    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13354 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13355 if ${ac_cv_decl_map_anon+:} false; then :
13356   $as_echo_n "(cached) " >&6
13357 else
13358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h.  */
13360 #include <sys/types.h>
13361 #include <sys/mman.h>
13362 #include <unistd.h>
13363
13364 #ifndef MAP_ANONYMOUS
13365 #define MAP_ANONYMOUS MAP_ANON
13366 #endif
13367
13368 int
13369 main ()
13370 {
13371 int n = MAP_ANONYMOUS;
13372   ;
13373   return 0;
13374 }
13375 _ACEOF
13376 if ac_fn_c_try_compile "$LINENO"; then :
13377   ac_cv_decl_map_anon=yes
13378 else
13379   ac_cv_decl_map_anon=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13384 $as_echo "$ac_cv_decl_map_anon" >&6; }
13385
13386    if test $ac_cv_decl_map_anon = no; then
13387      ac_cv_func_mmap_anon=no
13388    else
13389      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13390 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13391 if ${ac_cv_func_mmap_anon+:} false; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13395    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13396    # doesn't give anonymous zeroed pages with the same properties listed
13397    # above for use of /dev/zero.
13398    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13399    case "$host_os" in
13400      vms* | cygwin* | pe | mingw* | sco* | udk* )
13401         ac_cv_func_mmap_anon=no ;;
13402      *)
13403         ac_cv_func_mmap_anon=yes;;
13404    esac
13405 fi
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13407 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13408    fi
13409 fi
13410
13411 if test $ac_cv_func_mmap_file = yes; then
13412
13413 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13414
13415 fi
13416 if test $ac_cv_func_mmap_dev_zero = yes; then
13417
13418 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13419
13420 fi
13421 if test $ac_cv_func_mmap_anon = yes; then
13422
13423 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13424
13425 fi
13426
13427
13428  if test -d $srcdir/testsuite; then
13429   TESTSUBDIR_TRUE=
13430   TESTSUBDIR_FALSE='#'
13431 else
13432   TESTSUBDIR_TRUE='#'
13433   TESTSUBDIR_FALSE=
13434 fi
13435
13436
13437 TARGETDIR="unknown"
13438 HAVE_LONG_DOUBLE_VARIANT=0
13439 case "$host" in
13440   aarch64*-*-*)
13441         TARGET=AARCH64; TARGETDIR=aarch64
13442         ;;
13443
13444   alpha*-*-*)
13445         TARGET=ALPHA; TARGETDIR=alpha;
13446         # Support 128-bit long double, changeable via command-line switch.
13447         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13448         ;;
13449
13450   arc*-*-*)
13451         TARGET=ARC; TARGETDIR=arc
13452         ;;
13453
13454   arm*-*-*)
13455         TARGET=ARM; TARGETDIR=arm
13456         ;;
13457
13458   amd64-*-freebsd* | amd64-*-openbsd*)
13459         TARGET=X86_64; TARGETDIR=x86
13460         ;;
13461
13462   amd64-*-freebsd*)
13463         TARGET=X86_64; TARGETDIR=x86
13464         ;;
13465
13466   amd64-*-freebsd*)
13467         TARGET=X86_64; TARGETDIR=x86
13468         ;;
13469
13470   avr32*-*-*)
13471         TARGET=AVR32; TARGETDIR=avr32
13472         ;;
13473
13474   bfin*)
13475         TARGET=BFIN; TARGETDIR=bfin
13476         ;;
13477
13478   cris-*-*)
13479         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13480         ;;
13481
13482   frv-*-*)
13483         TARGET=FRV; TARGETDIR=frv
13484         ;;
13485
13486   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13487         TARGET=PA_LINUX; TARGETDIR=pa
13488         ;;
13489   hppa*64-*-hpux*)
13490         TARGET=PA64_HPUX; TARGETDIR=pa
13491         ;;
13492   hppa*-*-hpux*)
13493         TARGET=PA_HPUX; TARGETDIR=pa
13494         ;;
13495
13496   i?86-*-freebsd* | i?86-*-openbsd*)
13497         TARGET=X86_FREEBSD; TARGETDIR=x86
13498         ;;
13499   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13500         TARGET=X86_WIN32; TARGETDIR=x86
13501         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13502         # We must also check with_cross_host to decide if this is a native
13503         # or cross-build and select where to install dlls appropriately.
13504         if test -n "$with_cross_host" &&
13505            test x"$with_cross_host" != x"no"; then
13506           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13507         else
13508           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13509         fi
13510         ;;
13511   i?86-*-darwin*)
13512         TARGET=X86_DARWIN; TARGETDIR=x86
13513         ;;
13514   i?86-*-solaris2.1[0-9]*)
13515         TARGETDIR=x86
13516         if test $ac_cv_sizeof_size_t = 4; then
13517           TARGET=X86;
13518         else
13519           TARGET=X86_64;
13520         fi
13521         ;;
13522
13523   x86_64-*-darwin*)
13524         TARGET=X86_DARWIN; TARGETDIR=x86
13525         ;;
13526
13527   x86_64-*-cygwin* | x86_64-*-mingw*)
13528         TARGET=X86_WIN64; TARGETDIR=x86
13529         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13530         # We must also check with_cross_host to decide if this is a native
13531         # or cross-build and select where to install dlls appropriately.
13532         if test -n "$with_cross_host" &&
13533            test x"$with_cross_host" != x"no"; then
13534           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13535         else
13536           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13537         fi
13538         ;;
13539
13540   i?86-*-* | x86_64-*-*)
13541         TARGETDIR=x86
13542         if test $ac_cv_sizeof_size_t = 4; then
13543           case "$host" in
13544             *-gnux32)
13545               TARGET=X86_64
13546               ;;
13547             *)
13548               TARGET=X86
13549               ;;
13550           esac
13551         else
13552           TARGET=X86_64;
13553         fi
13554         ;;
13555
13556   ia64*-*-*)
13557         TARGET=IA64; TARGETDIR=ia64
13558         ;;
13559
13560   m32r*-*-*)
13561         TARGET=M32R; TARGETDIR=m32r
13562         ;;
13563
13564   m68k-*-*)
13565         TARGET=M68K; TARGETDIR=m68k
13566         ;;
13567
13568   m88k-*-*)
13569         TARGET=M88K; TARGETDIR=m88k
13570         ;;
13571
13572   microblaze*-*-*)
13573         TARGET=MICROBLAZE; TARGETDIR=microblaze
13574         ;;
13575
13576   moxie-*-*)
13577         TARGET=MOXIE; TARGETDIR=moxie
13578         ;;
13579
13580   metag-*-*)
13581         TARGET=METAG; TARGETDIR=metag
13582         ;;
13583
13584   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13585         TARGET=MIPS; TARGETDIR=mips
13586         ;;
13587   mips*-*-linux* | mips*-*-openbsd*)
13588         # Support 128-bit long double for NewABI.
13589         HAVE_LONG_DOUBLE='defined(__mips64)'
13590         TARGET=MIPS; TARGETDIR=mips
13591         ;;
13592
13593   nios2*-linux*)
13594         TARGET=NIOS2; TARGETDIR=nios2
13595         ;;
13596
13597   powerpc*-*-linux* | powerpc-*-sysv*)
13598         TARGET=POWERPC; TARGETDIR=powerpc
13599         HAVE_LONG_DOUBLE_VARIANT=1
13600         ;;
13601   powerpc-*-amigaos*)
13602         TARGET=POWERPC; TARGETDIR=powerpc
13603         ;;
13604   powerpc-*-beos*)
13605         TARGET=POWERPC; TARGETDIR=powerpc
13606         ;;
13607   powerpc-*-darwin* | powerpc64-*-darwin*)
13608         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13609         ;;
13610   powerpc-*-aix* | rs6000-*-aix*)
13611         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13612         ;;
13613   powerpc-*-freebsd* | powerpc-*-openbsd*)
13614         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13615         HAVE_LONG_DOUBLE_VARIANT=1
13616         ;;
13617   powerpc64-*-freebsd*)
13618         TARGET=POWERPC; TARGETDIR=powerpc
13619         ;;
13620   powerpc*-*-rtems*)
13621         TARGET=POWERPC; TARGETDIR=powerpc
13622         ;;
13623
13624   s390-*-* | s390x-*-*)
13625         TARGET=S390; TARGETDIR=s390
13626         ;;
13627
13628   sh-*-* | sh[34]*-*-*)
13629         TARGET=SH; TARGETDIR=sh
13630         ;;
13631   sh64-*-* | sh5*-*-*)
13632         TARGET=SH64; TARGETDIR=sh64
13633         ;;
13634
13635   sparc*-*-*)
13636         TARGET=SPARC; TARGETDIR=sparc
13637         ;;
13638
13639   tile*-*)
13640         TARGET=TILE; TARGETDIR=tile
13641         ;;
13642
13643   vax-*-*)
13644         TARGET=VAX; TARGETDIR=vax
13645         ;;
13646
13647   xtensa*-*)
13648         TARGET=XTENSA; TARGETDIR=xtensa
13649         ;;
13650
13651 esac
13652
13653
13654
13655
13656 if test $TARGETDIR = unknown; then
13657   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13658 fi
13659
13660  if test x$TARGET = xMIPS; then
13661   MIPS_TRUE=
13662   MIPS_FALSE='#'
13663 else
13664   MIPS_TRUE='#'
13665   MIPS_FALSE=
13666 fi
13667
13668  if test x$TARGET = xBFIN; then
13669   BFIN_TRUE=
13670   BFIN_FALSE='#'
13671 else
13672   BFIN_TRUE='#'
13673   BFIN_FALSE=
13674 fi
13675
13676  if test x$TARGET = xSPARC; then
13677   SPARC_TRUE=
13678   SPARC_FALSE='#'
13679 else
13680   SPARC_TRUE='#'
13681   SPARC_FALSE=
13682 fi
13683
13684  if test x$TARGET = xX86; then
13685   X86_TRUE=
13686   X86_FALSE='#'
13687 else
13688   X86_TRUE='#'
13689   X86_FALSE=
13690 fi
13691
13692  if test x$TARGET = xX86_FREEBSD; then
13693   X86_FREEBSD_TRUE=
13694   X86_FREEBSD_FALSE='#'
13695 else
13696   X86_FREEBSD_TRUE='#'
13697   X86_FREEBSD_FALSE=
13698 fi
13699
13700  if test x$TARGET = xX86_WIN32; then
13701   X86_WIN32_TRUE=
13702   X86_WIN32_FALSE='#'
13703 else
13704   X86_WIN32_TRUE='#'
13705   X86_WIN32_FALSE=
13706 fi
13707
13708  if test x$TARGET = xX86_WIN64; then
13709   X86_WIN64_TRUE=
13710   X86_WIN64_FALSE='#'
13711 else
13712   X86_WIN64_TRUE='#'
13713   X86_WIN64_FALSE=
13714 fi
13715
13716  if test x$TARGET = xX86_DARWIN; then
13717   X86_DARWIN_TRUE=
13718   X86_DARWIN_FALSE='#'
13719 else
13720   X86_DARWIN_TRUE='#'
13721   X86_DARWIN_FALSE=
13722 fi
13723
13724  if test x$TARGET = xALPHA; then
13725   ALPHA_TRUE=
13726   ALPHA_FALSE='#'
13727 else
13728   ALPHA_TRUE='#'
13729   ALPHA_FALSE=
13730 fi
13731
13732  if test x$TARGET = xIA64; then
13733   IA64_TRUE=
13734   IA64_FALSE='#'
13735 else
13736   IA64_TRUE='#'
13737   IA64_FALSE=
13738 fi
13739
13740  if test x$TARGET = xM32R; then
13741   M32R_TRUE=
13742   M32R_FALSE='#'
13743 else
13744   M32R_TRUE='#'
13745   M32R_FALSE=
13746 fi
13747
13748  if test x$TARGET = xM68K; then
13749   M68K_TRUE=
13750   M68K_FALSE='#'
13751 else
13752   M68K_TRUE='#'
13753   M68K_FALSE=
13754 fi
13755
13756  if test x$TARGET = xM88K; then
13757   M88K_TRUE=
13758   M88K_FALSE='#'
13759 else
13760   M88K_TRUE='#'
13761   M88K_FALSE=
13762 fi
13763
13764  if test x$TARGET = xMICROBLAZE; then
13765   MICROBLAZE_TRUE=
13766   MICROBLAZE_FALSE='#'
13767 else
13768   MICROBLAZE_TRUE='#'
13769   MICROBLAZE_FALSE=
13770 fi
13771
13772  if test x$TARGET = xMETAG; then
13773   METAG_TRUE=
13774   METAG_FALSE='#'
13775 else
13776   METAG_TRUE='#'
13777   METAG_FALSE=
13778 fi
13779
13780  if test x$TARGET = xMOXIE; then
13781   MOXIE_TRUE=
13782   MOXIE_FALSE='#'
13783 else
13784   MOXIE_TRUE='#'
13785   MOXIE_FALSE=
13786 fi
13787
13788  if test x$TARGET = xNIOS2; then
13789   NIOS2_TRUE=
13790   NIOS2_FALSE='#'
13791 else
13792   NIOS2_TRUE='#'
13793   NIOS2_FALSE=
13794 fi
13795
13796  if test x$TARGET = xPOWERPC; then
13797   POWERPC_TRUE=
13798   POWERPC_FALSE='#'
13799 else
13800   POWERPC_TRUE='#'
13801   POWERPC_FALSE=
13802 fi
13803
13804  if test x$TARGET = xPOWERPC_AIX; then
13805   POWERPC_AIX_TRUE=
13806   POWERPC_AIX_FALSE='#'
13807 else
13808   POWERPC_AIX_TRUE='#'
13809   POWERPC_AIX_FALSE=
13810 fi
13811
13812  if test x$TARGET = xPOWERPC_DARWIN; then
13813   POWERPC_DARWIN_TRUE=
13814   POWERPC_DARWIN_FALSE='#'
13815 else
13816   POWERPC_DARWIN_TRUE='#'
13817   POWERPC_DARWIN_FALSE=
13818 fi
13819
13820  if test x$TARGET = xPOWERPC_FREEBSD; then
13821   POWERPC_FREEBSD_TRUE=
13822   POWERPC_FREEBSD_FALSE='#'
13823 else
13824   POWERPC_FREEBSD_TRUE='#'
13825   POWERPC_FREEBSD_FALSE=
13826 fi
13827
13828  if test x$TARGET = xAARCH64; then
13829   AARCH64_TRUE=
13830   AARCH64_FALSE='#'
13831 else
13832   AARCH64_TRUE='#'
13833   AARCH64_FALSE=
13834 fi
13835
13836  if test x$TARGET = xARC; then
13837   ARC_TRUE=
13838   ARC_FALSE='#'
13839 else
13840   ARC_TRUE='#'
13841   ARC_FALSE=
13842 fi
13843
13844  if test x$TARGET = xARM; then
13845   ARM_TRUE=
13846   ARM_FALSE='#'
13847 else
13848   ARM_TRUE='#'
13849   ARM_FALSE=
13850 fi
13851
13852  if test x$TARGET = xAVR32; then
13853   AVR32_TRUE=
13854   AVR32_FALSE='#'
13855 else
13856   AVR32_TRUE='#'
13857   AVR32_FALSE=
13858 fi
13859
13860  if test x$TARGET = xLIBFFI_CRIS; then
13861   LIBFFI_CRIS_TRUE=
13862   LIBFFI_CRIS_FALSE='#'
13863 else
13864   LIBFFI_CRIS_TRUE='#'
13865   LIBFFI_CRIS_FALSE=
13866 fi
13867
13868  if test x$TARGET = xFRV; then
13869   FRV_TRUE=
13870   FRV_FALSE='#'
13871 else
13872   FRV_TRUE='#'
13873   FRV_FALSE=
13874 fi
13875
13876  if test x$TARGET = xS390; then
13877   S390_TRUE=
13878   S390_FALSE='#'
13879 else
13880   S390_TRUE='#'
13881   S390_FALSE=
13882 fi
13883
13884  if test x$TARGET = xX86_64; then
13885   X86_64_TRUE=
13886   X86_64_FALSE='#'
13887 else
13888   X86_64_TRUE='#'
13889   X86_64_FALSE=
13890 fi
13891
13892  if test x$TARGET = xSH; then
13893   SH_TRUE=
13894   SH_FALSE='#'
13895 else
13896   SH_TRUE='#'
13897   SH_FALSE=
13898 fi
13899
13900  if test x$TARGET = xSH64; then
13901   SH64_TRUE=
13902   SH64_FALSE='#'
13903 else
13904   SH64_TRUE='#'
13905   SH64_FALSE=
13906 fi
13907
13908  if test x$TARGET = xPA_LINUX; then
13909   PA_LINUX_TRUE=
13910   PA_LINUX_FALSE='#'
13911 else
13912   PA_LINUX_TRUE='#'
13913   PA_LINUX_FALSE=
13914 fi
13915
13916  if test x$TARGET = xPA_HPUX; then
13917   PA_HPUX_TRUE=
13918   PA_HPUX_FALSE='#'
13919 else
13920   PA_HPUX_TRUE='#'
13921   PA_HPUX_FALSE=
13922 fi
13923
13924  if test x$TARGET = xPA64_HPUX; then
13925   PA64_HPUX_TRUE=
13926   PA64_HPUX_FALSE='#'
13927 else
13928   PA64_HPUX_TRUE='#'
13929   PA64_HPUX_FALSE=
13930 fi
13931
13932  if test x$TARGET = xTILE; then
13933   TILE_TRUE=
13934   TILE_FALSE='#'
13935 else
13936   TILE_TRUE='#'
13937   TILE_FALSE=
13938 fi
13939
13940  if test x$TARGET = xVAX; then
13941   VAX_TRUE=
13942   VAX_FALSE='#'
13943 else
13944   VAX_TRUE='#'
13945   VAX_FALSE=
13946 fi
13947
13948  if test x$TARGET = xXTENSA; then
13949   XTENSA_TRUE=
13950   XTENSA_FALSE='#'
13951 else
13952   XTENSA_TRUE='#'
13953   XTENSA_FALSE=
13954 fi
13955
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13958 $as_echo_n "checking for ANSI C header files... " >&6; }
13959 if ${ac_cv_header_stdc+:} false; then :
13960   $as_echo_n "(cached) " >&6
13961 else
13962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h.  */
13964 #include <stdlib.h>
13965 #include <stdarg.h>
13966 #include <string.h>
13967 #include <float.h>
13968
13969 int
13970 main ()
13971 {
13972
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978   ac_cv_header_stdc=yes
13979 else
13980   ac_cv_header_stdc=no
13981 fi
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983
13984 if test $ac_cv_header_stdc = yes; then
13985   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h.  */
13988 #include <string.h>
13989
13990 _ACEOF
13991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13992   $EGREP "memchr" >/dev/null 2>&1; then :
13993
13994 else
13995   ac_cv_header_stdc=no
13996 fi
13997 rm -f conftest*
13998
13999 fi
14000
14001 if test $ac_cv_header_stdc = yes; then
14002   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h.  */
14005 #include <stdlib.h>
14006
14007 _ACEOF
14008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14009   $EGREP "free" >/dev/null 2>&1; then :
14010
14011 else
14012   ac_cv_header_stdc=no
14013 fi
14014 rm -f conftest*
14015
14016 fi
14017
14018 if test $ac_cv_header_stdc = yes; then
14019   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14020   if test "$cross_compiling" = yes; then :
14021   :
14022 else
14023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025 #include <ctype.h>
14026 #include <stdlib.h>
14027 #if ((' ' & 0x0FF) == 0x020)
14028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14030 #else
14031 # define ISLOWER(c) \
14032                    (('a' <= (c) && (c) <= 'i') \
14033                      || ('j' <= (c) && (c) <= 'r') \
14034                      || ('s' <= (c) && (c) <= 'z'))
14035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14036 #endif
14037
14038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14039 int
14040 main ()
14041 {
14042   int i;
14043   for (i = 0; i < 256; i++)
14044     if (XOR (islower (i), ISLOWER (i))
14045         || toupper (i) != TOUPPER (i))
14046       return 2;
14047   return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_run "$LINENO"; then :
14051
14052 else
14053   ac_cv_header_stdc=no
14054 fi
14055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14056   conftest.$ac_objext conftest.beam conftest.$ac_ext
14057 fi
14058
14059 fi
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14062 $as_echo "$ac_cv_header_stdc" >&6; }
14063 if test $ac_cv_header_stdc = yes; then
14064
14065 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14066
14067 fi
14068
14069 for ac_func in memcpy
14070 do :
14071   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
14072 if test "x$ac_cv_func_memcpy" = xyes; then :
14073   cat >>confdefs.h <<_ACEOF
14074 #define HAVE_MEMCPY 1
14075 _ACEOF
14076
14077 fi
14078 done
14079
14080 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14081 if test "x$ac_cv_type_size_t" = xyes; then :
14082
14083 else
14084
14085 cat >>confdefs.h <<_ACEOF
14086 #define size_t unsigned int
14087 _ACEOF
14088
14089 fi
14090
14091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14092 # for constant arguments.  Useless!
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14094 $as_echo_n "checking for working alloca.h... " >&6; }
14095 if ${ac_cv_working_alloca_h+:} false; then :
14096   $as_echo_n "(cached) " >&6
14097 else
14098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h.  */
14100 #include <alloca.h>
14101 int
14102 main ()
14103 {
14104 char *p = (char *) alloca (2 * sizeof (int));
14105                           if (p) return 0;
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_link "$LINENO"; then :
14111   ac_cv_working_alloca_h=yes
14112 else
14113   ac_cv_working_alloca_h=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext \
14116     conftest$ac_exeext conftest.$ac_ext
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14119 $as_echo "$ac_cv_working_alloca_h" >&6; }
14120 if test $ac_cv_working_alloca_h = yes; then
14121
14122 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14123
14124 fi
14125
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14127 $as_echo_n "checking for alloca... " >&6; }
14128 if ${ac_cv_func_alloca_works+:} false; then :
14129   $as_echo_n "(cached) " >&6
14130 else
14131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h.  */
14133 #ifdef __GNUC__
14134 # define alloca __builtin_alloca
14135 #else
14136 # ifdef _MSC_VER
14137 #  include <malloc.h>
14138 #  define alloca _alloca
14139 # else
14140 #  ifdef HAVE_ALLOCA_H
14141 #   include <alloca.h>
14142 #  else
14143 #   ifdef _AIX
14144  #pragma alloca
14145 #   else
14146 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14147 void *alloca (size_t);
14148 #    endif
14149 #   endif
14150 #  endif
14151 # endif
14152 #endif
14153
14154 int
14155 main ()
14156 {
14157 char *p = (char *) alloca (1);
14158                                     if (p) return 0;
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164   ac_cv_func_alloca_works=yes
14165 else
14166   ac_cv_func_alloca_works=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext \
14169     conftest$ac_exeext conftest.$ac_ext
14170 fi
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14172 $as_echo "$ac_cv_func_alloca_works" >&6; }
14173
14174 if test $ac_cv_func_alloca_works = yes; then
14175
14176 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14177
14178 else
14179   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14180 # that cause trouble.  Some versions do not even contain alloca or
14181 # contain a buggy version.  If you still want to use their alloca,
14182 # use ar to extract alloca.o from them instead of compiling alloca.c.
14183
14184 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14185
14186 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14190 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14191 if ${ac_cv_os_cray+:} false; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h.  */
14196 #if defined CRAY && ! defined CRAY2
14197 webecray
14198 #else
14199 wenotbecray
14200 #endif
14201
14202 _ACEOF
14203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14204   $EGREP "webecray" >/dev/null 2>&1; then :
14205   ac_cv_os_cray=yes
14206 else
14207   ac_cv_os_cray=no
14208 fi
14209 rm -f conftest*
14210
14211 fi
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14213 $as_echo "$ac_cv_os_cray" >&6; }
14214 if test $ac_cv_os_cray = yes; then
14215   for ac_func in _getb67 GETB67 getb67; do
14216     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14219
14220 cat >>confdefs.h <<_ACEOF
14221 #define CRAY_STACKSEG_END $ac_func
14222 _ACEOF
14223
14224     break
14225 fi
14226
14227   done
14228 fi
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14231 $as_echo_n "checking stack direction for C alloca... " >&6; }
14232 if ${ac_cv_c_stack_direction+:} false; then :
14233   $as_echo_n "(cached) " >&6
14234 else
14235   if test "$cross_compiling" = yes; then :
14236   ac_cv_c_stack_direction=0
14237 else
14238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h.  */
14240 $ac_includes_default
14241 int
14242 find_stack_direction (int *addr, int depth)
14243 {
14244   int dir, dummy = 0;
14245   if (! addr)
14246     addr = &dummy;
14247   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14248   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14249   return dir + dummy;
14250 }
14251
14252 int
14253 main (int argc, char **argv)
14254 {
14255   return find_stack_direction (0, argc + !argv + 20) < 0;
14256 }
14257 _ACEOF
14258 if ac_fn_c_try_run "$LINENO"; then :
14259   ac_cv_c_stack_direction=1
14260 else
14261   ac_cv_c_stack_direction=-1
14262 fi
14263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14264   conftest.$ac_objext conftest.beam conftest.$ac_ext
14265 fi
14266
14267 fi
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14269 $as_echo "$ac_cv_c_stack_direction" >&6; }
14270 cat >>confdefs.h <<_ACEOF
14271 #define STACK_DIRECTION $ac_cv_c_stack_direction
14272 _ACEOF
14273
14274
14275 fi
14276
14277
14278 # The cast to long int works around a bug in the HP C Compiler
14279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14281 # This bug is HP SR number 8606223364.
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14283 $as_echo_n "checking size of double... " >&6; }
14284 if ${ac_cv_sizeof_double+:} false; then :
14285   $as_echo_n "(cached) " >&6
14286 else
14287   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14288
14289 else
14290   if test "$ac_cv_type_double" = yes; then
14291      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14293 as_fn_error 77 "cannot compute sizeof (double)
14294 See \`config.log' for more details" "$LINENO" 5; }
14295    else
14296      ac_cv_sizeof_double=0
14297    fi
14298 fi
14299
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14302 $as_echo "$ac_cv_sizeof_double" >&6; }
14303
14304
14305
14306 cat >>confdefs.h <<_ACEOF
14307 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14308 _ACEOF
14309
14310
14311 # The cast to long int works around a bug in the HP C Compiler
14312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14314 # This bug is HP SR number 8606223364.
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14316 $as_echo_n "checking size of long double... " >&6; }
14317 if ${ac_cv_sizeof_long_double+:} false; then :
14318   $as_echo_n "(cached) " >&6
14319 else
14320   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14321
14322 else
14323   if test "$ac_cv_type_long_double" = yes; then
14324      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14326 as_fn_error 77 "cannot compute sizeof (long double)
14327 See \`config.log' for more details" "$LINENO" 5; }
14328    else
14329      ac_cv_sizeof_long_double=0
14330    fi
14331 fi
14332
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14335 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14336
14337
14338
14339 cat >>confdefs.h <<_ACEOF
14340 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14341 _ACEOF
14342
14343
14344
14345 # Also AC_SUBST this variable for ffi.h.
14346 if test -z "$HAVE_LONG_DOUBLE"; then
14347   HAVE_LONG_DOUBLE=0
14348   if test $ac_cv_sizeof_long_double != 0; then
14349     if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
14350
14351 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
14352
14353       HAVE_LONG_DOUBLE=1
14354     else
14355       if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14356         HAVE_LONG_DOUBLE=1
14357
14358 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14359
14360       fi
14361     fi
14362   fi
14363 fi
14364
14365
14366
14367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14368 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14369 if ${ac_cv_c_bigendian+:} false; then :
14370   $as_echo_n "(cached) " >&6
14371 else
14372   ac_cv_c_bigendian=unknown
14373     # See if we're dealing with a universal compiler.
14374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h.  */
14376 #ifndef __APPLE_CC__
14377                not a universal capable compiler
14378              #endif
14379              typedef int dummy;
14380
14381 _ACEOF
14382 if ac_fn_c_try_compile "$LINENO"; then :
14383
14384         # Check for potential -arch flags.  It is not universal unless
14385         # there are at least two -arch flags with different values.
14386         ac_arch=
14387         ac_prev=
14388         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14389          if test -n "$ac_prev"; then
14390            case $ac_word in
14391              i?86 | x86_64 | ppc | ppc64)
14392                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14393                  ac_arch=$ac_word
14394                else
14395                  ac_cv_c_bigendian=universal
14396                  break
14397                fi
14398                ;;
14399            esac
14400            ac_prev=
14401          elif test "x$ac_word" = "x-arch"; then
14402            ac_prev=arch
14403          fi
14404        done
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407     if test $ac_cv_c_bigendian = unknown; then
14408       # See if sys/param.h defines the BYTE_ORDER macro.
14409       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h.  */
14411 #include <sys/types.h>
14412              #include <sys/param.h>
14413
14414 int
14415 main ()
14416 {
14417 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14418                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14419                      && LITTLE_ENDIAN)
14420               bogus endian macros
14421              #endif
14422
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 if ac_fn_c_try_compile "$LINENO"; then :
14428   # It does; now see whether it defined to BIG_ENDIAN or not.
14429          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h.  */
14431 #include <sys/types.h>
14432                 #include <sys/param.h>
14433
14434 int
14435 main ()
14436 {
14437 #if BYTE_ORDER != BIG_ENDIAN
14438                  not big endian
14439                 #endif
14440
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_compile "$LINENO"; then :
14446   ac_cv_c_bigendian=yes
14447 else
14448   ac_cv_c_bigendian=no
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453     fi
14454     if test $ac_cv_c_bigendian = unknown; then
14455       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h.  */
14458 #include <limits.h>
14459
14460 int
14461 main ()
14462 {
14463 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14464               bogus endian macros
14465              #endif
14466
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 if ac_fn_c_try_compile "$LINENO"; then :
14472   # It does; now see whether it defined to _BIG_ENDIAN or not.
14473          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h.  */
14475 #include <limits.h>
14476
14477 int
14478 main ()
14479 {
14480 #ifndef _BIG_ENDIAN
14481                  not big endian
14482                 #endif
14483
14484   ;
14485   return 0;
14486 }
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489   ac_cv_c_bigendian=yes
14490 else
14491   ac_cv_c_bigendian=no
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496     fi
14497     if test $ac_cv_c_bigendian = unknown; then
14498       # Compile a test program.
14499       if test "$cross_compiling" = yes; then :
14500   # Try to guess by grepping values from an object file.
14501          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503 short int ascii_mm[] =
14504                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14505                 short int ascii_ii[] =
14506                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14507                 int use_ascii (int i) {
14508                   return ascii_mm[i] + ascii_ii[i];
14509                 }
14510                 short int ebcdic_ii[] =
14511                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14512                 short int ebcdic_mm[] =
14513                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14514                 int use_ebcdic (int i) {
14515                   return ebcdic_mm[i] + ebcdic_ii[i];
14516                 }
14517                 extern int foo;
14518
14519 int
14520 main ()
14521 {
14522 return use_ascii (foo) == use_ebcdic (foo);
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_compile "$LINENO"; then :
14528   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14529               ac_cv_c_bigendian=yes
14530             fi
14531             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14532               if test "$ac_cv_c_bigendian" = unknown; then
14533                 ac_cv_c_bigendian=no
14534               else
14535                 # finding both strings is unlikely to happen, but who knows?
14536                 ac_cv_c_bigendian=unknown
14537               fi
14538             fi
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 else
14542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544 $ac_includes_default
14545 int
14546 main ()
14547 {
14548
14549              /* Are we little or big endian?  From Harbison&Steele.  */
14550              union
14551              {
14552                long int l;
14553                char c[sizeof (long int)];
14554              } u;
14555              u.l = 1;
14556              return u.c[sizeof (long int) - 1] == 1;
14557
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_run "$LINENO"; then :
14563   ac_cv_c_bigendian=no
14564 else
14565   ac_cv_c_bigendian=yes
14566 fi
14567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568   conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 fi
14570
14571     fi
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14574 $as_echo "$ac_cv_c_bigendian" >&6; }
14575  case $ac_cv_c_bigendian in #(
14576    yes)
14577      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14578 ;; #(
14579    no)
14580       ;; #(
14581    universal)
14582
14583 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14584
14585      ;; #(
14586    *)
14587      as_fn_error $? "unknown endianness
14588  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14589  esac
14590
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14593 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14594 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597
14598     gcc_cv_as_cfi_pseudo_op=unknown
14599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h.  */
14601 asm (".cfi_startproc\n\t.cfi_endproc");
14602 int
14603 main ()
14604 {
14605
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 if ac_fn_c_try_compile "$LINENO"; then :
14611   gcc_cv_as_cfi_pseudo_op=yes
14612 else
14613   gcc_cv_as_cfi_pseudo_op=no
14614 fi
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616
14617 fi
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14619 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14620  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14621
14622 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14623
14624  fi
14625
14626
14627 if test x$TARGET = xSPARC; then
14628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14629 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14630 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14631   $as_echo_n "(cached) " >&6
14632 else
14633
14634         save_CFLAGS="$CFLAGS"
14635         save_LDFLAGS="$LDFLAGS"
14636         CFLAGS="$CFLAGS -fpic"
14637         LDFLAGS="$LDFLAGS -shared"
14638         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14641 int
14642 main ()
14643 {
14644
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 if ac_fn_c_try_link "$LINENO"; then :
14650   libffi_cv_as_sparc_ua_pcrel=yes
14651 else
14652   libffi_cv_as_sparc_ua_pcrel=no
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext \
14655     conftest$ac_exeext conftest.$ac_ext
14656         CFLAGS="$save_CFLAGS"
14657         LDFLAGS="$save_LDFLAGS"
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14660 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14661     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14662
14663 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14664
14665     fi
14666
14667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14668 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14669 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14670   $as_echo_n "(cached) " >&6
14671 else
14672
14673        libffi_cv_as_register_pseudo_op=unknown
14674        # Check if we have .register
14675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h.  */
14677
14678 int
14679 main ()
14680 {
14681 asm (".register %g2, #scratch");
14682   ;
14683   return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_compile "$LINENO"; then :
14687   libffi_cv_as_register_pseudo_op=yes
14688 else
14689   libffi_cv_as_register_pseudo_op=no
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14695 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14696     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14697
14698 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14699
14700     fi
14701 fi
14702
14703 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14705 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14706 if ${libffi_cv_as_x86_pcrel+:} false; then :
14707   $as_echo_n "(cached) " >&6
14708 else
14709
14710         libffi_cv_as_x86_pcrel=no
14711         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14712         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14713             libffi_cv_as_x86_pcrel=yes
14714         fi
14715
14716 fi
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14718 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14719     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14720
14721 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14722
14723     fi
14724
14725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14726 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14727 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730
14731        libffi_cv_as_ascii_pseudo_op=unknown
14732        # Check if we have .ascii
14733        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h.  */
14735
14736 int
14737 main ()
14738 {
14739 asm (".ascii \\"string\\"");
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_compile "$LINENO"; then :
14745   libffi_cv_as_ascii_pseudo_op=yes
14746 else
14747   libffi_cv_as_ascii_pseudo_op=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750
14751 fi
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14753 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14754     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14755
14756 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14757
14758     fi
14759
14760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14761 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14762 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14763   $as_echo_n "(cached) " >&6
14764 else
14765
14766        libffi_cv_as_string_pseudo_op=unknown
14767        # Check if we have .string
14768        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h.  */
14770
14771 int
14772 main ()
14773 {
14774 asm (".string \\"string\\"");
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_compile "$LINENO"; then :
14780   libffi_cv_as_string_pseudo_op=yes
14781 else
14782   libffi_cv_as_string_pseudo_op=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14788 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14789     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14790
14791 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14792
14793     fi
14794 fi
14795
14796 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14797 # Check whether --enable-pax_emutramp was given.
14798 if test "${enable_pax_emutramp+set}" = set; then :
14799   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14800
14801 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14802
14803   fi
14804 fi
14805
14806
14807 if test x$TARGET = xX86_WIN64; then
14808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14809 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14810 if ${lt_cv_sys_symbol_underscore+:} false; then :
14811   $as_echo_n "(cached) " >&6
14812 else
14813   lt_cv_sys_symbol_underscore=no
14814   cat > conftest.$ac_ext <<_LT_EOF
14815 void nm_test_func(){}
14816 int main(){nm_test_func;return 0;}
14817 _LT_EOF
14818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14819   (eval $ac_compile) 2>&5
14820   ac_status=$?
14821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822   test $ac_status = 0; }; then
14823     # Now try to grab the symbols.
14824     ac_nlist=conftest.nm
14825     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14826   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14827   ac_status=$?
14828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14829   test $ac_status = 0; } && test -s "$ac_nlist"; then
14830       # See whether the symbols have a leading underscore.
14831       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14832         lt_cv_sys_symbol_underscore=yes
14833       else
14834         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14835           :
14836         else
14837           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14838         fi
14839       fi
14840     else
14841       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14842     fi
14843   else
14844     echo "configure: failed program was:" >&5
14845     cat conftest.c >&5
14846   fi
14847   rm -rf conftest*
14848
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14851 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14852   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14853
14854
14855     if test "x$sys_symbol_underscore" = xyes; then
14856
14857 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14858
14859     fi
14860 fi
14861
14862 FFI_EXEC_TRAMPOLINE_TABLE=0
14863 case "$target" in
14864      *arm*-apple-darwin*)
14865        FFI_EXEC_TRAMPOLINE_TABLE=1
14866
14867 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14868
14869      ;;
14870      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14871
14872 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14873
14874      ;;
14875 esac
14876  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14877   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14878   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14879 else
14880   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14881   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14882 fi
14883
14884
14885
14886 if test x$TARGET = xX86_64; then
14887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14888 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14889 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892
14893         libffi_cv_as_x86_64_unwind_section_type=yes
14894         echo '.section .eh_frame,"a",@unwind' > conftest.s
14895         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14896             libffi_cv_as_x86_64_unwind_section_type=no
14897         fi
14898
14899 fi
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14901 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14902     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14903
14904 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14905
14906     fi
14907 fi
14908
14909 if test "x$GCC" = "xyes"; then
14910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14911 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14912 if ${libffi_cv_ro_eh_frame+:} false; then :
14913   $as_echo_n "(cached) " >&6
14914 else
14915
14916         libffi_cv_ro_eh_frame=no
14917         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14918         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14919             objdump -h conftest.o > conftest.dump 2>&1
14920             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14921             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14922             sed -n $libffi_test_line conftest.dump > conftest.line
14923             if grep READONLY conftest.line > /dev/null; then
14924                 libffi_cv_ro_eh_frame=yes
14925             fi
14926         fi
14927         rm -f conftest.*
14928
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14931 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14932   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14933
14934 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14935
14936
14937 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14938
14939   else
14940
14941 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14942
14943   fi
14944
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14946 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14947 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14948   $as_echo_n "(cached) " >&6
14949 else
14950
14951         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14952         libffi_cv_hidden_visibility_attribute=no
14953         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14954   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14958   test $ac_status = 0; }; }; then
14959             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14960                 libffi_cv_hidden_visibility_attribute=yes
14961             fi
14962         fi
14963         rm -f conftest.*
14964
14965 fi
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14967 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14968   if test $libffi_cv_hidden_visibility_attribute = yes; then
14969
14970 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14971
14972   fi
14973 fi
14974
14975
14976
14977
14978
14979
14980
14981
14982 # Check whether --enable-debug was given.
14983 if test "${enable_debug+set}" = set; then :
14984   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14985
14986 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14987
14988   fi
14989 fi
14990
14991  if test "$enable_debug" = "yes"; then
14992   FFI_DEBUG_TRUE=
14993   FFI_DEBUG_FALSE='#'
14994 else
14995   FFI_DEBUG_TRUE='#'
14996   FFI_DEBUG_FALSE=
14997 fi
14998
14999
15000 # Check whether --enable-structs was given.
15001 if test "${enable_structs+set}" = set; then :
15002   enableval=$enable_structs; if test "$enable_structs" = "no"; then
15003
15004 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15005
15006   fi
15007 fi
15008
15009  if test "$enable_debug" = "yes"; then
15010   FFI_DEBUG_TRUE=
15011   FFI_DEBUG_FALSE='#'
15012 else
15013   FFI_DEBUG_TRUE='#'
15014   FFI_DEBUG_FALSE=
15015 fi
15016
15017
15018 # Check whether --enable-raw-api was given.
15019 if test "${enable_raw_api+set}" = set; then :
15020   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15021
15022 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15023
15024   fi
15025 fi
15026
15027
15028 # Check whether --enable-purify-safety was given.
15029 if test "${enable_purify_safety+set}" = set; then :
15030   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15031
15032 $as_echo "#define USING_PURIFY 1" >>confdefs.h
15033
15034   fi
15035 fi
15036
15037
15038 # These variables are only ever used when we cross-build to X86_WIN32.
15039 # And we only support this with GCC, so...
15040 if test "x$GCC" = "xyes"; then
15041   if test -n "$with_cross_host" &&
15042      test x"$with_cross_host" != x"no"; then
15043     toolexecdir='$(exec_prefix)/$(target_alias)'
15044     toolexeclibdir='$(toolexecdir)/lib'
15045   else
15046     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15047     toolexeclibdir='$(libdir)'
15048   fi
15049   multi_os_directory=`$CC -print-multi-os-directory`
15050   case $multi_os_directory in
15051     .) ;; # Avoid trailing /.
15052     ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15053   esac
15054
15055 else
15056   toolexeclibdir='$(libdir)'
15057 fi
15058
15059
15060 ac_config_commands="$ac_config_commands include"
15061
15062 ac_config_commands="$ac_config_commands src"
15063
15064
15065 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
15066
15067
15068 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
15069
15070
15071 cat >confcache <<\_ACEOF
15072 # This file is a shell script that caches the results of configure
15073 # tests run on this system so they can be shared between configure
15074 # scripts and configure runs, see configure's option --config-cache.
15075 # It is not useful on other systems.  If it contains results you don't
15076 # want to keep, you may remove or edit it.
15077 #
15078 # config.status only pays attention to the cache file if you give it
15079 # the --recheck option to rerun configure.
15080 #
15081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15083 # following values.
15084
15085 _ACEOF
15086
15087 # The following way of writing the cache mishandles newlines in values,
15088 # but we know of no workaround that is simple, portable, and efficient.
15089 # So, we kill variables containing newlines.
15090 # Ultrix sh set writes to stderr and can't be redirected directly,
15091 # and sets the high bit in the cache file unless we assign to the vars.
15092 (
15093   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15094     eval ac_val=\$$ac_var
15095     case $ac_val in #(
15096     *${as_nl}*)
15097       case $ac_var in #(
15098       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15100       esac
15101       case $ac_var in #(
15102       _ | IFS | as_nl) ;; #(
15103       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15104       *) { eval $ac_var=; unset $ac_var;} ;;
15105       esac ;;
15106     esac
15107   done
15108
15109   (set) 2>&1 |
15110     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15111     *${as_nl}ac_space=\ *)
15112       # `set' does not quote correctly, so add quotes: double-quote
15113       # substitution turns \\\\ into \\, and sed turns \\ into \.
15114       sed -n \
15115         "s/'/'\\\\''/g;
15116           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15117       ;; #(
15118     *)
15119       # `set' quotes correctly as required by POSIX, so do not add quotes.
15120       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15121       ;;
15122     esac |
15123     sort
15124 ) |
15125   sed '
15126      /^ac_cv_env_/b end
15127      t clear
15128      :clear
15129      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15130      t end
15131      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15132      :end' >>confcache
15133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15134   if test -w "$cache_file"; then
15135     if test "x$cache_file" != "x/dev/null"; then
15136       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15137 $as_echo "$as_me: updating cache $cache_file" >&6;}
15138       if test ! -f "$cache_file" || test -h "$cache_file"; then
15139         cat confcache >"$cache_file"
15140       else
15141         case $cache_file in #(
15142         */* | ?:*)
15143           mv -f confcache "$cache_file"$$ &&
15144           mv -f "$cache_file"$$ "$cache_file" ;; #(
15145         *)
15146           mv -f confcache "$cache_file" ;;
15147         esac
15148       fi
15149     fi
15150   else
15151     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15153   fi
15154 fi
15155 rm -f confcache
15156
15157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15158 # Let make expand exec_prefix.
15159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15160
15161 DEFS=-DHAVE_CONFIG_H
15162
15163 ac_libobjs=
15164 ac_ltlibobjs=
15165 U=
15166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15167   # 1. Remove the extension, and $U if already installed.
15168   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15169   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15170   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15171   #    will be set to the directory where LIBOBJS objects are built.
15172   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15173   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15174 done
15175 LIBOBJS=$ac_libobjs
15176
15177 LTLIBOBJS=$ac_ltlibobjs
15178
15179
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15181 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15182    if test -n "$am_sleep_pid"; then
15183      # Hide warnings about reused PIDs.
15184      wait $am_sleep_pid 2>/dev/null
15185    fi
15186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15187 $as_echo "done" >&6; }
15188  if test -n "$EXEEXT"; then
15189   am__EXEEXT_TRUE=
15190   am__EXEEXT_FALSE='#'
15191 else
15192   am__EXEEXT_TRUE='#'
15193   am__EXEEXT_FALSE=
15194 fi
15195
15196 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15197   as_fn_error $? "conditional \"AMDEP\" was never defined.
15198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15199 fi
15200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15201   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15203 fi
15204 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15205   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15207 fi
15208 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15209   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15211 fi
15212 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15213   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
15214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15215 fi
15216 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15217   as_fn_error $? "conditional \"MIPS\" was never defined.
15218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15219 fi
15220 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15221   as_fn_error $? "conditional \"BFIN\" was never defined.
15222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15223 fi
15224 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15225   as_fn_error $? "conditional \"SPARC\" was never defined.
15226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15227 fi
15228 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15229   as_fn_error $? "conditional \"X86\" was never defined.
15230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15231 fi
15232 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15233   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15235 fi
15236 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15237   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15239 fi
15240 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15241   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15243 fi
15244 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15245   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15247 fi
15248 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15249   as_fn_error $? "conditional \"ALPHA\" was never defined.
15250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15251 fi
15252 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15253   as_fn_error $? "conditional \"IA64\" was never defined.
15254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15255 fi
15256 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15257   as_fn_error $? "conditional \"M32R\" was never defined.
15258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15259 fi
15260 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15261   as_fn_error $? "conditional \"M68K\" was never defined.
15262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15263 fi
15264 if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
15265   as_fn_error $? "conditional \"M88K\" was never defined.
15266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15267 fi
15268 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15269   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15271 fi
15272 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
15273   as_fn_error $? "conditional \"METAG\" was never defined.
15274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15275 fi
15276 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15277   as_fn_error $? "conditional \"MOXIE\" was never defined.
15278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15279 fi
15280 if test -z "${NIOS2_TRUE}" && test -z "${NIOS2_FALSE}"; then
15281   as_fn_error $? "conditional \"NIOS2\" was never defined.
15282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15283 fi
15284 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15285   as_fn_error $? "conditional \"POWERPC\" was never defined.
15286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15287 fi
15288 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15289   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15291 fi
15292 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15293   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15295 fi
15296 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15297   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15299 fi
15300 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15301   as_fn_error $? "conditional \"AARCH64\" was never defined.
15302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15303 fi
15304 if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
15305   as_fn_error $? "conditional \"ARC\" was never defined.
15306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15307 fi
15308 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15309   as_fn_error $? "conditional \"ARM\" was never defined.
15310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15311 fi
15312 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15313   as_fn_error $? "conditional \"AVR32\" was never defined.
15314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315 fi
15316 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15317   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319 fi
15320 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15321   as_fn_error $? "conditional \"FRV\" was never defined.
15322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323 fi
15324 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15325   as_fn_error $? "conditional \"S390\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 fi
15328 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15329   as_fn_error $? "conditional \"X86_64\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 fi
15332 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15333   as_fn_error $? "conditional \"SH\" was never defined.
15334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15335 fi
15336 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15337   as_fn_error $? "conditional \"SH64\" was never defined.
15338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339 fi
15340 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15341   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343 fi
15344 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15345   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347 fi
15348 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15349   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 fi
15352 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15353   as_fn_error $? "conditional \"TILE\" was never defined.
15354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 fi
15356 if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
15357   as_fn_error $? "conditional \"VAX\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 fi
15360 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15361   as_fn_error $? "conditional \"XTENSA\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 fi
15364
15365 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15366   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15368 fi
15369 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15370   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15372 fi
15373 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15374   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376 fi
15377
15378 : "${CONFIG_STATUS=./config.status}"
15379 ac_write_fail=0
15380 ac_clean_files_save=$ac_clean_files
15381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15383 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15384 as_write_fail=0
15385 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15386 #! $SHELL
15387 # Generated by $as_me.
15388 # Run this file to recreate the current configuration.
15389 # Compiler output produced by configure, useful for debugging
15390 # configure, is in config.log if it exists.
15391
15392 debug=false
15393 ac_cs_recheck=false
15394 ac_cs_silent=false
15395
15396 SHELL=\${CONFIG_SHELL-$SHELL}
15397 export SHELL
15398 _ASEOF
15399 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15400 ## -------------------- ##
15401 ## M4sh Initialization. ##
15402 ## -------------------- ##
15403
15404 # Be more Bourne compatible
15405 DUALCASE=1; export DUALCASE # for MKS sh
15406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15407   emulate sh
15408   NULLCMD=:
15409   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15410   # is contrary to our usage.  Disable this feature.
15411   alias -g '${1+"$@"}'='"$@"'
15412   setopt NO_GLOB_SUBST
15413 else
15414   case `(set -o) 2>/dev/null` in #(
15415   *posix*) :
15416     set -o posix ;; #(
15417   *) :
15418      ;;
15419 esac
15420 fi
15421
15422
15423 as_nl='
15424 '
15425 export as_nl
15426 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15427 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15430 # Prefer a ksh shell builtin over an external printf program on Solaris,
15431 # but without wasting forks for bash or zsh.
15432 if test -z "$BASH_VERSION$ZSH_VERSION" \
15433     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15434   as_echo='print -r --'
15435   as_echo_n='print -rn --'
15436 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15437   as_echo='printf %s\n'
15438   as_echo_n='printf %s'
15439 else
15440   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15441     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15442     as_echo_n='/usr/ucb/echo -n'
15443   else
15444     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15445     as_echo_n_body='eval
15446       arg=$1;
15447       case $arg in #(
15448       *"$as_nl"*)
15449         expr "X$arg" : "X\\(.*\\)$as_nl";
15450         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15451       esac;
15452       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15453     '
15454     export as_echo_n_body
15455     as_echo_n='sh -c $as_echo_n_body as_echo'
15456   fi
15457   export as_echo_body
15458   as_echo='sh -c $as_echo_body as_echo'
15459 fi
15460
15461 # The user is always right.
15462 if test "${PATH_SEPARATOR+set}" != set; then
15463   PATH_SEPARATOR=:
15464   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15465     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15466       PATH_SEPARATOR=';'
15467   }
15468 fi
15469
15470
15471 # IFS
15472 # We need space, tab and new line, in precisely that order.  Quoting is
15473 # there to prevent editors from complaining about space-tab.
15474 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15475 # splitting by setting IFS to empty value.)
15476 IFS=" ""        $as_nl"
15477
15478 # Find who we are.  Look in the path if we contain no directory separator.
15479 as_myself=
15480 case $0 in #((
15481   *[\\/]* ) as_myself=$0 ;;
15482   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483 for as_dir in $PATH
15484 do
15485   IFS=$as_save_IFS
15486   test -z "$as_dir" && as_dir=.
15487     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15488   done
15489 IFS=$as_save_IFS
15490
15491      ;;
15492 esac
15493 # We did not find ourselves, most probably we were run as `sh COMMAND'
15494 # in which case we are not to be found in the path.
15495 if test "x$as_myself" = x; then
15496   as_myself=$0
15497 fi
15498 if test ! -f "$as_myself"; then
15499   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15500   exit 1
15501 fi
15502
15503 # Unset variables that we do not need and which cause bugs (e.g. in
15504 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15505 # suppresses any "Segmentation fault" message there.  '((' could
15506 # trigger a bug in pdksh 5.2.14.
15507 for as_var in BASH_ENV ENV MAIL MAILPATH
15508 do eval test x\${$as_var+set} = xset \
15509   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15510 done
15511 PS1='$ '
15512 PS2='> '
15513 PS4='+ '
15514
15515 # NLS nuisances.
15516 LC_ALL=C
15517 export LC_ALL
15518 LANGUAGE=C
15519 export LANGUAGE
15520
15521 # CDPATH.
15522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15523
15524
15525 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15526 # ----------------------------------------
15527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15529 # script with STATUS, using 1 if that was 0.
15530 as_fn_error ()
15531 {
15532   as_status=$1; test $as_status -eq 0 && as_status=1
15533   if test "$4"; then
15534     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15535     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15536   fi
15537   $as_echo "$as_me: error: $2" >&2
15538   as_fn_exit $as_status
15539 } # as_fn_error
15540
15541
15542 # as_fn_set_status STATUS
15543 # -----------------------
15544 # Set $? to STATUS, without forking.
15545 as_fn_set_status ()
15546 {
15547   return $1
15548 } # as_fn_set_status
15549
15550 # as_fn_exit STATUS
15551 # -----------------
15552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15553 as_fn_exit ()
15554 {
15555   set +e
15556   as_fn_set_status $1
15557   exit $1
15558 } # as_fn_exit
15559
15560 # as_fn_unset VAR
15561 # ---------------
15562 # Portably unset VAR.
15563 as_fn_unset ()
15564 {
15565   { eval $1=; unset $1;}
15566 }
15567 as_unset=as_fn_unset
15568 # as_fn_append VAR VALUE
15569 # ----------------------
15570 # Append the text in VALUE to the end of the definition contained in VAR. Take
15571 # advantage of any shell optimizations that allow amortized linear growth over
15572 # repeated appends, instead of the typical quadratic growth present in naive
15573 # implementations.
15574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15575   eval 'as_fn_append ()
15576   {
15577     eval $1+=\$2
15578   }'
15579 else
15580   as_fn_append ()
15581   {
15582     eval $1=\$$1\$2
15583   }
15584 fi # as_fn_append
15585
15586 # as_fn_arith ARG...
15587 # ------------------
15588 # Perform arithmetic evaluation on the ARGs, and store the result in the
15589 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15590 # must be portable across $(()) and expr.
15591 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15592   eval 'as_fn_arith ()
15593   {
15594     as_val=$(( $* ))
15595   }'
15596 else
15597   as_fn_arith ()
15598   {
15599     as_val=`expr "$@" || test $? -eq 1`
15600   }
15601 fi # as_fn_arith
15602
15603
15604 if expr a : '\(a\)' >/dev/null 2>&1 &&
15605    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15606   as_expr=expr
15607 else
15608   as_expr=false
15609 fi
15610
15611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15612   as_basename=basename
15613 else
15614   as_basename=false
15615 fi
15616
15617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15618   as_dirname=dirname
15619 else
15620   as_dirname=false
15621 fi
15622
15623 as_me=`$as_basename -- "$0" ||
15624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15625          X"$0" : 'X\(//\)$' \| \
15626          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15627 $as_echo X/"$0" |
15628     sed '/^.*\/\([^/][^/]*\)\/*$/{
15629             s//\1/
15630             q
15631           }
15632           /^X\/\(\/\/\)$/{
15633             s//\1/
15634             q
15635           }
15636           /^X\/\(\/\).*/{
15637             s//\1/
15638             q
15639           }
15640           s/.*/./; q'`
15641
15642 # Avoid depending upon Character Ranges.
15643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15646 as_cr_digits='0123456789'
15647 as_cr_alnum=$as_cr_Letters$as_cr_digits
15648
15649 ECHO_C= ECHO_N= ECHO_T=
15650 case `echo -n x` in #(((((
15651 -n*)
15652   case `echo 'xy\c'` in
15653   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15654   xy)  ECHO_C='\c';;
15655   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15656        ECHO_T=' ';;
15657   esac;;
15658 *)
15659   ECHO_N='-n';;
15660 esac
15661
15662 rm -f conf$$ conf$$.exe conf$$.file
15663 if test -d conf$$.dir; then
15664   rm -f conf$$.dir/conf$$.file
15665 else
15666   rm -f conf$$.dir
15667   mkdir conf$$.dir 2>/dev/null
15668 fi
15669 if (echo >conf$$.file) 2>/dev/null; then
15670   if ln -s conf$$.file conf$$ 2>/dev/null; then
15671     as_ln_s='ln -s'
15672     # ... but there are two gotchas:
15673     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15674     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15675     # In both cases, we have to default to `cp -pR'.
15676     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15677       as_ln_s='cp -pR'
15678   elif ln conf$$.file conf$$ 2>/dev/null; then
15679     as_ln_s=ln
15680   else
15681     as_ln_s='cp -pR'
15682   fi
15683 else
15684   as_ln_s='cp -pR'
15685 fi
15686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15687 rmdir conf$$.dir 2>/dev/null
15688
15689
15690 # as_fn_mkdir_p
15691 # -------------
15692 # Create "$as_dir" as a directory, including parents if necessary.
15693 as_fn_mkdir_p ()
15694 {
15695
15696   case $as_dir in #(
15697   -*) as_dir=./$as_dir;;
15698   esac
15699   test -d "$as_dir" || eval $as_mkdir_p || {
15700     as_dirs=
15701     while :; do
15702       case $as_dir in #(
15703       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15704       *) as_qdir=$as_dir;;
15705       esac
15706       as_dirs="'$as_qdir' $as_dirs"
15707       as_dir=`$as_dirname -- "$as_dir" ||
15708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15709          X"$as_dir" : 'X\(//\)[^/]' \| \
15710          X"$as_dir" : 'X\(//\)$' \| \
15711          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15712 $as_echo X"$as_dir" |
15713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15714             s//\1/
15715             q
15716           }
15717           /^X\(\/\/\)[^/].*/{
15718             s//\1/
15719             q
15720           }
15721           /^X\(\/\/\)$/{
15722             s//\1/
15723             q
15724           }
15725           /^X\(\/\).*/{
15726             s//\1/
15727             q
15728           }
15729           s/.*/./; q'`
15730       test -d "$as_dir" && break
15731     done
15732     test -z "$as_dirs" || eval "mkdir $as_dirs"
15733   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15734
15735
15736 } # as_fn_mkdir_p
15737 if mkdir -p . 2>/dev/null; then
15738   as_mkdir_p='mkdir -p "$as_dir"'
15739 else
15740   test -d ./-p && rmdir ./-p
15741   as_mkdir_p=false
15742 fi
15743
15744
15745 # as_fn_executable_p FILE
15746 # -----------------------
15747 # Test if FILE is an executable regular file.
15748 as_fn_executable_p ()
15749 {
15750   test -f "$1" && test -x "$1"
15751 } # as_fn_executable_p
15752 as_test_x='test -x'
15753 as_executable_p=as_fn_executable_p
15754
15755 # Sed expression to map a string onto a valid CPP name.
15756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15757
15758 # Sed expression to map a string onto a valid variable name.
15759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15760
15761
15762 exec 6>&1
15763 ## ----------------------------------- ##
15764 ## Main body of $CONFIG_STATUS script. ##
15765 ## ----------------------------------- ##
15766 _ASEOF
15767 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15768
15769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15770 # Save the log message, to keep $0 and so on meaningful, and to
15771 # report actual input values of CONFIG_FILES etc. instead of their
15772 # values after options handling.
15773 ac_log="
15774 This file was extended by libffi $as_me 3.0.14-rc0, which was
15775 generated by GNU Autoconf 2.69.  Invocation command line was
15776
15777   CONFIG_FILES    = $CONFIG_FILES
15778   CONFIG_HEADERS  = $CONFIG_HEADERS
15779   CONFIG_LINKS    = $CONFIG_LINKS
15780   CONFIG_COMMANDS = $CONFIG_COMMANDS
15781   $ $0 $@
15782
15783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15784 "
15785
15786 _ACEOF
15787
15788 case $ac_config_files in *"
15789 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15790 esac
15791
15792 case $ac_config_headers in *"
15793 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15794 esac
15795
15796
15797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15798 # Files that config.status was made for.
15799 config_files="$ac_config_files"
15800 config_headers="$ac_config_headers"
15801 config_links="$ac_config_links"
15802 config_commands="$ac_config_commands"
15803
15804 _ACEOF
15805
15806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15807 ac_cs_usage="\
15808 \`$as_me' instantiates files and other configuration actions
15809 from templates according to the current configuration.  Unless the files
15810 and actions are specified as TAGs, all are instantiated by default.
15811
15812 Usage: $0 [OPTION]... [TAG]...
15813
15814   -h, --help       print this help, then exit
15815   -V, --version    print version number and configuration settings, then exit
15816       --config     print configuration, then exit
15817   -q, --quiet, --silent
15818                    do not print progress messages
15819   -d, --debug      don't remove temporary files
15820       --recheck    update $as_me by reconfiguring in the same conditions
15821       --file=FILE[:TEMPLATE]
15822                    instantiate the configuration file FILE
15823       --header=FILE[:TEMPLATE]
15824                    instantiate the configuration header FILE
15825
15826 Configuration files:
15827 $config_files
15828
15829 Configuration headers:
15830 $config_headers
15831
15832 Configuration links:
15833 $config_links
15834
15835 Configuration commands:
15836 $config_commands
15837
15838 Report bugs to <http://github.com/atgreen/libffi/issues>."
15839
15840 _ACEOF
15841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15843 ac_cs_version="\\
15844 libffi config.status 3.0.14-rc0
15845 configured by $0, generated by GNU Autoconf 2.69,
15846   with options \\"\$ac_cs_config\\"
15847
15848 Copyright (C) 2012 Free Software Foundation, Inc.
15849 This config.status script is free software; the Free Software Foundation
15850 gives unlimited permission to copy, distribute and modify it."
15851
15852 ac_pwd='$ac_pwd'
15853 srcdir='$srcdir'
15854 INSTALL='$INSTALL'
15855 MKDIR_P='$MKDIR_P'
15856 AWK='$AWK'
15857 test -n "\$AWK" || AWK=awk
15858 _ACEOF
15859
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 # The default lists apply if the user does not specify any file.
15862 ac_need_defaults=:
15863 while test $# != 0
15864 do
15865   case $1 in
15866   --*=?*)
15867     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15868     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15869     ac_shift=:
15870     ;;
15871   --*=)
15872     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15873     ac_optarg=
15874     ac_shift=:
15875     ;;
15876   *)
15877     ac_option=$1
15878     ac_optarg=$2
15879     ac_shift=shift
15880     ;;
15881   esac
15882
15883   case $ac_option in
15884   # Handling of the options.
15885   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15886     ac_cs_recheck=: ;;
15887   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15888     $as_echo "$ac_cs_version"; exit ;;
15889   --config | --confi | --conf | --con | --co | --c )
15890     $as_echo "$ac_cs_config"; exit ;;
15891   --debug | --debu | --deb | --de | --d | -d )
15892     debug=: ;;
15893   --file | --fil | --fi | --f )
15894     $ac_shift
15895     case $ac_optarg in
15896     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15897     '') as_fn_error $? "missing file argument" ;;
15898     esac
15899     as_fn_append CONFIG_FILES " '$ac_optarg'"
15900     ac_need_defaults=false;;
15901   --header | --heade | --head | --hea )
15902     $ac_shift
15903     case $ac_optarg in
15904     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15905     esac
15906     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15907     ac_need_defaults=false;;
15908   --he | --h)
15909     # Conflict between --help and --header
15910     as_fn_error $? "ambiguous option: \`$1'
15911 Try \`$0 --help' for more information.";;
15912   --help | --hel | -h )
15913     $as_echo "$ac_cs_usage"; exit ;;
15914   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15915   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15916     ac_cs_silent=: ;;
15917
15918   # This is an error.
15919   -*) as_fn_error $? "unrecognized option: \`$1'
15920 Try \`$0 --help' for more information." ;;
15921
15922   *) as_fn_append ac_config_targets " $1"
15923      ac_need_defaults=false ;;
15924
15925   esac
15926   shift
15927 done
15928
15929 ac_configure_extra_args=
15930
15931 if $ac_cs_silent; then
15932   exec 6>/dev/null
15933   ac_configure_extra_args="$ac_configure_extra_args --silent"
15934 fi
15935
15936 _ACEOF
15937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15938 if \$ac_cs_recheck; then
15939   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15940   shift
15941   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15942   CONFIG_SHELL='$SHELL'
15943   export CONFIG_SHELL
15944   exec "\$@"
15945 fi
15946
15947 _ACEOF
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 exec 5>>config.log
15950 {
15951   echo
15952   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15953 ## Running $as_me. ##
15954 _ASBOX
15955   $as_echo "$ac_log"
15956 } >&5
15957
15958 _ACEOF
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 #
15961 # INIT-COMMANDS
15962 #
15963 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15964 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15965 ax_enable_builddir_version="$VERSION"                  # $VERSION
15966 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15967 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15968 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15969 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15970
15971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15972
15973
15974 # The HP-UX ksh and POSIX shell print the target directory to stdout
15975 # if CDPATH is set.
15976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15977
15978 sed_quote_subst='$sed_quote_subst'
15979 double_quote_subst='$double_quote_subst'
15980 delay_variable_subst='$delay_variable_subst'
15981 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15982 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15983 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15984 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15985 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15986 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15987 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15988 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15989 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15990 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15991 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15992 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15993 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15994 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15995 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15996 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15997 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15998 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15999 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16000 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16001 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16002 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16003 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16004 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16005 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16006 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16007 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16008 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16009 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16010 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16011 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16012 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16013 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16014 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16015 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16016 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16017 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16018 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16019 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16020 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16021 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16022 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16023 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16024 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16025 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16026 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16027 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16028 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16029 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16030 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16031 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16032 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16033 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16034 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16035 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16036 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16037 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16038 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"`'
16039 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16040 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16041 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16042 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16043 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16044 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16045 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16046 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16047 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16048 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16049 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16050 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16051 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16052 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16053 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16054 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16055 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16056 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16057 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16058 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16059 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16060 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16061 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16062 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16063 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16064 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16065 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16066 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16067 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16068 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16069 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16070 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16071 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16072 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16073 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16074 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16075 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16076 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16077 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16078 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16079 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16080 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16081 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16082 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16083 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16084 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16085 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16086 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16087 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16088 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16089 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16090 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16091 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16092 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16093 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16094 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16095 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16096 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16097 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16098 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16099 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16100 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16101 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16102 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16103 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16104 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16105 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16106 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16107 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16108 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16109 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16110 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16111 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16112 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16113
16114 LTCC='$LTCC'
16115 LTCFLAGS='$LTCFLAGS'
16116 compiler='$compiler_DEFAULT'
16117
16118 # A function that is used when there is no print builtin or printf.
16119 func_fallback_echo ()
16120 {
16121   eval 'cat <<_LTECHO_EOF
16122 \$1
16123 _LTECHO_EOF'
16124 }
16125
16126 # Quote evaled strings.
16127 for var in SHELL \
16128 ECHO \
16129 PATH_SEPARATOR \
16130 SED \
16131 GREP \
16132 EGREP \
16133 FGREP \
16134 LD \
16135 NM \
16136 LN_S \
16137 lt_SP2NL \
16138 lt_NL2SP \
16139 reload_flag \
16140 OBJDUMP \
16141 deplibs_check_method \
16142 file_magic_cmd \
16143 file_magic_glob \
16144 want_nocaseglob \
16145 DLLTOOL \
16146 sharedlib_from_linklib_cmd \
16147 AR \
16148 AR_FLAGS \
16149 archiver_list_spec \
16150 STRIP \
16151 RANLIB \
16152 CC \
16153 CFLAGS \
16154 compiler \
16155 lt_cv_sys_global_symbol_pipe \
16156 lt_cv_sys_global_symbol_to_cdecl \
16157 lt_cv_sys_global_symbol_to_import \
16158 lt_cv_sys_global_symbol_to_c_name_address \
16159 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16160 lt_cv_nm_interface \
16161 nm_file_list_spec \
16162 lt_prog_compiler_no_builtin_flag \
16163 lt_prog_compiler_pic \
16164 lt_prog_compiler_wl \
16165 lt_prog_compiler_static \
16166 lt_cv_prog_compiler_c_o \
16167 need_locks \
16168 MANIFEST_TOOL \
16169 DSYMUTIL \
16170 NMEDIT \
16171 LIPO \
16172 OTOOL \
16173 OTOOL64 \
16174 shrext_cmds \
16175 export_dynamic_flag_spec \
16176 whole_archive_flag_spec \
16177 compiler_needs_object \
16178 with_gnu_ld \
16179 allow_undefined_flag \
16180 no_undefined_flag \
16181 hardcode_libdir_flag_spec \
16182 hardcode_libdir_separator \
16183 exclude_expsyms \
16184 include_expsyms \
16185 file_list_spec \
16186 variables_saved_for_relink \
16187 libname_spec \
16188 library_names_spec \
16189 soname_spec \
16190 install_override_mode \
16191 finish_eval \
16192 old_striplib \
16193 striplib; do
16194     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16195     *[\\\\\\\`\\"\\\$]*)
16196       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16197       ;;
16198     *)
16199       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16200       ;;
16201     esac
16202 done
16203
16204 # Double-quote double-evaled strings.
16205 for var in reload_cmds \
16206 old_postinstall_cmds \
16207 old_postuninstall_cmds \
16208 old_archive_cmds \
16209 extract_expsyms_cmds \
16210 old_archive_from_new_cmds \
16211 old_archive_from_expsyms_cmds \
16212 archive_cmds \
16213 archive_expsym_cmds \
16214 module_cmds \
16215 module_expsym_cmds \
16216 export_symbols_cmds \
16217 prelink_cmds \
16218 postlink_cmds \
16219 postinstall_cmds \
16220 postuninstall_cmds \
16221 finish_cmds \
16222 sys_lib_search_path_spec \
16223 sys_lib_dlsearch_path_spec; do
16224     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16225     *[\\\\\\\`\\"\\\$]*)
16226       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16227       ;;
16228     *)
16229       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16230       ;;
16231     esac
16232 done
16233
16234 ac_aux_dir='$ac_aux_dir'
16235
16236 # See if we are running on zsh, and set the options that allow our
16237 # commands through without removal of \ escapes INIT.
16238 if test -n "\${ZSH_VERSION+set}"; then
16239    setopt NO_GLOB_SUBST
16240 fi
16241
16242
16243     PACKAGE='$PACKAGE'
16244     VERSION='$VERSION'
16245     RM='$RM'
16246     ofile='$ofile'
16247
16248
16249
16250 TARGETDIR="$TARGETDIR"
16251
16252 _ACEOF
16253
16254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255
16256 # Handling of arguments.
16257 for ac_config_target in $ac_config_targets
16258 do
16259   case $ac_config_target in
16260     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16261     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16262     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16263     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16264     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16265     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16266     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16267     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16268     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16269     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16270     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16271     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16272     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16273
16274   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16275   esac
16276 done
16277
16278
16279 # If the user did not use the arguments to specify the items to instantiate,
16280 # then the envvar interface is used.  Set only those that are not.
16281 # We use the long form for the default assignment because of an extremely
16282 # bizarre bug on SunOS 4.1.3.
16283 if $ac_need_defaults; then
16284   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16285   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16286   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16287   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16288 fi
16289
16290 # Have a temporary directory for convenience.  Make it in the build tree
16291 # simply because there is no reason against having it here, and in addition,
16292 # creating and moving files from /tmp can sometimes cause problems.
16293 # Hook for its removal unless debugging.
16294 # Note that there is a small window in which the directory will not be cleaned:
16295 # after its creation but before its name has been assigned to `$tmp'.
16296 $debug ||
16297 {
16298   tmp= ac_tmp=
16299   trap 'exit_status=$?
16300   : "${ac_tmp:=$tmp}"
16301   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16302 ' 0
16303   trap 'as_fn_exit 1' 1 2 13 15
16304 }
16305 # Create a (secure) tmp directory for tmp files.
16306
16307 {
16308   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16309   test -d "$tmp"
16310 }  ||
16311 {
16312   tmp=./conf$$-$RANDOM
16313   (umask 077 && mkdir "$tmp")
16314 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16315 ac_tmp=$tmp
16316
16317 # Set up the scripts for CONFIG_FILES section.
16318 # No need to generate them if there are no CONFIG_FILES.
16319 # This happens for instance with `./config.status config.h'.
16320 if test -n "$CONFIG_FILES"; then
16321
16322
16323 ac_cr=`echo X | tr X '\015'`
16324 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16325 # But we know of no other shell where ac_cr would be empty at this
16326 # point, so we can use a bashism as a fallback.
16327 if test "x$ac_cr" = x; then
16328   eval ac_cr=\$\'\\r\'
16329 fi
16330 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16331 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16332   ac_cs_awk_cr='\\r'
16333 else
16334   ac_cs_awk_cr=$ac_cr
16335 fi
16336
16337 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16338 _ACEOF
16339
16340
16341 {
16342   echo "cat >conf$$subs.awk <<_ACEOF" &&
16343   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16344   echo "_ACEOF"
16345 } >conf$$subs.sh ||
16346   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16347 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16348 ac_delim='%!_!# '
16349 for ac_last_try in false false false false false :; do
16350   . ./conf$$subs.sh ||
16351     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16352
16353   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16354   if test $ac_delim_n = $ac_delim_num; then
16355     break
16356   elif $ac_last_try; then
16357     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16358   else
16359     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16360   fi
16361 done
16362 rm -f conf$$subs.sh
16363
16364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16365 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16366 _ACEOF
16367 sed -n '
16368 h
16369 s/^/S["/; s/!.*/"]=/
16370 p
16371 g
16372 s/^[^!]*!//
16373 :repl
16374 t repl
16375 s/'"$ac_delim"'$//
16376 t delim
16377 :nl
16378 h
16379 s/\(.\{148\}\)..*/\1/
16380 t more1
16381 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16382 p
16383 n
16384 b repl
16385 :more1
16386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16387 p
16388 g
16389 s/.\{148\}//
16390 t nl
16391 :delim
16392 h
16393 s/\(.\{148\}\)..*/\1/
16394 t more2
16395 s/["\\]/\\&/g; s/^/"/; s/$/"/
16396 p
16397 b
16398 :more2
16399 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16400 p
16401 g
16402 s/.\{148\}//
16403 t delim
16404 ' <conf$$subs.awk | sed '
16405 /^[^""]/{
16406   N
16407   s/\n//
16408 }
16409 ' >>$CONFIG_STATUS || ac_write_fail=1
16410 rm -f conf$$subs.awk
16411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16412 _ACAWK
16413 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16414   for (key in S) S_is_set[key] = 1
16415   FS = "\a"
16416
16417 }
16418 {
16419   line = $ 0
16420   nfields = split(line, field, "@")
16421   substed = 0
16422   len = length(field[1])
16423   for (i = 2; i < nfields; i++) {
16424     key = field[i]
16425     keylen = length(key)
16426     if (S_is_set[key]) {
16427       value = S[key]
16428       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16429       len += length(value) + length(field[++i])
16430       substed = 1
16431     } else
16432       len += 1 + keylen
16433   }
16434
16435   print line
16436 }
16437
16438 _ACAWK
16439 _ACEOF
16440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16441 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16442   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16443 else
16444   cat
16445 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16446   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16447 _ACEOF
16448
16449 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16450 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16451 # trailing colons and then remove the whole line if VPATH becomes empty
16452 # (actually we leave an empty line to preserve line numbers).
16453 if test "x$srcdir" = x.; then
16454   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16455 h
16456 s///
16457 s/^/:/
16458 s/[      ]*$/:/
16459 s/:\$(srcdir):/:/g
16460 s/:\${srcdir}:/:/g
16461 s/:@srcdir@:/:/g
16462 s/^:*//
16463 s/:*$//
16464 x
16465 s/\(=[   ]*\).*/\1/
16466 G
16467 s/\n//
16468 s/^[^=]*=[       ]*$//
16469 }'
16470 fi
16471
16472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16473 fi # test -n "$CONFIG_FILES"
16474
16475 # Set up the scripts for CONFIG_HEADERS section.
16476 # No need to generate them if there are no CONFIG_HEADERS.
16477 # This happens for instance with `./config.status Makefile'.
16478 if test -n "$CONFIG_HEADERS"; then
16479 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16480 BEGIN {
16481 _ACEOF
16482
16483 # Transform confdefs.h into an awk script `defines.awk', embedded as
16484 # here-document in config.status, that substitutes the proper values into
16485 # config.h.in to produce config.h.
16486
16487 # Create a delimiter string that does not exist in confdefs.h, to ease
16488 # handling of long lines.
16489 ac_delim='%!_!# '
16490 for ac_last_try in false false :; do
16491   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16492   if test -z "$ac_tt"; then
16493     break
16494   elif $ac_last_try; then
16495     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16496   else
16497     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16498   fi
16499 done
16500
16501 # For the awk script, D is an array of macro values keyed by name,
16502 # likewise P contains macro parameters if any.  Preserve backslash
16503 # newline sequences.
16504
16505 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16506 sed -n '
16507 s/.\{148\}/&'"$ac_delim"'/g
16508 t rset
16509 :rset
16510 s/^[     ]*#[    ]*define[       ][      ]*/ /
16511 t def
16512 d
16513 :def
16514 s/\\$//
16515 t bsnl
16516 s/["\\]/\\&/g
16517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16518 D["\1"]=" \3"/p
16519 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16520 d
16521 :bsnl
16522 s/["\\]/\\&/g
16523 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16524 D["\1"]=" \3\\\\\\n"\\/p
16525 t cont
16526 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16527 t cont
16528 d
16529 :cont
16530 n
16531 s/.\{148\}/&'"$ac_delim"'/g
16532 t clear
16533 :clear
16534 s/\\$//
16535 t bsnlc
16536 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16537 d
16538 :bsnlc
16539 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16540 b cont
16541 ' <confdefs.h | sed '
16542 s/'"$ac_delim"'/"\\\
16543 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16544
16545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16546   for (key in D) D_is_set[key] = 1
16547   FS = "\a"
16548 }
16549 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16550   line = \$ 0
16551   split(line, arg, " ")
16552   if (arg[1] == "#") {
16553     defundef = arg[2]
16554     mac1 = arg[3]
16555   } else {
16556     defundef = substr(arg[1], 2)
16557     mac1 = arg[2]
16558   }
16559   split(mac1, mac2, "(") #)
16560   macro = mac2[1]
16561   prefix = substr(line, 1, index(line, defundef) - 1)
16562   if (D_is_set[macro]) {
16563     # Preserve the white space surrounding the "#".
16564     print prefix "define", macro P[macro] D[macro]
16565     next
16566   } else {
16567     # Replace #undef with comments.  This is necessary, for example,
16568     # in the case of _POSIX_SOURCE, which is predefined and required
16569     # on some systems where configure will not decide to define it.
16570     if (defundef == "undef") {
16571       print "/*", prefix defundef, macro, "*/"
16572       next
16573     }
16574   }
16575 }
16576 { print }
16577 _ACAWK
16578 _ACEOF
16579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16580   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16581 fi # test -n "$CONFIG_HEADERS"
16582
16583
16584 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16585 shift
16586 for ac_tag
16587 do
16588   case $ac_tag in
16589   :[FHLC]) ac_mode=$ac_tag; continue;;
16590   esac
16591   case $ac_mode$ac_tag in
16592   :[FHL]*:*);;
16593   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16594   :[FH]-) ac_tag=-:-;;
16595   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16596   esac
16597   ac_save_IFS=$IFS
16598   IFS=:
16599   set x $ac_tag
16600   IFS=$ac_save_IFS
16601   shift
16602   ac_file=$1
16603   shift
16604
16605   case $ac_mode in
16606   :L) ac_source=$1;;
16607   :[FH])
16608     ac_file_inputs=
16609     for ac_f
16610     do
16611       case $ac_f in
16612       -) ac_f="$ac_tmp/stdin";;
16613       *) # Look for the file first in the build tree, then in the source tree
16614          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16615          # because $ac_f cannot contain `:'.
16616          test -f "$ac_f" ||
16617            case $ac_f in
16618            [\\/$]*) false;;
16619            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16620            esac ||
16621            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16622       esac
16623       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16624       as_fn_append ac_file_inputs " '$ac_f'"
16625     done
16626
16627     # Let's still pretend it is `configure' which instantiates (i.e., don't
16628     # use $as_me), people would be surprised to read:
16629     #    /* config.h.  Generated by config.status.  */
16630     configure_input='Generated from '`
16631           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16632         `' by configure.'
16633     if test x"$ac_file" != x-; then
16634       configure_input="$ac_file.  $configure_input"
16635       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16636 $as_echo "$as_me: creating $ac_file" >&6;}
16637     fi
16638     # Neutralize special characters interpreted by sed in replacement strings.
16639     case $configure_input in #(
16640     *\&* | *\|* | *\\* )
16641        ac_sed_conf_input=`$as_echo "$configure_input" |
16642        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16643     *) ac_sed_conf_input=$configure_input;;
16644     esac
16645
16646     case $ac_tag in
16647     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16648       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16649     esac
16650     ;;
16651   esac
16652
16653   ac_dir=`$as_dirname -- "$ac_file" ||
16654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16655          X"$ac_file" : 'X\(//\)[^/]' \| \
16656          X"$ac_file" : 'X\(//\)$' \| \
16657          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16658 $as_echo X"$ac_file" |
16659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16660             s//\1/
16661             q
16662           }
16663           /^X\(\/\/\)[^/].*/{
16664             s//\1/
16665             q
16666           }
16667           /^X\(\/\/\)$/{
16668             s//\1/
16669             q
16670           }
16671           /^X\(\/\).*/{
16672             s//\1/
16673             q
16674           }
16675           s/.*/./; q'`
16676   as_dir="$ac_dir"; as_fn_mkdir_p
16677   ac_builddir=.
16678
16679 case "$ac_dir" in
16680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16681 *)
16682   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16683   # A ".." for each directory in $ac_dir_suffix.
16684   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16685   case $ac_top_builddir_sub in
16686   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16687   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16688   esac ;;
16689 esac
16690 ac_abs_top_builddir=$ac_pwd
16691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16692 # for backward compatibility:
16693 ac_top_builddir=$ac_top_build_prefix
16694
16695 case $srcdir in
16696   .)  # We are building in place.
16697     ac_srcdir=.
16698     ac_top_srcdir=$ac_top_builddir_sub
16699     ac_abs_top_srcdir=$ac_pwd ;;
16700   [\\/]* | ?:[\\/]* )  # Absolute name.
16701     ac_srcdir=$srcdir$ac_dir_suffix;
16702     ac_top_srcdir=$srcdir
16703     ac_abs_top_srcdir=$srcdir ;;
16704   *) # Relative name.
16705     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16706     ac_top_srcdir=$ac_top_build_prefix$srcdir
16707     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16708 esac
16709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16710
16711
16712   case $ac_mode in
16713   :F)
16714   #
16715   # CONFIG_FILE
16716   #
16717
16718   case $INSTALL in
16719   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16720   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16721   esac
16722   ac_MKDIR_P=$MKDIR_P
16723   case $MKDIR_P in
16724   [\\/$]* | ?:[\\/]* ) ;;
16725   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16726   esac
16727 _ACEOF
16728
16729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16730 # If the template does not know about datarootdir, expand it.
16731 # FIXME: This hack should be removed a few years after 2.60.
16732 ac_datarootdir_hack=; ac_datarootdir_seen=
16733 ac_sed_dataroot='
16734 /datarootdir/ {
16735   p
16736   q
16737 }
16738 /@datadir@/p
16739 /@docdir@/p
16740 /@infodir@/p
16741 /@localedir@/p
16742 /@mandir@/p'
16743 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16744 *datarootdir*) ac_datarootdir_seen=yes;;
16745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16747 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16748 _ACEOF
16749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16750   ac_datarootdir_hack='
16751   s&@datadir@&$datadir&g
16752   s&@docdir@&$docdir&g
16753   s&@infodir@&$infodir&g
16754   s&@localedir@&$localedir&g
16755   s&@mandir@&$mandir&g
16756   s&\\\${datarootdir}&$datarootdir&g' ;;
16757 esac
16758 _ACEOF
16759
16760 # Neutralize VPATH when `$srcdir' = `.'.
16761 # Shell code in configure.ac might set extrasub.
16762 # FIXME: do we really want to maintain this feature?
16763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16764 ac_sed_extra="$ac_vpsub
16765 $extrasub
16766 _ACEOF
16767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16768 :t
16769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16770 s|@configure_input@|$ac_sed_conf_input|;t t
16771 s&@top_builddir@&$ac_top_builddir_sub&;t t
16772 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16773 s&@srcdir@&$ac_srcdir&;t t
16774 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16775 s&@top_srcdir@&$ac_top_srcdir&;t t
16776 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16777 s&@builddir@&$ac_builddir&;t t
16778 s&@abs_builddir@&$ac_abs_builddir&;t t
16779 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16780 s&@INSTALL@&$ac_INSTALL&;t t
16781 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16782 $ac_datarootdir_hack
16783 "
16784 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16785   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16786
16787 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16788   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16789   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16790       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16791   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16792 which seems to be undefined.  Please make sure it is defined" >&5
16793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16794 which seems to be undefined.  Please make sure it is defined" >&2;}
16795
16796   rm -f "$ac_tmp/stdin"
16797   case $ac_file in
16798   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16799   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16800   esac \
16801   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16802  ;;
16803   :H)
16804   #
16805   # CONFIG_HEADER
16806   #
16807   if test x"$ac_file" != x-; then
16808     {
16809       $as_echo "/* $configure_input  */" \
16810       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16811     } >"$ac_tmp/config.h" \
16812       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16813     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16814       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16815 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16816     else
16817       rm -f "$ac_file"
16818       mv "$ac_tmp/config.h" "$ac_file" \
16819         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16820     fi
16821   else
16822     $as_echo "/* $configure_input  */" \
16823       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16824       || as_fn_error $? "could not create -" "$LINENO" 5
16825   fi
16826 # Compute "$ac_file"'s index in $config_headers.
16827 _am_arg="$ac_file"
16828 _am_stamp_count=1
16829 for _am_header in $config_headers :; do
16830   case $_am_header in
16831     $_am_arg | $_am_arg:* )
16832       break ;;
16833     * )
16834       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16835   esac
16836 done
16837 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16838 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839          X"$_am_arg" : 'X\(//\)[^/]' \| \
16840          X"$_am_arg" : 'X\(//\)$' \| \
16841          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X"$_am_arg" |
16843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16844             s//\1/
16845             q
16846           }
16847           /^X\(\/\/\)[^/].*/{
16848             s//\1/
16849             q
16850           }
16851           /^X\(\/\/\)$/{
16852             s//\1/
16853             q
16854           }
16855           /^X\(\/\).*/{
16856             s//\1/
16857             q
16858           }
16859           s/.*/./; q'`/stamp-h$_am_stamp_count
16860  ;;
16861   :L)
16862   #
16863   # CONFIG_LINK
16864   #
16865
16866   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16867     :
16868   else
16869     # Prefer the file from the source tree if names are identical.
16870     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16871       ac_source=$srcdir/$ac_source
16872     fi
16873
16874     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16875 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16876
16877     if test ! -r "$ac_source"; then
16878       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16879     fi
16880     rm -f "$ac_file"
16881
16882     # Try a relative symlink, then a hard link, then a copy.
16883     case $ac_source in
16884     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16885         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16886     esac
16887     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16888       ln "$ac_source" "$ac_file" 2>/dev/null ||
16889       cp -p "$ac_source" "$ac_file" ||
16890       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16891   fi
16892  ;;
16893   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16894 $as_echo "$as_me: executing $ac_file commands" >&6;}
16895  ;;
16896   esac
16897
16898
16899   case $ac_file$ac_mode in
16900     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16901   if test ".$ax_enable_builddir" = ".." ; then
16902     if test -f "$top_srcdir/Makefile" ; then
16903       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16904 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16905     else
16906       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16907 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16908     fi
16909   else
16910     if test -f "$ac_top_srcdir/Makefile" ; then
16911       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16912       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16913     fi
16914     if test -f "$ac_top_srcdir/Makefile" ; then
16915         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16916         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16917       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16918       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16919       then rm $ac_top_srcdir/Makefile ; fi
16920       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16921     fi
16922     if test ! -f "$ac_top_srcdir/Makefile" ; then
16923       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16924 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16925       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16926 /^\$/n
16927 x
16928 /^\$/bS
16929 x
16930 /\\\\\$/{H;d;}
16931 {H;s/.*//;x;}
16932 bM
16933 :S
16934 x
16935 /\\\\\$/{h;d;}
16936 {h;s/.*//;x;}
16937 :M
16938 s/\\(\\n\\)     /\\1 /g
16939 /^      /d
16940 /^[      ]*[\\#]/d
16941 /^VPATH *=/d
16942 s/^srcdir *=.*/srcdir = ./
16943 s/^top_srcdir *=.*/top_srcdir = ./
16944 /[:=]/!d
16945 /^\\./d
16946 / = /b
16947 / .= /b
16948 /:/!b
16949 s/:.*/:/
16950 s/ /  /g
16951 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16952 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16953 s/  / /g
16954 /^all all-all[ :]/i\\
16955 all-configured : all-all
16956 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16957 /-all-all/d
16958 a\\
16959         @ HOST="\$(HOST)\" \\\\\\
16960         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16961         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16962         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16963         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16964         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16965         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16966         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16967         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16968         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16969 /dist-all *:/a\\
16970         @ HOST="\$(HOST)\" \\\\\\
16971         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16972         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16973         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16974         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16975         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16976         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16977         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16978         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16979         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16980 /dist-[a-zA-Z0-9]*-all *:/a\\
16981         @ HOST="\$(HOST)\" \\\\\\
16982         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16983         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16984         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16985         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16986         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16987         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16988         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16989         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16990         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16991 /distclean-all *:/a\\
16992         @ HOST="\$(HOST)\" \\\\\\
16993         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16994         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16995         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16996         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16997         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16998         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16999         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
17000         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
17001         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
17002         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
17003         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
17004 _EOF
17005       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
17006       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
17007       if test -f "$ac_top_srcdir/Makefile.mk" ; then
17008         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
17009 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
17010         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
17011       fi ; xxxx="####"
17012       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
17013       # sanity check
17014       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
17015         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
17016 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
17017         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
17018           >$ac_top_srcdir/Makefile~
17019         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
17020       fi
17021     else
17022       xxxx="\\#\\#\\#\\#"
17023       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
17024       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
17025       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
17026         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
17027         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
17028       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
17029         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
17030 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
17031         rm "$tmp/mkfile.tmp"
17032       else
17033         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
17034 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
17035         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
17036       fi
17037     fi
17038     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
17039 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
17040     xxxx="####"
17041     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
17042   fi
17043  ;;
17044     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17045   # Older Autoconf quotes --file arguments for eval, but not when files
17046   # are listed without --file.  Let's play safe and only enable the eval
17047   # if we detect the quoting.
17048   case $CONFIG_FILES in
17049   *\'*) eval set x "$CONFIG_FILES" ;;
17050   *)   set x $CONFIG_FILES ;;
17051   esac
17052   shift
17053   for mf
17054   do
17055     # Strip MF so we end up with the name of the file.
17056     mf=`echo "$mf" | sed -e 's/:.*$//'`
17057     # Check whether this is an Automake generated Makefile or not.
17058     # We used to match only the files named 'Makefile.in', but
17059     # some people rename them; so instead we look at the file content.
17060     # Grep'ing the first line is not enough: some people post-process
17061     # each Makefile.in and add a new line on top of each file to say so.
17062     # Grep'ing the whole file is not good either: AIX grep has a line
17063     # limit of 2048, but all sed's we know have understand at least 4000.
17064     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17065       dirpart=`$as_dirname -- "$mf" ||
17066 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17067          X"$mf" : 'X\(//\)[^/]' \| \
17068          X"$mf" : 'X\(//\)$' \| \
17069          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17070 $as_echo X"$mf" |
17071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17072             s//\1/
17073             q
17074           }
17075           /^X\(\/\/\)[^/].*/{
17076             s//\1/
17077             q
17078           }
17079           /^X\(\/\/\)$/{
17080             s//\1/
17081             q
17082           }
17083           /^X\(\/\).*/{
17084             s//\1/
17085             q
17086           }
17087           s/.*/./; q'`
17088     else
17089       continue
17090     fi
17091     # Extract the definition of DEPDIR, am__include, and am__quote
17092     # from the Makefile without running 'make'.
17093     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17094     test -z "$DEPDIR" && continue
17095     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17096     test -z "$am__include" && continue
17097     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17098     # Find all dependency output files, they are included files with
17099     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17100     # simplest approach to changing $(DEPDIR) to its actual value in the
17101     # expansion.
17102     for file in `sed -n "
17103       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17104          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17105       # Make sure the directory exists.
17106       test -f "$dirpart/$file" && continue
17107       fdir=`$as_dirname -- "$file" ||
17108 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17109          X"$file" : 'X\(//\)[^/]' \| \
17110          X"$file" : 'X\(//\)$' \| \
17111          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17112 $as_echo X"$file" |
17113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17114             s//\1/
17115             q
17116           }
17117           /^X\(\/\/\)[^/].*/{
17118             s//\1/
17119             q
17120           }
17121           /^X\(\/\/\)$/{
17122             s//\1/
17123             q
17124           }
17125           /^X\(\/\).*/{
17126             s//\1/
17127             q
17128           }
17129           s/.*/./; q'`
17130       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17131       # echo "creating $dirpart/$file"
17132       echo '# dummy' > "$dirpart/$file"
17133     done
17134   done
17135 }
17136  ;;
17137     "libtool":C)
17138
17139     # See if we are running on zsh, and set the options that allow our
17140     # commands through without removal of \ escapes.
17141     if test -n "${ZSH_VERSION+set}"; then
17142       setopt NO_GLOB_SUBST
17143     fi
17144
17145     cfgfile=${ofile}T
17146     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17147     $RM "$cfgfile"
17148
17149     cat <<_LT_EOF >> "$cfgfile"
17150 #! $SHELL
17151
17152 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17153 # Generated automatically by $as_me ($PACKAGE) $VERSION
17154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17156 #
17157 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17158 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17159 #                 Foundation, Inc.
17160 #   Written by Gordon Matzigkeit, 1996
17161 #
17162 #   This file is part of GNU Libtool.
17163 #
17164 # GNU Libtool is free software; you can redistribute it and/or
17165 # modify it under the terms of the GNU General Public License as
17166 # published by the Free Software Foundation; either version 2 of
17167 # the License, or (at your option) any later version.
17168 #
17169 # As a special exception to the GNU General Public License,
17170 # if you distribute this file as part of a program or library that
17171 # is built using GNU Libtool, you may include this file under the
17172 # same distribution terms that you use for the rest of that program.
17173 #
17174 # GNU Libtool is distributed in the hope that it will be useful,
17175 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17176 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17177 # GNU General Public License for more details.
17178 #
17179 # You should have received a copy of the GNU General Public License
17180 # along with GNU Libtool; see the file COPYING.  If not, a copy
17181 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17182 # obtained by writing to the Free Software Foundation, Inc.,
17183 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17184
17185
17186 # The names of the tagged configurations supported by this script.
17187 available_tags=''
17188
17189 # ### BEGIN LIBTOOL CONFIG
17190
17191 # Which release of libtool.m4 was used?
17192 macro_version=$macro_version
17193 macro_revision=$macro_revision
17194
17195 # Whether or not to build shared libraries.
17196 build_libtool_libs=$enable_shared
17197
17198 # Whether or not to build static libraries.
17199 build_old_libs=$enable_static
17200
17201 # What type of objects to build.
17202 pic_mode=$pic_mode
17203
17204 # Whether or not to optimize for fast installation.
17205 fast_install=$enable_fast_install
17206
17207 # Shell to use when invoking shell scripts.
17208 SHELL=$lt_SHELL
17209
17210 # An echo program that protects backslashes.
17211 ECHO=$lt_ECHO
17212
17213 # The PATH separator for the build system.
17214 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17215
17216 # The host system.
17217 host_alias=$host_alias
17218 host=$host
17219 host_os=$host_os
17220
17221 # The build system.
17222 build_alias=$build_alias
17223 build=$build
17224 build_os=$build_os
17225
17226 # A sed program that does not truncate output.
17227 SED=$lt_SED
17228
17229 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17230 Xsed="\$SED -e 1s/^X//"
17231
17232 # A grep program that handles long lines.
17233 GREP=$lt_GREP
17234
17235 # An ERE matcher.
17236 EGREP=$lt_EGREP
17237
17238 # A literal string matcher.
17239 FGREP=$lt_FGREP
17240
17241 # A BSD- or MS-compatible name lister.
17242 NM=$lt_NM
17243
17244 # Whether we need soft or hard links.
17245 LN_S=$lt_LN_S
17246
17247 # What is the maximum length of a command?
17248 max_cmd_len=$max_cmd_len
17249
17250 # Object file suffix (normally "o").
17251 objext=$ac_objext
17252
17253 # Executable file suffix (normally "").
17254 exeext=$exeext
17255
17256 # whether the shell understands "unset".
17257 lt_unset=$lt_unset
17258
17259 # turn spaces into newlines.
17260 SP2NL=$lt_lt_SP2NL
17261
17262 # turn newlines into spaces.
17263 NL2SP=$lt_lt_NL2SP
17264
17265 # convert \$build file names to \$host format.
17266 to_host_file_cmd=$lt_cv_to_host_file_cmd
17267
17268 # convert \$build files to toolchain format.
17269 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17270
17271 # An object symbol dumper.
17272 OBJDUMP=$lt_OBJDUMP
17273
17274 # Method to check whether dependent libraries are shared objects.
17275 deplibs_check_method=$lt_deplibs_check_method
17276
17277 # Command to use when deplibs_check_method = "file_magic".
17278 file_magic_cmd=$lt_file_magic_cmd
17279
17280 # How to find potential files when deplibs_check_method = "file_magic".
17281 file_magic_glob=$lt_file_magic_glob
17282
17283 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17284 want_nocaseglob=$lt_want_nocaseglob
17285
17286 # DLL creation program.
17287 DLLTOOL=$lt_DLLTOOL
17288
17289 # Command to associate shared and link libraries.
17290 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17291
17292 # The archiver.
17293 AR=$lt_AR
17294
17295 # Flags to create an archive.
17296 AR_FLAGS=$lt_AR_FLAGS
17297
17298 # How to feed a file listing to the archiver.
17299 archiver_list_spec=$lt_archiver_list_spec
17300
17301 # A symbol stripping program.
17302 STRIP=$lt_STRIP
17303
17304 # Commands used to install an old-style archive.
17305 RANLIB=$lt_RANLIB
17306 old_postinstall_cmds=$lt_old_postinstall_cmds
17307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17308
17309 # Whether to use a lock for old archive extraction.
17310 lock_old_archive_extraction=$lock_old_archive_extraction
17311
17312 # A C compiler.
17313 LTCC=$lt_CC
17314
17315 # LTCC compiler flags.
17316 LTCFLAGS=$lt_CFLAGS
17317
17318 # Take the output of nm and produce a listing of raw symbols and C names.
17319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17320
17321 # Transform the output of nm in a proper C declaration.
17322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17323
17324 # Transform the output of nm into a list of symbols to manually relocate.
17325 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17326
17327 # Transform the output of nm in a C name address pair.
17328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17329
17330 # Transform the output of nm in a C name address pair when lib prefix is needed.
17331 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17332
17333 # The name lister interface.
17334 nm_interface=$lt_lt_cv_nm_interface
17335
17336 # Specify filename containing input files for \$NM.
17337 nm_file_list_spec=$lt_nm_file_list_spec
17338
17339 # The root where to search for dependent libraries,and where our libraries should be installed.
17340 lt_sysroot=$lt_sysroot
17341
17342 # The name of the directory that contains temporary libtool files.
17343 objdir=$objdir
17344
17345 # Used to examine libraries when file_magic_cmd begins with "file".
17346 MAGIC_CMD=$MAGIC_CMD
17347
17348 # Must we lock files when doing compilation?
17349 need_locks=$lt_need_locks
17350
17351 # Manifest tool.
17352 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17353
17354 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17355 DSYMUTIL=$lt_DSYMUTIL
17356
17357 # Tool to change global to local symbols on Mac OS X.
17358 NMEDIT=$lt_NMEDIT
17359
17360 # Tool to manipulate fat objects and archives on Mac OS X.
17361 LIPO=$lt_LIPO
17362
17363 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17364 OTOOL=$lt_OTOOL
17365
17366 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17367 OTOOL64=$lt_OTOOL64
17368
17369 # Old archive suffix (normally "a").
17370 libext=$libext
17371
17372 # Shared library suffix (normally ".so").
17373 shrext_cmds=$lt_shrext_cmds
17374
17375 # The commands to extract the exported symbol list from a shared archive.
17376 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17377
17378 # Variables whose values should be saved in libtool wrapper scripts and
17379 # restored at link time.
17380 variables_saved_for_relink=$lt_variables_saved_for_relink
17381
17382 # Do we need the "lib" prefix for modules?
17383 need_lib_prefix=$need_lib_prefix
17384
17385 # Do we need a version for libraries?
17386 need_version=$need_version
17387
17388 # Library versioning type.
17389 version_type=$version_type
17390
17391 # Shared library runtime path variable.
17392 runpath_var=$runpath_var
17393
17394 # Shared library path variable.
17395 shlibpath_var=$shlibpath_var
17396
17397 # Is shlibpath searched before the hard-coded library search path?
17398 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17399
17400 # Format of library name prefix.
17401 libname_spec=$lt_libname_spec
17402
17403 # List of archive names.  First name is the real one, the rest are links.
17404 # The last name is the one that the linker finds with -lNAME
17405 library_names_spec=$lt_library_names_spec
17406
17407 # The coded name of the library, if different from the real name.
17408 soname_spec=$lt_soname_spec
17409
17410 # Permission mode override for installation of shared libraries.
17411 install_override_mode=$lt_install_override_mode
17412
17413 # Command to use after installation of a shared archive.
17414 postinstall_cmds=$lt_postinstall_cmds
17415
17416 # Command to use after uninstallation of a shared archive.
17417 postuninstall_cmds=$lt_postuninstall_cmds
17418
17419 # Commands used to finish a libtool library installation in a directory.
17420 finish_cmds=$lt_finish_cmds
17421
17422 # As "finish_cmds", except a single script fragment to be evaled but
17423 # not shown.
17424 finish_eval=$lt_finish_eval
17425
17426 # Whether we should hardcode library paths into libraries.
17427 hardcode_into_libs=$hardcode_into_libs
17428
17429 # Compile-time system search path for libraries.
17430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17431
17432 # Run-time system search path for libraries.
17433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17434
17435 # Whether dlopen is supported.
17436 dlopen_support=$enable_dlopen
17437
17438 # Whether dlopen of programs is supported.
17439 dlopen_self=$enable_dlopen_self
17440
17441 # Whether dlopen of statically linked programs is supported.
17442 dlopen_self_static=$enable_dlopen_self_static
17443
17444 # Commands to strip libraries.
17445 old_striplib=$lt_old_striplib
17446 striplib=$lt_striplib
17447
17448
17449 # The linker used to build libraries.
17450 LD=$lt_LD
17451
17452 # How to create reloadable object files.
17453 reload_flag=$lt_reload_flag
17454 reload_cmds=$lt_reload_cmds
17455
17456 # Commands used to build an old-style archive.
17457 old_archive_cmds=$lt_old_archive_cmds
17458
17459 # A language specific compiler.
17460 CC=$lt_compiler
17461
17462 # Is the compiler the GNU compiler?
17463 with_gcc=$GCC
17464
17465 # Compiler flag to turn off builtin functions.
17466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17467
17468 # Additional compiler flags for building library objects.
17469 pic_flag=$lt_lt_prog_compiler_pic
17470
17471 # How to pass a linker flag through the compiler.
17472 wl=$lt_lt_prog_compiler_wl
17473
17474 # Compiler flag to prevent dynamic linking.
17475 link_static_flag=$lt_lt_prog_compiler_static
17476
17477 # Does compiler simultaneously support -c and -o options?
17478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17479
17480 # Whether or not to add -lc for building shared libraries.
17481 build_libtool_need_lc=$archive_cmds_need_lc
17482
17483 # Whether or not to disallow shared libs when runtime libs are static.
17484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17485
17486 # Compiler flag to allow reflexive dlopens.
17487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17488
17489 # Compiler flag to generate shared objects directly from archives.
17490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17491
17492 # Whether the compiler copes with passing no objects directly.
17493 compiler_needs_object=$lt_compiler_needs_object
17494
17495 # Create an old-style archive from a shared archive.
17496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17497
17498 # Create a temporary old-style archive to link instead of a shared archive.
17499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17500
17501 # Commands used to build a shared archive.
17502 archive_cmds=$lt_archive_cmds
17503 archive_expsym_cmds=$lt_archive_expsym_cmds
17504
17505 # Commands used to build a loadable module if different from building
17506 # a shared archive.
17507 module_cmds=$lt_module_cmds
17508 module_expsym_cmds=$lt_module_expsym_cmds
17509
17510 # Whether we are building with GNU ld or not.
17511 with_gnu_ld=$lt_with_gnu_ld
17512
17513 # Flag that allows shared libraries with undefined symbols to be built.
17514 allow_undefined_flag=$lt_allow_undefined_flag
17515
17516 # Flag that enforces no undefined symbols.
17517 no_undefined_flag=$lt_no_undefined_flag
17518
17519 # Flag to hardcode \$libdir into a binary during linking.
17520 # This must work even if \$libdir does not exist
17521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17522
17523 # Whether we need a single "-rpath" flag with a separated argument.
17524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17525
17526 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17527 # DIR into the resulting binary.
17528 hardcode_direct=$hardcode_direct
17529
17530 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17531 # DIR into the resulting binary and the resulting library dependency is
17532 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17533 # library is relocated.
17534 hardcode_direct_absolute=$hardcode_direct_absolute
17535
17536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17537 # into the resulting binary.
17538 hardcode_minus_L=$hardcode_minus_L
17539
17540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17541 # into the resulting binary.
17542 hardcode_shlibpath_var=$hardcode_shlibpath_var
17543
17544 # Set to "yes" if building a shared library automatically hardcodes DIR
17545 # into the library and all subsequent libraries and executables linked
17546 # against it.
17547 hardcode_automatic=$hardcode_automatic
17548
17549 # Set to yes if linker adds runtime paths of dependent libraries
17550 # to runtime path list.
17551 inherit_rpath=$inherit_rpath
17552
17553 # Whether libtool must link a program against all its dependency libraries.
17554 link_all_deplibs=$link_all_deplibs
17555
17556 # Set to "yes" if exported symbols are required.
17557 always_export_symbols=$always_export_symbols
17558
17559 # The commands to list exported symbols.
17560 export_symbols_cmds=$lt_export_symbols_cmds
17561
17562 # Symbols that should not be listed in the preloaded symbols.
17563 exclude_expsyms=$lt_exclude_expsyms
17564
17565 # Symbols that must always be exported.
17566 include_expsyms=$lt_include_expsyms
17567
17568 # Commands necessary for linking programs (against libraries) with templates.
17569 prelink_cmds=$lt_prelink_cmds
17570
17571 # Commands necessary for finishing linking programs.
17572 postlink_cmds=$lt_postlink_cmds
17573
17574 # Specify filename containing input files.
17575 file_list_spec=$lt_file_list_spec
17576
17577 # How to hardcode a shared library path into an executable.
17578 hardcode_action=$hardcode_action
17579
17580 # ### END LIBTOOL CONFIG
17581
17582 _LT_EOF
17583
17584   case $host_os in
17585   aix3*)
17586     cat <<\_LT_EOF >> "$cfgfile"
17587 # AIX sometimes has problems with the GCC collect2 program.  For some
17588 # reason, if we set the COLLECT_NAMES environment variable, the problems
17589 # vanish in a puff of smoke.
17590 if test set != "${COLLECT_NAMES+set}"; then
17591   COLLECT_NAMES=
17592   export COLLECT_NAMES
17593 fi
17594 _LT_EOF
17595     ;;
17596   esac
17597
17598
17599 ltmain=$ac_aux_dir/ltmain.sh
17600
17601
17602   # We use sed instead of cat because bash on DJGPP gets confused if
17603   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17604   # text mode, it properly converts lines to CR/LF.  This bash problem
17605   # is reportedly fixed, but why not run on old versions too?
17606   sed '$q' "$ltmain" >> "$cfgfile" \
17607      || (rm -f "$cfgfile"; exit 1)
17608
17609    mv -f "$cfgfile" "$ofile" ||
17610     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17611   chmod +x "$ofile"
17612
17613  ;;
17614     "include":C) test -d include || mkdir include ;;
17615     "src":C)
17616 test -d src || mkdir src
17617 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17618  ;;
17619
17620   esac
17621 done # for ac_tag
17622
17623
17624 as_fn_exit 0
17625 _ACEOF
17626 ac_clean_files=$ac_clean_files_save
17627
17628 test $ac_write_fail = 0 ||
17629   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17630
17631
17632 # configure is writing to config.log, and then calls config.status.
17633 # config.status does its own redirection, appending to config.log.
17634 # Unfortunately, on DOS this fails, as config.log is still kept open
17635 # by configure, so config.status won't be able to write to it; its
17636 # output is simply discarded.  So we exec the FD to /dev/null,
17637 # effectively closing config.log, so it can be properly (re)opened and
17638 # appended to by config.status.  When coming back to configure, we
17639 # need to make the FD available again.
17640 if test "$no_create" != yes; then
17641   ac_cs_success=:
17642   ac_config_status_args=
17643   test "$silent" = yes &&
17644     ac_config_status_args="$ac_config_status_args --quiet"
17645   exec 5>/dev/null
17646   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17647   exec 5>>config.log
17648   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17649   # would make configure fail if this is the last instruction.
17650   $ac_cs_success || as_fn_exit 1
17651 fi
17652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17653   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17655 fi
17656