This separates the 32-bit sysv/linux/bsd code from the 64-bit linux
[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
1535                         (or the 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'
4621 macro_revision='1.3337'
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 "$withval" = no || with_gnu_ld=yes
5008 else
5009   with_gnu_ld=no
5010 fi
5011
5012 ac_prog=ld
5013 if test "$GCC" = yes; 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 "$with_gnu_ld" = yes; 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 "$with_gnu_ld" != no && break
5067         ;;
5068       *)
5069         test "$with_gnu_ld" != yes && 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
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
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 "$lt_cv_path_NM" != "no"; 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 /dev/null 2>&1 | sed '1q'` in
5275     *COFF*)
5276       DUMPBIN="$DUMPBIN -symbols"
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   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
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"; then
5427       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5428       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5429     else
5430       # Make teststring a little bigger before we do anything with it.
5431       # a 1K string should be a reasonable start.
5432       for i in 1 2 3 4 5 6 7 8 ; do
5433         teststring=$teststring$teststring
5434       done
5435       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5436       # If test is not a shell built-in, we'll probably end up computing a
5437       # maximum length that is only half of the actual maximum length, but
5438       # we can't tell.
5439       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5440                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5441               test $i != 17 # 1/2 MB should be enough
5442       do
5443         i=`expr $i + 1`
5444         teststring=$teststring$teststring
5445       done
5446       # Only check the string length outside the loop.
5447       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5448       teststring=
5449       # Add a significant safety factor because C++ compilers can tack on
5450       # massive amounts of additional arguments before passing them to the
5451       # linker.  It appears as though 1/2 is a usable value.
5452       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453     fi
5454     ;;
5455   esac
5456
5457 fi
5458
5459 if test -n $lt_cv_sys_max_cmd_len ; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5461 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5464 $as_echo "none" >&6; }
5465 fi
5466 max_cmd_len=$lt_cv_sys_max_cmd_len
5467
5468
5469
5470
5471
5472
5473 : ${CP="cp -f"}
5474 : ${MV="mv -f"}
5475 : ${RM="rm -f"}
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5478 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5479 # Try some XSI features
5480 xsi_shell=no
5481 ( _lt_dummy="a/b/c"
5482   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5483       = c,a/b,b/c, \
5484     && eval 'test $(( 1 + 1 )) -eq 2 \
5485     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5486   && xsi_shell=yes
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5488 $as_echo "$xsi_shell" >&6; }
5489
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5492 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5493 lt_shell_append=no
5494 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5495     >/dev/null 2>&1 \
5496   && lt_shell_append=yes
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5498 $as_echo "$lt_shell_append" >&6; }
5499
5500
5501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5502   lt_unset=unset
5503 else
5504   lt_unset=false
5505 fi
5506
5507
5508
5509
5510
5511 # test EBCDIC or ASCII
5512 case `echo X|tr X '\101'` in
5513  A) # ASCII based system
5514     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5515   lt_SP2NL='tr \040 \012'
5516   lt_NL2SP='tr \015\012 \040\040'
5517   ;;
5518  *) # EBCDIC based system
5519   lt_SP2NL='tr \100 \n'
5520   lt_NL2SP='tr \r\n \100\100'
5521   ;;
5522 esac
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5533 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5534 if ${lt_cv_to_host_file_cmd+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $host in
5538   *-*-mingw* )
5539     case $build in
5540       *-*-mingw* ) # actually msys
5541         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5542         ;;
5543       *-*-cygwin* )
5544         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5545         ;;
5546       * ) # otherwise, assume *nix
5547         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5548         ;;
5549     esac
5550     ;;
5551   *-*-cygwin* )
5552     case $build in
5553       *-*-mingw* ) # actually msys
5554         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5555         ;;
5556       *-*-cygwin* )
5557         lt_cv_to_host_file_cmd=func_convert_file_noop
5558         ;;
5559       * ) # otherwise, assume *nix
5560         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5561         ;;
5562     esac
5563     ;;
5564   * ) # unhandled hosts (and "normal" native builds)
5565     lt_cv_to_host_file_cmd=func_convert_file_noop
5566     ;;
5567 esac
5568
5569 fi
5570
5571 to_host_file_cmd=$lt_cv_to_host_file_cmd
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5573 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5580 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5581 if ${lt_cv_to_tool_file_cmd+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   #assume ordinary cross tools, or native build.
5585 lt_cv_to_tool_file_cmd=func_convert_file_noop
5586 case $host in
5587   *-*-mingw* )
5588     case $build in
5589       *-*-mingw* ) # actually msys
5590         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5591         ;;
5592     esac
5593     ;;
5594 esac
5595
5596 fi
5597
5598 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5600 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5601
5602
5603
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5607 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5608 if ${lt_cv_ld_reload_flag+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   lt_cv_ld_reload_flag='-r'
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5614 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5615 reload_flag=$lt_cv_ld_reload_flag
5616 case $reload_flag in
5617 "" | " "*) ;;
5618 *) reload_flag=" $reload_flag" ;;
5619 esac
5620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5621 case $host_os in
5622   cygwin* | mingw* | pw32* | cegcc*)
5623     if test "$GCC" != yes; then
5624       reload_cmds=false
5625     fi
5626     ;;
5627   darwin*)
5628     if test "$GCC" = yes; then
5629       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5630     else
5631       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632     fi
5633     ;;
5634 esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 if test -n "$ac_tool_prefix"; then
5645   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5646 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_OBJDUMP+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   if test -n "$OBJDUMP"; then
5653   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660     for ac_exec_ext in '' $ac_executable_extensions; do
5661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664     break 2
5665   fi
5666 done
5667   done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 OBJDUMP=$ac_cv_prog_OBJDUMP
5673 if test -n "$OBJDUMP"; then
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5675 $as_echo "$OBJDUMP" >&6; }
5676 else
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681
5682 fi
5683 if test -z "$ac_cv_prog_OBJDUMP"; then
5684   ac_ct_OBJDUMP=$OBJDUMP
5685   # Extract the first word of "objdump", so it can be a program name with args.
5686 set dummy objdump; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if test -n "$ac_ct_OBJDUMP"; then
5693   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5713 if test -n "$ac_ct_OBJDUMP"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5715 $as_echo "$ac_ct_OBJDUMP" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721   if test "x$ac_ct_OBJDUMP" = x; then
5722     OBJDUMP="false"
5723   else
5724     case $cross_compiling:$ac_tool_warned in
5725 yes:)
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned=yes ;;
5729 esac
5730     OBJDUMP=$ac_ct_OBJDUMP
5731   fi
5732 else
5733   OBJDUMP="$ac_cv_prog_OBJDUMP"
5734 fi
5735
5736 test -z "$OBJDUMP" && OBJDUMP=objdump
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5747 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5748 if ${lt_cv_deplibs_check_method+:} false; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   lt_cv_file_magic_cmd='$MAGIC_CMD'
5752 lt_cv_file_magic_test_file=
5753 lt_cv_deplibs_check_method='unknown'
5754 # Need to set the preceding variable on all platforms that support
5755 # interlibrary dependencies.
5756 # 'none' -- dependencies not supported.
5757 # `unknown' -- same as none, but documents that we really don't know.
5758 # 'pass_all' -- all dependencies passed with no checks.
5759 # 'test_compile' -- check by making test program.
5760 # 'file_magic [[regex]]' -- check by looking for files in library path
5761 # which responds to the $file_magic_cmd with a given extended regex.
5762 # If you have `file' or equivalent on your system and you're not sure
5763 # whether `pass_all' will *always* work, you probably want this one.
5764
5765 case $host_os in
5766 aix[4-9]*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 beos*)
5771   lt_cv_deplibs_check_method=pass_all
5772   ;;
5773
5774 bsdi[45]*)
5775   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5776   lt_cv_file_magic_cmd='/usr/bin/file -L'
5777   lt_cv_file_magic_test_file=/shlib/libc.so
5778   ;;
5779
5780 cygwin*)
5781   # func_win32_libid is a shell function defined in ltmain.sh
5782   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5783   lt_cv_file_magic_cmd='func_win32_libid'
5784   ;;
5785
5786 mingw* | pw32*)
5787   # Base MSYS/MinGW do not provide the 'file' command needed by
5788   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5789   # unless we find 'file', for example because we are cross-compiling.
5790   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5791   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5792     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5793     lt_cv_file_magic_cmd='func_win32_libid'
5794   else
5795     # Keep this pattern in sync with the one in func_win32_libid.
5796     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5797     lt_cv_file_magic_cmd='$OBJDUMP -f'
5798   fi
5799   ;;
5800
5801 cegcc*)
5802   # use the weaker test based on 'objdump'. See mingw*.
5803   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5804   lt_cv_file_magic_cmd='$OBJDUMP -f'
5805   ;;
5806
5807 darwin* | rhapsody*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 freebsd* | dragonfly*)
5812   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5813     case $host_cpu in
5814     i*86 )
5815       # Not sure whether the presence of OpenBSD here was a mistake.
5816       # Let's accept both of them until this is cleared up.
5817       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5818       lt_cv_file_magic_cmd=/usr/bin/file
5819       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5820       ;;
5821     esac
5822   else
5823     lt_cv_deplibs_check_method=pass_all
5824   fi
5825   ;;
5826
5827 gnu*)
5828   lt_cv_deplibs_check_method=pass_all
5829   ;;
5830
5831 haiku*)
5832   lt_cv_deplibs_check_method=pass_all
5833   ;;
5834
5835 hpux10.20* | hpux11*)
5836   lt_cv_file_magic_cmd=/usr/bin/file
5837   case $host_cpu in
5838   ia64*)
5839     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5841     ;;
5842   hppa*64*)
5843     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]'
5844     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5845     ;;
5846   *)
5847     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5849     ;;
5850   esac
5851   ;;
5852
5853 interix[3-9]*)
5854   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5856   ;;
5857
5858 irix5* | irix6* | nonstopux*)
5859   case $LD in
5860   *-32|*"-32 ") libmagic=32-bit;;
5861   *-n32|*"-n32 ") libmagic=N32;;
5862   *-64|*"-64 ") libmagic=64-bit;;
5863   *) libmagic=never-match;;
5864   esac
5865   lt_cv_deplibs_check_method=pass_all
5866   ;;
5867
5868 # This must be glibc/ELF.
5869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5870   lt_cv_deplibs_check_method=pass_all
5871   ;;
5872
5873 netbsd*)
5874   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876   else
5877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5878   fi
5879   ;;
5880
5881 newos6*)
5882   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883   lt_cv_file_magic_cmd=/usr/bin/file
5884   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5885   ;;
5886
5887 *nto* | *qnx*)
5888   lt_cv_deplibs_check_method=pass_all
5889   ;;
5890
5891 openbsd*)
5892   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5893     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5894   else
5895     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5896   fi
5897   ;;
5898
5899 osf3* | osf4* | osf5*)
5900   lt_cv_deplibs_check_method=pass_all
5901   ;;
5902
5903 rdos*)
5904   lt_cv_deplibs_check_method=pass_all
5905   ;;
5906
5907 solaris*)
5908   lt_cv_deplibs_check_method=pass_all
5909   ;;
5910
5911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 sysv4 | sysv4.3*)
5916   case $host_vendor in
5917   motorola)
5918     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]'
5919     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5920     ;;
5921   ncr)
5922     lt_cv_deplibs_check_method=pass_all
5923     ;;
5924   sequent)
5925     lt_cv_file_magic_cmd='/bin/file'
5926     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5927     ;;
5928   sni)
5929     lt_cv_file_magic_cmd='/bin/file'
5930     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931     lt_cv_file_magic_test_file=/lib/libc.so
5932     ;;
5933   siemens)
5934     lt_cv_deplibs_check_method=pass_all
5935     ;;
5936   pc)
5937     lt_cv_deplibs_check_method=pass_all
5938     ;;
5939   esac
5940   ;;
5941
5942 tpf*)
5943   lt_cv_deplibs_check_method=pass_all
5944   ;;
5945 esac
5946
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5949 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5950
5951 file_magic_glob=
5952 want_nocaseglob=no
5953 if test "$build" = "$host"; then
5954   case $host_os in
5955   mingw* | pw32*)
5956     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5957       want_nocaseglob=yes
5958     else
5959       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5960     fi
5961     ;;
5962   esac
5963 fi
5964
5965 file_magic_cmd=$lt_cv_file_magic_cmd
5966 deplibs_check_method=$lt_cv_deplibs_check_method
5967 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_DLLTOOL+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test -n "$DLLTOOL"; then
5999   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006     for ac_exec_ext in '' $ac_executable_extensions; do
6007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013   done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 DLLTOOL=$ac_cv_prog_DLLTOOL
6019 if test -n "$DLLTOOL"; then
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6021 $as_echo "$DLLTOOL" >&6; }
6022 else
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_DLLTOOL"; then
6030   ac_ct_DLLTOOL=$DLLTOOL
6031   # Extract the first word of "dlltool", so it can be a program name with args.
6032 set dummy dlltool; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$ac_ct_DLLTOOL"; then
6039   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6059 if test -n "$ac_ct_DLLTOOL"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6061 $as_echo "$ac_ct_DLLTOOL" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067   if test "x$ac_ct_DLLTOOL" = x; then
6068     DLLTOOL="false"
6069   else
6070     case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076     DLLTOOL=$ac_ct_DLLTOOL
6077   fi
6078 else
6079   DLLTOOL="$ac_cv_prog_DLLTOOL"
6080 fi
6081
6082 test -z "$DLLTOOL" && DLLTOOL=dlltool
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6094 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6095 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   lt_cv_sharedlib_from_linklib_cmd='unknown'
6099
6100 case $host_os in
6101 cygwin* | mingw* | pw32* | cegcc*)
6102   # two different shell functions defined in ltmain.sh
6103   # decide which to use based on capabilities of $DLLTOOL
6104   case `$DLLTOOL --help 2>&1` in
6105   *--identify-strict*)
6106     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6107     ;;
6108   *)
6109     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6110     ;;
6111   esac
6112   ;;
6113 *)
6114   # fallback: assume linklib IS sharedlib
6115   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6116   ;;
6117 esac
6118
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6121 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6122 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6123 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6124
6125
6126
6127
6128
6129
6130
6131
6132 if test -n "$ac_tool_prefix"; then
6133   for ac_prog in ar
6134   do
6135     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_AR+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$AR"; then
6143   ac_cv_prog_AR="$AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 AR=$ac_cv_prog_AR
6163 if test -n "$AR"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6165 $as_echo "$AR" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171
6172     test -n "$AR" && break
6173   done
6174 fi
6175 if test -z "$AR"; then
6176   ac_ct_AR=$AR
6177   for ac_prog in ar
6178 do
6179   # Extract the first word of "$ac_prog", so it can be a program name with args.
6180 set dummy $ac_prog; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if test -n "$ac_ct_AR"; then
6187   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196     ac_cv_prog_ac_ct_AR="$ac_prog"
6197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201   done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6207 if test -n "$ac_ct_AR"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6209 $as_echo "$ac_ct_AR" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216   test -n "$ac_ct_AR" && break
6217 done
6218
6219   if test "x$ac_ct_AR" = x; then
6220     AR="false"
6221   else
6222     case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228     AR=$ac_ct_AR
6229   fi
6230 fi
6231
6232 : ${AR=ar}
6233 : ${AR_FLAGS=cru}
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6246 $as_echo_n "checking for archiver @FILE support... " >&6; }
6247 if ${lt_cv_ar_at_file+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   lt_cv_ar_at_file=no
6251    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h.  */
6253
6254 int
6255 main ()
6256 {
6257
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 if ac_fn_c_try_compile "$LINENO"; then :
6263   echo conftest.$ac_objext > conftest.lst
6264       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6265       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6266   (eval $lt_ar_try) 2>&5
6267   ac_status=$?
6268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269   test $ac_status = 0; }
6270       if test "$ac_status" -eq 0; then
6271         # Ensure the archiver fails upon bogus file names.
6272         rm -f conftest.$ac_objext libconftest.a
6273         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6274   (eval $lt_ar_try) 2>&5
6275   ac_status=$?
6276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277   test $ac_status = 0; }
6278         if test "$ac_status" -ne 0; then
6279           lt_cv_ar_at_file=@
6280         fi
6281       fi
6282       rm -f conftest.* libconftest.a
6283
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286
6287 fi
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6289 $as_echo "$lt_cv_ar_at_file" >&6; }
6290
6291 if test "x$lt_cv_ar_at_file" = xno; then
6292   archiver_list_spec=
6293 else
6294   archiver_list_spec=$lt_cv_ar_at_file
6295 fi
6296
6297
6298
6299
6300
6301
6302
6303 if test -n "$ac_tool_prefix"; then
6304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}strip; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_STRIP+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$STRIP"; then
6312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 STRIP=$ac_cv_prog_STRIP
6332 if test -n "$STRIP"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6334 $as_echo "$STRIP" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341 fi
6342 if test -z "$ac_cv_prog_STRIP"; then
6343   ac_ct_STRIP=$STRIP
6344   # Extract the first word of "strip", so it can be a program name with args.
6345 set dummy strip; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$ac_ct_STRIP"; then
6352   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361     ac_cv_prog_ac_ct_STRIP="strip"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372 if test -n "$ac_ct_STRIP"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6374 $as_echo "$ac_ct_STRIP" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380   if test "x$ac_ct_STRIP" = x; then
6381     STRIP=":"
6382   else
6383     case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389     STRIP=$ac_ct_STRIP
6390   fi
6391 else
6392   STRIP="$ac_cv_prog_STRIP"
6393 fi
6394
6395 test -z "$STRIP" && STRIP=:
6396
6397
6398
6399
6400
6401
6402 if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_RANLIB+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$RANLIB"; then
6411   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 RANLIB=$ac_cv_prog_RANLIB
6431 if test -n "$RANLIB"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433 $as_echo "$RANLIB" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 fi
6441 if test -z "$ac_cv_prog_RANLIB"; then
6442   ac_ct_RANLIB=$RANLIB
6443   # Extract the first word of "ranlib", so it can be a program name with args.
6444 set dummy ranlib; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_RANLIB"; then
6451   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460     ac_cv_prog_ac_ct_RANLIB="ranlib"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6471 if test -n "$ac_ct_RANLIB"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473 $as_echo "$ac_ct_RANLIB" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479   if test "x$ac_ct_RANLIB" = x; then
6480     RANLIB=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     RANLIB=$ac_ct_RANLIB
6489   fi
6490 else
6491   RANLIB="$ac_cv_prog_RANLIB"
6492 fi
6493
6494 test -z "$RANLIB" && RANLIB=:
6495
6496
6497
6498
6499
6500
6501 # Determine commands to create old-style static archives.
6502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6503 old_postinstall_cmds='chmod 644 $oldlib'
6504 old_postuninstall_cmds=
6505
6506 if test -n "$RANLIB"; then
6507   case $host_os in
6508   openbsd*)
6509     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6510     ;;
6511   *)
6512     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6513     ;;
6514   esac
6515   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6516 fi
6517
6518 case $host_os in
6519   darwin*)
6520     lock_old_archive_extraction=yes ;;
6521   *)
6522     lock_old_archive_extraction=no ;;
6523 esac
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 # If no C compiler was specified, use CC.
6564 LTCC=${LTCC-"$CC"}
6565
6566 # If no C compiler flags were specified, use CFLAGS.
6567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568
6569 # Allow CC to be a program name with arguments.
6570 compiler=$CC
6571
6572
6573 # Check for command to grab the raw symbol name followed by C symbol from nm.
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6576 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579
6580 # These are sane defaults that work on at least a few old systems.
6581 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6582
6583 # Character class describing NM global symbol codes.
6584 symcode='[BCDEGRST]'
6585
6586 # Regexp to match symbols that can be accessed directly from C.
6587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
6589 # Define system-specific variables.
6590 case $host_os in
6591 aix*)
6592   symcode='[BCDT]'
6593   ;;
6594 cygwin* | mingw* | pw32* | cegcc*)
6595   symcode='[ABCDGISTW]'
6596   ;;
6597 hpux*)
6598   if test "$host_cpu" = ia64; then
6599     symcode='[ABCDEGRST]'
6600   fi
6601   ;;
6602 irix* | nonstopux*)
6603   symcode='[BCDEGRST]'
6604   ;;
6605 osf*)
6606   symcode='[BCDEGQRST]'
6607   ;;
6608 solaris*)
6609   symcode='[BDRT]'
6610   ;;
6611 sco3.2v5*)
6612   symcode='[DT]'
6613   ;;
6614 sysv4.2uw2*)
6615   symcode='[DT]'
6616   ;;
6617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6618   symcode='[ABDT]'
6619   ;;
6620 sysv4)
6621   symcode='[DFNSTU]'
6622   ;;
6623 esac
6624
6625 # If we're using GNU nm, then use its standard symbol codes.
6626 case `$NM -V 2>&1` in
6627 *GNU* | *'with BFD'*)
6628   symcode='[ABCDGIRSTW]' ;;
6629 esac
6630
6631 # Transform an extracted symbol line into a proper C declaration.
6632 # Some systems (esp. on ia64) link data and code symbols differently,
6633 # so use this general approach.
6634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635
6636 # Transform an extracted symbol line into symbol name and symbol address
6637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6639
6640 # Handle CRLF in mingw tool chain
6641 opt_cr=
6642 case $build_os in
6643 mingw*)
6644   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645   ;;
6646 esac
6647
6648 # Try without a prefix underscore, then with it.
6649 for ac_symprfx in "" "_"; do
6650
6651   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6652   symxfrm="\\1 $ac_symprfx\\2 \\2"
6653
6654   # Write the raw and C identifiers.
6655   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6656     # Fake it for dumpbin and say T for any non-static function
6657     # and D for any global variable.
6658     # Also find C++ and __fastcall symbols from MSVC++,
6659     # which start with @ or ?.
6660     lt_cv_sys_global_symbol_pipe="$AWK '"\
6661 "     {last_section=section; section=\$ 3};"\
6662 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6663 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6664 "     \$ 0!~/External *\|/{next};"\
6665 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6666 "     {if(hide[section]) next};"\
6667 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6668 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6669 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6670 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6671 "     ' prfx=^$ac_symprfx"
6672   else
6673     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674   fi
6675   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6676
6677   # Check to see that the pipe works correctly.
6678   pipe_works=no
6679
6680   rm -f conftest*
6681   cat > conftest.$ac_ext <<_LT_EOF
6682 #ifdef __cplusplus
6683 extern "C" {
6684 #endif
6685 char nm_test_var;
6686 void nm_test_func(void);
6687 void nm_test_func(void){}
6688 #ifdef __cplusplus
6689 }
6690 #endif
6691 int main(){nm_test_var='a';nm_test_func();return(0);}
6692 _LT_EOF
6693
6694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695   (eval $ac_compile) 2>&5
6696   ac_status=$?
6697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698   test $ac_status = 0; }; then
6699     # Now try to grab the symbols.
6700     nlist=conftest.nm
6701     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6702   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6703   ac_status=$?
6704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705   test $ac_status = 0; } && test -s "$nlist"; then
6706       # Try sorting and uniquifying the output.
6707       if sort "$nlist" | uniq > "$nlist"T; then
6708         mv -f "$nlist"T "$nlist"
6709       else
6710         rm -f "$nlist"T
6711       fi
6712
6713       # Make sure that we snagged all the symbols we need.
6714       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6715         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6716           cat <<_LT_EOF > conftest.$ac_ext
6717 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6718 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6719 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6720    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6721 # define LT_DLSYM_CONST
6722 #elif defined(__osf__)
6723 /* This system does not cope well with relocations in const data.  */
6724 # define LT_DLSYM_CONST
6725 #else
6726 # define LT_DLSYM_CONST const
6727 #endif
6728
6729 #ifdef __cplusplus
6730 extern "C" {
6731 #endif
6732
6733 _LT_EOF
6734           # Now generate the symbol file.
6735           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6736
6737           cat <<_LT_EOF >> conftest.$ac_ext
6738
6739 /* The mapping between symbol names and symbols.  */
6740 LT_DLSYM_CONST struct {
6741   const char *name;
6742   void       *address;
6743 }
6744 lt__PROGRAM__LTX_preloaded_symbols[] =
6745 {
6746   { "@PROGRAM@", (void *) 0 },
6747 _LT_EOF
6748           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6749           cat <<\_LT_EOF >> conftest.$ac_ext
6750   {0, (void *) 0}
6751 };
6752
6753 /* This works around a problem in FreeBSD linker */
6754 #ifdef FREEBSD_WORKAROUND
6755 static const void *lt_preloaded_setup() {
6756   return lt__PROGRAM__LTX_preloaded_symbols;
6757 }
6758 #endif
6759
6760 #ifdef __cplusplus
6761 }
6762 #endif
6763 _LT_EOF
6764           # Now try linking the two files.
6765           mv conftest.$ac_objext conftstm.$ac_objext
6766           lt_globsym_save_LIBS=$LIBS
6767           lt_globsym_save_CFLAGS=$CFLAGS
6768           LIBS="conftstm.$ac_objext"
6769           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6770           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6771   (eval $ac_link) 2>&5
6772   ac_status=$?
6773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6775             pipe_works=yes
6776           fi
6777           LIBS=$lt_globsym_save_LIBS
6778           CFLAGS=$lt_globsym_save_CFLAGS
6779         else
6780           echo "cannot find nm_test_func in $nlist" >&5
6781         fi
6782       else
6783         echo "cannot find nm_test_var in $nlist" >&5
6784       fi
6785     else
6786       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6787     fi
6788   else
6789     echo "$progname: failed program was:" >&5
6790     cat conftest.$ac_ext >&5
6791   fi
6792   rm -rf conftest* conftst*
6793
6794   # Do not use the global_symbol_pipe unless it works.
6795   if test "$pipe_works" = yes; then
6796     break
6797   else
6798     lt_cv_sys_global_symbol_pipe=
6799   fi
6800 done
6801
6802 fi
6803
6804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6805   lt_cv_sys_global_symbol_to_cdecl=
6806 fi
6807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6809 $as_echo "failed" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6812 $as_echo "ok" >&6; }
6813 fi
6814
6815 # Response file support.
6816 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6817   nm_file_list_spec='@'
6818 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6819   nm_file_list_spec='@'
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6849 $as_echo_n "checking for sysroot... " >&6; }
6850
6851 # Check whether --with-sysroot was given.
6852 if test "${with_sysroot+set}" = set; then :
6853   withval=$with_sysroot;
6854 else
6855   with_sysroot=no
6856 fi
6857
6858
6859 lt_sysroot=
6860 case ${with_sysroot} in #(
6861  yes)
6862    if test "$GCC" = yes; then
6863      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6864    fi
6865    ;; #(
6866  /*)
6867    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6868    ;; #(
6869  no|'')
6870    ;; #(
6871  *)
6872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6873 $as_echo "${with_sysroot}" >&6; }
6874    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6875    ;;
6876 esac
6877
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6879 $as_echo "${lt_sysroot:-no}" >&6; }
6880
6881
6882
6883
6884
6885 # Check whether --enable-libtool-lock was given.
6886 if test "${enable_libtool_lock+set}" = set; then :
6887   enableval=$enable_libtool_lock;
6888 fi
6889
6890 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6891
6892 # Some flags need to be propagated to the compiler or linker for good
6893 # libtool support.
6894 case $host in
6895 ia64-*-hpux*)
6896   # Find out which ABI we are using.
6897   echo 'int i;' > conftest.$ac_ext
6898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899   (eval $ac_compile) 2>&5
6900   ac_status=$?
6901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902   test $ac_status = 0; }; then
6903     case `/usr/bin/file conftest.$ac_objext` in
6904       *ELF-32*)
6905         HPUX_IA64_MODE="32"
6906         ;;
6907       *ELF-64*)
6908         HPUX_IA64_MODE="64"
6909         ;;
6910     esac
6911   fi
6912   rm -rf conftest*
6913   ;;
6914 *-*-irix6*)
6915   # Find out which ABI we are using.
6916   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6917   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918   (eval $ac_compile) 2>&5
6919   ac_status=$?
6920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921   test $ac_status = 0; }; then
6922     if test "$lt_cv_prog_gnu_ld" = yes; then
6923       case `/usr/bin/file conftest.$ac_objext` in
6924         *32-bit*)
6925           LD="${LD-ld} -melf32bsmip"
6926           ;;
6927         *N32*)
6928           LD="${LD-ld} -melf32bmipn32"
6929           ;;
6930         *64-bit*)
6931           LD="${LD-ld} -melf64bmip"
6932         ;;
6933       esac
6934     else
6935       case `/usr/bin/file conftest.$ac_objext` in
6936         *32-bit*)
6937           LD="${LD-ld} -32"
6938           ;;
6939         *N32*)
6940           LD="${LD-ld} -n32"
6941           ;;
6942         *64-bit*)
6943           LD="${LD-ld} -64"
6944           ;;
6945       esac
6946     fi
6947   fi
6948   rm -rf conftest*
6949   ;;
6950
6951 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6952 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6953   # Find out which ABI we are using.
6954   echo 'int i;' > conftest.$ac_ext
6955   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956   (eval $ac_compile) 2>&5
6957   ac_status=$?
6958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959   test $ac_status = 0; }; then
6960     case `/usr/bin/file conftest.o` in
6961       *32-bit*)
6962         case $host in
6963           x86_64-*kfreebsd*-gnu)
6964             LD="${LD-ld} -m elf_i386_fbsd"
6965             ;;
6966           x86_64-*linux*)
6967             LD="${LD-ld} -m elf_i386"
6968             ;;
6969           powerpcle-*linux*)
6970             LD="${LD-ld} -m elf32lppclinux"
6971             ;;
6972           powerpc-*linux*)
6973             LD="${LD-ld} -m elf32ppclinux"
6974             ;;
6975           s390x-*linux*)
6976             LD="${LD-ld} -m elf_s390"
6977             ;;
6978           sparc64-*linux*)
6979             LD="${LD-ld} -m elf32_sparc"
6980             ;;
6981         esac
6982         ;;
6983       *64-bit*)
6984         case $host in
6985           x86_64-*kfreebsd*-gnu)
6986             LD="${LD-ld} -m elf_x86_64_fbsd"
6987             ;;
6988           x86_64-*linux*)
6989             LD="${LD-ld} -m elf_x86_64"
6990             ;;
6991           powerpcle-*linux*)
6992             LD="${LD-ld} -m elf64lppc"
6993             ;;
6994           powerpc-*linux*)
6995             LD="${LD-ld} -m elf64ppc"
6996             ;;
6997           s390*-*linux*|s390*-*tpf*)
6998             LD="${LD-ld} -m elf64_s390"
6999             ;;
7000           sparc*-*linux*)
7001             LD="${LD-ld} -m elf64_sparc"
7002             ;;
7003         esac
7004         ;;
7005     esac
7006   fi
7007   rm -rf conftest*
7008   ;;
7009
7010 *-*-sco3.2v5*)
7011   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7012   SAVE_CFLAGS="$CFLAGS"
7013   CFLAGS="$CFLAGS -belf"
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7015 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7016 if ${lt_cv_cc_needs_belf+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   ac_ext=c
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h.  */
7027
7028 int
7029 main ()
7030 {
7031
7032   ;
7033   return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037   lt_cv_cc_needs_belf=yes
7038 else
7039   lt_cv_cc_needs_belf=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042     conftest$ac_exeext conftest.$ac_ext
7043      ac_ext=c
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048
7049 fi
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7051 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7052   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7053     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7054     CFLAGS="$SAVE_CFLAGS"
7055   fi
7056   ;;
7057 *-*solaris*)
7058   # Find out which ABI we are using.
7059   echo 'int i;' > conftest.$ac_ext
7060   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7061   (eval $ac_compile) 2>&5
7062   ac_status=$?
7063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064   test $ac_status = 0; }; then
7065     case `/usr/bin/file conftest.o` in
7066     *64-bit*)
7067       case $lt_cv_prog_gnu_ld in
7068       yes*)
7069         case $host in
7070         i?86-*-solaris*)
7071           LD="${LD-ld} -m elf_x86_64"
7072           ;;
7073         sparc*-*-solaris*)
7074           LD="${LD-ld} -m elf64_sparc"
7075           ;;
7076         esac
7077         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7078         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7079           LD="${LD-ld}_sol2"
7080         fi
7081         ;;
7082       *)
7083         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7084           LD="${LD-ld} -64"
7085         fi
7086         ;;
7087       esac
7088       ;;
7089     esac
7090   fi
7091   rm -rf conftest*
7092   ;;
7093 esac
7094
7095 need_locks="$enable_libtool_lock"
7096
7097 if test -n "$ac_tool_prefix"; then
7098   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}mt; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   if test -n "$MANIFEST_TOOL"; then
7106   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113     for ac_exec_ext in '' $ac_executable_extensions; do
7114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120   done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7126 if test -n "$MANIFEST_TOOL"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7128 $as_echo "$MANIFEST_TOOL" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134
7135 fi
7136 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7137   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7138   # Extract the first word of "mt", so it can be a program name with args.
7139 set dummy mt; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$ac_ct_MANIFEST_TOOL"; then
7146   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7166 if test -n "$ac_ct_MANIFEST_TOOL"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7168 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7175     MANIFEST_TOOL=":"
7176   else
7177     case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7184   fi
7185 else
7186   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7187 fi
7188
7189 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7191 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7192 if ${lt_cv_path_mainfest_tool+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   lt_cv_path_mainfest_tool=no
7196   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7197   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7198   cat conftest.err >&5
7199   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7200     lt_cv_path_mainfest_tool=yes
7201   fi
7202   rm -f conftest*
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7205 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7206 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7207   MANIFEST_TOOL=:
7208 fi
7209
7210
7211
7212
7213
7214
7215   case $host_os in
7216     rhapsody* | darwin*)
7217     if test -n "$ac_tool_prefix"; then
7218   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   if test -n "$DSYMUTIL"; then
7226   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7246 if test -n "$DSYMUTIL"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7248 $as_echo "$DSYMUTIL" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_DSYMUTIL"; then
7257   ac_ct_DSYMUTIL=$DSYMUTIL
7258   # Extract the first word of "dsymutil", so it can be a program name with args.
7259 set dummy dsymutil; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$ac_ct_DSYMUTIL"; then
7266   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7286 if test -n "$ac_ct_DSYMUTIL"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7288 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294   if test "x$ac_ct_DSYMUTIL" = x; then
7295     DSYMUTIL=":"
7296   else
7297     case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303     DSYMUTIL=$ac_ct_DSYMUTIL
7304   fi
7305 else
7306   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7307 fi
7308
7309     if test -n "$ac_tool_prefix"; then
7310   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_NMEDIT+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   if test -n "$NMEDIT"; then
7318   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325     for ac_exec_ext in '' $ac_executable_extensions; do
7326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332   done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 NMEDIT=$ac_cv_prog_NMEDIT
7338 if test -n "$NMEDIT"; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7340 $as_echo "$NMEDIT" >&6; }
7341 else
7342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_NMEDIT"; then
7349   ac_ct_NMEDIT=$NMEDIT
7350   # Extract the first word of "nmedit", so it can be a program name with args.
7351 set dummy nmedit; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$ac_ct_NMEDIT"; then
7358   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7378 if test -n "$ac_ct_NMEDIT"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7380 $as_echo "$ac_ct_NMEDIT" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386   if test "x$ac_ct_NMEDIT" = x; then
7387     NMEDIT=":"
7388   else
7389     case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395     NMEDIT=$ac_ct_NMEDIT
7396   fi
7397 else
7398   NMEDIT="$ac_cv_prog_NMEDIT"
7399 fi
7400
7401     if test -n "$ac_tool_prefix"; then
7402   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_LIPO+:} false; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   if test -n "$LIPO"; then
7410   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 LIPO=$ac_cv_prog_LIPO
7430 if test -n "$LIPO"; then
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7432 $as_echo "$LIPO" >&6; }
7433 else
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_LIPO"; then
7441   ac_ct_LIPO=$LIPO
7442   # Extract the first word of "lipo", so it can be a program name with args.
7443 set dummy lipo; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$ac_ct_LIPO"; then
7450   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459     ac_cv_prog_ac_ct_LIPO="lipo"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7470 if test -n "$ac_ct_LIPO"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7472 $as_echo "$ac_ct_LIPO" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478   if test "x$ac_ct_LIPO" = x; then
7479     LIPO=":"
7480   else
7481     case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487     LIPO=$ac_ct_LIPO
7488   fi
7489 else
7490   LIPO="$ac_cv_prog_LIPO"
7491 fi
7492
7493     if test -n "$ac_tool_prefix"; then
7494   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_OTOOL+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$OTOOL"; then
7502   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 OTOOL=$ac_cv_prog_OTOOL
7522 if test -n "$OTOOL"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7524 $as_echo "$OTOOL" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_OTOOL"; then
7533   ac_ct_OTOOL=$OTOOL
7534   # Extract the first word of "otool", so it can be a program name with args.
7535 set dummy otool; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$ac_ct_OTOOL"; then
7542   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551     ac_cv_prog_ac_ct_OTOOL="otool"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7562 if test -n "$ac_ct_OTOOL"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7564 $as_echo "$ac_ct_OTOOL" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570   if test "x$ac_ct_OTOOL" = x; then
7571     OTOOL=":"
7572   else
7573     case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579     OTOOL=$ac_ct_OTOOL
7580   fi
7581 else
7582   OTOOL="$ac_cv_prog_OTOOL"
7583 fi
7584
7585     if test -n "$ac_tool_prefix"; then
7586   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_OTOOL64+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   if test -n "$OTOOL64"; then
7594   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601     for ac_exec_ext in '' $ac_executable_extensions; do
7602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608   done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 OTOOL64=$ac_cv_prog_OTOOL64
7614 if test -n "$OTOOL64"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7616 $as_echo "$OTOOL64" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_OTOOL64"; then
7625   ac_ct_OTOOL64=$OTOOL64
7626   # Extract the first word of "otool64", so it can be a program name with args.
7627 set dummy otool64; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   if test -n "$ac_ct_OTOOL64"; then
7634   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641     for ac_exec_ext in '' $ac_executable_extensions; do
7642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643     ac_cv_prog_ac_ct_OTOOL64="otool64"
7644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648   done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7654 if test -n "$ac_ct_OTOOL64"; then
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7656 $as_echo "$ac_ct_OTOOL64" >&6; }
7657 else
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662   if test "x$ac_ct_OTOOL64" = x; then
7663     OTOOL64=":"
7664   else
7665     case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671     OTOOL64=$ac_ct_OTOOL64
7672   fi
7673 else
7674   OTOOL64="$ac_cv_prog_OTOOL64"
7675 fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7704 $as_echo_n "checking for -single_module linker flag... " >&6; }
7705 if ${lt_cv_apple_cc_single_mod+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   lt_cv_apple_cc_single_mod=no
7709       if test -z "${LT_MULTI_MODULE}"; then
7710         # By default we will add the -single_module flag. You can override
7711         # by either setting the environment variable LT_MULTI_MODULE
7712         # non-empty at configure time, or by adding -multi_module to the
7713         # link flags.
7714         rm -rf libconftest.dylib*
7715         echo "int foo(void){return 1;}" > conftest.c
7716         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7717 -dynamiclib -Wl,-single_module conftest.c" >&5
7718         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7719           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7720         _lt_result=$?
7721         # If there is a non-empty error log, and "single_module"
7722         # appears in it, assume the flag caused a linker warning
7723         if test -s conftest.err && $GREP single_module conftest.err; then
7724           cat conftest.err >&5
7725         # Otherwise, if the output was created with a 0 exit code from
7726         # the compiler, it worked.
7727         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7728           lt_cv_apple_cc_single_mod=yes
7729         else
7730           cat conftest.err >&5
7731         fi
7732         rm -rf libconftest.dylib*
7733         rm -f conftest.*
7734       fi
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7737 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7738
7739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7740 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7741 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744   lt_cv_ld_exported_symbols_list=no
7745       save_LDFLAGS=$LDFLAGS
7746       echo "_main" > conftest.sym
7747       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h.  */
7750
7751 int
7752 main ()
7753 {
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_link "$LINENO"; then :
7760   lt_cv_ld_exported_symbols_list=yes
7761 else
7762   lt_cv_ld_exported_symbols_list=no
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext \
7765     conftest$ac_exeext conftest.$ac_ext
7766         LDFLAGS="$save_LDFLAGS"
7767
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7771
7772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7773 $as_echo_n "checking for -force_load linker flag... " >&6; }
7774 if ${lt_cv_ld_force_load+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   lt_cv_ld_force_load=no
7778       cat > conftest.c << _LT_EOF
7779 int forced_loaded() { return 2;}
7780 _LT_EOF
7781       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7782       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7783       echo "$AR cru libconftest.a conftest.o" >&5
7784       $AR cru libconftest.a conftest.o 2>&5
7785       echo "$RANLIB libconftest.a" >&5
7786       $RANLIB libconftest.a 2>&5
7787       cat > conftest.c << _LT_EOF
7788 int main() { return 0;}
7789 _LT_EOF
7790       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7791       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7792       _lt_result=$?
7793       if test -s conftest.err && $GREP force_load conftest.err; then
7794         cat conftest.err >&5
7795       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7796         lt_cv_ld_force_load=yes
7797       else
7798         cat conftest.err >&5
7799       fi
7800         rm -f conftest.err libconftest.a conftest conftest.c
7801         rm -rf conftest.dSYM
7802
7803 fi
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7805 $as_echo "$lt_cv_ld_force_load" >&6; }
7806     case $host_os in
7807     rhapsody* | darwin1.[012])
7808       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7809     darwin1.*)
7810       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7811     darwin*) # darwin 5.x on
7812       # if running on 10.5 or later, the deployment target defaults
7813       # to the OS version, if on x86, and 10.4, the deployment
7814       # target defaults to 10.4. Don't you love it?
7815       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7816         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7817           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7818         10.[012]*)
7819           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7820         10.*)
7821           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7822       esac
7823     ;;
7824   esac
7825     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7826       _lt_dar_single_mod='$single_module'
7827     fi
7828     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7829       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7830     else
7831       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7832     fi
7833     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7834       _lt_dsymutil='~$DSYMUTIL $lib || :'
7835     else
7836       _lt_dsymutil=
7837     fi
7838     ;;
7839   esac
7840
7841 ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7848 # On Suns, sometimes $CPP names a directory.
7849 if test -n "$CPP" && test -d "$CPP"; then
7850   CPP=
7851 fi
7852 if test -z "$CPP"; then
7853   if ${ac_cv_prog_CPP+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856       # Double quotes because CPP needs to be expanded
7857     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7858     do
7859       ac_preproc_ok=false
7860 for ac_c_preproc_warn_flag in '' yes
7861 do
7862   # Use a header file that comes with gcc, so configuring glibc
7863   # with a fresh cross-compiler works.
7864   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865   # <limits.h> exists even on freestanding compilers.
7866   # On the NeXT, cc -E runs the code through the compiler's parser,
7867   # not just through cpp. "Syntax error" is here to catch this case.
7868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h.  */
7870 #ifdef __STDC__
7871 # include <limits.h>
7872 #else
7873 # include <assert.h>
7874 #endif
7875                      Syntax error
7876 _ACEOF
7877 if ac_fn_c_try_cpp "$LINENO"; then :
7878
7879 else
7880   # Broken: fails on valid input.
7881 continue
7882 fi
7883 rm -f conftest.err conftest.i conftest.$ac_ext
7884
7885   # OK, works on sane cases.  Now check whether nonexistent headers
7886   # can be detected and how.
7887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h.  */
7889 #include <ac_nonexistent.h>
7890 _ACEOF
7891 if ac_fn_c_try_cpp "$LINENO"; then :
7892   # Broken: success on invalid input.
7893 continue
7894 else
7895   # Passes both tests.
7896 ac_preproc_ok=:
7897 break
7898 fi
7899 rm -f conftest.err conftest.i conftest.$ac_ext
7900
7901 done
7902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7903 rm -f conftest.i conftest.err conftest.$ac_ext
7904 if $ac_preproc_ok; then :
7905   break
7906 fi
7907
7908     done
7909     ac_cv_prog_CPP=$CPP
7910
7911 fi
7912   CPP=$ac_cv_prog_CPP
7913 else
7914   ac_cv_prog_CPP=$CPP
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7917 $as_echo "$CPP" >&6; }
7918 ac_preproc_ok=false
7919 for ac_c_preproc_warn_flag in '' yes
7920 do
7921   # Use a header file that comes with gcc, so configuring glibc
7922   # with a fresh cross-compiler works.
7923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924   # <limits.h> exists even on freestanding compilers.
7925   # On the NeXT, cc -E runs the code through the compiler's parser,
7926   # not just through cpp. "Syntax error" is here to catch this case.
7927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h.  */
7929 #ifdef __STDC__
7930 # include <limits.h>
7931 #else
7932 # include <assert.h>
7933 #endif
7934                      Syntax error
7935 _ACEOF
7936 if ac_fn_c_try_cpp "$LINENO"; then :
7937
7938 else
7939   # Broken: fails on valid input.
7940 continue
7941 fi
7942 rm -f conftest.err conftest.i conftest.$ac_ext
7943
7944   # OK, works on sane cases.  Now check whether nonexistent headers
7945   # can be detected and how.
7946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h.  */
7948 #include <ac_nonexistent.h>
7949 _ACEOF
7950 if ac_fn_c_try_cpp "$LINENO"; then :
7951   # Broken: success on invalid input.
7952 continue
7953 else
7954   # Passes both tests.
7955 ac_preproc_ok=:
7956 break
7957 fi
7958 rm -f conftest.err conftest.i conftest.$ac_ext
7959
7960 done
7961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7962 rm -f conftest.i conftest.err conftest.$ac_ext
7963 if $ac_preproc_ok; then :
7964
7965 else
7966   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7968 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7969 See \`config.log' for more details" "$LINENO" 5; }
7970 fi
7971
7972 ac_ext=c
7973 ac_cpp='$CPP $CPPFLAGS'
7974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977
7978
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7980 $as_echo_n "checking for ANSI C header files... " >&6; }
7981 if ${ac_cv_header_stdc+:} false; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 #include <stdlib.h>
7987 #include <stdarg.h>
7988 #include <string.h>
7989 #include <float.h>
7990
7991 int
7992 main ()
7993 {
7994
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000   ac_cv_header_stdc=yes
8001 else
8002   ac_cv_header_stdc=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005
8006 if test $ac_cv_header_stdc = yes; then
8007   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h.  */
8010 #include <string.h>
8011
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014   $EGREP "memchr" >/dev/null 2>&1; then :
8015
8016 else
8017   ac_cv_header_stdc=no
8018 fi
8019 rm -f conftest*
8020
8021 fi
8022
8023 if test $ac_cv_header_stdc = yes; then
8024   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h.  */
8027 #include <stdlib.h>
8028
8029 _ACEOF
8030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031   $EGREP "free" >/dev/null 2>&1; then :
8032
8033 else
8034   ac_cv_header_stdc=no
8035 fi
8036 rm -f conftest*
8037
8038 fi
8039
8040 if test $ac_cv_header_stdc = yes; then
8041   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8042   if test "$cross_compiling" = yes; then :
8043   :
8044 else
8045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h.  */
8047 #include <ctype.h>
8048 #include <stdlib.h>
8049 #if ((' ' & 0x0FF) == 0x020)
8050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8052 #else
8053 # define ISLOWER(c) \
8054                    (('a' <= (c) && (c) <= 'i') \
8055                      || ('j' <= (c) && (c) <= 'r') \
8056                      || ('s' <= (c) && (c) <= 'z'))
8057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8058 #endif
8059
8060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8061 int
8062 main ()
8063 {
8064   int i;
8065   for (i = 0; i < 256; i++)
8066     if (XOR (islower (i), ISLOWER (i))
8067         || toupper (i) != TOUPPER (i))
8068       return 2;
8069   return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_run "$LINENO"; then :
8073
8074 else
8075   ac_cv_header_stdc=no
8076 fi
8077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8078   conftest.$ac_objext conftest.beam conftest.$ac_ext
8079 fi
8080
8081 fi
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8084 $as_echo "$ac_cv_header_stdc" >&6; }
8085 if test $ac_cv_header_stdc = yes; then
8086
8087 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8088
8089 fi
8090
8091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8093                   inttypes.h stdint.h unistd.h
8094 do :
8095   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8097 "
8098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8099   cat >>confdefs.h <<_ACEOF
8100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8101 _ACEOF
8102
8103 fi
8104
8105 done
8106
8107
8108 for ac_header in dlfcn.h
8109 do :
8110   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8111 "
8112 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8113   cat >>confdefs.h <<_ACEOF
8114 #define HAVE_DLFCN_H 1
8115 _ACEOF
8116
8117 fi
8118
8119 done
8120
8121
8122
8123
8124
8125 # Set options
8126
8127
8128
8129         enable_dlopen=no
8130
8131
8132   enable_win32_dll=no
8133
8134
8135             # Check whether --enable-shared was given.
8136 if test "${enable_shared+set}" = set; then :
8137   enableval=$enable_shared; p=${PACKAGE-default}
8138     case $enableval in
8139     yes) enable_shared=yes ;;
8140     no) enable_shared=no ;;
8141     *)
8142       enable_shared=no
8143       # Look at the argument we got.  We use all the common list separators.
8144       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8145       for pkg in $enableval; do
8146         IFS="$lt_save_ifs"
8147         if test "X$pkg" = "X$p"; then
8148           enable_shared=yes
8149         fi
8150       done
8151       IFS="$lt_save_ifs"
8152       ;;
8153     esac
8154 else
8155   enable_shared=yes
8156 fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166   # Check whether --enable-static was given.
8167 if test "${enable_static+set}" = set; then :
8168   enableval=$enable_static; p=${PACKAGE-default}
8169     case $enableval in
8170     yes) enable_static=yes ;;
8171     no) enable_static=no ;;
8172     *)
8173      enable_static=no
8174       # Look at the argument we got.  We use all the common list separators.
8175       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176       for pkg in $enableval; do
8177         IFS="$lt_save_ifs"
8178         if test "X$pkg" = "X$p"; then
8179           enable_static=yes
8180         fi
8181       done
8182       IFS="$lt_save_ifs"
8183       ;;
8184     esac
8185 else
8186   enable_static=yes
8187 fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 # Check whether --with-pic was given.
8199 if test "${with_pic+set}" = set; then :
8200   withval=$with_pic; lt_p=${PACKAGE-default}
8201     case $withval in
8202     yes|no) pic_mode=$withval ;;
8203     *)
8204       pic_mode=default
8205       # Look at the argument we got.  We use all the common list separators.
8206       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8207       for lt_pkg in $withval; do
8208         IFS="$lt_save_ifs"
8209         if test "X$lt_pkg" = "X$lt_p"; then
8210           pic_mode=yes
8211         fi
8212       done
8213       IFS="$lt_save_ifs"
8214       ;;
8215     esac
8216 else
8217   pic_mode=default
8218 fi
8219
8220
8221 test -z "$pic_mode" && pic_mode=default
8222
8223
8224
8225
8226
8227
8228
8229   # Check whether --enable-fast-install was given.
8230 if test "${enable_fast_install+set}" = set; then :
8231   enableval=$enable_fast_install; p=${PACKAGE-default}
8232     case $enableval in
8233     yes) enable_fast_install=yes ;;
8234     no) enable_fast_install=no ;;
8235     *)
8236       enable_fast_install=no
8237       # Look at the argument we got.  We use all the common list separators.
8238       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8239       for pkg in $enableval; do
8240         IFS="$lt_save_ifs"
8241         if test "X$pkg" = "X$p"; then
8242           enable_fast_install=yes
8243         fi
8244       done
8245       IFS="$lt_save_ifs"
8246       ;;
8247     esac
8248 else
8249   enable_fast_install=yes
8250 fi
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 # This can be used to rebuild libtool when needed
8263 LIBTOOL_DEPS="$ltmain"
8264
8265 # Always use our own libtool.
8266 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297 test -z "$LN_S" && LN_S="ln -s"
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312 if test -n "${ZSH_VERSION+set}" ; then
8313    setopt NO_GLOB_SUBST
8314 fi
8315
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8317 $as_echo_n "checking for objdir... " >&6; }
8318 if ${lt_cv_objdir+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   rm -f .libs 2>/dev/null
8322 mkdir .libs 2>/dev/null
8323 if test -d .libs; then
8324   lt_cv_objdir=.libs
8325 else
8326   # MS-DOS does not allow filenames that begin with a dot.
8327   lt_cv_objdir=_libs
8328 fi
8329 rmdir .libs 2>/dev/null
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8332 $as_echo "$lt_cv_objdir" >&6; }
8333 objdir=$lt_cv_objdir
8334
8335
8336
8337
8338
8339 cat >>confdefs.h <<_ACEOF
8340 #define LT_OBJDIR "$lt_cv_objdir/"
8341 _ACEOF
8342
8343
8344
8345
8346 case $host_os in
8347 aix3*)
8348   # AIX sometimes has problems with the GCC collect2 program.  For some
8349   # reason, if we set the COLLECT_NAMES environment variable, the problems
8350   # vanish in a puff of smoke.
8351   if test "X${COLLECT_NAMES+set}" != Xset; then
8352     COLLECT_NAMES=
8353     export COLLECT_NAMES
8354   fi
8355   ;;
8356 esac
8357
8358 # Global variables:
8359 ofile=libtool
8360 can_build_shared=yes
8361
8362 # All known linkers require a `.a' archive for static linking (except MSVC,
8363 # which needs '.lib').
8364 libext=a
8365
8366 with_gnu_ld="$lt_cv_prog_gnu_ld"
8367
8368 old_CC="$CC"
8369 old_CFLAGS="$CFLAGS"
8370
8371 # Set sane defaults for various variables
8372 test -z "$CC" && CC=cc
8373 test -z "$LTCC" && LTCC=$CC
8374 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8375 test -z "$LD" && LD=ld
8376 test -z "$ac_objext" && ac_objext=o
8377
8378 for cc_temp in $compiler""; do
8379   case $cc_temp in
8380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8382     \-*) ;;
8383     *) break;;
8384   esac
8385 done
8386 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8387
8388
8389 # Only perform the check for file, if the check method requires it
8390 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8391 case $deplibs_check_method in
8392 file_magic*)
8393   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8395 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8396 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   case $MAGIC_CMD in
8400 [\\/*] |  ?:[\\/]*)
8401   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8402   ;;
8403 *)
8404   lt_save_MAGIC_CMD="$MAGIC_CMD"
8405   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8406   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8407   for ac_dir in $ac_dummy; do
8408     IFS="$lt_save_ifs"
8409     test -z "$ac_dir" && ac_dir=.
8410     if test -f $ac_dir/${ac_tool_prefix}file; then
8411       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8412       if test -n "$file_magic_test_file"; then
8413         case $deplibs_check_method in
8414         "file_magic "*)
8415           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8416           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8417           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8418             $EGREP "$file_magic_regex" > /dev/null; then
8419             :
8420           else
8421             cat <<_LT_EOF 1>&2
8422
8423 *** Warning: the command libtool uses to detect shared libraries,
8424 *** $file_magic_cmd, produces output that libtool cannot recognize.
8425 *** The result is that libtool may fail to recognize shared libraries
8426 *** as such.  This will affect the creation of libtool libraries that
8427 *** depend on shared libraries, but programs linked with such libtool
8428 *** libraries will work regardless of this problem.  Nevertheless, you
8429 *** may want to report the problem to your system manager and/or to
8430 *** bug-libtool@gnu.org
8431
8432 _LT_EOF
8433           fi ;;
8434         esac
8435       fi
8436       break
8437     fi
8438   done
8439   IFS="$lt_save_ifs"
8440   MAGIC_CMD="$lt_save_MAGIC_CMD"
8441   ;;
8442 esac
8443 fi
8444
8445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8446 if test -n "$MAGIC_CMD"; then
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8448 $as_echo "$MAGIC_CMD" >&6; }
8449 else
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453
8454
8455
8456
8457
8458 if test -z "$lt_cv_path_MAGIC_CMD"; then
8459   if test -n "$ac_tool_prefix"; then
8460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8461 $as_echo_n "checking for file... " >&6; }
8462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   case $MAGIC_CMD in
8466 [\\/*] |  ?:[\\/]*)
8467   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8468   ;;
8469 *)
8470   lt_save_MAGIC_CMD="$MAGIC_CMD"
8471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8472   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8473   for ac_dir in $ac_dummy; do
8474     IFS="$lt_save_ifs"
8475     test -z "$ac_dir" && ac_dir=.
8476     if test -f $ac_dir/file; then
8477       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8478       if test -n "$file_magic_test_file"; then
8479         case $deplibs_check_method in
8480         "file_magic "*)
8481           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8482           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8484             $EGREP "$file_magic_regex" > /dev/null; then
8485             :
8486           else
8487             cat <<_LT_EOF 1>&2
8488
8489 *** Warning: the command libtool uses to detect shared libraries,
8490 *** $file_magic_cmd, produces output that libtool cannot recognize.
8491 *** The result is that libtool may fail to recognize shared libraries
8492 *** as such.  This will affect the creation of libtool libraries that
8493 *** depend on shared libraries, but programs linked with such libtool
8494 *** libraries will work regardless of this problem.  Nevertheless, you
8495 *** may want to report the problem to your system manager and/or to
8496 *** bug-libtool@gnu.org
8497
8498 _LT_EOF
8499           fi ;;
8500         esac
8501       fi
8502       break
8503     fi
8504   done
8505   IFS="$lt_save_ifs"
8506   MAGIC_CMD="$lt_save_MAGIC_CMD"
8507   ;;
8508 esac
8509 fi
8510
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if test -n "$MAGIC_CMD"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8514 $as_echo "$MAGIC_CMD" >&6; }
8515 else
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520
8521   else
8522     MAGIC_CMD=:
8523   fi
8524 fi
8525
8526   fi
8527   ;;
8528 esac
8529
8530 # Use C for the default configuration in the libtool script
8531
8532 lt_save_CC="$CC"
8533 ac_ext=c
8534 ac_cpp='$CPP $CPPFLAGS'
8535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538
8539
8540 # Source file extension for C test sources.
8541 ac_ext=c
8542
8543 # Object file extension for compiled C test sources.
8544 objext=o
8545 objext=$objext
8546
8547 # Code to be used in simple compile tests
8548 lt_simple_compile_test_code="int some_variable = 0;"
8549
8550 # Code to be used in simple link tests
8551 lt_simple_link_test_code='int main(){return(0);}'
8552
8553
8554
8555
8556
8557
8558
8559 # If no C compiler was specified, use CC.
8560 LTCC=${LTCC-"$CC"}
8561
8562 # If no C compiler flags were specified, use CFLAGS.
8563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8564
8565 # Allow CC to be a program name with arguments.
8566 compiler=$CC
8567
8568 # Save the default compiler, since it gets overwritten when the other
8569 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8570 compiler_DEFAULT=$CC
8571
8572 # save warnings/boilerplate of simple test code
8573 ac_outfile=conftest.$ac_objext
8574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8576 _lt_compiler_boilerplate=`cat conftest.err`
8577 $RM conftest*
8578
8579 ac_outfile=conftest.$ac_objext
8580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8582 _lt_linker_boilerplate=`cat conftest.err`
8583 $RM -r conftest*
8584
8585
8586 ## CAVEAT EMPTOR:
8587 ## There is no encapsulation within the following macros, do not change
8588 ## the running order or otherwise move them around unless you know exactly
8589 ## what you are doing...
8590 if test -n "$compiler"; then
8591
8592 lt_prog_compiler_no_builtin_flag=
8593
8594 if test "$GCC" = yes; then
8595   case $cc_basename in
8596   nvcc*)
8597     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8598   *)
8599     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8600   esac
8601
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8603 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8604 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8605   $as_echo_n "(cached) " >&6
8606 else
8607   lt_cv_prog_compiler_rtti_exceptions=no
8608    ac_outfile=conftest.$ac_objext
8609    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610    lt_compiler_flag="-fno-rtti -fno-exceptions"
8611    # Insert the option either (1) after the last *FLAGS variable, or
8612    # (2) before a word containing "conftest.", or (3) at the end.
8613    # Note that $ac_compile itself does not contain backslashes and begins
8614    # with a dollar sign (not a hyphen), so the echo should work correctly.
8615    # The option is referenced via a variable to avoid confusing sed.
8616    lt_compile=`echo "$ac_compile" | $SED \
8617    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619    -e 's:$: $lt_compiler_flag:'`
8620    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621    (eval "$lt_compile" 2>conftest.err)
8622    ac_status=$?
8623    cat conftest.err >&5
8624    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625    if (exit $ac_status) && test -s "$ac_outfile"; then
8626      # The compiler can only warn and ignore the option if not recognized
8627      # So say no if there are warnings other than the usual output.
8628      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8629      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8630      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8631        lt_cv_prog_compiler_rtti_exceptions=yes
8632      fi
8633    fi
8634    $RM conftest*
8635
8636 fi
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8638 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8639
8640 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8641     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8642 else
8643     :
8644 fi
8645
8646 fi
8647
8648
8649
8650
8651
8652
8653   lt_prog_compiler_wl=
8654 lt_prog_compiler_pic=
8655 lt_prog_compiler_static=
8656
8657
8658   if test "$GCC" = yes; then
8659     lt_prog_compiler_wl='-Wl,'
8660     lt_prog_compiler_static='-static'
8661
8662     case $host_os in
8663       aix*)
8664       # All AIX code is PIC.
8665       if test "$host_cpu" = ia64; then
8666         # AIX 5 now supports IA64 processor
8667         lt_prog_compiler_static='-Bstatic'
8668       fi
8669       ;;
8670
8671     amigaos*)
8672       case $host_cpu in
8673       powerpc)
8674             # see comment about AmigaOS4 .so support
8675             lt_prog_compiler_pic='-fPIC'
8676         ;;
8677       m68k)
8678             # FIXME: we need at least 68020 code to build shared libraries, but
8679             # adding the `-m68020' flag to GCC prevents building anything better,
8680             # like `-m68040'.
8681             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8682         ;;
8683       esac
8684       ;;
8685
8686     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8687       # PIC is the default for these OSes.
8688       ;;
8689
8690     mingw* | cygwin* | pw32* | os2* | cegcc*)
8691       # This hack is so that the source file can tell whether it is being
8692       # built for inclusion in a dll (and should export symbols for example).
8693       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8694       # (--disable-auto-import) libraries
8695       lt_prog_compiler_pic='-DDLL_EXPORT'
8696       ;;
8697
8698     darwin* | rhapsody*)
8699       # PIC is the default on this platform
8700       # Common symbols not allowed in MH_DYLIB files
8701       lt_prog_compiler_pic='-fno-common'
8702       ;;
8703
8704     haiku*)
8705       # PIC is the default for Haiku.
8706       # The "-static" flag exists, but is broken.
8707       lt_prog_compiler_static=
8708       ;;
8709
8710     hpux*)
8711       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8712       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8713       # sets the default TLS model and affects inlining.
8714       case $host_cpu in
8715       hppa*64*)
8716         # +Z the default
8717         ;;
8718       *)
8719         lt_prog_compiler_pic='-fPIC'
8720         ;;
8721       esac
8722       ;;
8723
8724     interix[3-9]*)
8725       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8726       # Instead, we relocate shared libraries at runtime.
8727       ;;
8728
8729     msdosdjgpp*)
8730       # Just because we use GCC doesn't mean we suddenly get shared libraries
8731       # on systems that don't support them.
8732       lt_prog_compiler_can_build_shared=no
8733       enable_shared=no
8734       ;;
8735
8736     *nto* | *qnx*)
8737       # QNX uses GNU C++, but need to define -shared option too, otherwise
8738       # it will coredump.
8739       lt_prog_compiler_pic='-fPIC -shared'
8740       ;;
8741
8742     sysv4*MP*)
8743       if test -d /usr/nec; then
8744         lt_prog_compiler_pic=-Kconform_pic
8745       fi
8746       ;;
8747
8748     *)
8749       lt_prog_compiler_pic='-fPIC'
8750       ;;
8751     esac
8752
8753     case $cc_basename in
8754     nvcc*) # Cuda Compiler Driver 2.2
8755       lt_prog_compiler_wl='-Xlinker '
8756       if test -n "$lt_prog_compiler_pic"; then
8757         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8758       fi
8759       ;;
8760     esac
8761   else
8762     # PORTME Check for flag to pass linker flags through the system compiler.
8763     case $host_os in
8764     aix*)
8765       lt_prog_compiler_wl='-Wl,'
8766       if test "$host_cpu" = ia64; then
8767         # AIX 5 now supports IA64 processor
8768         lt_prog_compiler_static='-Bstatic'
8769       else
8770         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8771       fi
8772       ;;
8773
8774     mingw* | cygwin* | pw32* | os2* | cegcc*)
8775       # This hack is so that the source file can tell whether it is being
8776       # built for inclusion in a dll (and should export symbols for example).
8777       lt_prog_compiler_pic='-DDLL_EXPORT'
8778       ;;
8779
8780     hpux9* | hpux10* | hpux11*)
8781       lt_prog_compiler_wl='-Wl,'
8782       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8783       # not for PA HP-UX.
8784       case $host_cpu in
8785       hppa*64*|ia64*)
8786         # +Z the default
8787         ;;
8788       *)
8789         lt_prog_compiler_pic='+Z'
8790         ;;
8791       esac
8792       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8793       lt_prog_compiler_static='${wl}-a ${wl}archive'
8794       ;;
8795
8796     irix5* | irix6* | nonstopux*)
8797       lt_prog_compiler_wl='-Wl,'
8798       # PIC (with -KPIC) is the default.
8799       lt_prog_compiler_static='-non_shared'
8800       ;;
8801
8802     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8803       case $cc_basename in
8804       # old Intel for x86_64 which still supported -KPIC.
8805       ecc*)
8806         lt_prog_compiler_wl='-Wl,'
8807         lt_prog_compiler_pic='-KPIC'
8808         lt_prog_compiler_static='-static'
8809         ;;
8810       # icc used to be incompatible with GCC.
8811       # ICC 10 doesn't accept -KPIC any more.
8812       icc* | ifort*)
8813         lt_prog_compiler_wl='-Wl,'
8814         lt_prog_compiler_pic='-fPIC'
8815         lt_prog_compiler_static='-static'
8816         ;;
8817       # Lahey Fortran 8.1.
8818       lf95*)
8819         lt_prog_compiler_wl='-Wl,'
8820         lt_prog_compiler_pic='--shared'
8821         lt_prog_compiler_static='--static'
8822         ;;
8823       nagfor*)
8824         # NAG Fortran compiler
8825         lt_prog_compiler_wl='-Wl,-Wl,,'
8826         lt_prog_compiler_pic='-PIC'
8827         lt_prog_compiler_static='-Bstatic'
8828         ;;
8829       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8830         # Portland Group compilers (*not* the Pentium gcc compiler,
8831         # which looks to be a dead project)
8832         lt_prog_compiler_wl='-Wl,'
8833         lt_prog_compiler_pic='-fpic'
8834         lt_prog_compiler_static='-Bstatic'
8835         ;;
8836       ccc*)
8837         lt_prog_compiler_wl='-Wl,'
8838         # All Alpha code is PIC.
8839         lt_prog_compiler_static='-non_shared'
8840         ;;
8841       xl* | bgxl* | bgf* | mpixl*)
8842         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8843         lt_prog_compiler_wl='-Wl,'
8844         lt_prog_compiler_pic='-qpic'
8845         lt_prog_compiler_static='-qstaticlink'
8846         ;;
8847       *)
8848         case `$CC -V 2>&1 | sed 5q` in
8849         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8850           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8851           lt_prog_compiler_pic='-KPIC'
8852           lt_prog_compiler_static='-Bstatic'
8853           lt_prog_compiler_wl=''
8854           ;;
8855         *Sun\ F* | *Sun*Fortran*)
8856           lt_prog_compiler_pic='-KPIC'
8857           lt_prog_compiler_static='-Bstatic'
8858           lt_prog_compiler_wl='-Qoption ld '
8859           ;;
8860         *Sun\ C*)
8861           # Sun C 5.9
8862           lt_prog_compiler_pic='-KPIC'
8863           lt_prog_compiler_static='-Bstatic'
8864           lt_prog_compiler_wl='-Wl,'
8865           ;;
8866         *Intel*\ [CF]*Compiler*)
8867           lt_prog_compiler_wl='-Wl,'
8868           lt_prog_compiler_pic='-fPIC'
8869           lt_prog_compiler_static='-static'
8870           ;;
8871         *Portland\ Group*)
8872           lt_prog_compiler_wl='-Wl,'
8873           lt_prog_compiler_pic='-fpic'
8874           lt_prog_compiler_static='-Bstatic'
8875           ;;
8876         esac
8877         ;;
8878       esac
8879       ;;
8880
8881     newsos6)
8882       lt_prog_compiler_pic='-KPIC'
8883       lt_prog_compiler_static='-Bstatic'
8884       ;;
8885
8886     *nto* | *qnx*)
8887       # QNX uses GNU C++, but need to define -shared option too, otherwise
8888       # it will coredump.
8889       lt_prog_compiler_pic='-fPIC -shared'
8890       ;;
8891
8892     osf3* | osf4* | osf5*)
8893       lt_prog_compiler_wl='-Wl,'
8894       # All OSF/1 code is PIC.
8895       lt_prog_compiler_static='-non_shared'
8896       ;;
8897
8898     rdos*)
8899       lt_prog_compiler_static='-non_shared'
8900       ;;
8901
8902     solaris*)
8903       lt_prog_compiler_pic='-KPIC'
8904       lt_prog_compiler_static='-Bstatic'
8905       case $cc_basename in
8906       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8907         lt_prog_compiler_wl='-Qoption ld ';;
8908       *)
8909         lt_prog_compiler_wl='-Wl,';;
8910       esac
8911       ;;
8912
8913     sunos4*)
8914       lt_prog_compiler_wl='-Qoption ld '
8915       lt_prog_compiler_pic='-PIC'
8916       lt_prog_compiler_static='-Bstatic'
8917       ;;
8918
8919     sysv4 | sysv4.2uw2* | sysv4.3*)
8920       lt_prog_compiler_wl='-Wl,'
8921       lt_prog_compiler_pic='-KPIC'
8922       lt_prog_compiler_static='-Bstatic'
8923       ;;
8924
8925     sysv4*MP*)
8926       if test -d /usr/nec ;then
8927         lt_prog_compiler_pic='-Kconform_pic'
8928         lt_prog_compiler_static='-Bstatic'
8929       fi
8930       ;;
8931
8932     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8933       lt_prog_compiler_wl='-Wl,'
8934       lt_prog_compiler_pic='-KPIC'
8935       lt_prog_compiler_static='-Bstatic'
8936       ;;
8937
8938     unicos*)
8939       lt_prog_compiler_wl='-Wl,'
8940       lt_prog_compiler_can_build_shared=no
8941       ;;
8942
8943     uts4*)
8944       lt_prog_compiler_pic='-pic'
8945       lt_prog_compiler_static='-Bstatic'
8946       ;;
8947
8948     *)
8949       lt_prog_compiler_can_build_shared=no
8950       ;;
8951     esac
8952   fi
8953
8954 case $host_os in
8955   # For platforms which do not support PIC, -DPIC is meaningless:
8956   *djgpp*)
8957     lt_prog_compiler_pic=
8958     ;;
8959   *)
8960     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8961     ;;
8962 esac
8963
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8965 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8966 if ${lt_cv_prog_compiler_pic+:} false; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8972 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8973 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8974
8975 #
8976 # Check to make sure the PIC flag actually works.
8977 #
8978 if test -n "$lt_prog_compiler_pic"; then
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8980 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8981 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   lt_cv_prog_compiler_pic_works=no
8985    ac_outfile=conftest.$ac_objext
8986    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8988    # Insert the option either (1) after the last *FLAGS variable, or
8989    # (2) before a word containing "conftest.", or (3) at the end.
8990    # Note that $ac_compile itself does not contain backslashes and begins
8991    # with a dollar sign (not a hyphen), so the echo should work correctly.
8992    # The option is referenced via a variable to avoid confusing sed.
8993    lt_compile=`echo "$ac_compile" | $SED \
8994    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996    -e 's:$: $lt_compiler_flag:'`
8997    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8998    (eval "$lt_compile" 2>conftest.err)
8999    ac_status=$?
9000    cat conftest.err >&5
9001    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002    if (exit $ac_status) && test -s "$ac_outfile"; then
9003      # The compiler can only warn and ignore the option if not recognized
9004      # So say no if there are warnings other than the usual output.
9005      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9006      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9008        lt_cv_prog_compiler_pic_works=yes
9009      fi
9010    fi
9011    $RM conftest*
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9015 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9016
9017 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9018     case $lt_prog_compiler_pic in
9019      "" | " "*) ;;
9020      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9021      esac
9022 else
9023     lt_prog_compiler_pic=
9024      lt_prog_compiler_can_build_shared=no
9025 fi
9026
9027 fi
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039 #
9040 # Check to make sure the static flag actually works.
9041 #
9042 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9044 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9045 if ${lt_cv_prog_compiler_static_works+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   lt_cv_prog_compiler_static_works=no
9049    save_LDFLAGS="$LDFLAGS"
9050    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9051    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9052    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9053      # The linker can only warn and ignore the option if not recognized
9054      # So say no if there are warnings
9055      if test -s conftest.err; then
9056        # Append any errors to the config.log.
9057        cat conftest.err 1>&5
9058        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9059        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9060        if diff conftest.exp conftest.er2 >/dev/null; then
9061          lt_cv_prog_compiler_static_works=yes
9062        fi
9063      else
9064        lt_cv_prog_compiler_static_works=yes
9065      fi
9066    fi
9067    $RM -r conftest*
9068    LDFLAGS="$save_LDFLAGS"
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9072 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9073
9074 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9075     :
9076 else
9077     lt_prog_compiler_static=
9078 fi
9079
9080
9081
9082
9083
9084
9085
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9088 if ${lt_cv_prog_compiler_c_o+:} false; then :
9089   $as_echo_n "(cached) " >&6
9090 else
9091   lt_cv_prog_compiler_c_o=no
9092    $RM -r conftest 2>/dev/null
9093    mkdir conftest
9094    cd conftest
9095    mkdir out
9096    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098    lt_compiler_flag="-o out/conftest2.$ac_objext"
9099    # Insert the option either (1) after the last *FLAGS variable, or
9100    # (2) before a word containing "conftest.", or (3) at the end.
9101    # Note that $ac_compile itself does not contain backslashes and begins
9102    # with a dollar sign (not a hyphen), so the echo should work correctly.
9103    lt_compile=`echo "$ac_compile" | $SED \
9104    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106    -e 's:$: $lt_compiler_flag:'`
9107    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108    (eval "$lt_compile" 2>out/conftest.err)
9109    ac_status=$?
9110    cat out/conftest.err >&5
9111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113    then
9114      # The compiler can only warn and ignore the option if not recognized
9115      # So say no if there are warnings
9116      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9117      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9118      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9119        lt_cv_prog_compiler_c_o=yes
9120      fi
9121    fi
9122    chmod u+w . 2>&5
9123    $RM conftest*
9124    # SGI C++ compiler will create directory out/ii_files/ for
9125    # template instantiation
9126    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9127    $RM out/* && rmdir out
9128    cd ..
9129    $RM -r conftest
9130    $RM conftest*
9131
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9135
9136
9137
9138
9139
9140
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9143 if ${lt_cv_prog_compiler_c_o+:} false; then :
9144   $as_echo_n "(cached) " >&6
9145 else
9146   lt_cv_prog_compiler_c_o=no
9147    $RM -r conftest 2>/dev/null
9148    mkdir conftest
9149    cd conftest
9150    mkdir out
9151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153    lt_compiler_flag="-o out/conftest2.$ac_objext"
9154    # Insert the option either (1) after the last *FLAGS variable, or
9155    # (2) before a word containing "conftest.", or (3) at the end.
9156    # Note that $ac_compile itself does not contain backslashes and begins
9157    # with a dollar sign (not a hyphen), so the echo should work correctly.
9158    lt_compile=`echo "$ac_compile" | $SED \
9159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161    -e 's:$: $lt_compiler_flag:'`
9162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163    (eval "$lt_compile" 2>out/conftest.err)
9164    ac_status=$?
9165    cat out/conftest.err >&5
9166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168    then
9169      # The compiler can only warn and ignore the option if not recognized
9170      # So say no if there are warnings
9171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9172      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9173      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9174        lt_cv_prog_compiler_c_o=yes
9175      fi
9176    fi
9177    chmod u+w . 2>&5
9178    $RM conftest*
9179    # SGI C++ compiler will create directory out/ii_files/ for
9180    # template instantiation
9181    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9182    $RM out/* && rmdir out
9183    cd ..
9184    $RM -r conftest
9185    $RM conftest*
9186
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190
9191
9192
9193
9194 hard_links="nottested"
9195 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9196   # do not overwrite the value of need_locks provided by the user
9197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9198 $as_echo_n "checking if we can lock with hard links... " >&6; }
9199   hard_links=yes
9200   $RM conftest*
9201   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202   touch conftest.a
9203   ln conftest.a conftest.b 2>&5 || hard_links=no
9204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9206 $as_echo "$hard_links" >&6; }
9207   if test "$hard_links" = no; then
9208     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9210     need_locks=warn
9211   fi
9212 else
9213   need_locks=no
9214 fi
9215
9216
9217
9218
9219
9220
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9223
9224   runpath_var=
9225   allow_undefined_flag=
9226   always_export_symbols=no
9227   archive_cmds=
9228   archive_expsym_cmds=
9229   compiler_needs_object=no
9230   enable_shared_with_static_runtimes=no
9231   export_dynamic_flag_spec=
9232   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9233   hardcode_automatic=no
9234   hardcode_direct=no
9235   hardcode_direct_absolute=no
9236   hardcode_libdir_flag_spec=
9237   hardcode_libdir_separator=
9238   hardcode_minus_L=no
9239   hardcode_shlibpath_var=unsupported
9240   inherit_rpath=no
9241   link_all_deplibs=unknown
9242   module_cmds=
9243   module_expsym_cmds=
9244   old_archive_from_new_cmds=
9245   old_archive_from_expsyms_cmds=
9246   thread_safe_flag_spec=
9247   whole_archive_flag_spec=
9248   # include_expsyms should be a list of space-separated symbols to be *always*
9249   # included in the symbol list
9250   include_expsyms=
9251   # exclude_expsyms can be an extended regexp of symbols to exclude
9252   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9253   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9254   # as well as any symbol that contains `d'.
9255   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9256   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9257   # platforms (ab)use it in PIC code, but their linkers get confused if
9258   # the symbol is explicitly referenced.  Since portable code cannot
9259   # rely on this symbol name, it's probably fine to never include it in
9260   # preloaded symbol tables.
9261   # Exclude shared library initialization/finalization symbols.
9262   extract_expsyms_cmds=
9263
9264   case $host_os in
9265   cygwin* | mingw* | pw32* | cegcc*)
9266     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9267     # When not using gcc, we currently assume that we are using
9268     # Microsoft Visual C++.
9269     if test "$GCC" != yes; then
9270       with_gnu_ld=no
9271     fi
9272     ;;
9273   interix*)
9274     # we just hope/assume this is gcc and not c89 (= MSVC++)
9275     with_gnu_ld=yes
9276     ;;
9277   openbsd*)
9278     with_gnu_ld=no
9279     ;;
9280   esac
9281
9282   ld_shlibs=yes
9283
9284   # On some targets, GNU ld is compatible enough with the native linker
9285   # that we're better off using the native interface for both.
9286   lt_use_gnu_ld_interface=no
9287   if test "$with_gnu_ld" = yes; then
9288     case $host_os in
9289       aix*)
9290         # The AIX port of GNU ld has always aspired to compatibility
9291         # with the native linker.  However, as the warning in the GNU ld
9292         # block says, versions before 2.19.5* couldn't really create working
9293         # shared libraries, regardless of the interface used.
9294         case `$LD -v 2>&1` in
9295           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9296           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9297           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9298           *)
9299             lt_use_gnu_ld_interface=yes
9300             ;;
9301         esac
9302         ;;
9303       *)
9304         lt_use_gnu_ld_interface=yes
9305         ;;
9306     esac
9307   fi
9308
9309   if test "$lt_use_gnu_ld_interface" = yes; then
9310     # If archive_cmds runs LD, not CC, wlarc should be empty
9311     wlarc='${wl}'
9312
9313     # Set some defaults for GNU ld with shared library support. These
9314     # are reset later if shared libraries are not supported. Putting them
9315     # here allows them to be overridden if necessary.
9316     runpath_var=LD_RUN_PATH
9317     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318     export_dynamic_flag_spec='${wl}--export-dynamic'
9319     # ancient GNU ld didn't support --whole-archive et. al.
9320     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9321       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9322     else
9323       whole_archive_flag_spec=
9324     fi
9325     supports_anon_versioning=no
9326     case `$LD -v 2>&1` in
9327       *GNU\ gold*) supports_anon_versioning=yes ;;
9328       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9329       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9330       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9331       *\ 2.11.*) ;; # other 2.11 versions
9332       *) supports_anon_versioning=yes ;;
9333     esac
9334
9335     # See if GNU ld supports shared libraries.
9336     case $host_os in
9337     aix[3-9]*)
9338       # On AIX/PPC, the GNU linker is very broken
9339       if test "$host_cpu" != ia64; then
9340         ld_shlibs=no
9341         cat <<_LT_EOF 1>&2
9342
9343 *** Warning: the GNU linker, at least up to release 2.19, is reported
9344 *** to be unable to reliably create shared libraries on AIX.
9345 *** Therefore, libtool is disabling shared libraries support.  If you
9346 *** really care for shared libraries, you may want to install binutils
9347 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9348 *** You will then need to restart the configuration process.
9349
9350 _LT_EOF
9351       fi
9352       ;;
9353
9354     amigaos*)
9355       case $host_cpu in
9356       powerpc)
9357             # see comment about AmigaOS4 .so support
9358             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359             archive_expsym_cmds=''
9360         ;;
9361       m68k)
9362             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)'
9363             hardcode_libdir_flag_spec='-L$libdir'
9364             hardcode_minus_L=yes
9365         ;;
9366       esac
9367       ;;
9368
9369     beos*)
9370       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371         allow_undefined_flag=unsupported
9372         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9373         # support --undefined.  This deserves some investigation.  FIXME
9374         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375       else
9376         ld_shlibs=no
9377       fi
9378       ;;
9379
9380     cygwin* | mingw* | pw32* | cegcc*)
9381       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9382       # as there is no search path for DLLs.
9383       hardcode_libdir_flag_spec='-L$libdir'
9384       export_dynamic_flag_spec='${wl}--export-all-symbols'
9385       allow_undefined_flag=unsupported
9386       always_export_symbols=no
9387       enable_shared_with_static_runtimes=yes
9388       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'
9389       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9390
9391       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9392         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393         # If the export-symbols file already is a .def file (1st line
9394         # is EXPORTS), use it as is; otherwise, prepend...
9395         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9396           cp $export_symbols $output_objdir/$soname.def;
9397         else
9398           echo EXPORTS > $output_objdir/$soname.def;
9399           cat $export_symbols >> $output_objdir/$soname.def;
9400         fi~
9401         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402       else
9403         ld_shlibs=no
9404       fi
9405       ;;
9406
9407     haiku*)
9408       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409       link_all_deplibs=yes
9410       ;;
9411
9412     interix[3-9]*)
9413       hardcode_direct=no
9414       hardcode_shlibpath_var=no
9415       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416       export_dynamic_flag_spec='${wl}-E'
9417       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9418       # Instead, shared libraries are loaded at an image base (0x10000000 by
9419       # default) and relocated if they conflict, which is a slow very memory
9420       # consuming and fragmenting process.  To avoid this, we pick a random,
9421       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9422       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9423       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9424       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'
9425       ;;
9426
9427     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9428       tmp_diet=no
9429       if test "$host_os" = linux-dietlibc; then
9430         case $cc_basename in
9431           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9432         esac
9433       fi
9434       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9435          && test "$tmp_diet" = no
9436       then
9437         tmp_addflag=' $pic_flag'
9438         tmp_sharedflag='-shared'
9439         case $cc_basename,$host_cpu in
9440         pgcc*)                          # Portland Group C compiler
9441           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'
9442           tmp_addflag=' $pic_flag'
9443           ;;
9444         pgf77* | pgf90* | pgf95* | pgfortran*)
9445                                         # Portland Group f77 and f90 compilers
9446           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'
9447           tmp_addflag=' $pic_flag -Mnomain' ;;
9448         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9449           tmp_addflag=' -i_dynamic' ;;
9450         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9451           tmp_addflag=' -i_dynamic -nofor_main' ;;
9452         ifc* | ifort*)                  # Intel Fortran compiler
9453           tmp_addflag=' -nofor_main' ;;
9454         lf95*)                          # Lahey Fortran 8.1
9455           whole_archive_flag_spec=
9456           tmp_sharedflag='--shared' ;;
9457         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9458           tmp_sharedflag='-qmkshrobj'
9459           tmp_addflag= ;;
9460         nvcc*)  # Cuda Compiler Driver 2.2
9461           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'
9462           compiler_needs_object=yes
9463           ;;
9464         esac
9465         case `$CC -V 2>&1 | sed 5q` in
9466         *Sun\ C*)                       # Sun C 5.9
9467           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'
9468           compiler_needs_object=yes
9469           tmp_sharedflag='-G' ;;
9470         *Sun\ F*)                       # Sun Fortran 8.3
9471           tmp_sharedflag='-G' ;;
9472         esac
9473         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474
9475         if test "x$supports_anon_versioning" = xyes; then
9476           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9477             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478             echo "local: *; };" >> $output_objdir/$libname.ver~
9479             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9480         fi
9481
9482         case $cc_basename in
9483         xlf* | bgf* | bgxlf* | mpixlf*)
9484           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9485           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9486           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9488           if test "x$supports_anon_versioning" = xyes; then
9489             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491               echo "local: *; };" >> $output_objdir/$libname.ver~
9492               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9493           fi
9494           ;;
9495         esac
9496       else
9497         ld_shlibs=no
9498       fi
9499       ;;
9500
9501     netbsd*)
9502       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9503         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9504         wlarc=
9505       else
9506         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508       fi
9509       ;;
9510
9511     solaris*)
9512       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9513         ld_shlibs=no
9514         cat <<_LT_EOF 1>&2
9515
9516 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9517 *** create shared libraries on Solaris systems.  Therefore, libtool
9518 *** is disabling shared libraries support.  We urge you to upgrade GNU
9519 *** binutils to release 2.9.1 or newer.  Another option is to modify
9520 *** your PATH or compiler configuration so that the native linker is
9521 *** used, and then restart.
9522
9523 _LT_EOF
9524       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9525         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9527       else
9528         ld_shlibs=no
9529       fi
9530       ;;
9531
9532     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9533       case `$LD -v 2>&1` in
9534         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9535         ld_shlibs=no
9536         cat <<_LT_EOF 1>&2
9537
9538 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9539 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9540 *** is disabling shared libraries support.  We urge you to upgrade GNU
9541 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9542 *** your PATH or compiler configuration so that the native linker is
9543 *** used, and then restart.
9544
9545 _LT_EOF
9546         ;;
9547         *)
9548           # For security reasons, it is highly recommended that you always
9549           # use absolute paths for naming shared libraries, and exclude the
9550           # DT_RUNPATH tag from executables and libraries.  But doing so
9551           # requires that you compile everything twice, which is a pain.
9552           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9553             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9554             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9556           else
9557             ld_shlibs=no
9558           fi
9559         ;;
9560       esac
9561       ;;
9562
9563     sunos4*)
9564       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565       wlarc=
9566       hardcode_direct=yes
9567       hardcode_shlibpath_var=no
9568       ;;
9569
9570     *)
9571       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9574       else
9575         ld_shlibs=no
9576       fi
9577       ;;
9578     esac
9579
9580     if test "$ld_shlibs" = no; then
9581       runpath_var=
9582       hardcode_libdir_flag_spec=
9583       export_dynamic_flag_spec=
9584       whole_archive_flag_spec=
9585     fi
9586   else
9587     # PORTME fill in a description of your system's linker (not GNU ld)
9588     case $host_os in
9589     aix3*)
9590       allow_undefined_flag=unsupported
9591       always_export_symbols=yes
9592       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'
9593       # Note: this linker hardcodes the directories in LIBPATH if there
9594       # are no directories specified by -L.
9595       hardcode_minus_L=yes
9596       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9597         # Neither direct hardcoding nor static linking is supported with a
9598         # broken collect2.
9599         hardcode_direct=unsupported
9600       fi
9601       ;;
9602
9603     aix[4-9]*)
9604       if test "$host_cpu" = ia64; then
9605         # On IA64, the linker does run time linking by default, so we don't
9606         # have to do anything special.
9607         aix_use_runtimelinking=no
9608         exp_sym_flag='-Bexport'
9609         no_entry_flag=""
9610       else
9611         # If we're using GNU nm, then we don't want the "-C" option.
9612         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9613         # Also, AIX nm treats weak defined symbols like other global
9614         # defined symbols, whereas GNU nm marks them as "W".
9615         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9616           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'
9617         else
9618           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'
9619         fi
9620         aix_use_runtimelinking=no
9621
9622         # Test if we are trying to use run time linking or normal
9623         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9624         # need to do runtime linking.
9625         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9626           for ld_flag in $LDFLAGS; do
9627           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9628             aix_use_runtimelinking=yes
9629             break
9630           fi
9631           done
9632           ;;
9633         esac
9634
9635         exp_sym_flag='-bexport'
9636         no_entry_flag='-bnoentry'
9637       fi
9638
9639       # When large executables or shared objects are built, AIX ld can
9640       # have problems creating the table of contents.  If linking a library
9641       # or program results in "error TOC overflow" add -mminimal-toc to
9642       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9643       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
9645       archive_cmds=''
9646       hardcode_direct=yes
9647       hardcode_direct_absolute=yes
9648       hardcode_libdir_separator=':'
9649       link_all_deplibs=yes
9650       file_list_spec='${wl}-f,'
9651
9652       if test "$GCC" = yes; then
9653         case $host_os in aix4.[012]|aix4.[012].*)
9654         # We only want to do this on AIX 4.2 and lower, the check
9655         # below for broken collect2 doesn't work under 4.3+
9656           collect2name=`${CC} -print-prog-name=collect2`
9657           if test -f "$collect2name" &&
9658            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9659           then
9660           # We have reworked collect2
9661           :
9662           else
9663           # We have old collect2
9664           hardcode_direct=unsupported
9665           # It fails to find uninstalled libraries when the uninstalled
9666           # path is not listed in the libpath.  Setting hardcode_minus_L
9667           # to unsupported forces relinking
9668           hardcode_minus_L=yes
9669           hardcode_libdir_flag_spec='-L$libdir'
9670           hardcode_libdir_separator=
9671           fi
9672           ;;
9673         esac
9674         shared_flag='-shared'
9675         if test "$aix_use_runtimelinking" = yes; then
9676           shared_flag="$shared_flag "'${wl}-G'
9677         fi
9678       else
9679         # not using gcc
9680         if test "$host_cpu" = ia64; then
9681         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9682         # chokes on -Wl,-G. The following line is correct:
9683           shared_flag='-G'
9684         else
9685           if test "$aix_use_runtimelinking" = yes; then
9686             shared_flag='${wl}-G'
9687           else
9688             shared_flag='${wl}-bM:SRE'
9689           fi
9690         fi
9691       fi
9692
9693       export_dynamic_flag_spec='${wl}-bexpall'
9694       # It seems that -bexpall does not export symbols beginning with
9695       # underscore (_), so it is better to generate a list of symbols to export.
9696       always_export_symbols=yes
9697       if test "$aix_use_runtimelinking" = yes; then
9698         # Warning - without using the other runtime loading flags (-brtl),
9699         # -berok will link without error, but may produce a broken library.
9700         allow_undefined_flag='-berok'
9701         # Determine the default libpath from the value encoded in an
9702         # empty executable.
9703         if test "${lt_cv_aix_libpath+set}" = set; then
9704   aix_libpath=$lt_cv_aix_libpath
9705 else
9706   if ${lt_cv_aix_libpath_+:} false; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h.  */
9711
9712 int
9713 main ()
9714 {
9715
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 if ac_fn_c_try_link "$LINENO"; then :
9721
9722   lt_aix_libpath_sed='
9723       /Import File Strings/,/^$/ {
9724           /^0/ {
9725               s/^0  *\([^ ]*\) *$/\1/
9726               p
9727           }
9728       }'
9729   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730   # Check for a 64-bit object if we didn't find anything.
9731   if test -z "$lt_cv_aix_libpath_"; then
9732     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733   fi
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext \
9736     conftest$ac_exeext conftest.$ac_ext
9737   if test -z "$lt_cv_aix_libpath_"; then
9738     lt_cv_aix_libpath_="/usr/lib:/lib"
9739   fi
9740
9741 fi
9742
9743   aix_libpath=$lt_cv_aix_libpath_
9744 fi
9745
9746         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9747         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9748       else
9749         if test "$host_cpu" = ia64; then
9750           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9751           allow_undefined_flag="-z nodefs"
9752           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"
9753         else
9754          # Determine the default libpath from the value encoded in an
9755          # empty executable.
9756          if test "${lt_cv_aix_libpath+set}" = set; then
9757   aix_libpath=$lt_cv_aix_libpath
9758 else
9759   if ${lt_cv_aix_libpath_+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h.  */
9764
9765 int
9766 main ()
9767 {
9768
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774
9775   lt_aix_libpath_sed='
9776       /Import File Strings/,/^$/ {
9777           /^0/ {
9778               s/^0  *\([^ ]*\) *$/\1/
9779               p
9780           }
9781       }'
9782   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9783   # Check for a 64-bit object if we didn't find anything.
9784   if test -z "$lt_cv_aix_libpath_"; then
9785     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786   fi
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789     conftest$ac_exeext conftest.$ac_ext
9790   if test -z "$lt_cv_aix_libpath_"; then
9791     lt_cv_aix_libpath_="/usr/lib:/lib"
9792   fi
9793
9794 fi
9795
9796   aix_libpath=$lt_cv_aix_libpath_
9797 fi
9798
9799          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9800           # Warning - without using the other run time loading flags,
9801           # -berok will link without error, but may produce a broken library.
9802           no_undefined_flag=' ${wl}-bernotok'
9803           allow_undefined_flag=' ${wl}-berok'
9804           if test "$with_gnu_ld" = yes; then
9805             # We only use this code for GNU lds that support --whole-archive.
9806             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9807           else
9808             # Exported symbols can be pulled into shared objects from archives
9809             whole_archive_flag_spec='$convenience'
9810           fi
9811           archive_cmds_need_lc=yes
9812           # This is similar to how AIX traditionally builds its shared libraries.
9813           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'
9814         fi
9815       fi
9816       ;;
9817
9818     amigaos*)
9819       case $host_cpu in
9820       powerpc)
9821             # see comment about AmigaOS4 .so support
9822             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823             archive_expsym_cmds=''
9824         ;;
9825       m68k)
9826             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)'
9827             hardcode_libdir_flag_spec='-L$libdir'
9828             hardcode_minus_L=yes
9829         ;;
9830       esac
9831       ;;
9832
9833     bsdi[45]*)
9834       export_dynamic_flag_spec=-rdynamic
9835       ;;
9836
9837     cygwin* | mingw* | pw32* | cegcc*)
9838       # When not using gcc, we currently assume that we are using
9839       # Microsoft Visual C++.
9840       # hardcode_libdir_flag_spec is actually meaningless, as there is
9841       # no search path for DLLs.
9842       case $cc_basename in
9843       cl*)
9844         # Native MSVC
9845         hardcode_libdir_flag_spec=' '
9846         allow_undefined_flag=unsupported
9847         always_export_symbols=yes
9848         file_list_spec='@'
9849         # Tell ltmain to make .lib files, not .a files.
9850         libext=lib
9851         # Tell ltmain to make .dll files, not .so files.
9852         shrext_cmds=".dll"
9853         # FIXME: Setting linknames here is a bad hack.
9854         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9855         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9856             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9857           else
9858             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9859           fi~
9860           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9861           linknames='
9862         # The linker will not automatically build a static lib if we build a DLL.
9863         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9864         enable_shared_with_static_runtimes=yes
9865         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9866         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9867         # Don't use ranlib
9868         old_postinstall_cmds='chmod 644 $oldlib'
9869         postlink_cmds='lt_outputfile="@OUTPUT@"~
9870           lt_tool_outputfile="@TOOL_OUTPUT@"~
9871           case $lt_outputfile in
9872             *.exe|*.EXE) ;;
9873             *)
9874               lt_outputfile="$lt_outputfile.exe"
9875               lt_tool_outputfile="$lt_tool_outputfile.exe"
9876               ;;
9877           esac~
9878           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9879             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9880             $RM "$lt_outputfile.manifest";
9881           fi'
9882         ;;
9883       *)
9884         # Assume MSVC wrapper
9885         hardcode_libdir_flag_spec=' '
9886         allow_undefined_flag=unsupported
9887         # Tell ltmain to make .lib files, not .a files.
9888         libext=lib
9889         # Tell ltmain to make .dll files, not .so files.
9890         shrext_cmds=".dll"
9891         # FIXME: Setting linknames here is a bad hack.
9892         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9893         # The linker will automatically build a .lib file if we build a DLL.
9894         old_archive_from_new_cmds='true'
9895         # FIXME: Should let the user specify the lib program.
9896         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9897         enable_shared_with_static_runtimes=yes
9898         ;;
9899       esac
9900       ;;
9901
9902     darwin* | rhapsody*)
9903
9904
9905   archive_cmds_need_lc=no
9906   hardcode_direct=no
9907   hardcode_automatic=yes
9908   hardcode_shlibpath_var=unsupported
9909   if test "$lt_cv_ld_force_load" = "yes"; then
9910     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\"`'
9911
9912   else
9913     whole_archive_flag_spec=''
9914   fi
9915   link_all_deplibs=yes
9916   allow_undefined_flag="$_lt_dar_allow_undefined"
9917   case $cc_basename in
9918      ifort*) _lt_dar_can_shared=yes ;;
9919      *) _lt_dar_can_shared=$GCC ;;
9920   esac
9921   if test "$_lt_dar_can_shared" = "yes"; then
9922     output_verbose_link_cmd=func_echo_all
9923     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9924     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9925     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}"
9926     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}"
9927
9928   else
9929   ld_shlibs=no
9930   fi
9931
9932       ;;
9933
9934     dgux*)
9935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936       hardcode_libdir_flag_spec='-L$libdir'
9937       hardcode_shlibpath_var=no
9938       ;;
9939
9940     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9941     # support.  Future versions do this automatically, but an explicit c++rt0.o
9942     # does not break anything, and helps significantly (at the cost of a little
9943     # extra space).
9944     freebsd2.2*)
9945       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9946       hardcode_libdir_flag_spec='-R$libdir'
9947       hardcode_direct=yes
9948       hardcode_shlibpath_var=no
9949       ;;
9950
9951     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9952     freebsd2.*)
9953       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954       hardcode_direct=yes
9955       hardcode_minus_L=yes
9956       hardcode_shlibpath_var=no
9957       ;;
9958
9959     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9960     freebsd* | dragonfly*)
9961       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962       hardcode_libdir_flag_spec='-R$libdir'
9963       hardcode_direct=yes
9964       hardcode_shlibpath_var=no
9965       ;;
9966
9967     hpux9*)
9968       if test "$GCC" = yes; then
9969         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9970       else
9971         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9972       fi
9973       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9974       hardcode_libdir_separator=:
9975       hardcode_direct=yes
9976
9977       # hardcode_minus_L: Not really in the search PATH,
9978       # but as the default location of the library.
9979       hardcode_minus_L=yes
9980       export_dynamic_flag_spec='${wl}-E'
9981       ;;
9982
9983     hpux10*)
9984       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9985         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986       else
9987         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988       fi
9989       if test "$with_gnu_ld" = no; then
9990         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9991         hardcode_libdir_separator=:
9992         hardcode_direct=yes
9993         hardcode_direct_absolute=yes
9994         export_dynamic_flag_spec='${wl}-E'
9995         # hardcode_minus_L: Not really in the search PATH,
9996         # but as the default location of the library.
9997         hardcode_minus_L=yes
9998       fi
9999       ;;
10000
10001     hpux11*)
10002       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10003         case $host_cpu in
10004         hppa*64*)
10005           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10006           ;;
10007         ia64*)
10008           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10009           ;;
10010         *)
10011           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10012           ;;
10013         esac
10014       else
10015         case $host_cpu in
10016         hppa*64*)
10017           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10018           ;;
10019         ia64*)
10020           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10021           ;;
10022         *)
10023
10024           # Older versions of the 11.00 compiler do not understand -b yet
10025           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10026           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10027 $as_echo_n "checking if $CC understands -b... " >&6; }
10028 if ${lt_cv_prog_compiler__b+:} false; then :
10029   $as_echo_n "(cached) " >&6
10030 else
10031   lt_cv_prog_compiler__b=no
10032    save_LDFLAGS="$LDFLAGS"
10033    LDFLAGS="$LDFLAGS -b"
10034    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10035    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10036      # The linker can only warn and ignore the option if not recognized
10037      # So say no if there are warnings
10038      if test -s conftest.err; then
10039        # Append any errors to the config.log.
10040        cat conftest.err 1>&5
10041        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10042        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10043        if diff conftest.exp conftest.er2 >/dev/null; then
10044          lt_cv_prog_compiler__b=yes
10045        fi
10046      else
10047        lt_cv_prog_compiler__b=yes
10048      fi
10049    fi
10050    $RM -r conftest*
10051    LDFLAGS="$save_LDFLAGS"
10052
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10055 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10056
10057 if test x"$lt_cv_prog_compiler__b" = xyes; then
10058     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059 else
10060     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10061 fi
10062
10063           ;;
10064         esac
10065       fi
10066       if test "$with_gnu_ld" = no; then
10067         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10068         hardcode_libdir_separator=:
10069
10070         case $host_cpu in
10071         hppa*64*|ia64*)
10072           hardcode_direct=no
10073           hardcode_shlibpath_var=no
10074           ;;
10075         *)
10076           hardcode_direct=yes
10077           hardcode_direct_absolute=yes
10078           export_dynamic_flag_spec='${wl}-E'
10079
10080           # hardcode_minus_L: Not really in the search PATH,
10081           # but as the default location of the library.
10082           hardcode_minus_L=yes
10083           ;;
10084         esac
10085       fi
10086       ;;
10087
10088     irix5* | irix6* | nonstopux*)
10089       if test "$GCC" = yes; then
10090         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'
10091         # Try to use the -exported_symbol ld option, if it does not
10092         # work, assume that -exports_file does not work either and
10093         # implicitly export all symbols.
10094         # This should be the same for all languages, so no per-tag cache variable.
10095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10096 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10097 if ${lt_cv_irix_exported_symbol+:} false; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   save_LDFLAGS="$LDFLAGS"
10101            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10102            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h.  */
10104 int foo (void) { return 0; }
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"; then :
10107   lt_cv_irix_exported_symbol=yes
10108 else
10109   lt_cv_irix_exported_symbol=no
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112     conftest$ac_exeext conftest.$ac_ext
10113            LDFLAGS="$save_LDFLAGS"
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10116 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10117         if test "$lt_cv_irix_exported_symbol" = yes; then
10118           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'
10119         fi
10120       else
10121         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'
10122         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'
10123       fi
10124       archive_cmds_need_lc='no'
10125       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126       hardcode_libdir_separator=:
10127       inherit_rpath=yes
10128       link_all_deplibs=yes
10129       ;;
10130
10131     netbsd*)
10132       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10133         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10134       else
10135         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10136       fi
10137       hardcode_libdir_flag_spec='-R$libdir'
10138       hardcode_direct=yes
10139       hardcode_shlibpath_var=no
10140       ;;
10141
10142     newsos6)
10143       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144       hardcode_direct=yes
10145       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146       hardcode_libdir_separator=:
10147       hardcode_shlibpath_var=no
10148       ;;
10149
10150     *nto* | *qnx*)
10151       ;;
10152
10153     openbsd*)
10154       if test -f /usr/libexec/ld.so; then
10155         hardcode_direct=yes
10156         hardcode_shlibpath_var=no
10157         hardcode_direct_absolute=yes
10158         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10160           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10161           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162           export_dynamic_flag_spec='${wl}-E'
10163         else
10164           case $host_os in
10165            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10166              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167              hardcode_libdir_flag_spec='-R$libdir'
10168              ;;
10169            *)
10170              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10171              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10172              ;;
10173           esac
10174         fi
10175       else
10176         ld_shlibs=no
10177       fi
10178       ;;
10179
10180     os2*)
10181       hardcode_libdir_flag_spec='-L$libdir'
10182       hardcode_minus_L=yes
10183       allow_undefined_flag=unsupported
10184       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'
10185       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10186       ;;
10187
10188     osf3*)
10189       if test "$GCC" = yes; then
10190         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10191         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'
10192       else
10193         allow_undefined_flag=' -expect_unresolved \*'
10194         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'
10195       fi
10196       archive_cmds_need_lc='no'
10197       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198       hardcode_libdir_separator=:
10199       ;;
10200
10201     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10202       if test "$GCC" = yes; then
10203         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10204         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'
10205         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206       else
10207         allow_undefined_flag=' -expect_unresolved \*'
10208         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'
10209         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~
10210         $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'
10211
10212         # Both c and cxx compiler support -rpath directly
10213         hardcode_libdir_flag_spec='-rpath $libdir'
10214       fi
10215       archive_cmds_need_lc='no'
10216       hardcode_libdir_separator=:
10217       ;;
10218
10219     solaris*)
10220       no_undefined_flag=' -z defs'
10221       if test "$GCC" = yes; then
10222         wlarc='${wl}'
10223         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10224         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10225           $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'
10226       else
10227         case `$CC -V 2>&1` in
10228         *"Compilers 5.0"*)
10229           wlarc=''
10230           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10233           ;;
10234         *)
10235           wlarc='${wl}'
10236           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10237           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10238           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10239           ;;
10240         esac
10241       fi
10242       hardcode_libdir_flag_spec='-R$libdir'
10243       hardcode_shlibpath_var=no
10244       case $host_os in
10245       solaris2.[0-5] | solaris2.[0-5].*) ;;
10246       *)
10247         # The compiler driver will combine and reorder linker options,
10248         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10249         # but is careful enough not to reorder.
10250         # Supported since Solaris 2.6 (maybe 2.5.1?)
10251         if test "$GCC" = yes; then
10252           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10253         else
10254           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10255         fi
10256         ;;
10257       esac
10258       link_all_deplibs=yes
10259       ;;
10260
10261     sunos4*)
10262       if test "x$host_vendor" = xsequent; then
10263         # Use $CC to link under sequent, because it throws in some extra .o
10264         # files that make .init and .fini sections work.
10265         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10266       else
10267         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10268       fi
10269       hardcode_libdir_flag_spec='-L$libdir'
10270       hardcode_direct=yes
10271       hardcode_minus_L=yes
10272       hardcode_shlibpath_var=no
10273       ;;
10274
10275     sysv4)
10276       case $host_vendor in
10277         sni)
10278           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279           hardcode_direct=yes # is this really true???
10280         ;;
10281         siemens)
10282           ## LD is ld it makes a PLAMLIB
10283           ## CC just makes a GrossModule.
10284           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10285           reload_cmds='$CC -r -o $output$reload_objs'
10286           hardcode_direct=no
10287         ;;
10288         motorola)
10289           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10291         ;;
10292       esac
10293       runpath_var='LD_RUN_PATH'
10294       hardcode_shlibpath_var=no
10295       ;;
10296
10297     sysv4.3*)
10298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10299       hardcode_shlibpath_var=no
10300       export_dynamic_flag_spec='-Bexport'
10301       ;;
10302
10303     sysv4*MP*)
10304       if test -d /usr/nec; then
10305         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306         hardcode_shlibpath_var=no
10307         runpath_var=LD_RUN_PATH
10308         hardcode_runpath_var=yes
10309         ld_shlibs=yes
10310       fi
10311       ;;
10312
10313     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10314       no_undefined_flag='${wl}-z,text'
10315       archive_cmds_need_lc=no
10316       hardcode_shlibpath_var=no
10317       runpath_var='LD_RUN_PATH'
10318
10319       if test "$GCC" = yes; then
10320         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322       else
10323         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325       fi
10326       ;;
10327
10328     sysv5* | sco3.2v5* | sco5v6*)
10329       # Note: We can NOT use -z defs as we might desire, because we do not
10330       # link with -lc, and that would cause any symbols used from libc to
10331       # always be unresolved, which means just about no library would
10332       # ever link correctly.  If we're not using GNU ld we use -z text
10333       # though, which does catch some bad symbols but isn't as heavy-handed
10334       # as -z defs.
10335       no_undefined_flag='${wl}-z,text'
10336       allow_undefined_flag='${wl}-z,nodefs'
10337       archive_cmds_need_lc=no
10338       hardcode_shlibpath_var=no
10339       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10340       hardcode_libdir_separator=':'
10341       link_all_deplibs=yes
10342       export_dynamic_flag_spec='${wl}-Bexport'
10343       runpath_var='LD_RUN_PATH'
10344
10345       if test "$GCC" = yes; then
10346         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348       else
10349         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351       fi
10352       ;;
10353
10354     uts4*)
10355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356       hardcode_libdir_flag_spec='-L$libdir'
10357       hardcode_shlibpath_var=no
10358       ;;
10359
10360     *)
10361       ld_shlibs=no
10362       ;;
10363     esac
10364
10365     if test x$host_vendor = xsni; then
10366       case $host in
10367       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10368         export_dynamic_flag_spec='${wl}-Blargedynsym'
10369         ;;
10370       esac
10371     fi
10372   fi
10373
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10375 $as_echo "$ld_shlibs" >&6; }
10376 test "$ld_shlibs" = no && can_build_shared=no
10377
10378 with_gnu_ld=$with_gnu_ld
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394 #
10395 # Do we need to explicitly link libc?
10396 #
10397 case "x$archive_cmds_need_lc" in
10398 x|xyes)
10399   # Assume -lc should be added
10400   archive_cmds_need_lc=yes
10401
10402   if test "$enable_shared" = yes && test "$GCC" = yes; then
10403     case $archive_cmds in
10404     *'~'*)
10405       # FIXME: we may have to deal with multi-command sequences.
10406       ;;
10407     '$CC '*)
10408       # Test whether the compiler implicitly links with -lc since on some
10409       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10410       # to ld, don't add -lc before -lgcc.
10411       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10412 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10413 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   $RM conftest*
10417         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10418
10419         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10420   (eval $ac_compile) 2>&5
10421   ac_status=$?
10422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10423   test $ac_status = 0; } 2>conftest.err; then
10424           soname=conftest
10425           lib=conftest
10426           libobjs=conftest.$ac_objext
10427           deplibs=
10428           wl=$lt_prog_compiler_wl
10429           pic_flag=$lt_prog_compiler_pic
10430           compiler_flags=-v
10431           linker_flags=-v
10432           verstring=
10433           output_objdir=.
10434           libname=conftest
10435           lt_save_allow_undefined_flag=$allow_undefined_flag
10436           allow_undefined_flag=
10437           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10438   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10439   ac_status=$?
10440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10441   test $ac_status = 0; }
10442           then
10443             lt_cv_archive_cmds_need_lc=no
10444           else
10445             lt_cv_archive_cmds_need_lc=yes
10446           fi
10447           allow_undefined_flag=$lt_save_allow_undefined_flag
10448         else
10449           cat conftest.err 1>&5
10450         fi
10451         $RM conftest*
10452
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10455 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10456       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10457       ;;
10458     esac
10459   fi
10460   ;;
10461 esac
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10615 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10616
10617 if test "$GCC" = yes; then
10618   case $host_os in
10619     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10620     *) lt_awk_arg="/^libraries:/" ;;
10621   esac
10622   case $host_os in
10623     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10624     *) lt_sed_strip_eq="s,=/,/,g" ;;
10625   esac
10626   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10627   case $lt_search_path_spec in
10628   *\;*)
10629     # if the path contains ";" then we assume it to be the separator
10630     # otherwise default to the standard path separator (i.e. ":") - it is
10631     # assumed that no part of a normal pathname contains ";" but that should
10632     # okay in the real world where ";" in dirpaths is itself problematic.
10633     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10634     ;;
10635   *)
10636     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10637     ;;
10638   esac
10639   # Ok, now we have the path, separated by spaces, we can step through it
10640   # and add multilib dir if necessary.
10641   lt_tmp_lt_search_path_spec=
10642   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10643   for lt_sys_path in $lt_search_path_spec; do
10644     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10645       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10646     else
10647       test -d "$lt_sys_path" && \
10648         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10649     fi
10650   done
10651   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10652 BEGIN {RS=" "; FS="/|\n";} {
10653   lt_foo="";
10654   lt_count=0;
10655   for (lt_i = NF; lt_i > 0; lt_i--) {
10656     if ($lt_i != "" && $lt_i != ".") {
10657       if ($lt_i == "..") {
10658         lt_count++;
10659       } else {
10660         if (lt_count == 0) {
10661           lt_foo="/" $lt_i lt_foo;
10662         } else {
10663           lt_count--;
10664         }
10665       }
10666     }
10667   }
10668   if (lt_foo != "") { lt_freq[lt_foo]++; }
10669   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10670 }'`
10671   # AWK program above erroneously prepends '/' to C:/dos/paths
10672   # for these hosts.
10673   case $host_os in
10674     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10675       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10676   esac
10677   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10678 else
10679   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10680 fi
10681 library_names_spec=
10682 libname_spec='lib$name'
10683 soname_spec=
10684 shrext_cmds=".so"
10685 postinstall_cmds=
10686 postuninstall_cmds=
10687 finish_cmds=
10688 finish_eval=
10689 shlibpath_var=
10690 shlibpath_overrides_runpath=unknown
10691 version_type=none
10692 dynamic_linker="$host_os ld.so"
10693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10694 need_lib_prefix=unknown
10695 hardcode_into_libs=no
10696
10697 # when you set need_version to no, make sure it does not cause -set_version
10698 # flags to be left without arguments
10699 need_version=unknown
10700
10701 case $host_os in
10702 aix3*)
10703   version_type=linux # correct to gnu/linux during the next big refactor
10704   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10705   shlibpath_var=LIBPATH
10706
10707   # AIX 3 has no versioning support, so we append a major version to the name.
10708   soname_spec='${libname}${release}${shared_ext}$major'
10709   ;;
10710
10711 aix[4-9]*)
10712   version_type=linux # correct to gnu/linux during the next big refactor
10713   need_lib_prefix=no
10714   need_version=no
10715   hardcode_into_libs=yes
10716   if test "$host_cpu" = ia64; then
10717     # AIX 5 supports IA64
10718     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10719     shlibpath_var=LD_LIBRARY_PATH
10720   else
10721     # With GCC up to 2.95.x, collect2 would create an import file
10722     # for dependence libraries.  The import file would start with
10723     # the line `#! .'.  This would cause the generated library to
10724     # depend on `.', always an invalid library.  This was fixed in
10725     # development snapshots of GCC prior to 3.0.
10726     case $host_os in
10727       aix4 | aix4.[01] | aix4.[01].*)
10728       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10729            echo ' yes '
10730            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10731         :
10732       else
10733         can_build_shared=no
10734       fi
10735       ;;
10736     esac
10737     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10738     # soname into executable. Probably we can add versioning support to
10739     # collect2, so additional links can be useful in future.
10740     if test "$aix_use_runtimelinking" = yes; then
10741       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10742       # instead of lib<name>.a to let people know that these are not
10743       # typical AIX shared libraries.
10744       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745     else
10746       # We preserve .a as extension for shared libraries through AIX4.2
10747       # and later when we are not doing run time linking.
10748       library_names_spec='${libname}${release}.a $libname.a'
10749       soname_spec='${libname}${release}${shared_ext}$major'
10750     fi
10751     shlibpath_var=LIBPATH
10752   fi
10753   ;;
10754
10755 amigaos*)
10756   case $host_cpu in
10757   powerpc)
10758     # Since July 2007 AmigaOS4 officially supports .so libraries.
10759     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761     ;;
10762   m68k)
10763     library_names_spec='$libname.ixlibrary $libname.a'
10764     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10765     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10766     ;;
10767   esac
10768   ;;
10769
10770 beos*)
10771   library_names_spec='${libname}${shared_ext}'
10772   dynamic_linker="$host_os ld.so"
10773   shlibpath_var=LIBRARY_PATH
10774   ;;
10775
10776 bsdi[45]*)
10777   version_type=linux # correct to gnu/linux during the next big refactor
10778   need_version=no
10779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780   soname_spec='${libname}${release}${shared_ext}$major'
10781   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10782   shlibpath_var=LD_LIBRARY_PATH
10783   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10784   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10785   # the default ld.so.conf also contains /usr/contrib/lib and
10786   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10787   # libtool to hard-code these into programs
10788   ;;
10789
10790 cygwin* | mingw* | pw32* | cegcc*)
10791   version_type=windows
10792   shrext_cmds=".dll"
10793   need_version=no
10794   need_lib_prefix=no
10795
10796   case $GCC,$cc_basename in
10797   yes,*)
10798     # gcc
10799     library_names_spec='$libname.dll.a'
10800     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10801     postinstall_cmds='base_file=`basename \${file}`~
10802       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10803       dldir=$destdir/`dirname \$dlpath`~
10804       test -d \$dldir || mkdir -p \$dldir~
10805       $install_prog $dir/$dlname \$dldir/$dlname~
10806       chmod a+x \$dldir/$dlname~
10807       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10808         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10809       fi'
10810     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10811       dlpath=$dir/\$dldll~
10812        $RM \$dlpath'
10813     shlibpath_overrides_runpath=yes
10814
10815     case $host_os in
10816     cygwin*)
10817       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10818       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10819
10820       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10821       ;;
10822     mingw* | cegcc*)
10823       # MinGW DLLs use traditional 'lib' prefix
10824       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10825       ;;
10826     pw32*)
10827       # pw32 DLLs use 'pw' prefix rather than 'lib'
10828       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829       ;;
10830     esac
10831     dynamic_linker='Win32 ld.exe'
10832     ;;
10833
10834   *,cl*)
10835     # Native MSVC
10836     libname_spec='$name'
10837     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10838     library_names_spec='${libname}.dll.lib'
10839
10840     case $build_os in
10841     mingw*)
10842       sys_lib_search_path_spec=
10843       lt_save_ifs=$IFS
10844       IFS=';'
10845       for lt_path in $LIB
10846       do
10847         IFS=$lt_save_ifs
10848         # Let DOS variable expansion print the short 8.3 style file name.
10849         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10850         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10851       done
10852       IFS=$lt_save_ifs
10853       # Convert to MSYS style.
10854       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10855       ;;
10856     cygwin*)
10857       # Convert to unix form, then to dos form, then back to unix form
10858       # but this time dos style (no spaces!) so that the unix form looks
10859       # like /cygdrive/c/PROGRA~1:/cygdr...
10860       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10861       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10862       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10863       ;;
10864     *)
10865       sys_lib_search_path_spec="$LIB"
10866       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10867         # It is most probably a Windows format PATH.
10868         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10869       else
10870         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10871       fi
10872       # FIXME: find the short name or the path components, as spaces are
10873       # common. (e.g. "Program Files" -> "PROGRA~1")
10874       ;;
10875     esac
10876
10877     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10878     postinstall_cmds='base_file=`basename \${file}`~
10879       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10880       dldir=$destdir/`dirname \$dlpath`~
10881       test -d \$dldir || mkdir -p \$dldir~
10882       $install_prog $dir/$dlname \$dldir/$dlname'
10883     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10884       dlpath=$dir/\$dldll~
10885        $RM \$dlpath'
10886     shlibpath_overrides_runpath=yes
10887     dynamic_linker='Win32 link.exe'
10888     ;;
10889
10890   *)
10891     # Assume MSVC wrapper
10892     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10893     dynamic_linker='Win32 ld.exe'
10894     ;;
10895   esac
10896   # FIXME: first we should search . and the directory the executable is in
10897   shlibpath_var=PATH
10898   ;;
10899
10900 darwin* | rhapsody*)
10901   dynamic_linker="$host_os dyld"
10902   version_type=darwin
10903   need_lib_prefix=no
10904   need_version=no
10905   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10906   soname_spec='${libname}${release}${major}$shared_ext'
10907   shlibpath_overrides_runpath=yes
10908   shlibpath_var=DYLD_LIBRARY_PATH
10909   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10910
10911   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10912   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10913   ;;
10914
10915 dgux*)
10916   version_type=linux # correct to gnu/linux during the next big refactor
10917   need_lib_prefix=no
10918   need_version=no
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   shlibpath_var=LD_LIBRARY_PATH
10922   ;;
10923
10924 freebsd* | dragonfly*)
10925   # DragonFly does not have aout.  When/if they implement a new
10926   # versioning mechanism, adjust this.
10927   if test -x /usr/bin/objformat; then
10928     objformat=`/usr/bin/objformat`
10929   else
10930     case $host_os in
10931     freebsd[23].*) objformat=aout ;;
10932     *) objformat=elf ;;
10933     esac
10934   fi
10935   version_type=freebsd-$objformat
10936   case $version_type in
10937     freebsd-elf*)
10938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10939       need_version=no
10940       need_lib_prefix=no
10941       ;;
10942     freebsd-*)
10943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10944       need_version=yes
10945       ;;
10946   esac
10947   shlibpath_var=LD_LIBRARY_PATH
10948   case $host_os in
10949   freebsd2.*)
10950     shlibpath_overrides_runpath=yes
10951     ;;
10952   freebsd3.[01]* | freebsdelf3.[01]*)
10953     shlibpath_overrides_runpath=yes
10954     hardcode_into_libs=yes
10955     ;;
10956   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10957   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10958     shlibpath_overrides_runpath=no
10959     hardcode_into_libs=yes
10960     ;;
10961   *) # from 4.6 on, and DragonFly
10962     shlibpath_overrides_runpath=yes
10963     hardcode_into_libs=yes
10964     ;;
10965   esac
10966   ;;
10967
10968 gnu*)
10969   version_type=linux # correct to gnu/linux during the next big refactor
10970   need_lib_prefix=no
10971   need_version=no
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10973   soname_spec='${libname}${release}${shared_ext}$major'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   shlibpath_overrides_runpath=no
10976   hardcode_into_libs=yes
10977   ;;
10978
10979 haiku*)
10980   version_type=linux # correct to gnu/linux during the next big refactor
10981   need_lib_prefix=no
10982   need_version=no
10983   dynamic_linker="$host_os runtime_loader"
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   shlibpath_var=LIBRARY_PATH
10987   shlibpath_overrides_runpath=yes
10988   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10989   hardcode_into_libs=yes
10990   ;;
10991
10992 hpux9* | hpux10* | hpux11*)
10993   # Give a soname corresponding to the major version so that dld.sl refuses to
10994   # link against other versions.
10995   version_type=sunos
10996   need_lib_prefix=no
10997   need_version=no
10998   case $host_cpu in
10999   ia64*)
11000     shrext_cmds='.so'
11001     hardcode_into_libs=yes
11002     dynamic_linker="$host_os dld.so"
11003     shlibpath_var=LD_LIBRARY_PATH
11004     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006     soname_spec='${libname}${release}${shared_ext}$major'
11007     if test "X$HPUX_IA64_MODE" = X32; then
11008       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11009     else
11010       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11011     fi
11012     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013     ;;
11014   hppa*64*)
11015     shrext_cmds='.sl'
11016     hardcode_into_libs=yes
11017     dynamic_linker="$host_os dld.sl"
11018     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021     soname_spec='${libname}${release}${shared_ext}$major'
11022     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11024     ;;
11025   *)
11026     shrext_cmds='.sl'
11027     dynamic_linker="$host_os dld.sl"
11028     shlibpath_var=SHLIB_PATH
11029     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031     soname_spec='${libname}${release}${shared_ext}$major'
11032     ;;
11033   esac
11034   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11035   postinstall_cmds='chmod 555 $lib'
11036   # or fails outright, so override atomically:
11037   install_override_mode=555
11038   ;;
11039
11040 interix[3-9]*)
11041   version_type=linux # correct to gnu/linux during the next big refactor
11042   need_lib_prefix=no
11043   need_version=no
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11047   shlibpath_var=LD_LIBRARY_PATH
11048   shlibpath_overrides_runpath=no
11049   hardcode_into_libs=yes
11050   ;;
11051
11052 irix5* | irix6* | nonstopux*)
11053   case $host_os in
11054     nonstopux*) version_type=nonstopux ;;
11055     *)
11056         if test "$lt_cv_prog_gnu_ld" = yes; then
11057                 version_type=linux # correct to gnu/linux during the next big refactor
11058         else
11059                 version_type=irix
11060         fi ;;
11061   esac
11062   need_lib_prefix=no
11063   need_version=no
11064   soname_spec='${libname}${release}${shared_ext}$major'
11065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11066   case $host_os in
11067   irix5* | nonstopux*)
11068     libsuff= shlibsuff=
11069     ;;
11070   *)
11071     case $LD in # libtool.m4 will add one of these switches to LD
11072     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11073       libsuff= shlibsuff= libmagic=32-bit;;
11074     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11075       libsuff=32 shlibsuff=N32 libmagic=N32;;
11076     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11077       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11078     *) libsuff= shlibsuff= libmagic=never-match;;
11079     esac
11080     ;;
11081   esac
11082   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11083   shlibpath_overrides_runpath=no
11084   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11085   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11086   hardcode_into_libs=yes
11087   ;;
11088
11089 # No shared lib support for Linux oldld, aout, or coff.
11090 linux*oldld* | linux*aout* | linux*coff*)
11091   dynamic_linker=no
11092   ;;
11093
11094 # This must be glibc/ELF.
11095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11096   version_type=linux # correct to gnu/linux during the next big refactor
11097   need_lib_prefix=no
11098   need_version=no
11099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100   soname_spec='${libname}${release}${shared_ext}$major'
11101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=no
11104
11105   # Some binutils ld are patched to set DT_RUNPATH
11106   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   lt_cv_shlibpath_overrides_runpath=no
11110     save_LDFLAGS=$LDFLAGS
11111     save_libdir=$libdir
11112     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11113          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h.  */
11116
11117 int
11118 main ()
11119 {
11120
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11127   lt_cv_shlibpath_overrides_runpath=yes
11128 fi
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext \
11131     conftest$ac_exeext conftest.$ac_ext
11132     LDFLAGS=$save_LDFLAGS
11133     libdir=$save_libdir
11134
11135 fi
11136
11137   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11138
11139   # This implies no fast_install, which is unacceptable.
11140   # Some rework will be needed to allow for fast_install
11141   # before this can be enabled.
11142   hardcode_into_libs=yes
11143
11144   # Add ABI-specific directories to the system library path.
11145   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11146
11147   # Append ld.so.conf contents to the search path
11148   if test -f /etc/ld.so.conf; then
11149     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' ' '`
11150     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11151
11152   fi
11153
11154   # We used to test for /lib/ld.so.1 and disable shared libraries on
11155   # powerpc, because MkLinux only supported shared libraries with the
11156   # GNU dynamic linker.  Since this was broken with cross compilers,
11157   # most powerpc-linux boxes support dynamic linking these days and
11158   # people can always --disable-shared, the test was removed, and we
11159   # assume the GNU/Linux dynamic linker is in use.
11160   dynamic_linker='GNU/Linux ld.so'
11161   ;;
11162
11163 netbsd*)
11164   version_type=sunos
11165   need_lib_prefix=no
11166   need_version=no
11167   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11169     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170     dynamic_linker='NetBSD (a.out) ld.so'
11171   else
11172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11173     soname_spec='${libname}${release}${shared_ext}$major'
11174     dynamic_linker='NetBSD ld.elf_so'
11175   fi
11176   shlibpath_var=LD_LIBRARY_PATH
11177   shlibpath_overrides_runpath=yes
11178   hardcode_into_libs=yes
11179   ;;
11180
11181 newsos6)
11182   version_type=linux # correct to gnu/linux during the next big refactor
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   shlibpath_overrides_runpath=yes
11186   ;;
11187
11188 *nto* | *qnx*)
11189   version_type=qnx
11190   need_lib_prefix=no
11191   need_version=no
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193   soname_spec='${libname}${release}${shared_ext}$major'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   shlibpath_overrides_runpath=no
11196   hardcode_into_libs=yes
11197   dynamic_linker='ldqnx.so'
11198   ;;
11199
11200 openbsd*)
11201   version_type=sunos
11202   sys_lib_dlsearch_path_spec="/usr/lib"
11203   need_lib_prefix=no
11204   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11205   case $host_os in
11206     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11207     *)                          need_version=no  ;;
11208   esac
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213     case $host_os in
11214       openbsd2.[89] | openbsd2.[89].*)
11215         shlibpath_overrides_runpath=no
11216         ;;
11217       *)
11218         shlibpath_overrides_runpath=yes
11219         ;;
11220       esac
11221   else
11222     shlibpath_overrides_runpath=yes
11223   fi
11224   ;;
11225
11226 os2*)
11227   libname_spec='$name'
11228   shrext_cmds=".dll"
11229   need_lib_prefix=no
11230   library_names_spec='$libname${shared_ext} $libname.a'
11231   dynamic_linker='OS/2 ld.exe'
11232   shlibpath_var=LIBPATH
11233   ;;
11234
11235 osf3* | osf4* | osf5*)
11236   version_type=osf
11237   need_lib_prefix=no
11238   need_version=no
11239   soname_spec='${libname}${release}${shared_ext}$major'
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241   shlibpath_var=LD_LIBRARY_PATH
11242   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11243   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11244   ;;
11245
11246 rdos*)
11247   dynamic_linker=no
11248   ;;
11249
11250 solaris*)
11251   version_type=linux # correct to gnu/linux during the next big refactor
11252   need_lib_prefix=no
11253   need_version=no
11254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255   soname_spec='${libname}${release}${shared_ext}$major'
11256   shlibpath_var=LD_LIBRARY_PATH
11257   shlibpath_overrides_runpath=yes
11258   hardcode_into_libs=yes
11259   # ldd complains unless libraries are executable
11260   postinstall_cmds='chmod +x $lib'
11261   ;;
11262
11263 sunos4*)
11264   version_type=sunos
11265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11266   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   shlibpath_overrides_runpath=yes
11269   if test "$with_gnu_ld" = yes; then
11270     need_lib_prefix=no
11271   fi
11272   need_version=yes
11273   ;;
11274
11275 sysv4 | sysv4.3*)
11276   version_type=linux # correct to gnu/linux during the next big refactor
11277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278   soname_spec='${libname}${release}${shared_ext}$major'
11279   shlibpath_var=LD_LIBRARY_PATH
11280   case $host_vendor in
11281     sni)
11282       shlibpath_overrides_runpath=no
11283       need_lib_prefix=no
11284       runpath_var=LD_RUN_PATH
11285       ;;
11286     siemens)
11287       need_lib_prefix=no
11288       ;;
11289     motorola)
11290       need_lib_prefix=no
11291       need_version=no
11292       shlibpath_overrides_runpath=no
11293       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11294       ;;
11295   esac
11296   ;;
11297
11298 sysv4*MP*)
11299   if test -d /usr/nec ;then
11300     version_type=linux # correct to gnu/linux during the next big refactor
11301     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11302     soname_spec='$libname${shared_ext}.$major'
11303     shlibpath_var=LD_LIBRARY_PATH
11304   fi
11305   ;;
11306
11307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11308   version_type=freebsd-elf
11309   need_lib_prefix=no
11310   need_version=no
11311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11312   soname_spec='${libname}${release}${shared_ext}$major'
11313   shlibpath_var=LD_LIBRARY_PATH
11314   shlibpath_overrides_runpath=yes
11315   hardcode_into_libs=yes
11316   if test "$with_gnu_ld" = yes; then
11317     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11318   else
11319     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11320     case $host_os in
11321       sco3.2v5*)
11322         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11323         ;;
11324     esac
11325   fi
11326   sys_lib_dlsearch_path_spec='/usr/lib'
11327   ;;
11328
11329 tpf*)
11330   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11331   version_type=linux # correct to gnu/linux during the next big refactor
11332   need_lib_prefix=no
11333   need_version=no
11334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335   shlibpath_var=LD_LIBRARY_PATH
11336   shlibpath_overrides_runpath=no
11337   hardcode_into_libs=yes
11338   ;;
11339
11340 uts4*)
11341   version_type=linux # correct to gnu/linux during the next big refactor
11342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343   soname_spec='${libname}${release}${shared_ext}$major'
11344   shlibpath_var=LD_LIBRARY_PATH
11345   ;;
11346
11347 *)
11348   dynamic_linker=no
11349   ;;
11350 esac
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11352 $as_echo "$dynamic_linker" >&6; }
11353 test "$dynamic_linker" = no && can_build_shared=no
11354
11355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11356 if test "$GCC" = yes; then
11357   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11358 fi
11359
11360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11361   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11362 fi
11363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11364   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11365 fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11459 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11460 hardcode_action=
11461 if test -n "$hardcode_libdir_flag_spec" ||
11462    test -n "$runpath_var" ||
11463    test "X$hardcode_automatic" = "Xyes" ; then
11464
11465   # We can hardcode non-existent directories.
11466   if test "$hardcode_direct" != no &&
11467      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11468      # have to relink, otherwise we might link with an installed library
11469      # when we should be linking with a yet-to-be-installed one
11470      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11471      test "$hardcode_minus_L" != no; then
11472     # Linking always hardcodes the temporary library directory.
11473     hardcode_action=relink
11474   else
11475     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11476     hardcode_action=immediate
11477   fi
11478 else
11479   # We cannot hardcode anything, or else we can only hardcode existing
11480   # directories.
11481   hardcode_action=unsupported
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11484 $as_echo "$hardcode_action" >&6; }
11485
11486 if test "$hardcode_action" = relink ||
11487    test "$inherit_rpath" = yes; then
11488   # Fast installation is not supported
11489   enable_fast_install=no
11490 elif test "$shlibpath_overrides_runpath" = yes ||
11491      test "$enable_shared" = no; then
11492   # Fast installation is not necessary
11493   enable_fast_install=needless
11494 fi
11495
11496
11497
11498
11499
11500
11501   if test "x$enable_dlopen" != xyes; then
11502   enable_dlopen=unknown
11503   enable_dlopen_self=unknown
11504   enable_dlopen_self_static=unknown
11505 else
11506   lt_cv_dlopen=no
11507   lt_cv_dlopen_libs=
11508
11509   case $host_os in
11510   beos*)
11511     lt_cv_dlopen="load_add_on"
11512     lt_cv_dlopen_libs=
11513     lt_cv_dlopen_self=yes
11514     ;;
11515
11516   mingw* | pw32* | cegcc*)
11517     lt_cv_dlopen="LoadLibrary"
11518     lt_cv_dlopen_libs=
11519     ;;
11520
11521   cygwin*)
11522     lt_cv_dlopen="dlopen"
11523     lt_cv_dlopen_libs=
11524     ;;
11525
11526   darwin*)
11527   # if libdl is installed we need to link against it
11528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11530 if ${ac_cv_lib_dl_dlopen+:} false; then :
11531   $as_echo_n "(cached) " >&6
11532 else
11533   ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-ldl  $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h.  */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539    Use char because int might match the return type of a GCC
11540    builtin and then its argument prototype would still apply.  */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char dlopen ();
11545 int
11546 main ()
11547 {
11548 return dlopen ();
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554   ac_cv_lib_dl_dlopen=yes
11555 else
11556   ac_cv_lib_dl_dlopen=no
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext \
11559     conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11564 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11565   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566 else
11567
11568     lt_cv_dlopen="dyld"
11569     lt_cv_dlopen_libs=
11570     lt_cv_dlopen_self=yes
11571
11572 fi
11573
11574     ;;
11575
11576   *)
11577     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11578 if test "x$ac_cv_func_shl_load" = xyes; then :
11579   lt_cv_dlopen="shl_load"
11580 else
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11582 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11583 if ${ac_cv_lib_dld_shl_load+:} false; then :
11584   $as_echo_n "(cached) " >&6
11585 else
11586   ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-ldld  $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h.  */
11590
11591 /* Override any GCC internal prototype to avoid an error.
11592    Use char because int might match the return type of a GCC
11593    builtin and then its argument prototype would still apply.  */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char shl_load ();
11598 int
11599 main ()
11600 {
11601 return shl_load ();
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607   ac_cv_lib_dld_shl_load=yes
11608 else
11609   ac_cv_lib_dld_shl_load=no
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext \
11612     conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11616 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11617 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11618   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11619 else
11620   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11621 if test "x$ac_cv_func_dlopen" = xyes; then :
11622   lt_cv_dlopen="dlopen"
11623 else
11624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11626 if ${ac_cv_lib_dl_dlopen+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldl  $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h.  */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635    Use char because int might match the return type of a GCC
11636    builtin and then its argument prototype would still apply.  */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11641 int
11642 main ()
11643 {
11644 return dlopen ();
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650   ac_cv_lib_dl_dlopen=yes
11651 else
11652   ac_cv_lib_dl_dlopen=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655     conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662 else
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11664 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11665 if ${ac_cv_lib_svld_dlopen+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   ac_check_lib_save_LIBS=$LIBS
11669 LIBS="-lsvld  $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h.  */
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char dlopen ();
11680 int
11681 main ()
11682 {
11683 return dlopen ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689   ac_cv_lib_svld_dlopen=yes
11690 else
11691   ac_cv_lib_svld_dlopen=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694     conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11698 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11699 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11701 else
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11703 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11704 if ${ac_cv_lib_dld_dld_link+:} false; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-ldld  $LIBS"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h.  */
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713    Use char because int might match the return type of a GCC
11714    builtin and then its argument prototype would still apply.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char dld_link ();
11719 int
11720 main ()
11721 {
11722 return dld_link ();
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"; then :
11728   ac_cv_lib_dld_dld_link=yes
11729 else
11730   ac_cv_lib_dld_dld_link=no
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext \
11733     conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_lib_save_LIBS
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11737 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11738 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11739   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11740 fi
11741
11742
11743 fi
11744
11745
11746 fi
11747
11748
11749 fi
11750
11751
11752 fi
11753
11754
11755 fi
11756
11757     ;;
11758   esac
11759
11760   if test "x$lt_cv_dlopen" != xno; then
11761     enable_dlopen=yes
11762   else
11763     enable_dlopen=no
11764   fi
11765
11766   case $lt_cv_dlopen in
11767   dlopen)
11768     save_CPPFLAGS="$CPPFLAGS"
11769     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11770
11771     save_LDFLAGS="$LDFLAGS"
11772     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11773
11774     save_LIBS="$LIBS"
11775     LIBS="$lt_cv_dlopen_libs $LIBS"
11776
11777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11778 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11779 if ${lt_cv_dlopen_self+:} false; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782           if test "$cross_compiling" = yes; then :
11783   lt_cv_dlopen_self=cross
11784 else
11785   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11786   lt_status=$lt_dlunknown
11787   cat > conftest.$ac_ext <<_LT_EOF
11788 #line $LINENO "configure"
11789 #include "confdefs.h"
11790
11791 #if HAVE_DLFCN_H
11792 #include <dlfcn.h>
11793 #endif
11794
11795 #include <stdio.h>
11796
11797 #ifdef RTLD_GLOBAL
11798 #  define LT_DLGLOBAL           RTLD_GLOBAL
11799 #else
11800 #  ifdef DL_GLOBAL
11801 #    define LT_DLGLOBAL         DL_GLOBAL
11802 #  else
11803 #    define LT_DLGLOBAL         0
11804 #  endif
11805 #endif
11806
11807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11808    find out it does not work in some platform. */
11809 #ifndef LT_DLLAZY_OR_NOW
11810 #  ifdef RTLD_LAZY
11811 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11812 #  else
11813 #    ifdef DL_LAZY
11814 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11815 #    else
11816 #      ifdef RTLD_NOW
11817 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11818 #      else
11819 #        ifdef DL_NOW
11820 #          define LT_DLLAZY_OR_NOW      DL_NOW
11821 #        else
11822 #          define LT_DLLAZY_OR_NOW      0
11823 #        endif
11824 #      endif
11825 #    endif
11826 #  endif
11827 #endif
11828
11829 /* When -fvisbility=hidden is used, assume the code has been annotated
11830    correspondingly for the symbols needed.  */
11831 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11832 int fnord () __attribute__((visibility("default")));
11833 #endif
11834
11835 int fnord () { return 42; }
11836 int main ()
11837 {
11838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11839   int status = $lt_dlunknown;
11840
11841   if (self)
11842     {
11843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11844       else
11845         {
11846           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11847           else puts (dlerror ());
11848         }
11849       /* dlclose (self); */
11850     }
11851   else
11852     puts (dlerror ());
11853
11854   return status;
11855 }
11856 _LT_EOF
11857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11858   (eval $ac_link) 2>&5
11859   ac_status=$?
11860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11862     (./conftest; exit; ) >&5 2>/dev/null
11863     lt_status=$?
11864     case x$lt_status in
11865       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11866       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11867       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11868     esac
11869   else :
11870     # compilation failed
11871     lt_cv_dlopen_self=no
11872   fi
11873 fi
11874 rm -fr conftest*
11875
11876
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11879 $as_echo "$lt_cv_dlopen_self" >&6; }
11880
11881     if test "x$lt_cv_dlopen_self" = xyes; then
11882       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11883       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11884 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11885 if ${lt_cv_dlopen_self_static+:} false; then :
11886   $as_echo_n "(cached) " >&6
11887 else
11888           if test "$cross_compiling" = yes; then :
11889   lt_cv_dlopen_self_static=cross
11890 else
11891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11892   lt_status=$lt_dlunknown
11893   cat > conftest.$ac_ext <<_LT_EOF
11894 #line $LINENO "configure"
11895 #include "confdefs.h"
11896
11897 #if HAVE_DLFCN_H
11898 #include <dlfcn.h>
11899 #endif
11900
11901 #include <stdio.h>
11902
11903 #ifdef RTLD_GLOBAL
11904 #  define LT_DLGLOBAL           RTLD_GLOBAL
11905 #else
11906 #  ifdef DL_GLOBAL
11907 #    define LT_DLGLOBAL         DL_GLOBAL
11908 #  else
11909 #    define LT_DLGLOBAL         0
11910 #  endif
11911 #endif
11912
11913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11914    find out it does not work in some platform. */
11915 #ifndef LT_DLLAZY_OR_NOW
11916 #  ifdef RTLD_LAZY
11917 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11918 #  else
11919 #    ifdef DL_LAZY
11920 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11921 #    else
11922 #      ifdef RTLD_NOW
11923 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11924 #      else
11925 #        ifdef DL_NOW
11926 #          define LT_DLLAZY_OR_NOW      DL_NOW
11927 #        else
11928 #          define LT_DLLAZY_OR_NOW      0
11929 #        endif
11930 #      endif
11931 #    endif
11932 #  endif
11933 #endif
11934
11935 /* When -fvisbility=hidden is used, assume the code has been annotated
11936    correspondingly for the symbols needed.  */
11937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11938 int fnord () __attribute__((visibility("default")));
11939 #endif
11940
11941 int fnord () { return 42; }
11942 int main ()
11943 {
11944   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945   int status = $lt_dlunknown;
11946
11947   if (self)
11948     {
11949       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11950       else
11951         {
11952           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11953           else puts (dlerror ());
11954         }
11955       /* dlclose (self); */
11956     }
11957   else
11958     puts (dlerror ());
11959
11960   return status;
11961 }
11962 _LT_EOF
11963   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11964   (eval $ac_link) 2>&5
11965   ac_status=$?
11966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11967   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11968     (./conftest; exit; ) >&5 2>/dev/null
11969     lt_status=$?
11970     case x$lt_status in
11971       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11972       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11973       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11974     esac
11975   else :
11976     # compilation failed
11977     lt_cv_dlopen_self_static=no
11978   fi
11979 fi
11980 rm -fr conftest*
11981
11982
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11985 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11986     fi
11987
11988     CPPFLAGS="$save_CPPFLAGS"
11989     LDFLAGS="$save_LDFLAGS"
11990     LIBS="$save_LIBS"
11991     ;;
11992   esac
11993
11994   case $lt_cv_dlopen_self in
11995   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11996   *) enable_dlopen_self=unknown ;;
11997   esac
11998
11999   case $lt_cv_dlopen_self_static in
12000   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12001   *) enable_dlopen_self_static=unknown ;;
12002   esac
12003 fi
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021 striplib=
12022 old_striplib=
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12024 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12025 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12026   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12027   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029 $as_echo "yes" >&6; }
12030 else
12031 # FIXME - insert some real tests, host_os isn't really good enough
12032   case $host_os in
12033   darwin*)
12034     if test -n "$STRIP" ; then
12035       striplib="$STRIP -x"
12036       old_striplib="$STRIP -S"
12037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038 $as_echo "yes" >&6; }
12039     else
12040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042     fi
12043     ;;
12044   *)
12045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047     ;;
12048   esac
12049 fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062   # Report which library types will actually be built
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12064 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12066 $as_echo "$can_build_shared" >&6; }
12067
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12069 $as_echo_n "checking whether to build shared libraries... " >&6; }
12070   test "$can_build_shared" = "no" && enable_shared=no
12071
12072   # On AIX, shared libraries and static libraries use the same namespace, and
12073   # are all built from PIC.
12074   case $host_os in
12075   aix3*)
12076     test "$enable_shared" = yes && enable_static=no
12077     if test -n "$RANLIB"; then
12078       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12079       postinstall_cmds='$RANLIB $lib'
12080     fi
12081     ;;
12082
12083   aix[4-9]*)
12084     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12085       test "$enable_shared" = yes && enable_static=no
12086     fi
12087     ;;
12088   esac
12089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12090 $as_echo "$enable_shared" >&6; }
12091
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12093 $as_echo_n "checking whether to build static libraries... " >&6; }
12094   # Make sure either enable_shared or enable_static is yes.
12095   test "$enable_shared" = yes || enable_static=yes
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12097 $as_echo "$enable_static" >&6; }
12098
12099
12100
12101
12102 fi
12103 ac_ext=c
12104 ac_cpp='$CPP $CPPFLAGS'
12105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12108
12109 CC="$lt_save_CC"
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125         ac_config_commands="$ac_config_commands libtool"
12126
12127
12128
12129
12130 # Only expand once:
12131
12132
12133
12134
12135 # Test for 64-bit build.
12136 # The cast to long int works around a bug in the HP C Compiler
12137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12139 # This bug is HP SR number 8606223364.
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12141 $as_echo_n "checking size of size_t... " >&6; }
12142 if ${ac_cv_sizeof_size_t+:} false; then :
12143   $as_echo_n "(cached) " >&6
12144 else
12145   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12146
12147 else
12148   if test "$ac_cv_type_size_t" = yes; then
12149      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12151 as_fn_error 77 "cannot compute sizeof (size_t)
12152 See \`config.log' for more details" "$LINENO" 5; }
12153    else
12154      ac_cv_sizeof_size_t=0
12155    fi
12156 fi
12157
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12160 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12161
12162
12163
12164 cat >>confdefs.h <<_ACEOF
12165 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12166 _ACEOF
12167
12168
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12171 $as_echo_n "checking for C compiler vendor... " >&6; }
12172 if ${ax_cv_c_compiler_vendor+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   # note: don't check for gcc first since some other compilers define __GNUC__
12176   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12177            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12178            pathscale: __PATHCC__,__PATHSCALE__
12179            clang:     __clang__
12180            gnu:       __GNUC__
12181            sun:       __SUNPRO_C,__SUNPRO_CC
12182            hp:        __HP_cc,__HP_aCC
12183            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12184            borland:   __BORLANDC__,__TURBOC__
12185            comeau:    __COMO__
12186            cray:      _CRAYC
12187            kai:       __KCC
12188            lcc:       __LCC__
12189            sgi:       __sgi,sgi
12190            microsoft: _MSC_VER
12191            metrowerks: __MWERKS__
12192            watcom:    __WATCOMC__
12193            portland:  __PGI
12194            unknown:   UNKNOWN"
12195   for ventest in $vendors; do
12196     case $ventest in
12197       *:) vendor=$ventest; continue ;;
12198       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12199     esac
12200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h.  */
12202
12203 int
12204 main ()
12205 {
12206
12207       #if !($vencpp)
12208         thisisanerror;
12209       #endif
12210
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 if ac_fn_c_try_compile "$LINENO"; then :
12216   break
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219   done
12220   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12221
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12224 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12225
12226
12227
12228
12229
12230
12231 # Check whether --enable-portable-binary was given.
12232 if test "${enable_portable_binary+set}" = set; then :
12233   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12234 else
12235   acx_maxopt_portable=no
12236 fi
12237
12238
12239 # Try to determine "good" native compiler flags if none specified via CFLAGS
12240 if test "$ac_test_CFLAGS" != "set"; then
12241   CFLAGS=""
12242   case $ax_cv_c_compiler_vendor in
12243     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12244          if test "x$acx_maxopt_portable" = xno; then
12245            CFLAGS="$CFLAGS -arch host"
12246          fi;;
12247
12248     sun) CFLAGS="-native -fast -xO5 -dalign"
12249          if test "x$acx_maxopt_portable" = xyes; then
12250            CFLAGS="$CFLAGS -xarch=generic"
12251          fi;;
12252
12253     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12254          if test "x$acx_maxopt_portable" = xyes; then
12255            CFLAGS="$CFLAGS +DAportable"
12256          fi;;
12257
12258     ibm) if test "x$acx_maxopt_portable" = xno; then
12259            xlc_opt="-qarch=auto -qtune=auto"
12260          else
12261            xlc_opt="-qtune=auto"
12262          fi
12263          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12265 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12266 if eval \${$as_CACHEVAR+:} false; then :
12267   $as_echo_n "(cached) " >&6
12268 else
12269
12270   ax_check_save_flags=$CFLAGS
12271   CFLAGS="$CFLAGS  $xlc_opt"
12272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h.  */
12274
12275 int
12276 main ()
12277 {
12278
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"; then :
12284   eval "$as_CACHEVAR=yes"
12285 else
12286   eval "$as_CACHEVAR=no"
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289   CFLAGS=$ax_check_save_flags
12290 fi
12291 eval ac_res=\$$as_CACHEVAR
12292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12293 $as_echo "$ac_res" >&6; }
12294 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12295   CFLAGS="-O3 -qansialias -w $xlc_opt"
12296 else
12297   CFLAGS="-O3 -qansialias -w"
12298                 echo "******************************************************"
12299                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12300                 echo "*  recommended for best performance that you use:    *"
12301                 echo "*                                                    *"
12302                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12303                 echo "*                      ^^^        ^^^                *"
12304                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12305                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12306                 echo "*  and re-run configure.)  For more info, man cc.    *"
12307                 echo "******************************************************"
12308 fi
12309
12310          ;;
12311
12312     intel) CFLAGS="-O3 -ansi_alias"
12313         if test "x$acx_maxopt_portable" = xno; then
12314           icc_archflag=unknown
12315           icc_flags=""
12316           case $host_cpu in
12317             i686*|x86_64*)
12318               # icc accepts gcc assembly syntax, so these should work:
12319
12320 ac_ext=c
12321 ac_cpp='$CPP $CPPFLAGS'
12322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12327 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12328 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   if test "$cross_compiling" = yes; then :
12332   ax_cv_gcc_x86_cpuid_0=unknown
12333 else
12334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h.  */
12336 #include <stdio.h>
12337 int
12338 main ()
12339 {
12340
12341      int op = 0, eax, ebx, ecx, edx;
12342      FILE *f;
12343       __asm__("cpuid"
12344         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12345         : "a" (op));
12346      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12347      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12348      fclose(f);
12349      return 0;
12350
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_run "$LINENO"; then :
12356   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12357 else
12358   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12359 fi
12360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12361   conftest.$ac_objext conftest.beam conftest.$ac_ext
12362 fi
12363
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12366 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12367 ac_ext=c
12368 ac_cpp='$CPP $CPPFLAGS'
12369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
12373
12374
12375 ac_ext=c
12376 ac_cpp='$CPP $CPPFLAGS'
12377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12382 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12383 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   if test "$cross_compiling" = yes; then :
12387   ax_cv_gcc_x86_cpuid_1=unknown
12388 else
12389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391 #include <stdio.h>
12392 int
12393 main ()
12394 {
12395
12396      int op = 1, eax, ebx, ecx, edx;
12397      FILE *f;
12398       __asm__("cpuid"
12399         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12400         : "a" (op));
12401      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12402      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12403      fclose(f);
12404      return 0;
12405
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 if ac_fn_c_try_run "$LINENO"; then :
12411   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12412 else
12413   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12414 fi
12415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12416   conftest.$ac_objext conftest.beam conftest.$ac_ext
12417 fi
12418
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12421 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12422 ac_ext=c
12423 ac_cpp='$CPP $CPPFLAGS'
12424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12427
12428
12429               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12430                 *:756e6547:*:*) # Intel
12431                   case $ax_cv_gcc_x86_cpuid_1 in
12432                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12433                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12434                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12435                   esac ;;
12436               esac ;;
12437           esac
12438           if test "x$icc_flags" != x; then
12439             for flag in $icc_flags; do
12440               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12442 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12443 if eval \${$as_CACHEVAR+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446
12447   ax_check_save_flags=$CFLAGS
12448   CFLAGS="$CFLAGS  $flag"
12449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h.  */
12451
12452 int
12453 main ()
12454 {
12455
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 if ac_fn_c_try_compile "$LINENO"; then :
12461   eval "$as_CACHEVAR=yes"
12462 else
12463   eval "$as_CACHEVAR=no"
12464 fi
12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466   CFLAGS=$ax_check_save_flags
12467 fi
12468 eval ac_res=\$$as_CACHEVAR
12469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12470 $as_echo "$ac_res" >&6; }
12471 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12472   icc_archflag=$flag; break
12473 else
12474   :
12475 fi
12476
12477             done
12478           fi
12479           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12480 $as_echo_n "checking for icc architecture flag... " >&6; }
12481           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12482 $as_echo "$icc_archflag" >&6; }
12483           if test "x$icc_archflag" != xunknown; then
12484             CFLAGS="$CFLAGS $icc_archflag"
12485           fi
12486         fi
12487         ;;
12488
12489     gnu)
12490      # default optimization flags for gcc on all systems
12491      CFLAGS="-O3 -fomit-frame-pointer"
12492
12493      # -malign-double for x86 systems
12494      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12495      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12496
12497      #  -fstrict-aliasing for gcc-2.95+
12498      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12499 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12500 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503
12504   ax_check_save_flags=$CFLAGS
12505   CFLAGS="$CFLAGS  -fstrict-aliasing"
12506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h.  */
12508
12509 int
12510 main ()
12511 {
12512
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_compile "$LINENO"; then :
12518   ax_cv_check_cflags___fstrict_aliasing=yes
12519 else
12520   ax_cv_check_cflags___fstrict_aliasing=no
12521 fi
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523   CFLAGS=$ax_check_save_flags
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12526 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12527 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12528   CFLAGS="$CFLAGS -fstrict-aliasing"
12529 else
12530   :
12531 fi
12532
12533
12534      # note that we enable "unsafe" fp optimization with other compilers, too
12535      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12536 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12537 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540
12541   ax_check_save_flags=$CFLAGS
12542   CFLAGS="$CFLAGS  -ffast-math"
12543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h.  */
12545
12546 int
12547 main ()
12548 {
12549
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 if ac_fn_c_try_compile "$LINENO"; then :
12555   ax_cv_check_cflags___ffast_math=yes
12556 else
12557   ax_cv_check_cflags___ffast_math=no
12558 fi
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560   CFLAGS=$ax_check_save_flags
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12563 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12564 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12565   CFLAGS="$CFLAGS -ffast-math"
12566 else
12567   :
12568 fi
12569
12570
12571
12572
12573
12574
12575 # Check whether --with-gcc-arch was given.
12576 if test "${with_gcc_arch+set}" = set; then :
12577   withval=$with_gcc_arch; ax_gcc_arch=$withval
12578 else
12579   ax_gcc_arch=yes
12580 fi
12581
12582
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12584 $as_echo_n "checking for gcc architecture flag... " >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12586 $as_echo "" >&6; }
12587 if ${ax_cv_gcc_archflag+:} false; then :
12588   $as_echo_n "(cached) " >&6
12589 else
12590
12591 ax_cv_gcc_archflag="unknown"
12592
12593 if test "$GCC" = yes; then
12594
12595 if test "x$ax_gcc_arch" = xyes; then
12596 ax_gcc_arch=""
12597 if test "$cross_compiling" = no; then
12598 case $host_cpu in
12599   i[3456]86*|x86_64*) # use cpuid codes
12600
12601 ac_ext=c
12602 ac_cpp='$CPP $CPPFLAGS'
12603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12606
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12608 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12609 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12610   $as_echo_n "(cached) " >&6
12611 else
12612   if test "$cross_compiling" = yes; then :
12613   ax_cv_gcc_x86_cpuid_0=unknown
12614 else
12615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h.  */
12617 #include <stdio.h>
12618 int
12619 main ()
12620 {
12621
12622      int op = 0, eax, ebx, ecx, edx;
12623      FILE *f;
12624       __asm__("cpuid"
12625         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12626         : "a" (op));
12627      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12628      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12629      fclose(f);
12630      return 0;
12631
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_c_try_run "$LINENO"; then :
12637   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12638 else
12639   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12640 fi
12641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12642   conftest.$ac_objext conftest.beam conftest.$ac_ext
12643 fi
12644
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12647 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12648 ac_ext=c
12649 ac_cpp='$CPP $CPPFLAGS'
12650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12653
12654
12655
12656 ac_ext=c
12657 ac_cpp='$CPP $CPPFLAGS'
12658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12661
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12663 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12664 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   if test "$cross_compiling" = yes; then :
12668   ax_cv_gcc_x86_cpuid_1=unknown
12669 else
12670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h.  */
12672 #include <stdio.h>
12673 int
12674 main ()
12675 {
12676
12677      int op = 1, eax, ebx, ecx, edx;
12678      FILE *f;
12679       __asm__("cpuid"
12680         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12681         : "a" (op));
12682      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12683      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12684      fclose(f);
12685      return 0;
12686
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_run "$LINENO"; then :
12692   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12693 else
12694   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12695 fi
12696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12697   conftest.$ac_objext conftest.beam conftest.$ac_ext
12698 fi
12699
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12702 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12703 ac_ext=c
12704 ac_cpp='$CPP $CPPFLAGS'
12705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12708
12709
12710      case $ax_cv_gcc_x86_cpuid_0 in
12711        *:756e6547:*:*) # Intel
12712           case $ax_cv_gcc_x86_cpuid_1 in
12713             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12714             *5??:*:*:*) ax_gcc_arch=pentium ;;
12715             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12716             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12717             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12718             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12719             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12720             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12721             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12722             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12723             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12724             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12725             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12726             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12727             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12728                 case $host_cpu in
12729                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12730                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12731                 esac ;;
12732             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12733           esac ;;
12734        *:68747541:*:*) # AMD
12735           case $ax_cv_gcc_x86_cpuid_1 in
12736             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12737             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12738             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12739             *60?:*:*:*) ax_gcc_arch=k7 ;;
12740             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12741             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12742             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12743             *6[68a]?:*:*:*)
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 0x80000006 output" >&5
12752 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12753 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   if test "$cross_compiling" = yes; then :
12757   ax_cv_gcc_x86_cpuid_0x80000006=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 = 0x80000006, 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_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12782 else
12783   ax_cv_gcc_x86_cpuid_0x80000006=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_0x80000006" >&5
12791 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&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  # L2 cache size
12799                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12800                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12801                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12802                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12803                esac ;;
12804             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12805             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12806             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12807             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12808             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12809             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12810             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12811           esac ;;
12812         *:746e6543:*:*) # IDT
12813            case $ax_cv_gcc_x86_cpuid_1 in
12814              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12815              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12816              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12817              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12818            esac ;;
12819      esac
12820      if test x"$ax_gcc_arch" = x; then # fallback
12821         case $host_cpu in
12822           i586*) ax_gcc_arch=pentium ;;
12823           i686*) ax_gcc_arch=pentiumpro ;;
12824         esac
12825      fi
12826      ;;
12827
12828   sparc*)
12829      # Extract the first word of "prtdiag", so it can be a program name with args.
12830 set dummy prtdiag; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if ${ac_cv_path_PRTDIAG+:} false; then :
12834   $as_echo_n "(cached) " >&6
12835 else
12836   case $PRTDIAG in
12837   [\\/]* | ?:[\\/]*)
12838   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12839   ;;
12840   *)
12841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12843 for as_dir in $as_dummy
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856
12857   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12858   ;;
12859 esac
12860 fi
12861 PRTDIAG=$ac_cv_path_PRTDIAG
12862 if test -n "$PRTDIAG"; then
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12864 $as_echo "$PRTDIAG" >&6; }
12865 else
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870
12871      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`
12872      cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' | tr $as_cr_LETTERS $as_cr_letters`
12873      case $cputype in
12874          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12875          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12876          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12877          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12878          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12879          *cypress*) ax_gcc_arch=cypress ;;
12880      esac ;;
12881
12882   alphaev5) ax_gcc_arch=ev5 ;;
12883   alphaev56) ax_gcc_arch=ev56 ;;
12884   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12885   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12886   alphaev6) ax_gcc_arch=ev6 ;;
12887   alphaev67) ax_gcc_arch=ev67 ;;
12888   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12889   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12890   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12891   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12892
12893   powerpc*)
12894      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`
12895      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12896      case $cputype in
12897        *750*) ax_gcc_arch="750 G3" ;;
12898        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12899        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12900        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12901        *970*) ax_gcc_arch="970 G5 power4";;
12902        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12903        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12904        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12905        *) ax_gcc_arch=$cputype ;;
12906      esac
12907      ax_gcc_arch="$ax_gcc_arch powerpc"
12908      ;;
12909 esac
12910 fi # not cross-compiling
12911 fi # guess arch
12912
12913 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12914 for arch in $ax_gcc_arch; do
12915   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12916     flags="-mtune=$arch"
12917     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12918     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12919     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12920   else
12921     flags="-march=$arch -mcpu=$arch -m$arch"
12922   fi
12923   for flag in $flags; do
12924     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12926 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12927 if eval \${$as_CACHEVAR+:} false; then :
12928   $as_echo_n "(cached) " >&6
12929 else
12930
12931   ax_check_save_flags=$CFLAGS
12932   CFLAGS="$CFLAGS  $flag"
12933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h.  */
12935
12936 int
12937 main ()
12938 {
12939
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 if ac_fn_c_try_compile "$LINENO"; then :
12945   eval "$as_CACHEVAR=yes"
12946 else
12947   eval "$as_CACHEVAR=no"
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950   CFLAGS=$ax_check_save_flags
12951 fi
12952 eval ac_res=\$$as_CACHEVAR
12953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12954 $as_echo "$ac_res" >&6; }
12955 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12956   ax_cv_gcc_archflag=$flag; break
12957 else
12958   :
12959 fi
12960
12961   done
12962   test "x$ax_cv_gcc_archflag" = xunknown || break
12963 done
12964 fi
12965
12966 fi # $GCC=yes
12967
12968 fi
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12971 $as_echo_n "checking for gcc architecture flag... " >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12973 $as_echo "$ax_cv_gcc_archflag" >&6; }
12974 if test "x$ax_cv_gcc_archflag" = xunknown; then
12975   :
12976 else
12977   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12978 fi
12979
12980      ;;
12981   esac
12982
12983   if test -z "$CFLAGS"; then
12984         echo ""
12985         echo "********************************************************"
12986         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12987         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12988         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12989         echo "********************************************************"
12990         echo ""
12991         CFLAGS="-O3"
12992   fi
12993
12994   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12996 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12997 if eval \${$as_CACHEVAR+:} false; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000
13001   ax_check_save_flags=$CFLAGS
13002   CFLAGS="$CFLAGS  $CFLAGS"
13003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h.  */
13005
13006 int
13007 main ()
13008 {
13009
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015   eval "$as_CACHEVAR=yes"
13016 else
13017   eval "$as_CACHEVAR=no"
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020   CFLAGS=$ax_check_save_flags
13021 fi
13022 eval ac_res=\$$as_CACHEVAR
13023                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13024 $as_echo "$ac_res" >&6; }
13025 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13026   :
13027 else
13028
13029         echo ""
13030         echo "********************************************************"
13031         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
13032         echo "* your compiler.                                       *"
13033         echo "* Use ./configure CFLAGS=... to specify your own flags *"
13034         echo "********************************************************"
13035         echo ""
13036         CFLAGS=""
13037
13038 fi
13039
13040
13041 fi
13042
13043 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
13044 # compiler.
13045 if test "$ax_cv_c_compiler_vendor" != "sun"; then
13046   if ${CFLAGS+:} false; then :
13047   case " $CFLAGS " in
13048     *"  "*)
13049       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13050   (: CFLAGS already contains ) 2>&5
13051   ac_status=$?
13052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13053   test $ac_status = 0; }
13054       ;;
13055     *)
13056       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13057   (: CFLAGS="$CFLAGS ") 2>&5
13058   ac_status=$?
13059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060   test $ac_status = 0; }
13061       CFLAGS="$CFLAGS "
13062       ;;
13063    esac
13064 else
13065   CFLAGS=""
13066 fi
13067
13068 ac_ext=c
13069 ac_cpp='$CPP $CPPFLAGS'
13070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13075 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13076 if ${ac_cv_cflags_warn_all+:} false; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079   ac_cv_cflags_warn_all="no, unknown"
13080 ac_save_CFLAGS="$CFLAGS"
13081 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"    #
13082 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h.  */
13085
13086 int
13087 main ()
13088 {
13089
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 if ac_fn_c_try_compile "$LINENO"; then :
13095   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 done
13099 CFLAGS="$ac_save_CFLAGS"
13100
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13103 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13104
13105 case ".$ac_cv_cflags_warn_all" in
13106      .ok|.ok,*)  ;;
13107    .|.no|.no,*)  ;;
13108    *) if ${CFLAGS+:} false; then :
13109   case " $CFLAGS " in
13110     *" $ac_cv_cflags_warn_all "*)
13111       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13112   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13113   ac_status=$?
13114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115   test $ac_status = 0; }
13116       ;;
13117     *)
13118       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13119   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13120   ac_status=$?
13121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13122   test $ac_status = 0; }
13123       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13124       ;;
13125    esac
13126 else
13127   CFLAGS="$ac_cv_cflags_warn_all"
13128 fi
13129  ;;
13130 esac
13131
13132 ac_ext=c
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13137
13138
13139 fi
13140
13141 if test "x$GCC" = "xyes"; then
13142   CFLAGS="$CFLAGS -fexceptions"
13143   touch local.exp
13144 else
13145   cat > local.exp <<EOF
13146 set CC_FOR_TARGET "$CC"
13147 EOF
13148 fi
13149
13150
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13152 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13153     # Check whether --enable-maintainer-mode was given.
13154 if test "${enable_maintainer_mode+set}" = set; then :
13155   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13156 else
13157   USE_MAINTAINER_MODE=no
13158 fi
13159
13160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13161 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13162    if test $USE_MAINTAINER_MODE = yes; then
13163   MAINTAINER_MODE_TRUE=
13164   MAINTAINER_MODE_FALSE='#'
13165 else
13166   MAINTAINER_MODE_TRUE='#'
13167   MAINTAINER_MODE_FALSE=
13168 fi
13169
13170   MAINT=$MAINTAINER_MODE_TRUE
13171
13172
13173
13174 for ac_header in sys/mman.h
13175 do :
13176   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13177 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13178   cat >>confdefs.h <<_ACEOF
13179 #define HAVE_SYS_MMAN_H 1
13180 _ACEOF
13181
13182 fi
13183
13184 done
13185
13186 for ac_func in mmap
13187 do :
13188   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13189 if test "x$ac_cv_func_mmap" = xyes; then :
13190   cat >>confdefs.h <<_ACEOF
13191 #define HAVE_MMAP 1
13192 _ACEOF
13193
13194 fi
13195 done
13196
13197
13198 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13199 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13200   libffi_header_sys_mman_h=yes
13201 else
13202   libffi_header_sys_mman_h=no
13203 fi
13204
13205
13206 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13207 if test "x$ac_cv_func_mmap" = xyes; then :
13208   libffi_func_mmap=yes
13209 else
13210   libffi_func_mmap=no
13211 fi
13212
13213 if test "$libffi_header_sys_mman_h" != yes \
13214  || test "$libffi_func_mmap" != yes; then
13215    ac_cv_func_mmap_file=no
13216    ac_cv_func_mmap_dev_zero=no
13217    ac_cv_func_mmap_anon=no
13218 else
13219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13220 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13221 if ${ac_cv_func_mmap_file+:} false; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224   # Add a system to this blacklist if
13225    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13226    # memory area containing the same data that you'd get if you applied
13227    # read() to the same fd.  The only system known to have a problem here
13228    # is VMS, where text files have record structure.
13229    case "$host_os" in
13230      vms* | ultrix*)
13231         ac_cv_func_mmap_file=no ;;
13232      *)
13233         ac_cv_func_mmap_file=yes;;
13234    esac
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13237 $as_echo "$ac_cv_func_mmap_file" >&6; }
13238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13239 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13240 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   # Add a system to this blacklist if it has mmap() but /dev/zero
13244    # does not exist, or if mmapping /dev/zero does not give anonymous
13245    # zeroed pages with both the following properties:
13246    # 1. If you map N consecutive pages in with one call, and then
13247    #    unmap any subset of those pages, the pages that were not
13248    #    explicitly unmapped remain accessible.
13249    # 2. If you map two adjacent blocks of memory and then unmap them
13250    #    both at once, they must both go away.
13251    # Systems known to be in this category are Windows (all variants),
13252    # VMS, and Darwin.
13253    case "$host_os" in
13254      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13255         ac_cv_func_mmap_dev_zero=no ;;
13256      *)
13257         ac_cv_func_mmap_dev_zero=yes;;
13258    esac
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13261 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13262
13263    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13265 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13266 if ${ac_cv_decl_map_anon+:} false; then :
13267   $as_echo_n "(cached) " >&6
13268 else
13269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h.  */
13271 #include <sys/types.h>
13272 #include <sys/mman.h>
13273 #include <unistd.h>
13274
13275 #ifndef MAP_ANONYMOUS
13276 #define MAP_ANONYMOUS MAP_ANON
13277 #endif
13278
13279 int
13280 main ()
13281 {
13282 int n = MAP_ANONYMOUS;
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288   ac_cv_decl_map_anon=yes
13289 else
13290   ac_cv_decl_map_anon=no
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13295 $as_echo "$ac_cv_decl_map_anon" >&6; }
13296
13297    if test $ac_cv_decl_map_anon = no; then
13298      ac_cv_func_mmap_anon=no
13299    else
13300      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13301 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13302 if ${ac_cv_func_mmap_anon+:} false; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13306    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13307    # doesn't give anonymous zeroed pages with the same properties listed
13308    # above for use of /dev/zero.
13309    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13310    case "$host_os" in
13311      vms* | cygwin* | pe | mingw* | sco* | udk* )
13312         ac_cv_func_mmap_anon=no ;;
13313      *)
13314         ac_cv_func_mmap_anon=yes;;
13315    esac
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13318 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13319    fi
13320 fi
13321
13322 if test $ac_cv_func_mmap_file = yes; then
13323
13324 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13325
13326 fi
13327 if test $ac_cv_func_mmap_dev_zero = yes; then
13328
13329 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13330
13331 fi
13332 if test $ac_cv_func_mmap_anon = yes; then
13333
13334 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13335
13336 fi
13337
13338
13339  if test -d $srcdir/testsuite; then
13340   TESTSUBDIR_TRUE=
13341   TESTSUBDIR_FALSE='#'
13342 else
13343   TESTSUBDIR_TRUE='#'
13344   TESTSUBDIR_FALSE=
13345 fi
13346
13347
13348 TARGETDIR="unknown"
13349 HAVE_LONG_DOUBLE_VARIANT=0
13350 case "$host" in
13351   aarch64*-*-*)
13352         TARGET=AARCH64; TARGETDIR=aarch64
13353         ;;
13354
13355   alpha*-*-*)
13356         TARGET=ALPHA; TARGETDIR=alpha;
13357         # Support 128-bit long double, changeable via command-line switch.
13358         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13359         ;;
13360
13361   arc*-*-*)
13362         TARGET=ARC; TARGETDIR=arc
13363         ;;
13364
13365   arm*-*-*)
13366         TARGET=ARM; TARGETDIR=arm
13367         ;;
13368
13369   amd64-*-freebsd* | amd64-*-openbsd*)
13370         TARGET=X86_64; TARGETDIR=x86
13371         ;;
13372
13373   amd64-*-freebsd*)
13374         TARGET=X86_64; TARGETDIR=x86
13375         ;;
13376
13377   amd64-*-freebsd*)
13378         TARGET=X86_64; TARGETDIR=x86
13379         ;;
13380
13381   avr32*-*-*)
13382         TARGET=AVR32; TARGETDIR=avr32
13383         ;;
13384
13385   bfin*)
13386         TARGET=BFIN; TARGETDIR=bfin
13387         ;;
13388
13389   cris-*-*)
13390         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13391         ;;
13392
13393   frv-*-*)
13394         TARGET=FRV; TARGETDIR=frv
13395         ;;
13396
13397   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13398         TARGET=PA_LINUX; TARGETDIR=pa
13399         ;;
13400   hppa*64-*-hpux*)
13401         TARGET=PA64_HPUX; TARGETDIR=pa
13402         ;;
13403   hppa*-*-hpux*)
13404         TARGET=PA_HPUX; TARGETDIR=pa
13405         ;;
13406
13407   i?86-*-freebsd* | i?86-*-openbsd*)
13408         TARGET=X86_FREEBSD; TARGETDIR=x86
13409         ;;
13410   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13411         TARGET=X86_WIN32; TARGETDIR=x86
13412         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13413         # We must also check with_cross_host to decide if this is a native
13414         # or cross-build and select where to install dlls appropriately.
13415         if test -n "$with_cross_host" &&
13416            test x"$with_cross_host" != x"no"; then
13417           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13418         else
13419           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13420         fi
13421         ;;
13422   i?86-*-darwin*)
13423         TARGET=X86_DARWIN; TARGETDIR=x86
13424         ;;
13425   i?86-*-solaris2.1[0-9]*)
13426         TARGETDIR=x86
13427         if test $ac_cv_sizeof_size_t = 4; then
13428           TARGET=X86;
13429         else
13430           TARGET=X86_64;
13431         fi
13432         ;;
13433
13434   x86_64-*-darwin*)
13435         TARGET=X86_DARWIN; TARGETDIR=x86
13436         ;;
13437
13438   x86_64-*-cygwin* | x86_64-*-mingw*)
13439         TARGET=X86_WIN64; TARGETDIR=x86
13440         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13441         # We must also check with_cross_host to decide if this is a native
13442         # or cross-build and select where to install dlls appropriately.
13443         if test -n "$with_cross_host" &&
13444            test x"$with_cross_host" != x"no"; then
13445           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13446         else
13447           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13448         fi
13449         ;;
13450
13451   i?86-*-* | x86_64-*-*)
13452         TARGETDIR=x86
13453         if test $ac_cv_sizeof_size_t = 4; then
13454           case "$host" in
13455             *-gnux32)
13456               TARGET=X86_64
13457               ;;
13458             *)
13459               TARGET=X86
13460               ;;
13461           esac
13462         else
13463           TARGET=X86_64;
13464         fi
13465         ;;
13466
13467   ia64*-*-*)
13468         TARGET=IA64; TARGETDIR=ia64
13469         ;;
13470
13471   m32r*-*-*)
13472         TARGET=M32R; TARGETDIR=m32r
13473         ;;
13474
13475   m68k-*-*)
13476         TARGET=M68K; TARGETDIR=m68k
13477         ;;
13478
13479   m88k-*-*)
13480         TARGET=M88K; TARGETDIR=m88k
13481         ;;
13482
13483   microblaze*-*-*)
13484         TARGET=MICROBLAZE; TARGETDIR=microblaze
13485         ;;
13486
13487   moxie-*-*)
13488         TARGET=MOXIE; TARGETDIR=moxie
13489         ;;
13490
13491   metag-*-*)
13492         TARGET=METAG; TARGETDIR=metag
13493         ;;
13494
13495   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13496         TARGET=MIPS; TARGETDIR=mips
13497         ;;
13498   mips*-*-linux* | mips*-*-openbsd*)
13499         # Support 128-bit long double for NewABI.
13500         HAVE_LONG_DOUBLE='defined(__mips64)'
13501         TARGET=MIPS; TARGETDIR=mips
13502         ;;
13503
13504   nios2*-linux*)
13505         TARGET=NIOS2; TARGETDIR=nios2
13506         ;;
13507
13508   powerpc*-*-linux* | powerpc-*-sysv*)
13509         TARGET=POWERPC; TARGETDIR=powerpc
13510         HAVE_LONG_DOUBLE_VARIANT=1
13511         ;;
13512   powerpc-*-amigaos*)
13513         TARGET=POWERPC; TARGETDIR=powerpc
13514         ;;
13515   powerpc-*-beos*)
13516         TARGET=POWERPC; TARGETDIR=powerpc
13517         ;;
13518   powerpc-*-darwin* | powerpc64-*-darwin*)
13519         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13520         ;;
13521   powerpc-*-aix* | rs6000-*-aix*)
13522         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13523         ;;
13524   powerpc-*-freebsd* | powerpc-*-openbsd*)
13525         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13526         HAVE_LONG_DOUBLE_VARIANT=1
13527         ;;
13528   powerpc64-*-freebsd*)
13529         TARGET=POWERPC; TARGETDIR=powerpc
13530         ;;
13531   powerpc*-*-rtems*)
13532         TARGET=POWERPC; TARGETDIR=powerpc
13533         ;;
13534
13535   s390-*-* | s390x-*-*)
13536         TARGET=S390; TARGETDIR=s390
13537         ;;
13538
13539   sh-*-* | sh[34]*-*-*)
13540         TARGET=SH; TARGETDIR=sh
13541         ;;
13542   sh64-*-* | sh5*-*-*)
13543         TARGET=SH64; TARGETDIR=sh64
13544         ;;
13545
13546   sparc*-*-*)
13547         TARGET=SPARC; TARGETDIR=sparc
13548         ;;
13549
13550   tile*-*)
13551         TARGET=TILE; TARGETDIR=tile
13552         ;;
13553
13554   vax-*-*)
13555         TARGET=VAX; TARGETDIR=vax
13556         ;;
13557
13558   xtensa*-*)
13559         TARGET=XTENSA; TARGETDIR=xtensa
13560         ;;
13561
13562 esac
13563
13564
13565
13566
13567 if test $TARGETDIR = unknown; then
13568   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13569 fi
13570
13571  if test x$TARGET = xMIPS; then
13572   MIPS_TRUE=
13573   MIPS_FALSE='#'
13574 else
13575   MIPS_TRUE='#'
13576   MIPS_FALSE=
13577 fi
13578
13579  if test x$TARGET = xBFIN; then
13580   BFIN_TRUE=
13581   BFIN_FALSE='#'
13582 else
13583   BFIN_TRUE='#'
13584   BFIN_FALSE=
13585 fi
13586
13587  if test x$TARGET = xSPARC; then
13588   SPARC_TRUE=
13589   SPARC_FALSE='#'
13590 else
13591   SPARC_TRUE='#'
13592   SPARC_FALSE=
13593 fi
13594
13595  if test x$TARGET = xX86; then
13596   X86_TRUE=
13597   X86_FALSE='#'
13598 else
13599   X86_TRUE='#'
13600   X86_FALSE=
13601 fi
13602
13603  if test x$TARGET = xX86_FREEBSD; then
13604   X86_FREEBSD_TRUE=
13605   X86_FREEBSD_FALSE='#'
13606 else
13607   X86_FREEBSD_TRUE='#'
13608   X86_FREEBSD_FALSE=
13609 fi
13610
13611  if test x$TARGET = xX86_WIN32; then
13612   X86_WIN32_TRUE=
13613   X86_WIN32_FALSE='#'
13614 else
13615   X86_WIN32_TRUE='#'
13616   X86_WIN32_FALSE=
13617 fi
13618
13619  if test x$TARGET = xX86_WIN64; then
13620   X86_WIN64_TRUE=
13621   X86_WIN64_FALSE='#'
13622 else
13623   X86_WIN64_TRUE='#'
13624   X86_WIN64_FALSE=
13625 fi
13626
13627  if test x$TARGET = xX86_DARWIN; then
13628   X86_DARWIN_TRUE=
13629   X86_DARWIN_FALSE='#'
13630 else
13631   X86_DARWIN_TRUE='#'
13632   X86_DARWIN_FALSE=
13633 fi
13634
13635  if test x$TARGET = xALPHA; then
13636   ALPHA_TRUE=
13637   ALPHA_FALSE='#'
13638 else
13639   ALPHA_TRUE='#'
13640   ALPHA_FALSE=
13641 fi
13642
13643  if test x$TARGET = xIA64; then
13644   IA64_TRUE=
13645   IA64_FALSE='#'
13646 else
13647   IA64_TRUE='#'
13648   IA64_FALSE=
13649 fi
13650
13651  if test x$TARGET = xM32R; then
13652   M32R_TRUE=
13653   M32R_FALSE='#'
13654 else
13655   M32R_TRUE='#'
13656   M32R_FALSE=
13657 fi
13658
13659  if test x$TARGET = xM68K; then
13660   M68K_TRUE=
13661   M68K_FALSE='#'
13662 else
13663   M68K_TRUE='#'
13664   M68K_FALSE=
13665 fi
13666
13667  if test x$TARGET = xM88K; then
13668   M88K_TRUE=
13669   M88K_FALSE='#'
13670 else
13671   M88K_TRUE='#'
13672   M88K_FALSE=
13673 fi
13674
13675  if test x$TARGET = xMICROBLAZE; then
13676   MICROBLAZE_TRUE=
13677   MICROBLAZE_FALSE='#'
13678 else
13679   MICROBLAZE_TRUE='#'
13680   MICROBLAZE_FALSE=
13681 fi
13682
13683  if test x$TARGET = xMETAG; then
13684   METAG_TRUE=
13685   METAG_FALSE='#'
13686 else
13687   METAG_TRUE='#'
13688   METAG_FALSE=
13689 fi
13690
13691  if test x$TARGET = xMOXIE; then
13692   MOXIE_TRUE=
13693   MOXIE_FALSE='#'
13694 else
13695   MOXIE_TRUE='#'
13696   MOXIE_FALSE=
13697 fi
13698
13699  if test x$TARGET = xNIOS2; then
13700   NIOS2_TRUE=
13701   NIOS2_FALSE='#'
13702 else
13703   NIOS2_TRUE='#'
13704   NIOS2_FALSE=
13705 fi
13706
13707  if test x$TARGET = xPOWERPC; then
13708   POWERPC_TRUE=
13709   POWERPC_FALSE='#'
13710 else
13711   POWERPC_TRUE='#'
13712   POWERPC_FALSE=
13713 fi
13714
13715  if test x$TARGET = xPOWERPC_AIX; then
13716   POWERPC_AIX_TRUE=
13717   POWERPC_AIX_FALSE='#'
13718 else
13719   POWERPC_AIX_TRUE='#'
13720   POWERPC_AIX_FALSE=
13721 fi
13722
13723  if test x$TARGET = xPOWERPC_DARWIN; then
13724   POWERPC_DARWIN_TRUE=
13725   POWERPC_DARWIN_FALSE='#'
13726 else
13727   POWERPC_DARWIN_TRUE='#'
13728   POWERPC_DARWIN_FALSE=
13729 fi
13730
13731  if test x$TARGET = xPOWERPC_FREEBSD; then
13732   POWERPC_FREEBSD_TRUE=
13733   POWERPC_FREEBSD_FALSE='#'
13734 else
13735   POWERPC_FREEBSD_TRUE='#'
13736   POWERPC_FREEBSD_FALSE=
13737 fi
13738
13739  if test x$TARGET = xAARCH64; then
13740   AARCH64_TRUE=
13741   AARCH64_FALSE='#'
13742 else
13743   AARCH64_TRUE='#'
13744   AARCH64_FALSE=
13745 fi
13746
13747  if test x$TARGET = xARC; then
13748   ARC_TRUE=
13749   ARC_FALSE='#'
13750 else
13751   ARC_TRUE='#'
13752   ARC_FALSE=
13753 fi
13754
13755  if test x$TARGET = xARM; then
13756   ARM_TRUE=
13757   ARM_FALSE='#'
13758 else
13759   ARM_TRUE='#'
13760   ARM_FALSE=
13761 fi
13762
13763  if test x$TARGET = xAVR32; then
13764   AVR32_TRUE=
13765   AVR32_FALSE='#'
13766 else
13767   AVR32_TRUE='#'
13768   AVR32_FALSE=
13769 fi
13770
13771  if test x$TARGET = xLIBFFI_CRIS; then
13772   LIBFFI_CRIS_TRUE=
13773   LIBFFI_CRIS_FALSE='#'
13774 else
13775   LIBFFI_CRIS_TRUE='#'
13776   LIBFFI_CRIS_FALSE=
13777 fi
13778
13779  if test x$TARGET = xFRV; then
13780   FRV_TRUE=
13781   FRV_FALSE='#'
13782 else
13783   FRV_TRUE='#'
13784   FRV_FALSE=
13785 fi
13786
13787  if test x$TARGET = xS390; then
13788   S390_TRUE=
13789   S390_FALSE='#'
13790 else
13791   S390_TRUE='#'
13792   S390_FALSE=
13793 fi
13794
13795  if test x$TARGET = xX86_64; then
13796   X86_64_TRUE=
13797   X86_64_FALSE='#'
13798 else
13799   X86_64_TRUE='#'
13800   X86_64_FALSE=
13801 fi
13802
13803  if test x$TARGET = xSH; then
13804   SH_TRUE=
13805   SH_FALSE='#'
13806 else
13807   SH_TRUE='#'
13808   SH_FALSE=
13809 fi
13810
13811  if test x$TARGET = xSH64; then
13812   SH64_TRUE=
13813   SH64_FALSE='#'
13814 else
13815   SH64_TRUE='#'
13816   SH64_FALSE=
13817 fi
13818
13819  if test x$TARGET = xPA_LINUX; then
13820   PA_LINUX_TRUE=
13821   PA_LINUX_FALSE='#'
13822 else
13823   PA_LINUX_TRUE='#'
13824   PA_LINUX_FALSE=
13825 fi
13826
13827  if test x$TARGET = xPA_HPUX; then
13828   PA_HPUX_TRUE=
13829   PA_HPUX_FALSE='#'
13830 else
13831   PA_HPUX_TRUE='#'
13832   PA_HPUX_FALSE=
13833 fi
13834
13835  if test x$TARGET = xPA64_HPUX; then
13836   PA64_HPUX_TRUE=
13837   PA64_HPUX_FALSE='#'
13838 else
13839   PA64_HPUX_TRUE='#'
13840   PA64_HPUX_FALSE=
13841 fi
13842
13843  if test x$TARGET = xTILE; then
13844   TILE_TRUE=
13845   TILE_FALSE='#'
13846 else
13847   TILE_TRUE='#'
13848   TILE_FALSE=
13849 fi
13850
13851  if test x$TARGET = xVAX; then
13852   VAX_TRUE=
13853   VAX_FALSE='#'
13854 else
13855   VAX_TRUE='#'
13856   VAX_FALSE=
13857 fi
13858
13859  if test x$TARGET = xXTENSA; then
13860   XTENSA_TRUE=
13861   XTENSA_FALSE='#'
13862 else
13863   XTENSA_TRUE='#'
13864   XTENSA_FALSE=
13865 fi
13866
13867
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13869 $as_echo_n "checking for ANSI C header files... " >&6; }
13870 if ${ac_cv_header_stdc+:} false; then :
13871   $as_echo_n "(cached) " >&6
13872 else
13873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h.  */
13875 #include <stdlib.h>
13876 #include <stdarg.h>
13877 #include <string.h>
13878 #include <float.h>
13879
13880 int
13881 main ()
13882 {
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 if ac_fn_c_try_compile "$LINENO"; then :
13889   ac_cv_header_stdc=yes
13890 else
13891   ac_cv_header_stdc=no
13892 fi
13893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894
13895 if test $ac_cv_header_stdc = yes; then
13896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h.  */
13899 #include <string.h>
13900
13901 _ACEOF
13902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13903   $EGREP "memchr" >/dev/null 2>&1; then :
13904
13905 else
13906   ac_cv_header_stdc=no
13907 fi
13908 rm -f conftest*
13909
13910 fi
13911
13912 if test $ac_cv_header_stdc = yes; then
13913   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h.  */
13916 #include <stdlib.h>
13917
13918 _ACEOF
13919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13920   $EGREP "free" >/dev/null 2>&1; then :
13921
13922 else
13923   ac_cv_header_stdc=no
13924 fi
13925 rm -f conftest*
13926
13927 fi
13928
13929 if test $ac_cv_header_stdc = yes; then
13930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13931   if test "$cross_compiling" = yes; then :
13932   :
13933 else
13934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h.  */
13936 #include <ctype.h>
13937 #include <stdlib.h>
13938 #if ((' ' & 0x0FF) == 0x020)
13939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13941 #else
13942 # define ISLOWER(c) \
13943                    (('a' <= (c) && (c) <= 'i') \
13944                      || ('j' <= (c) && (c) <= 'r') \
13945                      || ('s' <= (c) && (c) <= 'z'))
13946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13947 #endif
13948
13949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13950 int
13951 main ()
13952 {
13953   int i;
13954   for (i = 0; i < 256; i++)
13955     if (XOR (islower (i), ISLOWER (i))
13956         || toupper (i) != TOUPPER (i))
13957       return 2;
13958   return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_run "$LINENO"; then :
13962
13963 else
13964   ac_cv_header_stdc=no
13965 fi
13966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13967   conftest.$ac_objext conftest.beam conftest.$ac_ext
13968 fi
13969
13970 fi
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13973 $as_echo "$ac_cv_header_stdc" >&6; }
13974 if test $ac_cv_header_stdc = yes; then
13975
13976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13977
13978 fi
13979
13980 for ac_func in memcpy
13981 do :
13982   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13983 if test "x$ac_cv_func_memcpy" = xyes; then :
13984   cat >>confdefs.h <<_ACEOF
13985 #define HAVE_MEMCPY 1
13986 _ACEOF
13987
13988 fi
13989 done
13990
13991 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13992 if test "x$ac_cv_type_size_t" = xyes; then :
13993
13994 else
13995
13996 cat >>confdefs.h <<_ACEOF
13997 #define size_t unsigned int
13998 _ACEOF
13999
14000 fi
14001
14002 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14003 # for constant arguments.  Useless!
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14005 $as_echo_n "checking for working alloca.h... " >&6; }
14006 if ${ac_cv_working_alloca_h+:} false; then :
14007   $as_echo_n "(cached) " >&6
14008 else
14009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h.  */
14011 #include <alloca.h>
14012 int
14013 main ()
14014 {
14015 char *p = (char *) alloca (2 * sizeof (int));
14016                           if (p) return 0;
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_link "$LINENO"; then :
14022   ac_cv_working_alloca_h=yes
14023 else
14024   ac_cv_working_alloca_h=no
14025 fi
14026 rm -f core conftest.err conftest.$ac_objext \
14027     conftest$ac_exeext conftest.$ac_ext
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14030 $as_echo "$ac_cv_working_alloca_h" >&6; }
14031 if test $ac_cv_working_alloca_h = yes; then
14032
14033 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14034
14035 fi
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14038 $as_echo_n "checking for alloca... " >&6; }
14039 if ${ac_cv_func_alloca_works+:} false; then :
14040   $as_echo_n "(cached) " >&6
14041 else
14042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h.  */
14044 #ifdef __GNUC__
14045 # define alloca __builtin_alloca
14046 #else
14047 # ifdef _MSC_VER
14048 #  include <malloc.h>
14049 #  define alloca _alloca
14050 # else
14051 #  ifdef HAVE_ALLOCA_H
14052 #   include <alloca.h>
14053 #  else
14054 #   ifdef _AIX
14055  #pragma alloca
14056 #   else
14057 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14058 void *alloca (size_t);
14059 #    endif
14060 #   endif
14061 #  endif
14062 # endif
14063 #endif
14064
14065 int
14066 main ()
14067 {
14068 char *p = (char *) alloca (1);
14069                                     if (p) return 0;
14070   ;
14071   return 0;
14072 }
14073 _ACEOF
14074 if ac_fn_c_try_link "$LINENO"; then :
14075   ac_cv_func_alloca_works=yes
14076 else
14077   ac_cv_func_alloca_works=no
14078 fi
14079 rm -f core conftest.err conftest.$ac_objext \
14080     conftest$ac_exeext conftest.$ac_ext
14081 fi
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14083 $as_echo "$ac_cv_func_alloca_works" >&6; }
14084
14085 if test $ac_cv_func_alloca_works = yes; then
14086
14087 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14088
14089 else
14090   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14091 # that cause trouble.  Some versions do not even contain alloca or
14092 # contain a buggy version.  If you still want to use their alloca,
14093 # use ar to extract alloca.o from them instead of compiling alloca.c.
14094
14095 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14096
14097 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14098
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14101 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14102 if ${ac_cv_os_cray+:} false; then :
14103   $as_echo_n "(cached) " >&6
14104 else
14105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h.  */
14107 #if defined CRAY && ! defined CRAY2
14108 webecray
14109 #else
14110 wenotbecray
14111 #endif
14112
14113 _ACEOF
14114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14115   $EGREP "webecray" >/dev/null 2>&1; then :
14116   ac_cv_os_cray=yes
14117 else
14118   ac_cv_os_cray=no
14119 fi
14120 rm -f conftest*
14121
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14124 $as_echo "$ac_cv_os_cray" >&6; }
14125 if test $ac_cv_os_cray = yes; then
14126   for ac_func in _getb67 GETB67 getb67; do
14127     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define CRAY_STACKSEG_END $ac_func
14133 _ACEOF
14134
14135     break
14136 fi
14137
14138   done
14139 fi
14140
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14142 $as_echo_n "checking stack direction for C alloca... " >&6; }
14143 if ${ac_cv_c_stack_direction+:} false; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   if test "$cross_compiling" = yes; then :
14147   ac_cv_c_stack_direction=0
14148 else
14149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h.  */
14151 $ac_includes_default
14152 int
14153 find_stack_direction (int *addr, int depth)
14154 {
14155   int dir, dummy = 0;
14156   if (! addr)
14157     addr = &dummy;
14158   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14159   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14160   return dir + dummy;
14161 }
14162
14163 int
14164 main (int argc, char **argv)
14165 {
14166   return find_stack_direction (0, argc + !argv + 20) < 0;
14167 }
14168 _ACEOF
14169 if ac_fn_c_try_run "$LINENO"; then :
14170   ac_cv_c_stack_direction=1
14171 else
14172   ac_cv_c_stack_direction=-1
14173 fi
14174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14175   conftest.$ac_objext conftest.beam conftest.$ac_ext
14176 fi
14177
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14180 $as_echo "$ac_cv_c_stack_direction" >&6; }
14181 cat >>confdefs.h <<_ACEOF
14182 #define STACK_DIRECTION $ac_cv_c_stack_direction
14183 _ACEOF
14184
14185
14186 fi
14187
14188
14189 # The cast to long int works around a bug in the HP C Compiler
14190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14192 # This bug is HP SR number 8606223364.
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14194 $as_echo_n "checking size of double... " >&6; }
14195 if ${ac_cv_sizeof_double+:} false; then :
14196   $as_echo_n "(cached) " >&6
14197 else
14198   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14199
14200 else
14201   if test "$ac_cv_type_double" = yes; then
14202      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14204 as_fn_error 77 "cannot compute sizeof (double)
14205 See \`config.log' for more details" "$LINENO" 5; }
14206    else
14207      ac_cv_sizeof_double=0
14208    fi
14209 fi
14210
14211 fi
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14213 $as_echo "$ac_cv_sizeof_double" >&6; }
14214
14215
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14219 _ACEOF
14220
14221
14222 # The cast to long int works around a bug in the HP C Compiler
14223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14225 # This bug is HP SR number 8606223364.
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14227 $as_echo_n "checking size of long double... " >&6; }
14228 if ${ac_cv_sizeof_long_double+:} false; then :
14229   $as_echo_n "(cached) " >&6
14230 else
14231   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14232
14233 else
14234   if test "$ac_cv_type_long_double" = yes; then
14235      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14237 as_fn_error 77 "cannot compute sizeof (long double)
14238 See \`config.log' for more details" "$LINENO" 5; }
14239    else
14240      ac_cv_sizeof_long_double=0
14241    fi
14242 fi
14243
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14246 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14247
14248
14249
14250 cat >>confdefs.h <<_ACEOF
14251 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14252 _ACEOF
14253
14254
14255
14256 # Also AC_SUBST this variable for ffi.h.
14257 if test -z "$HAVE_LONG_DOUBLE"; then
14258   HAVE_LONG_DOUBLE=0
14259   if test $ac_cv_sizeof_long_double != 0; then
14260     if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
14261
14262 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
14263
14264       HAVE_LONG_DOUBLE=1
14265     else
14266       if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14267         HAVE_LONG_DOUBLE=1
14268
14269 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14270
14271       fi
14272     fi
14273   fi
14274 fi
14275
14276
14277
14278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14279 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14280 if ${ac_cv_c_bigendian+:} false; then :
14281   $as_echo_n "(cached) " >&6
14282 else
14283   ac_cv_c_bigendian=unknown
14284     # See if we're dealing with a universal compiler.
14285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h.  */
14287 #ifndef __APPLE_CC__
14288                not a universal capable compiler
14289              #endif
14290              typedef int dummy;
14291
14292 _ACEOF
14293 if ac_fn_c_try_compile "$LINENO"; then :
14294
14295         # Check for potential -arch flags.  It is not universal unless
14296         # there are at least two -arch flags with different values.
14297         ac_arch=
14298         ac_prev=
14299         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14300          if test -n "$ac_prev"; then
14301            case $ac_word in
14302              i?86 | x86_64 | ppc | ppc64)
14303                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14304                  ac_arch=$ac_word
14305                else
14306                  ac_cv_c_bigendian=universal
14307                  break
14308                fi
14309                ;;
14310            esac
14311            ac_prev=
14312          elif test "x$ac_word" = "x-arch"; then
14313            ac_prev=arch
14314          fi
14315        done
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318     if test $ac_cv_c_bigendian = unknown; then
14319       # See if sys/param.h defines the BYTE_ORDER macro.
14320       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h.  */
14322 #include <sys/types.h>
14323              #include <sys/param.h>
14324
14325 int
14326 main ()
14327 {
14328 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14329                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14330                      && LITTLE_ENDIAN)
14331               bogus endian macros
14332              #endif
14333
14334   ;
14335   return 0;
14336 }
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339   # It does; now see whether it defined to BIG_ENDIAN or not.
14340          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h.  */
14342 #include <sys/types.h>
14343                 #include <sys/param.h>
14344
14345 int
14346 main ()
14347 {
14348 #if BYTE_ORDER != BIG_ENDIAN
14349                  not big endian
14350                 #endif
14351
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_compile "$LINENO"; then :
14357   ac_cv_c_bigendian=yes
14358 else
14359   ac_cv_c_bigendian=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 fi
14363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364     fi
14365     if test $ac_cv_c_bigendian = unknown; then
14366       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14367       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h.  */
14369 #include <limits.h>
14370
14371 int
14372 main ()
14373 {
14374 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14375               bogus endian macros
14376              #endif
14377
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 if ac_fn_c_try_compile "$LINENO"; then :
14383   # It does; now see whether it defined to _BIG_ENDIAN or not.
14384          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h.  */
14386 #include <limits.h>
14387
14388 int
14389 main ()
14390 {
14391 #ifndef _BIG_ENDIAN
14392                  not big endian
14393                 #endif
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400   ac_cv_c_bigendian=yes
14401 else
14402   ac_cv_c_bigendian=no
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407     fi
14408     if test $ac_cv_c_bigendian = unknown; then
14409       # Compile a test program.
14410       if test "$cross_compiling" = yes; then :
14411   # Try to guess by grepping values from an object file.
14412          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h.  */
14414 short int ascii_mm[] =
14415                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14416                 short int ascii_ii[] =
14417                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14418                 int use_ascii (int i) {
14419                   return ascii_mm[i] + ascii_ii[i];
14420                 }
14421                 short int ebcdic_ii[] =
14422                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14423                 short int ebcdic_mm[] =
14424                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14425                 int use_ebcdic (int i) {
14426                   return ebcdic_mm[i] + ebcdic_ii[i];
14427                 }
14428                 extern int foo;
14429
14430 int
14431 main ()
14432 {
14433 return use_ascii (foo) == use_ebcdic (foo);
14434   ;
14435   return 0;
14436 }
14437 _ACEOF
14438 if ac_fn_c_try_compile "$LINENO"; then :
14439   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14440               ac_cv_c_bigendian=yes
14441             fi
14442             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14443               if test "$ac_cv_c_bigendian" = unknown; then
14444                 ac_cv_c_bigendian=no
14445               else
14446                 # finding both strings is unlikely to happen, but who knows?
14447                 ac_cv_c_bigendian=unknown
14448               fi
14449             fi
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 else
14453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455 $ac_includes_default
14456 int
14457 main ()
14458 {
14459
14460              /* Are we little or big endian?  From Harbison&Steele.  */
14461              union
14462              {
14463                long int l;
14464                char c[sizeof (long int)];
14465              } u;
14466              u.l = 1;
14467              return u.c[sizeof (long int) - 1] == 1;
14468
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_run "$LINENO"; then :
14474   ac_cv_c_bigendian=no
14475 else
14476   ac_cv_c_bigendian=yes
14477 fi
14478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14479   conftest.$ac_objext conftest.beam conftest.$ac_ext
14480 fi
14481
14482     fi
14483 fi
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14485 $as_echo "$ac_cv_c_bigendian" >&6; }
14486  case $ac_cv_c_bigendian in #(
14487    yes)
14488      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14489 ;; #(
14490    no)
14491       ;; #(
14492    universal)
14493
14494 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14495
14496      ;; #(
14497    *)
14498      as_fn_error $? "unknown endianness
14499  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14500  esac
14501
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14504 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14505 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14506   $as_echo_n "(cached) " >&6
14507 else
14508
14509     gcc_cv_as_cfi_pseudo_op=unknown
14510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h.  */
14512 asm (".cfi_startproc\n\t.cfi_endproc");
14513 int
14514 main ()
14515 {
14516
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522   gcc_cv_as_cfi_pseudo_op=yes
14523 else
14524   gcc_cv_as_cfi_pseudo_op=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14530 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14531  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14532
14533 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14534
14535  fi
14536
14537
14538 if test x$TARGET = xSPARC; then
14539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14540 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14541 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14542   $as_echo_n "(cached) " >&6
14543 else
14544
14545         save_CFLAGS="$CFLAGS"
14546         save_LDFLAGS="$LDFLAGS"
14547         CFLAGS="$CFLAGS -fpic"
14548         LDFLAGS="$LDFLAGS -shared"
14549         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h.  */
14551 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14552 int
14553 main ()
14554 {
14555
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_link "$LINENO"; then :
14561   libffi_cv_as_sparc_ua_pcrel=yes
14562 else
14563   libffi_cv_as_sparc_ua_pcrel=no
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext \
14566     conftest$ac_exeext conftest.$ac_ext
14567         CFLAGS="$save_CFLAGS"
14568         LDFLAGS="$save_LDFLAGS"
14569 fi
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14571 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14572     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14573
14574 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14575
14576     fi
14577
14578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14579 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14580 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14581   $as_echo_n "(cached) " >&6
14582 else
14583
14584        libffi_cv_as_register_pseudo_op=unknown
14585        # Check if we have .register
14586        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h.  */
14588
14589 int
14590 main ()
14591 {
14592 asm (".register %g2, #scratch");
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598   libffi_cv_as_register_pseudo_op=yes
14599 else
14600   libffi_cv_as_register_pseudo_op=no
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603
14604 fi
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14606 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14607     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14608
14609 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14610
14611     fi
14612 fi
14613
14614 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14616 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14617 if ${libffi_cv_as_x86_pcrel+:} false; then :
14618   $as_echo_n "(cached) " >&6
14619 else
14620
14621         libffi_cv_as_x86_pcrel=no
14622         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14623         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14624             libffi_cv_as_x86_pcrel=yes
14625         fi
14626
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14629 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14630     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14631
14632 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14633
14634     fi
14635
14636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14637 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14638 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14639   $as_echo_n "(cached) " >&6
14640 else
14641
14642        libffi_cv_as_ascii_pseudo_op=unknown
14643        # Check if we have .ascii
14644        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h.  */
14646
14647 int
14648 main ()
14649 {
14650 asm (".ascii \\"string\\"");
14651   ;
14652   return 0;
14653 }
14654 _ACEOF
14655 if ac_fn_c_try_compile "$LINENO"; then :
14656   libffi_cv_as_ascii_pseudo_op=yes
14657 else
14658   libffi_cv_as_ascii_pseudo_op=no
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661
14662 fi
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14664 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14665     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14666
14667 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14668
14669     fi
14670
14671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14672 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14673 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14674   $as_echo_n "(cached) " >&6
14675 else
14676
14677        libffi_cv_as_string_pseudo_op=unknown
14678        # Check if we have .string
14679        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h.  */
14681
14682 int
14683 main ()
14684 {
14685 asm (".string \\"string\\"");
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 if ac_fn_c_try_compile "$LINENO"; then :
14691   libffi_cv_as_string_pseudo_op=yes
14692 else
14693   libffi_cv_as_string_pseudo_op=no
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14696
14697 fi
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14699 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14700     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14701
14702 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14703
14704     fi
14705 fi
14706
14707 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14708 # Check whether --enable-pax_emutramp was given.
14709 if test "${enable_pax_emutramp+set}" = set; then :
14710   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14711
14712 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14713
14714   fi
14715 fi
14716
14717
14718 if test x$TARGET = xX86_WIN64; then
14719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14720 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14721 if ${lt_cv_sys_symbol_underscore+:} false; then :
14722   $as_echo_n "(cached) " >&6
14723 else
14724   lt_cv_sys_symbol_underscore=no
14725   cat > conftest.$ac_ext <<_LT_EOF
14726 void nm_test_func(){}
14727 int main(){nm_test_func;return 0;}
14728 _LT_EOF
14729   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14730   (eval $ac_compile) 2>&5
14731   ac_status=$?
14732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733   test $ac_status = 0; }; then
14734     # Now try to grab the symbols.
14735     ac_nlist=conftest.nm
14736     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14737   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14738   ac_status=$?
14739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740   test $ac_status = 0; } && test -s "$ac_nlist"; then
14741       # See whether the symbols have a leading underscore.
14742       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14743         lt_cv_sys_symbol_underscore=yes
14744       else
14745         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14746           :
14747         else
14748           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14749         fi
14750       fi
14751     else
14752       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14753     fi
14754   else
14755     echo "configure: failed program was:" >&5
14756     cat conftest.c >&5
14757   fi
14758   rm -rf conftest*
14759
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14762 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14763   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14764
14765
14766     if test "x$sys_symbol_underscore" = xyes; then
14767
14768 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14769
14770     fi
14771 fi
14772
14773 FFI_EXEC_TRAMPOLINE_TABLE=0
14774 case "$target" in
14775      *arm*-apple-darwin*)
14776        FFI_EXEC_TRAMPOLINE_TABLE=1
14777
14778 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14779
14780      ;;
14781      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14782
14783 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14784
14785      ;;
14786 esac
14787  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14788   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14789   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14790 else
14791   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14792   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14793 fi
14794
14795
14796
14797 if test x$TARGET = xX86_64; then
14798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14799 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14800 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14801   $as_echo_n "(cached) " >&6
14802 else
14803
14804         libffi_cv_as_x86_64_unwind_section_type=yes
14805         echo '.section .eh_frame,"a",@unwind' > conftest.s
14806         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14807             libffi_cv_as_x86_64_unwind_section_type=no
14808         fi
14809
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14812 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14813     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14814
14815 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14816
14817     fi
14818 fi
14819
14820 if test "x$GCC" = "xyes"; then
14821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14822 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14823 if ${libffi_cv_ro_eh_frame+:} false; then :
14824   $as_echo_n "(cached) " >&6
14825 else
14826
14827         libffi_cv_ro_eh_frame=no
14828         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14829         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14830             objdump -h conftest.o > conftest.dump 2>&1
14831             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14832             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14833             sed -n $libffi_test_line conftest.dump > conftest.line
14834             if grep READONLY conftest.line > /dev/null; then
14835                 libffi_cv_ro_eh_frame=yes
14836             fi
14837         fi
14838         rm -f conftest.*
14839
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14842 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14843   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14844
14845 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14846
14847
14848 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14849
14850   else
14851
14852 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14853
14854   fi
14855
14856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14857 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14858 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14859   $as_echo_n "(cached) " >&6
14860 else
14861
14862         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14863         libffi_cv_hidden_visibility_attribute=no
14864         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14865   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14869   test $ac_status = 0; }; }; then
14870             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14871                 libffi_cv_hidden_visibility_attribute=yes
14872             fi
14873         fi
14874         rm -f conftest.*
14875
14876 fi
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14878 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14879   if test $libffi_cv_hidden_visibility_attribute = yes; then
14880
14881 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14882
14883   fi
14884 fi
14885
14886
14887
14888
14889
14890
14891
14892
14893 # Check whether --enable-debug was given.
14894 if test "${enable_debug+set}" = set; then :
14895   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14896
14897 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14898
14899   fi
14900 fi
14901
14902  if test "$enable_debug" = "yes"; then
14903   FFI_DEBUG_TRUE=
14904   FFI_DEBUG_FALSE='#'
14905 else
14906   FFI_DEBUG_TRUE='#'
14907   FFI_DEBUG_FALSE=
14908 fi
14909
14910
14911 # Check whether --enable-structs was given.
14912 if test "${enable_structs+set}" = set; then :
14913   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14914
14915 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14916
14917   fi
14918 fi
14919
14920  if test "$enable_debug" = "yes"; then
14921   FFI_DEBUG_TRUE=
14922   FFI_DEBUG_FALSE='#'
14923 else
14924   FFI_DEBUG_TRUE='#'
14925   FFI_DEBUG_FALSE=
14926 fi
14927
14928
14929 # Check whether --enable-raw-api was given.
14930 if test "${enable_raw_api+set}" = set; then :
14931   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14932
14933 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14934
14935   fi
14936 fi
14937
14938
14939 # Check whether --enable-purify-safety was given.
14940 if test "${enable_purify_safety+set}" = set; then :
14941   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14942
14943 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14944
14945   fi
14946 fi
14947
14948
14949 # These variables are only ever used when we cross-build to X86_WIN32.
14950 # And we only support this with GCC, so...
14951 if test "x$GCC" = "xyes"; then
14952   if test -n "$with_cross_host" &&
14953      test x"$with_cross_host" != x"no"; then
14954     toolexecdir='$(exec_prefix)/$(target_alias)'
14955     toolexeclibdir='$(toolexecdir)/lib'
14956   else
14957     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14958     toolexeclibdir='$(libdir)'
14959   fi
14960   multi_os_directory=`$CC -print-multi-os-directory`
14961   case $multi_os_directory in
14962     .) ;; # Avoid trailing /.
14963     ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14964   esac
14965
14966 else
14967   toolexeclibdir='$(libdir)'
14968 fi
14969
14970
14971 ac_config_commands="$ac_config_commands include"
14972
14973 ac_config_commands="$ac_config_commands src"
14974
14975
14976 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14977
14978
14979 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14980
14981
14982 cat >confcache <<\_ACEOF
14983 # This file is a shell script that caches the results of configure
14984 # tests run on this system so they can be shared between configure
14985 # scripts and configure runs, see configure's option --config-cache.
14986 # It is not useful on other systems.  If it contains results you don't
14987 # want to keep, you may remove or edit it.
14988 #
14989 # config.status only pays attention to the cache file if you give it
14990 # the --recheck option to rerun configure.
14991 #
14992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14994 # following values.
14995
14996 _ACEOF
14997
14998 # The following way of writing the cache mishandles newlines in values,
14999 # but we know of no workaround that is simple, portable, and efficient.
15000 # So, we kill variables containing newlines.
15001 # Ultrix sh set writes to stderr and can't be redirected directly,
15002 # and sets the high bit in the cache file unless we assign to the vars.
15003 (
15004   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15005     eval ac_val=\$$ac_var
15006     case $ac_val in #(
15007     *${as_nl}*)
15008       case $ac_var in #(
15009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15011       esac
15012       case $ac_var in #(
15013       _ | IFS | as_nl) ;; #(
15014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15015       *) { eval $ac_var=; unset $ac_var;} ;;
15016       esac ;;
15017     esac
15018   done
15019
15020   (set) 2>&1 |
15021     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15022     *${as_nl}ac_space=\ *)
15023       # `set' does not quote correctly, so add quotes: double-quote
15024       # substitution turns \\\\ into \\, and sed turns \\ into \.
15025       sed -n \
15026         "s/'/'\\\\''/g;
15027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15028       ;; #(
15029     *)
15030       # `set' quotes correctly as required by POSIX, so do not add quotes.
15031       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15032       ;;
15033     esac |
15034     sort
15035 ) |
15036   sed '
15037      /^ac_cv_env_/b end
15038      t clear
15039      :clear
15040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15041      t end
15042      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15043      :end' >>confcache
15044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15045   if test -w "$cache_file"; then
15046     if test "x$cache_file" != "x/dev/null"; then
15047       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15048 $as_echo "$as_me: updating cache $cache_file" >&6;}
15049       if test ! -f "$cache_file" || test -h "$cache_file"; then
15050         cat confcache >"$cache_file"
15051       else
15052         case $cache_file in #(
15053         */* | ?:*)
15054           mv -f confcache "$cache_file"$$ &&
15055           mv -f "$cache_file"$$ "$cache_file" ;; #(
15056         *)
15057           mv -f confcache "$cache_file" ;;
15058         esac
15059       fi
15060     fi
15061   else
15062     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15064   fi
15065 fi
15066 rm -f confcache
15067
15068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15069 # Let make expand exec_prefix.
15070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15071
15072 DEFS=-DHAVE_CONFIG_H
15073
15074 ac_libobjs=
15075 ac_ltlibobjs=
15076 U=
15077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15078   # 1. Remove the extension, and $U if already installed.
15079   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15080   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15081   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15082   #    will be set to the directory where LIBOBJS objects are built.
15083   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15084   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15085 done
15086 LIBOBJS=$ac_libobjs
15087
15088 LTLIBOBJS=$ac_ltlibobjs
15089
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15092 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15093    if test -n "$am_sleep_pid"; then
15094      # Hide warnings about reused PIDs.
15095      wait $am_sleep_pid 2>/dev/null
15096    fi
15097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15098 $as_echo "done" >&6; }
15099  if test -n "$EXEEXT"; then
15100   am__EXEEXT_TRUE=
15101   am__EXEEXT_FALSE='#'
15102 else
15103   am__EXEEXT_TRUE='#'
15104   am__EXEEXT_FALSE=
15105 fi
15106
15107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15108   as_fn_error $? "conditional \"AMDEP\" was never defined.
15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 fi
15111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15112   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 fi
15115 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15116   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118 fi
15119 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15120   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122 fi
15123 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15124   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126 fi
15127 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15128   as_fn_error $? "conditional \"MIPS\" was never defined.
15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130 fi
15131 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15132   as_fn_error $? "conditional \"BFIN\" was never defined.
15133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15134 fi
15135 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15136   as_fn_error $? "conditional \"SPARC\" was never defined.
15137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138 fi
15139 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15140   as_fn_error $? "conditional \"X86\" was never defined.
15141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142 fi
15143 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15144   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146 fi
15147 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15148   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150 fi
15151 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15152   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154 fi
15155 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15156   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15158 fi
15159 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15160   as_fn_error $? "conditional \"ALPHA\" was never defined.
15161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162 fi
15163 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15164   as_fn_error $? "conditional \"IA64\" was never defined.
15165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166 fi
15167 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15168   as_fn_error $? "conditional \"M32R\" was never defined.
15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170 fi
15171 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15172   as_fn_error $? "conditional \"M68K\" was never defined.
15173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15174 fi
15175 if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
15176   as_fn_error $? "conditional \"M88K\" was never defined.
15177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178 fi
15179 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15180   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15182 fi
15183 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
15184   as_fn_error $? "conditional \"METAG\" was never defined.
15185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15186 fi
15187 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15188   as_fn_error $? "conditional \"MOXIE\" was never defined.
15189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15190 fi
15191 if test -z "${NIOS2_TRUE}" && test -z "${NIOS2_FALSE}"; then
15192   as_fn_error $? "conditional \"NIOS2\" was never defined.
15193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15194 fi
15195 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15196   as_fn_error $? "conditional \"POWERPC\" was never defined.
15197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15198 fi
15199 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15200   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15202 fi
15203 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15204   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206 fi
15207 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15208   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210 fi
15211 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15212   as_fn_error $? "conditional \"AARCH64\" was never defined.
15213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214 fi
15215 if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
15216   as_fn_error $? "conditional \"ARC\" was never defined.
15217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15218 fi
15219 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15220   as_fn_error $? "conditional \"ARM\" was never defined.
15221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15222 fi
15223 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15224   as_fn_error $? "conditional \"AVR32\" was never defined.
15225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15226 fi
15227 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15228   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15230 fi
15231 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15232   as_fn_error $? "conditional \"FRV\" was never defined.
15233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234 fi
15235 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15236   as_fn_error $? "conditional \"S390\" was never defined.
15237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238 fi
15239 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15240   as_fn_error $? "conditional \"X86_64\" was never defined.
15241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15242 fi
15243 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15244   as_fn_error $? "conditional \"SH\" was never defined.
15245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15246 fi
15247 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15248   as_fn_error $? "conditional \"SH64\" was never defined.
15249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15250 fi
15251 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15252   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15254 fi
15255 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15256   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15258 fi
15259 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15260   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15262 fi
15263 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15264   as_fn_error $? "conditional \"TILE\" was never defined.
15265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15266 fi
15267 if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
15268   as_fn_error $? "conditional \"VAX\" was never defined.
15269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15270 fi
15271 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15272   as_fn_error $? "conditional \"XTENSA\" was never defined.
15273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15274 fi
15275
15276 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15277   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15279 fi
15280 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15281   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15283 fi
15284 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15285   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15287 fi
15288
15289 : "${CONFIG_STATUS=./config.status}"
15290 ac_write_fail=0
15291 ac_clean_files_save=$ac_clean_files
15292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15294 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15295 as_write_fail=0
15296 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15297 #! $SHELL
15298 # Generated by $as_me.
15299 # Run this file to recreate the current configuration.
15300 # Compiler output produced by configure, useful for debugging
15301 # configure, is in config.log if it exists.
15302
15303 debug=false
15304 ac_cs_recheck=false
15305 ac_cs_silent=false
15306
15307 SHELL=\${CONFIG_SHELL-$SHELL}
15308 export SHELL
15309 _ASEOF
15310 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15311 ## -------------------- ##
15312 ## M4sh Initialization. ##
15313 ## -------------------- ##
15314
15315 # Be more Bourne compatible
15316 DUALCASE=1; export DUALCASE # for MKS sh
15317 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15318   emulate sh
15319   NULLCMD=:
15320   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15321   # is contrary to our usage.  Disable this feature.
15322   alias -g '${1+"$@"}'='"$@"'
15323   setopt NO_GLOB_SUBST
15324 else
15325   case `(set -o) 2>/dev/null` in #(
15326   *posix*) :
15327     set -o posix ;; #(
15328   *) :
15329      ;;
15330 esac
15331 fi
15332
15333
15334 as_nl='
15335 '
15336 export as_nl
15337 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15338 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15339 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15340 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15341 # Prefer a ksh shell builtin over an external printf program on Solaris,
15342 # but without wasting forks for bash or zsh.
15343 if test -z "$BASH_VERSION$ZSH_VERSION" \
15344     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15345   as_echo='print -r --'
15346   as_echo_n='print -rn --'
15347 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15348   as_echo='printf %s\n'
15349   as_echo_n='printf %s'
15350 else
15351   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15352     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15353     as_echo_n='/usr/ucb/echo -n'
15354   else
15355     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15356     as_echo_n_body='eval
15357       arg=$1;
15358       case $arg in #(
15359       *"$as_nl"*)
15360         expr "X$arg" : "X\\(.*\\)$as_nl";
15361         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15362       esac;
15363       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15364     '
15365     export as_echo_n_body
15366     as_echo_n='sh -c $as_echo_n_body as_echo'
15367   fi
15368   export as_echo_body
15369   as_echo='sh -c $as_echo_body as_echo'
15370 fi
15371
15372 # The user is always right.
15373 if test "${PATH_SEPARATOR+set}" != set; then
15374   PATH_SEPARATOR=:
15375   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15376     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15377       PATH_SEPARATOR=';'
15378   }
15379 fi
15380
15381
15382 # IFS
15383 # We need space, tab and new line, in precisely that order.  Quoting is
15384 # there to prevent editors from complaining about space-tab.
15385 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15386 # splitting by setting IFS to empty value.)
15387 IFS=" ""        $as_nl"
15388
15389 # Find who we are.  Look in the path if we contain no directory separator.
15390 as_myself=
15391 case $0 in #((
15392   *[\\/]* ) as_myself=$0 ;;
15393   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 for as_dir in $PATH
15395 do
15396   IFS=$as_save_IFS
15397   test -z "$as_dir" && as_dir=.
15398     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15399   done
15400 IFS=$as_save_IFS
15401
15402      ;;
15403 esac
15404 # We did not find ourselves, most probably we were run as `sh COMMAND'
15405 # in which case we are not to be found in the path.
15406 if test "x$as_myself" = x; then
15407   as_myself=$0
15408 fi
15409 if test ! -f "$as_myself"; then
15410   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15411   exit 1
15412 fi
15413
15414 # Unset variables that we do not need and which cause bugs (e.g. in
15415 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15416 # suppresses any "Segmentation fault" message there.  '((' could
15417 # trigger a bug in pdksh 5.2.14.
15418 for as_var in BASH_ENV ENV MAIL MAILPATH
15419 do eval test x\${$as_var+set} = xset \
15420   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15421 done
15422 PS1='$ '
15423 PS2='> '
15424 PS4='+ '
15425
15426 # NLS nuisances.
15427 LC_ALL=C
15428 export LC_ALL
15429 LANGUAGE=C
15430 export LANGUAGE
15431
15432 # CDPATH.
15433 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15434
15435
15436 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15437 # ----------------------------------------
15438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15440 # script with STATUS, using 1 if that was 0.
15441 as_fn_error ()
15442 {
15443   as_status=$1; test $as_status -eq 0 && as_status=1
15444   if test "$4"; then
15445     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15446     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15447   fi
15448   $as_echo "$as_me: error: $2" >&2
15449   as_fn_exit $as_status
15450 } # as_fn_error
15451
15452
15453 # as_fn_set_status STATUS
15454 # -----------------------
15455 # Set $? to STATUS, without forking.
15456 as_fn_set_status ()
15457 {
15458   return $1
15459 } # as_fn_set_status
15460
15461 # as_fn_exit STATUS
15462 # -----------------
15463 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15464 as_fn_exit ()
15465 {
15466   set +e
15467   as_fn_set_status $1
15468   exit $1
15469 } # as_fn_exit
15470
15471 # as_fn_unset VAR
15472 # ---------------
15473 # Portably unset VAR.
15474 as_fn_unset ()
15475 {
15476   { eval $1=; unset $1;}
15477 }
15478 as_unset=as_fn_unset
15479 # as_fn_append VAR VALUE
15480 # ----------------------
15481 # Append the text in VALUE to the end of the definition contained in VAR. Take
15482 # advantage of any shell optimizations that allow amortized linear growth over
15483 # repeated appends, instead of the typical quadratic growth present in naive
15484 # implementations.
15485 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15486   eval 'as_fn_append ()
15487   {
15488     eval $1+=\$2
15489   }'
15490 else
15491   as_fn_append ()
15492   {
15493     eval $1=\$$1\$2
15494   }
15495 fi # as_fn_append
15496
15497 # as_fn_arith ARG...
15498 # ------------------
15499 # Perform arithmetic evaluation on the ARGs, and store the result in the
15500 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15501 # must be portable across $(()) and expr.
15502 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15503   eval 'as_fn_arith ()
15504   {
15505     as_val=$(( $* ))
15506   }'
15507 else
15508   as_fn_arith ()
15509   {
15510     as_val=`expr "$@" || test $? -eq 1`
15511   }
15512 fi # as_fn_arith
15513
15514
15515 if expr a : '\(a\)' >/dev/null 2>&1 &&
15516    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15517   as_expr=expr
15518 else
15519   as_expr=false
15520 fi
15521
15522 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15523   as_basename=basename
15524 else
15525   as_basename=false
15526 fi
15527
15528 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15529   as_dirname=dirname
15530 else
15531   as_dirname=false
15532 fi
15533
15534 as_me=`$as_basename -- "$0" ||
15535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15536          X"$0" : 'X\(//\)$' \| \
15537          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15538 $as_echo X/"$0" |
15539     sed '/^.*\/\([^/][^/]*\)\/*$/{
15540             s//\1/
15541             q
15542           }
15543           /^X\/\(\/\/\)$/{
15544             s//\1/
15545             q
15546           }
15547           /^X\/\(\/\).*/{
15548             s//\1/
15549             q
15550           }
15551           s/.*/./; q'`
15552
15553 # Avoid depending upon Character Ranges.
15554 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15555 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15556 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15557 as_cr_digits='0123456789'
15558 as_cr_alnum=$as_cr_Letters$as_cr_digits
15559
15560 ECHO_C= ECHO_N= ECHO_T=
15561 case `echo -n x` in #(((((
15562 -n*)
15563   case `echo 'xy\c'` in
15564   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15565   xy)  ECHO_C='\c';;
15566   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15567        ECHO_T=' ';;
15568   esac;;
15569 *)
15570   ECHO_N='-n';;
15571 esac
15572
15573 rm -f conf$$ conf$$.exe conf$$.file
15574 if test -d conf$$.dir; then
15575   rm -f conf$$.dir/conf$$.file
15576 else
15577   rm -f conf$$.dir
15578   mkdir conf$$.dir 2>/dev/null
15579 fi
15580 if (echo >conf$$.file) 2>/dev/null; then
15581   if ln -s conf$$.file conf$$ 2>/dev/null; then
15582     as_ln_s='ln -s'
15583     # ... but there are two gotchas:
15584     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15585     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15586     # In both cases, we have to default to `cp -pR'.
15587     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15588       as_ln_s='cp -pR'
15589   elif ln conf$$.file conf$$ 2>/dev/null; then
15590     as_ln_s=ln
15591   else
15592     as_ln_s='cp -pR'
15593   fi
15594 else
15595   as_ln_s='cp -pR'
15596 fi
15597 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15598 rmdir conf$$.dir 2>/dev/null
15599
15600
15601 # as_fn_mkdir_p
15602 # -------------
15603 # Create "$as_dir" as a directory, including parents if necessary.
15604 as_fn_mkdir_p ()
15605 {
15606
15607   case $as_dir in #(
15608   -*) as_dir=./$as_dir;;
15609   esac
15610   test -d "$as_dir" || eval $as_mkdir_p || {
15611     as_dirs=
15612     while :; do
15613       case $as_dir in #(
15614       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15615       *) as_qdir=$as_dir;;
15616       esac
15617       as_dirs="'$as_qdir' $as_dirs"
15618       as_dir=`$as_dirname -- "$as_dir" ||
15619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15620          X"$as_dir" : 'X\(//\)[^/]' \| \
15621          X"$as_dir" : 'X\(//\)$' \| \
15622          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15623 $as_echo X"$as_dir" |
15624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15625             s//\1/
15626             q
15627           }
15628           /^X\(\/\/\)[^/].*/{
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       test -d "$as_dir" && break
15642     done
15643     test -z "$as_dirs" || eval "mkdir $as_dirs"
15644   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15645
15646
15647 } # as_fn_mkdir_p
15648 if mkdir -p . 2>/dev/null; then
15649   as_mkdir_p='mkdir -p "$as_dir"'
15650 else
15651   test -d ./-p && rmdir ./-p
15652   as_mkdir_p=false
15653 fi
15654
15655
15656 # as_fn_executable_p FILE
15657 # -----------------------
15658 # Test if FILE is an executable regular file.
15659 as_fn_executable_p ()
15660 {
15661   test -f "$1" && test -x "$1"
15662 } # as_fn_executable_p
15663 as_test_x='test -x'
15664 as_executable_p=as_fn_executable_p
15665
15666 # Sed expression to map a string onto a valid CPP name.
15667 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15668
15669 # Sed expression to map a string onto a valid variable name.
15670 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15671
15672
15673 exec 6>&1
15674 ## ----------------------------------- ##
15675 ## Main body of $CONFIG_STATUS script. ##
15676 ## ----------------------------------- ##
15677 _ASEOF
15678 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15679
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 # Save the log message, to keep $0 and so on meaningful, and to
15682 # report actual input values of CONFIG_FILES etc. instead of their
15683 # values after options handling.
15684 ac_log="
15685 This file was extended by libffi $as_me 3.0.14-rc0, which was
15686 generated by GNU Autoconf 2.69.  Invocation command line was
15687
15688   CONFIG_FILES    = $CONFIG_FILES
15689   CONFIG_HEADERS  = $CONFIG_HEADERS
15690   CONFIG_LINKS    = $CONFIG_LINKS
15691   CONFIG_COMMANDS = $CONFIG_COMMANDS
15692   $ $0 $@
15693
15694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15695 "
15696
15697 _ACEOF
15698
15699 case $ac_config_files in *"
15700 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15701 esac
15702
15703 case $ac_config_headers in *"
15704 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15705 esac
15706
15707
15708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709 # Files that config.status was made for.
15710 config_files="$ac_config_files"
15711 config_headers="$ac_config_headers"
15712 config_links="$ac_config_links"
15713 config_commands="$ac_config_commands"
15714
15715 _ACEOF
15716
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15718 ac_cs_usage="\
15719 \`$as_me' instantiates files and other configuration actions
15720 from templates according to the current configuration.  Unless the files
15721 and actions are specified as TAGs, all are instantiated by default.
15722
15723 Usage: $0 [OPTION]... [TAG]...
15724
15725   -h, --help       print this help, then exit
15726   -V, --version    print version number and configuration settings, then exit
15727       --config     print configuration, then exit
15728   -q, --quiet, --silent
15729                    do not print progress messages
15730   -d, --debug      don't remove temporary files
15731       --recheck    update $as_me by reconfiguring in the same conditions
15732       --file=FILE[:TEMPLATE]
15733                    instantiate the configuration file FILE
15734       --header=FILE[:TEMPLATE]
15735                    instantiate the configuration header FILE
15736
15737 Configuration files:
15738 $config_files
15739
15740 Configuration headers:
15741 $config_headers
15742
15743 Configuration links:
15744 $config_links
15745
15746 Configuration commands:
15747 $config_commands
15748
15749 Report bugs to <http://github.com/atgreen/libffi/issues>."
15750
15751 _ACEOF
15752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15754 ac_cs_version="\\
15755 libffi config.status 3.0.14-rc0
15756 configured by $0, generated by GNU Autoconf 2.69,
15757   with options \\"\$ac_cs_config\\"
15758
15759 Copyright (C) 2012 Free Software Foundation, Inc.
15760 This config.status script is free software; the Free Software Foundation
15761 gives unlimited permission to copy, distribute and modify it."
15762
15763 ac_pwd='$ac_pwd'
15764 srcdir='$srcdir'
15765 INSTALL='$INSTALL'
15766 MKDIR_P='$MKDIR_P'
15767 AWK='$AWK'
15768 test -n "\$AWK" || AWK=awk
15769 _ACEOF
15770
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772 # The default lists apply if the user does not specify any file.
15773 ac_need_defaults=:
15774 while test $# != 0
15775 do
15776   case $1 in
15777   --*=?*)
15778     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15779     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15780     ac_shift=:
15781     ;;
15782   --*=)
15783     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15784     ac_optarg=
15785     ac_shift=:
15786     ;;
15787   *)
15788     ac_option=$1
15789     ac_optarg=$2
15790     ac_shift=shift
15791     ;;
15792   esac
15793
15794   case $ac_option in
15795   # Handling of the options.
15796   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15797     ac_cs_recheck=: ;;
15798   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15799     $as_echo "$ac_cs_version"; exit ;;
15800   --config | --confi | --conf | --con | --co | --c )
15801     $as_echo "$ac_cs_config"; exit ;;
15802   --debug | --debu | --deb | --de | --d | -d )
15803     debug=: ;;
15804   --file | --fil | --fi | --f )
15805     $ac_shift
15806     case $ac_optarg in
15807     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15808     '') as_fn_error $? "missing file argument" ;;
15809     esac
15810     as_fn_append CONFIG_FILES " '$ac_optarg'"
15811     ac_need_defaults=false;;
15812   --header | --heade | --head | --hea )
15813     $ac_shift
15814     case $ac_optarg in
15815     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15816     esac
15817     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15818     ac_need_defaults=false;;
15819   --he | --h)
15820     # Conflict between --help and --header
15821     as_fn_error $? "ambiguous option: \`$1'
15822 Try \`$0 --help' for more information.";;
15823   --help | --hel | -h )
15824     $as_echo "$ac_cs_usage"; exit ;;
15825   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15826   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15827     ac_cs_silent=: ;;
15828
15829   # This is an error.
15830   -*) as_fn_error $? "unrecognized option: \`$1'
15831 Try \`$0 --help' for more information." ;;
15832
15833   *) as_fn_append ac_config_targets " $1"
15834      ac_need_defaults=false ;;
15835
15836   esac
15837   shift
15838 done
15839
15840 ac_configure_extra_args=
15841
15842 if $ac_cs_silent; then
15843   exec 6>/dev/null
15844   ac_configure_extra_args="$ac_configure_extra_args --silent"
15845 fi
15846
15847 _ACEOF
15848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15849 if \$ac_cs_recheck; then
15850   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15851   shift
15852   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15853   CONFIG_SHELL='$SHELL'
15854   export CONFIG_SHELL
15855   exec "\$@"
15856 fi
15857
15858 _ACEOF
15859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15860 exec 5>>config.log
15861 {
15862   echo
15863   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15864 ## Running $as_me. ##
15865 _ASBOX
15866   $as_echo "$ac_log"
15867 } >&5
15868
15869 _ACEOF
15870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15871 #
15872 # INIT-COMMANDS
15873 #
15874 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15875 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15876 ax_enable_builddir_version="$VERSION"                  # $VERSION
15877 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15878 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15879 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15880 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15881
15882 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15883
15884
15885 # The HP-UX ksh and POSIX shell print the target directory to stdout
15886 # if CDPATH is set.
15887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15888
15889 sed_quote_subst='$sed_quote_subst'
15890 double_quote_subst='$double_quote_subst'
15891 delay_variable_subst='$delay_variable_subst'
15892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15925 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15926 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15927 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15928 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15929 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15930 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15931 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15932 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15933 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15934 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15935 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15936 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15937 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15938 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15939 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15940 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15941 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15942 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15943 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15944 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15945 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15946 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15947 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15948 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"`'
15949 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15950 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15951 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15952 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15953 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15954 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15955 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15956 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15957 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15958 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15959 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15960 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15961 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15962 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15963 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15964 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15965 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15966 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15967 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15968 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15969 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15970 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15971 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15972 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15973 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15974 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15975 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15976 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15977 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15978 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15979 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15980 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15981 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15982 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15983 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15984 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15985 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15986 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15987 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15988 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15989 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15990 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15991 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15992 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15993 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15994 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15995 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15996 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15997 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15998 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15999 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16000 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16001 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16002 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16003 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16004 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16005 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16006 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16007 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16008 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16009 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16010 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16011 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16012 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16013 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16014 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16015 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16016 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16017 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16018 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16019 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16020 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16021 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16022
16023 LTCC='$LTCC'
16024 LTCFLAGS='$LTCFLAGS'
16025 compiler='$compiler_DEFAULT'
16026
16027 # A function that is used when there is no print builtin or printf.
16028 func_fallback_echo ()
16029 {
16030   eval 'cat <<_LTECHO_EOF
16031 \$1
16032 _LTECHO_EOF'
16033 }
16034
16035 # Quote evaled strings.
16036 for var in SHELL \
16037 ECHO \
16038 PATH_SEPARATOR \
16039 SED \
16040 GREP \
16041 EGREP \
16042 FGREP \
16043 LD \
16044 NM \
16045 LN_S \
16046 lt_SP2NL \
16047 lt_NL2SP \
16048 reload_flag \
16049 OBJDUMP \
16050 deplibs_check_method \
16051 file_magic_cmd \
16052 file_magic_glob \
16053 want_nocaseglob \
16054 DLLTOOL \
16055 sharedlib_from_linklib_cmd \
16056 AR \
16057 AR_FLAGS \
16058 archiver_list_spec \
16059 STRIP \
16060 RANLIB \
16061 CC \
16062 CFLAGS \
16063 compiler \
16064 lt_cv_sys_global_symbol_pipe \
16065 lt_cv_sys_global_symbol_to_cdecl \
16066 lt_cv_sys_global_symbol_to_c_name_address \
16067 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16068 nm_file_list_spec \
16069 lt_prog_compiler_no_builtin_flag \
16070 lt_prog_compiler_pic \
16071 lt_prog_compiler_wl \
16072 lt_prog_compiler_static \
16073 lt_cv_prog_compiler_c_o \
16074 need_locks \
16075 MANIFEST_TOOL \
16076 DSYMUTIL \
16077 NMEDIT \
16078 LIPO \
16079 OTOOL \
16080 OTOOL64 \
16081 shrext_cmds \
16082 export_dynamic_flag_spec \
16083 whole_archive_flag_spec \
16084 compiler_needs_object \
16085 with_gnu_ld \
16086 allow_undefined_flag \
16087 no_undefined_flag \
16088 hardcode_libdir_flag_spec \
16089 hardcode_libdir_separator \
16090 exclude_expsyms \
16091 include_expsyms \
16092 file_list_spec \
16093 variables_saved_for_relink \
16094 libname_spec \
16095 library_names_spec \
16096 soname_spec \
16097 install_override_mode \
16098 finish_eval \
16099 old_striplib \
16100 striplib; do
16101     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16102     *[\\\\\\\`\\"\\\$]*)
16103       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16104       ;;
16105     *)
16106       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16107       ;;
16108     esac
16109 done
16110
16111 # Double-quote double-evaled strings.
16112 for var in reload_cmds \
16113 old_postinstall_cmds \
16114 old_postuninstall_cmds \
16115 old_archive_cmds \
16116 extract_expsyms_cmds \
16117 old_archive_from_new_cmds \
16118 old_archive_from_expsyms_cmds \
16119 archive_cmds \
16120 archive_expsym_cmds \
16121 module_cmds \
16122 module_expsym_cmds \
16123 export_symbols_cmds \
16124 prelink_cmds \
16125 postlink_cmds \
16126 postinstall_cmds \
16127 postuninstall_cmds \
16128 finish_cmds \
16129 sys_lib_search_path_spec \
16130 sys_lib_dlsearch_path_spec; do
16131     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16132     *[\\\\\\\`\\"\\\$]*)
16133       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16134       ;;
16135     *)
16136       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16137       ;;
16138     esac
16139 done
16140
16141 ac_aux_dir='$ac_aux_dir'
16142 xsi_shell='$xsi_shell'
16143 lt_shell_append='$lt_shell_append'
16144
16145 # See if we are running on zsh, and set the options which allow our
16146 # commands through without removal of \ escapes INIT.
16147 if test -n "\${ZSH_VERSION+set}" ; then
16148    setopt NO_GLOB_SUBST
16149 fi
16150
16151
16152     PACKAGE='$PACKAGE'
16153     VERSION='$VERSION'
16154     TIMESTAMP='$TIMESTAMP'
16155     RM='$RM'
16156     ofile='$ofile'
16157
16158
16159
16160 TARGETDIR="$TARGETDIR"
16161
16162 _ACEOF
16163
16164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165
16166 # Handling of arguments.
16167 for ac_config_target in $ac_config_targets
16168 do
16169   case $ac_config_target in
16170     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16171     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16172     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16173     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16174     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16175     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16176     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16177     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16178     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16179     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16180     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16181     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16182     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16183
16184   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16185   esac
16186 done
16187
16188
16189 # If the user did not use the arguments to specify the items to instantiate,
16190 # then the envvar interface is used.  Set only those that are not.
16191 # We use the long form for the default assignment because of an extremely
16192 # bizarre bug on SunOS 4.1.3.
16193 if $ac_need_defaults; then
16194   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16195   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16196   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16197   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16198 fi
16199
16200 # Have a temporary directory for convenience.  Make it in the build tree
16201 # simply because there is no reason against having it here, and in addition,
16202 # creating and moving files from /tmp can sometimes cause problems.
16203 # Hook for its removal unless debugging.
16204 # Note that there is a small window in which the directory will not be cleaned:
16205 # after its creation but before its name has been assigned to `$tmp'.
16206 $debug ||
16207 {
16208   tmp= ac_tmp=
16209   trap 'exit_status=$?
16210   : "${ac_tmp:=$tmp}"
16211   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16212 ' 0
16213   trap 'as_fn_exit 1' 1 2 13 15
16214 }
16215 # Create a (secure) tmp directory for tmp files.
16216
16217 {
16218   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16219   test -d "$tmp"
16220 }  ||
16221 {
16222   tmp=./conf$$-$RANDOM
16223   (umask 077 && mkdir "$tmp")
16224 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16225 ac_tmp=$tmp
16226
16227 # Set up the scripts for CONFIG_FILES section.
16228 # No need to generate them if there are no CONFIG_FILES.
16229 # This happens for instance with `./config.status config.h'.
16230 if test -n "$CONFIG_FILES"; then
16231
16232
16233 ac_cr=`echo X | tr X '\015'`
16234 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16235 # But we know of no other shell where ac_cr would be empty at this
16236 # point, so we can use a bashism as a fallback.
16237 if test "x$ac_cr" = x; then
16238   eval ac_cr=\$\'\\r\'
16239 fi
16240 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16241 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16242   ac_cs_awk_cr='\\r'
16243 else
16244   ac_cs_awk_cr=$ac_cr
16245 fi
16246
16247 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16248 _ACEOF
16249
16250
16251 {
16252   echo "cat >conf$$subs.awk <<_ACEOF" &&
16253   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16254   echo "_ACEOF"
16255 } >conf$$subs.sh ||
16256   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16257 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16258 ac_delim='%!_!# '
16259 for ac_last_try in false false false false false :; do
16260   . ./conf$$subs.sh ||
16261     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16262
16263   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16264   if test $ac_delim_n = $ac_delim_num; then
16265     break
16266   elif $ac_last_try; then
16267     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16268   else
16269     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16270   fi
16271 done
16272 rm -f conf$$subs.sh
16273
16274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16275 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16276 _ACEOF
16277 sed -n '
16278 h
16279 s/^/S["/; s/!.*/"]=/
16280 p
16281 g
16282 s/^[^!]*!//
16283 :repl
16284 t repl
16285 s/'"$ac_delim"'$//
16286 t delim
16287 :nl
16288 h
16289 s/\(.\{148\}\)..*/\1/
16290 t more1
16291 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16292 p
16293 n
16294 b repl
16295 :more1
16296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16297 p
16298 g
16299 s/.\{148\}//
16300 t nl
16301 :delim
16302 h
16303 s/\(.\{148\}\)..*/\1/
16304 t more2
16305 s/["\\]/\\&/g; s/^/"/; s/$/"/
16306 p
16307 b
16308 :more2
16309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16310 p
16311 g
16312 s/.\{148\}//
16313 t delim
16314 ' <conf$$subs.awk | sed '
16315 /^[^""]/{
16316   N
16317   s/\n//
16318 }
16319 ' >>$CONFIG_STATUS || ac_write_fail=1
16320 rm -f conf$$subs.awk
16321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16322 _ACAWK
16323 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16324   for (key in S) S_is_set[key] = 1
16325   FS = "\a"
16326
16327 }
16328 {
16329   line = $ 0
16330   nfields = split(line, field, "@")
16331   substed = 0
16332   len = length(field[1])
16333   for (i = 2; i < nfields; i++) {
16334     key = field[i]
16335     keylen = length(key)
16336     if (S_is_set[key]) {
16337       value = S[key]
16338       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16339       len += length(value) + length(field[++i])
16340       substed = 1
16341     } else
16342       len += 1 + keylen
16343   }
16344
16345   print line
16346 }
16347
16348 _ACAWK
16349 _ACEOF
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16352   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16353 else
16354   cat
16355 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16356   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16357 _ACEOF
16358
16359 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16360 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16361 # trailing colons and then remove the whole line if VPATH becomes empty
16362 # (actually we leave an empty line to preserve line numbers).
16363 if test "x$srcdir" = x.; then
16364   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16365 h
16366 s///
16367 s/^/:/
16368 s/[      ]*$/:/
16369 s/:\$(srcdir):/:/g
16370 s/:\${srcdir}:/:/g
16371 s/:@srcdir@:/:/g
16372 s/^:*//
16373 s/:*$//
16374 x
16375 s/\(=[   ]*\).*/\1/
16376 G
16377 s/\n//
16378 s/^[^=]*=[       ]*$//
16379 }'
16380 fi
16381
16382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16383 fi # test -n "$CONFIG_FILES"
16384
16385 # Set up the scripts for CONFIG_HEADERS section.
16386 # No need to generate them if there are no CONFIG_HEADERS.
16387 # This happens for instance with `./config.status Makefile'.
16388 if test -n "$CONFIG_HEADERS"; then
16389 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16390 BEGIN {
16391 _ACEOF
16392
16393 # Transform confdefs.h into an awk script `defines.awk', embedded as
16394 # here-document in config.status, that substitutes the proper values into
16395 # config.h.in to produce config.h.
16396
16397 # Create a delimiter string that does not exist in confdefs.h, to ease
16398 # handling of long lines.
16399 ac_delim='%!_!# '
16400 for ac_last_try in false false :; do
16401   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16402   if test -z "$ac_tt"; then
16403     break
16404   elif $ac_last_try; then
16405     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16406   else
16407     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16408   fi
16409 done
16410
16411 # For the awk script, D is an array of macro values keyed by name,
16412 # likewise P contains macro parameters if any.  Preserve backslash
16413 # newline sequences.
16414
16415 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16416 sed -n '
16417 s/.\{148\}/&'"$ac_delim"'/g
16418 t rset
16419 :rset
16420 s/^[     ]*#[    ]*define[       ][      ]*/ /
16421 t def
16422 d
16423 :def
16424 s/\\$//
16425 t bsnl
16426 s/["\\]/\\&/g
16427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16428 D["\1"]=" \3"/p
16429 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16430 d
16431 :bsnl
16432 s/["\\]/\\&/g
16433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16434 D["\1"]=" \3\\\\\\n"\\/p
16435 t cont
16436 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16437 t cont
16438 d
16439 :cont
16440 n
16441 s/.\{148\}/&'"$ac_delim"'/g
16442 t clear
16443 :clear
16444 s/\\$//
16445 t bsnlc
16446 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16447 d
16448 :bsnlc
16449 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16450 b cont
16451 ' <confdefs.h | sed '
16452 s/'"$ac_delim"'/"\\\
16453 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16454
16455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456   for (key in D) D_is_set[key] = 1
16457   FS = "\a"
16458 }
16459 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16460   line = \$ 0
16461   split(line, arg, " ")
16462   if (arg[1] == "#") {
16463     defundef = arg[2]
16464     mac1 = arg[3]
16465   } else {
16466     defundef = substr(arg[1], 2)
16467     mac1 = arg[2]
16468   }
16469   split(mac1, mac2, "(") #)
16470   macro = mac2[1]
16471   prefix = substr(line, 1, index(line, defundef) - 1)
16472   if (D_is_set[macro]) {
16473     # Preserve the white space surrounding the "#".
16474     print prefix "define", macro P[macro] D[macro]
16475     next
16476   } else {
16477     # Replace #undef with comments.  This is necessary, for example,
16478     # in the case of _POSIX_SOURCE, which is predefined and required
16479     # on some systems where configure will not decide to define it.
16480     if (defundef == "undef") {
16481       print "/*", prefix defundef, macro, "*/"
16482       next
16483     }
16484   }
16485 }
16486 { print }
16487 _ACAWK
16488 _ACEOF
16489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16490   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16491 fi # test -n "$CONFIG_HEADERS"
16492
16493
16494 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16495 shift
16496 for ac_tag
16497 do
16498   case $ac_tag in
16499   :[FHLC]) ac_mode=$ac_tag; continue;;
16500   esac
16501   case $ac_mode$ac_tag in
16502   :[FHL]*:*);;
16503   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16504   :[FH]-) ac_tag=-:-;;
16505   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16506   esac
16507   ac_save_IFS=$IFS
16508   IFS=:
16509   set x $ac_tag
16510   IFS=$ac_save_IFS
16511   shift
16512   ac_file=$1
16513   shift
16514
16515   case $ac_mode in
16516   :L) ac_source=$1;;
16517   :[FH])
16518     ac_file_inputs=
16519     for ac_f
16520     do
16521       case $ac_f in
16522       -) ac_f="$ac_tmp/stdin";;
16523       *) # Look for the file first in the build tree, then in the source tree
16524          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16525          # because $ac_f cannot contain `:'.
16526          test -f "$ac_f" ||
16527            case $ac_f in
16528            [\\/$]*) false;;
16529            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16530            esac ||
16531            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16532       esac
16533       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16534       as_fn_append ac_file_inputs " '$ac_f'"
16535     done
16536
16537     # Let's still pretend it is `configure' which instantiates (i.e., don't
16538     # use $as_me), people would be surprised to read:
16539     #    /* config.h.  Generated by config.status.  */
16540     configure_input='Generated from '`
16541           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16542         `' by configure.'
16543     if test x"$ac_file" != x-; then
16544       configure_input="$ac_file.  $configure_input"
16545       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16546 $as_echo "$as_me: creating $ac_file" >&6;}
16547     fi
16548     # Neutralize special characters interpreted by sed in replacement strings.
16549     case $configure_input in #(
16550     *\&* | *\|* | *\\* )
16551        ac_sed_conf_input=`$as_echo "$configure_input" |
16552        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16553     *) ac_sed_conf_input=$configure_input;;
16554     esac
16555
16556     case $ac_tag in
16557     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16558       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16559     esac
16560     ;;
16561   esac
16562
16563   ac_dir=`$as_dirname -- "$ac_file" ||
16564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16565          X"$ac_file" : 'X\(//\)[^/]' \| \
16566          X"$ac_file" : 'X\(//\)$' \| \
16567          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16568 $as_echo X"$ac_file" |
16569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16570             s//\1/
16571             q
16572           }
16573           /^X\(\/\/\)[^/].*/{
16574             s//\1/
16575             q
16576           }
16577           /^X\(\/\/\)$/{
16578             s//\1/
16579             q
16580           }
16581           /^X\(\/\).*/{
16582             s//\1/
16583             q
16584           }
16585           s/.*/./; q'`
16586   as_dir="$ac_dir"; as_fn_mkdir_p
16587   ac_builddir=.
16588
16589 case "$ac_dir" in
16590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16591 *)
16592   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16593   # A ".." for each directory in $ac_dir_suffix.
16594   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16595   case $ac_top_builddir_sub in
16596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16598   esac ;;
16599 esac
16600 ac_abs_top_builddir=$ac_pwd
16601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16602 # for backward compatibility:
16603 ac_top_builddir=$ac_top_build_prefix
16604
16605 case $srcdir in
16606   .)  # We are building in place.
16607     ac_srcdir=.
16608     ac_top_srcdir=$ac_top_builddir_sub
16609     ac_abs_top_srcdir=$ac_pwd ;;
16610   [\\/]* | ?:[\\/]* )  # Absolute name.
16611     ac_srcdir=$srcdir$ac_dir_suffix;
16612     ac_top_srcdir=$srcdir
16613     ac_abs_top_srcdir=$srcdir ;;
16614   *) # Relative name.
16615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16616     ac_top_srcdir=$ac_top_build_prefix$srcdir
16617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16618 esac
16619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16620
16621
16622   case $ac_mode in
16623   :F)
16624   #
16625   # CONFIG_FILE
16626   #
16627
16628   case $INSTALL in
16629   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16630   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16631   esac
16632   ac_MKDIR_P=$MKDIR_P
16633   case $MKDIR_P in
16634   [\\/$]* | ?:[\\/]* ) ;;
16635   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16636   esac
16637 _ACEOF
16638
16639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16640 # If the template does not know about datarootdir, expand it.
16641 # FIXME: This hack should be removed a few years after 2.60.
16642 ac_datarootdir_hack=; ac_datarootdir_seen=
16643 ac_sed_dataroot='
16644 /datarootdir/ {
16645   p
16646   q
16647 }
16648 /@datadir@/p
16649 /@docdir@/p
16650 /@infodir@/p
16651 /@localedir@/p
16652 /@mandir@/p'
16653 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16654 *datarootdir*) ac_datarootdir_seen=yes;;
16655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16656   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16657 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16658 _ACEOF
16659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660   ac_datarootdir_hack='
16661   s&@datadir@&$datadir&g
16662   s&@docdir@&$docdir&g
16663   s&@infodir@&$infodir&g
16664   s&@localedir@&$localedir&g
16665   s&@mandir@&$mandir&g
16666   s&\\\${datarootdir}&$datarootdir&g' ;;
16667 esac
16668 _ACEOF
16669
16670 # Neutralize VPATH when `$srcdir' = `.'.
16671 # Shell code in configure.ac might set extrasub.
16672 # FIXME: do we really want to maintain this feature?
16673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16674 ac_sed_extra="$ac_vpsub
16675 $extrasub
16676 _ACEOF
16677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16678 :t
16679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16680 s|@configure_input@|$ac_sed_conf_input|;t t
16681 s&@top_builddir@&$ac_top_builddir_sub&;t t
16682 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16683 s&@srcdir@&$ac_srcdir&;t t
16684 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16685 s&@top_srcdir@&$ac_top_srcdir&;t t
16686 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16687 s&@builddir@&$ac_builddir&;t t
16688 s&@abs_builddir@&$ac_abs_builddir&;t t
16689 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16690 s&@INSTALL@&$ac_INSTALL&;t t
16691 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16692 $ac_datarootdir_hack
16693 "
16694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16695   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16696
16697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16698   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16699   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16700       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16701   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16702 which seems to be undefined.  Please make sure it is defined" >&5
16703 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16704 which seems to be undefined.  Please make sure it is defined" >&2;}
16705
16706   rm -f "$ac_tmp/stdin"
16707   case $ac_file in
16708   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16709   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16710   esac \
16711   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16712  ;;
16713   :H)
16714   #
16715   # CONFIG_HEADER
16716   #
16717   if test x"$ac_file" != x-; then
16718     {
16719       $as_echo "/* $configure_input  */" \
16720       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16721     } >"$ac_tmp/config.h" \
16722       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16723     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16724       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16725 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16726     else
16727       rm -f "$ac_file"
16728       mv "$ac_tmp/config.h" "$ac_file" \
16729         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16730     fi
16731   else
16732     $as_echo "/* $configure_input  */" \
16733       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16734       || as_fn_error $? "could not create -" "$LINENO" 5
16735   fi
16736 # Compute "$ac_file"'s index in $config_headers.
16737 _am_arg="$ac_file"
16738 _am_stamp_count=1
16739 for _am_header in $config_headers :; do
16740   case $_am_header in
16741     $_am_arg | $_am_arg:* )
16742       break ;;
16743     * )
16744       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16745   esac
16746 done
16747 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16748 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16749          X"$_am_arg" : 'X\(//\)[^/]' \| \
16750          X"$_am_arg" : 'X\(//\)$' \| \
16751          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16752 $as_echo X"$_am_arg" |
16753     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16754             s//\1/
16755             q
16756           }
16757           /^X\(\/\/\)[^/].*/{
16758             s//\1/
16759             q
16760           }
16761           /^X\(\/\/\)$/{
16762             s//\1/
16763             q
16764           }
16765           /^X\(\/\).*/{
16766             s//\1/
16767             q
16768           }
16769           s/.*/./; q'`/stamp-h$_am_stamp_count
16770  ;;
16771   :L)
16772   #
16773   # CONFIG_LINK
16774   #
16775
16776   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16777     :
16778   else
16779     # Prefer the file from the source tree if names are identical.
16780     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16781       ac_source=$srcdir/$ac_source
16782     fi
16783
16784     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16785 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16786
16787     if test ! -r "$ac_source"; then
16788       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16789     fi
16790     rm -f "$ac_file"
16791
16792     # Try a relative symlink, then a hard link, then a copy.
16793     case $ac_source in
16794     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16795         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16796     esac
16797     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16798       ln "$ac_source" "$ac_file" 2>/dev/null ||
16799       cp -p "$ac_source" "$ac_file" ||
16800       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16801   fi
16802  ;;
16803   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16804 $as_echo "$as_me: executing $ac_file commands" >&6;}
16805  ;;
16806   esac
16807
16808
16809   case $ac_file$ac_mode in
16810     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16811   if test ".$ax_enable_builddir" = ".." ; then
16812     if test -f "$top_srcdir/Makefile" ; then
16813       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16814 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16815     else
16816       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16817 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16818     fi
16819   else
16820     if test -f "$ac_top_srcdir/Makefile" ; then
16821       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16822       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16823     fi
16824     if test -f "$ac_top_srcdir/Makefile" ; then
16825         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16826         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16827       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16828       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16829       then rm $ac_top_srcdir/Makefile ; fi
16830       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16831     fi
16832     if test ! -f "$ac_top_srcdir/Makefile" ; then
16833       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16834 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16835       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16836 /^\$/n
16837 x
16838 /^\$/bS
16839 x
16840 /\\\\\$/{H;d;}
16841 {H;s/.*//;x;}
16842 bM
16843 :S
16844 x
16845 /\\\\\$/{h;d;}
16846 {h;s/.*//;x;}
16847 :M
16848 s/\\(\\n\\)     /\\1 /g
16849 /^      /d
16850 /^[      ]*[\\#]/d
16851 /^VPATH *=/d
16852 s/^srcdir *=.*/srcdir = ./
16853 s/^top_srcdir *=.*/top_srcdir = ./
16854 /[:=]/!d
16855 /^\\./d
16856 / = /b
16857 / .= /b
16858 /:/!b
16859 s/:.*/:/
16860 s/ /  /g
16861 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16862 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16863 s/  / /g
16864 /^all all-all[ :]/i\\
16865 all-configured : all-all
16866 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16867 /-all-all/d
16868 a\\
16869         @ HOST="\$(HOST)\" \\\\\\
16870         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16871         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16872         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16873         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16874         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16875         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16876         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16877         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16878         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16879 /dist-all *:/a\\
16880         @ HOST="\$(HOST)\" \\\\\\
16881         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16882         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16883         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16884         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16885         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16886         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16887         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16888         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16889         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16890 /dist-[a-zA-Z0-9]*-all *:/a\\
16891         @ HOST="\$(HOST)\" \\\\\\
16892         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16893         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16894         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16895         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16896         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16897         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16898         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16899         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16900         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16901 /distclean-all *:/a\\
16902         @ HOST="\$(HOST)\" \\\\\\
16903         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16904         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16905         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16906         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16907         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16908         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16909         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16910         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16911         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16912         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16913         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16914 _EOF
16915       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16916       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16917       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16918         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16919 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16920         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16921       fi ; xxxx="####"
16922       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16923       # sanity check
16924       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16925         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16926 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16927         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16928           >$ac_top_srcdir/Makefile~
16929         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16930       fi
16931     else
16932       xxxx="\\#\\#\\#\\#"
16933       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16934       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16935       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16936         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16937         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16938       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16939         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16940 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16941         rm "$tmp/mkfile.tmp"
16942       else
16943         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16944 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16945         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16946       fi
16947     fi
16948     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16949 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16950     xxxx="####"
16951     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16952   fi
16953  ;;
16954     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16955   # Older Autoconf quotes --file arguments for eval, but not when files
16956   # are listed without --file.  Let's play safe and only enable the eval
16957   # if we detect the quoting.
16958   case $CONFIG_FILES in
16959   *\'*) eval set x "$CONFIG_FILES" ;;
16960   *)   set x $CONFIG_FILES ;;
16961   esac
16962   shift
16963   for mf
16964   do
16965     # Strip MF so we end up with the name of the file.
16966     mf=`echo "$mf" | sed -e 's/:.*$//'`
16967     # Check whether this is an Automake generated Makefile or not.
16968     # We used to match only the files named 'Makefile.in', but
16969     # some people rename them; so instead we look at the file content.
16970     # Grep'ing the first line is not enough: some people post-process
16971     # each Makefile.in and add a new line on top of each file to say so.
16972     # Grep'ing the whole file is not good either: AIX grep has a line
16973     # limit of 2048, but all sed's we know have understand at least 4000.
16974     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16975       dirpart=`$as_dirname -- "$mf" ||
16976 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16977          X"$mf" : 'X\(//\)[^/]' \| \
16978          X"$mf" : 'X\(//\)$' \| \
16979          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16980 $as_echo X"$mf" |
16981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16982             s//\1/
16983             q
16984           }
16985           /^X\(\/\/\)[^/].*/{
16986             s//\1/
16987             q
16988           }
16989           /^X\(\/\/\)$/{
16990             s//\1/
16991             q
16992           }
16993           /^X\(\/\).*/{
16994             s//\1/
16995             q
16996           }
16997           s/.*/./; q'`
16998     else
16999       continue
17000     fi
17001     # Extract the definition of DEPDIR, am__include, and am__quote
17002     # from the Makefile without running 'make'.
17003     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17004     test -z "$DEPDIR" && continue
17005     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17006     test -z "$am__include" && continue
17007     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17008     # Find all dependency output files, they are included files with
17009     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17010     # simplest approach to changing $(DEPDIR) to its actual value in the
17011     # expansion.
17012     for file in `sed -n "
17013       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17014          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17015       # Make sure the directory exists.
17016       test -f "$dirpart/$file" && continue
17017       fdir=`$as_dirname -- "$file" ||
17018 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17019          X"$file" : 'X\(//\)[^/]' \| \
17020          X"$file" : 'X\(//\)$' \| \
17021          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17022 $as_echo X"$file" |
17023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17024             s//\1/
17025             q
17026           }
17027           /^X\(\/\/\)[^/].*/{
17028             s//\1/
17029             q
17030           }
17031           /^X\(\/\/\)$/{
17032             s//\1/
17033             q
17034           }
17035           /^X\(\/\).*/{
17036             s//\1/
17037             q
17038           }
17039           s/.*/./; q'`
17040       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17041       # echo "creating $dirpart/$file"
17042       echo '# dummy' > "$dirpart/$file"
17043     done
17044   done
17045 }
17046  ;;
17047     "libtool":C)
17048
17049     # See if we are running on zsh, and set the options which allow our
17050     # commands through without removal of \ escapes.
17051     if test -n "${ZSH_VERSION+set}" ; then
17052       setopt NO_GLOB_SUBST
17053     fi
17054
17055     cfgfile="${ofile}T"
17056     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17057     $RM "$cfgfile"
17058
17059     cat <<_LT_EOF >> "$cfgfile"
17060 #! $SHELL
17061
17062 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17063 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17065 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17066 #
17067 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17068 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17069 #                 Foundation, Inc.
17070 #   Written by Gordon Matzigkeit, 1996
17071 #
17072 #   This file is part of GNU Libtool.
17073 #
17074 # GNU Libtool is free software; you can redistribute it and/or
17075 # modify it under the terms of the GNU General Public License as
17076 # published by the Free Software Foundation; either version 2 of
17077 # the License, or (at your option) any later version.
17078 #
17079 # As a special exception to the GNU General Public License,
17080 # if you distribute this file as part of a program or library that
17081 # is built using GNU Libtool, you may include this file under the
17082 # same distribution terms that you use for the rest of that program.
17083 #
17084 # GNU Libtool is distributed in the hope that it will be useful,
17085 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17087 # GNU General Public License for more details.
17088 #
17089 # You should have received a copy of the GNU General Public License
17090 # along with GNU Libtool; see the file COPYING.  If not, a copy
17091 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17092 # obtained by writing to the Free Software Foundation, Inc.,
17093 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17094
17095
17096 # The names of the tagged configurations supported by this script.
17097 available_tags=""
17098
17099 # ### BEGIN LIBTOOL CONFIG
17100
17101 # Which release of libtool.m4 was used?
17102 macro_version=$macro_version
17103 macro_revision=$macro_revision
17104
17105 # Whether or not to build shared libraries.
17106 build_libtool_libs=$enable_shared
17107
17108 # Whether or not to build static libraries.
17109 build_old_libs=$enable_static
17110
17111 # What type of objects to build.
17112 pic_mode=$pic_mode
17113
17114 # Whether or not to optimize for fast installation.
17115 fast_install=$enable_fast_install
17116
17117 # Shell to use when invoking shell scripts.
17118 SHELL=$lt_SHELL
17119
17120 # An echo program that protects backslashes.
17121 ECHO=$lt_ECHO
17122
17123 # The PATH separator for the build system.
17124 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17125
17126 # The host system.
17127 host_alias=$host_alias
17128 host=$host
17129 host_os=$host_os
17130
17131 # The build system.
17132 build_alias=$build_alias
17133 build=$build
17134 build_os=$build_os
17135
17136 # A sed program that does not truncate output.
17137 SED=$lt_SED
17138
17139 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17140 Xsed="\$SED -e 1s/^X//"
17141
17142 # A grep program that handles long lines.
17143 GREP=$lt_GREP
17144
17145 # An ERE matcher.
17146 EGREP=$lt_EGREP
17147
17148 # A literal string matcher.
17149 FGREP=$lt_FGREP
17150
17151 # A BSD- or MS-compatible name lister.
17152 NM=$lt_NM
17153
17154 # Whether we need soft or hard links.
17155 LN_S=$lt_LN_S
17156
17157 # What is the maximum length of a command?
17158 max_cmd_len=$max_cmd_len
17159
17160 # Object file suffix (normally "o").
17161 objext=$ac_objext
17162
17163 # Executable file suffix (normally "").
17164 exeext=$exeext
17165
17166 # whether the shell understands "unset".
17167 lt_unset=$lt_unset
17168
17169 # turn spaces into newlines.
17170 SP2NL=$lt_lt_SP2NL
17171
17172 # turn newlines into spaces.
17173 NL2SP=$lt_lt_NL2SP
17174
17175 # convert \$build file names to \$host format.
17176 to_host_file_cmd=$lt_cv_to_host_file_cmd
17177
17178 # convert \$build files to toolchain format.
17179 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17180
17181 # An object symbol dumper.
17182 OBJDUMP=$lt_OBJDUMP
17183
17184 # Method to check whether dependent libraries are shared objects.
17185 deplibs_check_method=$lt_deplibs_check_method
17186
17187 # Command to use when deplibs_check_method = "file_magic".
17188 file_magic_cmd=$lt_file_magic_cmd
17189
17190 # How to find potential files when deplibs_check_method = "file_magic".
17191 file_magic_glob=$lt_file_magic_glob
17192
17193 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17194 want_nocaseglob=$lt_want_nocaseglob
17195
17196 # DLL creation program.
17197 DLLTOOL=$lt_DLLTOOL
17198
17199 # Command to associate shared and link libraries.
17200 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17201
17202 # The archiver.
17203 AR=$lt_AR
17204
17205 # Flags to create an archive.
17206 AR_FLAGS=$lt_AR_FLAGS
17207
17208 # How to feed a file listing to the archiver.
17209 archiver_list_spec=$lt_archiver_list_spec
17210
17211 # A symbol stripping program.
17212 STRIP=$lt_STRIP
17213
17214 # Commands used to install an old-style archive.
17215 RANLIB=$lt_RANLIB
17216 old_postinstall_cmds=$lt_old_postinstall_cmds
17217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17218
17219 # Whether to use a lock for old archive extraction.
17220 lock_old_archive_extraction=$lock_old_archive_extraction
17221
17222 # A C compiler.
17223 LTCC=$lt_CC
17224
17225 # LTCC compiler flags.
17226 LTCFLAGS=$lt_CFLAGS
17227
17228 # Take the output of nm and produce a listing of raw symbols and C names.
17229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17230
17231 # Transform the output of nm in a proper C declaration.
17232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17233
17234 # Transform the output of nm in a C name address pair.
17235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17236
17237 # Transform the output of nm in a C name address pair when lib prefix is needed.
17238 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17239
17240 # Specify filename containing input files for \$NM.
17241 nm_file_list_spec=$lt_nm_file_list_spec
17242
17243 # The root where to search for dependent libraries,and in which our libraries should be installed.
17244 lt_sysroot=$lt_sysroot
17245
17246 # The name of the directory that contains temporary libtool files.
17247 objdir=$objdir
17248
17249 # Used to examine libraries when file_magic_cmd begins with "file".
17250 MAGIC_CMD=$MAGIC_CMD
17251
17252 # Must we lock files when doing compilation?
17253 need_locks=$lt_need_locks
17254
17255 # Manifest tool.
17256 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17257
17258 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17259 DSYMUTIL=$lt_DSYMUTIL
17260
17261 # Tool to change global to local symbols on Mac OS X.
17262 NMEDIT=$lt_NMEDIT
17263
17264 # Tool to manipulate fat objects and archives on Mac OS X.
17265 LIPO=$lt_LIPO
17266
17267 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17268 OTOOL=$lt_OTOOL
17269
17270 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17271 OTOOL64=$lt_OTOOL64
17272
17273 # Old archive suffix (normally "a").
17274 libext=$libext
17275
17276 # Shared library suffix (normally ".so").
17277 shrext_cmds=$lt_shrext_cmds
17278
17279 # The commands to extract the exported symbol list from a shared archive.
17280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17281
17282 # Variables whose values should be saved in libtool wrapper scripts and
17283 # restored at link time.
17284 variables_saved_for_relink=$lt_variables_saved_for_relink
17285
17286 # Do we need the "lib" prefix for modules?
17287 need_lib_prefix=$need_lib_prefix
17288
17289 # Do we need a version for libraries?
17290 need_version=$need_version
17291
17292 # Library versioning type.
17293 version_type=$version_type
17294
17295 # Shared library runtime path variable.
17296 runpath_var=$runpath_var
17297
17298 # Shared library path variable.
17299 shlibpath_var=$shlibpath_var
17300
17301 # Is shlibpath searched before the hard-coded library search path?
17302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17303
17304 # Format of library name prefix.
17305 libname_spec=$lt_libname_spec
17306
17307 # List of archive names.  First name is the real one, the rest are links.
17308 # The last name is the one that the linker finds with -lNAME
17309 library_names_spec=$lt_library_names_spec
17310
17311 # The coded name of the library, if different from the real name.
17312 soname_spec=$lt_soname_spec
17313
17314 # Permission mode override for installation of shared libraries.
17315 install_override_mode=$lt_install_override_mode
17316
17317 # Command to use after installation of a shared archive.
17318 postinstall_cmds=$lt_postinstall_cmds
17319
17320 # Command to use after uninstallation of a shared archive.
17321 postuninstall_cmds=$lt_postuninstall_cmds
17322
17323 # Commands used to finish a libtool library installation in a directory.
17324 finish_cmds=$lt_finish_cmds
17325
17326 # As "finish_cmds", except a single script fragment to be evaled but
17327 # not shown.
17328 finish_eval=$lt_finish_eval
17329
17330 # Whether we should hardcode library paths into libraries.
17331 hardcode_into_libs=$hardcode_into_libs
17332
17333 # Compile-time system search path for libraries.
17334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17335
17336 # Run-time system search path for libraries.
17337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17338
17339 # Whether dlopen is supported.
17340 dlopen_support=$enable_dlopen
17341
17342 # Whether dlopen of programs is supported.
17343 dlopen_self=$enable_dlopen_self
17344
17345 # Whether dlopen of statically linked programs is supported.
17346 dlopen_self_static=$enable_dlopen_self_static
17347
17348 # Commands to strip libraries.
17349 old_striplib=$lt_old_striplib
17350 striplib=$lt_striplib
17351
17352
17353 # The linker used to build libraries.
17354 LD=$lt_LD
17355
17356 # How to create reloadable object files.
17357 reload_flag=$lt_reload_flag
17358 reload_cmds=$lt_reload_cmds
17359
17360 # Commands used to build an old-style archive.
17361 old_archive_cmds=$lt_old_archive_cmds
17362
17363 # A language specific compiler.
17364 CC=$lt_compiler
17365
17366 # Is the compiler the GNU compiler?
17367 with_gcc=$GCC
17368
17369 # Compiler flag to turn off builtin functions.
17370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17371
17372 # Additional compiler flags for building library objects.
17373 pic_flag=$lt_lt_prog_compiler_pic
17374
17375 # How to pass a linker flag through the compiler.
17376 wl=$lt_lt_prog_compiler_wl
17377
17378 # Compiler flag to prevent dynamic linking.
17379 link_static_flag=$lt_lt_prog_compiler_static
17380
17381 # Does compiler simultaneously support -c and -o options?
17382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17383
17384 # Whether or not to add -lc for building shared libraries.
17385 build_libtool_need_lc=$archive_cmds_need_lc
17386
17387 # Whether or not to disallow shared libs when runtime libs are static.
17388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17389
17390 # Compiler flag to allow reflexive dlopens.
17391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17392
17393 # Compiler flag to generate shared objects directly from archives.
17394 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17395
17396 # Whether the compiler copes with passing no objects directly.
17397 compiler_needs_object=$lt_compiler_needs_object
17398
17399 # Create an old-style archive from a shared archive.
17400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17401
17402 # Create a temporary old-style archive to link instead of a shared archive.
17403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17404
17405 # Commands used to build a shared archive.
17406 archive_cmds=$lt_archive_cmds
17407 archive_expsym_cmds=$lt_archive_expsym_cmds
17408
17409 # Commands used to build a loadable module if different from building
17410 # a shared archive.
17411 module_cmds=$lt_module_cmds
17412 module_expsym_cmds=$lt_module_expsym_cmds
17413
17414 # Whether we are building with GNU ld or not.
17415 with_gnu_ld=$lt_with_gnu_ld
17416
17417 # Flag that allows shared libraries with undefined symbols to be built.
17418 allow_undefined_flag=$lt_allow_undefined_flag
17419
17420 # Flag that enforces no undefined symbols.
17421 no_undefined_flag=$lt_no_undefined_flag
17422
17423 # Flag to hardcode \$libdir into a binary during linking.
17424 # This must work even if \$libdir does not exist
17425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17426
17427 # Whether we need a single "-rpath" flag with a separated argument.
17428 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17429
17430 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17431 # DIR into the resulting binary.
17432 hardcode_direct=$hardcode_direct
17433
17434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17435 # DIR into the resulting binary and the resulting library dependency is
17436 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17437 # library is relocated.
17438 hardcode_direct_absolute=$hardcode_direct_absolute
17439
17440 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17441 # into the resulting binary.
17442 hardcode_minus_L=$hardcode_minus_L
17443
17444 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17445 # into the resulting binary.
17446 hardcode_shlibpath_var=$hardcode_shlibpath_var
17447
17448 # Set to "yes" if building a shared library automatically hardcodes DIR
17449 # into the library and all subsequent libraries and executables linked
17450 # against it.
17451 hardcode_automatic=$hardcode_automatic
17452
17453 # Set to yes if linker adds runtime paths of dependent libraries
17454 # to runtime path list.
17455 inherit_rpath=$inherit_rpath
17456
17457 # Whether libtool must link a program against all its dependency libraries.
17458 link_all_deplibs=$link_all_deplibs
17459
17460 # Set to "yes" if exported symbols are required.
17461 always_export_symbols=$always_export_symbols
17462
17463 # The commands to list exported symbols.
17464 export_symbols_cmds=$lt_export_symbols_cmds
17465
17466 # Symbols that should not be listed in the preloaded symbols.
17467 exclude_expsyms=$lt_exclude_expsyms
17468
17469 # Symbols that must always be exported.
17470 include_expsyms=$lt_include_expsyms
17471
17472 # Commands necessary for linking programs (against libraries) with templates.
17473 prelink_cmds=$lt_prelink_cmds
17474
17475 # Commands necessary for finishing linking programs.
17476 postlink_cmds=$lt_postlink_cmds
17477
17478 # Specify filename containing input files.
17479 file_list_spec=$lt_file_list_spec
17480
17481 # How to hardcode a shared library path into an executable.
17482 hardcode_action=$hardcode_action
17483
17484 # ### END LIBTOOL CONFIG
17485
17486 _LT_EOF
17487
17488   case $host_os in
17489   aix3*)
17490     cat <<\_LT_EOF >> "$cfgfile"
17491 # AIX sometimes has problems with the GCC collect2 program.  For some
17492 # reason, if we set the COLLECT_NAMES environment variable, the problems
17493 # vanish in a puff of smoke.
17494 if test "X${COLLECT_NAMES+set}" != Xset; then
17495   COLLECT_NAMES=
17496   export COLLECT_NAMES
17497 fi
17498 _LT_EOF
17499     ;;
17500   esac
17501
17502
17503 ltmain="$ac_aux_dir/ltmain.sh"
17504
17505
17506   # We use sed instead of cat because bash on DJGPP gets confused if
17507   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17508   # text mode, it properly converts lines to CR/LF.  This bash problem
17509   # is reportedly fixed, but why not run on old versions too?
17510   sed '$q' "$ltmain" >> "$cfgfile" \
17511      || (rm -f "$cfgfile"; exit 1)
17512
17513   if test x"$xsi_shell" = xyes; then
17514   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17515 func_dirname ()\
17516 {\
17517 \    case ${1} in\
17518 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17519 \      *  ) func_dirname_result="${3}" ;;\
17520 \    esac\
17521 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17522   && mv -f "$cfgfile.tmp" "$cfgfile" \
17523     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17524 test 0 -eq $? || _lt_function_replace_fail=:
17525
17526
17527   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17528 func_basename ()\
17529 {\
17530 \    func_basename_result="${1##*/}"\
17531 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17532   && mv -f "$cfgfile.tmp" "$cfgfile" \
17533     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17534 test 0 -eq $? || _lt_function_replace_fail=:
17535
17536
17537   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17538 func_dirname_and_basename ()\
17539 {\
17540 \    case ${1} in\
17541 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17542 \      *  ) func_dirname_result="${3}" ;;\
17543 \    esac\
17544 \    func_basename_result="${1##*/}"\
17545 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17546   && mv -f "$cfgfile.tmp" "$cfgfile" \
17547     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17548 test 0 -eq $? || _lt_function_replace_fail=:
17549
17550
17551   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17552 func_stripname ()\
17553 {\
17554 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17555 \    # positional parameters, so assign one to ordinary parameter first.\
17556 \    func_stripname_result=${3}\
17557 \    func_stripname_result=${func_stripname_result#"${1}"}\
17558 \    func_stripname_result=${func_stripname_result%"${2}"}\
17559 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17560   && mv -f "$cfgfile.tmp" "$cfgfile" \
17561     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562 test 0 -eq $? || _lt_function_replace_fail=:
17563
17564
17565   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17566 func_split_long_opt ()\
17567 {\
17568 \    func_split_long_opt_name=${1%%=*}\
17569 \    func_split_long_opt_arg=${1#*=}\
17570 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17571   && mv -f "$cfgfile.tmp" "$cfgfile" \
17572     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17573 test 0 -eq $? || _lt_function_replace_fail=:
17574
17575
17576   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17577 func_split_short_opt ()\
17578 {\
17579 \    func_split_short_opt_arg=${1#??}\
17580 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17581 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17582   && mv -f "$cfgfile.tmp" "$cfgfile" \
17583     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17584 test 0 -eq $? || _lt_function_replace_fail=:
17585
17586
17587   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17588 func_lo2o ()\
17589 {\
17590 \    case ${1} in\
17591 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17592 \      *)    func_lo2o_result=${1} ;;\
17593 \    esac\
17594 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17595   && mv -f "$cfgfile.tmp" "$cfgfile" \
17596     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17597 test 0 -eq $? || _lt_function_replace_fail=:
17598
17599
17600   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17601 func_xform ()\
17602 {\
17603     func_xform_result=${1%.*}.lo\
17604 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17605   && mv -f "$cfgfile.tmp" "$cfgfile" \
17606     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17607 test 0 -eq $? || _lt_function_replace_fail=:
17608
17609
17610   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17611 func_arith ()\
17612 {\
17613     func_arith_result=$(( $* ))\
17614 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17615   && mv -f "$cfgfile.tmp" "$cfgfile" \
17616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17617 test 0 -eq $? || _lt_function_replace_fail=:
17618
17619
17620   sed -e '/^func_len ()$/,/^} # func_len /c\
17621 func_len ()\
17622 {\
17623     func_len_result=${#1}\
17624 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17625   && mv -f "$cfgfile.tmp" "$cfgfile" \
17626     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17627 test 0 -eq $? || _lt_function_replace_fail=:
17628
17629 fi
17630
17631 if test x"$lt_shell_append" = xyes; then
17632   sed -e '/^func_append ()$/,/^} # func_append /c\
17633 func_append ()\
17634 {\
17635     eval "${1}+=\\${2}"\
17636 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17637   && mv -f "$cfgfile.tmp" "$cfgfile" \
17638     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17639 test 0 -eq $? || _lt_function_replace_fail=:
17640
17641
17642   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17643 func_append_quoted ()\
17644 {\
17645 \    func_quote_for_eval "${2}"\
17646 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17647 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17648   && mv -f "$cfgfile.tmp" "$cfgfile" \
17649     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17650 test 0 -eq $? || _lt_function_replace_fail=:
17651
17652
17653   # Save a `func_append' function call where possible by direct use of '+='
17654   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17655     && mv -f "$cfgfile.tmp" "$cfgfile" \
17656       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17657   test 0 -eq $? || _lt_function_replace_fail=:
17658 else
17659   # Save a `func_append' function call even when '+=' is not available
17660   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17661     && mv -f "$cfgfile.tmp" "$cfgfile" \
17662       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17663   test 0 -eq $? || _lt_function_replace_fail=:
17664 fi
17665
17666 if test x"$_lt_function_replace_fail" = x":"; then
17667   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17668 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17669 fi
17670
17671
17672    mv -f "$cfgfile" "$ofile" ||
17673     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17674   chmod +x "$ofile"
17675
17676  ;;
17677     "include":C) test -d include || mkdir include ;;
17678     "src":C)
17679 test -d src || mkdir src
17680 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17681  ;;
17682
17683   esac
17684 done # for ac_tag
17685
17686
17687 as_fn_exit 0
17688 _ACEOF
17689 ac_clean_files=$ac_clean_files_save
17690
17691 test $ac_write_fail = 0 ||
17692   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17693
17694
17695 # configure is writing to config.log, and then calls config.status.
17696 # config.status does its own redirection, appending to config.log.
17697 # Unfortunately, on DOS this fails, as config.log is still kept open
17698 # by configure, so config.status won't be able to write to it; its
17699 # output is simply discarded.  So we exec the FD to /dev/null,
17700 # effectively closing config.log, so it can be properly (re)opened and
17701 # appended to by config.status.  When coming back to configure, we
17702 # need to make the FD available again.
17703 if test "$no_create" != yes; then
17704   ac_cs_success=:
17705   ac_config_status_args=
17706   test "$silent" = yes &&
17707     ac_config_status_args="$ac_config_status_args --quiet"
17708   exec 5>/dev/null
17709   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17710   exec 5>>config.log
17711   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17712   # would make configure fail if this is the last instruction.
17713   $ac_cs_success || as_fn_exit 1
17714 fi
17715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17718 fi
17719