Add m88k and VAX support. Update some configury bits.
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.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
649 ALLOCA
650 XTENSA_FALSE
651 XTENSA_TRUE
652 VAX_FALSE
653 VAX_TRUE
654 TILE_FALSE
655 TILE_TRUE
656 PA64_HPUX_FALSE
657 PA64_HPUX_TRUE
658 PA_HPUX_FALSE
659 PA_HPUX_TRUE
660 PA_LINUX_FALSE
661 PA_LINUX_TRUE
662 SH64_FALSE
663 SH64_TRUE
664 SH_FALSE
665 SH_TRUE
666 X86_64_FALSE
667 X86_64_TRUE
668 S390_FALSE
669 S390_TRUE
670 FRV_FALSE
671 FRV_TRUE
672 LIBFFI_CRIS_FALSE
673 LIBFFI_CRIS_TRUE
674 AVR32_FALSE
675 AVR32_TRUE
676 ARM_FALSE
677 ARM_TRUE
678 ARC_FALSE
679 ARC_TRUE
680 AARCH64_FALSE
681 AARCH64_TRUE
682 POWERPC_FREEBSD_FALSE
683 POWERPC_FREEBSD_TRUE
684 POWERPC_DARWIN_FALSE
685 POWERPC_DARWIN_TRUE
686 POWERPC_AIX_FALSE
687 POWERPC_AIX_TRUE
688 POWERPC_FALSE
689 POWERPC_TRUE
690 MOXIE_FALSE
691 MOXIE_TRUE
692 METAG_FALSE
693 METAG_TRUE
694 MICROBLAZE_FALSE
695 MICROBLAZE_TRUE
696 M88K_FALSE
697 M88K_TRUE
698 M68K_FALSE
699 M68K_TRUE
700 M32R_FALSE
701 M32R_TRUE
702 IA64_FALSE
703 IA64_TRUE
704 ALPHA_FALSE
705 ALPHA_TRUE
706 X86_DARWIN_FALSE
707 X86_DARWIN_TRUE
708 X86_WIN64_FALSE
709 X86_WIN64_TRUE
710 X86_WIN32_FALSE
711 X86_WIN32_TRUE
712 X86_FREEBSD_FALSE
713 X86_FREEBSD_TRUE
714 X86_FALSE
715 X86_TRUE
716 SPARC_FALSE
717 SPARC_TRUE
718 BFIN_FALSE
719 BFIN_TRUE
720 MIPS_FALSE
721 MIPS_TRUE
722 AM_LTLDFLAGS
723 AM_RUNTESTFLAGS
724 TESTSUBDIR_FALSE
725 TESTSUBDIR_TRUE
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 PRTDIAG
730 CPP
731 OTOOL64
732 OTOOL
733 LIPO
734 NMEDIT
735 DSYMUTIL
736 MANIFEST_TOOL
737 RANLIB
738 ac_ct_AR
739 AR
740 DLLTOOL
741 OBJDUMP
742 LN_S
743 NM
744 ac_ct_DUMPBIN
745 DUMPBIN
746 LD
747 FGREP
748 EGREP
749 GREP
750 SED
751 LIBTOOL
752 am__fastdepCCAS_FALSE
753 am__fastdepCCAS_TRUE
754 CCASDEPMODE
755 CCASFLAGS
756 CCAS
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 am__nodep
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 am__untar
779 am__tar
780 AMTAR
781 am__leading_dot
782 SET_MAKE
783 AWK
784 mkdir_p
785 MKDIR_P
786 INSTALL_STRIP_PROGRAM
787 STRIP
788 install_sh
789 MAKEINFO
790 AUTOHEADER
791 AUTOMAKE
792 AUTOCONF
793 ACLOCAL
794 VERSION
795 PACKAGE
796 CYGPATH_W
797 am__isrc
798 INSTALL_DATA
799 INSTALL_SCRIPT
800 INSTALL_PROGRAM
801 ax_enable_builddir_sed
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 enable_builddir
856 enable_silent_rules
857 enable_dependency_tracking
858 enable_shared
859 enable_static
860 with_pic
861 enable_fast_install
862 with_gnu_ld
863 with_sysroot
864 enable_libtool_lock
865 enable_portable_binary
866 with_gcc_arch
867 enable_maintainer_mode
868 enable_pax_emutramp
869 enable_debug
870 enable_structs
871 enable_raw_api
872 enable_purify_safety
873 '
874       ac_precious_vars='build_alias
875 host_alias
876 target_alias
877 CCAS
878 CCASFLAGS
879 CPP
880 CPPFLAGS'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
904
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
930
931 ac_prev=
932 ac_dashdash=
933 for ac_option
934 do
935   # If the previous option needs an argument, assign it.
936   if test -n "$ac_prev"; then
937     eval $ac_prev=\$ac_option
938     ac_prev=
939     continue
940   fi
941
942   case $ac_option in
943   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944   *=)   ac_optarg= ;;
945   *)    ac_optarg=yes ;;
946   esac
947
948   # Accept the important Cygnus configure options, so we can diagnose typos.
949
950   case $ac_dashdash$ac_option in
951   --)
952     ac_dashdash=yes ;;
953
954   -bindir | --bindir | --bindi | --bind | --bin | --bi)
955     ac_prev=bindir ;;
956   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957     bindir=$ac_optarg ;;
958
959   -build | --build | --buil | --bui | --bu)
960     ac_prev=build_alias ;;
961   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962     build_alias=$ac_optarg ;;
963
964   -cache-file | --cache-file | --cache-fil | --cache-fi \
965   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966     ac_prev=cache_file ;;
967   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969     cache_file=$ac_optarg ;;
970
971   --config-cache | -C)
972     cache_file=config.cache ;;
973
974   -datadir | --datadir | --datadi | --datad)
975     ac_prev=datadir ;;
976   -datadir=* | --datadir=* | --datadi=* | --datad=*)
977     datadir=$ac_optarg ;;
978
979   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980   | --dataroo | --dataro | --datar)
981     ac_prev=datarootdir ;;
982   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984     datarootdir=$ac_optarg ;;
985
986   -disable-* | --disable-*)
987     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988     # Reject names that are not valid shell variable names.
989     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990       as_fn_error $? "invalid feature name: $ac_useropt"
991     ac_useropt_orig=$ac_useropt
992     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993     case $ac_user_opts in
994       *"
995 "enable_$ac_useropt"
996 "*) ;;
997       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998          ac_unrecognized_sep=', ';;
999     esac
1000     eval enable_$ac_useropt=no ;;
1001
1002   -docdir | --docdir | --docdi | --doc | --do)
1003     ac_prev=docdir ;;
1004   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005     docdir=$ac_optarg ;;
1006
1007   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008     ac_prev=dvidir ;;
1009   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010     dvidir=$ac_optarg ;;
1011
1012   -enable-* | --enable-*)
1013     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016       as_fn_error $? "invalid feature name: $ac_useropt"
1017     ac_useropt_orig=$ac_useropt
1018     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019     case $ac_user_opts in
1020       *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024          ac_unrecognized_sep=', ';;
1025     esac
1026     eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030   | --exec | --exe | --ex)
1031     ac_prev=exec_prefix ;;
1032   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034   | --exec=* | --exe=* | --ex=*)
1035     exec_prefix=$ac_optarg ;;
1036
1037   -gas | --gas | --ga | --g)
1038     # Obsolete; use --with-gas.
1039     with_gas=yes ;;
1040
1041   -help | --help | --hel | --he | -h)
1042     ac_init_help=long ;;
1043   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044     ac_init_help=recursive ;;
1045   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046     ac_init_help=short ;;
1047
1048   -host | --host | --hos | --ho)
1049     ac_prev=host_alias ;;
1050   -host=* | --host=* | --hos=* | --ho=*)
1051     host_alias=$ac_optarg ;;
1052
1053   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054     ac_prev=htmldir ;;
1055   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056   | --ht=*)
1057     htmldir=$ac_optarg ;;
1058
1059   -includedir | --includedir | --includedi | --included | --include \
1060   | --includ | --inclu | --incl | --inc)
1061     ac_prev=includedir ;;
1062   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063   | --includ=* | --inclu=* | --incl=* | --inc=*)
1064     includedir=$ac_optarg ;;
1065
1066   -infodir | --infodir | --infodi | --infod | --info | --inf)
1067     ac_prev=infodir ;;
1068   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069     infodir=$ac_optarg ;;
1070
1071   -libdir | --libdir | --libdi | --libd)
1072     ac_prev=libdir ;;
1073   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074     libdir=$ac_optarg ;;
1075
1076   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077   | --libexe | --libex | --libe)
1078     ac_prev=libexecdir ;;
1079   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080   | --libexe=* | --libex=* | --libe=*)
1081     libexecdir=$ac_optarg ;;
1082
1083   -localedir | --localedir | --localedi | --localed | --locale)
1084     ac_prev=localedir ;;
1085   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086     localedir=$ac_optarg ;;
1087
1088   -localstatedir | --localstatedir | --localstatedi | --localstated \
1089   | --localstate | --localstat | --localsta | --localst | --locals)
1090     ac_prev=localstatedir ;;
1091   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093     localstatedir=$ac_optarg ;;
1094
1095   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096     ac_prev=mandir ;;
1097   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098     mandir=$ac_optarg ;;
1099
1100   -nfp | --nfp | --nf)
1101     # Obsolete; use --without-fp.
1102     with_fp=no ;;
1103
1104   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105   | --no-cr | --no-c | -n)
1106     no_create=yes ;;
1107
1108   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110     no_recursion=yes ;;
1111
1112   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114   | --oldin | --oldi | --old | --ol | --o)
1115     ac_prev=oldincludedir ;;
1116   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119     oldincludedir=$ac_optarg ;;
1120
1121   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122     ac_prev=prefix ;;
1123   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124     prefix=$ac_optarg ;;
1125
1126   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127   | --program-pre | --program-pr | --program-p)
1128     ac_prev=program_prefix ;;
1129   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131     program_prefix=$ac_optarg ;;
1132
1133   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134   | --program-suf | --program-su | --program-s)
1135     ac_prev=program_suffix ;;
1136   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138     program_suffix=$ac_optarg ;;
1139
1140   -program-transform-name | --program-transform-name \
1141   | --program-transform-nam | --program-transform-na \
1142   | --program-transform-n | --program-transform- \
1143   | --program-transform | --program-transfor \
1144   | --program-transfo | --program-transf \
1145   | --program-trans | --program-tran \
1146   | --progr-tra | --program-tr | --program-t)
1147     ac_prev=program_transform_name ;;
1148   -program-transform-name=* | --program-transform-name=* \
1149   | --program-transform-nam=* | --program-transform-na=* \
1150   | --program-transform-n=* | --program-transform-=* \
1151   | --program-transform=* | --program-transfor=* \
1152   | --program-transfo=* | --program-transf=* \
1153   | --program-trans=* | --program-tran=* \
1154   | --progr-tra=* | --program-tr=* | --program-t=*)
1155     program_transform_name=$ac_optarg ;;
1156
1157   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158     ac_prev=pdfdir ;;
1159   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160     pdfdir=$ac_optarg ;;
1161
1162   -psdir | --psdir | --psdi | --psd | --ps)
1163     ac_prev=psdir ;;
1164   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165     psdir=$ac_optarg ;;
1166
1167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168   | -silent | --silent | --silen | --sile | --sil)
1169     silent=yes ;;
1170
1171   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172     ac_prev=sbindir ;;
1173   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174   | --sbi=* | --sb=*)
1175     sbindir=$ac_optarg ;;
1176
1177   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179   | --sharedst | --shareds | --shared | --share | --shar \
1180   | --sha | --sh)
1181     ac_prev=sharedstatedir ;;
1182   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185   | --sha=* | --sh=*)
1186     sharedstatedir=$ac_optarg ;;
1187
1188   -site | --site | --sit)
1189     ac_prev=site ;;
1190   -site=* | --site=* | --sit=*)
1191     site=$ac_optarg ;;
1192
1193   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194     ac_prev=srcdir ;;
1195   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196     srcdir=$ac_optarg ;;
1197
1198   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199   | --syscon | --sysco | --sysc | --sys | --sy)
1200     ac_prev=sysconfdir ;;
1201   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203     sysconfdir=$ac_optarg ;;
1204
1205   -target | --target | --targe | --targ | --tar | --ta | --t)
1206     ac_prev=target_alias ;;
1207   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208     target_alias=$ac_optarg ;;
1209
1210   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211     verbose=yes ;;
1212
1213   -version | --version | --versio | --versi | --vers | -V)
1214     ac_init_version=: ;;
1215
1216   -with-* | --with-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       as_fn_error $? "invalid package name: $ac_useropt"
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=\$ac_optarg ;;
1231
1232   -without-* | --without-*)
1233     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236       as_fn_error $? "invalid package name: $ac_useropt"
1237     ac_useropt_orig=$ac_useropt
1238     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239     case $ac_user_opts in
1240       *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244          ac_unrecognized_sep=', ';;
1245     esac
1246     eval with_$ac_useropt=no ;;
1247
1248   --x)
1249     # Obsolete; use --with-x.
1250     with_x=yes ;;
1251
1252   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253   | --x-incl | --x-inc | --x-in | --x-i)
1254     ac_prev=x_includes ;;
1255   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257     x_includes=$ac_optarg ;;
1258
1259   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261     ac_prev=x_libraries ;;
1262   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264     x_libraries=$ac_optarg ;;
1265
1266   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1268     ;;
1269
1270   *=*)
1271     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272     # Reject names that are not valid shell variable names.
1273     case $ac_envvar in #(
1274       '' | [0-9]* | *[!_$as_cr_alnum]* )
1275       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276     esac
1277     eval $ac_envvar=\$ac_optarg
1278     export $ac_envvar ;;
1279
1280   *)
1281     # FIXME: should be removed in autoconf 3.0.
1282     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286     ;;
1287
1288   esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293   as_fn_error $? "missing argument to $ac_option"
1294 fi
1295
1296 if test -n "$ac_unrecognized_opts"; then
1297   case $enable_option_checking in
1298     no) ;;
1299     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301   esac
1302 fi
1303
1304 # Check all directory arguments for consistency.
1305 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306                 datadir sysconfdir sharedstatedir localstatedir includedir \
1307                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308                 libdir localedir mandir
1309 do
1310   eval ac_val=\$$ac_var
1311   # Remove trailing slashes.
1312   case $ac_val in
1313     */ )
1314       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315       eval $ac_var=\$ac_val;;
1316   esac
1317   # Be sure to have absolute directory names.
1318   case $ac_val in
1319     [\\/$]* | ?:[\\/]* )  continue;;
1320     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321   esac
1322   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334   if test "x$build_alias" = x; then
1335     cross_compiling=maybe
1336   elif test "x$build_alias" != "x$host_alias"; then
1337     cross_compiling=yes
1338   fi
1339 fi
1340
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344 test "$silent" = yes && exec 6>/dev/null
1345
1346
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350   as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352   as_fn_error $? "pwd does not report name of working directory"
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357   ac_srcdir_defaulted=yes
1358   # Try the directory containing this script, then the parent directory.
1359   ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361          X"$as_myself" : 'X\(//\)[^/]' \| \
1362          X"$as_myself" : 'X\(//\)$' \| \
1363          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)[^/].*/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\).*/{
1378             s//\1/
1379             q
1380           }
1381           s/.*/./; q'`
1382   srcdir=$ac_confdir
1383   if test ! -r "$srcdir/$ac_unique_file"; then
1384     srcdir=..
1385   fi
1386 else
1387   ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392 fi
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396         pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399   srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_env_${ac_var}_value=\$${ac_var}
1410   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418   # Omit some internal or obsolete options to make the list less imposing.
1419   # This message is too long to be a string in the A/UX 3.1 sh.
1420   cat <<_ACEOF
1421 \`configure' configures libffi 3.0.14-rc0 to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431   -h, --help              display this help and exit
1432       --help=short        display options specific to this package
1433       --help=recursive    display the short help of all the included packages
1434   -V, --version           display version information and exit
1435   -q, --quiet, --silent   do not print \`checking ...' messages
1436       --cache-file=FILE   cache test results in FILE [disabled]
1437   -C, --config-cache      alias for \`--cache-file=config.cache'
1438   -n, --no-create         do not create output files
1439       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442   --prefix=PREFIX         install architecture-independent files in PREFIX
1443                           [$ac_default_prefix]
1444   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445                           [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455   --bindir=DIR            user executables [EPREFIX/bin]
1456   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1457   --libexecdir=DIR        program executables [EPREFIX/libexec]
1458   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1459   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1460   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1461   --libdir=DIR            object code libraries [EPREFIX/lib]
1462   --includedir=DIR        C header files [PREFIX/include]
1463   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1464   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1465   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1466   --infodir=DIR           info documentation [DATAROOTDIR/info]
1467   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1468   --mandir=DIR            man documentation [DATAROOTDIR/man]
1469   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1470   --htmldir=DIR           html documentation [DOCDIR]
1471   --dvidir=DIR            dvi documentation [DOCDIR]
1472   --pdfdir=DIR            pdf documentation [DOCDIR]
1473   --psdir=DIR             ps documentation [DOCDIR]
1474 _ACEOF
1475
1476   cat <<\_ACEOF
1477
1478 Program names:
1479   --program-prefix=PREFIX            prepend PREFIX to installed program names
1480   --program-suffix=SUFFIX            append SUFFIX to installed program names
1481   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
1483 System types:
1484   --build=BUILD     configure for building on BUILD [guessed]
1485   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486   --target=TARGET   configure for building compilers for TARGET [HOST]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491   case $ac_init_help in
1492      short | recursive ) echo "Configuration of libffi 3.0.14-rc0:";;
1493    esac
1494   cat <<\_ACEOF
1495
1496 Optional Features:
1497   --disable-option-checking  ignore unrecognized --enable/--with options
1498   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500   --disable-builddir      disable automatic build in subdir of sources
1501
1502   --enable-silent-rules   less verbose build output (undo: "make V=1")
1503   --disable-silent-rules  verbose build output (undo: "make V=0")
1504   --enable-dependency-tracking
1505                           do not reject slow dependency extractors
1506   --disable-dependency-tracking
1507                           speeds up one-time build
1508   --enable-shared[=PKGS]  build shared libraries [default=yes]
1509   --enable-static[=PKGS]  build static libraries [default=yes]
1510   --enable-fast-install[=PKGS]
1511                           optimize for fast installation [default=yes]
1512   --disable-libtool-lock  avoid locking (might break parallel builds)
1513   --enable-portable-binary
1514                           disable compiler optimizations that would produce
1515                           unportable binaries
1516   --enable-maintainer-mode
1517                           enable make rules and dependencies not useful (and
1518                           sometimes confusing) to the casual installer
1519   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1520   --enable-debug          debugging mode
1521   --disable-structs       omit code for struct support
1522   --disable-raw-api       make the raw api unavailable
1523   --enable-purify-safety  purify-safe mode
1524
1525 Optional Packages:
1526   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1527   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1528   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1529                           both]
1530   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1531   --with-sysroot=DIR Search for dependent libraries within DIR
1532                         (or the compiler's sysroot if not specified).
1533   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1534                           instead of guessing
1535
1536 Some influential environment variables:
1537   CC          C compiler command
1538   CFLAGS      C compiler flags
1539   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540               nonstandard directory <lib dir>
1541   LIBS        libraries to pass to the linker, e.g. -l<library>
1542   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543               you have headers in a nonstandard directory <include dir>
1544   CCAS        assembler compiler command (defaults to CC)
1545   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1546   CPP         C preprocessor
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 Report bugs to <http://github.com/atgreen/libffi/issues>.
1552 _ACEOF
1553 ac_status=$?
1554 fi
1555
1556 if test "$ac_init_help" = "recursive"; then
1557   # If there are subdirs, report their specific --help.
1558   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559     test -d "$ac_dir" ||
1560       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561       continue
1562     ac_builddir=.
1563
1564 case "$ac_dir" in
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *)
1567   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568   # A ".." for each directory in $ac_dir_suffix.
1569   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570   case $ac_top_builddir_sub in
1571   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573   esac ;;
1574 esac
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1579
1580 case $srcdir in
1581   .)  # We are building in place.
1582     ac_srcdir=.
1583     ac_top_srcdir=$ac_top_builddir_sub
1584     ac_abs_top_srcdir=$ac_pwd ;;
1585   [\\/]* | ?:[\\/]* )  # Absolute name.
1586     ac_srcdir=$srcdir$ac_dir_suffix;
1587     ac_top_srcdir=$srcdir
1588     ac_abs_top_srcdir=$srcdir ;;
1589   *) # Relative name.
1590     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591     ac_top_srcdir=$ac_top_build_prefix$srcdir
1592     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 esac
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595
1596     cd "$ac_dir" || { ac_status=$?; continue; }
1597     # Check for guested configure.
1598     if test -f "$ac_srcdir/configure.gnu"; then
1599       echo &&
1600       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601     elif test -f "$ac_srcdir/configure"; then
1602       echo &&
1603       $SHELL "$ac_srcdir/configure" --help=recursive
1604     else
1605       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606     fi || ac_status=$?
1607     cd "$ac_pwd" || { ac_status=$?; break; }
1608   done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613   cat <<\_ACEOF
1614 libffi configure 3.0.14-rc0
1615 generated by GNU Autoconf 2.69
1616
1617 Copyright (C) 2012 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621   exit
1622 fi
1623
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1627
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   rm -f conftest.$ac_objext
1635   if { { ac_try="$ac_compile"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_compile") 2>conftest.err
1643   ac_status=$?
1644   if test -s conftest.err; then
1645     grep -v '^ *+' conftest.err >conftest.er1
1646     cat conftest.er1 >&5
1647     mv -f conftest.er1 conftest.err
1648   fi
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } && {
1651          test -z "$ac_c_werror_flag" ||
1652          test ! -s conftest.err
1653        } && test -s conftest.$ac_objext; then :
1654   ac_retval=0
1655 else
1656   $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659         ac_retval=1
1660 fi
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662   as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_compile
1665
1666 # ac_fn_c_try_link LINENO
1667 # -----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_link ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   rm -f conftest.$ac_objext conftest$ac_exeext
1673   if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_link") 2>conftest.err
1681   ac_status=$?
1682   if test -s conftest.err; then
1683     grep -v '^ *+' conftest.err >conftest.er1
1684     cat conftest.er1 >&5
1685     mv -f conftest.er1 conftest.err
1686   fi
1687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688   test $ac_status = 0; } && {
1689          test -z "$ac_c_werror_flag" ||
1690          test ! -s conftest.err
1691        } && test -s conftest$ac_exeext && {
1692          test "$cross_compiling" = yes ||
1693          test -x conftest$ac_exeext
1694        }; then :
1695   ac_retval=0
1696 else
1697   $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700         ac_retval=1
1701 fi
1702   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704   # interfere with the next link command; also delete a directory that is
1705   # left behind by Apple's compiler.  We do this before executing the actions.
1706   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708   as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_link
1711
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722   $as_echo_n "(cached) " >&6
1723 else
1724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h.  */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730   eval "$3=yes"
1731 else
1732   eval "$3=no"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_compile
1742
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_cpp ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757   ac_status=$?
1758   if test -s conftest.err; then
1759     grep -v '^ *+' conftest.err >conftest.er1
1760     cat conftest.er1 >&5
1761     mv -f conftest.er1 conftest.err
1762   fi
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } > conftest.i && {
1765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766          test ! -s conftest.err
1767        }; then :
1768   ac_retval=0
1769 else
1770   $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773     ac_retval=1
1774 fi
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776   as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_cpp
1779
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1784 ac_fn_c_try_run ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_link") 2>&5
1795   ac_status=$?
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798   { { case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_try") 2>&5
1805   ac_status=$?
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; }; }; then :
1808   ac_retval=0
1809 else
1810   $as_echo "$as_me: program exited with status $ac_status" >&5
1811        $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814        ac_retval=$ac_status
1815 fi
1816   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818   as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_run
1821
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1837 #define $2 innocuous_$2
1838
1839 /* System header to define __stub macros and hopefully few prototypes,
1840     which can conflict with char $2 (); below.
1841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842     <limits.h> exists even on freestanding compilers.  */
1843
1844 #ifdef __STDC__
1845 # include <limits.h>
1846 #else
1847 # include <assert.h>
1848 #endif
1849
1850 #undef $2
1851
1852 /* Override any GCC internal prototype to avoid an error.
1853    Use char because int might match the return type of a GCC
1854    builtin and then its argument prototype would still apply.  */
1855 #ifdef __cplusplus
1856 extern "C"
1857 #endif
1858 char $2 ();
1859 /* The GNU C library defines this for functions which it implements
1860     to always fail with ENOSYS.  Some functions are actually named
1861     something starting with __ and the normal name is an alias.  */
1862 #if defined __stub_$2 || defined __stub___$2
1863 choke me
1864 #endif
1865
1866 int
1867 main ()
1868 {
1869 return $2 ();
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_link "$LINENO"; then :
1875   eval "$3=yes"
1876 else
1877   eval "$3=no"
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext \
1880     conftest$ac_exeext conftest.$ac_ext
1881 fi
1882 eval ac_res=\$$3
1883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_func
1888
1889 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1890 # --------------------------------------------
1891 # Tries to find the compile-time value of EXPR in a program that includes
1892 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1893 # computed
1894 ac_fn_c_compute_int ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   if test "$cross_compiling" = yes; then
1898     # Depending upon the size, compute the lo and hi bounds.
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h.  */
1901 $4
1902 int
1903 main ()
1904 {
1905 static int test_array [1 - 2 * !(($2) >= 0)];
1906 test_array [0] = 0;
1907 return test_array [0];
1908
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   ac_lo=0 ac_mid=0
1915   while :; do
1916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 $4
1919 int
1920 main ()
1921 {
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0;
1924 return test_array [0];
1925
1926   ;
1927   return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931   ac_hi=$ac_mid; break
1932 else
1933   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1934                         if test $ac_lo -le $ac_mid; then
1935                           ac_lo= ac_hi=
1936                           break
1937                         fi
1938                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941   done
1942 else
1943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) < 0)];
1950 test_array [0] = 0;
1951 return test_array [0];
1952
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958   ac_hi=-1 ac_mid=-1
1959   while :; do
1960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h.  */
1962 $4
1963 int
1964 main ()
1965 {
1966 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1967 test_array [0] = 0;
1968 return test_array [0];
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975   ac_lo=$ac_mid; break
1976 else
1977   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1978                         if test $ac_mid -le $ac_hi; then
1979                           ac_lo= ac_hi=
1980                           break
1981                         fi
1982                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985   done
1986 else
1987   ac_lo= ac_hi=
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 # Binary search between lo and hi bounds.
1993 while test "x$ac_lo" != "x$ac_hi"; do
1994   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $4
1998 int
1999 main ()
2000 {
2001 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2002 test_array [0] = 0;
2003 return test_array [0];
2004
2005   ;
2006   return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010   ac_hi=$ac_mid
2011 else
2012   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 done
2016 case $ac_lo in #((
2017 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2018 '') ac_retval=1 ;;
2019 esac
2020   else
2021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 static long int longval () { return $2; }
2025 static unsigned long int ulongval () { return $2; }
2026 #include <stdio.h>
2027 #include <stdlib.h>
2028 int
2029 main ()
2030 {
2031
2032   FILE *f = fopen ("conftest.val", "w");
2033   if (! f)
2034     return 1;
2035   if (($2) < 0)
2036     {
2037       long int i = longval ();
2038       if (i != ($2))
2039         return 1;
2040       fprintf (f, "%ld", i);
2041     }
2042   else
2043     {
2044       unsigned long int i = ulongval ();
2045       if (i != ($2))
2046         return 1;
2047       fprintf (f, "%lu", i);
2048     }
2049   /* Do not output a trailing newline, as this causes \r\n confusion
2050      on some platforms.  */
2051   return ferror (f) || fclose (f) != 0;
2052
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_run "$LINENO"; then :
2058   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2059 else
2060   ac_retval=1
2061 fi
2062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2063   conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 rm -f conftest.val
2065
2066   fi
2067   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068   as_fn_set_status $ac_retval
2069
2070 } # ac_fn_c_compute_int
2071
2072 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2073 # -------------------------------------------------------
2074 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2075 # the include files in INCLUDES and setting the cache variable VAR
2076 # accordingly.
2077 ac_fn_c_check_header_mongrel ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   if eval \${$3+:} false; then :
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084   $as_echo_n "(cached) " >&6
2085 fi
2086 eval ac_res=\$$3
2087                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 else
2090   # Is the header compilable?
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2092 $as_echo_n "checking $2 usability... " >&6; }
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099   ac_header_compiler=yes
2100 else
2101   ac_header_compiler=no
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2105 $as_echo "$ac_header_compiler" >&6; }
2106
2107 # Is the header present?
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2109 $as_echo_n "checking $2 presence... " >&6; }
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 #include <$2>
2113 _ACEOF
2114 if ac_fn_c_try_cpp "$LINENO"; then :
2115   ac_header_preproc=yes
2116 else
2117   ac_header_preproc=no
2118 fi
2119 rm -f conftest.err conftest.i conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2121 $as_echo "$ac_header_preproc" >&6; }
2122
2123 # So?  What about this header?
2124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2125   yes:no: )
2126     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2127 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2130     ;;
2131   no:yes:* )
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2133 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2135 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2137 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2139 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 ( $as_echo "## ------------------------------------------------------ ##
2143 ## Report this to http://github.com/atgreen/libffi/issues ##
2144 ## ------------------------------------------------------ ##"
2145      ) | sed "s/^/$as_me: WARNING:     /" >&2
2146     ;;
2147 esac
2148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \${$3+:} false; then :
2151   $as_echo_n "(cached) " >&6
2152 else
2153   eval "$3=\$ac_header_compiler"
2154 fi
2155 eval ac_res=\$$3
2156                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 fi
2159   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161 } # ac_fn_c_check_header_mongrel
2162
2163 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2164 # -------------------------------------------
2165 # Tests whether TYPE exists after having included INCLUDES, setting cache
2166 # variable VAR accordingly.
2167 ac_fn_c_check_type ()
2168 {
2169   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173   $as_echo_n "(cached) " >&6
2174 else
2175   eval "$3=no"
2176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 $4
2179 int
2180 main ()
2181 {
2182 if (sizeof ($2))
2183          return 0;
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h.  */
2191 $4
2192 int
2193 main ()
2194 {
2195 if (sizeof (($2)))
2196             return 0;
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202
2203 else
2204   eval "$3=yes"
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$3
2211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_check_type
2216 cat >config.log <<_ACEOF
2217 This file contains any messages produced by compilers while
2218 running configure, to aid debugging if configure makes a mistake.
2219
2220 It was created by libffi $as_me 3.0.14-rc0, which was
2221 generated by GNU Autoconf 2.69.  Invocation command line was
2222
2223   $ $0 $@
2224
2225 _ACEOF
2226 exec 5>>config.log
2227 {
2228 cat <<_ASUNAME
2229 ## --------- ##
2230 ## Platform. ##
2231 ## --------- ##
2232
2233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238
2239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2241
2242 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2243 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2246 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2247 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2248 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2249
2250 _ASUNAME
2251
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255   IFS=$as_save_IFS
2256   test -z "$as_dir" && as_dir=.
2257     $as_echo "PATH: $as_dir"
2258   done
2259 IFS=$as_save_IFS
2260
2261 } >&5
2262
2263 cat >&5 <<_ACEOF
2264
2265
2266 ## ----------- ##
2267 ## Core tests. ##
2268 ## ----------- ##
2269
2270 _ACEOF
2271
2272
2273 # Keep a trace of the command line.
2274 # Strip out --no-create and --no-recursion so they do not pile up.
2275 # Strip out --silent because we don't want to record it for future runs.
2276 # Also quote any args containing shell meta-characters.
2277 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_configure_args=
2279 ac_configure_args0=
2280 ac_configure_args1=
2281 ac_must_keep_next=false
2282 for ac_pass in 1 2
2283 do
2284   for ac_arg
2285   do
2286     case $ac_arg in
2287     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289     | -silent | --silent | --silen | --sile | --sil)
2290       continue ;;
2291     *\'*)
2292       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293     esac
2294     case $ac_pass in
2295     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296     2)
2297       as_fn_append ac_configure_args1 " '$ac_arg'"
2298       if test $ac_must_keep_next = true; then
2299         ac_must_keep_next=false # Got value, back to normal.
2300       else
2301         case $ac_arg in
2302           *=* | --config-cache | -C | -disable-* | --disable-* \
2303           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305           | -with-* | --with-* | -without-* | --without-* | --x)
2306             case "$ac_configure_args0 " in
2307               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308             esac
2309             ;;
2310           -* ) ac_must_keep_next=true ;;
2311         esac
2312       fi
2313       as_fn_append ac_configure_args " '$ac_arg'"
2314       ;;
2315     esac
2316   done
2317 done
2318 { ac_configure_args0=; unset ac_configure_args0;}
2319 { ac_configure_args1=; unset ac_configure_args1;}
2320
2321 # When interrupted or exit'd, cleanup temporary files, and complete
2322 # config.log.  We remove comments because anyway the quotes in there
2323 # would cause problems or look ugly.
2324 # WARNING: Use '\'' to represent an apostrophe within the trap.
2325 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326 trap 'exit_status=$?
2327   # Save into config.log some information that might help in debugging.
2328   {
2329     echo
2330
2331     $as_echo "## ---------------- ##
2332 ## Cache variables. ##
2333 ## ---------------- ##"
2334     echo
2335     # The following way of writing the cache mishandles newlines in values,
2336 (
2337   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338     eval ac_val=\$$ac_var
2339     case $ac_val in #(
2340     *${as_nl}*)
2341       case $ac_var in #(
2342       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344       esac
2345       case $ac_var in #(
2346       _ | IFS | as_nl) ;; #(
2347       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348       *) { eval $ac_var=; unset $ac_var;} ;;
2349       esac ;;
2350     esac
2351   done
2352   (set) 2>&1 |
2353     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354     *${as_nl}ac_space=\ *)
2355       sed -n \
2356         "s/'\''/'\''\\\\'\'''\''/g;
2357           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358       ;; #(
2359     *)
2360       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361       ;;
2362     esac |
2363     sort
2364 )
2365     echo
2366
2367     $as_echo "## ----------------- ##
2368 ## Output variables. ##
2369 ## ----------------- ##"
2370     echo
2371     for ac_var in $ac_subst_vars
2372     do
2373       eval ac_val=\$$ac_var
2374       case $ac_val in
2375       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376       esac
2377       $as_echo "$ac_var='\''$ac_val'\''"
2378     done | sort
2379     echo
2380
2381     if test -n "$ac_subst_files"; then
2382       $as_echo "## ------------------- ##
2383 ## File substitutions. ##
2384 ## ------------------- ##"
2385       echo
2386       for ac_var in $ac_subst_files
2387       do
2388         eval ac_val=\$$ac_var
2389         case $ac_val in
2390         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391         esac
2392         $as_echo "$ac_var='\''$ac_val'\''"
2393       done | sort
2394       echo
2395     fi
2396
2397     if test -s confdefs.h; then
2398       $as_echo "## ----------- ##
2399 ## confdefs.h. ##
2400 ## ----------- ##"
2401       echo
2402       cat confdefs.h
2403       echo
2404     fi
2405     test "$ac_signal" != 0 &&
2406       $as_echo "$as_me: caught signal $ac_signal"
2407     $as_echo "$as_me: exit $exit_status"
2408   } >&5
2409   rm -f core *.core core.conftest.* &&
2410     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411     exit $exit_status
2412 ' 0
2413 for ac_signal in 1 2 13 15; do
2414   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 done
2416 ac_signal=0
2417
2418 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2419 rm -f -r conftest* confdefs.h
2420
2421 $as_echo "/* confdefs.h */" > confdefs.h
2422
2423 # Predefined preprocessor variables.
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_NAME "$PACKAGE_NAME"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_STRING "$PACKAGE_STRING"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_URL "$PACKAGE_URL"
2447 _ACEOF
2448
2449
2450 # Let the site file select an alternate cache file if it wants to.
2451 # Prefer an explicitly selected file to automatically selected ones.
2452 ac_site_file1=NONE
2453 ac_site_file2=NONE
2454 if test -n "$CONFIG_SITE"; then
2455   # We do not want a PATH search for config.site.
2456   case $CONFIG_SITE in #((
2457     -*)  ac_site_file1=./$CONFIG_SITE;;
2458     */*) ac_site_file1=$CONFIG_SITE;;
2459     *)   ac_site_file1=./$CONFIG_SITE;;
2460   esac
2461 elif test "x$prefix" != xNONE; then
2462   ac_site_file1=$prefix/share/config.site
2463   ac_site_file2=$prefix/etc/config.site
2464 else
2465   ac_site_file1=$ac_default_prefix/share/config.site
2466   ac_site_file2=$ac_default_prefix/etc/config.site
2467 fi
2468 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469 do
2470   test "x$ac_site_file" = xNONE && continue
2471   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474     sed 's/^/| /' "$ac_site_file" >&5
2475     . "$ac_site_file" \
2476       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478 as_fn_error $? "failed to load site script $ac_site_file
2479 See \`config.log' for more details" "$LINENO" 5; }
2480   fi
2481 done
2482
2483 if test -r "$cache_file"; then
2484   # Some versions of bash will fail to source /dev/null (special files
2485   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2486   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488 $as_echo "$as_me: loading cache $cache_file" >&6;}
2489     case $cache_file in
2490       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491       *)                      . "./$cache_file";;
2492     esac
2493   fi
2494 else
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497   >$cache_file
2498 fi
2499
2500 # Check that the precious variables saved in the cache have kept the same
2501 # value.
2502 ac_cache_corrupted=false
2503 for ac_var in $ac_precious_vars; do
2504   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505   eval ac_new_set=\$ac_env_${ac_var}_set
2506   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507   eval ac_new_val=\$ac_env_${ac_var}_value
2508   case $ac_old_set,$ac_new_set in
2509     set,)
2510       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512       ac_cache_corrupted=: ;;
2513     ,set)
2514       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516       ac_cache_corrupted=: ;;
2517     ,);;
2518     *)
2519       if test "x$ac_old_val" != "x$ac_new_val"; then
2520         # differences in whitespace do not lead to failure.
2521         ac_old_val_w=`echo x $ac_old_val`
2522         ac_new_val_w=`echo x $ac_new_val`
2523         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526           ac_cache_corrupted=:
2527         else
2528           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530           eval $ac_var=\$ac_old_val
2531         fi
2532         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2533 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2534         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2535 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2536       fi;;
2537   esac
2538   # Pass precious variables to config.status.
2539   if test "$ac_new_set" = set; then
2540     case $ac_new_val in
2541     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542     *) ac_arg=$ac_var=$ac_new_val ;;
2543     esac
2544     case " $ac_configure_args " in
2545       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2546       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547     esac
2548   fi
2549 done
2550 if $ac_cache_corrupted; then
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556 fi
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568 ac_config_headers="$ac_config_headers fficonfig.h"
2569
2570
2571 ac_aux_dir=
2572 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2573   if test -f "$ac_dir/install-sh"; then
2574     ac_aux_dir=$ac_dir
2575     ac_install_sh="$ac_aux_dir/install-sh -c"
2576     break
2577   elif test -f "$ac_dir/install.sh"; then
2578     ac_aux_dir=$ac_dir
2579     ac_install_sh="$ac_aux_dir/install.sh -c"
2580     break
2581   elif test -f "$ac_dir/shtool"; then
2582     ac_aux_dir=$ac_dir
2583     ac_install_sh="$ac_aux_dir/shtool install -c"
2584     break
2585   fi
2586 done
2587 if test -z "$ac_aux_dir"; then
2588   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2589 fi
2590
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2597 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2598
2599
2600 # Make sure we can run config.sub.
2601 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2602   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2605 $as_echo_n "checking build system type... " >&6; }
2606 if ${ac_cv_build+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   ac_build_alias=$build_alias
2610 test "x$ac_build_alias" = x &&
2611   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2612 test "x$ac_build_alias" = x &&
2613   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2614 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2615   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2619 $as_echo "$ac_cv_build" >&6; }
2620 case $ac_cv_build in
2621 *-*-*) ;;
2622 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2623 esac
2624 build=$ac_cv_build
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_build
2627 shift
2628 build_cpu=$1
2629 build_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 build_os=$*
2634 IFS=$ac_save_IFS
2635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2639 $as_echo_n "checking host system type... " >&6; }
2640 if ${ac_cv_host+:} false; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   if test "x$host_alias" = x; then
2644   ac_cv_host=$ac_cv_build
2645 else
2646   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2648 fi
2649
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2652 $as_echo "$ac_cv_host" >&6; }
2653 case $ac_cv_host in
2654 *-*-*) ;;
2655 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2656 esac
2657 host=$ac_cv_host
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_host
2660 shift
2661 host_cpu=$1
2662 host_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 host_os=$*
2667 IFS=$ac_save_IFS
2668 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2672 $as_echo_n "checking target system type... " >&6; }
2673 if ${ac_cv_target+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test "x$target_alias" = x; then
2677   ac_cv_target=$ac_cv_host
2678 else
2679   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2680     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2681 fi
2682
2683 fi
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2685 $as_echo "$ac_cv_target" >&6; }
2686 case $ac_cv_target in
2687 *-*-*) ;;
2688 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2689 esac
2690 target=$ac_cv_target
2691 ac_save_IFS=$IFS; IFS='-'
2692 set x $ac_cv_target
2693 shift
2694 target_cpu=$1
2695 target_vendor=$2
2696 shift; shift
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2699 target_os=$*
2700 IFS=$ac_save_IFS
2701 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2702
2703
2704 # The aliases save the names the user supplied, while $host etc.
2705 # will get canonicalized.
2706 test -n "$target_alias" &&
2707   test "$program_prefix$program_suffix$program_transform_name" = \
2708     NONENONEs,x,x, &&
2709   program_prefix=${target_alias}-
2710
2711 target_alias=${target_alias-$host_alias}
2712
2713 . ${srcdir}/configure.host
2714
2715
2716    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2717    if test "${ac_configure_args+set}" != "set" ; then
2718       ac_configure_args=
2719       for ac_arg in ${1+"$@"}; do
2720          ac_configure_args="$ac_configure_args '$ac_arg'"
2721       done
2722    fi
2723
2724 # expand $ac_aux_dir to an absolute path
2725 am_aux_dir=`cd $ac_aux_dir && pwd`
2726
2727
2728 ax_enable_builddir="."
2729 # Check whether --enable-builddir was given.
2730 if test "${enable_builddir+set}" = set; then :
2731   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2732 else
2733   ax_enable_builddir="auto"
2734 fi
2735
2736 if test ".$ac_srcdir_defaulted" != ".no" ; then
2737 if test ".$srcdir" = ".." ; then
2738   if test -f config.status ; then
2739     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2740 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2741   else
2742     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2743     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2744     test ".$TARGET" = "." && TARGET="$target"
2745     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2746     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2747       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2748       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2749       cd $ax_enable_builddir
2750       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2751         rm conftest.tmp
2752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2753 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2754       else
2755         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2756       fi
2757       srcdir=`echo "$ax_enable_builddir" |
2758               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2759       # going to restart from subdirectory location
2760       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2761       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2762       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2763       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2765 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2766       case "$0" in # restart
2767        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2768        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2769       esac ; exit $?
2770     fi
2771   fi
2772 fi fi
2773 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2774 # Extract the first word of "gsed sed", so it can be a program name with args.
2775 set dummy gsed sed; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2779   $as_echo_n "(cached) " >&6
2780 else
2781   case $ax_enable_builddir_sed in
2782   [\\/]* | ?:[\\/]*)
2783   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2784   ;;
2785   *)
2786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2802   ;;
2803 esac
2804 fi
2805 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2806 if test -n "$ax_enable_builddir_sed"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2808 $as_echo "$ax_enable_builddir_sed" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 ax_enable_builddir_auxdir="$am_aux_dir"
2816 ac_config_commands="$ac_config_commands buildir"
2817
2818
2819 am__api_version='1.13'
2820
2821 # Find a good install program.  We prefer a C program (faster),
2822 # so one script is as good as another.  But avoid the broken or
2823 # incompatible versions:
2824 # SysV /etc/install, /usr/sbin/install
2825 # SunOS /usr/etc/install
2826 # IRIX /sbin/install
2827 # AIX /bin/install
2828 # AmigaOS /C/install, which installs bootblocks on floppy discs
2829 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2832 # OS/2's system install, which has a completely different semantic
2833 # ./install, which can be erroneously created by make from ./install.sh.
2834 # Reject install programs that cannot install multiple files.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2836 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2837 if test -z "$INSTALL"; then
2838 if ${ac_cv_path_install+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846     # Account for people who put trailing slashes in PATH elements.
2847 case $as_dir/ in #((
2848   ./ | .// | /[cC]/* | \
2849   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2850   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2851   /usr/ucb/* ) ;;
2852   *)
2853     # OSF1 and SCO ODT 3.0 have their own names for install.
2854     # Don't use installbsd from OSF since it installs stuff as root
2855     # by default.
2856     for ac_prog in ginstall scoinst install; do
2857       for ac_exec_ext in '' $ac_executable_extensions; do
2858         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2859           if test $ac_prog = install &&
2860             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2861             # AIX install.  It has an incompatible calling convention.
2862             :
2863           elif test $ac_prog = install &&
2864             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2865             # program-specific install script used by HP pwplus--don't use.
2866             :
2867           else
2868             rm -rf conftest.one conftest.two conftest.dir
2869             echo one > conftest.one
2870             echo two > conftest.two
2871             mkdir conftest.dir
2872             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2873               test -s conftest.one && test -s conftest.two &&
2874               test -s conftest.dir/conftest.one &&
2875               test -s conftest.dir/conftest.two
2876             then
2877               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2878               break 3
2879             fi
2880           fi
2881         fi
2882       done
2883     done
2884     ;;
2885 esac
2886
2887   done
2888 IFS=$as_save_IFS
2889
2890 rm -rf conftest.one conftest.two conftest.dir
2891
2892 fi
2893   if test "${ac_cv_path_install+set}" = set; then
2894     INSTALL=$ac_cv_path_install
2895   else
2896     # As a last resort, use the slow shell script.  Don't cache a
2897     # value for INSTALL within a source directory, because that will
2898     # break other packages using the cache if that directory is
2899     # removed, or if the value is a relative name.
2900     INSTALL=$ac_install_sh
2901   fi
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2904 $as_echo "$INSTALL" >&6; }
2905
2906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2907 # It thinks the first close brace ends the variable substitution.
2908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2909
2910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2911
2912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2913
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2915 $as_echo_n "checking whether build environment is sane... " >&6; }
2916 # Reject unsafe characters in $srcdir or the absolute working directory
2917 # name.  Accept space and tab only in the latter.
2918 am_lf='
2919 '
2920 case `pwd` in
2921   *[\\\"\#\$\&\'\`$am_lf]*)
2922     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2923 esac
2924 case $srcdir in
2925   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2926     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2927 esac
2928
2929 # Do 'set' in a subshell so we don't clobber the current shell's
2930 # arguments.  Must try -L first in case configure is actually a
2931 # symlink; some systems play weird games with the mod time of symlinks
2932 # (eg FreeBSD returns the mod time of the symlink's containing
2933 # directory).
2934 if (
2935    am_has_slept=no
2936    for am_try in 1 2; do
2937      echo "timestamp, slept: $am_has_slept" > conftest.file
2938      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2939      if test "$*" = "X"; then
2940         # -L didn't work.
2941         set X `ls -t "$srcdir/configure" conftest.file`
2942      fi
2943      if test "$*" != "X $srcdir/configure conftest.file" \
2944         && test "$*" != "X conftest.file $srcdir/configure"; then
2945
2946         # If neither matched, then we have a broken ls.  This can happen
2947         # if, for instance, CONFIG_SHELL is bash and it inherits a
2948         # broken ls alias from the environment.  This has actually
2949         # happened.  Such a system could not be considered "sane".
2950         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2951   alias in your environment" "$LINENO" 5
2952      fi
2953      if test "$2" = conftest.file || test $am_try -eq 2; then
2954        break
2955      fi
2956      # Just in case.
2957      sleep 1
2958      am_has_slept=yes
2959    done
2960    test "$2" = conftest.file
2961    )
2962 then
2963    # Ok.
2964    :
2965 else
2966    as_fn_error $? "newly created file is older than distributed files!
2967 Check your system clock" "$LINENO" 5
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 # If we didn't sleep, we still need to ensure time stamps of config.status and
2972 # generated files are strictly newer.
2973 am_sleep_pid=
2974 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2975   ( sleep 1 ) &
2976   am_sleep_pid=$!
2977 fi
2978
2979 rm -f conftest.file
2980
2981 test "$program_prefix" != NONE &&
2982   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2983 # Use a double $ so make ignores it.
2984 test "$program_suffix" != NONE &&
2985   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2986 # Double any \ or $.
2987 # By default was `s,x,x', remove it if useless.
2988 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2989 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2990
2991 if test x"${MISSING+set}" != xset; then
2992   case $am_aux_dir in
2993   *\ * | *\     *)
2994     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2995   *)
2996     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2997   esac
2998 fi
2999 # Use eval to expand $SHELL
3000 if eval "$MISSING --is-lightweight"; then
3001   am_missing_run="$MISSING "
3002 else
3003   am_missing_run=
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3005 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3006 fi
3007
3008 if test x"${install_sh}" != xset; then
3009   case $am_aux_dir in
3010   *\ * | *\     *)
3011     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3012   *)
3013     install_sh="\${SHELL} $am_aux_dir/install-sh"
3014   esac
3015 fi
3016
3017 # Installed binaries are usually stripped using 'strip' when the user
3018 # run "make install-strip".  However 'strip' might not be the right
3019 # tool to use in cross-compilation environments, therefore Automake
3020 # will honor the 'STRIP' environment variable to overrule this program.
3021 if test "$cross_compiling" != no; then
3022   if test -n "$ac_tool_prefix"; then
3023   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}strip; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_STRIP+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   if test -n "$STRIP"; then
3031   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038     for ac_exec_ext in '' $ac_executable_extensions; do
3039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045   done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 STRIP=$ac_cv_prog_STRIP
3051 if test -n "$STRIP"; then
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3053 $as_echo "$STRIP" >&6; }
3054 else
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 fi
3061 if test -z "$ac_cv_prog_STRIP"; then
3062   ac_ct_STRIP=$STRIP
3063   # Extract the first word of "strip", so it can be a program name with args.
3064 set dummy strip; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   if test -n "$ac_ct_STRIP"; then
3071   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078     for ac_exec_ext in '' $ac_executable_extensions; do
3079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080     ac_cv_prog_ac_ct_STRIP="strip"
3081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085   done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3091 if test -n "$ac_ct_STRIP"; then
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3093 $as_echo "$ac_ct_STRIP" >&6; }
3094 else
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099   if test "x$ac_ct_STRIP" = x; then
3100     STRIP=":"
3101   else
3102     case $cross_compiling:$ac_tool_warned in
3103 yes:)
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106 ac_tool_warned=yes ;;
3107 esac
3108     STRIP=$ac_ct_STRIP
3109   fi
3110 else
3111   STRIP="$ac_cv_prog_STRIP"
3112 fi
3113
3114 fi
3115 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3116
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3118 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3119 if test -z "$MKDIR_P"; then
3120   if ${ac_cv_path_mkdir+:} false; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3125 do
3126   IFS=$as_save_IFS
3127   test -z "$as_dir" && as_dir=.
3128     for ac_prog in mkdir gmkdir; do
3129          for ac_exec_ext in '' $ac_executable_extensions; do
3130            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3131            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3132              'mkdir (GNU coreutils) '* | \
3133              'mkdir (coreutils) '* | \
3134              'mkdir (fileutils) '4.1*)
3135                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3136                break 3;;
3137            esac
3138          done
3139        done
3140   done
3141 IFS=$as_save_IFS
3142
3143 fi
3144
3145   test -d ./--version && rmdir ./--version
3146   if test "${ac_cv_path_mkdir+set}" = set; then
3147     MKDIR_P="$ac_cv_path_mkdir -p"
3148   else
3149     # As a last resort, use the slow shell script.  Don't cache a
3150     # value for MKDIR_P within a source directory, because that will
3151     # break other packages using the cache if that directory is
3152     # removed, or if the value is a relative name.
3153     MKDIR_P="$ac_install_sh -d"
3154   fi
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3157 $as_echo "$MKDIR_P" >&6; }
3158
3159 for ac_prog in gawk mawk nawk awk
3160 do
3161   # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_AWK+:} false; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$AWK"; then
3169   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_AWK="$ac_prog"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 AWK=$ac_cv_prog_AWK
3189 if test -n "$AWK"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3191 $as_echo "$AWK" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198   test -n "$AWK" && break
3199 done
3200
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3202 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3203 set x ${MAKE-make}
3204 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3205 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   cat >conftest.make <<\_ACEOF
3209 SHELL = /bin/sh
3210 all:
3211         @echo '@@@%%%=$(MAKE)=@@@%%%'
3212 _ACEOF
3213 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3214 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3215   *@@@%%%=?*=@@@%%%*)
3216     eval ac_cv_prog_make_${ac_make}_set=yes;;
3217   *)
3218     eval ac_cv_prog_make_${ac_make}_set=no;;
3219 esac
3220 rm -f conftest.make
3221 fi
3222 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 $as_echo "yes" >&6; }
3225   SET_MAKE=
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229   SET_MAKE="MAKE=${MAKE-make}"
3230 fi
3231
3232 rm -rf .tst 2>/dev/null
3233 mkdir .tst 2>/dev/null
3234 if test -d .tst; then
3235   am__leading_dot=.
3236 else
3237   am__leading_dot=_
3238 fi
3239 rmdir .tst 2>/dev/null
3240
3241 # Check whether --enable-silent-rules was given.
3242 if test "${enable_silent_rules+set}" = set; then :
3243   enableval=$enable_silent_rules;
3244 fi
3245
3246 case $enable_silent_rules in # (((
3247   yes) AM_DEFAULT_VERBOSITY=0;;
3248    no) AM_DEFAULT_VERBOSITY=1;;
3249     *) AM_DEFAULT_VERBOSITY=1;;
3250 esac
3251 am_make=${MAKE-make}
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3253 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3254 if ${am_cv_make_support_nested_variables+:} false; then :
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if $as_echo 'TRUE=$(BAR$(V))
3258 BAR0=false
3259 BAR1=true
3260 V=1
3261 am__doit:
3262         @$(TRUE)
3263 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3264   am_cv_make_support_nested_variables=yes
3265 else
3266   am_cv_make_support_nested_variables=no
3267 fi
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3270 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3271 if test $am_cv_make_support_nested_variables = yes; then
3272     AM_V='$(V)'
3273   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3274 else
3275   AM_V=$AM_DEFAULT_VERBOSITY
3276   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3277 fi
3278 AM_BACKSLASH='\'
3279
3280 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3281   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3282   # is not polluted with repeated "-I."
3283   am__isrc=' -I$(srcdir)'
3284   # test to see if srcdir already configured
3285   if test -f $srcdir/config.status; then
3286     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3287   fi
3288 fi
3289
3290 # test whether we have cygpath
3291 if test -z "$CYGPATH_W"; then
3292   if (cygpath --version) >/dev/null 2>/dev/null; then
3293     CYGPATH_W='cygpath -w'
3294   else
3295     CYGPATH_W=echo
3296   fi
3297 fi
3298
3299
3300 # Define the identity of the package.
3301  PACKAGE='libffi'
3302  VERSION='3.0.14-rc0'
3303
3304
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE "$PACKAGE"
3307 _ACEOF
3308
3309
3310 cat >>confdefs.h <<_ACEOF
3311 #define VERSION "$VERSION"
3312 _ACEOF
3313
3314 # Some tools Automake needs.
3315
3316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3317
3318
3319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3320
3321
3322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3323
3324
3325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3326
3327
3328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329
3330 # For better backward compatibility.  To be removed once Automake 1.9.x
3331 # dies out for good.  For more background, see:
3332 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3333 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3334 mkdir_p='$(MKDIR_P)'
3335
3336 # We need awk for the "check" target.  The system "awk" is bad on
3337 # some platforms.
3338 # Always define AMTAR for backward compatibility.  Yes, it's still used
3339 # in the wild :-(  We should find a proper way to deprecate it ...
3340 AMTAR='$${TAR-tar}'
3341
3342
3343 # We'll loop over all known methods to create a tar archive until one works.
3344 _am_tools='gnutar  pax cpio none'
3345
3346 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3347
3348
3349
3350
3351
3352
3353
3354 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3355 # We must force CC to /not/ be precious variables; otherwise
3356 # the wrong, non-multilib-adjusted value will be used in multilibs.
3357 # As a side effect, we have to subst CFLAGS ourselves.
3358 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3359 # defaults of its own if none are provided.
3360
3361
3362
3363 save_CFLAGS=$CFLAGS
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 if test -n "$ac_tool_prefix"; then
3370   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_CC+:} false; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   if test -n "$CC"; then
3378   ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383   IFS=$as_save_IFS
3384   test -z "$as_dir" && as_dir=.
3385     for ac_exec_ext in '' $ac_executable_extensions; do
3386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389     break 2
3390   fi
3391 done
3392   done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3401 else
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407 fi
3408 if test -z "$ac_cv_prog_CC"; then
3409   ac_ct_CC=$CC
3410   # Extract the first word of "gcc", so it can be a program name with args.
3411 set dummy gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3415   $as_echo_n "(cached) " >&6
3416 else
3417   if test -n "$ac_ct_CC"; then
3418   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425     for ac_exec_ext in '' $ac_executable_extensions; do
3426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427     ac_cv_prog_ac_ct_CC="gcc"
3428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432   done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438 if test -n "$ac_ct_CC"; then
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440 $as_echo "$ac_ct_CC" >&6; }
3441 else
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446   if test "x$ac_ct_CC" = x; then
3447     CC=""
3448   else
3449     case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455     CC=$ac_ct_CC
3456   fi
3457 else
3458   CC="$ac_cv_prog_CC"
3459 fi
3460
3461 if test -z "$CC"; then
3462           if test -n "$ac_tool_prefix"; then
3463     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}cc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$CC"; then
3471   ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480     ac_cv_prog_CC="${ac_tool_prefix}cc"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500   fi
3501 fi
3502 if test -z "$CC"; then
3503   # Extract the first word of "cc", so it can be a program name with args.
3504 set dummy cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513   ac_prog_rejected=no
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517   IFS=$as_save_IFS
3518   test -z "$as_dir" && as_dir=.
3519     for ac_exec_ext in '' $ac_executable_extensions; do
3520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3522        ac_prog_rejected=yes
3523        continue
3524      fi
3525     ac_cv_prog_CC="cc"
3526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530   done
3531 IFS=$as_save_IFS
3532
3533 if test $ac_prog_rejected = yes; then
3534   # We found a bogon in the path, so make sure we never use it.
3535   set dummy $ac_cv_prog_CC
3536   shift
3537   if test $# != 0; then
3538     # We chose a different compiler from the bogus one.
3539     # However, it has the same basename, so the bogon will be chosen
3540     # first if we set CC to just the basename; use the full file name.
3541     shift
3542     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3543   fi
3544 fi
3545 fi
3546 fi
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 if test -z "$CC"; then
3559   if test -n "$ac_tool_prefix"; then
3560   for ac_prog in cl.exe
3561   do
3562     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if ${ac_cv_prog_CC+:} false; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if test -n "$CC"; then
3570   ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577     for ac_exec_ext in '' $ac_executable_extensions; do
3578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584   done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599     test -n "$CC" && break
3600   done
3601 fi
3602 if test -z "$CC"; then
3603   ac_ct_CC=$CC
3604   for ac_prog in cl.exe
3605 do
3606   # Extract the first word of "$ac_prog", so it can be a program name with args.
3607 set dummy $ac_prog; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   if test -n "$ac_ct_CC"; then
3614   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619   IFS=$as_save_IFS
3620   test -z "$as_dir" && as_dir=.
3621     for ac_exec_ext in '' $ac_executable_extensions; do
3622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623     ac_cv_prog_ac_ct_CC="$ac_prog"
3624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625     break 2
3626   fi
3627 done
3628   done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3634 if test -n "$ac_ct_CC"; then
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3636 $as_echo "$ac_ct_CC" >&6; }
3637 else
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643   test -n "$ac_ct_CC" && break
3644 done
3645
3646   if test "x$ac_ct_CC" = x; then
3647     CC=""
3648   else
3649     case $cross_compiling:$ac_tool_warned in
3650 yes:)
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653 ac_tool_warned=yes ;;
3654 esac
3655     CC=$ac_ct_CC
3656   fi
3657 fi
3658
3659 fi
3660
3661
3662 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "no acceptable C compiler found in \$PATH
3665 See \`config.log' for more details" "$LINENO" 5; }
3666
3667 # Provide some information about the compiler.
3668 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3669 set X $ac_compile
3670 ac_compiler=$2
3671 for ac_option in --version -v -V -qversion; do
3672   { { ac_try="$ac_compiler $ac_option >&5"
3673 case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680   ac_status=$?
3681   if test -s conftest.err; then
3682     sed '10a\
3683 ... rest of stderr output deleted ...
3684          10q' conftest.err >conftest.er1
3685     cat conftest.er1 >&5
3686   fi
3687   rm -f conftest.er1 conftest.err
3688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689   test $ac_status = 0; }
3690 done
3691
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694
3695 int
3696 main ()
3697 {
3698
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 ac_clean_files_save=$ac_clean_files
3704 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3705 # Try to create an executable without -o first, disregard a.out.
3706 # It will help us diagnose broken compilers, and finding out an intuition
3707 # of exeext.
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3709 $as_echo_n "checking whether the C compiler works... " >&6; }
3710 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3711
3712 # The possible output files:
3713 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3714
3715 ac_rmfiles=
3716 for ac_file in $ac_files
3717 do
3718   case $ac_file in
3719     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3720     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3721   esac
3722 done
3723 rm -f $ac_rmfiles
3724
3725 if { { ac_try="$ac_link_default"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732   (eval "$ac_link_default") 2>&5
3733   ac_status=$?
3734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735   test $ac_status = 0; }; then :
3736   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3737 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3738 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3739 # so that the user can short-circuit this test for compilers unknown to
3740 # Autoconf.
3741 for ac_file in $ac_files ''
3742 do
3743   test -f "$ac_file" || continue
3744   case $ac_file in
3745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3746         ;;
3747     [ab].out )
3748         # We found the default executable, but exeext='' is most
3749         # certainly right.
3750         break;;
3751     *.* )
3752         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3753         then :; else
3754            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755         fi
3756         # We set ac_cv_exeext here because the later test for it is not
3757         # safe: cross compilers may not add the suffix if given an `-o'
3758         # argument, so we may need to know it at that point already.
3759         # Even if this section looks crufty: it has the advantage of
3760         # actually working.
3761         break;;
3762     * )
3763         break;;
3764   esac
3765 done
3766 test "$ac_cv_exeext" = no && ac_cv_exeext=
3767
3768 else
3769   ac_file=''
3770 fi
3771 if test -z "$ac_file"; then :
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error 77 "C compiler cannot create executables
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 else
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3783 $as_echo "yes" >&6; }
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3786 $as_echo_n "checking for C compiler default output file name... " >&6; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3788 $as_echo "$ac_file" >&6; }
3789 ac_exeext=$ac_cv_exeext
3790
3791 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3792 ac_clean_files=$ac_clean_files_save
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3794 $as_echo_n "checking for suffix of executables... " >&6; }
3795 if { { ac_try="$ac_link"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_link") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; then :
3806   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3807 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3808 # work properly (i.e., refer to `conftest.exe'), while it won't with
3809 # `rm'.
3810 for ac_file in conftest.exe conftest conftest.*; do
3811   test -f "$ac_file" || continue
3812   case $ac_file in
3813     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3814     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3815           break;;
3816     * ) break;;
3817   esac
3818 done
3819 else
3820   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3823 See \`config.log' for more details" "$LINENO" 5; }
3824 fi
3825 rm -f conftest conftest$ac_cv_exeext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3827 $as_echo "$ac_cv_exeext" >&6; }
3828
3829 rm -f conftest.$ac_ext
3830 EXEEXT=$ac_cv_exeext
3831 ac_exeext=$EXEEXT
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834 #include <stdio.h>
3835 int
3836 main ()
3837 {
3838 FILE *f = fopen ("conftest.out", "w");
3839  return ferror (f) || fclose (f) != 0;
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 ac_clean_files="$ac_clean_files conftest.out"
3846 # Check that the compiler produces executables we can run.  If not, either
3847 # the compiler is broken, or we cross compile.
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3849 $as_echo_n "checking whether we are cross compiling... " >&6; }
3850 if test "$cross_compiling" != yes; then
3851   { { ac_try="$ac_link"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858   (eval "$ac_link") 2>&5
3859   ac_status=$?
3860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861   test $ac_status = 0; }
3862   if { ac_try='./conftest$ac_cv_exeext'
3863   { { case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869   (eval "$ac_try") 2>&5
3870   ac_status=$?
3871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872   test $ac_status = 0; }; }; then
3873     cross_compiling=no
3874   else
3875     if test "$cross_compiling" = maybe; then
3876         cross_compiling=yes
3877     else
3878         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $? "cannot run C compiled programs.
3881 If you meant to cross compile, use \`--host'.
3882 See \`config.log' for more details" "$LINENO" 5; }
3883     fi
3884   fi
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3887 $as_echo "$cross_compiling" >&6; }
3888
3889 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3890 ac_clean_files=$ac_clean_files_save
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3892 $as_echo_n "checking for suffix of object files... " >&6; }
3893 if ${ac_cv_objext+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.o conftest.obj
3908 if { { ac_try="$ac_compile"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915   (eval "$ac_compile") 2>&5
3916   ac_status=$?
3917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918   test $ac_status = 0; }; then :
3919   for ac_file in conftest.o conftest.obj conftest.*; do
3920   test -f "$ac_file" || continue;
3921   case $ac_file in
3922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3923     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3924        break;;
3925   esac
3926 done
3927 else
3928   $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error $? "cannot compute suffix of object files: cannot compile
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 fi
3936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3939 $as_echo "$ac_cv_objext" >&6; }
3940 OBJEXT=$ac_cv_objext
3941 ac_objext=$OBJEXT
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3943 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3944 if ${ac_cv_c_compiler_gnu+:} false; then :
3945   $as_echo_n "(cached) " >&6
3946 else
3947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949
3950 int
3951 main ()
3952 {
3953 #ifndef __GNUC__
3954        choke me
3955 #endif
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962   ac_compiler_gnu=yes
3963 else
3964   ac_compiler_gnu=no
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3971 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3972 if test $ac_compiler_gnu = yes; then
3973   GCC=yes
3974 else
3975   GCC=
3976 fi
3977 ac_test_CFLAGS=${CFLAGS+set}
3978 ac_save_CFLAGS=$CFLAGS
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3980 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3981 if ${ac_cv_prog_cc_g+:} false; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   ac_save_c_werror_flag=$ac_c_werror_flag
3985    ac_c_werror_flag=yes
3986    ac_cv_prog_cc_g=no
3987    CFLAGS="-g"
3988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990
3991 int
3992 main ()
3993 {
3994
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000   ac_cv_prog_cc_g=yes
4001 else
4002   CFLAGS=""
4003       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005
4006 int
4007 main ()
4008 {
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015
4016 else
4017   ac_c_werror_flag=$ac_save_c_werror_flag
4018          CFLAGS="-g"
4019          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031   ac_cv_prog_cc_g=yes
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038    ac_c_werror_flag=$ac_save_c_werror_flag
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4041 $as_echo "$ac_cv_prog_cc_g" >&6; }
4042 if test "$ac_test_CFLAGS" = set; then
4043   CFLAGS=$ac_save_CFLAGS
4044 elif test $ac_cv_prog_cc_g = yes; then
4045   if test "$GCC" = yes; then
4046     CFLAGS="-g -O2"
4047   else
4048     CFLAGS="-g"
4049   fi
4050 else
4051   if test "$GCC" = yes; then
4052     CFLAGS="-O2"
4053   else
4054     CFLAGS=
4055   fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4058 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4059 if ${ac_cv_prog_cc_c89+:} false; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062   ac_cv_prog_cc_c89=no
4063 ac_save_CC=$CC
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h.  */
4066 #include <stdarg.h>
4067 #include <stdio.h>
4068 struct stat;
4069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4070 struct buf { int x; };
4071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4072 static char *e (p, i)
4073      char **p;
4074      int i;
4075 {
4076   return p[i];
4077 }
4078 static char *f (char * (*g) (char **, int), char **p, ...)
4079 {
4080   char *s;
4081   va_list v;
4082   va_start (v,p);
4083   s = g (p, va_arg (v,int));
4084   va_end (v);
4085   return s;
4086 }
4087
4088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4089    function prototypes and stuff, but not '\xHH' hex character constants.
4090    These don't provoke an error unfortunately, instead are silently treated
4091    as 'x'.  The following induces an error, until -std is added to get
4092    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4093    array size at least.  It's necessary to write '\x00'==0 to get something
4094    that's true only with -std.  */
4095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096
4097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4098    inside strings and character constants.  */
4099 #define FOO(x) 'x'
4100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101
4102 int test (int i, double x);
4103 struct s1 {int (*f) (int a);};
4104 struct s2 {int (*f) (double a);};
4105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106 int argc;
4107 char **argv;
4108 int
4109 main ()
4110 {
4111 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4117         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118 do
4119   CC="$ac_save_CC $ac_arg"
4120   if ac_fn_c_try_compile "$LINENO"; then :
4121   ac_cv_prog_cc_c89=$ac_arg
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext
4124   test "x$ac_cv_prog_cc_c89" != "xno" && break
4125 done
4126 rm -f conftest.$ac_ext
4127 CC=$ac_save_CC
4128
4129 fi
4130 # AC_CACHE_VAL
4131 case "x$ac_cv_prog_cc_c89" in
4132   x)
4133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;;
4135   xno)
4136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137 $as_echo "unsupported" >&6; } ;;
4138   *)
4139     CC="$CC $ac_cv_prog_cc_c89"
4140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4141 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142 esac
4143 if test "x$ac_cv_prog_cc_c89" != xno; then :
4144
4145 fi
4146
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 DEPDIR="${am__leading_dot}deps"
4153
4154 ac_config_commands="$ac_config_commands depfiles"
4155
4156
4157 am_make=${MAKE-make}
4158 cat > confinc << 'END'
4159 am__doit:
4160         @echo this is the am__doit target
4161 .PHONY: am__doit
4162 END
4163 # If we don't find an include directive, just comment out the code.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4165 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4166 am__include="#"
4167 am__quote=
4168 _am_result=none
4169 # First try GNU make style include.
4170 echo "include confinc" > confmf
4171 # Ignore all kinds of additional output from 'make'.
4172 case `$am_make -s -f confmf 2> /dev/null` in #(
4173 *the\ am__doit\ target*)
4174   am__include=include
4175   am__quote=
4176   _am_result=GNU
4177   ;;
4178 esac
4179 # Now try BSD make style include.
4180 if test "$am__include" = "#"; then
4181    echo '.include "confinc"' > confmf
4182    case `$am_make -s -f confmf 2> /dev/null` in #(
4183    *the\ am__doit\ target*)
4184      am__include=.include
4185      am__quote="\""
4186      _am_result=BSD
4187      ;;
4188    esac
4189 fi
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4193 $as_echo "$_am_result" >&6; }
4194 rm -f confinc confmf
4195
4196 # Check whether --enable-dependency-tracking was given.
4197 if test "${enable_dependency_tracking+set}" = set; then :
4198   enableval=$enable_dependency_tracking;
4199 fi
4200
4201 if test "x$enable_dependency_tracking" != xno; then
4202   am_depcomp="$ac_aux_dir/depcomp"
4203   AMDEPBACKSLASH='\'
4204   am__nodep='_no'
4205 fi
4206  if test "x$enable_dependency_tracking" != xno; then
4207   AMDEP_TRUE=
4208   AMDEP_FALSE='#'
4209 else
4210   AMDEP_TRUE='#'
4211   AMDEP_FALSE=
4212 fi
4213
4214
4215
4216 depcc="$CC"   am_compiler_list=
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4219 $as_echo_n "checking dependency style of $depcc... " >&6; }
4220 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4224   # We make a subdir and do the tests there.  Otherwise we can end up
4225   # making bogus files that we don't know about and never remove.  For
4226   # instance it was reported that on HP-UX the gcc test will end up
4227   # making a dummy file named 'D' -- because '-MD' means "put the output
4228   # in D".
4229   rm -rf conftest.dir
4230   mkdir conftest.dir
4231   # Copy depcomp to subdir because otherwise we won't find it if we're
4232   # using a relative directory.
4233   cp "$am_depcomp" conftest.dir
4234   cd conftest.dir
4235   # We will build objects and dependencies in a subdirectory because
4236   # it helps to detect inapplicable dependency modes.  For instance
4237   # both Tru64's cc and ICC support -MD to output dependencies as a
4238   # side effect of compilation, but ICC will put the dependencies in
4239   # the current directory while Tru64 will put them in the object
4240   # directory.
4241   mkdir sub
4242
4243   am_cv_CC_dependencies_compiler_type=none
4244   if test "$am_compiler_list" = ""; then
4245      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4246   fi
4247   am__universal=false
4248   case " $depcc " in #(
4249      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250      esac
4251
4252   for depmode in $am_compiler_list; do
4253     # Setup a source with many dependencies, because some compilers
4254     # like to wrap large dependency lists on column 80 (with \), and
4255     # we should not choose a depcomp mode which is confused by this.
4256     #
4257     # We need to recreate these files for each test, as the compiler may
4258     # overwrite some of them when testing with obscure command lines.
4259     # This happens at least with the AIX C compiler.
4260     : > sub/conftest.c
4261     for i in 1 2 3 4 5 6; do
4262       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4264       # Solaris 10 /bin/sh.
4265       echo '/* dummy */' > sub/conftst$i.h
4266     done
4267     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4270     # mode.  It turns out that the SunPro C++ compiler does not properly
4271     # handle '-M -o', and we need to detect this.  Also, some Intel
4272     # versions had trouble with output in subdirs.
4273     am__obj=sub/conftest.${OBJEXT-o}
4274     am__minus_obj="-o $am__obj"
4275     case $depmode in
4276     gcc)
4277       # This depmode causes a compiler race in universal mode.
4278       test "$am__universal" = false || continue
4279       ;;
4280     nosideeffect)
4281       # After this tag, mechanisms are not by side-effect, so they'll
4282       # only be used when explicitly requested.
4283       if test "x$enable_dependency_tracking" = xyes; then
4284         continue
4285       else
4286         break
4287       fi
4288       ;;
4289     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4290       # This compiler won't grok '-c -o', but also, the minuso test has
4291       # not run yet.  These depmodes are late enough in the game, and
4292       # so weak that their functioning should not be impacted.
4293       am__obj=conftest.${OBJEXT-o}
4294       am__minus_obj=
4295       ;;
4296     none) break ;;
4297     esac
4298     if depmode=$depmode \
4299        source=sub/conftest.c object=$am__obj \
4300        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302          >/dev/null 2>conftest.err &&
4303        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307       # icc doesn't choke on unknown options, it will just issue warnings
4308       # or remarks (even with -Werror).  So we grep stderr for any message
4309       # that says an option was ignored or not supported.
4310       # When given -MP, icc 7.0 and 7.1 complain thusly:
4311       #   icc: Command line warning: ignoring option '-M'; no argument required
4312       # The diagnosis changed in icc 8.0:
4313       #   icc: Command line remark: option '-MP' not supported
4314       if (grep 'ignoring option' conftest.err ||
4315           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316         am_cv_CC_dependencies_compiler_type=$depmode
4317         break
4318       fi
4319     fi
4320   done
4321
4322   cd ..
4323   rm -rf conftest.dir
4324 else
4325   am_cv_CC_dependencies_compiler_type=none
4326 fi
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4331 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4332
4333  if
4334   test "x$enable_dependency_tracking" != xno \
4335   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4336   am__fastdepCC_TRUE=
4337   am__fastdepCC_FALSE='#'
4338 else
4339   am__fastdepCC_TRUE='#'
4340   am__fastdepCC_FALSE=
4341 fi
4342
4343
4344 CFLAGS=$save_CFLAGS
4345
4346
4347
4348
4349
4350 # By default we simply use the C compiler to build assembly code.
4351
4352 test "${CCAS+set}" = set || CCAS=$CC
4353 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4354
4355
4356
4357 depcc="$CCAS"   am_compiler_list=
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4360 $as_echo_n "checking dependency style of $depcc... " >&6; }
4361 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4365   # We make a subdir and do the tests there.  Otherwise we can end up
4366   # making bogus files that we don't know about and never remove.  For
4367   # instance it was reported that on HP-UX the gcc test will end up
4368   # making a dummy file named 'D' -- because '-MD' means "put the output
4369   # in D".
4370   rm -rf conftest.dir
4371   mkdir conftest.dir
4372   # Copy depcomp to subdir because otherwise we won't find it if we're
4373   # using a relative directory.
4374   cp "$am_depcomp" conftest.dir
4375   cd conftest.dir
4376   # We will build objects and dependencies in a subdirectory because
4377   # it helps to detect inapplicable dependency modes.  For instance
4378   # both Tru64's cc and ICC support -MD to output dependencies as a
4379   # side effect of compilation, but ICC will put the dependencies in
4380   # the current directory while Tru64 will put them in the object
4381   # directory.
4382   mkdir sub
4383
4384   am_cv_CCAS_dependencies_compiler_type=none
4385   if test "$am_compiler_list" = ""; then
4386      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4387   fi
4388   am__universal=false
4389
4390
4391   for depmode in $am_compiler_list; do
4392     # Setup a source with many dependencies, because some compilers
4393     # like to wrap large dependency lists on column 80 (with \), and
4394     # we should not choose a depcomp mode which is confused by this.
4395     #
4396     # We need to recreate these files for each test, as the compiler may
4397     # overwrite some of them when testing with obscure command lines.
4398     # This happens at least with the AIX C compiler.
4399     : > sub/conftest.c
4400     for i in 1 2 3 4 5 6; do
4401       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4402       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4403       # Solaris 10 /bin/sh.
4404       echo '/* dummy */' > sub/conftst$i.h
4405     done
4406     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4407
4408     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4409     # mode.  It turns out that the SunPro C++ compiler does not properly
4410     # handle '-M -o', and we need to detect this.  Also, some Intel
4411     # versions had trouble with output in subdirs.
4412     am__obj=sub/conftest.${OBJEXT-o}
4413     am__minus_obj="-o $am__obj"
4414     case $depmode in
4415     gcc)
4416       # This depmode causes a compiler race in universal mode.
4417       test "$am__universal" = false || continue
4418       ;;
4419     nosideeffect)
4420       # After this tag, mechanisms are not by side-effect, so they'll
4421       # only be used when explicitly requested.
4422       if test "x$enable_dependency_tracking" = xyes; then
4423         continue
4424       else
4425         break
4426       fi
4427       ;;
4428     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4429       # This compiler won't grok '-c -o', but also, the minuso test has
4430       # not run yet.  These depmodes are late enough in the game, and
4431       # so weak that their functioning should not be impacted.
4432       am__obj=conftest.${OBJEXT-o}
4433       am__minus_obj=
4434       ;;
4435     none) break ;;
4436     esac
4437     if depmode=$depmode \
4438        source=sub/conftest.c object=$am__obj \
4439        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4440        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4441          >/dev/null 2>conftest.err &&
4442        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4443        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4444        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4445        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4446       # icc doesn't choke on unknown options, it will just issue warnings
4447       # or remarks (even with -Werror).  So we grep stderr for any message
4448       # that says an option was ignored or not supported.
4449       # When given -MP, icc 7.0 and 7.1 complain thusly:
4450       #   icc: Command line warning: ignoring option '-M'; no argument required
4451       # The diagnosis changed in icc 8.0:
4452       #   icc: Command line remark: option '-MP' not supported
4453       if (grep 'ignoring option' conftest.err ||
4454           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4455         am_cv_CCAS_dependencies_compiler_type=$depmode
4456         break
4457       fi
4458     fi
4459   done
4460
4461   cd ..
4462   rm -rf conftest.dir
4463 else
4464   am_cv_CCAS_dependencies_compiler_type=none
4465 fi
4466
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4469 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4470 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4471
4472  if
4473   test "x$enable_dependency_tracking" != xno \
4474   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4475   am__fastdepCCAS_TRUE=
4476   am__fastdepCCAS_FALSE='#'
4477 else
4478   am__fastdepCCAS_TRUE='#'
4479   am__fastdepCCAS_FALSE=
4480 fi
4481
4482
4483 if test "x$CC" != xcc; then
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4485 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4486 else
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4488 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4489 fi
4490 set dummy $CC; ac_cc=`$as_echo "$2" |
4491                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4492 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 # Make sure it works both with $CC and with simple cc.
4507 # We do the test twice because some compilers refuse to overwrite an
4508 # existing .o file with -o, though they will create one.
4509 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4510 rm -f conftest2.*
4511 if { { case "(($ac_try" in
4512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513   *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517   (eval "$ac_try") 2>&5
4518   ac_status=$?
4519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520   test $ac_status = 0; } &&
4521    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527   (eval "$ac_try") 2>&5
4528   ac_status=$?
4529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530   test $ac_status = 0; };
4531 then
4532   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4533   if test "x$CC" != xcc; then
4534     # Test first that cc exists at all.
4535     if { ac_try='cc -c conftest.$ac_ext >&5'
4536   { { case "(($ac_try" in
4537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538   *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542   (eval "$ac_try") 2>&5
4543   ac_status=$?
4544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545   test $ac_status = 0; }; }; then
4546       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4547       rm -f conftest2.*
4548       if { { case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 $as_echo "$ac_try_echo"; } >&5
4554   (eval "$ac_try") 2>&5
4555   ac_status=$?
4556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557   test $ac_status = 0; } &&
4558          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564   (eval "$ac_try") 2>&5
4565   ac_status=$?
4566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567   test $ac_status = 0; };
4568       then
4569         # cc works too.
4570         :
4571       else
4572         # cc exists but doesn't like -o.
4573         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4574       fi
4575     fi
4576   fi
4577 else
4578   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4579 fi
4580 rm -f core conftest*
4581
4582 fi
4583 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo "yes" >&6; }
4586 else
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589
4590 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4591
4592 fi
4593
4594 # FIXME: we rely on the cache variable name because
4595 # there is no other way.
4596 set dummy $CC
4597 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4598 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4599 if test "$am_t" != yes; then
4600    # Losing compiler, so override with the script.
4601    # FIXME: It is wrong to rewrite CC.
4602    # But if we don't then we get into trouble of one sort or another.
4603    # A longer-term fix would be to have automake use am__CC in this case,
4604    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4605    CC="$am_aux_dir/compile $CC"
4606 fi
4607
4608
4609 case `pwd` in
4610   *\ * | *\     *)
4611     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4612 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4613 esac
4614
4615
4616
4617 macro_version='2.4.2'
4618 macro_revision='1.3337'
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632 ltmain="$ac_aux_dir/ltmain.sh"
4633
4634 # Backslashify metacharacters that are still active within
4635 # double-quoted strings.
4636 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4637
4638 # Same as above, but do not quote variable references.
4639 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4640
4641 # Sed substitution to delay expansion of an escaped shell variable in a
4642 # double_quote_subst'ed string.
4643 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4644
4645 # Sed substitution to delay expansion of an escaped single quote.
4646 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4647
4648 # Sed substitution to avoid accidental globbing in evaled expressions
4649 no_glob_subst='s/\*/\\\*/g'
4650
4651 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4652 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4653 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4656 $as_echo_n "checking how to print strings... " >&6; }
4657 # Test print first, because it will be a builtin if present.
4658 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4659    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4660   ECHO='print -r --'
4661 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4662   ECHO='printf %s\n'
4663 else
4664   # Use this function as a fallback that always works.
4665   func_fallback_echo ()
4666   {
4667     eval 'cat <<_LTECHO_EOF
4668 $1
4669 _LTECHO_EOF'
4670   }
4671   ECHO='func_fallback_echo'
4672 fi
4673
4674 # func_echo_all arg...
4675 # Invoke $ECHO with all args, space-separated.
4676 func_echo_all ()
4677 {
4678     $ECHO ""
4679 }
4680
4681 case "$ECHO" in
4682   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4683 $as_echo "printf" >&6; } ;;
4684   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4685 $as_echo "print -r" >&6; } ;;
4686   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4687 $as_echo "cat" >&6; } ;;
4688 esac
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4704 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4705 if ${ac_cv_path_SED+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4709      for ac_i in 1 2 3 4 5 6 7; do
4710        ac_script="$ac_script$as_nl$ac_script"
4711      done
4712      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4713      { ac_script=; unset ac_script;}
4714      if test -z "$SED"; then
4715   ac_path_SED_found=false
4716   # Loop through the user's path and test for each of PROGNAME-LIST
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722     for ac_prog in sed gsed; do
4723     for ac_exec_ext in '' $ac_executable_extensions; do
4724       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4725       as_fn_executable_p "$ac_path_SED" || continue
4726 # Check for GNU ac_path_SED and select it if it is found.
4727   # Check for GNU $ac_path_SED
4728 case `"$ac_path_SED" --version 2>&1` in
4729 *GNU*)
4730   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731 *)
4732   ac_count=0
4733   $as_echo_n 0123456789 >"conftest.in"
4734   while :
4735   do
4736     cat "conftest.in" "conftest.in" >"conftest.tmp"
4737     mv "conftest.tmp" "conftest.in"
4738     cp "conftest.in" "conftest.nl"
4739     $as_echo '' >> "conftest.nl"
4740     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742     as_fn_arith $ac_count + 1 && ac_count=$as_val
4743     if test $ac_count -gt ${ac_path_SED_max-0}; then
4744       # Best one so far, save it but keep looking for a better one
4745       ac_cv_path_SED="$ac_path_SED"
4746       ac_path_SED_max=$ac_count
4747     fi
4748     # 10*(2^10) chars as input seems more than enough
4749     test $ac_count -gt 10 && break
4750   done
4751   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752 esac
4753
4754       $ac_path_SED_found && break 3
4755     done
4756   done
4757   done
4758 IFS=$as_save_IFS
4759   if test -z "$ac_cv_path_SED"; then
4760     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761   fi
4762 else
4763   ac_cv_path_SED=$SED
4764 fi
4765
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4768 $as_echo "$ac_cv_path_SED" >&6; }
4769  SED="$ac_cv_path_SED"
4770   rm -f conftest.sed
4771
4772 test -z "$SED" && SED=sed
4773 Xsed="$SED -e 1s/^X//"
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4786 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4787 if ${ac_cv_path_GREP+:} false; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   if test -z "$GREP"; then
4791   ac_path_GREP_found=false
4792   # Loop through the user's path and test for each of PROGNAME-LIST
4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798     for ac_prog in grep ggrep; do
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4801       as_fn_executable_p "$ac_path_GREP" || continue
4802 # Check for GNU ac_path_GREP and select it if it is found.
4803   # Check for GNU $ac_path_GREP
4804 case `"$ac_path_GREP" --version 2>&1` in
4805 *GNU*)
4806   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4807 *)
4808   ac_count=0
4809   $as_echo_n 0123456789 >"conftest.in"
4810   while :
4811   do
4812     cat "conftest.in" "conftest.in" >"conftest.tmp"
4813     mv "conftest.tmp" "conftest.in"
4814     cp "conftest.in" "conftest.nl"
4815     $as_echo 'GREP' >> "conftest.nl"
4816     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818     as_fn_arith $ac_count + 1 && ac_count=$as_val
4819     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4820       # Best one so far, save it but keep looking for a better one
4821       ac_cv_path_GREP="$ac_path_GREP"
4822       ac_path_GREP_max=$ac_count
4823     fi
4824     # 10*(2^10) chars as input seems more than enough
4825     test $ac_count -gt 10 && break
4826   done
4827   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828 esac
4829
4830       $ac_path_GREP_found && break 3
4831     done
4832   done
4833   done
4834 IFS=$as_save_IFS
4835   if test -z "$ac_cv_path_GREP"; then
4836     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4837   fi
4838 else
4839   ac_cv_path_GREP=$GREP
4840 fi
4841
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4844 $as_echo "$ac_cv_path_GREP" >&6; }
4845  GREP="$ac_cv_path_GREP"
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4849 $as_echo_n "checking for egrep... " >&6; }
4850 if ${ac_cv_path_EGREP+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4854    then ac_cv_path_EGREP="$GREP -E"
4855    else
4856      if test -z "$EGREP"; then
4857   ac_path_EGREP_found=false
4858   # Loop through the user's path and test for each of PROGNAME-LIST
4859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     for ac_prog in egrep; do
4865     for ac_exec_ext in '' $ac_executable_extensions; do
4866       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4867       as_fn_executable_p "$ac_path_EGREP" || continue
4868 # Check for GNU ac_path_EGREP and select it if it is found.
4869   # Check for GNU $ac_path_EGREP
4870 case `"$ac_path_EGREP" --version 2>&1` in
4871 *GNU*)
4872   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4873 *)
4874   ac_count=0
4875   $as_echo_n 0123456789 >"conftest.in"
4876   while :
4877   do
4878     cat "conftest.in" "conftest.in" >"conftest.tmp"
4879     mv "conftest.tmp" "conftest.in"
4880     cp "conftest.in" "conftest.nl"
4881     $as_echo 'EGREP' >> "conftest.nl"
4882     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884     as_fn_arith $ac_count + 1 && ac_count=$as_val
4885     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4886       # Best one so far, save it but keep looking for a better one
4887       ac_cv_path_EGREP="$ac_path_EGREP"
4888       ac_path_EGREP_max=$ac_count
4889     fi
4890     # 10*(2^10) chars as input seems more than enough
4891     test $ac_count -gt 10 && break
4892   done
4893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894 esac
4895
4896       $ac_path_EGREP_found && break 3
4897     done
4898   done
4899   done
4900 IFS=$as_save_IFS
4901   if test -z "$ac_cv_path_EGREP"; then
4902     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4903   fi
4904 else
4905   ac_cv_path_EGREP=$EGREP
4906 fi
4907
4908    fi
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4911 $as_echo "$ac_cv_path_EGREP" >&6; }
4912  EGREP="$ac_cv_path_EGREP"
4913
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4916 $as_echo_n "checking for fgrep... " >&6; }
4917 if ${ac_cv_path_FGREP+:} false; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4921    then ac_cv_path_FGREP="$GREP -F"
4922    else
4923      if test -z "$FGREP"; then
4924   ac_path_FGREP_found=false
4925   # Loop through the user's path and test for each of PROGNAME-LIST
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_prog in fgrep; do
4932     for ac_exec_ext in '' $ac_executable_extensions; do
4933       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4934       as_fn_executable_p "$ac_path_FGREP" || continue
4935 # Check for GNU ac_path_FGREP and select it if it is found.
4936   # Check for GNU $ac_path_FGREP
4937 case `"$ac_path_FGREP" --version 2>&1` in
4938 *GNU*)
4939   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4940 *)
4941   ac_count=0
4942   $as_echo_n 0123456789 >"conftest.in"
4943   while :
4944   do
4945     cat "conftest.in" "conftest.in" >"conftest.tmp"
4946     mv "conftest.tmp" "conftest.in"
4947     cp "conftest.in" "conftest.nl"
4948     $as_echo 'FGREP' >> "conftest.nl"
4949     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951     as_fn_arith $ac_count + 1 && ac_count=$as_val
4952     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4953       # Best one so far, save it but keep looking for a better one
4954       ac_cv_path_FGREP="$ac_path_FGREP"
4955       ac_path_FGREP_max=$ac_count
4956     fi
4957     # 10*(2^10) chars as input seems more than enough
4958     test $ac_count -gt 10 && break
4959   done
4960   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961 esac
4962
4963       $ac_path_FGREP_found && break 3
4964     done
4965   done
4966   done
4967 IFS=$as_save_IFS
4968   if test -z "$ac_cv_path_FGREP"; then
4969     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970   fi
4971 else
4972   ac_cv_path_FGREP=$FGREP
4973 fi
4974
4975    fi
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4978 $as_echo "$ac_cv_path_FGREP" >&6; }
4979  FGREP="$ac_cv_path_FGREP"
4980
4981
4982 test -z "$GREP" && GREP=grep
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002 # Check whether --with-gnu-ld was given.
5003 if test "${with_gnu_ld+set}" = set; then :
5004   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5005 else
5006   with_gnu_ld=no
5007 fi
5008
5009 ac_prog=ld
5010 if test "$GCC" = yes; then
5011   # Check if gcc -print-prog-name=ld gives a path.
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5013 $as_echo_n "checking for ld used by $CC... " >&6; }
5014   case $host in
5015   *-*-mingw*)
5016     # gcc leaves a trailing carriage return which upsets mingw
5017     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5018   *)
5019     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5020   esac
5021   case $ac_prog in
5022     # Accept absolute paths.
5023     [\\/]* | ?:[\\/]*)
5024       re_direlt='/[^/][^/]*/\.\./'
5025       # Canonicalize the pathname of ld
5026       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5027       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5028         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5029       done
5030       test -z "$LD" && LD="$ac_prog"
5031       ;;
5032   "")
5033     # If it fails, then pretend we aren't using GCC.
5034     ac_prog=ld
5035     ;;
5036   *)
5037     # If it is relative, then search for the first ld in PATH.
5038     with_gnu_ld=unknown
5039     ;;
5040   esac
5041 elif test "$with_gnu_ld" = yes; then
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5043 $as_echo_n "checking for GNU ld... " >&6; }
5044 else
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5046 $as_echo_n "checking for non-GNU ld... " >&6; }
5047 fi
5048 if ${lt_cv_path_LD+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -z "$LD"; then
5052   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5053   for ac_dir in $PATH; do
5054     IFS="$lt_save_ifs"
5055     test -z "$ac_dir" && ac_dir=.
5056     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5057       lt_cv_path_LD="$ac_dir/$ac_prog"
5058       # Check to see if the program is GNU ld.  I'd rather use --version,
5059       # but apparently some variants of GNU ld only accept -v.
5060       # Break only if it was the GNU/non-GNU ld that we prefer.
5061       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5062       *GNU* | *'with BFD'*)
5063         test "$with_gnu_ld" != no && break
5064         ;;
5065       *)
5066         test "$with_gnu_ld" != yes && break
5067         ;;
5068       esac
5069     fi
5070   done
5071   IFS="$lt_save_ifs"
5072 else
5073   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5074 fi
5075 fi
5076
5077 LD="$lt_cv_path_LD"
5078 if test -n "$LD"; then
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5080 $as_echo "$LD" >&6; }
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5088 if ${lt_cv_prog_gnu_ld+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5092 case `$LD -v 2>&1 </dev/null` in
5093 *GNU* | *'with BFD'*)
5094   lt_cv_prog_gnu_ld=yes
5095   ;;
5096 *)
5097   lt_cv_prog_gnu_ld=no
5098   ;;
5099 esac
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5102 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5103 with_gnu_ld=$lt_cv_prog_gnu_ld
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5114 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5115 if ${lt_cv_path_NM+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test -n "$NM"; then
5119   # Let the user override the test.
5120   lt_cv_path_NM="$NM"
5121 else
5122   lt_nm_to_check="${ac_tool_prefix}nm"
5123   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5124     lt_nm_to_check="$lt_nm_to_check nm"
5125   fi
5126   for lt_tmp_nm in $lt_nm_to_check; do
5127     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5128     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5129       IFS="$lt_save_ifs"
5130       test -z "$ac_dir" && ac_dir=.
5131       tmp_nm="$ac_dir/$lt_tmp_nm"
5132       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5133         # Check to see if the nm accepts a BSD-compat flag.
5134         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5135         #   nm: unknown option "B" ignored
5136         # Tru64's nm complains that /dev/null is an invalid object file
5137         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5138         */dev/null* | *'Invalid file or object type'*)
5139           lt_cv_path_NM="$tmp_nm -B"
5140           break
5141           ;;
5142         *)
5143           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5144           */dev/null*)
5145             lt_cv_path_NM="$tmp_nm -p"
5146             break
5147             ;;
5148           *)
5149             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5150             continue # so that we can try to find one that supports BSD flags
5151             ;;
5152           esac
5153           ;;
5154         esac
5155       fi
5156     done
5157     IFS="$lt_save_ifs"
5158   done
5159   : ${lt_cv_path_NM=no}
5160 fi
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5163 $as_echo "$lt_cv_path_NM" >&6; }
5164 if test "$lt_cv_path_NM" != "no"; then
5165   NM="$lt_cv_path_NM"
5166 else
5167   # Didn't find any BSD compatible name lister, look for dumpbin.
5168   if test -n "$DUMPBIN"; then :
5169     # Let the user override the test.
5170   else
5171     if test -n "$ac_tool_prefix"; then
5172   for ac_prog in dumpbin "link -dump"
5173   do
5174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_DUMPBIN+:} false; then :
5179   $as_echo_n "(cached) " >&6
5180 else
5181   if test -n "$DUMPBIN"; then
5182   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189     for ac_exec_ext in '' $ac_executable_extensions; do
5190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193     break 2
5194   fi
5195 done
5196   done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 DUMPBIN=$ac_cv_prog_DUMPBIN
5202 if test -n "$DUMPBIN"; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5204 $as_echo "$DUMPBIN" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211     test -n "$DUMPBIN" && break
5212   done
5213 fi
5214 if test -z "$DUMPBIN"; then
5215   ac_ct_DUMPBIN=$DUMPBIN
5216   for ac_prog in dumpbin "link -dump"
5217 do
5218   # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$ac_ct_DUMPBIN"; then
5226   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5246 if test -n "$ac_ct_DUMPBIN"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5248 $as_echo "$ac_ct_DUMPBIN" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255   test -n "$ac_ct_DUMPBIN" && break
5256 done
5257
5258   if test "x$ac_ct_DUMPBIN" = x; then
5259     DUMPBIN=":"
5260   else
5261     case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267     DUMPBIN=$ac_ct_DUMPBIN
5268   fi
5269 fi
5270
5271     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5272     *COFF*)
5273       DUMPBIN="$DUMPBIN -symbols"
5274       ;;
5275     *)
5276       DUMPBIN=:
5277       ;;
5278     esac
5279   fi
5280
5281   if test "$DUMPBIN" != ":"; then
5282     NM="$DUMPBIN"
5283   fi
5284 fi
5285 test -z "$NM" && NM=nm
5286
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5293 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5294 if ${lt_cv_nm_interface+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   lt_cv_nm_interface="BSD nm"
5298   echo "int some_variable = 0;" > conftest.$ac_ext
5299   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5300   (eval "$ac_compile" 2>conftest.err)
5301   cat conftest.err >&5
5302   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5303   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5304   cat conftest.err >&5
5305   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5306   cat conftest.out >&5
5307   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5308     lt_cv_nm_interface="MS dumpbin"
5309   fi
5310   rm -f conftest*
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5313 $as_echo "$lt_cv_nm_interface" >&6; }
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5316 $as_echo_n "checking whether ln -s works... " >&6; }
5317 LN_S=$as_ln_s
5318 if test "$LN_S" = "ln -s"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5323 $as_echo "no, using $LN_S" >&6; }
5324 fi
5325
5326 # find the maximum length of command line arguments
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5328 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5329 if ${lt_cv_sys_max_cmd_len+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332     i=0
5333   teststring="ABCD"
5334
5335   case $build_os in
5336   msdosdjgpp*)
5337     # On DJGPP, this test can blow up pretty badly due to problems in libc
5338     # (any single argument exceeding 2000 bytes causes a buffer overrun
5339     # during glob expansion).  Even if it were fixed, the result of this
5340     # check would be larger than it should be.
5341     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5342     ;;
5343
5344   gnu*)
5345     # Under GNU Hurd, this test is not required because there is
5346     # no limit to the length of command line arguments.
5347     # Libtool will interpret -1 as no limit whatsoever
5348     lt_cv_sys_max_cmd_len=-1;
5349     ;;
5350
5351   cygwin* | mingw* | cegcc*)
5352     # On Win9x/ME, this test blows up -- it succeeds, but takes
5353     # about 5 minutes as the teststring grows exponentially.
5354     # Worse, since 9x/ME are not pre-emptively multitasking,
5355     # you end up with a "frozen" computer, even though with patience
5356     # the test eventually succeeds (with a max line length of 256k).
5357     # Instead, let's just punt: use the minimum linelength reported by
5358     # all of the supported platforms: 8192 (on NT/2K/XP).
5359     lt_cv_sys_max_cmd_len=8192;
5360     ;;
5361
5362   mint*)
5363     # On MiNT this can take a long time and run out of memory.
5364     lt_cv_sys_max_cmd_len=8192;
5365     ;;
5366
5367   amigaos*)
5368     # On AmigaOS with pdksh, this test takes hours, literally.
5369     # So we just punt and use a minimum line length of 8192.
5370     lt_cv_sys_max_cmd_len=8192;
5371     ;;
5372
5373   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5374     # This has been around since 386BSD, at least.  Likely further.
5375     if test -x /sbin/sysctl; then
5376       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5377     elif test -x /usr/sbin/sysctl; then
5378       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5379     else
5380       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5381     fi
5382     # And add a safety zone
5383     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5384     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5385     ;;
5386
5387   interix*)
5388     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5389     lt_cv_sys_max_cmd_len=196608
5390     ;;
5391
5392   os2*)
5393     # The test takes a long time on OS/2.
5394     lt_cv_sys_max_cmd_len=8192
5395     ;;
5396
5397   osf*)
5398     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5399     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5400     # nice to cause kernel panics so lets avoid the loop below.
5401     # First set a reasonable default.
5402     lt_cv_sys_max_cmd_len=16384
5403     #
5404     if test -x /sbin/sysconfig; then
5405       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5406         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5407       esac
5408     fi
5409     ;;
5410   sco3.2v5*)
5411     lt_cv_sys_max_cmd_len=102400
5412     ;;
5413   sysv5* | sco5v6* | sysv4.2uw2*)
5414     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5415     if test -n "$kargmax"; then
5416       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5417     else
5418       lt_cv_sys_max_cmd_len=32768
5419     fi
5420     ;;
5421   *)
5422     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5423     if test -n "$lt_cv_sys_max_cmd_len" && \
5424       test undefined != "$lt_cv_sys_max_cmd_len"; then
5425       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5427     else
5428       # Make teststring a little bigger before we do anything with it.
5429       # a 1K string should be a reasonable start.
5430       for i in 1 2 3 4 5 6 7 8 ; do
5431         teststring=$teststring$teststring
5432       done
5433       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5434       # If test is not a shell built-in, we'll probably end up computing a
5435       # maximum length that is only half of the actual maximum length, but
5436       # we can't tell.
5437       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5438                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5439               test $i != 17 # 1/2 MB should be enough
5440       do
5441         i=`expr $i + 1`
5442         teststring=$teststring$teststring
5443       done
5444       # Only check the string length outside the loop.
5445       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5446       teststring=
5447       # Add a significant safety factor because C++ compilers can tack on
5448       # massive amounts of additional arguments before passing them to the
5449       # linker.  It appears as though 1/2 is a usable value.
5450       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5451     fi
5452     ;;
5453   esac
5454
5455 fi
5456
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5459 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5462 $as_echo "none" >&6; }
5463 fi
5464 max_cmd_len=$lt_cv_sys_max_cmd_len
5465
5466
5467
5468
5469
5470
5471 : ${CP="cp -f"}
5472 : ${MV="mv -f"}
5473 : ${RM="rm -f"}
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5476 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5477 # Try some XSI features
5478 xsi_shell=no
5479 ( _lt_dummy="a/b/c"
5480   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5481       = c,a/b,b/c, \
5482     && eval 'test $(( 1 + 1 )) -eq 2 \
5483     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5484   && xsi_shell=yes
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5486 $as_echo "$xsi_shell" >&6; }
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5490 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5491 lt_shell_append=no
5492 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5493     >/dev/null 2>&1 \
5494   && lt_shell_append=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5496 $as_echo "$lt_shell_append" >&6; }
5497
5498
5499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5500   lt_unset=unset
5501 else
5502   lt_unset=false
5503 fi
5504
5505
5506
5507
5508
5509 # test EBCDIC or ASCII
5510 case `echo X|tr X '\101'` in
5511  A) # ASCII based system
5512     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5513   lt_SP2NL='tr \040 \012'
5514   lt_NL2SP='tr \015\012 \040\040'
5515   ;;
5516  *) # EBCDIC based system
5517   lt_SP2NL='tr \100 \n'
5518   lt_NL2SP='tr \r\n \100\100'
5519   ;;
5520 esac
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5531 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5532 if ${lt_cv_to_host_file_cmd+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535   case $host in
5536   *-*-mingw* )
5537     case $build in
5538       *-*-mingw* ) # actually msys
5539         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5540         ;;
5541       *-*-cygwin* )
5542         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5543         ;;
5544       * ) # otherwise, assume *nix
5545         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5546         ;;
5547     esac
5548     ;;
5549   *-*-cygwin* )
5550     case $build in
5551       *-*-mingw* ) # actually msys
5552         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5553         ;;
5554       *-*-cygwin* )
5555         lt_cv_to_host_file_cmd=func_convert_file_noop
5556         ;;
5557       * ) # otherwise, assume *nix
5558         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5559         ;;
5560     esac
5561     ;;
5562   * ) # unhandled hosts (and "normal" native builds)
5563     lt_cv_to_host_file_cmd=func_convert_file_noop
5564     ;;
5565 esac
5566
5567 fi
5568
5569 to_host_file_cmd=$lt_cv_to_host_file_cmd
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5571 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5572
5573
5574
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5578 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5579 if ${lt_cv_to_tool_file_cmd+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   #assume ordinary cross tools, or native build.
5583 lt_cv_to_tool_file_cmd=func_convert_file_noop
5584 case $host in
5585   *-*-mingw* )
5586     case $build in
5587       *-*-mingw* ) # actually msys
5588         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5589         ;;
5590     esac
5591     ;;
5592 esac
5593
5594 fi
5595
5596 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5598 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5599
5600
5601
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5605 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5606 if ${lt_cv_ld_reload_flag+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   lt_cv_ld_reload_flag='-r'
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5612 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5613 reload_flag=$lt_cv_ld_reload_flag
5614 case $reload_flag in
5615 "" | " "*) ;;
5616 *) reload_flag=" $reload_flag" ;;
5617 esac
5618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5619 case $host_os in
5620   cygwin* | mingw* | pw32* | cegcc*)
5621     if test "$GCC" != yes; then
5622       reload_cmds=false
5623     fi
5624     ;;
5625   darwin*)
5626     if test "$GCC" = yes; then
5627       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5628     else
5629       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5630     fi
5631     ;;
5632 esac
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 if test -n "$ac_tool_prefix"; then
5643   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_OBJDUMP+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   if test -n "$OBJDUMP"; then
5651   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658     for ac_exec_ext in '' $ac_executable_extensions; do
5659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665   done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 OBJDUMP=$ac_cv_prog_OBJDUMP
5671 if test -n "$OBJDUMP"; then
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5673 $as_echo "$OBJDUMP" >&6; }
5674 else
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679
5680 fi
5681 if test -z "$ac_cv_prog_OBJDUMP"; then
5682   ac_ct_OBJDUMP=$OBJDUMP
5683   # Extract the first word of "objdump", so it can be a program name with args.
5684 set dummy objdump; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   if test -n "$ac_ct_OBJDUMP"; then
5691   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5711 if test -n "$ac_ct_OBJDUMP"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5713 $as_echo "$ac_ct_OBJDUMP" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719   if test "x$ac_ct_OBJDUMP" = x; then
5720     OBJDUMP="false"
5721   else
5722     case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728     OBJDUMP=$ac_ct_OBJDUMP
5729   fi
5730 else
5731   OBJDUMP="$ac_cv_prog_OBJDUMP"
5732 fi
5733
5734 test -z "$OBJDUMP" && OBJDUMP=objdump
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5745 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5746 if ${lt_cv_deplibs_check_method+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   lt_cv_file_magic_cmd='$MAGIC_CMD'
5750 lt_cv_file_magic_test_file=
5751 lt_cv_deplibs_check_method='unknown'
5752 # Need to set the preceding variable on all platforms that support
5753 # interlibrary dependencies.
5754 # 'none' -- dependencies not supported.
5755 # `unknown' -- same as none, but documents that we really don't know.
5756 # 'pass_all' -- all dependencies passed with no checks.
5757 # 'test_compile' -- check by making test program.
5758 # 'file_magic [[regex]]' -- check by looking for files in library path
5759 # which responds to the $file_magic_cmd with a given extended regex.
5760 # If you have `file' or equivalent on your system and you're not sure
5761 # whether `pass_all' will *always* work, you probably want this one.
5762
5763 case $host_os in
5764 aix[4-9]*)
5765   lt_cv_deplibs_check_method=pass_all
5766   ;;
5767
5768 beos*)
5769   lt_cv_deplibs_check_method=pass_all
5770   ;;
5771
5772 bsdi[45]*)
5773   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5774   lt_cv_file_magic_cmd='/usr/bin/file -L'
5775   lt_cv_file_magic_test_file=/shlib/libc.so
5776   ;;
5777
5778 cygwin*)
5779   # func_win32_libid is a shell function defined in ltmain.sh
5780   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5781   lt_cv_file_magic_cmd='func_win32_libid'
5782   ;;
5783
5784 mingw* | pw32*)
5785   # Base MSYS/MinGW do not provide the 'file' command needed by
5786   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5787   # unless we find 'file', for example because we are cross-compiling.
5788   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5789   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5790     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5791     lt_cv_file_magic_cmd='func_win32_libid'
5792   else
5793     # Keep this pattern in sync with the one in func_win32_libid.
5794     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5795     lt_cv_file_magic_cmd='$OBJDUMP -f'
5796   fi
5797   ;;
5798
5799 cegcc*)
5800   # use the weaker test based on 'objdump'. See mingw*.
5801   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5802   lt_cv_file_magic_cmd='$OBJDUMP -f'
5803   ;;
5804
5805 darwin* | rhapsody*)
5806   lt_cv_deplibs_check_method=pass_all
5807   ;;
5808
5809 freebsd* | dragonfly*)
5810   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5811     case $host_cpu in
5812     i*86 )
5813       # Not sure whether the presence of OpenBSD here was a mistake.
5814       # Let's accept both of them until this is cleared up.
5815       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5816       lt_cv_file_magic_cmd=/usr/bin/file
5817       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5818       ;;
5819     esac
5820   else
5821     lt_cv_deplibs_check_method=pass_all
5822   fi
5823   ;;
5824
5825 gnu*)
5826   lt_cv_deplibs_check_method=pass_all
5827   ;;
5828
5829 haiku*)
5830   lt_cv_deplibs_check_method=pass_all
5831   ;;
5832
5833 hpux10.20* | hpux11*)
5834   lt_cv_file_magic_cmd=/usr/bin/file
5835   case $host_cpu in
5836   ia64*)
5837     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5838     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5839     ;;
5840   hppa*64*)
5841     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]'
5842     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5843     ;;
5844   *)
5845     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5846     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5847     ;;
5848   esac
5849   ;;
5850
5851 interix[3-9]*)
5852   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5853   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5854   ;;
5855
5856 irix5* | irix6* | nonstopux*)
5857   case $LD in
5858   *-32|*"-32 ") libmagic=32-bit;;
5859   *-n32|*"-n32 ") libmagic=N32;;
5860   *-64|*"-64 ") libmagic=64-bit;;
5861   *) libmagic=never-match;;
5862   esac
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 # This must be glibc/ELF.
5867 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5868   lt_cv_deplibs_check_method=pass_all
5869   ;;
5870
5871 netbsd*)
5872   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5873     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5874   else
5875     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5876   fi
5877   ;;
5878
5879 newos6*)
5880   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5881   lt_cv_file_magic_cmd=/usr/bin/file
5882   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5883   ;;
5884
5885 *nto* | *qnx*)
5886   lt_cv_deplibs_check_method=pass_all
5887   ;;
5888
5889 openbsd*)
5890   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5891     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5892   else
5893     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5894   fi
5895   ;;
5896
5897 osf3* | osf4* | osf5*)
5898   lt_cv_deplibs_check_method=pass_all
5899   ;;
5900
5901 rdos*)
5902   lt_cv_deplibs_check_method=pass_all
5903   ;;
5904
5905 solaris*)
5906   lt_cv_deplibs_check_method=pass_all
5907   ;;
5908
5909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5910   lt_cv_deplibs_check_method=pass_all
5911   ;;
5912
5913 sysv4 | sysv4.3*)
5914   case $host_vendor in
5915   motorola)
5916     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]'
5917     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5918     ;;
5919   ncr)
5920     lt_cv_deplibs_check_method=pass_all
5921     ;;
5922   sequent)
5923     lt_cv_file_magic_cmd='/bin/file'
5924     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5925     ;;
5926   sni)
5927     lt_cv_file_magic_cmd='/bin/file'
5928     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5929     lt_cv_file_magic_test_file=/lib/libc.so
5930     ;;
5931   siemens)
5932     lt_cv_deplibs_check_method=pass_all
5933     ;;
5934   pc)
5935     lt_cv_deplibs_check_method=pass_all
5936     ;;
5937   esac
5938   ;;
5939
5940 tpf*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943 esac
5944
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5947 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5948
5949 file_magic_glob=
5950 want_nocaseglob=no
5951 if test "$build" = "$host"; then
5952   case $host_os in
5953   mingw* | pw32*)
5954     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5955       want_nocaseglob=yes
5956     else
5957       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5958     fi
5959     ;;
5960   esac
5961 fi
5962
5963 file_magic_cmd=$lt_cv_file_magic_cmd
5964 deplibs_check_method=$lt_cv_deplibs_check_method
5965 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 if test -n "$ac_tool_prefix"; then
5989   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if ${ac_cv_prog_DLLTOOL+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   if test -n "$DLLTOOL"; then
5997   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004     for ac_exec_ext in '' $ac_executable_extensions; do
6005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011   done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 DLLTOOL=$ac_cv_prog_DLLTOOL
6017 if test -n "$DLLTOOL"; then
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6019 $as_echo "$DLLTOOL" >&6; }
6020 else
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024
6025
6026 fi
6027 if test -z "$ac_cv_prog_DLLTOOL"; then
6028   ac_ct_DLLTOOL=$DLLTOOL
6029   # Extract the first word of "dlltool", so it can be a program name with args.
6030 set dummy dlltool; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   if test -n "$ac_ct_DLLTOOL"; then
6037   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051   done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6057 if test -n "$ac_ct_DLLTOOL"; then
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6059 $as_echo "$ac_ct_DLLTOOL" >&6; }
6060 else
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065   if test "x$ac_ct_DLLTOOL" = x; then
6066     DLLTOOL="false"
6067   else
6068     case $cross_compiling:$ac_tool_warned in
6069 yes:)
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned=yes ;;
6073 esac
6074     DLLTOOL=$ac_ct_DLLTOOL
6075   fi
6076 else
6077   DLLTOOL="$ac_cv_prog_DLLTOOL"
6078 fi
6079
6080 test -z "$DLLTOOL" && DLLTOOL=dlltool
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6092 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6093 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   lt_cv_sharedlib_from_linklib_cmd='unknown'
6097
6098 case $host_os in
6099 cygwin* | mingw* | pw32* | cegcc*)
6100   # two different shell functions defined in ltmain.sh
6101   # decide which to use based on capabilities of $DLLTOOL
6102   case `$DLLTOOL --help 2>&1` in
6103   *--identify-strict*)
6104     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6105     ;;
6106   *)
6107     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6108     ;;
6109   esac
6110   ;;
6111 *)
6112   # fallback: assume linklib IS sharedlib
6113   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6114   ;;
6115 esac
6116
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6119 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6120 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6121 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6122
6123
6124
6125
6126
6127
6128
6129
6130 if test -n "$ac_tool_prefix"; then
6131   for ac_prog in ar
6132   do
6133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_AR+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   if test -n "$AR"; then
6141   ac_cv_prog_AR="$AR" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148     for ac_exec_ext in '' $ac_executable_extensions; do
6149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155   done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 AR=$ac_cv_prog_AR
6161 if test -n "$AR"; then
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6163 $as_echo "$AR" >&6; }
6164 else
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169
6170     test -n "$AR" && break
6171   done
6172 fi
6173 if test -z "$AR"; then
6174   ac_ct_AR=$AR
6175   for ac_prog in ar
6176 do
6177   # Extract the first word of "$ac_prog", so it can be a program name with args.
6178 set dummy $ac_prog; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   if test -n "$ac_ct_AR"; then
6185   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192     for ac_exec_ext in '' $ac_executable_extensions; do
6193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194     ac_cv_prog_ac_ct_AR="$ac_prog"
6195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199   done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6205 if test -n "$ac_ct_AR"; then
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6207 $as_echo "$ac_ct_AR" >&6; }
6208 else
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6211 fi
6212
6213
6214   test -n "$ac_ct_AR" && break
6215 done
6216
6217   if test "x$ac_ct_AR" = x; then
6218     AR="false"
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     AR=$ac_ct_AR
6227   fi
6228 fi
6229
6230 : ${AR=ar}
6231 : ${AR_FLAGS=cru}
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6244 $as_echo_n "checking for archiver @FILE support... " >&6; }
6245 if ${lt_cv_ar_at_file+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   lt_cv_ar_at_file=no
6249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h.  */
6251
6252 int
6253 main ()
6254 {
6255
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261   echo conftest.$ac_objext > conftest.lst
6262       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6263       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6264   (eval $lt_ar_try) 2>&5
6265   ac_status=$?
6266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267   test $ac_status = 0; }
6268       if test "$ac_status" -eq 0; then
6269         # Ensure the archiver fails upon bogus file names.
6270         rm -f conftest.$ac_objext libconftest.a
6271         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6272   (eval $lt_ar_try) 2>&5
6273   ac_status=$?
6274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275   test $ac_status = 0; }
6276         if test "$ac_status" -ne 0; then
6277           lt_cv_ar_at_file=@
6278         fi
6279       fi
6280       rm -f conftest.* libconftest.a
6281
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6287 $as_echo "$lt_cv_ar_at_file" >&6; }
6288
6289 if test "x$lt_cv_ar_at_file" = xno; then
6290   archiver_list_spec=
6291 else
6292   archiver_list_spec=$lt_cv_ar_at_file
6293 fi
6294
6295
6296
6297
6298
6299
6300
6301 if test -n "$ac_tool_prefix"; then
6302   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}strip; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_STRIP+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   if test -n "$STRIP"; then
6310   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324   done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 STRIP=$ac_cv_prog_STRIP
6330 if test -n "$STRIP"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6332 $as_echo "$STRIP" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_STRIP"; then
6341   ac_ct_STRIP=$STRIP
6342   # Extract the first word of "strip", so it can be a program name with args.
6343 set dummy strip; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$ac_ct_STRIP"; then
6350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359     ac_cv_prog_ac_ct_STRIP="strip"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6370 if test -n "$ac_ct_STRIP"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6372 $as_echo "$ac_ct_STRIP" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378   if test "x$ac_ct_STRIP" = x; then
6379     STRIP=":"
6380   else
6381     case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387     STRIP=$ac_ct_STRIP
6388   fi
6389 else
6390   STRIP="$ac_cv_prog_STRIP"
6391 fi
6392
6393 test -z "$STRIP" && STRIP=:
6394
6395
6396
6397
6398
6399
6400 if test -n "$ac_tool_prefix"; then
6401   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_RANLIB+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   if test -n "$RANLIB"; then
6409   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416     for ac_exec_ext in '' $ac_executable_extensions; do
6417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423   done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 RANLIB=$ac_cv_prog_RANLIB
6429 if test -n "$RANLIB"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6431 $as_echo "$RANLIB" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437
6438 fi
6439 if test -z "$ac_cv_prog_RANLIB"; then
6440   ac_ct_RANLIB=$RANLIB
6441   # Extract the first word of "ranlib", so it can be a program name with args.
6442 set dummy ranlib; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   if test -n "$ac_ct_RANLIB"; then
6449   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456     for ac_exec_ext in '' $ac_executable_extensions; do
6457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458     ac_cv_prog_ac_ct_RANLIB="ranlib"
6459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460     break 2
6461   fi
6462 done
6463   done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6469 if test -n "$ac_ct_RANLIB"; then
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6471 $as_echo "$ac_ct_RANLIB" >&6; }
6472 else
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477   if test "x$ac_ct_RANLIB" = x; then
6478     RANLIB=":"
6479   else
6480     case $cross_compiling:$ac_tool_warned in
6481 yes:)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486     RANLIB=$ac_ct_RANLIB
6487   fi
6488 else
6489   RANLIB="$ac_cv_prog_RANLIB"
6490 fi
6491
6492 test -z "$RANLIB" && RANLIB=:
6493
6494
6495
6496
6497
6498
6499 # Determine commands to create old-style static archives.
6500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6501 old_postinstall_cmds='chmod 644 $oldlib'
6502 old_postuninstall_cmds=
6503
6504 if test -n "$RANLIB"; then
6505   case $host_os in
6506   openbsd*)
6507     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6508     ;;
6509   *)
6510     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6511     ;;
6512   esac
6513   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6514 fi
6515
6516 case $host_os in
6517   darwin*)
6518     lock_old_archive_extraction=yes ;;
6519   *)
6520     lock_old_archive_extraction=no ;;
6521 esac
6522
6523
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 # If no C compiler was specified, use CC.
6562 LTCC=${LTCC-"$CC"}
6563
6564 # If no C compiler flags were specified, use CFLAGS.
6565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6566
6567 # Allow CC to be a program name with arguments.
6568 compiler=$CC
6569
6570
6571 # Check for command to grab the raw symbol name followed by C symbol from nm.
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6573 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6574 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577
6578 # These are sane defaults that work on at least a few old systems.
6579 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6580
6581 # Character class describing NM global symbol codes.
6582 symcode='[BCDEGRST]'
6583
6584 # Regexp to match symbols that can be accessed directly from C.
6585 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6586
6587 # Define system-specific variables.
6588 case $host_os in
6589 aix*)
6590   symcode='[BCDT]'
6591   ;;
6592 cygwin* | mingw* | pw32* | cegcc*)
6593   symcode='[ABCDGISTW]'
6594   ;;
6595 hpux*)
6596   if test "$host_cpu" = ia64; then
6597     symcode='[ABCDEGRST]'
6598   fi
6599   ;;
6600 irix* | nonstopux*)
6601   symcode='[BCDEGRST]'
6602   ;;
6603 osf*)
6604   symcode='[BCDEGQRST]'
6605   ;;
6606 solaris*)
6607   symcode='[BDRT]'
6608   ;;
6609 sco3.2v5*)
6610   symcode='[DT]'
6611   ;;
6612 sysv4.2uw2*)
6613   symcode='[DT]'
6614   ;;
6615 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6616   symcode='[ABDT]'
6617   ;;
6618 sysv4)
6619   symcode='[DFNSTU]'
6620   ;;
6621 esac
6622
6623 # If we're using GNU nm, then use its standard symbol codes.
6624 case `$NM -V 2>&1` in
6625 *GNU* | *'with BFD'*)
6626   symcode='[ABCDGIRSTW]' ;;
6627 esac
6628
6629 # Transform an extracted symbol line into a proper C declaration.
6630 # Some systems (esp. on ia64) link data and code symbols differently,
6631 # so use this general approach.
6632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6633
6634 # Transform an extracted symbol line into symbol name and symbol address
6635 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6636 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'"
6637
6638 # Handle CRLF in mingw tool chain
6639 opt_cr=
6640 case $build_os in
6641 mingw*)
6642   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6643   ;;
6644 esac
6645
6646 # Try without a prefix underscore, then with it.
6647 for ac_symprfx in "" "_"; do
6648
6649   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6650   symxfrm="\\1 $ac_symprfx\\2 \\2"
6651
6652   # Write the raw and C identifiers.
6653   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6654     # Fake it for dumpbin and say T for any non-static function
6655     # and D for any global variable.
6656     # Also find C++ and __fastcall symbols from MSVC++,
6657     # which start with @ or ?.
6658     lt_cv_sys_global_symbol_pipe="$AWK '"\
6659 "     {last_section=section; section=\$ 3};"\
6660 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6661 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6662 "     \$ 0!~/External *\|/{next};"\
6663 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6664 "     {if(hide[section]) next};"\
6665 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6666 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6667 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6668 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6669 "     ' prfx=^$ac_symprfx"
6670   else
6671     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6672   fi
6673   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6674
6675   # Check to see that the pipe works correctly.
6676   pipe_works=no
6677
6678   rm -f conftest*
6679   cat > conftest.$ac_ext <<_LT_EOF
6680 #ifdef __cplusplus
6681 extern "C" {
6682 #endif
6683 char nm_test_var;
6684 void nm_test_func(void);
6685 void nm_test_func(void){}
6686 #ifdef __cplusplus
6687 }
6688 #endif
6689 int main(){nm_test_var='a';nm_test_func();return(0);}
6690 _LT_EOF
6691
6692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693   (eval $ac_compile) 2>&5
6694   ac_status=$?
6695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696   test $ac_status = 0; }; then
6697     # Now try to grab the symbols.
6698     nlist=conftest.nm
6699     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6700   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6701   ac_status=$?
6702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703   test $ac_status = 0; } && test -s "$nlist"; then
6704       # Try sorting and uniquifying the output.
6705       if sort "$nlist" | uniq > "$nlist"T; then
6706         mv -f "$nlist"T "$nlist"
6707       else
6708         rm -f "$nlist"T
6709       fi
6710
6711       # Make sure that we snagged all the symbols we need.
6712       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6713         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6714           cat <<_LT_EOF > conftest.$ac_ext
6715 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6716 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6717 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6718    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6719 # define LT_DLSYM_CONST
6720 #elif defined(__osf__)
6721 /* This system does not cope well with relocations in const data.  */
6722 # define LT_DLSYM_CONST
6723 #else
6724 # define LT_DLSYM_CONST const
6725 #endif
6726
6727 #ifdef __cplusplus
6728 extern "C" {
6729 #endif
6730
6731 _LT_EOF
6732           # Now generate the symbol file.
6733           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6734
6735           cat <<_LT_EOF >> conftest.$ac_ext
6736
6737 /* The mapping between symbol names and symbols.  */
6738 LT_DLSYM_CONST struct {
6739   const char *name;
6740   void       *address;
6741 }
6742 lt__PROGRAM__LTX_preloaded_symbols[] =
6743 {
6744   { "@PROGRAM@", (void *) 0 },
6745 _LT_EOF
6746           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6747           cat <<\_LT_EOF >> conftest.$ac_ext
6748   {0, (void *) 0}
6749 };
6750
6751 /* This works around a problem in FreeBSD linker */
6752 #ifdef FREEBSD_WORKAROUND
6753 static const void *lt_preloaded_setup() {
6754   return lt__PROGRAM__LTX_preloaded_symbols;
6755 }
6756 #endif
6757
6758 #ifdef __cplusplus
6759 }
6760 #endif
6761 _LT_EOF
6762           # Now try linking the two files.
6763           mv conftest.$ac_objext conftstm.$ac_objext
6764           lt_globsym_save_LIBS=$LIBS
6765           lt_globsym_save_CFLAGS=$CFLAGS
6766           LIBS="conftstm.$ac_objext"
6767           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6768           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6769   (eval $ac_link) 2>&5
6770   ac_status=$?
6771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6773             pipe_works=yes
6774           fi
6775           LIBS=$lt_globsym_save_LIBS
6776           CFLAGS=$lt_globsym_save_CFLAGS
6777         else
6778           echo "cannot find nm_test_func in $nlist" >&5
6779         fi
6780       else
6781         echo "cannot find nm_test_var in $nlist" >&5
6782       fi
6783     else
6784       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6785     fi
6786   else
6787     echo "$progname: failed program was:" >&5
6788     cat conftest.$ac_ext >&5
6789   fi
6790   rm -rf conftest* conftst*
6791
6792   # Do not use the global_symbol_pipe unless it works.
6793   if test "$pipe_works" = yes; then
6794     break
6795   else
6796     lt_cv_sys_global_symbol_pipe=
6797   fi
6798 done
6799
6800 fi
6801
6802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6803   lt_cv_sys_global_symbol_to_cdecl=
6804 fi
6805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6807 $as_echo "failed" >&6; }
6808 else
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6810 $as_echo "ok" >&6; }
6811 fi
6812
6813 # Response file support.
6814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6815   nm_file_list_spec='@'
6816 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6817   nm_file_list_spec='@'
6818 fi
6819
6820
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6847 $as_echo_n "checking for sysroot... " >&6; }
6848
6849 # Check whether --with-sysroot was given.
6850 if test "${with_sysroot+set}" = set; then :
6851   withval=$with_sysroot;
6852 else
6853   with_sysroot=no
6854 fi
6855
6856
6857 lt_sysroot=
6858 case ${with_sysroot} in #(
6859  yes)
6860    if test "$GCC" = yes; then
6861      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6862    fi
6863    ;; #(
6864  /*)
6865    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6866    ;; #(
6867  no|'')
6868    ;; #(
6869  *)
6870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6871 $as_echo "${with_sysroot}" >&6; }
6872    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6873    ;;
6874 esac
6875
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6877 $as_echo "${lt_sysroot:-no}" >&6; }
6878
6879
6880
6881
6882
6883 # Check whether --enable-libtool-lock was given.
6884 if test "${enable_libtool_lock+set}" = set; then :
6885   enableval=$enable_libtool_lock;
6886 fi
6887
6888 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6889
6890 # Some flags need to be propagated to the compiler or linker for good
6891 # libtool support.
6892 case $host in
6893 ia64-*-hpux*)
6894   # Find out which ABI we are using.
6895   echo 'int i;' > conftest.$ac_ext
6896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897   (eval $ac_compile) 2>&5
6898   ac_status=$?
6899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900   test $ac_status = 0; }; then
6901     case `/usr/bin/file conftest.$ac_objext` in
6902       *ELF-32*)
6903         HPUX_IA64_MODE="32"
6904         ;;
6905       *ELF-64*)
6906         HPUX_IA64_MODE="64"
6907         ;;
6908     esac
6909   fi
6910   rm -rf conftest*
6911   ;;
6912 *-*-irix6*)
6913   # Find out which ABI we are using.
6914   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6915   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6916   (eval $ac_compile) 2>&5
6917   ac_status=$?
6918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6919   test $ac_status = 0; }; then
6920     if test "$lt_cv_prog_gnu_ld" = yes; then
6921       case `/usr/bin/file conftest.$ac_objext` in
6922         *32-bit*)
6923           LD="${LD-ld} -melf32bsmip"
6924           ;;
6925         *N32*)
6926           LD="${LD-ld} -melf32bmipn32"
6927           ;;
6928         *64-bit*)
6929           LD="${LD-ld} -melf64bmip"
6930         ;;
6931       esac
6932     else
6933       case `/usr/bin/file conftest.$ac_objext` in
6934         *32-bit*)
6935           LD="${LD-ld} -32"
6936           ;;
6937         *N32*)
6938           LD="${LD-ld} -n32"
6939           ;;
6940         *64-bit*)
6941           LD="${LD-ld} -64"
6942           ;;
6943       esac
6944     fi
6945   fi
6946   rm -rf conftest*
6947   ;;
6948
6949 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6950 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6951   # Find out which ABI we are using.
6952   echo 'int i;' > conftest.$ac_ext
6953   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954   (eval $ac_compile) 2>&5
6955   ac_status=$?
6956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957   test $ac_status = 0; }; then
6958     case `/usr/bin/file conftest.o` in
6959       *32-bit*)
6960         case $host in
6961           x86_64-*kfreebsd*-gnu)
6962             LD="${LD-ld} -m elf_i386_fbsd"
6963             ;;
6964           x86_64-*linux*)
6965             case `/usr/bin/file conftest.o` in
6966               *x86-64*)
6967                  LD="${LD-ld} -m elf32_x86_64"
6968                  ;;
6969               *)
6970                  LD="${LD-ld} -m elf_i386"
6971                  ;;
6972             esac
6973             ;;
6974           ppc64-*linux*|powerpc64-*linux*)
6975             LD="${LD-ld} -m elf32ppclinux"
6976             ;;
6977           s390x-*linux*)
6978             LD="${LD-ld} -m elf_s390"
6979             ;;
6980           sparc64-*linux*)
6981             LD="${LD-ld} -m elf32_sparc"
6982             ;;
6983         esac
6984         ;;
6985       *64-bit*)
6986         case $host in
6987           x86_64-*kfreebsd*-gnu)
6988             LD="${LD-ld} -m elf_x86_64_fbsd"
6989             ;;
6990           x86_64-*linux*)
6991             LD="${LD-ld} -m elf_x86_64"
6992             ;;
6993           ppc*-*linux*|powerpc*-*linux*)
6994             LD="${LD-ld} -m elf64ppc"
6995             ;;
6996           s390*-*linux*|s390*-*tpf*)
6997             LD="${LD-ld} -m elf64_s390"
6998             ;;
6999           sparc*-*linux*)
7000             LD="${LD-ld} -m elf64_sparc"
7001             ;;
7002         esac
7003         ;;
7004     esac
7005   fi
7006   rm -rf conftest*
7007   ;;
7008
7009 *-*-sco3.2v5*)
7010   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7011   SAVE_CFLAGS="$CFLAGS"
7012   CFLAGS="$CFLAGS -belf"
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7014 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7015 if ${lt_cv_cc_needs_belf+:} false; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   ac_ext=c
7019 ac_cpp='$CPP $CPPFLAGS'
7020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023
7024      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h.  */
7026
7027 int
7028 main ()
7029 {
7030
7031   ;
7032   return 0;
7033 }
7034 _ACEOF
7035 if ac_fn_c_try_link "$LINENO"; then :
7036   lt_cv_cc_needs_belf=yes
7037 else
7038   lt_cv_cc_needs_belf=no
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext \
7041     conftest$ac_exeext conftest.$ac_ext
7042      ac_ext=c
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7050 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7051   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7052     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7053     CFLAGS="$SAVE_CFLAGS"
7054   fi
7055   ;;
7056 *-*solaris*)
7057   # Find out which ABI we are using.
7058   echo 'int i;' > conftest.$ac_ext
7059   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7060   (eval $ac_compile) 2>&5
7061   ac_status=$?
7062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063   test $ac_status = 0; }; then
7064     case `/usr/bin/file conftest.o` in
7065     *64-bit*)
7066       case $lt_cv_prog_gnu_ld in
7067       yes*)
7068         case $host in
7069         i?86-*-solaris*)
7070           LD="${LD-ld} -m elf_x86_64"
7071           ;;
7072         sparc*-*-solaris*)
7073           LD="${LD-ld} -m elf64_sparc"
7074           ;;
7075         esac
7076         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7077         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7078           LD="${LD-ld}_sol2"
7079         fi
7080         ;;
7081       *)
7082         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7083           LD="${LD-ld} -64"
7084         fi
7085         ;;
7086       esac
7087       ;;
7088     esac
7089   fi
7090   rm -rf conftest*
7091   ;;
7092 esac
7093
7094 need_locks="$enable_libtool_lock"
7095
7096 if test -n "$ac_tool_prefix"; then
7097   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}mt; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if test -n "$MANIFEST_TOOL"; then
7105   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7125 if test -n "$MANIFEST_TOOL"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7127 $as_echo "$MANIFEST_TOOL" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7136   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7137   # Extract the first word of "mt", so it can be a program name with args.
7138 set dummy mt; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7142   $as_echo_n "(cached) " >&6
7143 else
7144   if test -n "$ac_ct_MANIFEST_TOOL"; then
7145   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152     for ac_exec_ext in '' $ac_executable_extensions; do
7153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159   done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7165 if test -n "$ac_ct_MANIFEST_TOOL"; then
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7167 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7168 else
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7174     MANIFEST_TOOL=":"
7175   else
7176     case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7183   fi
7184 else
7185   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7186 fi
7187
7188 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7190 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7191 if ${lt_cv_path_mainfest_tool+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   lt_cv_path_mainfest_tool=no
7195   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7196   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7197   cat conftest.err >&5
7198   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7199     lt_cv_path_mainfest_tool=yes
7200   fi
7201   rm -f conftest*
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7204 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7205 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7206   MANIFEST_TOOL=:
7207 fi
7208
7209
7210
7211
7212
7213
7214   case $host_os in
7215     rhapsody* | darwin*)
7216     if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$DSYMUTIL"; then
7225   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7245 if test -n "$DSYMUTIL"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7247 $as_echo "$DSYMUTIL" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_DSYMUTIL"; then
7256   ac_ct_DSYMUTIL=$DSYMUTIL
7257   # Extract the first word of "dsymutil", so it can be a program name with args.
7258 set dummy dsymutil; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_DSYMUTIL"; then
7265   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7285 if test -n "$ac_ct_DSYMUTIL"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7287 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_DSYMUTIL" = x; then
7294     DSYMUTIL=":"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     DSYMUTIL=$ac_ct_DSYMUTIL
7303   fi
7304 else
7305   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7306 fi
7307
7308     if test -n "$ac_tool_prefix"; then
7309   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_NMEDIT+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$NMEDIT"; then
7317   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 NMEDIT=$ac_cv_prog_NMEDIT
7337 if test -n "$NMEDIT"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7339 $as_echo "$NMEDIT" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_NMEDIT"; then
7348   ac_ct_NMEDIT=$NMEDIT
7349   # Extract the first word of "nmedit", so it can be a program name with args.
7350 set dummy nmedit; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$ac_ct_NMEDIT"; then
7357   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7377 if test -n "$ac_ct_NMEDIT"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7379 $as_echo "$ac_ct_NMEDIT" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385   if test "x$ac_ct_NMEDIT" = x; then
7386     NMEDIT=":"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     NMEDIT=$ac_ct_NMEDIT
7395   fi
7396 else
7397   NMEDIT="$ac_cv_prog_NMEDIT"
7398 fi
7399
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_LIPO+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$LIPO"; then
7409   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 LIPO=$ac_cv_prog_LIPO
7429 if test -n "$LIPO"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7431 $as_echo "$LIPO" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_LIPO"; then
7440   ac_ct_LIPO=$LIPO
7441   # Extract the first word of "lipo", so it can be a program name with args.
7442 set dummy lipo; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$ac_ct_LIPO"; then
7449   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_prog_ac_ct_LIPO="lipo"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7469 if test -n "$ac_ct_LIPO"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7471 $as_echo "$ac_ct_LIPO" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_LIPO" = x; then
7478     LIPO=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     LIPO=$ac_ct_LIPO
7487   fi
7488 else
7489   LIPO="$ac_cv_prog_LIPO"
7490 fi
7491
7492     if test -n "$ac_tool_prefix"; then
7493   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}otool; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_OTOOL+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$OTOOL"; then
7501   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 OTOOL=$ac_cv_prog_OTOOL
7521 if test -n "$OTOOL"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7523 $as_echo "$OTOOL" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_OTOOL"; then
7532   ac_ct_OTOOL=$OTOOL
7533   # Extract the first word of "otool", so it can be a program name with args.
7534 set dummy otool; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$ac_ct_OTOOL"; then
7541   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_prog_ac_ct_OTOOL="otool"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7561 if test -n "$ac_ct_OTOOL"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7563 $as_echo "$ac_ct_OTOOL" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569   if test "x$ac_ct_OTOOL" = x; then
7570     OTOOL=":"
7571   else
7572     case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578     OTOOL=$ac_ct_OTOOL
7579   fi
7580 else
7581   OTOOL="$ac_cv_prog_OTOOL"
7582 fi
7583
7584     if test -n "$ac_tool_prefix"; then
7585   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_OTOOL64+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$OTOOL64"; then
7593   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 OTOOL64=$ac_cv_prog_OTOOL64
7613 if test -n "$OTOOL64"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7615 $as_echo "$OTOOL64" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_OTOOL64"; then
7624   ac_ct_OTOOL64=$OTOOL64
7625   # Extract the first word of "otool64", so it can be a program name with args.
7626 set dummy otool64; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$ac_ct_OTOOL64"; then
7633   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_ac_ct_OTOOL64="otool64"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7653 if test -n "$ac_ct_OTOOL64"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7655 $as_echo "$ac_ct_OTOOL64" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661   if test "x$ac_ct_OTOOL64" = x; then
7662     OTOOL64=":"
7663   else
7664     case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670     OTOOL64=$ac_ct_OTOOL64
7671   fi
7672 else
7673   OTOOL64="$ac_cv_prog_OTOOL64"
7674 fi
7675
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7703 $as_echo_n "checking for -single_module linker flag... " >&6; }
7704 if ${lt_cv_apple_cc_single_mod+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   lt_cv_apple_cc_single_mod=no
7708       if test -z "${LT_MULTI_MODULE}"; then
7709         # By default we will add the -single_module flag. You can override
7710         # by either setting the environment variable LT_MULTI_MODULE
7711         # non-empty at configure time, or by adding -multi_module to the
7712         # link flags.
7713         rm -rf libconftest.dylib*
7714         echo "int foo(void){return 1;}" > conftest.c
7715         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7716 -dynamiclib -Wl,-single_module conftest.c" >&5
7717         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7718           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7719         _lt_result=$?
7720         # If there is a non-empty error log, and "single_module"
7721         # appears in it, assume the flag caused a linker warning
7722         if test -s conftest.err && $GREP single_module conftest.err; then
7723           cat conftest.err >&5
7724         # Otherwise, if the output was created with a 0 exit code from
7725         # the compiler, it worked.
7726         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7727           lt_cv_apple_cc_single_mod=yes
7728         else
7729           cat conftest.err >&5
7730         fi
7731         rm -rf libconftest.dylib*
7732         rm -f conftest.*
7733       fi
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7736 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7737
7738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7739 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7740 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   lt_cv_ld_exported_symbols_list=no
7744       save_LDFLAGS=$LDFLAGS
7745       echo "_main" > conftest.sym
7746       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7747       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h.  */
7749
7750 int
7751 main ()
7752 {
7753
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then :
7759   lt_cv_ld_exported_symbols_list=yes
7760 else
7761   lt_cv_ld_exported_symbols_list=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext \
7764     conftest$ac_exeext conftest.$ac_ext
7765         LDFLAGS="$save_LDFLAGS"
7766
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7769 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7770
7771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7772 $as_echo_n "checking for -force_load linker flag... " >&6; }
7773 if ${lt_cv_ld_force_load+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   lt_cv_ld_force_load=no
7777       cat > conftest.c << _LT_EOF
7778 int forced_loaded() { return 2;}
7779 _LT_EOF
7780       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7781       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7782       echo "$AR cru libconftest.a conftest.o" >&5
7783       $AR cru libconftest.a conftest.o 2>&5
7784       echo "$RANLIB libconftest.a" >&5
7785       $RANLIB libconftest.a 2>&5
7786       cat > conftest.c << _LT_EOF
7787 int main() { return 0;}
7788 _LT_EOF
7789       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7790       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7791       _lt_result=$?
7792       if test -s conftest.err && $GREP force_load conftest.err; then
7793         cat conftest.err >&5
7794       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7795         lt_cv_ld_force_load=yes
7796       else
7797         cat conftest.err >&5
7798       fi
7799         rm -f conftest.err libconftest.a conftest conftest.c
7800         rm -rf conftest.dSYM
7801
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7804 $as_echo "$lt_cv_ld_force_load" >&6; }
7805     case $host_os in
7806     rhapsody* | darwin1.[012])
7807       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7808     darwin1.*)
7809       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7810     darwin*) # darwin 5.x on
7811       # if running on 10.5 or later, the deployment target defaults
7812       # to the OS version, if on x86, and 10.4, the deployment
7813       # target defaults to 10.4. Don't you love it?
7814       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7815         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7816           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7817         10.[012]*)
7818           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7819         10.*)
7820           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7821       esac
7822     ;;
7823   esac
7824     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7825       _lt_dar_single_mod='$single_module'
7826     fi
7827     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7828       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7829     else
7830       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7831     fi
7832     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7833       _lt_dsymutil='~$DSYMUTIL $lib || :'
7834     else
7835       _lt_dsymutil=
7836     fi
7837     ;;
7838   esac
7839
7840 ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7846 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7847 # On Suns, sometimes $CPP names a directory.
7848 if test -n "$CPP" && test -d "$CPP"; then
7849   CPP=
7850 fi
7851 if test -z "$CPP"; then
7852   if ${ac_cv_prog_CPP+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855       # Double quotes because CPP needs to be expanded
7856     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7857     do
7858       ac_preproc_ok=false
7859 for ac_c_preproc_warn_flag in '' yes
7860 do
7861   # Use a header file that comes with gcc, so configuring glibc
7862   # with a fresh cross-compiler works.
7863   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7864   # <limits.h> exists even on freestanding compilers.
7865   # On the NeXT, cc -E runs the code through the compiler's parser,
7866   # not just through cpp. "Syntax error" is here to catch this case.
7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869 #ifdef __STDC__
7870 # include <limits.h>
7871 #else
7872 # include <assert.h>
7873 #endif
7874                      Syntax error
7875 _ACEOF
7876 if ac_fn_c_try_cpp "$LINENO"; then :
7877
7878 else
7879   # Broken: fails on valid input.
7880 continue
7881 fi
7882 rm -f conftest.err conftest.i conftest.$ac_ext
7883
7884   # OK, works on sane cases.  Now check whether nonexistent headers
7885   # can be detected and how.
7886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h.  */
7888 #include <ac_nonexistent.h>
7889 _ACEOF
7890 if ac_fn_c_try_cpp "$LINENO"; then :
7891   # Broken: success on invalid input.
7892 continue
7893 else
7894   # Passes both tests.
7895 ac_preproc_ok=:
7896 break
7897 fi
7898 rm -f conftest.err conftest.i conftest.$ac_ext
7899
7900 done
7901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7902 rm -f conftest.i conftest.err conftest.$ac_ext
7903 if $ac_preproc_ok; then :
7904   break
7905 fi
7906
7907     done
7908     ac_cv_prog_CPP=$CPP
7909
7910 fi
7911   CPP=$ac_cv_prog_CPP
7912 else
7913   ac_cv_prog_CPP=$CPP
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7916 $as_echo "$CPP" >&6; }
7917 ac_preproc_ok=false
7918 for ac_c_preproc_warn_flag in '' yes
7919 do
7920   # Use a header file that comes with gcc, so configuring glibc
7921   # with a fresh cross-compiler works.
7922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7923   # <limits.h> exists even on freestanding compilers.
7924   # On the NeXT, cc -E runs the code through the compiler's parser,
7925   # not just through cpp. "Syntax error" is here to catch this case.
7926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h.  */
7928 #ifdef __STDC__
7929 # include <limits.h>
7930 #else
7931 # include <assert.h>
7932 #endif
7933                      Syntax error
7934 _ACEOF
7935 if ac_fn_c_try_cpp "$LINENO"; then :
7936
7937 else
7938   # Broken: fails on valid input.
7939 continue
7940 fi
7941 rm -f conftest.err conftest.i conftest.$ac_ext
7942
7943   # OK, works on sane cases.  Now check whether nonexistent headers
7944   # can be detected and how.
7945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h.  */
7947 #include <ac_nonexistent.h>
7948 _ACEOF
7949 if ac_fn_c_try_cpp "$LINENO"; then :
7950   # Broken: success on invalid input.
7951 continue
7952 else
7953   # Passes both tests.
7954 ac_preproc_ok=:
7955 break
7956 fi
7957 rm -f conftest.err conftest.i conftest.$ac_ext
7958
7959 done
7960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7961 rm -f conftest.i conftest.err conftest.$ac_ext
7962 if $ac_preproc_ok; then :
7963
7964 else
7965   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7967 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7968 See \`config.log' for more details" "$LINENO" 5; }
7969 fi
7970
7971 ac_ext=c
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7979 $as_echo_n "checking for ANSI C header files... " >&6; }
7980 if ${ac_cv_header_stdc+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h.  */
7985 #include <stdlib.h>
7986 #include <stdarg.h>
7987 #include <string.h>
7988 #include <float.h>
7989
7990 int
7991 main ()
7992 {
7993
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999   ac_cv_header_stdc=yes
8000 else
8001   ac_cv_header_stdc=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004
8005 if test $ac_cv_header_stdc = yes; then
8006   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h.  */
8009 #include <string.h>
8010
8011 _ACEOF
8012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8013   $EGREP "memchr" >/dev/null 2>&1; then :
8014
8015 else
8016   ac_cv_header_stdc=no
8017 fi
8018 rm -f conftest*
8019
8020 fi
8021
8022 if test $ac_cv_header_stdc = yes; then
8023   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026 #include <stdlib.h>
8027
8028 _ACEOF
8029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030   $EGREP "free" >/dev/null 2>&1; then :
8031
8032 else
8033   ac_cv_header_stdc=no
8034 fi
8035 rm -f conftest*
8036
8037 fi
8038
8039 if test $ac_cv_header_stdc = yes; then
8040   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8041   if test "$cross_compiling" = yes; then :
8042   :
8043 else
8044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h.  */
8046 #include <ctype.h>
8047 #include <stdlib.h>
8048 #if ((' ' & 0x0FF) == 0x020)
8049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8051 #else
8052 # define ISLOWER(c) \
8053                    (('a' <= (c) && (c) <= 'i') \
8054                      || ('j' <= (c) && (c) <= 'r') \
8055                      || ('s' <= (c) && (c) <= 'z'))
8056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8057 #endif
8058
8059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8060 int
8061 main ()
8062 {
8063   int i;
8064   for (i = 0; i < 256; i++)
8065     if (XOR (islower (i), ISLOWER (i))
8066         || toupper (i) != TOUPPER (i))
8067       return 2;
8068   return 0;
8069 }
8070 _ACEOF
8071 if ac_fn_c_try_run "$LINENO"; then :
8072
8073 else
8074   ac_cv_header_stdc=no
8075 fi
8076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8077   conftest.$ac_objext conftest.beam conftest.$ac_ext
8078 fi
8079
8080 fi
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8083 $as_echo "$ac_cv_header_stdc" >&6; }
8084 if test $ac_cv_header_stdc = yes; then
8085
8086 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8087
8088 fi
8089
8090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8091 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8092                   inttypes.h stdint.h unistd.h
8093 do :
8094   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8096 "
8097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8098   cat >>confdefs.h <<_ACEOF
8099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 _ACEOF
8101
8102 fi
8103
8104 done
8105
8106
8107 for ac_header in dlfcn.h
8108 do :
8109   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8110 "
8111 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8112   cat >>confdefs.h <<_ACEOF
8113 #define HAVE_DLFCN_H 1
8114 _ACEOF
8115
8116 fi
8117
8118 done
8119
8120
8121
8122
8123
8124 # Set options
8125
8126
8127
8128         enable_dlopen=no
8129
8130
8131   enable_win32_dll=no
8132
8133
8134             # Check whether --enable-shared was given.
8135 if test "${enable_shared+set}" = set; then :
8136   enableval=$enable_shared; p=${PACKAGE-default}
8137     case $enableval in
8138     yes) enable_shared=yes ;;
8139     no) enable_shared=no ;;
8140     *)
8141       enable_shared=no
8142       # Look at the argument we got.  We use all the common list separators.
8143       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8144       for pkg in $enableval; do
8145         IFS="$lt_save_ifs"
8146         if test "X$pkg" = "X$p"; then
8147           enable_shared=yes
8148         fi
8149       done
8150       IFS="$lt_save_ifs"
8151       ;;
8152     esac
8153 else
8154   enable_shared=yes
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165   # Check whether --enable-static was given.
8166 if test "${enable_static+set}" = set; then :
8167   enableval=$enable_static; p=${PACKAGE-default}
8168     case $enableval in
8169     yes) enable_static=yes ;;
8170     no) enable_static=no ;;
8171     *)
8172      enable_static=no
8173       # Look at the argument we got.  We use all the common list separators.
8174       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8175       for pkg in $enableval; do
8176         IFS="$lt_save_ifs"
8177         if test "X$pkg" = "X$p"; then
8178           enable_static=yes
8179         fi
8180       done
8181       IFS="$lt_save_ifs"
8182       ;;
8183     esac
8184 else
8185   enable_static=yes
8186 fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 # Check whether --with-pic was given.
8198 if test "${with_pic+set}" = set; then :
8199   withval=$with_pic; lt_p=${PACKAGE-default}
8200     case $withval in
8201     yes|no) pic_mode=$withval ;;
8202     *)
8203       pic_mode=default
8204       # Look at the argument we got.  We use all the common list separators.
8205       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8206       for lt_pkg in $withval; do
8207         IFS="$lt_save_ifs"
8208         if test "X$lt_pkg" = "X$lt_p"; then
8209           pic_mode=yes
8210         fi
8211       done
8212       IFS="$lt_save_ifs"
8213       ;;
8214     esac
8215 else
8216   pic_mode=default
8217 fi
8218
8219
8220 test -z "$pic_mode" && pic_mode=default
8221
8222
8223
8224
8225
8226
8227
8228   # Check whether --enable-fast-install was given.
8229 if test "${enable_fast_install+set}" = set; then :
8230   enableval=$enable_fast_install; p=${PACKAGE-default}
8231     case $enableval in
8232     yes) enable_fast_install=yes ;;
8233     no) enable_fast_install=no ;;
8234     *)
8235       enable_fast_install=no
8236       # Look at the argument we got.  We use all the common list separators.
8237       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8238       for pkg in $enableval; do
8239         IFS="$lt_save_ifs"
8240         if test "X$pkg" = "X$p"; then
8241           enable_fast_install=yes
8242         fi
8243       done
8244       IFS="$lt_save_ifs"
8245       ;;
8246     esac
8247 else
8248   enable_fast_install=yes
8249 fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261 # This can be used to rebuild libtool when needed
8262 LIBTOOL_DEPS="$ltmain"
8263
8264 # Always use our own libtool.
8265 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8266
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 test -z "$LN_S" && LN_S="ln -s"
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311 if test -n "${ZSH_VERSION+set}" ; then
8312    setopt NO_GLOB_SUBST
8313 fi
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8316 $as_echo_n "checking for objdir... " >&6; }
8317 if ${lt_cv_objdir+:} false; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   rm -f .libs 2>/dev/null
8321 mkdir .libs 2>/dev/null
8322 if test -d .libs; then
8323   lt_cv_objdir=.libs
8324 else
8325   # MS-DOS does not allow filenames that begin with a dot.
8326   lt_cv_objdir=_libs
8327 fi
8328 rmdir .libs 2>/dev/null
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8331 $as_echo "$lt_cv_objdir" >&6; }
8332 objdir=$lt_cv_objdir
8333
8334
8335
8336
8337
8338 cat >>confdefs.h <<_ACEOF
8339 #define LT_OBJDIR "$lt_cv_objdir/"
8340 _ACEOF
8341
8342
8343
8344
8345 case $host_os in
8346 aix3*)
8347   # AIX sometimes has problems with the GCC collect2 program.  For some
8348   # reason, if we set the COLLECT_NAMES environment variable, the problems
8349   # vanish in a puff of smoke.
8350   if test "X${COLLECT_NAMES+set}" != Xset; then
8351     COLLECT_NAMES=
8352     export COLLECT_NAMES
8353   fi
8354   ;;
8355 esac
8356
8357 # Global variables:
8358 ofile=libtool
8359 can_build_shared=yes
8360
8361 # All known linkers require a `.a' archive for static linking (except MSVC,
8362 # which needs '.lib').
8363 libext=a
8364
8365 with_gnu_ld="$lt_cv_prog_gnu_ld"
8366
8367 old_CC="$CC"
8368 old_CFLAGS="$CFLAGS"
8369
8370 # Set sane defaults for various variables
8371 test -z "$CC" && CC=cc
8372 test -z "$LTCC" && LTCC=$CC
8373 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8374 test -z "$LD" && LD=ld
8375 test -z "$ac_objext" && ac_objext=o
8376
8377 for cc_temp in $compiler""; do
8378   case $cc_temp in
8379     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8380     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8381     \-*) ;;
8382     *) break;;
8383   esac
8384 done
8385 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8386
8387
8388 # Only perform the check for file, if the check method requires it
8389 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8390 case $deplibs_check_method in
8391 file_magic*)
8392   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8394 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8395 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   case $MAGIC_CMD in
8399 [\\/*] |  ?:[\\/]*)
8400   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8401   ;;
8402 *)
8403   lt_save_MAGIC_CMD="$MAGIC_CMD"
8404   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8405   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8406   for ac_dir in $ac_dummy; do
8407     IFS="$lt_save_ifs"
8408     test -z "$ac_dir" && ac_dir=.
8409     if test -f $ac_dir/${ac_tool_prefix}file; then
8410       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8411       if test -n "$file_magic_test_file"; then
8412         case $deplibs_check_method in
8413         "file_magic "*)
8414           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8415           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8417             $EGREP "$file_magic_regex" > /dev/null; then
8418             :
8419           else
8420             cat <<_LT_EOF 1>&2
8421
8422 *** Warning: the command libtool uses to detect shared libraries,
8423 *** $file_magic_cmd, produces output that libtool cannot recognize.
8424 *** The result is that libtool may fail to recognize shared libraries
8425 *** as such.  This will affect the creation of libtool libraries that
8426 *** depend on shared libraries, but programs linked with such libtool
8427 *** libraries will work regardless of this problem.  Nevertheless, you
8428 *** may want to report the problem to your system manager and/or to
8429 *** bug-libtool@gnu.org
8430
8431 _LT_EOF
8432           fi ;;
8433         esac
8434       fi
8435       break
8436     fi
8437   done
8438   IFS="$lt_save_ifs"
8439   MAGIC_CMD="$lt_save_MAGIC_CMD"
8440   ;;
8441 esac
8442 fi
8443
8444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445 if test -n "$MAGIC_CMD"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8447 $as_echo "$MAGIC_CMD" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452
8453
8454
8455
8456
8457 if test -z "$lt_cv_path_MAGIC_CMD"; then
8458   if test -n "$ac_tool_prefix"; then
8459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8460 $as_echo_n "checking for file... " >&6; }
8461 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8462   $as_echo_n "(cached) " >&6
8463 else
8464   case $MAGIC_CMD in
8465 [\\/*] |  ?:[\\/]*)
8466   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467   ;;
8468 *)
8469   lt_save_MAGIC_CMD="$MAGIC_CMD"
8470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472   for ac_dir in $ac_dummy; do
8473     IFS="$lt_save_ifs"
8474     test -z "$ac_dir" && ac_dir=.
8475     if test -f $ac_dir/file; then
8476       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8477       if test -n "$file_magic_test_file"; then
8478         case $deplibs_check_method in
8479         "file_magic "*)
8480           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483             $EGREP "$file_magic_regex" > /dev/null; then
8484             :
8485           else
8486             cat <<_LT_EOF 1>&2
8487
8488 *** Warning: the command libtool uses to detect shared libraries,
8489 *** $file_magic_cmd, produces output that libtool cannot recognize.
8490 *** The result is that libtool may fail to recognize shared libraries
8491 *** as such.  This will affect the creation of libtool libraries that
8492 *** depend on shared libraries, but programs linked with such libtool
8493 *** libraries will work regardless of this problem.  Nevertheless, you
8494 *** may want to report the problem to your system manager and/or to
8495 *** bug-libtool@gnu.org
8496
8497 _LT_EOF
8498           fi ;;
8499         esac
8500       fi
8501       break
8502     fi
8503   done
8504   IFS="$lt_save_ifs"
8505   MAGIC_CMD="$lt_save_MAGIC_CMD"
8506   ;;
8507 esac
8508 fi
8509
8510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511 if test -n "$MAGIC_CMD"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513 $as_echo "$MAGIC_CMD" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520   else
8521     MAGIC_CMD=:
8522   fi
8523 fi
8524
8525   fi
8526   ;;
8527 esac
8528
8529 # Use C for the default configuration in the libtool script
8530
8531 lt_save_CC="$CC"
8532 ac_ext=c
8533 ac_cpp='$CPP $CPPFLAGS'
8534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
8538
8539 # Source file extension for C test sources.
8540 ac_ext=c
8541
8542 # Object file extension for compiled C test sources.
8543 objext=o
8544 objext=$objext
8545
8546 # Code to be used in simple compile tests
8547 lt_simple_compile_test_code="int some_variable = 0;"
8548
8549 # Code to be used in simple link tests
8550 lt_simple_link_test_code='int main(){return(0);}'
8551
8552
8553
8554
8555
8556
8557
8558 # If no C compiler was specified, use CC.
8559 LTCC=${LTCC-"$CC"}
8560
8561 # If no C compiler flags were specified, use CFLAGS.
8562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8563
8564 # Allow CC to be a program name with arguments.
8565 compiler=$CC
8566
8567 # Save the default compiler, since it gets overwritten when the other
8568 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8569 compiler_DEFAULT=$CC
8570
8571 # save warnings/boilerplate of simple test code
8572 ac_outfile=conftest.$ac_objext
8573 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575 _lt_compiler_boilerplate=`cat conftest.err`
8576 $RM conftest*
8577
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581 _lt_linker_boilerplate=`cat conftest.err`
8582 $RM -r conftest*
8583
8584
8585 ## CAVEAT EMPTOR:
8586 ## There is no encapsulation within the following macros, do not change
8587 ## the running order or otherwise move them around unless you know exactly
8588 ## what you are doing...
8589 if test -n "$compiler"; then
8590
8591 lt_prog_compiler_no_builtin_flag=
8592
8593 if test "$GCC" = yes; then
8594   case $cc_basename in
8595   nvcc*)
8596     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8597   *)
8598     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8599   esac
8600
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8602 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8603 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8604   $as_echo_n "(cached) " >&6
8605 else
8606   lt_cv_prog_compiler_rtti_exceptions=no
8607    ac_outfile=conftest.$ac_objext
8608    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609    lt_compiler_flag="-fno-rtti -fno-exceptions"
8610    # Insert the option either (1) after the last *FLAGS variable, or
8611    # (2) before a word containing "conftest.", or (3) at the end.
8612    # Note that $ac_compile itself does not contain backslashes and begins
8613    # with a dollar sign (not a hyphen), so the echo should work correctly.
8614    # The option is referenced via a variable to avoid confusing sed.
8615    lt_compile=`echo "$ac_compile" | $SED \
8616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618    -e 's:$: $lt_compiler_flag:'`
8619    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620    (eval "$lt_compile" 2>conftest.err)
8621    ac_status=$?
8622    cat conftest.err >&5
8623    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624    if (exit $ac_status) && test -s "$ac_outfile"; then
8625      # The compiler can only warn and ignore the option if not recognized
8626      # So say no if there are warnings other than the usual output.
8627      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8628      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8630        lt_cv_prog_compiler_rtti_exceptions=yes
8631      fi
8632    fi
8633    $RM conftest*
8634
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8637 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8638
8639 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8640     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8641 else
8642     :
8643 fi
8644
8645 fi
8646
8647
8648
8649
8650
8651
8652   lt_prog_compiler_wl=
8653 lt_prog_compiler_pic=
8654 lt_prog_compiler_static=
8655
8656
8657   if test "$GCC" = yes; then
8658     lt_prog_compiler_wl='-Wl,'
8659     lt_prog_compiler_static='-static'
8660
8661     case $host_os in
8662       aix*)
8663       # All AIX code is PIC.
8664       if test "$host_cpu" = ia64; then
8665         # AIX 5 now supports IA64 processor
8666         lt_prog_compiler_static='-Bstatic'
8667       fi
8668       ;;
8669
8670     amigaos*)
8671       case $host_cpu in
8672       powerpc)
8673             # see comment about AmigaOS4 .so support
8674             lt_prog_compiler_pic='-fPIC'
8675         ;;
8676       m68k)
8677             # FIXME: we need at least 68020 code to build shared libraries, but
8678             # adding the `-m68020' flag to GCC prevents building anything better,
8679             # like `-m68040'.
8680             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8681         ;;
8682       esac
8683       ;;
8684
8685     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8686       # PIC is the default for these OSes.
8687       ;;
8688
8689     mingw* | cygwin* | pw32* | os2* | cegcc*)
8690       # This hack is so that the source file can tell whether it is being
8691       # built for inclusion in a dll (and should export symbols for example).
8692       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8693       # (--disable-auto-import) libraries
8694       lt_prog_compiler_pic='-DDLL_EXPORT'
8695       ;;
8696
8697     darwin* | rhapsody*)
8698       # PIC is the default on this platform
8699       # Common symbols not allowed in MH_DYLIB files
8700       lt_prog_compiler_pic='-fno-common'
8701       ;;
8702
8703     haiku*)
8704       # PIC is the default for Haiku.
8705       # The "-static" flag exists, but is broken.
8706       lt_prog_compiler_static=
8707       ;;
8708
8709     hpux*)
8710       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8711       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8712       # sets the default TLS model and affects inlining.
8713       case $host_cpu in
8714       hppa*64*)
8715         # +Z the default
8716         ;;
8717       *)
8718         lt_prog_compiler_pic='-fPIC'
8719         ;;
8720       esac
8721       ;;
8722
8723     interix[3-9]*)
8724       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8725       # Instead, we relocate shared libraries at runtime.
8726       ;;
8727
8728     msdosdjgpp*)
8729       # Just because we use GCC doesn't mean we suddenly get shared libraries
8730       # on systems that don't support them.
8731       lt_prog_compiler_can_build_shared=no
8732       enable_shared=no
8733       ;;
8734
8735     *nto* | *qnx*)
8736       # QNX uses GNU C++, but need to define -shared option too, otherwise
8737       # it will coredump.
8738       lt_prog_compiler_pic='-fPIC -shared'
8739       ;;
8740
8741     sysv4*MP*)
8742       if test -d /usr/nec; then
8743         lt_prog_compiler_pic=-Kconform_pic
8744       fi
8745       ;;
8746
8747     *)
8748       lt_prog_compiler_pic='-fPIC'
8749       ;;
8750     esac
8751
8752     case $cc_basename in
8753     nvcc*) # Cuda Compiler Driver 2.2
8754       lt_prog_compiler_wl='-Xlinker '
8755       if test -n "$lt_prog_compiler_pic"; then
8756         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8757       fi
8758       ;;
8759     esac
8760   else
8761     # PORTME Check for flag to pass linker flags through the system compiler.
8762     case $host_os in
8763     aix*)
8764       lt_prog_compiler_wl='-Wl,'
8765       if test "$host_cpu" = ia64; then
8766         # AIX 5 now supports IA64 processor
8767         lt_prog_compiler_static='-Bstatic'
8768       else
8769         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8770       fi
8771       ;;
8772
8773     mingw* | cygwin* | pw32* | os2* | cegcc*)
8774       # This hack is so that the source file can tell whether it is being
8775       # built for inclusion in a dll (and should export symbols for example).
8776       lt_prog_compiler_pic='-DDLL_EXPORT'
8777       ;;
8778
8779     hpux9* | hpux10* | hpux11*)
8780       lt_prog_compiler_wl='-Wl,'
8781       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8782       # not for PA HP-UX.
8783       case $host_cpu in
8784       hppa*64*|ia64*)
8785         # +Z the default
8786         ;;
8787       *)
8788         lt_prog_compiler_pic='+Z'
8789         ;;
8790       esac
8791       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8792       lt_prog_compiler_static='${wl}-a ${wl}archive'
8793       ;;
8794
8795     irix5* | irix6* | nonstopux*)
8796       lt_prog_compiler_wl='-Wl,'
8797       # PIC (with -KPIC) is the default.
8798       lt_prog_compiler_static='-non_shared'
8799       ;;
8800
8801     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8802       case $cc_basename in
8803       # old Intel for x86_64 which still supported -KPIC.
8804       ecc*)
8805         lt_prog_compiler_wl='-Wl,'
8806         lt_prog_compiler_pic='-KPIC'
8807         lt_prog_compiler_static='-static'
8808         ;;
8809       # icc used to be incompatible with GCC.
8810       # ICC 10 doesn't accept -KPIC any more.
8811       icc* | ifort*)
8812         lt_prog_compiler_wl='-Wl,'
8813         lt_prog_compiler_pic='-fPIC'
8814         lt_prog_compiler_static='-static'
8815         ;;
8816       # Lahey Fortran 8.1.
8817       lf95*)
8818         lt_prog_compiler_wl='-Wl,'
8819         lt_prog_compiler_pic='--shared'
8820         lt_prog_compiler_static='--static'
8821         ;;
8822       nagfor*)
8823         # NAG Fortran compiler
8824         lt_prog_compiler_wl='-Wl,-Wl,,'
8825         lt_prog_compiler_pic='-PIC'
8826         lt_prog_compiler_static='-Bstatic'
8827         ;;
8828       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8829         # Portland Group compilers (*not* the Pentium gcc compiler,
8830         # which looks to be a dead project)
8831         lt_prog_compiler_wl='-Wl,'
8832         lt_prog_compiler_pic='-fpic'
8833         lt_prog_compiler_static='-Bstatic'
8834         ;;
8835       ccc*)
8836         lt_prog_compiler_wl='-Wl,'
8837         # All Alpha code is PIC.
8838         lt_prog_compiler_static='-non_shared'
8839         ;;
8840       xl* | bgxl* | bgf* | mpixl*)
8841         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8842         lt_prog_compiler_wl='-Wl,'
8843         lt_prog_compiler_pic='-qpic'
8844         lt_prog_compiler_static='-qstaticlink'
8845         ;;
8846       *)
8847         case `$CC -V 2>&1 | sed 5q` in
8848         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8849           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8850           lt_prog_compiler_pic='-KPIC'
8851           lt_prog_compiler_static='-Bstatic'
8852           lt_prog_compiler_wl=''
8853           ;;
8854         *Sun\ F* | *Sun*Fortran*)
8855           lt_prog_compiler_pic='-KPIC'
8856           lt_prog_compiler_static='-Bstatic'
8857           lt_prog_compiler_wl='-Qoption ld '
8858           ;;
8859         *Sun\ C*)
8860           # Sun C 5.9
8861           lt_prog_compiler_pic='-KPIC'
8862           lt_prog_compiler_static='-Bstatic'
8863           lt_prog_compiler_wl='-Wl,'
8864           ;;
8865         *Intel*\ [CF]*Compiler*)
8866           lt_prog_compiler_wl='-Wl,'
8867           lt_prog_compiler_pic='-fPIC'
8868           lt_prog_compiler_static='-static'
8869           ;;
8870         *Portland\ Group*)
8871           lt_prog_compiler_wl='-Wl,'
8872           lt_prog_compiler_pic='-fpic'
8873           lt_prog_compiler_static='-Bstatic'
8874           ;;
8875         esac
8876         ;;
8877       esac
8878       ;;
8879
8880     newsos6)
8881       lt_prog_compiler_pic='-KPIC'
8882       lt_prog_compiler_static='-Bstatic'
8883       ;;
8884
8885     *nto* | *qnx*)
8886       # QNX uses GNU C++, but need to define -shared option too, otherwise
8887       # it will coredump.
8888       lt_prog_compiler_pic='-fPIC -shared'
8889       ;;
8890
8891     osf3* | osf4* | osf5*)
8892       lt_prog_compiler_wl='-Wl,'
8893       # All OSF/1 code is PIC.
8894       lt_prog_compiler_static='-non_shared'
8895       ;;
8896
8897     rdos*)
8898       lt_prog_compiler_static='-non_shared'
8899       ;;
8900
8901     solaris*)
8902       lt_prog_compiler_pic='-KPIC'
8903       lt_prog_compiler_static='-Bstatic'
8904       case $cc_basename in
8905       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8906         lt_prog_compiler_wl='-Qoption ld ';;
8907       *)
8908         lt_prog_compiler_wl='-Wl,';;
8909       esac
8910       ;;
8911
8912     sunos4*)
8913       lt_prog_compiler_wl='-Qoption ld '
8914       lt_prog_compiler_pic='-PIC'
8915       lt_prog_compiler_static='-Bstatic'
8916       ;;
8917
8918     sysv4 | sysv4.2uw2* | sysv4.3*)
8919       lt_prog_compiler_wl='-Wl,'
8920       lt_prog_compiler_pic='-KPIC'
8921       lt_prog_compiler_static='-Bstatic'
8922       ;;
8923
8924     sysv4*MP*)
8925       if test -d /usr/nec ;then
8926         lt_prog_compiler_pic='-Kconform_pic'
8927         lt_prog_compiler_static='-Bstatic'
8928       fi
8929       ;;
8930
8931     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8932       lt_prog_compiler_wl='-Wl,'
8933       lt_prog_compiler_pic='-KPIC'
8934       lt_prog_compiler_static='-Bstatic'
8935       ;;
8936
8937     unicos*)
8938       lt_prog_compiler_wl='-Wl,'
8939       lt_prog_compiler_can_build_shared=no
8940       ;;
8941
8942     uts4*)
8943       lt_prog_compiler_pic='-pic'
8944       lt_prog_compiler_static='-Bstatic'
8945       ;;
8946
8947     *)
8948       lt_prog_compiler_can_build_shared=no
8949       ;;
8950     esac
8951   fi
8952
8953 case $host_os in
8954   # For platforms which do not support PIC, -DPIC is meaningless:
8955   *djgpp*)
8956     lt_prog_compiler_pic=
8957     ;;
8958   *)
8959     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8960     ;;
8961 esac
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8964 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8965 if ${lt_cv_prog_compiler_pic+:} false; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8969 fi
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8971 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8972 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8973
8974 #
8975 # Check to make sure the PIC flag actually works.
8976 #
8977 if test -n "$lt_prog_compiler_pic"; then
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8979 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8980 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   lt_cv_prog_compiler_pic_works=no
8984    ac_outfile=conftest.$ac_objext
8985    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8986    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8987    # Insert the option either (1) after the last *FLAGS variable, or
8988    # (2) before a word containing "conftest.", or (3) at the end.
8989    # Note that $ac_compile itself does not contain backslashes and begins
8990    # with a dollar sign (not a hyphen), so the echo should work correctly.
8991    # The option is referenced via a variable to avoid confusing sed.
8992    lt_compile=`echo "$ac_compile" | $SED \
8993    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8995    -e 's:$: $lt_compiler_flag:'`
8996    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8997    (eval "$lt_compile" 2>conftest.err)
8998    ac_status=$?
8999    cat conftest.err >&5
9000    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001    if (exit $ac_status) && test -s "$ac_outfile"; then
9002      # The compiler can only warn and ignore the option if not recognized
9003      # So say no if there are warnings other than the usual output.
9004      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9005      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9006      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9007        lt_cv_prog_compiler_pic_works=yes
9008      fi
9009    fi
9010    $RM conftest*
9011
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9014 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9015
9016 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9017     case $lt_prog_compiler_pic in
9018      "" | " "*) ;;
9019      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9020      esac
9021 else
9022     lt_prog_compiler_pic=
9023      lt_prog_compiler_can_build_shared=no
9024 fi
9025
9026 fi
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038 #
9039 # Check to make sure the static flag actually works.
9040 #
9041 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9043 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9044 if ${lt_cv_prog_compiler_static_works+:} false; then :
9045   $as_echo_n "(cached) " >&6
9046 else
9047   lt_cv_prog_compiler_static_works=no
9048    save_LDFLAGS="$LDFLAGS"
9049    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9050    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9051    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9052      # The linker can only warn and ignore the option if not recognized
9053      # So say no if there are warnings
9054      if test -s conftest.err; then
9055        # Append any errors to the config.log.
9056        cat conftest.err 1>&5
9057        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9058        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9059        if diff conftest.exp conftest.er2 >/dev/null; then
9060          lt_cv_prog_compiler_static_works=yes
9061        fi
9062      else
9063        lt_cv_prog_compiler_static_works=yes
9064      fi
9065    fi
9066    $RM -r conftest*
9067    LDFLAGS="$save_LDFLAGS"
9068
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9071 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9072
9073 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9074     :
9075 else
9076     lt_prog_compiler_static=
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if ${lt_cv_prog_compiler_c_o+:} false; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   lt_cv_prog_compiler_c_o=no
9091    $RM -r conftest 2>/dev/null
9092    mkdir conftest
9093    cd conftest
9094    mkdir out
9095    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9096
9097    lt_compiler_flag="-o out/conftest2.$ac_objext"
9098    # Insert the option either (1) after the last *FLAGS variable, or
9099    # (2) before a word containing "conftest.", or (3) at the end.
9100    # Note that $ac_compile itself does not contain backslashes and begins
9101    # with a dollar sign (not a hyphen), so the echo should work correctly.
9102    lt_compile=`echo "$ac_compile" | $SED \
9103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105    -e 's:$: $lt_compiler_flag:'`
9106    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9107    (eval "$lt_compile" 2>out/conftest.err)
9108    ac_status=$?
9109    cat out/conftest.err >&5
9110    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9112    then
9113      # The compiler can only warn and ignore the option if not recognized
9114      # So say no if there are warnings
9115      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9116      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118        lt_cv_prog_compiler_c_o=yes
9119      fi
9120    fi
9121    chmod u+w . 2>&5
9122    $RM conftest*
9123    # SGI C++ compiler will create directory out/ii_files/ for
9124    # template instantiation
9125    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126    $RM out/* && rmdir out
9127    cd ..
9128    $RM -r conftest
9129    $RM conftest*
9130
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134
9135
9136
9137
9138
9139
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9141 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9142 if ${lt_cv_prog_compiler_c_o+:} false; then :
9143   $as_echo_n "(cached) " >&6
9144 else
9145   lt_cv_prog_compiler_c_o=no
9146    $RM -r conftest 2>/dev/null
9147    mkdir conftest
9148    cd conftest
9149    mkdir out
9150    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151
9152    lt_compiler_flag="-o out/conftest2.$ac_objext"
9153    # Insert the option either (1) after the last *FLAGS variable, or
9154    # (2) before a word containing "conftest.", or (3) at the end.
9155    # Note that $ac_compile itself does not contain backslashes and begins
9156    # with a dollar sign (not a hyphen), so the echo should work correctly.
9157    lt_compile=`echo "$ac_compile" | $SED \
9158    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160    -e 's:$: $lt_compiler_flag:'`
9161    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162    (eval "$lt_compile" 2>out/conftest.err)
9163    ac_status=$?
9164    cat out/conftest.err >&5
9165    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9167    then
9168      # The compiler can only warn and ignore the option if not recognized
9169      # So say no if there are warnings
9170      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9171      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9172      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9173        lt_cv_prog_compiler_c_o=yes
9174      fi
9175    fi
9176    chmod u+w . 2>&5
9177    $RM conftest*
9178    # SGI C++ compiler will create directory out/ii_files/ for
9179    # template instantiation
9180    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9181    $RM out/* && rmdir out
9182    cd ..
9183    $RM -r conftest
9184    $RM conftest*
9185
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9188 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9189
9190
9191
9192
9193 hard_links="nottested"
9194 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9195   # do not overwrite the value of need_locks provided by the user
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9197 $as_echo_n "checking if we can lock with hard links... " >&6; }
9198   hard_links=yes
9199   $RM conftest*
9200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201   touch conftest.a
9202   ln conftest.a conftest.b 2>&5 || hard_links=no
9203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9205 $as_echo "$hard_links" >&6; }
9206   if test "$hard_links" = no; then
9207     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9209     need_locks=warn
9210   fi
9211 else
9212   need_locks=no
9213 fi
9214
9215
9216
9217
9218
9219
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9222
9223   runpath_var=
9224   allow_undefined_flag=
9225   always_export_symbols=no
9226   archive_cmds=
9227   archive_expsym_cmds=
9228   compiler_needs_object=no
9229   enable_shared_with_static_runtimes=no
9230   export_dynamic_flag_spec=
9231   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9232   hardcode_automatic=no
9233   hardcode_direct=no
9234   hardcode_direct_absolute=no
9235   hardcode_libdir_flag_spec=
9236   hardcode_libdir_separator=
9237   hardcode_minus_L=no
9238   hardcode_shlibpath_var=unsupported
9239   inherit_rpath=no
9240   link_all_deplibs=unknown
9241   module_cmds=
9242   module_expsym_cmds=
9243   old_archive_from_new_cmds=
9244   old_archive_from_expsyms_cmds=
9245   thread_safe_flag_spec=
9246   whole_archive_flag_spec=
9247   # include_expsyms should be a list of space-separated symbols to be *always*
9248   # included in the symbol list
9249   include_expsyms=
9250   # exclude_expsyms can be an extended regexp of symbols to exclude
9251   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9252   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9253   # as well as any symbol that contains `d'.
9254   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9255   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9256   # platforms (ab)use it in PIC code, but their linkers get confused if
9257   # the symbol is explicitly referenced.  Since portable code cannot
9258   # rely on this symbol name, it's probably fine to never include it in
9259   # preloaded symbol tables.
9260   # Exclude shared library initialization/finalization symbols.
9261   extract_expsyms_cmds=
9262
9263   case $host_os in
9264   cygwin* | mingw* | pw32* | cegcc*)
9265     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9266     # When not using gcc, we currently assume that we are using
9267     # Microsoft Visual C++.
9268     if test "$GCC" != yes; then
9269       with_gnu_ld=no
9270     fi
9271     ;;
9272   interix*)
9273     # we just hope/assume this is gcc and not c89 (= MSVC++)
9274     with_gnu_ld=yes
9275     ;;
9276   openbsd*)
9277     with_gnu_ld=no
9278     ;;
9279   esac
9280
9281   ld_shlibs=yes
9282
9283   # On some targets, GNU ld is compatible enough with the native linker
9284   # that we're better off using the native interface for both.
9285   lt_use_gnu_ld_interface=no
9286   if test "$with_gnu_ld" = yes; then
9287     case $host_os in
9288       aix*)
9289         # The AIX port of GNU ld has always aspired to compatibility
9290         # with the native linker.  However, as the warning in the GNU ld
9291         # block says, versions before 2.19.5* couldn't really create working
9292         # shared libraries, regardless of the interface used.
9293         case `$LD -v 2>&1` in
9294           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9295           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9296           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9297           *)
9298             lt_use_gnu_ld_interface=yes
9299             ;;
9300         esac
9301         ;;
9302       *)
9303         lt_use_gnu_ld_interface=yes
9304         ;;
9305     esac
9306   fi
9307
9308   if test "$lt_use_gnu_ld_interface" = yes; then
9309     # If archive_cmds runs LD, not CC, wlarc should be empty
9310     wlarc='${wl}'
9311
9312     # Set some defaults for GNU ld with shared library support. These
9313     # are reset later if shared libraries are not supported. Putting them
9314     # here allows them to be overridden if necessary.
9315     runpath_var=LD_RUN_PATH
9316     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317     export_dynamic_flag_spec='${wl}--export-dynamic'
9318     # ancient GNU ld didn't support --whole-archive et. al.
9319     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9320       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9321     else
9322       whole_archive_flag_spec=
9323     fi
9324     supports_anon_versioning=no
9325     case `$LD -v 2>&1` in
9326       *GNU\ gold*) supports_anon_versioning=yes ;;
9327       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9328       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9329       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9330       *\ 2.11.*) ;; # other 2.11 versions
9331       *) supports_anon_versioning=yes ;;
9332     esac
9333
9334     # See if GNU ld supports shared libraries.
9335     case $host_os in
9336     aix[3-9]*)
9337       # On AIX/PPC, the GNU linker is very broken
9338       if test "$host_cpu" != ia64; then
9339         ld_shlibs=no
9340         cat <<_LT_EOF 1>&2
9341
9342 *** Warning: the GNU linker, at least up to release 2.19, is reported
9343 *** to be unable to reliably create shared libraries on AIX.
9344 *** Therefore, libtool is disabling shared libraries support.  If you
9345 *** really care for shared libraries, you may want to install binutils
9346 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9347 *** You will then need to restart the configuration process.
9348
9349 _LT_EOF
9350       fi
9351       ;;
9352
9353     amigaos*)
9354       case $host_cpu in
9355       powerpc)
9356             # see comment about AmigaOS4 .so support
9357             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358             archive_expsym_cmds=''
9359         ;;
9360       m68k)
9361             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)'
9362             hardcode_libdir_flag_spec='-L$libdir'
9363             hardcode_minus_L=yes
9364         ;;
9365       esac
9366       ;;
9367
9368     beos*)
9369       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370         allow_undefined_flag=unsupported
9371         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9372         # support --undefined.  This deserves some investigation.  FIXME
9373         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374       else
9375         ld_shlibs=no
9376       fi
9377       ;;
9378
9379     cygwin* | mingw* | pw32* | cegcc*)
9380       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9381       # as there is no search path for DLLs.
9382       hardcode_libdir_flag_spec='-L$libdir'
9383       export_dynamic_flag_spec='${wl}--export-all-symbols'
9384       allow_undefined_flag=unsupported
9385       always_export_symbols=no
9386       enable_shared_with_static_runtimes=yes
9387       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'
9388       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9389
9390       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9391         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9392         # If the export-symbols file already is a .def file (1st line
9393         # is EXPORTS), use it as is; otherwise, prepend...
9394         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9395           cp $export_symbols $output_objdir/$soname.def;
9396         else
9397           echo EXPORTS > $output_objdir/$soname.def;
9398           cat $export_symbols >> $output_objdir/$soname.def;
9399         fi~
9400         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9401       else
9402         ld_shlibs=no
9403       fi
9404       ;;
9405
9406     haiku*)
9407       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408       link_all_deplibs=yes
9409       ;;
9410
9411     interix[3-9]*)
9412       hardcode_direct=no
9413       hardcode_shlibpath_var=no
9414       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9415       export_dynamic_flag_spec='${wl}-E'
9416       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9417       # Instead, shared libraries are loaded at an image base (0x10000000 by
9418       # default) and relocated if they conflict, which is a slow very memory
9419       # consuming and fragmenting process.  To avoid this, we pick a random,
9420       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9421       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9422       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9423       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'
9424       ;;
9425
9426     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9427       tmp_diet=no
9428       if test "$host_os" = linux-dietlibc; then
9429         case $cc_basename in
9430           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9431         esac
9432       fi
9433       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9434          && test "$tmp_diet" = no
9435       then
9436         tmp_addflag=' $pic_flag'
9437         tmp_sharedflag='-shared'
9438         case $cc_basename,$host_cpu in
9439         pgcc*)                          # Portland Group C compiler
9440           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'
9441           tmp_addflag=' $pic_flag'
9442           ;;
9443         pgf77* | pgf90* | pgf95* | pgfortran*)
9444                                         # Portland Group f77 and f90 compilers
9445           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'
9446           tmp_addflag=' $pic_flag -Mnomain' ;;
9447         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9448           tmp_addflag=' -i_dynamic' ;;
9449         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9450           tmp_addflag=' -i_dynamic -nofor_main' ;;
9451         ifc* | ifort*)                  # Intel Fortran compiler
9452           tmp_addflag=' -nofor_main' ;;
9453         lf95*)                          # Lahey Fortran 8.1
9454           whole_archive_flag_spec=
9455           tmp_sharedflag='--shared' ;;
9456         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9457           tmp_sharedflag='-qmkshrobj'
9458           tmp_addflag= ;;
9459         nvcc*)  # Cuda Compiler Driver 2.2
9460           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'
9461           compiler_needs_object=yes
9462           ;;
9463         esac
9464         case `$CC -V 2>&1 | sed 5q` in
9465         *Sun\ C*)                       # Sun C 5.9
9466           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'
9467           compiler_needs_object=yes
9468           tmp_sharedflag='-G' ;;
9469         *Sun\ F*)                       # Sun Fortran 8.3
9470           tmp_sharedflag='-G' ;;
9471         esac
9472         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473
9474         if test "x$supports_anon_versioning" = xyes; then
9475           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9476             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9477             echo "local: *; };" >> $output_objdir/$libname.ver~
9478             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9479         fi
9480
9481         case $cc_basename in
9482         xlf* | bgf* | bgxlf* | mpixlf*)
9483           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9484           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9485           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9487           if test "x$supports_anon_versioning" = xyes; then
9488             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9489               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9490               echo "local: *; };" >> $output_objdir/$libname.ver~
9491               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9492           fi
9493           ;;
9494         esac
9495       else
9496         ld_shlibs=no
9497       fi
9498       ;;
9499
9500     netbsd*)
9501       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9502         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503         wlarc=
9504       else
9505         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507       fi
9508       ;;
9509
9510     solaris*)
9511       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9512         ld_shlibs=no
9513         cat <<_LT_EOF 1>&2
9514
9515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9516 *** create shared libraries on Solaris systems.  Therefore, libtool
9517 *** is disabling shared libraries support.  We urge you to upgrade GNU
9518 *** binutils to release 2.9.1 or newer.  Another option is to modify
9519 *** your PATH or compiler configuration so that the native linker is
9520 *** used, and then restart.
9521
9522 _LT_EOF
9523       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526       else
9527         ld_shlibs=no
9528       fi
9529       ;;
9530
9531     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9532       case `$LD -v 2>&1` in
9533         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9534         ld_shlibs=no
9535         cat <<_LT_EOF 1>&2
9536
9537 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9538 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9539 *** is disabling shared libraries support.  We urge you to upgrade GNU
9540 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9541 *** your PATH or compiler configuration so that the native linker is
9542 *** used, and then restart.
9543
9544 _LT_EOF
9545         ;;
9546         *)
9547           # For security reasons, it is highly recommended that you always
9548           # use absolute paths for naming shared libraries, and exclude the
9549           # DT_RUNPATH tag from executables and libraries.  But doing so
9550           # requires that you compile everything twice, which is a pain.
9551           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555           else
9556             ld_shlibs=no
9557           fi
9558         ;;
9559       esac
9560       ;;
9561
9562     sunos4*)
9563       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564       wlarc=
9565       hardcode_direct=yes
9566       hardcode_shlibpath_var=no
9567       ;;
9568
9569     *)
9570       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573       else
9574         ld_shlibs=no
9575       fi
9576       ;;
9577     esac
9578
9579     if test "$ld_shlibs" = no; then
9580       runpath_var=
9581       hardcode_libdir_flag_spec=
9582       export_dynamic_flag_spec=
9583       whole_archive_flag_spec=
9584     fi
9585   else
9586     # PORTME fill in a description of your system's linker (not GNU ld)
9587     case $host_os in
9588     aix3*)
9589       allow_undefined_flag=unsupported
9590       always_export_symbols=yes
9591       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'
9592       # Note: this linker hardcodes the directories in LIBPATH if there
9593       # are no directories specified by -L.
9594       hardcode_minus_L=yes
9595       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9596         # Neither direct hardcoding nor static linking is supported with a
9597         # broken collect2.
9598         hardcode_direct=unsupported
9599       fi
9600       ;;
9601
9602     aix[4-9]*)
9603       if test "$host_cpu" = ia64; then
9604         # On IA64, the linker does run time linking by default, so we don't
9605         # have to do anything special.
9606         aix_use_runtimelinking=no
9607         exp_sym_flag='-Bexport'
9608         no_entry_flag=""
9609       else
9610         # If we're using GNU nm, then we don't want the "-C" option.
9611         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9612         # Also, AIX nm treats weak defined symbols like other global
9613         # defined symbols, whereas GNU nm marks them as "W".
9614         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9615           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'
9616         else
9617           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'
9618         fi
9619         aix_use_runtimelinking=no
9620
9621         # Test if we are trying to use run time linking or normal
9622         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623         # need to do runtime linking.
9624         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9625           for ld_flag in $LDFLAGS; do
9626           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9627             aix_use_runtimelinking=yes
9628             break
9629           fi
9630           done
9631           ;;
9632         esac
9633
9634         exp_sym_flag='-bexport'
9635         no_entry_flag='-bnoentry'
9636       fi
9637
9638       # When large executables or shared objects are built, AIX ld can
9639       # have problems creating the table of contents.  If linking a library
9640       # or program results in "error TOC overflow" add -mminimal-toc to
9641       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9642       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
9644       archive_cmds=''
9645       hardcode_direct=yes
9646       hardcode_direct_absolute=yes
9647       hardcode_libdir_separator=':'
9648       link_all_deplibs=yes
9649       file_list_spec='${wl}-f,'
9650
9651       if test "$GCC" = yes; then
9652         case $host_os in aix4.[012]|aix4.[012].*)
9653         # We only want to do this on AIX 4.2 and lower, the check
9654         # below for broken collect2 doesn't work under 4.3+
9655           collect2name=`${CC} -print-prog-name=collect2`
9656           if test -f "$collect2name" &&
9657            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9658           then
9659           # We have reworked collect2
9660           :
9661           else
9662           # We have old collect2
9663           hardcode_direct=unsupported
9664           # It fails to find uninstalled libraries when the uninstalled
9665           # path is not listed in the libpath.  Setting hardcode_minus_L
9666           # to unsupported forces relinking
9667           hardcode_minus_L=yes
9668           hardcode_libdir_flag_spec='-L$libdir'
9669           hardcode_libdir_separator=
9670           fi
9671           ;;
9672         esac
9673         shared_flag='-shared'
9674         if test "$aix_use_runtimelinking" = yes; then
9675           shared_flag="$shared_flag "'${wl}-G'
9676         fi
9677       else
9678         # not using gcc
9679         if test "$host_cpu" = ia64; then
9680         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9681         # chokes on -Wl,-G. The following line is correct:
9682           shared_flag='-G'
9683         else
9684           if test "$aix_use_runtimelinking" = yes; then
9685             shared_flag='${wl}-G'
9686           else
9687             shared_flag='${wl}-bM:SRE'
9688           fi
9689         fi
9690       fi
9691
9692       export_dynamic_flag_spec='${wl}-bexpall'
9693       # It seems that -bexpall does not export symbols beginning with
9694       # underscore (_), so it is better to generate a list of symbols to export.
9695       always_export_symbols=yes
9696       if test "$aix_use_runtimelinking" = yes; then
9697         # Warning - without using the other runtime loading flags (-brtl),
9698         # -berok will link without error, but may produce a broken library.
9699         allow_undefined_flag='-berok'
9700         # Determine the default libpath from the value encoded in an
9701         # empty executable.
9702         if test "${lt_cv_aix_libpath+set}" = set; then
9703   aix_libpath=$lt_cv_aix_libpath
9704 else
9705   if ${lt_cv_aix_libpath_+:} false; then :
9706   $as_echo_n "(cached) " >&6
9707 else
9708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h.  */
9710
9711 int
9712 main ()
9713 {
9714
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9720
9721   lt_aix_libpath_sed='
9722       /Import File Strings/,/^$/ {
9723           /^0/ {
9724               s/^0  *\([^ ]*\) *$/\1/
9725               p
9726           }
9727       }'
9728   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9729   # Check for a 64-bit object if we didn't find anything.
9730   if test -z "$lt_cv_aix_libpath_"; then
9731     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9732   fi
9733 fi
9734 rm -f core conftest.err conftest.$ac_objext \
9735     conftest$ac_exeext conftest.$ac_ext
9736   if test -z "$lt_cv_aix_libpath_"; then
9737     lt_cv_aix_libpath_="/usr/lib:/lib"
9738   fi
9739
9740 fi
9741
9742   aix_libpath=$lt_cv_aix_libpath_
9743 fi
9744
9745         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9746         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"
9747       else
9748         if test "$host_cpu" = ia64; then
9749           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9750           allow_undefined_flag="-z nodefs"
9751           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"
9752         else
9753          # Determine the default libpath from the value encoded in an
9754          # empty executable.
9755          if test "${lt_cv_aix_libpath+set}" = set; then
9756   aix_libpath=$lt_cv_aix_libpath
9757 else
9758   if ${lt_cv_aix_libpath_+:} false; then :
9759   $as_echo_n "(cached) " >&6
9760 else
9761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h.  */
9763
9764 int
9765 main ()
9766 {
9767
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773
9774   lt_aix_libpath_sed='
9775       /Import File Strings/,/^$/ {
9776           /^0/ {
9777               s/^0  *\([^ ]*\) *$/\1/
9778               p
9779           }
9780       }'
9781   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9782   # Check for a 64-bit object if we didn't find anything.
9783   if test -z "$lt_cv_aix_libpath_"; then
9784     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785   fi
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext \
9788     conftest$ac_exeext conftest.$ac_ext
9789   if test -z "$lt_cv_aix_libpath_"; then
9790     lt_cv_aix_libpath_="/usr/lib:/lib"
9791   fi
9792
9793 fi
9794
9795   aix_libpath=$lt_cv_aix_libpath_
9796 fi
9797
9798          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9799           # Warning - without using the other run time loading flags,
9800           # -berok will link without error, but may produce a broken library.
9801           no_undefined_flag=' ${wl}-bernotok'
9802           allow_undefined_flag=' ${wl}-berok'
9803           if test "$with_gnu_ld" = yes; then
9804             # We only use this code for GNU lds that support --whole-archive.
9805             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9806           else
9807             # Exported symbols can be pulled into shared objects from archives
9808             whole_archive_flag_spec='$convenience'
9809           fi
9810           archive_cmds_need_lc=yes
9811           # This is similar to how AIX traditionally builds its shared libraries.
9812           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'
9813         fi
9814       fi
9815       ;;
9816
9817     amigaos*)
9818       case $host_cpu in
9819       powerpc)
9820             # see comment about AmigaOS4 .so support
9821             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822             archive_expsym_cmds=''
9823         ;;
9824       m68k)
9825             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)'
9826             hardcode_libdir_flag_spec='-L$libdir'
9827             hardcode_minus_L=yes
9828         ;;
9829       esac
9830       ;;
9831
9832     bsdi[45]*)
9833       export_dynamic_flag_spec=-rdynamic
9834       ;;
9835
9836     cygwin* | mingw* | pw32* | cegcc*)
9837       # When not using gcc, we currently assume that we are using
9838       # Microsoft Visual C++.
9839       # hardcode_libdir_flag_spec is actually meaningless, as there is
9840       # no search path for DLLs.
9841       case $cc_basename in
9842       cl*)
9843         # Native MSVC
9844         hardcode_libdir_flag_spec=' '
9845         allow_undefined_flag=unsupported
9846         always_export_symbols=yes
9847         file_list_spec='@'
9848         # Tell ltmain to make .lib files, not .a files.
9849         libext=lib
9850         # Tell ltmain to make .dll files, not .so files.
9851         shrext_cmds=".dll"
9852         # FIXME: Setting linknames here is a bad hack.
9853         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9854         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9855             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9856           else
9857             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9858           fi~
9859           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9860           linknames='
9861         # The linker will not automatically build a static lib if we build a DLL.
9862         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9863         enable_shared_with_static_runtimes=yes
9864         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9865         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9866         # Don't use ranlib
9867         old_postinstall_cmds='chmod 644 $oldlib'
9868         postlink_cmds='lt_outputfile="@OUTPUT@"~
9869           lt_tool_outputfile="@TOOL_OUTPUT@"~
9870           case $lt_outputfile in
9871             *.exe|*.EXE) ;;
9872             *)
9873               lt_outputfile="$lt_outputfile.exe"
9874               lt_tool_outputfile="$lt_tool_outputfile.exe"
9875               ;;
9876           esac~
9877           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9878             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9879             $RM "$lt_outputfile.manifest";
9880           fi'
9881         ;;
9882       *)
9883         # Assume MSVC wrapper
9884         hardcode_libdir_flag_spec=' '
9885         allow_undefined_flag=unsupported
9886         # Tell ltmain to make .lib files, not .a files.
9887         libext=lib
9888         # Tell ltmain to make .dll files, not .so files.
9889         shrext_cmds=".dll"
9890         # FIXME: Setting linknames here is a bad hack.
9891         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9892         # The linker will automatically build a .lib file if we build a DLL.
9893         old_archive_from_new_cmds='true'
9894         # FIXME: Should let the user specify the lib program.
9895         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9896         enable_shared_with_static_runtimes=yes
9897         ;;
9898       esac
9899       ;;
9900
9901     darwin* | rhapsody*)
9902
9903
9904   archive_cmds_need_lc=no
9905   hardcode_direct=no
9906   hardcode_automatic=yes
9907   hardcode_shlibpath_var=unsupported
9908   if test "$lt_cv_ld_force_load" = "yes"; then
9909     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\"`'
9910
9911   else
9912     whole_archive_flag_spec=''
9913   fi
9914   link_all_deplibs=yes
9915   allow_undefined_flag="$_lt_dar_allow_undefined"
9916   case $cc_basename in
9917      ifort*) _lt_dar_can_shared=yes ;;
9918      *) _lt_dar_can_shared=$GCC ;;
9919   esac
9920   if test "$_lt_dar_can_shared" = "yes"; then
9921     output_verbose_link_cmd=func_echo_all
9922     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9923     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9924     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}"
9925     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}"
9926
9927   else
9928   ld_shlibs=no
9929   fi
9930
9931       ;;
9932
9933     dgux*)
9934       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935       hardcode_libdir_flag_spec='-L$libdir'
9936       hardcode_shlibpath_var=no
9937       ;;
9938
9939     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9940     # support.  Future versions do this automatically, but an explicit c++rt0.o
9941     # does not break anything, and helps significantly (at the cost of a little
9942     # extra space).
9943     freebsd2.2*)
9944       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9945       hardcode_libdir_flag_spec='-R$libdir'
9946       hardcode_direct=yes
9947       hardcode_shlibpath_var=no
9948       ;;
9949
9950     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9951     freebsd2.*)
9952       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9953       hardcode_direct=yes
9954       hardcode_minus_L=yes
9955       hardcode_shlibpath_var=no
9956       ;;
9957
9958     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9959     freebsd* | dragonfly*)
9960       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961       hardcode_libdir_flag_spec='-R$libdir'
9962       hardcode_direct=yes
9963       hardcode_shlibpath_var=no
9964       ;;
9965
9966     hpux9*)
9967       if test "$GCC" = yes; then
9968         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'
9969       else
9970         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'
9971       fi
9972       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9973       hardcode_libdir_separator=:
9974       hardcode_direct=yes
9975
9976       # hardcode_minus_L: Not really in the search PATH,
9977       # but as the default location of the library.
9978       hardcode_minus_L=yes
9979       export_dynamic_flag_spec='${wl}-E'
9980       ;;
9981
9982     hpux10*)
9983       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9984         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9985       else
9986         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9987       fi
9988       if test "$with_gnu_ld" = no; then
9989         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990         hardcode_libdir_separator=:
9991         hardcode_direct=yes
9992         hardcode_direct_absolute=yes
9993         export_dynamic_flag_spec='${wl}-E'
9994         # hardcode_minus_L: Not really in the search PATH,
9995         # but as the default location of the library.
9996         hardcode_minus_L=yes
9997       fi
9998       ;;
9999
10000     hpux11*)
10001       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10002         case $host_cpu in
10003         hppa*64*)
10004           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10005           ;;
10006         ia64*)
10007           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10008           ;;
10009         *)
10010           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011           ;;
10012         esac
10013       else
10014         case $host_cpu in
10015         hppa*64*)
10016           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017           ;;
10018         ia64*)
10019           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10020           ;;
10021         *)
10022
10023           # Older versions of the 11.00 compiler do not understand -b yet
10024           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10025           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10026 $as_echo_n "checking if $CC understands -b... " >&6; }
10027 if ${lt_cv_prog_compiler__b+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   lt_cv_prog_compiler__b=no
10031    save_LDFLAGS="$LDFLAGS"
10032    LDFLAGS="$LDFLAGS -b"
10033    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10034    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10035      # The linker can only warn and ignore the option if not recognized
10036      # So say no if there are warnings
10037      if test -s conftest.err; then
10038        # Append any errors to the config.log.
10039        cat conftest.err 1>&5
10040        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10041        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10042        if diff conftest.exp conftest.er2 >/dev/null; then
10043          lt_cv_prog_compiler__b=yes
10044        fi
10045      else
10046        lt_cv_prog_compiler__b=yes
10047      fi
10048    fi
10049    $RM -r conftest*
10050    LDFLAGS="$save_LDFLAGS"
10051
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10054 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10055
10056 if test x"$lt_cv_prog_compiler__b" = xyes; then
10057     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060 fi
10061
10062           ;;
10063         esac
10064       fi
10065       if test "$with_gnu_ld" = no; then
10066         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067         hardcode_libdir_separator=:
10068
10069         case $host_cpu in
10070         hppa*64*|ia64*)
10071           hardcode_direct=no
10072           hardcode_shlibpath_var=no
10073           ;;
10074         *)
10075           hardcode_direct=yes
10076           hardcode_direct_absolute=yes
10077           export_dynamic_flag_spec='${wl}-E'
10078
10079           # hardcode_minus_L: Not really in the search PATH,
10080           # but as the default location of the library.
10081           hardcode_minus_L=yes
10082           ;;
10083         esac
10084       fi
10085       ;;
10086
10087     irix5* | irix6* | nonstopux*)
10088       if test "$GCC" = yes; then
10089         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'
10090         # Try to use the -exported_symbol ld option, if it does not
10091         # work, assume that -exports_file does not work either and
10092         # implicitly export all symbols.
10093         # This should be the same for all languages, so no per-tag cache variable.
10094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10095 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10096 if ${lt_cv_irix_exported_symbol+:} false; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   save_LDFLAGS="$LDFLAGS"
10100            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10101            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h.  */
10103 int foo (void) { return 0; }
10104 _ACEOF
10105 if ac_fn_c_try_link "$LINENO"; then :
10106   lt_cv_irix_exported_symbol=yes
10107 else
10108   lt_cv_irix_exported_symbol=no
10109 fi
10110 rm -f core conftest.err conftest.$ac_objext \
10111     conftest$ac_exeext conftest.$ac_ext
10112            LDFLAGS="$save_LDFLAGS"
10113 fi
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10115 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10116         if test "$lt_cv_irix_exported_symbol" = yes; then
10117           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'
10118         fi
10119       else
10120         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'
10121         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'
10122       fi
10123       archive_cmds_need_lc='no'
10124       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125       hardcode_libdir_separator=:
10126       inherit_rpath=yes
10127       link_all_deplibs=yes
10128       ;;
10129
10130     netbsd*)
10131       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10132         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10133       else
10134         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10135       fi
10136       hardcode_libdir_flag_spec='-R$libdir'
10137       hardcode_direct=yes
10138       hardcode_shlibpath_var=no
10139       ;;
10140
10141     newsos6)
10142       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143       hardcode_direct=yes
10144       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10145       hardcode_libdir_separator=:
10146       hardcode_shlibpath_var=no
10147       ;;
10148
10149     *nto* | *qnx*)
10150       ;;
10151
10152     openbsd*)
10153       if test -f /usr/libexec/ld.so; then
10154         hardcode_direct=yes
10155         hardcode_shlibpath_var=no
10156         hardcode_direct_absolute=yes
10157         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10158           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10160           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10161           export_dynamic_flag_spec='${wl}-E'
10162         else
10163           case $host_os in
10164            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10165              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10166              hardcode_libdir_flag_spec='-R$libdir'
10167              ;;
10168            *)
10169              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10170              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10171              ;;
10172           esac
10173         fi
10174       else
10175         ld_shlibs=no
10176       fi
10177       ;;
10178
10179     os2*)
10180       hardcode_libdir_flag_spec='-L$libdir'
10181       hardcode_minus_L=yes
10182       allow_undefined_flag=unsupported
10183       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'
10184       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10185       ;;
10186
10187     osf3*)
10188       if test "$GCC" = yes; then
10189         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10190         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'
10191       else
10192         allow_undefined_flag=' -expect_unresolved \*'
10193         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'
10194       fi
10195       archive_cmds_need_lc='no'
10196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197       hardcode_libdir_separator=:
10198       ;;
10199
10200     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10201       if test "$GCC" = yes; then
10202         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10203         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'
10204         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205       else
10206         allow_undefined_flag=' -expect_unresolved \*'
10207         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'
10208         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~
10209         $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'
10210
10211         # Both c and cxx compiler support -rpath directly
10212         hardcode_libdir_flag_spec='-rpath $libdir'
10213       fi
10214       archive_cmds_need_lc='no'
10215       hardcode_libdir_separator=:
10216       ;;
10217
10218     solaris*)
10219       no_undefined_flag=' -z defs'
10220       if test "$GCC" = yes; then
10221         wlarc='${wl}'
10222         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10223         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10224           $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'
10225       else
10226         case `$CC -V 2>&1` in
10227         *"Compilers 5.0"*)
10228           wlarc=''
10229           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10231           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10232           ;;
10233         *)
10234           wlarc='${wl}'
10235           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10236           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10237           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10238           ;;
10239         esac
10240       fi
10241       hardcode_libdir_flag_spec='-R$libdir'
10242       hardcode_shlibpath_var=no
10243       case $host_os in
10244       solaris2.[0-5] | solaris2.[0-5].*) ;;
10245       *)
10246         # The compiler driver will combine and reorder linker options,
10247         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10248         # but is careful enough not to reorder.
10249         # Supported since Solaris 2.6 (maybe 2.5.1?)
10250         if test "$GCC" = yes; then
10251           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10252         else
10253           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10254         fi
10255         ;;
10256       esac
10257       link_all_deplibs=yes
10258       ;;
10259
10260     sunos4*)
10261       if test "x$host_vendor" = xsequent; then
10262         # Use $CC to link under sequent, because it throws in some extra .o
10263         # files that make .init and .fini sections work.
10264         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10265       else
10266         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10267       fi
10268       hardcode_libdir_flag_spec='-L$libdir'
10269       hardcode_direct=yes
10270       hardcode_minus_L=yes
10271       hardcode_shlibpath_var=no
10272       ;;
10273
10274     sysv4)
10275       case $host_vendor in
10276         sni)
10277           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278           hardcode_direct=yes # is this really true???
10279         ;;
10280         siemens)
10281           ## LD is ld it makes a PLAMLIB
10282           ## CC just makes a GrossModule.
10283           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10284           reload_cmds='$CC -r -o $output$reload_objs'
10285           hardcode_direct=no
10286         ;;
10287         motorola)
10288           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10290         ;;
10291       esac
10292       runpath_var='LD_RUN_PATH'
10293       hardcode_shlibpath_var=no
10294       ;;
10295
10296     sysv4.3*)
10297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298       hardcode_shlibpath_var=no
10299       export_dynamic_flag_spec='-Bexport'
10300       ;;
10301
10302     sysv4*MP*)
10303       if test -d /usr/nec; then
10304         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305         hardcode_shlibpath_var=no
10306         runpath_var=LD_RUN_PATH
10307         hardcode_runpath_var=yes
10308         ld_shlibs=yes
10309       fi
10310       ;;
10311
10312     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10313       no_undefined_flag='${wl}-z,text'
10314       archive_cmds_need_lc=no
10315       hardcode_shlibpath_var=no
10316       runpath_var='LD_RUN_PATH'
10317
10318       if test "$GCC" = yes; then
10319         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321       else
10322         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324       fi
10325       ;;
10326
10327     sysv5* | sco3.2v5* | sco5v6*)
10328       # Note: We can NOT use -z defs as we might desire, because we do not
10329       # link with -lc, and that would cause any symbols used from libc to
10330       # always be unresolved, which means just about no library would
10331       # ever link correctly.  If we're not using GNU ld we use -z text
10332       # though, which does catch some bad symbols but isn't as heavy-handed
10333       # as -z defs.
10334       no_undefined_flag='${wl}-z,text'
10335       allow_undefined_flag='${wl}-z,nodefs'
10336       archive_cmds_need_lc=no
10337       hardcode_shlibpath_var=no
10338       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10339       hardcode_libdir_separator=':'
10340       link_all_deplibs=yes
10341       export_dynamic_flag_spec='${wl}-Bexport'
10342       runpath_var='LD_RUN_PATH'
10343
10344       if test "$GCC" = yes; then
10345         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347       else
10348         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350       fi
10351       ;;
10352
10353     uts4*)
10354       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355       hardcode_libdir_flag_spec='-L$libdir'
10356       hardcode_shlibpath_var=no
10357       ;;
10358
10359     *)
10360       ld_shlibs=no
10361       ;;
10362     esac
10363
10364     if test x$host_vendor = xsni; then
10365       case $host in
10366       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10367         export_dynamic_flag_spec='${wl}-Blargedynsym'
10368         ;;
10369       esac
10370     fi
10371   fi
10372
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10374 $as_echo "$ld_shlibs" >&6; }
10375 test "$ld_shlibs" = no && can_build_shared=no
10376
10377 with_gnu_ld=$with_gnu_ld
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393 #
10394 # Do we need to explicitly link libc?
10395 #
10396 case "x$archive_cmds_need_lc" in
10397 x|xyes)
10398   # Assume -lc should be added
10399   archive_cmds_need_lc=yes
10400
10401   if test "$enable_shared" = yes && test "$GCC" = yes; then
10402     case $archive_cmds in
10403     *'~'*)
10404       # FIXME: we may have to deal with multi-command sequences.
10405       ;;
10406     '$CC '*)
10407       # Test whether the compiler implicitly links with -lc since on some
10408       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10409       # to ld, don't add -lc before -lgcc.
10410       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10411 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10412 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   $RM conftest*
10416         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10417
10418         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10419   (eval $ac_compile) 2>&5
10420   ac_status=$?
10421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10422   test $ac_status = 0; } 2>conftest.err; then
10423           soname=conftest
10424           lib=conftest
10425           libobjs=conftest.$ac_objext
10426           deplibs=
10427           wl=$lt_prog_compiler_wl
10428           pic_flag=$lt_prog_compiler_pic
10429           compiler_flags=-v
10430           linker_flags=-v
10431           verstring=
10432           output_objdir=.
10433           libname=conftest
10434           lt_save_allow_undefined_flag=$allow_undefined_flag
10435           allow_undefined_flag=
10436           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10437   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10438   ac_status=$?
10439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10440   test $ac_status = 0; }
10441           then
10442             lt_cv_archive_cmds_need_lc=no
10443           else
10444             lt_cv_archive_cmds_need_lc=yes
10445           fi
10446           allow_undefined_flag=$lt_save_allow_undefined_flag
10447         else
10448           cat conftest.err 1>&5
10449         fi
10450         $RM conftest*
10451
10452 fi
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10454 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10455       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10456       ;;
10457     esac
10458   fi
10459   ;;
10460 esac
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10615
10616 if test "$GCC" = yes; then
10617   case $host_os in
10618     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10619     *) lt_awk_arg="/^libraries:/" ;;
10620   esac
10621   case $host_os in
10622     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10623     *) lt_sed_strip_eq="s,=/,/,g" ;;
10624   esac
10625   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10626   case $lt_search_path_spec in
10627   *\;*)
10628     # if the path contains ";" then we assume it to be the separator
10629     # otherwise default to the standard path separator (i.e. ":") - it is
10630     # assumed that no part of a normal pathname contains ";" but that should
10631     # okay in the real world where ";" in dirpaths is itself problematic.
10632     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10633     ;;
10634   *)
10635     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10636     ;;
10637   esac
10638   # Ok, now we have the path, separated by spaces, we can step through it
10639   # and add multilib dir if necessary.
10640   lt_tmp_lt_search_path_spec=
10641   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10642   for lt_sys_path in $lt_search_path_spec; do
10643     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10644       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10645     else
10646       test -d "$lt_sys_path" && \
10647         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10648     fi
10649   done
10650   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10651 BEGIN {RS=" "; FS="/|\n";} {
10652   lt_foo="";
10653   lt_count=0;
10654   for (lt_i = NF; lt_i > 0; lt_i--) {
10655     if ($lt_i != "" && $lt_i != ".") {
10656       if ($lt_i == "..") {
10657         lt_count++;
10658       } else {
10659         if (lt_count == 0) {
10660           lt_foo="/" $lt_i lt_foo;
10661         } else {
10662           lt_count--;
10663         }
10664       }
10665     }
10666   }
10667   if (lt_foo != "") { lt_freq[lt_foo]++; }
10668   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10669 }'`
10670   # AWK program above erroneously prepends '/' to C:/dos/paths
10671   # for these hosts.
10672   case $host_os in
10673     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10674       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10675   esac
10676   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10677 else
10678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10679 fi
10680 library_names_spec=
10681 libname_spec='lib$name'
10682 soname_spec=
10683 shrext_cmds=".so"
10684 postinstall_cmds=
10685 postuninstall_cmds=
10686 finish_cmds=
10687 finish_eval=
10688 shlibpath_var=
10689 shlibpath_overrides_runpath=unknown
10690 version_type=none
10691 dynamic_linker="$host_os ld.so"
10692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10693 need_lib_prefix=unknown
10694 hardcode_into_libs=no
10695
10696 # when you set need_version to no, make sure it does not cause -set_version
10697 # flags to be left without arguments
10698 need_version=unknown
10699
10700 case $host_os in
10701 aix3*)
10702   version_type=linux # correct to gnu/linux during the next big refactor
10703   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10704   shlibpath_var=LIBPATH
10705
10706   # AIX 3 has no versioning support, so we append a major version to the name.
10707   soname_spec='${libname}${release}${shared_ext}$major'
10708   ;;
10709
10710 aix[4-9]*)
10711   version_type=linux # correct to gnu/linux during the next big refactor
10712   need_lib_prefix=no
10713   need_version=no
10714   hardcode_into_libs=yes
10715   if test "$host_cpu" = ia64; then
10716     # AIX 5 supports IA64
10717     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10718     shlibpath_var=LD_LIBRARY_PATH
10719   else
10720     # With GCC up to 2.95.x, collect2 would create an import file
10721     # for dependence libraries.  The import file would start with
10722     # the line `#! .'.  This would cause the generated library to
10723     # depend on `.', always an invalid library.  This was fixed in
10724     # development snapshots of GCC prior to 3.0.
10725     case $host_os in
10726       aix4 | aix4.[01] | aix4.[01].*)
10727       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10728            echo ' yes '
10729            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10730         :
10731       else
10732         can_build_shared=no
10733       fi
10734       ;;
10735     esac
10736     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10737     # soname into executable. Probably we can add versioning support to
10738     # collect2, so additional links can be useful in future.
10739     if test "$aix_use_runtimelinking" = yes; then
10740       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10741       # instead of lib<name>.a to let people know that these are not
10742       # typical AIX shared libraries.
10743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744     else
10745       # We preserve .a as extension for shared libraries through AIX4.2
10746       # and later when we are not doing run time linking.
10747       library_names_spec='${libname}${release}.a $libname.a'
10748       soname_spec='${libname}${release}${shared_ext}$major'
10749     fi
10750     shlibpath_var=LIBPATH
10751   fi
10752   ;;
10753
10754 amigaos*)
10755   case $host_cpu in
10756   powerpc)
10757     # Since July 2007 AmigaOS4 officially supports .so libraries.
10758     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760     ;;
10761   m68k)
10762     library_names_spec='$libname.ixlibrary $libname.a'
10763     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10764     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'
10765     ;;
10766   esac
10767   ;;
10768
10769 beos*)
10770   library_names_spec='${libname}${shared_ext}'
10771   dynamic_linker="$host_os ld.so"
10772   shlibpath_var=LIBRARY_PATH
10773   ;;
10774
10775 bsdi[45]*)
10776   version_type=linux # correct to gnu/linux during the next big refactor
10777   need_version=no
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779   soname_spec='${libname}${release}${shared_ext}$major'
10780   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10781   shlibpath_var=LD_LIBRARY_PATH
10782   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10783   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10784   # the default ld.so.conf also contains /usr/contrib/lib and
10785   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10786   # libtool to hard-code these into programs
10787   ;;
10788
10789 cygwin* | mingw* | pw32* | cegcc*)
10790   version_type=windows
10791   shrext_cmds=".dll"
10792   need_version=no
10793   need_lib_prefix=no
10794
10795   case $GCC,$cc_basename in
10796   yes,*)
10797     # gcc
10798     library_names_spec='$libname.dll.a'
10799     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10800     postinstall_cmds='base_file=`basename \${file}`~
10801       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10802       dldir=$destdir/`dirname \$dlpath`~
10803       test -d \$dldir || mkdir -p \$dldir~
10804       $install_prog $dir/$dlname \$dldir/$dlname~
10805       chmod a+x \$dldir/$dlname~
10806       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10807         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10808       fi'
10809     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10810       dlpath=$dir/\$dldll~
10811        $RM \$dlpath'
10812     shlibpath_overrides_runpath=yes
10813
10814     case $host_os in
10815     cygwin*)
10816       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10817       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10818
10819       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10820       ;;
10821     mingw* | cegcc*)
10822       # MinGW DLLs use traditional 'lib' prefix
10823       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824       ;;
10825     pw32*)
10826       # pw32 DLLs use 'pw' prefix rather than 'lib'
10827       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828       ;;
10829     esac
10830     dynamic_linker='Win32 ld.exe'
10831     ;;
10832
10833   *,cl*)
10834     # Native MSVC
10835     libname_spec='$name'
10836     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837     library_names_spec='${libname}.dll.lib'
10838
10839     case $build_os in
10840     mingw*)
10841       sys_lib_search_path_spec=
10842       lt_save_ifs=$IFS
10843       IFS=';'
10844       for lt_path in $LIB
10845       do
10846         IFS=$lt_save_ifs
10847         # Let DOS variable expansion print the short 8.3 style file name.
10848         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10849         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10850       done
10851       IFS=$lt_save_ifs
10852       # Convert to MSYS style.
10853       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10854       ;;
10855     cygwin*)
10856       # Convert to unix form, then to dos form, then back to unix form
10857       # but this time dos style (no spaces!) so that the unix form looks
10858       # like /cygdrive/c/PROGRA~1:/cygdr...
10859       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10860       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10861       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10862       ;;
10863     *)
10864       sys_lib_search_path_spec="$LIB"
10865       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10866         # It is most probably a Windows format PATH.
10867         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10868       else
10869         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10870       fi
10871       # FIXME: find the short name or the path components, as spaces are
10872       # common. (e.g. "Program Files" -> "PROGRA~1")
10873       ;;
10874     esac
10875
10876     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10877     postinstall_cmds='base_file=`basename \${file}`~
10878       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10879       dldir=$destdir/`dirname \$dlpath`~
10880       test -d \$dldir || mkdir -p \$dldir~
10881       $install_prog $dir/$dlname \$dldir/$dlname'
10882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883       dlpath=$dir/\$dldll~
10884        $RM \$dlpath'
10885     shlibpath_overrides_runpath=yes
10886     dynamic_linker='Win32 link.exe'
10887     ;;
10888
10889   *)
10890     # Assume MSVC wrapper
10891     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10892     dynamic_linker='Win32 ld.exe'
10893     ;;
10894   esac
10895   # FIXME: first we should search . and the directory the executable is in
10896   shlibpath_var=PATH
10897   ;;
10898
10899 darwin* | rhapsody*)
10900   dynamic_linker="$host_os dyld"
10901   version_type=darwin
10902   need_lib_prefix=no
10903   need_version=no
10904   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10905   soname_spec='${libname}${release}${major}$shared_ext'
10906   shlibpath_overrides_runpath=yes
10907   shlibpath_var=DYLD_LIBRARY_PATH
10908   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10909
10910   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10911   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10912   ;;
10913
10914 dgux*)
10915   version_type=linux # correct to gnu/linux during the next big refactor
10916   need_lib_prefix=no
10917   need_version=no
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10919   soname_spec='${libname}${release}${shared_ext}$major'
10920   shlibpath_var=LD_LIBRARY_PATH
10921   ;;
10922
10923 freebsd* | dragonfly*)
10924   # DragonFly does not have aout.  When/if they implement a new
10925   # versioning mechanism, adjust this.
10926   if test -x /usr/bin/objformat; then
10927     objformat=`/usr/bin/objformat`
10928   else
10929     case $host_os in
10930     freebsd[23].*) objformat=aout ;;
10931     *) objformat=elf ;;
10932     esac
10933   fi
10934   version_type=freebsd-$objformat
10935   case $version_type in
10936     freebsd-elf*)
10937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10938       need_version=no
10939       need_lib_prefix=no
10940       ;;
10941     freebsd-*)
10942       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10943       need_version=yes
10944       ;;
10945   esac
10946   shlibpath_var=LD_LIBRARY_PATH
10947   case $host_os in
10948   freebsd2.*)
10949     shlibpath_overrides_runpath=yes
10950     ;;
10951   freebsd3.[01]* | freebsdelf3.[01]*)
10952     shlibpath_overrides_runpath=yes
10953     hardcode_into_libs=yes
10954     ;;
10955   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10956   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10957     shlibpath_overrides_runpath=no
10958     hardcode_into_libs=yes
10959     ;;
10960   *) # from 4.6 on, and DragonFly
10961     shlibpath_overrides_runpath=yes
10962     hardcode_into_libs=yes
10963     ;;
10964   esac
10965   ;;
10966
10967 gnu*)
10968   version_type=linux # correct to gnu/linux during the next big refactor
10969   need_lib_prefix=no
10970   need_version=no
10971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10972   soname_spec='${libname}${release}${shared_ext}$major'
10973   shlibpath_var=LD_LIBRARY_PATH
10974   shlibpath_overrides_runpath=no
10975   hardcode_into_libs=yes
10976   ;;
10977
10978 haiku*)
10979   version_type=linux # correct to gnu/linux during the next big refactor
10980   need_lib_prefix=no
10981   need_version=no
10982   dynamic_linker="$host_os runtime_loader"
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   shlibpath_var=LIBRARY_PATH
10986   shlibpath_overrides_runpath=yes
10987   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10988   hardcode_into_libs=yes
10989   ;;
10990
10991 hpux9* | hpux10* | hpux11*)
10992   # Give a soname corresponding to the major version so that dld.sl refuses to
10993   # link against other versions.
10994   version_type=sunos
10995   need_lib_prefix=no
10996   need_version=no
10997   case $host_cpu in
10998   ia64*)
10999     shrext_cmds='.so'
11000     hardcode_into_libs=yes
11001     dynamic_linker="$host_os dld.so"
11002     shlibpath_var=LD_LIBRARY_PATH
11003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005     soname_spec='${libname}${release}${shared_ext}$major'
11006     if test "X$HPUX_IA64_MODE" = X32; then
11007       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11008     else
11009       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11010     fi
11011     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11012     ;;
11013   hppa*64*)
11014     shrext_cmds='.sl'
11015     hardcode_into_libs=yes
11016     dynamic_linker="$host_os dld.sl"
11017     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11018     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020     soname_spec='${libname}${release}${shared_ext}$major'
11021     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11022     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11023     ;;
11024   *)
11025     shrext_cmds='.sl'
11026     dynamic_linker="$host_os dld.sl"
11027     shlibpath_var=SHLIB_PATH
11028     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030     soname_spec='${libname}${release}${shared_ext}$major'
11031     ;;
11032   esac
11033   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11034   postinstall_cmds='chmod 555 $lib'
11035   # or fails outright, so override atomically:
11036   install_override_mode=555
11037   ;;
11038
11039 interix[3-9]*)
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11044   soname_spec='${libname}${release}${shared_ext}$major'
11045   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=no
11048   hardcode_into_libs=yes
11049   ;;
11050
11051 irix5* | irix6* | nonstopux*)
11052   case $host_os in
11053     nonstopux*) version_type=nonstopux ;;
11054     *)
11055         if test "$lt_cv_prog_gnu_ld" = yes; then
11056                 version_type=linux # correct to gnu/linux during the next big refactor
11057         else
11058                 version_type=irix
11059         fi ;;
11060   esac
11061   need_lib_prefix=no
11062   need_version=no
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11065   case $host_os in
11066   irix5* | nonstopux*)
11067     libsuff= shlibsuff=
11068     ;;
11069   *)
11070     case $LD in # libtool.m4 will add one of these switches to LD
11071     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11072       libsuff= shlibsuff= libmagic=32-bit;;
11073     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11074       libsuff=32 shlibsuff=N32 libmagic=N32;;
11075     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11076       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11077     *) libsuff= shlibsuff= libmagic=never-match;;
11078     esac
11079     ;;
11080   esac
11081   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11082   shlibpath_overrides_runpath=no
11083   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11084   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11085   hardcode_into_libs=yes
11086   ;;
11087
11088 # No shared lib support for Linux oldld, aout, or coff.
11089 linux*oldld* | linux*aout* | linux*coff*)
11090   dynamic_linker=no
11091   ;;
11092
11093 # This must be glibc/ELF.
11094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11095   version_type=linux # correct to gnu/linux during the next big refactor
11096   need_lib_prefix=no
11097   need_version=no
11098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099   soname_spec='${libname}${release}${shared_ext}$major'
11100   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   shlibpath_overrides_runpath=no
11103
11104   # Some binutils ld are patched to set DT_RUNPATH
11105   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   lt_cv_shlibpath_overrides_runpath=no
11109     save_LDFLAGS=$LDFLAGS
11110     save_libdir=$libdir
11111     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11112          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h.  */
11115
11116 int
11117 main ()
11118 {
11119
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"; then :
11125   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11126   lt_cv_shlibpath_overrides_runpath=yes
11127 fi
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext \
11130     conftest$ac_exeext conftest.$ac_ext
11131     LDFLAGS=$save_LDFLAGS
11132     libdir=$save_libdir
11133
11134 fi
11135
11136   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11137
11138   # This implies no fast_install, which is unacceptable.
11139   # Some rework will be needed to allow for fast_install
11140   # before this can be enabled.
11141   hardcode_into_libs=yes
11142
11143   # Add ABI-specific directories to the system library path.
11144   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11145
11146   # Append ld.so.conf contents to the search path
11147   if test -f /etc/ld.so.conf; then
11148     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' ' '`
11149     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11150
11151   fi
11152
11153   # We used to test for /lib/ld.so.1 and disable shared libraries on
11154   # powerpc, because MkLinux only supported shared libraries with the
11155   # GNU dynamic linker.  Since this was broken with cross compilers,
11156   # most powerpc-linux boxes support dynamic linking these days and
11157   # people can always --disable-shared, the test was removed, and we
11158   # assume the GNU/Linux dynamic linker is in use.
11159   dynamic_linker='GNU/Linux ld.so'
11160   ;;
11161
11162 netbsd*)
11163   version_type=sunos
11164   need_lib_prefix=no
11165   need_version=no
11166   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11168     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11169     dynamic_linker='NetBSD (a.out) ld.so'
11170   else
11171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11172     soname_spec='${libname}${release}${shared_ext}$major'
11173     dynamic_linker='NetBSD ld.elf_so'
11174   fi
11175   shlibpath_var=LD_LIBRARY_PATH
11176   shlibpath_overrides_runpath=yes
11177   hardcode_into_libs=yes
11178   ;;
11179
11180 newsos6)
11181   version_type=linux # correct to gnu/linux during the next big refactor
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   shlibpath_overrides_runpath=yes
11185   ;;
11186
11187 *nto* | *qnx*)
11188   version_type=qnx
11189   need_lib_prefix=no
11190   need_version=no
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   shlibpath_overrides_runpath=no
11195   hardcode_into_libs=yes
11196   dynamic_linker='ldqnx.so'
11197   ;;
11198
11199 openbsd*)
11200   version_type=sunos
11201   sys_lib_dlsearch_path_spec="/usr/lib"
11202   need_lib_prefix=no
11203   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11204   case $host_os in
11205     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11206     *)                          need_version=no  ;;
11207   esac
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11212     case $host_os in
11213       openbsd2.[89] | openbsd2.[89].*)
11214         shlibpath_overrides_runpath=no
11215         ;;
11216       *)
11217         shlibpath_overrides_runpath=yes
11218         ;;
11219       esac
11220   else
11221     shlibpath_overrides_runpath=yes
11222   fi
11223   ;;
11224
11225 os2*)
11226   libname_spec='$name'
11227   shrext_cmds=".dll"
11228   need_lib_prefix=no
11229   library_names_spec='$libname${shared_ext} $libname.a'
11230   dynamic_linker='OS/2 ld.exe'
11231   shlibpath_var=LIBPATH
11232   ;;
11233
11234 osf3* | osf4* | osf5*)
11235   version_type=osf
11236   need_lib_prefix=no
11237   need_version=no
11238   soname_spec='${libname}${release}${shared_ext}$major'
11239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240   shlibpath_var=LD_LIBRARY_PATH
11241   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11242   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11243   ;;
11244
11245 rdos*)
11246   dynamic_linker=no
11247   ;;
11248
11249 solaris*)
11250   version_type=linux # correct to gnu/linux during the next big refactor
11251   need_lib_prefix=no
11252   need_version=no
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254   soname_spec='${libname}${release}${shared_ext}$major'
11255   shlibpath_var=LD_LIBRARY_PATH
11256   shlibpath_overrides_runpath=yes
11257   hardcode_into_libs=yes
11258   # ldd complains unless libraries are executable
11259   postinstall_cmds='chmod +x $lib'
11260   ;;
11261
11262 sunos4*)
11263   version_type=sunos
11264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11265   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11266   shlibpath_var=LD_LIBRARY_PATH
11267   shlibpath_overrides_runpath=yes
11268   if test "$with_gnu_ld" = yes; then
11269     need_lib_prefix=no
11270   fi
11271   need_version=yes
11272   ;;
11273
11274 sysv4 | sysv4.3*)
11275   version_type=linux # correct to gnu/linux during the next big refactor
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277   soname_spec='${libname}${release}${shared_ext}$major'
11278   shlibpath_var=LD_LIBRARY_PATH
11279   case $host_vendor in
11280     sni)
11281       shlibpath_overrides_runpath=no
11282       need_lib_prefix=no
11283       runpath_var=LD_RUN_PATH
11284       ;;
11285     siemens)
11286       need_lib_prefix=no
11287       ;;
11288     motorola)
11289       need_lib_prefix=no
11290       need_version=no
11291       shlibpath_overrides_runpath=no
11292       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11293       ;;
11294   esac
11295   ;;
11296
11297 sysv4*MP*)
11298   if test -d /usr/nec ;then
11299     version_type=linux # correct to gnu/linux during the next big refactor
11300     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11301     soname_spec='$libname${shared_ext}.$major'
11302     shlibpath_var=LD_LIBRARY_PATH
11303   fi
11304   ;;
11305
11306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11307   version_type=freebsd-elf
11308   need_lib_prefix=no
11309   need_version=no
11310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311   soname_spec='${libname}${release}${shared_ext}$major'
11312   shlibpath_var=LD_LIBRARY_PATH
11313   shlibpath_overrides_runpath=yes
11314   hardcode_into_libs=yes
11315   if test "$with_gnu_ld" = yes; then
11316     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11317   else
11318     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11319     case $host_os in
11320       sco3.2v5*)
11321         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11322         ;;
11323     esac
11324   fi
11325   sys_lib_dlsearch_path_spec='/usr/lib'
11326   ;;
11327
11328 tpf*)
11329   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11330   version_type=linux # correct to gnu/linux during the next big refactor
11331   need_lib_prefix=no
11332   need_version=no
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   shlibpath_overrides_runpath=no
11336   hardcode_into_libs=yes
11337   ;;
11338
11339 uts4*)
11340   version_type=linux # correct to gnu/linux during the next big refactor
11341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342   soname_spec='${libname}${release}${shared_ext}$major'
11343   shlibpath_var=LD_LIBRARY_PATH
11344   ;;
11345
11346 *)
11347   dynamic_linker=no
11348   ;;
11349 esac
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11351 $as_echo "$dynamic_linker" >&6; }
11352 test "$dynamic_linker" = no && can_build_shared=no
11353
11354 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11355 if test "$GCC" = yes; then
11356   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11357 fi
11358
11359 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11360   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11361 fi
11362 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11363   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11364 fi
11365
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11458 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11459 hardcode_action=
11460 if test -n "$hardcode_libdir_flag_spec" ||
11461    test -n "$runpath_var" ||
11462    test "X$hardcode_automatic" = "Xyes" ; then
11463
11464   # We can hardcode non-existent directories.
11465   if test "$hardcode_direct" != no &&
11466      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11467      # have to relink, otherwise we might link with an installed library
11468      # when we should be linking with a yet-to-be-installed one
11469      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11470      test "$hardcode_minus_L" != no; then
11471     # Linking always hardcodes the temporary library directory.
11472     hardcode_action=relink
11473   else
11474     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11475     hardcode_action=immediate
11476   fi
11477 else
11478   # We cannot hardcode anything, or else we can only hardcode existing
11479   # directories.
11480   hardcode_action=unsupported
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11483 $as_echo "$hardcode_action" >&6; }
11484
11485 if test "$hardcode_action" = relink ||
11486    test "$inherit_rpath" = yes; then
11487   # Fast installation is not supported
11488   enable_fast_install=no
11489 elif test "$shlibpath_overrides_runpath" = yes ||
11490      test "$enable_shared" = no; then
11491   # Fast installation is not necessary
11492   enable_fast_install=needless
11493 fi
11494
11495
11496
11497
11498
11499
11500   if test "x$enable_dlopen" != xyes; then
11501   enable_dlopen=unknown
11502   enable_dlopen_self=unknown
11503   enable_dlopen_self_static=unknown
11504 else
11505   lt_cv_dlopen=no
11506   lt_cv_dlopen_libs=
11507
11508   case $host_os in
11509   beos*)
11510     lt_cv_dlopen="load_add_on"
11511     lt_cv_dlopen_libs=
11512     lt_cv_dlopen_self=yes
11513     ;;
11514
11515   mingw* | pw32* | cegcc*)
11516     lt_cv_dlopen="LoadLibrary"
11517     lt_cv_dlopen_libs=
11518     ;;
11519
11520   cygwin*)
11521     lt_cv_dlopen="dlopen"
11522     lt_cv_dlopen_libs=
11523     ;;
11524
11525   darwin*)
11526   # if libdl is installed we need to link against it
11527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11529 if ${ac_cv_lib_dl_dlopen+:} false; then :
11530   $as_echo_n "(cached) " >&6
11531 else
11532   ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-ldl  $LIBS"
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h.  */
11536
11537 /* Override any GCC internal prototype to avoid an error.
11538    Use char because int might match the return type of a GCC
11539    builtin and then its argument prototype would still apply.  */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 char dlopen ();
11544 int
11545 main ()
11546 {
11547 return dlopen ();
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553   ac_cv_lib_dl_dlopen=yes
11554 else
11555   ac_cv_lib_dl_dlopen=no
11556 fi
11557 rm -f core conftest.err conftest.$ac_objext \
11558     conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11563 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11565 else
11566
11567     lt_cv_dlopen="dyld"
11568     lt_cv_dlopen_libs=
11569     lt_cv_dlopen_self=yes
11570
11571 fi
11572
11573     ;;
11574
11575   *)
11576     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11577 if test "x$ac_cv_func_shl_load" = xyes; then :
11578   lt_cv_dlopen="shl_load"
11579 else
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11581 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11582 if ${ac_cv_lib_dld_shl_load+:} false; then :
11583   $as_echo_n "(cached) " >&6
11584 else
11585   ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-ldld  $LIBS"
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h.  */
11589
11590 /* Override any GCC internal prototype to avoid an error.
11591    Use char because int might match the return type of a GCC
11592    builtin and then its argument prototype would still apply.  */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char shl_load ();
11597 int
11598 main ()
11599 {
11600 return shl_load ();
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 if ac_fn_c_try_link "$LINENO"; then :
11606   ac_cv_lib_dld_shl_load=yes
11607 else
11608   ac_cv_lib_dld_shl_load=no
11609 fi
11610 rm -f core conftest.err conftest.$ac_objext \
11611     conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11615 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11616 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11617   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11618 else
11619   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11620 if test "x$ac_cv_func_dlopen" = xyes; then :
11621   lt_cv_dlopen="dlopen"
11622 else
11623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11625 if ${ac_cv_lib_dl_dlopen+:} false; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-ldl  $LIBS"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h.  */
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634    Use char because int might match the return type of a GCC
11635    builtin and then its argument prototype would still apply.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char dlopen ();
11640 int
11641 main ()
11642 {
11643 return dlopen ();
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649   ac_cv_lib_dl_dlopen=yes
11650 else
11651   ac_cv_lib_dl_dlopen=no
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext \
11654     conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11660   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11661 else
11662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11663 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11664 if ${ac_cv_lib_svld_dlopen+:} false; then :
11665   $as_echo_n "(cached) " >&6
11666 else
11667   ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-lsvld  $LIBS"
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673    Use char because int might match the return type of a GCC
11674    builtin and then its argument prototype would still apply.  */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char dlopen ();
11679 int
11680 main ()
11681 {
11682 return dlopen ();
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_link "$LINENO"; then :
11688   ac_cv_lib_svld_dlopen=yes
11689 else
11690   ac_cv_lib_svld_dlopen=no
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext \
11693     conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11697 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11698 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11700 else
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11702 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11703 if ${ac_cv_lib_dld_dld_link+:} false; then :
11704   $as_echo_n "(cached) " >&6
11705 else
11706   ac_check_lib_save_LIBS=$LIBS
11707 LIBS="-ldld  $LIBS"
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h.  */
11710
11711 /* Override any GCC internal prototype to avoid an error.
11712    Use char because int might match the return type of a GCC
11713    builtin and then its argument prototype would still apply.  */
11714 #ifdef __cplusplus
11715 extern "C"
11716 #endif
11717 char dld_link ();
11718 int
11719 main ()
11720 {
11721 return dld_link ();
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_link "$LINENO"; then :
11727   ac_cv_lib_dld_dld_link=yes
11728 else
11729   ac_cv_lib_dld_dld_link=no
11730 fi
11731 rm -f core conftest.err conftest.$ac_objext \
11732     conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11736 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11737 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11738   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11739 fi
11740
11741
11742 fi
11743
11744
11745 fi
11746
11747
11748 fi
11749
11750
11751 fi
11752
11753
11754 fi
11755
11756     ;;
11757   esac
11758
11759   if test "x$lt_cv_dlopen" != xno; then
11760     enable_dlopen=yes
11761   else
11762     enable_dlopen=no
11763   fi
11764
11765   case $lt_cv_dlopen in
11766   dlopen)
11767     save_CPPFLAGS="$CPPFLAGS"
11768     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11769
11770     save_LDFLAGS="$LDFLAGS"
11771     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11772
11773     save_LIBS="$LIBS"
11774     LIBS="$lt_cv_dlopen_libs $LIBS"
11775
11776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11777 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11778 if ${lt_cv_dlopen_self+:} false; then :
11779   $as_echo_n "(cached) " >&6
11780 else
11781           if test "$cross_compiling" = yes; then :
11782   lt_cv_dlopen_self=cross
11783 else
11784   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11785   lt_status=$lt_dlunknown
11786   cat > conftest.$ac_ext <<_LT_EOF
11787 #line $LINENO "configure"
11788 #include "confdefs.h"
11789
11790 #if HAVE_DLFCN_H
11791 #include <dlfcn.h>
11792 #endif
11793
11794 #include <stdio.h>
11795
11796 #ifdef RTLD_GLOBAL
11797 #  define LT_DLGLOBAL           RTLD_GLOBAL
11798 #else
11799 #  ifdef DL_GLOBAL
11800 #    define LT_DLGLOBAL         DL_GLOBAL
11801 #  else
11802 #    define LT_DLGLOBAL         0
11803 #  endif
11804 #endif
11805
11806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11807    find out it does not work in some platform. */
11808 #ifndef LT_DLLAZY_OR_NOW
11809 #  ifdef RTLD_LAZY
11810 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11811 #  else
11812 #    ifdef DL_LAZY
11813 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11814 #    else
11815 #      ifdef RTLD_NOW
11816 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11817 #      else
11818 #        ifdef DL_NOW
11819 #          define LT_DLLAZY_OR_NOW      DL_NOW
11820 #        else
11821 #          define LT_DLLAZY_OR_NOW      0
11822 #        endif
11823 #      endif
11824 #    endif
11825 #  endif
11826 #endif
11827
11828 /* When -fvisbility=hidden is used, assume the code has been annotated
11829    correspondingly for the symbols needed.  */
11830 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11831 int fnord () __attribute__((visibility("default")));
11832 #endif
11833
11834 int fnord () { return 42; }
11835 int main ()
11836 {
11837   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11838   int status = $lt_dlunknown;
11839
11840   if (self)
11841     {
11842       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11843       else
11844         {
11845           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11846           else puts (dlerror ());
11847         }
11848       /* dlclose (self); */
11849     }
11850   else
11851     puts (dlerror ());
11852
11853   return status;
11854 }
11855 _LT_EOF
11856   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11857   (eval $ac_link) 2>&5
11858   ac_status=$?
11859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11861     (./conftest; exit; ) >&5 2>/dev/null
11862     lt_status=$?
11863     case x$lt_status in
11864       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11865       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11866       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11867     esac
11868   else :
11869     # compilation failed
11870     lt_cv_dlopen_self=no
11871   fi
11872 fi
11873 rm -fr conftest*
11874
11875
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11878 $as_echo "$lt_cv_dlopen_self" >&6; }
11879
11880     if test "x$lt_cv_dlopen_self" = xyes; then
11881       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11882       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11883 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11884 if ${lt_cv_dlopen_self_static+:} false; then :
11885   $as_echo_n "(cached) " >&6
11886 else
11887           if test "$cross_compiling" = yes; then :
11888   lt_cv_dlopen_self_static=cross
11889 else
11890   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11891   lt_status=$lt_dlunknown
11892   cat > conftest.$ac_ext <<_LT_EOF
11893 #line $LINENO "configure"
11894 #include "confdefs.h"
11895
11896 #if HAVE_DLFCN_H
11897 #include <dlfcn.h>
11898 #endif
11899
11900 #include <stdio.h>
11901
11902 #ifdef RTLD_GLOBAL
11903 #  define LT_DLGLOBAL           RTLD_GLOBAL
11904 #else
11905 #  ifdef DL_GLOBAL
11906 #    define LT_DLGLOBAL         DL_GLOBAL
11907 #  else
11908 #    define LT_DLGLOBAL         0
11909 #  endif
11910 #endif
11911
11912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11913    find out it does not work in some platform. */
11914 #ifndef LT_DLLAZY_OR_NOW
11915 #  ifdef RTLD_LAZY
11916 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11917 #  else
11918 #    ifdef DL_LAZY
11919 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11920 #    else
11921 #      ifdef RTLD_NOW
11922 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11923 #      else
11924 #        ifdef DL_NOW
11925 #          define LT_DLLAZY_OR_NOW      DL_NOW
11926 #        else
11927 #          define LT_DLLAZY_OR_NOW      0
11928 #        endif
11929 #      endif
11930 #    endif
11931 #  endif
11932 #endif
11933
11934 /* When -fvisbility=hidden is used, assume the code has been annotated
11935    correspondingly for the symbols needed.  */
11936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11937 int fnord () __attribute__((visibility("default")));
11938 #endif
11939
11940 int fnord () { return 42; }
11941 int main ()
11942 {
11943   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11944   int status = $lt_dlunknown;
11945
11946   if (self)
11947     {
11948       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11949       else
11950         {
11951           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11952           else puts (dlerror ());
11953         }
11954       /* dlclose (self); */
11955     }
11956   else
11957     puts (dlerror ());
11958
11959   return status;
11960 }
11961 _LT_EOF
11962   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11963   (eval $ac_link) 2>&5
11964   ac_status=$?
11965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11966   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11967     (./conftest; exit; ) >&5 2>/dev/null
11968     lt_status=$?
11969     case x$lt_status in
11970       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11971       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11972       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11973     esac
11974   else :
11975     # compilation failed
11976     lt_cv_dlopen_self_static=no
11977   fi
11978 fi
11979 rm -fr conftest*
11980
11981
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11984 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11985     fi
11986
11987     CPPFLAGS="$save_CPPFLAGS"
11988     LDFLAGS="$save_LDFLAGS"
11989     LIBS="$save_LIBS"
11990     ;;
11991   esac
11992
11993   case $lt_cv_dlopen_self in
11994   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11995   *) enable_dlopen_self=unknown ;;
11996   esac
11997
11998   case $lt_cv_dlopen_self_static in
11999   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12000   *) enable_dlopen_self_static=unknown ;;
12001   esac
12002 fi
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020 striplib=
12021 old_striplib=
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12023 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12024 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12025   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12026   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12028 $as_echo "yes" >&6; }
12029 else
12030 # FIXME - insert some real tests, host_os isn't really good enough
12031   case $host_os in
12032   darwin*)
12033     if test -n "$STRIP" ; then
12034       striplib="$STRIP -x"
12035       old_striplib="$STRIP -S"
12036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037 $as_echo "yes" >&6; }
12038     else
12039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041     fi
12042     ;;
12043   *)
12044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046     ;;
12047   esac
12048 fi
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061   # Report which library types will actually be built
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12063 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12065 $as_echo "$can_build_shared" >&6; }
12066
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12068 $as_echo_n "checking whether to build shared libraries... " >&6; }
12069   test "$can_build_shared" = "no" && enable_shared=no
12070
12071   # On AIX, shared libraries and static libraries use the same namespace, and
12072   # are all built from PIC.
12073   case $host_os in
12074   aix3*)
12075     test "$enable_shared" = yes && enable_static=no
12076     if test -n "$RANLIB"; then
12077       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12078       postinstall_cmds='$RANLIB $lib'
12079     fi
12080     ;;
12081
12082   aix[4-9]*)
12083     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12084       test "$enable_shared" = yes && enable_static=no
12085     fi
12086     ;;
12087   esac
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12089 $as_echo "$enable_shared" >&6; }
12090
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12092 $as_echo_n "checking whether to build static libraries... " >&6; }
12093   # Make sure either enable_shared or enable_static is yes.
12094   test "$enable_shared" = yes || enable_static=yes
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12096 $as_echo "$enable_static" >&6; }
12097
12098
12099
12100
12101 fi
12102 ac_ext=c
12103 ac_cpp='$CPP $CPPFLAGS'
12104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12107
12108 CC="$lt_save_CC"
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124         ac_config_commands="$ac_config_commands libtool"
12125
12126
12127
12128
12129 # Only expand once:
12130
12131
12132
12133
12134 # Test for 64-bit build.
12135 # The cast to long int works around a bug in the HP C Compiler
12136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12138 # This bug is HP SR number 8606223364.
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12140 $as_echo_n "checking size of size_t... " >&6; }
12141 if ${ac_cv_sizeof_size_t+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12145
12146 else
12147   if test "$ac_cv_type_size_t" = yes; then
12148      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12150 as_fn_error 77 "cannot compute sizeof (size_t)
12151 See \`config.log' for more details" "$LINENO" 5; }
12152    else
12153      ac_cv_sizeof_size_t=0
12154    fi
12155 fi
12156
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12159 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12160
12161
12162
12163 cat >>confdefs.h <<_ACEOF
12164 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12165 _ACEOF
12166
12167
12168
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12170 $as_echo_n "checking for C compiler vendor... " >&6; }
12171 if ${ax_cv_c_compiler_vendor+:} false; then :
12172   $as_echo_n "(cached) " >&6
12173 else
12174   # note: don't check for gcc first since some other compilers define __GNUC__
12175   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12176            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12177            pathscale: __PATHCC__,__PATHSCALE__
12178            clang:     __clang__
12179            gnu:       __GNUC__
12180            sun:       __SUNPRO_C,__SUNPRO_CC
12181            hp:        __HP_cc,__HP_aCC
12182            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12183            borland:   __BORLANDC__,__TURBOC__
12184            comeau:    __COMO__
12185            cray:      _CRAYC
12186            kai:       __KCC
12187            lcc:       __LCC__
12188            sgi:       __sgi,sgi
12189            microsoft: _MSC_VER
12190            metrowerks: __MWERKS__
12191            watcom:    __WATCOMC__
12192            portland:  __PGI
12193            unknown:   UNKNOWN"
12194   for ventest in $vendors; do
12195     case $ventest in
12196       *:) vendor=$ventest; continue ;;
12197       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12198     esac
12199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h.  */
12201
12202 int
12203 main ()
12204 {
12205
12206       #if !($vencpp)
12207         thisisanerror;
12208       #endif
12209
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_compile "$LINENO"; then :
12215   break
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218   done
12219   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12220
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12223 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12224
12225
12226
12227
12228
12229
12230 # Check whether --enable-portable-binary was given.
12231 if test "${enable_portable_binary+set}" = set; then :
12232   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12233 else
12234   acx_maxopt_portable=no
12235 fi
12236
12237
12238 # Try to determine "good" native compiler flags if none specified via CFLAGS
12239 if test "$ac_test_CFLAGS" != "set"; then
12240   CFLAGS=""
12241   case $ax_cv_c_compiler_vendor in
12242     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12243          if test "x$acx_maxopt_portable" = xno; then
12244            CFLAGS="$CFLAGS -arch host"
12245          fi;;
12246
12247     sun) CFLAGS="-native -fast -xO5 -dalign"
12248          if test "x$acx_maxopt_portable" = xyes; then
12249            CFLAGS="$CFLAGS -xarch=generic"
12250          fi;;
12251
12252     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12253          if test "x$acx_maxopt_portable" = xyes; then
12254            CFLAGS="$CFLAGS +DAportable"
12255          fi;;
12256
12257     ibm) if test "x$acx_maxopt_portable" = xno; then
12258            xlc_opt="-qarch=auto -qtune=auto"
12259          else
12260            xlc_opt="-qtune=auto"
12261          fi
12262          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12264 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12265 if eval \${$as_CACHEVAR+:} false; then :
12266   $as_echo_n "(cached) " >&6
12267 else
12268
12269   ax_check_save_flags=$CFLAGS
12270   CFLAGS="$CFLAGS  $xlc_opt"
12271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h.  */
12273
12274 int
12275 main ()
12276 {
12277
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 if ac_fn_c_try_compile "$LINENO"; then :
12283   eval "$as_CACHEVAR=yes"
12284 else
12285   eval "$as_CACHEVAR=no"
12286 fi
12287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288   CFLAGS=$ax_check_save_flags
12289 fi
12290 eval ac_res=\$$as_CACHEVAR
12291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12292 $as_echo "$ac_res" >&6; }
12293 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12294   CFLAGS="-O3 -qansialias -w $xlc_opt"
12295 else
12296   CFLAGS="-O3 -qansialias -w"
12297                 echo "******************************************************"
12298                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12299                 echo "*  recommended for best performance that you use:    *"
12300                 echo "*                                                    *"
12301                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12302                 echo "*                      ^^^        ^^^                *"
12303                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12304                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12305                 echo "*  and re-run configure.)  For more info, man cc.    *"
12306                 echo "******************************************************"
12307 fi
12308
12309          ;;
12310
12311     intel) CFLAGS="-O3 -ansi_alias"
12312         if test "x$acx_maxopt_portable" = xno; then
12313           icc_archflag=unknown
12314           icc_flags=""
12315           case $host_cpu in
12316             i686*|x86_64*)
12317               # icc accepts gcc assembly syntax, so these should work:
12318
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12326 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12327 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   if test "$cross_compiling" = yes; then :
12331   ax_cv_gcc_x86_cpuid_0=unknown
12332 else
12333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h.  */
12335 #include <stdio.h>
12336 int
12337 main ()
12338 {
12339
12340      int op = 0, eax, ebx, ecx, edx;
12341      FILE *f;
12342       __asm__("cpuid"
12343         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12344         : "a" (op));
12345      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12346      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12347      fclose(f);
12348      return 0;
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_run "$LINENO"; then :
12355   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12356 else
12357   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12358 fi
12359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12360   conftest.$ac_objext conftest.beam conftest.$ac_ext
12361 fi
12362
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12365 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12366 ac_ext=c
12367 ac_cpp='$CPP $CPPFLAGS'
12368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371
12372
12373
12374 ac_ext=c
12375 ac_cpp='$CPP $CPPFLAGS'
12376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12381 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12382 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   if test "$cross_compiling" = yes; then :
12386   ax_cv_gcc_x86_cpuid_1=unknown
12387 else
12388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h.  */
12390 #include <stdio.h>
12391 int
12392 main ()
12393 {
12394
12395      int op = 1, eax, ebx, ecx, edx;
12396      FILE *f;
12397       __asm__("cpuid"
12398         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12399         : "a" (op));
12400      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12401      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12402      fclose(f);
12403      return 0;
12404
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_c_try_run "$LINENO"; then :
12410   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12411 else
12412   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12413 fi
12414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12415   conftest.$ac_objext conftest.beam conftest.$ac_ext
12416 fi
12417
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12420 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12421 ac_ext=c
12422 ac_cpp='$CPP $CPPFLAGS'
12423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12426
12427
12428               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12429                 *:756e6547:*:*) # Intel
12430                   case $ax_cv_gcc_x86_cpuid_1 in
12431                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12432                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12433                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12434                   esac ;;
12435               esac ;;
12436           esac
12437           if test "x$icc_flags" != x; then
12438             for flag in $icc_flags; do
12439               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12441 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12442 if eval \${$as_CACHEVAR+:} false; then :
12443   $as_echo_n "(cached) " >&6
12444 else
12445
12446   ax_check_save_flags=$CFLAGS
12447   CFLAGS="$CFLAGS  $flag"
12448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h.  */
12450
12451 int
12452 main ()
12453 {
12454
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460   eval "$as_CACHEVAR=yes"
12461 else
12462   eval "$as_CACHEVAR=no"
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465   CFLAGS=$ax_check_save_flags
12466 fi
12467 eval ac_res=\$$as_CACHEVAR
12468                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12469 $as_echo "$ac_res" >&6; }
12470 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12471   icc_archflag=$flag; break
12472 else
12473   :
12474 fi
12475
12476             done
12477           fi
12478           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12479 $as_echo_n "checking for icc architecture flag... " >&6; }
12480           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12481 $as_echo "$icc_archflag" >&6; }
12482           if test "x$icc_archflag" != xunknown; then
12483             CFLAGS="$CFLAGS $icc_archflag"
12484           fi
12485         fi
12486         ;;
12487
12488     gnu)
12489      # default optimization flags for gcc on all systems
12490      CFLAGS="-O3 -fomit-frame-pointer"
12491
12492      # -malign-double for x86 systems
12493      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12494      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12495
12496      #  -fstrict-aliasing for gcc-2.95+
12497      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12498 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12499 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502
12503   ax_check_save_flags=$CFLAGS
12504   CFLAGS="$CFLAGS  -fstrict-aliasing"
12505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h.  */
12507
12508 int
12509 main ()
12510 {
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_compile "$LINENO"; then :
12517   ax_cv_check_cflags___fstrict_aliasing=yes
12518 else
12519   ax_cv_check_cflags___fstrict_aliasing=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522   CFLAGS=$ax_check_save_flags
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12525 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12526 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12527   CFLAGS="$CFLAGS -fstrict-aliasing"
12528 else
12529   :
12530 fi
12531
12532
12533      # note that we enable "unsafe" fp optimization with other compilers, too
12534      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12535 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12536 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539
12540   ax_check_save_flags=$CFLAGS
12541   CFLAGS="$CFLAGS  -ffast-math"
12542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h.  */
12544
12545 int
12546 main ()
12547 {
12548
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_compile "$LINENO"; then :
12554   ax_cv_check_cflags___ffast_math=yes
12555 else
12556   ax_cv_check_cflags___ffast_math=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559   CFLAGS=$ax_check_save_flags
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12562 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12563 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12564   CFLAGS="$CFLAGS -ffast-math"
12565 else
12566   :
12567 fi
12568
12569
12570
12571
12572
12573
12574 # Check whether --with-gcc-arch was given.
12575 if test "${with_gcc_arch+set}" = set; then :
12576   withval=$with_gcc_arch; ax_gcc_arch=$withval
12577 else
12578   ax_gcc_arch=yes
12579 fi
12580
12581
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12583 $as_echo_n "checking for gcc architecture flag... " >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12585 $as_echo "" >&6; }
12586 if ${ax_cv_gcc_archflag+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589
12590 ax_cv_gcc_archflag="unknown"
12591
12592 if test "$GCC" = yes; then
12593
12594 if test "x$ax_gcc_arch" = xyes; then
12595 ax_gcc_arch=""
12596 if test "$cross_compiling" = no; then
12597 case $host_cpu in
12598   i[3456]86*|x86_64*) # use cpuid codes
12599
12600 ac_ext=c
12601 ac_cpp='$CPP $CPPFLAGS'
12602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12605
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12607 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12608 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   if test "$cross_compiling" = yes; then :
12612   ax_cv_gcc_x86_cpuid_0=unknown
12613 else
12614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h.  */
12616 #include <stdio.h>
12617 int
12618 main ()
12619 {
12620
12621      int op = 0, eax, ebx, ecx, edx;
12622      FILE *f;
12623       __asm__("cpuid"
12624         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12625         : "a" (op));
12626      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12627      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12628      fclose(f);
12629      return 0;
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_run "$LINENO"; then :
12636   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12637 else
12638   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12639 fi
12640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12641   conftest.$ac_objext conftest.beam conftest.$ac_ext
12642 fi
12643
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12646 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12647 ac_ext=c
12648 ac_cpp='$CPP $CPPFLAGS'
12649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652
12653
12654
12655 ac_ext=c
12656 ac_cpp='$CPP $CPPFLAGS'
12657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12662 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12663 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12664   $as_echo_n "(cached) " >&6
12665 else
12666   if test "$cross_compiling" = yes; then :
12667   ax_cv_gcc_x86_cpuid_1=unknown
12668 else
12669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h.  */
12671 #include <stdio.h>
12672 int
12673 main ()
12674 {
12675
12676      int op = 1, eax, ebx, ecx, edx;
12677      FILE *f;
12678       __asm__("cpuid"
12679         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12680         : "a" (op));
12681      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12682      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12683      fclose(f);
12684      return 0;
12685
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_run "$LINENO"; then :
12691   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12692 else
12693   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12694 fi
12695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12696   conftest.$ac_objext conftest.beam conftest.$ac_ext
12697 fi
12698
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12701 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12702 ac_ext=c
12703 ac_cpp='$CPP $CPPFLAGS'
12704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12707
12708
12709      case $ax_cv_gcc_x86_cpuid_0 in
12710        *:756e6547:*:*) # Intel
12711           case $ax_cv_gcc_x86_cpuid_1 in
12712             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12713             *5??:*:*:*) ax_gcc_arch=pentium ;;
12714             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12715             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12716             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12717             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12718             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12719             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12720             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12721             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12722             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12723             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12724             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12725             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12726             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12727                 case $host_cpu in
12728                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12729                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12730                 esac ;;
12731             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12732           esac ;;
12733        *:68747541:*:*) # AMD
12734           case $ax_cv_gcc_x86_cpuid_1 in
12735             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12736             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12737             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12738             *60?:*:*:*) ax_gcc_arch=k7 ;;
12739             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12740             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12741             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12742             *6[68a]?:*:*:*)
12743
12744 ac_ext=c
12745 ac_cpp='$CPP $CPPFLAGS'
12746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12751 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12752 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12753   $as_echo_n "(cached) " >&6
12754 else
12755   if test "$cross_compiling" = yes; then :
12756   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12757 else
12758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h.  */
12760 #include <stdio.h>
12761 int
12762 main ()
12763 {
12764
12765      int op = 0x80000006, eax, ebx, ecx, edx;
12766      FILE *f;
12767       __asm__("cpuid"
12768         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12769         : "a" (op));
12770      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12771      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12772      fclose(f);
12773      return 0;
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_run "$LINENO"; then :
12780   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12781 else
12782   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12783 fi
12784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12785   conftest.$ac_objext conftest.beam conftest.$ac_ext
12786 fi
12787
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12790 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12791 ac_ext=c
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797  # L2 cache size
12798                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12799                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12800                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12801                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12802                esac ;;
12803             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12804             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12805             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12806             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12807             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12808             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12809             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12810           esac ;;
12811         *:746e6543:*:*) # IDT
12812            case $ax_cv_gcc_x86_cpuid_1 in
12813              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12814              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12815              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12816              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12817            esac ;;
12818      esac
12819      if test x"$ax_gcc_arch" = x; then # fallback
12820         case $host_cpu in
12821           i586*) ax_gcc_arch=pentium ;;
12822           i686*) ax_gcc_arch=pentiumpro ;;
12823         esac
12824      fi
12825      ;;
12826
12827   sparc*)
12828      # Extract the first word of "prtdiag", so it can be a program name with args.
12829 set dummy prtdiag; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_path_PRTDIAG+:} false; then :
12833   $as_echo_n "(cached) " >&6
12834 else
12835   case $PRTDIAG in
12836   [\\/]* | ?:[\\/]*)
12837   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12838   ;;
12839   *)
12840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12842 for as_dir in $as_dummy
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846     for ac_exec_ext in '' $ac_executable_extensions; do
12847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12848     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850     break 2
12851   fi
12852 done
12853   done
12854 IFS=$as_save_IFS
12855
12856   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12857   ;;
12858 esac
12859 fi
12860 PRTDIAG=$ac_cv_path_PRTDIAG
12861 if test -n "$PRTDIAG"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12863 $as_echo "$PRTDIAG" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870      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`
12871      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12872      case $cputype in
12873          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12874          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12875          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12876          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12877          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12878          *cypress*) ax_gcc_arch=cypress ;;
12879      esac ;;
12880
12881   alphaev5) ax_gcc_arch=ev5 ;;
12882   alphaev56) ax_gcc_arch=ev56 ;;
12883   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12884   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12885   alphaev6) ax_gcc_arch=ev6 ;;
12886   alphaev67) ax_gcc_arch=ev67 ;;
12887   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12888   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12889   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12890   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12891
12892   powerpc*)
12893      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`
12894      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12895      case $cputype in
12896        *750*) ax_gcc_arch="750 G3" ;;
12897        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12898        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12899        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12900        *970*) ax_gcc_arch="970 G5 power4";;
12901        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12902        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12903        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12904        *) ax_gcc_arch=$cputype ;;
12905      esac
12906      ax_gcc_arch="$ax_gcc_arch powerpc"
12907      ;;
12908 esac
12909 fi # not cross-compiling
12910 fi # guess arch
12911
12912 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12913 for arch in $ax_gcc_arch; do
12914   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12915     flags="-mtune=$arch"
12916     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12917     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12918     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12919   else
12920     flags="-march=$arch -mcpu=$arch -m$arch"
12921   fi
12922   for flag in $flags; do
12923     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12925 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12926 if eval \${$as_CACHEVAR+:} false; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929
12930   ax_check_save_flags=$CFLAGS
12931   CFLAGS="$CFLAGS  $flag"
12932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h.  */
12934
12935 int
12936 main ()
12937 {
12938
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 if ac_fn_c_try_compile "$LINENO"; then :
12944   eval "$as_CACHEVAR=yes"
12945 else
12946   eval "$as_CACHEVAR=no"
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949   CFLAGS=$ax_check_save_flags
12950 fi
12951 eval ac_res=\$$as_CACHEVAR
12952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12953 $as_echo "$ac_res" >&6; }
12954 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12955   ax_cv_gcc_archflag=$flag; break
12956 else
12957   :
12958 fi
12959
12960   done
12961   test "x$ax_cv_gcc_archflag" = xunknown || break
12962 done
12963 fi
12964
12965 fi # $GCC=yes
12966
12967 fi
12968
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12970 $as_echo_n "checking for gcc architecture flag... " >&6; }
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12972 $as_echo "$ax_cv_gcc_archflag" >&6; }
12973 if test "x$ax_cv_gcc_archflag" = xunknown; then
12974   :
12975 else
12976   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12977 fi
12978
12979      ;;
12980   esac
12981
12982   if test -z "$CFLAGS"; then
12983         echo ""
12984         echo "********************************************************"
12985         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12986         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12987         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12988         echo "********************************************************"
12989         echo ""
12990         CFLAGS="-O3"
12991   fi
12992
12993   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12995 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12996 if eval \${$as_CACHEVAR+:} false; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999
13000   ax_check_save_flags=$CFLAGS
13001   CFLAGS="$CFLAGS  $CFLAGS"
13002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h.  */
13004
13005 int
13006 main ()
13007 {
13008
13009   ;
13010   return 0;
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_compile "$LINENO"; then :
13014   eval "$as_CACHEVAR=yes"
13015 else
13016   eval "$as_CACHEVAR=no"
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019   CFLAGS=$ax_check_save_flags
13020 fi
13021 eval ac_res=\$$as_CACHEVAR
13022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13023 $as_echo "$ac_res" >&6; }
13024 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13025   :
13026 else
13027
13028         echo ""
13029         echo "********************************************************"
13030         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
13031         echo "* your compiler.                                       *"
13032         echo "* Use ./configure CFLAGS=... to specify your own flags *"
13033         echo "********************************************************"
13034         echo ""
13035         CFLAGS=""
13036
13037 fi
13038
13039
13040 fi
13041
13042 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
13043 # compiler.
13044 if test "$ax_cv_c_compiler_vendor" != "sun"; then
13045   if ${CFLAGS+:} false; then :
13046   case " $CFLAGS " in
13047     *"  "*)
13048       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13049   (: CFLAGS already contains ) 2>&5
13050   ac_status=$?
13051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052   test $ac_status = 0; }
13053       ;;
13054     *)
13055       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13056   (: CFLAGS="$CFLAGS ") 2>&5
13057   ac_status=$?
13058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059   test $ac_status = 0; }
13060       CFLAGS="$CFLAGS "
13061       ;;
13062    esac
13063 else
13064   CFLAGS=""
13065 fi
13066
13067 ac_ext=c
13068 ac_cpp='$CPP $CPPFLAGS'
13069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13072
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13074 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13075 if ${ac_cv_cflags_warn_all+:} false; then :
13076   $as_echo_n "(cached) " >&6
13077 else
13078   ac_cv_cflags_warn_all="no, unknown"
13079 ac_save_CFLAGS="$CFLAGS"
13080 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"    #
13081 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h.  */
13084
13085 int
13086 main ()
13087 {
13088
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13097 done
13098 CFLAGS="$ac_save_CFLAGS"
13099
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13102 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13103
13104 case ".$ac_cv_cflags_warn_all" in
13105      .ok|.ok,*)  ;;
13106    .|.no|.no,*)  ;;
13107    *) if ${CFLAGS+:} false; then :
13108   case " $CFLAGS " in
13109     *" $ac_cv_cflags_warn_all "*)
13110       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13111   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13112   ac_status=$?
13113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114   test $ac_status = 0; }
13115       ;;
13116     *)
13117       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13118   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13119   ac_status=$?
13120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13121   test $ac_status = 0; }
13122       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13123       ;;
13124    esac
13125 else
13126   CFLAGS="$ac_cv_cflags_warn_all"
13127 fi
13128  ;;
13129 esac
13130
13131 ac_ext=c
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136
13137
13138 fi
13139
13140 if test "x$GCC" = "xyes"; then
13141   CFLAGS="$CFLAGS -fexceptions"
13142   touch local.exp
13143 else
13144   cat > local.exp <<EOF
13145 set CC_FOR_TARGET "$CC"
13146 EOF
13147 fi
13148
13149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13151 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13152     # Check whether --enable-maintainer-mode was given.
13153 if test "${enable_maintainer_mode+set}" = set; then :
13154   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13155 else
13156   USE_MAINTAINER_MODE=no
13157 fi
13158
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13160 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13161    if test $USE_MAINTAINER_MODE = yes; then
13162   MAINTAINER_MODE_TRUE=
13163   MAINTAINER_MODE_FALSE='#'
13164 else
13165   MAINTAINER_MODE_TRUE='#'
13166   MAINTAINER_MODE_FALSE=
13167 fi
13168
13169   MAINT=$MAINTAINER_MODE_TRUE
13170
13171
13172
13173 for ac_header in sys/mman.h
13174 do :
13175   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13176 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13177   cat >>confdefs.h <<_ACEOF
13178 #define HAVE_SYS_MMAN_H 1
13179 _ACEOF
13180
13181 fi
13182
13183 done
13184
13185 for ac_func in mmap
13186 do :
13187   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13188 if test "x$ac_cv_func_mmap" = xyes; then :
13189   cat >>confdefs.h <<_ACEOF
13190 #define HAVE_MMAP 1
13191 _ACEOF
13192
13193 fi
13194 done
13195
13196
13197 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13198 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13199   libffi_header_sys_mman_h=yes
13200 else
13201   libffi_header_sys_mman_h=no
13202 fi
13203
13204
13205 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13206 if test "x$ac_cv_func_mmap" = xyes; then :
13207   libffi_func_mmap=yes
13208 else
13209   libffi_func_mmap=no
13210 fi
13211
13212 if test "$libffi_header_sys_mman_h" != yes \
13213  || test "$libffi_func_mmap" != yes; then
13214    ac_cv_func_mmap_file=no
13215    ac_cv_func_mmap_dev_zero=no
13216    ac_cv_func_mmap_anon=no
13217 else
13218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13219 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13220 if ${ac_cv_func_mmap_file+:} false; then :
13221   $as_echo_n "(cached) " >&6
13222 else
13223   # Add a system to this blacklist if
13224    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13225    # memory area containing the same data that you'd get if you applied
13226    # read() to the same fd.  The only system known to have a problem here
13227    # is VMS, where text files have record structure.
13228    case "$host_os" in
13229      vms* | ultrix*)
13230         ac_cv_func_mmap_file=no ;;
13231      *)
13232         ac_cv_func_mmap_file=yes;;
13233    esac
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13236 $as_echo "$ac_cv_func_mmap_file" >&6; }
13237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13238 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13239 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   # Add a system to this blacklist if it has mmap() but /dev/zero
13243    # does not exist, or if mmapping /dev/zero does not give anonymous
13244    # zeroed pages with both the following properties:
13245    # 1. If you map N consecutive pages in with one call, and then
13246    #    unmap any subset of those pages, the pages that were not
13247    #    explicitly unmapped remain accessible.
13248    # 2. If you map two adjacent blocks of memory and then unmap them
13249    #    both at once, they must both go away.
13250    # Systems known to be in this category are Windows (all variants),
13251    # VMS, and Darwin.
13252    case "$host_os" in
13253      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13254         ac_cv_func_mmap_dev_zero=no ;;
13255      *)
13256         ac_cv_func_mmap_dev_zero=yes;;
13257    esac
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13260 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13261
13262    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13264 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13265 if ${ac_cv_decl_map_anon+:} false; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h.  */
13270 #include <sys/types.h>
13271 #include <sys/mman.h>
13272 #include <unistd.h>
13273
13274 #ifndef MAP_ANONYMOUS
13275 #define MAP_ANONYMOUS MAP_ANON
13276 #endif
13277
13278 int
13279 main ()
13280 {
13281 int n = MAP_ANONYMOUS;
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287   ac_cv_decl_map_anon=yes
13288 else
13289   ac_cv_decl_map_anon=no
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13294 $as_echo "$ac_cv_decl_map_anon" >&6; }
13295
13296    if test $ac_cv_decl_map_anon = no; then
13297      ac_cv_func_mmap_anon=no
13298    else
13299      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13300 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13301 if ${ac_cv_func_mmap_anon+:} false; then :
13302   $as_echo_n "(cached) " >&6
13303 else
13304   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13305    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13306    # doesn't give anonymous zeroed pages with the same properties listed
13307    # above for use of /dev/zero.
13308    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13309    case "$host_os" in
13310      vms* | cygwin* | pe | mingw* | sco* | udk* )
13311         ac_cv_func_mmap_anon=no ;;
13312      *)
13313         ac_cv_func_mmap_anon=yes;;
13314    esac
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13317 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13318    fi
13319 fi
13320
13321 if test $ac_cv_func_mmap_file = yes; then
13322
13323 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13324
13325 fi
13326 if test $ac_cv_func_mmap_dev_zero = yes; then
13327
13328 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13329
13330 fi
13331 if test $ac_cv_func_mmap_anon = yes; then
13332
13333 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13334
13335 fi
13336
13337
13338  if test -d $srcdir/testsuite; then
13339   TESTSUBDIR_TRUE=
13340   TESTSUBDIR_FALSE='#'
13341 else
13342   TESTSUBDIR_TRUE='#'
13343   TESTSUBDIR_FALSE=
13344 fi
13345
13346
13347 TARGETDIR="unknown"
13348 case "$host" in
13349   aarch64*-*-*)
13350         TARGET=AARCH64; TARGETDIR=aarch64
13351         ;;
13352
13353   alpha*-*-*)
13354         TARGET=ALPHA; TARGETDIR=alpha;
13355         # Support 128-bit long double, changeable via command-line switch.
13356         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13357         ;;
13358
13359   arc*-*-*)
13360         TARGET=ARC; TARGETDIR=arc
13361         ;;
13362
13363   arm*-*-*)
13364         TARGET=ARM; TARGETDIR=arm
13365         ;;
13366
13367   amd64-*-freebsd* | amd64-*-openbsd*)
13368         TARGET=X86_64; TARGETDIR=x86
13369         ;;
13370
13371   amd64-*-freebsd*)
13372         TARGET=X86_64; TARGETDIR=x86
13373         ;;
13374
13375   amd64-*-freebsd*)
13376         TARGET=X86_64; TARGETDIR=x86
13377         ;;
13378
13379   avr32*-*-*)
13380         TARGET=AVR32; TARGETDIR=avr32
13381         ;;
13382
13383   bfin*)
13384         TARGET=BFIN; TARGETDIR=bfin
13385         ;;
13386
13387   cris-*-*)
13388         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13389         ;;
13390
13391   frv-*-*)
13392         TARGET=FRV; TARGETDIR=frv
13393         ;;
13394
13395   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13396         TARGET=PA_LINUX; TARGETDIR=pa
13397         ;;
13398   hppa*64-*-hpux*)
13399         TARGET=PA64_HPUX; TARGETDIR=pa
13400         ;;
13401   hppa*-*-hpux*)
13402         TARGET=PA_HPUX; TARGETDIR=pa
13403         ;;
13404
13405   i?86-*-freebsd* | i?86-*-openbsd*)
13406         TARGET=X86_FREEBSD; TARGETDIR=x86
13407         ;;
13408   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13409         TARGET=X86_WIN32; TARGETDIR=x86
13410         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13411         # We must also check with_cross_host to decide if this is a native
13412         # or cross-build and select where to install dlls appropriately.
13413         if test -n "$with_cross_host" &&
13414            test x"$with_cross_host" != x"no"; then
13415           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13416         else
13417           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13418         fi
13419         ;;
13420   i?86-*-darwin*)
13421         TARGET=X86_DARWIN; TARGETDIR=x86
13422         ;;
13423   i?86-*-solaris2.1[0-9]*)
13424         TARGETDIR=x86
13425         if test $ac_cv_sizeof_size_t = 4; then
13426           TARGET=X86;
13427         else
13428           TARGET=X86_64;
13429         fi
13430         ;;
13431
13432   x86_64-*-darwin*)
13433         TARGET=X86_DARWIN; TARGETDIR=x86
13434         ;;
13435
13436   x86_64-*-cygwin* | x86_64-*-mingw*)
13437         TARGET=X86_WIN64; TARGETDIR=x86
13438         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13439         # We must also check with_cross_host to decide if this is a native
13440         # or cross-build and select where to install dlls appropriately.
13441         if test -n "$with_cross_host" &&
13442            test x"$with_cross_host" != x"no"; then
13443           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13444         else
13445           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13446         fi
13447         ;;
13448
13449   i?86-*-* | x86_64-*-*)
13450         TARGETDIR=x86
13451         if test $ac_cv_sizeof_size_t = 4; then
13452           case "$host" in
13453             *-gnux32)
13454               TARGET=X86_64
13455               ;;
13456             *)
13457               TARGET=X86
13458               ;;
13459           esac
13460         else
13461           TARGET=X86_64;
13462         fi
13463         ;;
13464
13465   ia64*-*-*)
13466         TARGET=IA64; TARGETDIR=ia64
13467         ;;
13468
13469   m32r*-*-*)
13470         TARGET=M32R; TARGETDIR=m32r
13471         ;;
13472
13473   m68k-*-*)
13474         TARGET=M68K; TARGETDIR=m68k
13475         ;;
13476
13477   m88k-*-*)
13478         TARGET=M88K; TARGETDIR=m88k
13479         ;;
13480
13481   microblaze*-*-*)
13482         TARGET=MICROBLAZE; TARGETDIR=microblaze
13483         ;;
13484
13485   moxie-*-*)
13486         TARGET=MOXIE; TARGETDIR=moxie
13487         ;;
13488
13489   metag-*-*)
13490         TARGET=METAG; TARGETDIR=metag
13491         ;;
13492
13493   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13494         TARGET=MIPS; TARGETDIR=mips
13495         ;;
13496   mips*-*-linux* | mips*-*-openbsd*)
13497         # Support 128-bit long double for NewABI.
13498         HAVE_LONG_DOUBLE='defined(__mips64)'
13499         TARGET=MIPS; TARGETDIR=mips
13500         ;;
13501
13502   powerpc*-*-linux* | powerpc-*-sysv*)
13503         TARGET=POWERPC; TARGETDIR=powerpc
13504         ;;
13505   powerpc-*-amigaos*)
13506         TARGET=POWERPC; TARGETDIR=powerpc
13507         ;;
13508   powerpc-*-beos*)
13509         TARGET=POWERPC; TARGETDIR=powerpc
13510         ;;
13511   powerpc-*-darwin* | powerpc64-*-darwin*)
13512         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13513         ;;
13514   powerpc-*-aix* | rs6000-*-aix*)
13515         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13516         ;;
13517   powerpc-*-freebsd* | powerpc-*-openbsd*)
13518         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13519         ;;
13520   powerpc64-*-freebsd*)
13521         TARGET=POWERPC; TARGETDIR=powerpc
13522         ;;
13523   powerpc*-*-rtems*)
13524         TARGET=POWERPC; TARGETDIR=powerpc
13525         ;;
13526
13527   s390-*-* | s390x-*-*)
13528         TARGET=S390; TARGETDIR=s390
13529         ;;
13530
13531   sh-*-* | sh[34]*-*-*)
13532         TARGET=SH; TARGETDIR=sh
13533         ;;
13534   sh64-*-* | sh5*-*-*)
13535         TARGET=SH64; TARGETDIR=sh64
13536         ;;
13537
13538   sparc*-*-*)
13539         TARGET=SPARC; TARGETDIR=sparc
13540         ;;
13541
13542   tile*-*)
13543         TARGET=TILE; TARGETDIR=tile
13544         ;;
13545
13546   vax-*-*)
13547         TARGET=VAX; TARGETDIR=vax
13548         ;;
13549
13550   xtensa*-*)
13551         TARGET=XTENSA; TARGETDIR=xtensa
13552         ;;
13553
13554 esac
13555
13556
13557
13558
13559 if test $TARGETDIR = unknown; then
13560   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13561 fi
13562
13563  if test x$TARGET = xMIPS; then
13564   MIPS_TRUE=
13565   MIPS_FALSE='#'
13566 else
13567   MIPS_TRUE='#'
13568   MIPS_FALSE=
13569 fi
13570
13571  if test x$TARGET = xBFIN; then
13572   BFIN_TRUE=
13573   BFIN_FALSE='#'
13574 else
13575   BFIN_TRUE='#'
13576   BFIN_FALSE=
13577 fi
13578
13579  if test x$TARGET = xSPARC; then
13580   SPARC_TRUE=
13581   SPARC_FALSE='#'
13582 else
13583   SPARC_TRUE='#'
13584   SPARC_FALSE=
13585 fi
13586
13587  if test x$TARGET = xX86; then
13588   X86_TRUE=
13589   X86_FALSE='#'
13590 else
13591   X86_TRUE='#'
13592   X86_FALSE=
13593 fi
13594
13595  if test x$TARGET = xX86_FREEBSD; then
13596   X86_FREEBSD_TRUE=
13597   X86_FREEBSD_FALSE='#'
13598 else
13599   X86_FREEBSD_TRUE='#'
13600   X86_FREEBSD_FALSE=
13601 fi
13602
13603  if test x$TARGET = xX86_WIN32; then
13604   X86_WIN32_TRUE=
13605   X86_WIN32_FALSE='#'
13606 else
13607   X86_WIN32_TRUE='#'
13608   X86_WIN32_FALSE=
13609 fi
13610
13611  if test x$TARGET = xX86_WIN64; then
13612   X86_WIN64_TRUE=
13613   X86_WIN64_FALSE='#'
13614 else
13615   X86_WIN64_TRUE='#'
13616   X86_WIN64_FALSE=
13617 fi
13618
13619  if test x$TARGET = xX86_DARWIN; then
13620   X86_DARWIN_TRUE=
13621   X86_DARWIN_FALSE='#'
13622 else
13623   X86_DARWIN_TRUE='#'
13624   X86_DARWIN_FALSE=
13625 fi
13626
13627  if test x$TARGET = xALPHA; then
13628   ALPHA_TRUE=
13629   ALPHA_FALSE='#'
13630 else
13631   ALPHA_TRUE='#'
13632   ALPHA_FALSE=
13633 fi
13634
13635  if test x$TARGET = xIA64; then
13636   IA64_TRUE=
13637   IA64_FALSE='#'
13638 else
13639   IA64_TRUE='#'
13640   IA64_FALSE=
13641 fi
13642
13643  if test x$TARGET = xM32R; then
13644   M32R_TRUE=
13645   M32R_FALSE='#'
13646 else
13647   M32R_TRUE='#'
13648   M32R_FALSE=
13649 fi
13650
13651  if test x$TARGET = xM68K; then
13652   M68K_TRUE=
13653   M68K_FALSE='#'
13654 else
13655   M68K_TRUE='#'
13656   M68K_FALSE=
13657 fi
13658
13659  if test x$TARGET = xM88K; then
13660   M88K_TRUE=
13661   M88K_FALSE='#'
13662 else
13663   M88K_TRUE='#'
13664   M88K_FALSE=
13665 fi
13666
13667  if test x$TARGET = xMICROBLAZE; then
13668   MICROBLAZE_TRUE=
13669   MICROBLAZE_FALSE='#'
13670 else
13671   MICROBLAZE_TRUE='#'
13672   MICROBLAZE_FALSE=
13673 fi
13674
13675  if test x$TARGET = xMETAG; then
13676   METAG_TRUE=
13677   METAG_FALSE='#'
13678 else
13679   METAG_TRUE='#'
13680   METAG_FALSE=
13681 fi
13682
13683  if test x$TARGET = xMOXIE; then
13684   MOXIE_TRUE=
13685   MOXIE_FALSE='#'
13686 else
13687   MOXIE_TRUE='#'
13688   MOXIE_FALSE=
13689 fi
13690
13691  if test x$TARGET = xPOWERPC; then
13692   POWERPC_TRUE=
13693   POWERPC_FALSE='#'
13694 else
13695   POWERPC_TRUE='#'
13696   POWERPC_FALSE=
13697 fi
13698
13699  if test x$TARGET = xPOWERPC_AIX; then
13700   POWERPC_AIX_TRUE=
13701   POWERPC_AIX_FALSE='#'
13702 else
13703   POWERPC_AIX_TRUE='#'
13704   POWERPC_AIX_FALSE=
13705 fi
13706
13707  if test x$TARGET = xPOWERPC_DARWIN; then
13708   POWERPC_DARWIN_TRUE=
13709   POWERPC_DARWIN_FALSE='#'
13710 else
13711   POWERPC_DARWIN_TRUE='#'
13712   POWERPC_DARWIN_FALSE=
13713 fi
13714
13715  if test x$TARGET = xPOWERPC_FREEBSD; then
13716   POWERPC_FREEBSD_TRUE=
13717   POWERPC_FREEBSD_FALSE='#'
13718 else
13719   POWERPC_FREEBSD_TRUE='#'
13720   POWERPC_FREEBSD_FALSE=
13721 fi
13722
13723  if test x$TARGET = xAARCH64; then
13724   AARCH64_TRUE=
13725   AARCH64_FALSE='#'
13726 else
13727   AARCH64_TRUE='#'
13728   AARCH64_FALSE=
13729 fi
13730
13731  if test x$TARGET = xARC; then
13732   ARC_TRUE=
13733   ARC_FALSE='#'
13734 else
13735   ARC_TRUE='#'
13736   ARC_FALSE=
13737 fi
13738
13739  if test x$TARGET = xARM; then
13740   ARM_TRUE=
13741   ARM_FALSE='#'
13742 else
13743   ARM_TRUE='#'
13744   ARM_FALSE=
13745 fi
13746
13747  if test x$TARGET = xAVR32; then
13748   AVR32_TRUE=
13749   AVR32_FALSE='#'
13750 else
13751   AVR32_TRUE='#'
13752   AVR32_FALSE=
13753 fi
13754
13755  if test x$TARGET = xLIBFFI_CRIS; then
13756   LIBFFI_CRIS_TRUE=
13757   LIBFFI_CRIS_FALSE='#'
13758 else
13759   LIBFFI_CRIS_TRUE='#'
13760   LIBFFI_CRIS_FALSE=
13761 fi
13762
13763  if test x$TARGET = xFRV; then
13764   FRV_TRUE=
13765   FRV_FALSE='#'
13766 else
13767   FRV_TRUE='#'
13768   FRV_FALSE=
13769 fi
13770
13771  if test x$TARGET = xS390; then
13772   S390_TRUE=
13773   S390_FALSE='#'
13774 else
13775   S390_TRUE='#'
13776   S390_FALSE=
13777 fi
13778
13779  if test x$TARGET = xX86_64; then
13780   X86_64_TRUE=
13781   X86_64_FALSE='#'
13782 else
13783   X86_64_TRUE='#'
13784   X86_64_FALSE=
13785 fi
13786
13787  if test x$TARGET = xSH; then
13788   SH_TRUE=
13789   SH_FALSE='#'
13790 else
13791   SH_TRUE='#'
13792   SH_FALSE=
13793 fi
13794
13795  if test x$TARGET = xSH64; then
13796   SH64_TRUE=
13797   SH64_FALSE='#'
13798 else
13799   SH64_TRUE='#'
13800   SH64_FALSE=
13801 fi
13802
13803  if test x$TARGET = xPA_LINUX; then
13804   PA_LINUX_TRUE=
13805   PA_LINUX_FALSE='#'
13806 else
13807   PA_LINUX_TRUE='#'
13808   PA_LINUX_FALSE=
13809 fi
13810
13811  if test x$TARGET = xPA_HPUX; then
13812   PA_HPUX_TRUE=
13813   PA_HPUX_FALSE='#'
13814 else
13815   PA_HPUX_TRUE='#'
13816   PA_HPUX_FALSE=
13817 fi
13818
13819  if test x$TARGET = xPA64_HPUX; then
13820   PA64_HPUX_TRUE=
13821   PA64_HPUX_FALSE='#'
13822 else
13823   PA64_HPUX_TRUE='#'
13824   PA64_HPUX_FALSE=
13825 fi
13826
13827  if test x$TARGET = xTILE; then
13828   TILE_TRUE=
13829   TILE_FALSE='#'
13830 else
13831   TILE_TRUE='#'
13832   TILE_FALSE=
13833 fi
13834
13835  if test x$TARGET = xVAX; then
13836   VAX_TRUE=
13837   VAX_FALSE='#'
13838 else
13839   VAX_TRUE='#'
13840   VAX_FALSE=
13841 fi
13842
13843  if test x$TARGET = xXTENSA; then
13844   XTENSA_TRUE=
13845   XTENSA_FALSE='#'
13846 else
13847   XTENSA_TRUE='#'
13848   XTENSA_FALSE=
13849 fi
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13853 $as_echo_n "checking for ANSI C header files... " >&6; }
13854 if ${ac_cv_header_stdc+:} false; then :
13855   $as_echo_n "(cached) " >&6
13856 else
13857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h.  */
13859 #include <stdlib.h>
13860 #include <stdarg.h>
13861 #include <string.h>
13862 #include <float.h>
13863
13864 int
13865 main ()
13866 {
13867
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_c_try_compile "$LINENO"; then :
13873   ac_cv_header_stdc=yes
13874 else
13875   ac_cv_header_stdc=no
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
13879 if test $ac_cv_header_stdc = yes; then
13880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h.  */
13883 #include <string.h>
13884
13885 _ACEOF
13886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13887   $EGREP "memchr" >/dev/null 2>&1; then :
13888
13889 else
13890   ac_cv_header_stdc=no
13891 fi
13892 rm -f conftest*
13893
13894 fi
13895
13896 if test $ac_cv_header_stdc = yes; then
13897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h.  */
13900 #include <stdlib.h>
13901
13902 _ACEOF
13903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13904   $EGREP "free" >/dev/null 2>&1; then :
13905
13906 else
13907   ac_cv_header_stdc=no
13908 fi
13909 rm -f conftest*
13910
13911 fi
13912
13913 if test $ac_cv_header_stdc = yes; then
13914   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13915   if test "$cross_compiling" = yes; then :
13916   :
13917 else
13918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920 #include <ctype.h>
13921 #include <stdlib.h>
13922 #if ((' ' & 0x0FF) == 0x020)
13923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13925 #else
13926 # define ISLOWER(c) \
13927                    (('a' <= (c) && (c) <= 'i') \
13928                      || ('j' <= (c) && (c) <= 'r') \
13929                      || ('s' <= (c) && (c) <= 'z'))
13930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13931 #endif
13932
13933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13934 int
13935 main ()
13936 {
13937   int i;
13938   for (i = 0; i < 256; i++)
13939     if (XOR (islower (i), ISLOWER (i))
13940         || toupper (i) != TOUPPER (i))
13941       return 2;
13942   return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_run "$LINENO"; then :
13946
13947 else
13948   ac_cv_header_stdc=no
13949 fi
13950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13951   conftest.$ac_objext conftest.beam conftest.$ac_ext
13952 fi
13953
13954 fi
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13957 $as_echo "$ac_cv_header_stdc" >&6; }
13958 if test $ac_cv_header_stdc = yes; then
13959
13960 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13961
13962 fi
13963
13964 for ac_func in memcpy
13965 do :
13966   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13967 if test "x$ac_cv_func_memcpy" = xyes; then :
13968   cat >>confdefs.h <<_ACEOF
13969 #define HAVE_MEMCPY 1
13970 _ACEOF
13971
13972 fi
13973 done
13974
13975 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13976 if test "x$ac_cv_type_size_t" = xyes; then :
13977
13978 else
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define size_t unsigned int
13982 _ACEOF
13983
13984 fi
13985
13986 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13987 # for constant arguments.  Useless!
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13989 $as_echo_n "checking for working alloca.h... " >&6; }
13990 if ${ac_cv_working_alloca_h+:} false; then :
13991   $as_echo_n "(cached) " >&6
13992 else
13993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h.  */
13995 #include <alloca.h>
13996 int
13997 main ()
13998 {
13999 char *p = (char *) alloca (2 * sizeof (int));
14000                           if (p) return 0;
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006   ac_cv_working_alloca_h=yes
14007 else
14008   ac_cv_working_alloca_h=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext \
14011     conftest$ac_exeext conftest.$ac_ext
14012 fi
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14014 $as_echo "$ac_cv_working_alloca_h" >&6; }
14015 if test $ac_cv_working_alloca_h = yes; then
14016
14017 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14018
14019 fi
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14022 $as_echo_n "checking for alloca... " >&6; }
14023 if ${ac_cv_func_alloca_works+:} false; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h.  */
14028 #ifdef __GNUC__
14029 # define alloca __builtin_alloca
14030 #else
14031 # ifdef _MSC_VER
14032 #  include <malloc.h>
14033 #  define alloca _alloca
14034 # else
14035 #  ifdef HAVE_ALLOCA_H
14036 #   include <alloca.h>
14037 #  else
14038 #   ifdef _AIX
14039  #pragma alloca
14040 #   else
14041 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14042 void *alloca (size_t);
14043 #    endif
14044 #   endif
14045 #  endif
14046 # endif
14047 #endif
14048
14049 int
14050 main ()
14051 {
14052 char *p = (char *) alloca (1);
14053                                     if (p) return 0;
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_link "$LINENO"; then :
14059   ac_cv_func_alloca_works=yes
14060 else
14061   ac_cv_func_alloca_works=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext \
14064     conftest$ac_exeext conftest.$ac_ext
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14067 $as_echo "$ac_cv_func_alloca_works" >&6; }
14068
14069 if test $ac_cv_func_alloca_works = yes; then
14070
14071 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14072
14073 else
14074   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14075 # that cause trouble.  Some versions do not even contain alloca or
14076 # contain a buggy version.  If you still want to use their alloca,
14077 # use ar to extract alloca.o from them instead of compiling alloca.c.
14078
14079 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14080
14081 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14082
14083
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14085 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14086 if ${ac_cv_os_cray+:} false; then :
14087   $as_echo_n "(cached) " >&6
14088 else
14089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h.  */
14091 #if defined CRAY && ! defined CRAY2
14092 webecray
14093 #else
14094 wenotbecray
14095 #endif
14096
14097 _ACEOF
14098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14099   $EGREP "webecray" >/dev/null 2>&1; then :
14100   ac_cv_os_cray=yes
14101 else
14102   ac_cv_os_cray=no
14103 fi
14104 rm -f conftest*
14105
14106 fi
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14108 $as_echo "$ac_cv_os_cray" >&6; }
14109 if test $ac_cv_os_cray = yes; then
14110   for ac_func in _getb67 GETB67 getb67; do
14111     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14114
14115 cat >>confdefs.h <<_ACEOF
14116 #define CRAY_STACKSEG_END $ac_func
14117 _ACEOF
14118
14119     break
14120 fi
14121
14122   done
14123 fi
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14126 $as_echo_n "checking stack direction for C alloca... " >&6; }
14127 if ${ac_cv_c_stack_direction+:} false; then :
14128   $as_echo_n "(cached) " >&6
14129 else
14130   if test "$cross_compiling" = yes; then :
14131   ac_cv_c_stack_direction=0
14132 else
14133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h.  */
14135 $ac_includes_default
14136 int
14137 find_stack_direction (int *addr, int depth)
14138 {
14139   int dir, dummy = 0;
14140   if (! addr)
14141     addr = &dummy;
14142   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14143   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14144   return dir + dummy;
14145 }
14146
14147 int
14148 main (int argc, char **argv)
14149 {
14150   return find_stack_direction (0, argc + !argv + 20) < 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_run "$LINENO"; then :
14154   ac_cv_c_stack_direction=1
14155 else
14156   ac_cv_c_stack_direction=-1
14157 fi
14158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14159   conftest.$ac_objext conftest.beam conftest.$ac_ext
14160 fi
14161
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14164 $as_echo "$ac_cv_c_stack_direction" >&6; }
14165 cat >>confdefs.h <<_ACEOF
14166 #define STACK_DIRECTION $ac_cv_c_stack_direction
14167 _ACEOF
14168
14169
14170 fi
14171
14172
14173 # The cast to long int works around a bug in the HP C Compiler
14174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14176 # This bug is HP SR number 8606223364.
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14178 $as_echo_n "checking size of double... " >&6; }
14179 if ${ac_cv_sizeof_double+:} false; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14183
14184 else
14185   if test "$ac_cv_type_double" = yes; then
14186      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14188 as_fn_error 77 "cannot compute sizeof (double)
14189 See \`config.log' for more details" "$LINENO" 5; }
14190    else
14191      ac_cv_sizeof_double=0
14192    fi
14193 fi
14194
14195 fi
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14197 $as_echo "$ac_cv_sizeof_double" >&6; }
14198
14199
14200
14201 cat >>confdefs.h <<_ACEOF
14202 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14203 _ACEOF
14204
14205
14206 # The cast to long int works around a bug in the HP C Compiler
14207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14209 # This bug is HP SR number 8606223364.
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14211 $as_echo_n "checking size of long double... " >&6; }
14212 if ${ac_cv_sizeof_long_double+:} false; then :
14213   $as_echo_n "(cached) " >&6
14214 else
14215   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14216
14217 else
14218   if test "$ac_cv_type_long_double" = yes; then
14219      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14221 as_fn_error 77 "cannot compute sizeof (long double)
14222 See \`config.log' for more details" "$LINENO" 5; }
14223    else
14224      ac_cv_sizeof_long_double=0
14225    fi
14226 fi
14227
14228 fi
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14230 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14231
14232
14233
14234 cat >>confdefs.h <<_ACEOF
14235 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14236 _ACEOF
14237
14238
14239
14240 # Also AC_SUBST this variable for ffi.h.
14241 if test -z "$HAVE_LONG_DOUBLE"; then
14242   HAVE_LONG_DOUBLE=0
14243   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14244     if test $ac_cv_sizeof_long_double != 0; then
14245       HAVE_LONG_DOUBLE=1
14246
14247 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14248
14249     fi
14250   fi
14251 fi
14252
14253
14254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14255 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14256 if ${ac_cv_c_bigendian+:} false; then :
14257   $as_echo_n "(cached) " >&6
14258 else
14259   ac_cv_c_bigendian=unknown
14260     # See if we're dealing with a universal compiler.
14261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h.  */
14263 #ifndef __APPLE_CC__
14264                not a universal capable compiler
14265              #endif
14266              typedef int dummy;
14267
14268 _ACEOF
14269 if ac_fn_c_try_compile "$LINENO"; then :
14270
14271         # Check for potential -arch flags.  It is not universal unless
14272         # there are at least two -arch flags with different values.
14273         ac_arch=
14274         ac_prev=
14275         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14276          if test -n "$ac_prev"; then
14277            case $ac_word in
14278              i?86 | x86_64 | ppc | ppc64)
14279                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14280                  ac_arch=$ac_word
14281                else
14282                  ac_cv_c_bigendian=universal
14283                  break
14284                fi
14285                ;;
14286            esac
14287            ac_prev=
14288          elif test "x$ac_word" = "x-arch"; then
14289            ac_prev=arch
14290          fi
14291        done
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294     if test $ac_cv_c_bigendian = unknown; then
14295       # See if sys/param.h defines the BYTE_ORDER macro.
14296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h.  */
14298 #include <sys/types.h>
14299              #include <sys/param.h>
14300
14301 int
14302 main ()
14303 {
14304 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14305                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14306                      && LITTLE_ENDIAN)
14307               bogus endian macros
14308              #endif
14309
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 if ac_fn_c_try_compile "$LINENO"; then :
14315   # It does; now see whether it defined to BIG_ENDIAN or not.
14316          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h.  */
14318 #include <sys/types.h>
14319                 #include <sys/param.h>
14320
14321 int
14322 main ()
14323 {
14324 #if BYTE_ORDER != BIG_ENDIAN
14325                  not big endian
14326                 #endif
14327
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333   ac_cv_c_bigendian=yes
14334 else
14335   ac_cv_c_bigendian=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340     fi
14341     if test $ac_cv_c_bigendian = unknown; then
14342       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14343       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h.  */
14345 #include <limits.h>
14346
14347 int
14348 main ()
14349 {
14350 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14351               bogus endian macros
14352              #endif
14353
14354   ;
14355   return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_compile "$LINENO"; then :
14359   # It does; now see whether it defined to _BIG_ENDIAN or not.
14360          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h.  */
14362 #include <limits.h>
14363
14364 int
14365 main ()
14366 {
14367 #ifndef _BIG_ENDIAN
14368                  not big endian
14369                 #endif
14370
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 if ac_fn_c_try_compile "$LINENO"; then :
14376   ac_cv_c_bigendian=yes
14377 else
14378   ac_cv_c_bigendian=no
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383     fi
14384     if test $ac_cv_c_bigendian = unknown; then
14385       # Compile a test program.
14386       if test "$cross_compiling" = yes; then :
14387   # Try to guess by grepping values from an object file.
14388          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h.  */
14390 short int ascii_mm[] =
14391                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14392                 short int ascii_ii[] =
14393                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14394                 int use_ascii (int i) {
14395                   return ascii_mm[i] + ascii_ii[i];
14396                 }
14397                 short int ebcdic_ii[] =
14398                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14399                 short int ebcdic_mm[] =
14400                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14401                 int use_ebcdic (int i) {
14402                   return ebcdic_mm[i] + ebcdic_ii[i];
14403                 }
14404                 extern int foo;
14405
14406 int
14407 main ()
14408 {
14409 return use_ascii (foo) == use_ebcdic (foo);
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14416               ac_cv_c_bigendian=yes
14417             fi
14418             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14419               if test "$ac_cv_c_bigendian" = unknown; then
14420                 ac_cv_c_bigendian=no
14421               else
14422                 # finding both strings is unlikely to happen, but who knows?
14423                 ac_cv_c_bigendian=unknown
14424               fi
14425             fi
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428 else
14429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h.  */
14431 $ac_includes_default
14432 int
14433 main ()
14434 {
14435
14436              /* Are we little or big endian?  From Harbison&Steele.  */
14437              union
14438              {
14439                long int l;
14440                char c[sizeof (long int)];
14441              } u;
14442              u.l = 1;
14443              return u.c[sizeof (long int) - 1] == 1;
14444
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 if ac_fn_c_try_run "$LINENO"; then :
14450   ac_cv_c_bigendian=no
14451 else
14452   ac_cv_c_bigendian=yes
14453 fi
14454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14455   conftest.$ac_objext conftest.beam conftest.$ac_ext
14456 fi
14457
14458     fi
14459 fi
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14461 $as_echo "$ac_cv_c_bigendian" >&6; }
14462  case $ac_cv_c_bigendian in #(
14463    yes)
14464      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14465 ;; #(
14466    no)
14467       ;; #(
14468    universal)
14469
14470 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14471
14472      ;; #(
14473    *)
14474      as_fn_error $? "unknown endianness
14475  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14476  esac
14477
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14480 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14481 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14482   $as_echo_n "(cached) " >&6
14483 else
14484
14485     gcc_cv_as_cfi_pseudo_op=unknown
14486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h.  */
14488 asm (".cfi_startproc\n\t.cfi_endproc");
14489 int
14490 main ()
14491 {
14492
14493   ;
14494   return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_compile "$LINENO"; then :
14498   gcc_cv_as_cfi_pseudo_op=yes
14499 else
14500   gcc_cv_as_cfi_pseudo_op=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14506 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14507  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14508
14509 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14510
14511  fi
14512
14513
14514 if test x$TARGET = xSPARC; then
14515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14516 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14517 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14518   $as_echo_n "(cached) " >&6
14519 else
14520
14521         save_CFLAGS="$CFLAGS"
14522         save_LDFLAGS="$LDFLAGS"
14523         CFLAGS="$CFLAGS -fpic"
14524         LDFLAGS="$LDFLAGS -shared"
14525         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h.  */
14527 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14528 int
14529 main ()
14530 {
14531
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_link "$LINENO"; then :
14537   libffi_cv_as_sparc_ua_pcrel=yes
14538 else
14539   libffi_cv_as_sparc_ua_pcrel=no
14540 fi
14541 rm -f core conftest.err conftest.$ac_objext \
14542     conftest$ac_exeext conftest.$ac_ext
14543         CFLAGS="$save_CFLAGS"
14544         LDFLAGS="$save_LDFLAGS"
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14547 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14548     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14549
14550 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14551
14552     fi
14553
14554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14555 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14556 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14557   $as_echo_n "(cached) " >&6
14558 else
14559
14560        libffi_cv_as_register_pseudo_op=unknown
14561        # Check if we have .register
14562        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h.  */
14564
14565 int
14566 main ()
14567 {
14568 asm (".register %g2, #scratch");
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574   libffi_cv_as_register_pseudo_op=yes
14575 else
14576   libffi_cv_as_register_pseudo_op=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14582 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14583     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14584
14585 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14586
14587     fi
14588 fi
14589
14590 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14592 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14593 if ${libffi_cv_as_x86_pcrel+:} false; then :
14594   $as_echo_n "(cached) " >&6
14595 else
14596
14597         libffi_cv_as_x86_pcrel=no
14598         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14599         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14600             libffi_cv_as_x86_pcrel=yes
14601         fi
14602
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14605 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14606     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14607
14608 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14609
14610     fi
14611
14612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14613 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14614 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14615   $as_echo_n "(cached) " >&6
14616 else
14617
14618        libffi_cv_as_ascii_pseudo_op=unknown
14619        # Check if we have .ascii
14620        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h.  */
14622
14623 int
14624 main ()
14625 {
14626 asm (".ascii \\"string\\"");
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 if ac_fn_c_try_compile "$LINENO"; then :
14632   libffi_cv_as_ascii_pseudo_op=yes
14633 else
14634   libffi_cv_as_ascii_pseudo_op=no
14635 fi
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14640 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14641     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14642
14643 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14644
14645     fi
14646
14647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14648 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14649 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14650   $as_echo_n "(cached) " >&6
14651 else
14652
14653        libffi_cv_as_string_pseudo_op=unknown
14654        # Check if we have .string
14655        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h.  */
14657
14658 int
14659 main ()
14660 {
14661 asm (".string \\"string\\"");
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 if ac_fn_c_try_compile "$LINENO"; then :
14667   libffi_cv_as_string_pseudo_op=yes
14668 else
14669   libffi_cv_as_string_pseudo_op=no
14670 fi
14671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672
14673 fi
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14675 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14676     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14677
14678 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14679
14680     fi
14681 fi
14682
14683 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14684 # Check whether --enable-pax_emutramp was given.
14685 if test "${enable_pax_emutramp+set}" = set; then :
14686   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14687
14688 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14689
14690   fi
14691 fi
14692
14693
14694 if test x$TARGET = xX86_WIN64; then
14695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14696 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14697 if ${lt_cv_sys_symbol_underscore+:} false; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   lt_cv_sys_symbol_underscore=no
14701   cat > conftest.$ac_ext <<_LT_EOF
14702 void nm_test_func(){}
14703 int main(){nm_test_func;return 0;}
14704 _LT_EOF
14705   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14706   (eval $ac_compile) 2>&5
14707   ac_status=$?
14708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709   test $ac_status = 0; }; then
14710     # Now try to grab the symbols.
14711     ac_nlist=conftest.nm
14712     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14713   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14714   ac_status=$?
14715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14716   test $ac_status = 0; } && test -s "$ac_nlist"; then
14717       # See whether the symbols have a leading underscore.
14718       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14719         lt_cv_sys_symbol_underscore=yes
14720       else
14721         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14722           :
14723         else
14724           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14725         fi
14726       fi
14727     else
14728       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14729     fi
14730   else
14731     echo "configure: failed program was:" >&5
14732     cat conftest.c >&5
14733   fi
14734   rm -rf conftest*
14735
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14738 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14739   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14740
14741
14742     if test "x$sys_symbol_underscore" = xyes; then
14743
14744 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14745
14746     fi
14747 fi
14748
14749 FFI_EXEC_TRAMPOLINE_TABLE=0
14750 case "$target" in
14751      *arm*-apple-darwin*)
14752        FFI_EXEC_TRAMPOLINE_TABLE=1
14753
14754 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14755
14756      ;;
14757      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14758
14759 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14760
14761      ;;
14762 esac
14763  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14764   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14765   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14766 else
14767   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14768   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14769 fi
14770
14771
14772
14773 if test x$TARGET = xX86_64; then
14774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14775 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14776 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14777   $as_echo_n "(cached) " >&6
14778 else
14779
14780         libffi_cv_as_x86_64_unwind_section_type=yes
14781         echo '.section .eh_frame,"a",@unwind' > conftest.s
14782         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14783             libffi_cv_as_x86_64_unwind_section_type=no
14784         fi
14785
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14788 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14789     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14790
14791 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14792
14793     fi
14794 fi
14795
14796 if test "x$GCC" = "xyes"; then
14797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14798 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14799 if ${libffi_cv_ro_eh_frame+:} false; then :
14800   $as_echo_n "(cached) " >&6
14801 else
14802
14803         libffi_cv_ro_eh_frame=no
14804         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14805         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14806             objdump -h conftest.o > conftest.dump 2>&1
14807             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14808             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14809             sed -n $libffi_test_line conftest.dump > conftest.line
14810             if grep READONLY conftest.line > /dev/null; then
14811                 libffi_cv_ro_eh_frame=yes
14812             fi
14813         fi
14814         rm -f conftest.*
14815
14816 fi
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14818 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14819   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14820
14821 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14822
14823
14824 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14825
14826   else
14827
14828 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14829
14830   fi
14831
14832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14833 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14834 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14835   $as_echo_n "(cached) " >&6
14836 else
14837
14838         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14839         libffi_cv_hidden_visibility_attribute=no
14840         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14841   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14845   test $ac_status = 0; }; }; then
14846             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14847                 libffi_cv_hidden_visibility_attribute=yes
14848             fi
14849         fi
14850         rm -f conftest.*
14851
14852 fi
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14854 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14855   if test $libffi_cv_hidden_visibility_attribute = yes; then
14856
14857 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14858
14859   fi
14860 fi
14861
14862
14863
14864
14865
14866
14867
14868
14869 # Check whether --enable-debug was given.
14870 if test "${enable_debug+set}" = set; then :
14871   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14872
14873 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14874
14875   fi
14876 fi
14877
14878  if test "$enable_debug" = "yes"; then
14879   FFI_DEBUG_TRUE=
14880   FFI_DEBUG_FALSE='#'
14881 else
14882   FFI_DEBUG_TRUE='#'
14883   FFI_DEBUG_FALSE=
14884 fi
14885
14886
14887 # Check whether --enable-structs was given.
14888 if test "${enable_structs+set}" = set; then :
14889   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14890
14891 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14892
14893   fi
14894 fi
14895
14896  if test "$enable_debug" = "yes"; then
14897   FFI_DEBUG_TRUE=
14898   FFI_DEBUG_FALSE='#'
14899 else
14900   FFI_DEBUG_TRUE='#'
14901   FFI_DEBUG_FALSE=
14902 fi
14903
14904
14905 # Check whether --enable-raw-api was given.
14906 if test "${enable_raw_api+set}" = set; then :
14907   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14908
14909 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14910
14911   fi
14912 fi
14913
14914
14915 # Check whether --enable-purify-safety was given.
14916 if test "${enable_purify_safety+set}" = set; then :
14917   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14918
14919 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14920
14921   fi
14922 fi
14923
14924
14925 # These variables are only ever used when we cross-build to X86_WIN32.
14926 # And we only support this with GCC, so...
14927 if test "x$GCC" = "xyes"; then
14928   if test -n "$with_cross_host" &&
14929      test x"$with_cross_host" != x"no"; then
14930     toolexecdir='$(exec_prefix)/$(target_alias)'
14931     toolexeclibdir='$(toolexecdir)/lib'
14932   else
14933     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14934     toolexeclibdir='$(libdir)'
14935   fi
14936   multi_os_directory=`$CC -print-multi-os-directory`
14937   case $multi_os_directory in
14938     .) ;; # Avoid trailing /.
14939     ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14940   esac
14941
14942 else
14943   toolexeclibdir='$(libdir)'
14944 fi
14945
14946
14947 ac_config_commands="$ac_config_commands include"
14948
14949 ac_config_commands="$ac_config_commands src"
14950
14951
14952 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14953
14954
14955 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14956
14957
14958 cat >confcache <<\_ACEOF
14959 # This file is a shell script that caches the results of configure
14960 # tests run on this system so they can be shared between configure
14961 # scripts and configure runs, see configure's option --config-cache.
14962 # It is not useful on other systems.  If it contains results you don't
14963 # want to keep, you may remove or edit it.
14964 #
14965 # config.status only pays attention to the cache file if you give it
14966 # the --recheck option to rerun configure.
14967 #
14968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14970 # following values.
14971
14972 _ACEOF
14973
14974 # The following way of writing the cache mishandles newlines in values,
14975 # but we know of no workaround that is simple, portable, and efficient.
14976 # So, we kill variables containing newlines.
14977 # Ultrix sh set writes to stderr and can't be redirected directly,
14978 # and sets the high bit in the cache file unless we assign to the vars.
14979 (
14980   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14981     eval ac_val=\$$ac_var
14982     case $ac_val in #(
14983     *${as_nl}*)
14984       case $ac_var in #(
14985       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14987       esac
14988       case $ac_var in #(
14989       _ | IFS | as_nl) ;; #(
14990       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14991       *) { eval $ac_var=; unset $ac_var;} ;;
14992       esac ;;
14993     esac
14994   done
14995
14996   (set) 2>&1 |
14997     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14998     *${as_nl}ac_space=\ *)
14999       # `set' does not quote correctly, so add quotes: double-quote
15000       # substitution turns \\\\ into \\, and sed turns \\ into \.
15001       sed -n \
15002         "s/'/'\\\\''/g;
15003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15004       ;; #(
15005     *)
15006       # `set' quotes correctly as required by POSIX, so do not add quotes.
15007       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15008       ;;
15009     esac |
15010     sort
15011 ) |
15012   sed '
15013      /^ac_cv_env_/b end
15014      t clear
15015      :clear
15016      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15017      t end
15018      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15019      :end' >>confcache
15020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15021   if test -w "$cache_file"; then
15022     if test "x$cache_file" != "x/dev/null"; then
15023       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15024 $as_echo "$as_me: updating cache $cache_file" >&6;}
15025       if test ! -f "$cache_file" || test -h "$cache_file"; then
15026         cat confcache >"$cache_file"
15027       else
15028         case $cache_file in #(
15029         */* | ?:*)
15030           mv -f confcache "$cache_file"$$ &&
15031           mv -f "$cache_file"$$ "$cache_file" ;; #(
15032         *)
15033           mv -f confcache "$cache_file" ;;
15034         esac
15035       fi
15036     fi
15037   else
15038     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15039 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15040   fi
15041 fi
15042 rm -f confcache
15043
15044 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15045 # Let make expand exec_prefix.
15046 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15047
15048 DEFS=-DHAVE_CONFIG_H
15049
15050 ac_libobjs=
15051 ac_ltlibobjs=
15052 U=
15053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15054   # 1. Remove the extension, and $U if already installed.
15055   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15056   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15057   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15058   #    will be set to the directory where LIBOBJS objects are built.
15059   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15060   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15061 done
15062 LIBOBJS=$ac_libobjs
15063
15064 LTLIBOBJS=$ac_ltlibobjs
15065
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15068 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15069    if test -n "$am_sleep_pid"; then
15070      # Hide warnings about reused PIDs.
15071      wait $am_sleep_pid 2>/dev/null
15072    fi
15073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15074 $as_echo "done" >&6; }
15075  if test -n "$EXEEXT"; then
15076   am__EXEEXT_TRUE=
15077   am__EXEEXT_FALSE='#'
15078 else
15079   am__EXEEXT_TRUE='#'
15080   am__EXEEXT_FALSE=
15081 fi
15082
15083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15084   as_fn_error $? "conditional \"AMDEP\" was never defined.
15085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 fi
15087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15088   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 fi
15091 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15092   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 fi
15095 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15096   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 fi
15099 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15100   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
15101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 fi
15103 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15104   as_fn_error $? "conditional \"MIPS\" was never defined.
15105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 fi
15107 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15108   as_fn_error $? "conditional \"BFIN\" was never defined.
15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 fi
15111 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15112   as_fn_error $? "conditional \"SPARC\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 fi
15115 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15116   as_fn_error $? "conditional \"X86\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118 fi
15119 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15120   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122 fi
15123 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15124   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126 fi
15127 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15128   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130 fi
15131 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15132   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15134 fi
15135 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15136   as_fn_error $? "conditional \"ALPHA\" was never defined.
15137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138 fi
15139 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15140   as_fn_error $? "conditional \"IA64\" was never defined.
15141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142 fi
15143 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15144   as_fn_error $? "conditional \"M32R\" was never defined.
15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146 fi
15147 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15148   as_fn_error $? "conditional \"M68K\" was never defined.
15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150 fi
15151 if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
15152   as_fn_error $? "conditional \"M88K\" was never defined.
15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154 fi
15155 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15156   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15158 fi
15159 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
15160   as_fn_error $? "conditional \"METAG\" was never defined.
15161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162 fi
15163 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15164   as_fn_error $? "conditional \"MOXIE\" was never defined.
15165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166 fi
15167 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15168   as_fn_error $? "conditional \"POWERPC\" was never defined.
15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170 fi
15171 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15172   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15174 fi
15175 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15176   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178 fi
15179 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15180   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15182 fi
15183 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15184   as_fn_error $? "conditional \"AARCH64\" was never defined.
15185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15186 fi
15187 if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
15188   as_fn_error $? "conditional \"ARC\" was never defined.
15189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15190 fi
15191 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15192   as_fn_error $? "conditional \"ARM\" was never defined.
15193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15194 fi
15195 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15196   as_fn_error $? "conditional \"AVR32\" was never defined.
15197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15198 fi
15199 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15200   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15202 fi
15203 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15204   as_fn_error $? "conditional \"FRV\" was never defined.
15205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206 fi
15207 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15208   as_fn_error $? "conditional \"S390\" was never defined.
15209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210 fi
15211 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15212   as_fn_error $? "conditional \"X86_64\" was never defined.
15213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214 fi
15215 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15216   as_fn_error $? "conditional \"SH\" was never defined.
15217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15218 fi
15219 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15220   as_fn_error $? "conditional \"SH64\" was never defined.
15221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15222 fi
15223 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15224   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15226 fi
15227 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15228   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15230 fi
15231 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15232   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234 fi
15235 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15236   as_fn_error $? "conditional \"TILE\" was never defined.
15237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238 fi
15239 if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
15240   as_fn_error $? "conditional \"VAX\" was never defined.
15241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15242 fi
15243 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15244   as_fn_error $? "conditional \"XTENSA\" was never defined.
15245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15246 fi
15247
15248 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15249   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15251 fi
15252 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15253   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15255 fi
15256 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15257   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15259 fi
15260
15261 : "${CONFIG_STATUS=./config.status}"
15262 ac_write_fail=0
15263 ac_clean_files_save=$ac_clean_files
15264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15266 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15267 as_write_fail=0
15268 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15269 #! $SHELL
15270 # Generated by $as_me.
15271 # Run this file to recreate the current configuration.
15272 # Compiler output produced by configure, useful for debugging
15273 # configure, is in config.log if it exists.
15274
15275 debug=false
15276 ac_cs_recheck=false
15277 ac_cs_silent=false
15278
15279 SHELL=\${CONFIG_SHELL-$SHELL}
15280 export SHELL
15281 _ASEOF
15282 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15283 ## -------------------- ##
15284 ## M4sh Initialization. ##
15285 ## -------------------- ##
15286
15287 # Be more Bourne compatible
15288 DUALCASE=1; export DUALCASE # for MKS sh
15289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15290   emulate sh
15291   NULLCMD=:
15292   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15293   # is contrary to our usage.  Disable this feature.
15294   alias -g '${1+"$@"}'='"$@"'
15295   setopt NO_GLOB_SUBST
15296 else
15297   case `(set -o) 2>/dev/null` in #(
15298   *posix*) :
15299     set -o posix ;; #(
15300   *) :
15301      ;;
15302 esac
15303 fi
15304
15305
15306 as_nl='
15307 '
15308 export as_nl
15309 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15310 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15311 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15312 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15313 # Prefer a ksh shell builtin over an external printf program on Solaris,
15314 # but without wasting forks for bash or zsh.
15315 if test -z "$BASH_VERSION$ZSH_VERSION" \
15316     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15317   as_echo='print -r --'
15318   as_echo_n='print -rn --'
15319 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15320   as_echo='printf %s\n'
15321   as_echo_n='printf %s'
15322 else
15323   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15324     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15325     as_echo_n='/usr/ucb/echo -n'
15326   else
15327     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15328     as_echo_n_body='eval
15329       arg=$1;
15330       case $arg in #(
15331       *"$as_nl"*)
15332         expr "X$arg" : "X\\(.*\\)$as_nl";
15333         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15334       esac;
15335       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15336     '
15337     export as_echo_n_body
15338     as_echo_n='sh -c $as_echo_n_body as_echo'
15339   fi
15340   export as_echo_body
15341   as_echo='sh -c $as_echo_body as_echo'
15342 fi
15343
15344 # The user is always right.
15345 if test "${PATH_SEPARATOR+set}" != set; then
15346   PATH_SEPARATOR=:
15347   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15348     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15349       PATH_SEPARATOR=';'
15350   }
15351 fi
15352
15353
15354 # IFS
15355 # We need space, tab and new line, in precisely that order.  Quoting is
15356 # there to prevent editors from complaining about space-tab.
15357 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15358 # splitting by setting IFS to empty value.)
15359 IFS=" ""        $as_nl"
15360
15361 # Find who we are.  Look in the path if we contain no directory separator.
15362 as_myself=
15363 case $0 in #((
15364   *[\\/]* ) as_myself=$0 ;;
15365   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366 for as_dir in $PATH
15367 do
15368   IFS=$as_save_IFS
15369   test -z "$as_dir" && as_dir=.
15370     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15371   done
15372 IFS=$as_save_IFS
15373
15374      ;;
15375 esac
15376 # We did not find ourselves, most probably we were run as `sh COMMAND'
15377 # in which case we are not to be found in the path.
15378 if test "x$as_myself" = x; then
15379   as_myself=$0
15380 fi
15381 if test ! -f "$as_myself"; then
15382   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15383   exit 1
15384 fi
15385
15386 # Unset variables that we do not need and which cause bugs (e.g. in
15387 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15388 # suppresses any "Segmentation fault" message there.  '((' could
15389 # trigger a bug in pdksh 5.2.14.
15390 for as_var in BASH_ENV ENV MAIL MAILPATH
15391 do eval test x\${$as_var+set} = xset \
15392   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15393 done
15394 PS1='$ '
15395 PS2='> '
15396 PS4='+ '
15397
15398 # NLS nuisances.
15399 LC_ALL=C
15400 export LC_ALL
15401 LANGUAGE=C
15402 export LANGUAGE
15403
15404 # CDPATH.
15405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15406
15407
15408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15409 # ----------------------------------------
15410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15412 # script with STATUS, using 1 if that was 0.
15413 as_fn_error ()
15414 {
15415   as_status=$1; test $as_status -eq 0 && as_status=1
15416   if test "$4"; then
15417     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15418     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15419   fi
15420   $as_echo "$as_me: error: $2" >&2
15421   as_fn_exit $as_status
15422 } # as_fn_error
15423
15424
15425 # as_fn_set_status STATUS
15426 # -----------------------
15427 # Set $? to STATUS, without forking.
15428 as_fn_set_status ()
15429 {
15430   return $1
15431 } # as_fn_set_status
15432
15433 # as_fn_exit STATUS
15434 # -----------------
15435 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15436 as_fn_exit ()
15437 {
15438   set +e
15439   as_fn_set_status $1
15440   exit $1
15441 } # as_fn_exit
15442
15443 # as_fn_unset VAR
15444 # ---------------
15445 # Portably unset VAR.
15446 as_fn_unset ()
15447 {
15448   { eval $1=; unset $1;}
15449 }
15450 as_unset=as_fn_unset
15451 # as_fn_append VAR VALUE
15452 # ----------------------
15453 # Append the text in VALUE to the end of the definition contained in VAR. Take
15454 # advantage of any shell optimizations that allow amortized linear growth over
15455 # repeated appends, instead of the typical quadratic growth present in naive
15456 # implementations.
15457 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15458   eval 'as_fn_append ()
15459   {
15460     eval $1+=\$2
15461   }'
15462 else
15463   as_fn_append ()
15464   {
15465     eval $1=\$$1\$2
15466   }
15467 fi # as_fn_append
15468
15469 # as_fn_arith ARG...
15470 # ------------------
15471 # Perform arithmetic evaluation on the ARGs, and store the result in the
15472 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15473 # must be portable across $(()) and expr.
15474 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15475   eval 'as_fn_arith ()
15476   {
15477     as_val=$(( $* ))
15478   }'
15479 else
15480   as_fn_arith ()
15481   {
15482     as_val=`expr "$@" || test $? -eq 1`
15483   }
15484 fi # as_fn_arith
15485
15486
15487 if expr a : '\(a\)' >/dev/null 2>&1 &&
15488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15489   as_expr=expr
15490 else
15491   as_expr=false
15492 fi
15493
15494 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15495   as_basename=basename
15496 else
15497   as_basename=false
15498 fi
15499
15500 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15501   as_dirname=dirname
15502 else
15503   as_dirname=false
15504 fi
15505
15506 as_me=`$as_basename -- "$0" ||
15507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15508          X"$0" : 'X\(//\)$' \| \
15509          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15510 $as_echo X/"$0" |
15511     sed '/^.*\/\([^/][^/]*\)\/*$/{
15512             s//\1/
15513             q
15514           }
15515           /^X\/\(\/\/\)$/{
15516             s//\1/
15517             q
15518           }
15519           /^X\/\(\/\).*/{
15520             s//\1/
15521             q
15522           }
15523           s/.*/./; q'`
15524
15525 # Avoid depending upon Character Ranges.
15526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15529 as_cr_digits='0123456789'
15530 as_cr_alnum=$as_cr_Letters$as_cr_digits
15531
15532 ECHO_C= ECHO_N= ECHO_T=
15533 case `echo -n x` in #(((((
15534 -n*)
15535   case `echo 'xy\c'` in
15536   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15537   xy)  ECHO_C='\c';;
15538   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15539        ECHO_T=' ';;
15540   esac;;
15541 *)
15542   ECHO_N='-n';;
15543 esac
15544
15545 rm -f conf$$ conf$$.exe conf$$.file
15546 if test -d conf$$.dir; then
15547   rm -f conf$$.dir/conf$$.file
15548 else
15549   rm -f conf$$.dir
15550   mkdir conf$$.dir 2>/dev/null
15551 fi
15552 if (echo >conf$$.file) 2>/dev/null; then
15553   if ln -s conf$$.file conf$$ 2>/dev/null; then
15554     as_ln_s='ln -s'
15555     # ... but there are two gotchas:
15556     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15557     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15558     # In both cases, we have to default to `cp -pR'.
15559     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15560       as_ln_s='cp -pR'
15561   elif ln conf$$.file conf$$ 2>/dev/null; then
15562     as_ln_s=ln
15563   else
15564     as_ln_s='cp -pR'
15565   fi
15566 else
15567   as_ln_s='cp -pR'
15568 fi
15569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15570 rmdir conf$$.dir 2>/dev/null
15571
15572
15573 # as_fn_mkdir_p
15574 # -------------
15575 # Create "$as_dir" as a directory, including parents if necessary.
15576 as_fn_mkdir_p ()
15577 {
15578
15579   case $as_dir in #(
15580   -*) as_dir=./$as_dir;;
15581   esac
15582   test -d "$as_dir" || eval $as_mkdir_p || {
15583     as_dirs=
15584     while :; do
15585       case $as_dir in #(
15586       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15587       *) as_qdir=$as_dir;;
15588       esac
15589       as_dirs="'$as_qdir' $as_dirs"
15590       as_dir=`$as_dirname -- "$as_dir" ||
15591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15592          X"$as_dir" : 'X\(//\)[^/]' \| \
15593          X"$as_dir" : 'X\(//\)$' \| \
15594          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15595 $as_echo X"$as_dir" |
15596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15597             s//\1/
15598             q
15599           }
15600           /^X\(\/\/\)[^/].*/{
15601             s//\1/
15602             q
15603           }
15604           /^X\(\/\/\)$/{
15605             s//\1/
15606             q
15607           }
15608           /^X\(\/\).*/{
15609             s//\1/
15610             q
15611           }
15612           s/.*/./; q'`
15613       test -d "$as_dir" && break
15614     done
15615     test -z "$as_dirs" || eval "mkdir $as_dirs"
15616   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15617
15618
15619 } # as_fn_mkdir_p
15620 if mkdir -p . 2>/dev/null; then
15621   as_mkdir_p='mkdir -p "$as_dir"'
15622 else
15623   test -d ./-p && rmdir ./-p
15624   as_mkdir_p=false
15625 fi
15626
15627
15628 # as_fn_executable_p FILE
15629 # -----------------------
15630 # Test if FILE is an executable regular file.
15631 as_fn_executable_p ()
15632 {
15633   test -f "$1" && test -x "$1"
15634 } # as_fn_executable_p
15635 as_test_x='test -x'
15636 as_executable_p=as_fn_executable_p
15637
15638 # Sed expression to map a string onto a valid CPP name.
15639 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15640
15641 # Sed expression to map a string onto a valid variable name.
15642 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15643
15644
15645 exec 6>&1
15646 ## ----------------------------------- ##
15647 ## Main body of $CONFIG_STATUS script. ##
15648 ## ----------------------------------- ##
15649 _ASEOF
15650 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15651
15652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15653 # Save the log message, to keep $0 and so on meaningful, and to
15654 # report actual input values of CONFIG_FILES etc. instead of their
15655 # values after options handling.
15656 ac_log="
15657 This file was extended by libffi $as_me 3.0.14-rc0, which was
15658 generated by GNU Autoconf 2.69.  Invocation command line was
15659
15660   CONFIG_FILES    = $CONFIG_FILES
15661   CONFIG_HEADERS  = $CONFIG_HEADERS
15662   CONFIG_LINKS    = $CONFIG_LINKS
15663   CONFIG_COMMANDS = $CONFIG_COMMANDS
15664   $ $0 $@
15665
15666 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15667 "
15668
15669 _ACEOF
15670
15671 case $ac_config_files in *"
15672 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15673 esac
15674
15675 case $ac_config_headers in *"
15676 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15677 esac
15678
15679
15680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15681 # Files that config.status was made for.
15682 config_files="$ac_config_files"
15683 config_headers="$ac_config_headers"
15684 config_links="$ac_config_links"
15685 config_commands="$ac_config_commands"
15686
15687 _ACEOF
15688
15689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15690 ac_cs_usage="\
15691 \`$as_me' instantiates files and other configuration actions
15692 from templates according to the current configuration.  Unless the files
15693 and actions are specified as TAGs, all are instantiated by default.
15694
15695 Usage: $0 [OPTION]... [TAG]...
15696
15697   -h, --help       print this help, then exit
15698   -V, --version    print version number and configuration settings, then exit
15699       --config     print configuration, then exit
15700   -q, --quiet, --silent
15701                    do not print progress messages
15702   -d, --debug      don't remove temporary files
15703       --recheck    update $as_me by reconfiguring in the same conditions
15704       --file=FILE[:TEMPLATE]
15705                    instantiate the configuration file FILE
15706       --header=FILE[:TEMPLATE]
15707                    instantiate the configuration header FILE
15708
15709 Configuration files:
15710 $config_files
15711
15712 Configuration headers:
15713 $config_headers
15714
15715 Configuration links:
15716 $config_links
15717
15718 Configuration commands:
15719 $config_commands
15720
15721 Report bugs to <http://github.com/atgreen/libffi/issues>."
15722
15723 _ACEOF
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15726 ac_cs_version="\\
15727 libffi config.status 3.0.14-rc0
15728 configured by $0, generated by GNU Autoconf 2.69,
15729   with options \\"\$ac_cs_config\\"
15730
15731 Copyright (C) 2012 Free Software Foundation, Inc.
15732 This config.status script is free software; the Free Software Foundation
15733 gives unlimited permission to copy, distribute and modify it."
15734
15735 ac_pwd='$ac_pwd'
15736 srcdir='$srcdir'
15737 INSTALL='$INSTALL'
15738 MKDIR_P='$MKDIR_P'
15739 AWK='$AWK'
15740 test -n "\$AWK" || AWK=awk
15741 _ACEOF
15742
15743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 # The default lists apply if the user does not specify any file.
15745 ac_need_defaults=:
15746 while test $# != 0
15747 do
15748   case $1 in
15749   --*=?*)
15750     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15751     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15752     ac_shift=:
15753     ;;
15754   --*=)
15755     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15756     ac_optarg=
15757     ac_shift=:
15758     ;;
15759   *)
15760     ac_option=$1
15761     ac_optarg=$2
15762     ac_shift=shift
15763     ;;
15764   esac
15765
15766   case $ac_option in
15767   # Handling of the options.
15768   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15769     ac_cs_recheck=: ;;
15770   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15771     $as_echo "$ac_cs_version"; exit ;;
15772   --config | --confi | --conf | --con | --co | --c )
15773     $as_echo "$ac_cs_config"; exit ;;
15774   --debug | --debu | --deb | --de | --d | -d )
15775     debug=: ;;
15776   --file | --fil | --fi | --f )
15777     $ac_shift
15778     case $ac_optarg in
15779     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15780     '') as_fn_error $? "missing file argument" ;;
15781     esac
15782     as_fn_append CONFIG_FILES " '$ac_optarg'"
15783     ac_need_defaults=false;;
15784   --header | --heade | --head | --hea )
15785     $ac_shift
15786     case $ac_optarg in
15787     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15788     esac
15789     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15790     ac_need_defaults=false;;
15791   --he | --h)
15792     # Conflict between --help and --header
15793     as_fn_error $? "ambiguous option: \`$1'
15794 Try \`$0 --help' for more information.";;
15795   --help | --hel | -h )
15796     $as_echo "$ac_cs_usage"; exit ;;
15797   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15798   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15799     ac_cs_silent=: ;;
15800
15801   # This is an error.
15802   -*) as_fn_error $? "unrecognized option: \`$1'
15803 Try \`$0 --help' for more information." ;;
15804
15805   *) as_fn_append ac_config_targets " $1"
15806      ac_need_defaults=false ;;
15807
15808   esac
15809   shift
15810 done
15811
15812 ac_configure_extra_args=
15813
15814 if $ac_cs_silent; then
15815   exec 6>/dev/null
15816   ac_configure_extra_args="$ac_configure_extra_args --silent"
15817 fi
15818
15819 _ACEOF
15820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15821 if \$ac_cs_recheck; then
15822   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15823   shift
15824   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15825   CONFIG_SHELL='$SHELL'
15826   export CONFIG_SHELL
15827   exec "\$@"
15828 fi
15829
15830 _ACEOF
15831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15832 exec 5>>config.log
15833 {
15834   echo
15835   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15836 ## Running $as_me. ##
15837 _ASBOX
15838   $as_echo "$ac_log"
15839 } >&5
15840
15841 _ACEOF
15842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15843 #
15844 # INIT-COMMANDS
15845 #
15846 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15847 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15848 ax_enable_builddir_version="$VERSION"                  # $VERSION
15849 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15850 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15851 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15852 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15853
15854 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15855
15856
15857 # The HP-UX ksh and POSIX shell print the target directory to stdout
15858 # if CDPATH is set.
15859 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15860
15861 sed_quote_subst='$sed_quote_subst'
15862 double_quote_subst='$double_quote_subst'
15863 delay_variable_subst='$delay_variable_subst'
15864 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15865 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15866 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15867 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15868 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15869 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15870 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15871 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15872 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15873 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15874 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15875 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15876 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15877 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15878 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15879 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15880 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15881 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15882 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15883 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15884 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15885 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15886 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15887 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15888 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15889 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15890 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15891 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15892 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15893 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15894 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15895 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15896 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15897 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15898 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15899 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15900 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15901 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15902 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15903 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15904 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15905 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15906 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15907 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15908 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15909 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15910 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15911 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15912 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15913 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15914 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15915 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15916 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15917 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15918 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15919 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15920 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"`'
15921 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15922 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15923 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15924 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15925 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15926 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15927 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15928 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15929 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15930 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15931 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15932 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15933 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15934 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15935 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15936 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15937 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15938 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15939 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15940 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15941 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15942 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15943 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15944 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15945 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15946 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15947 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15948 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15949 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15950 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15951 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15952 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15953 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15954 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15955 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15956 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15957 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15958 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15959 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15960 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15961 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15962 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15963 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15964 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15965 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15966 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15967 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15968 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15969 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15970 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15971 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15972 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15973 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15974 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15975 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15976 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15977 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15978 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15979 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15980 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15981 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15982 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15983 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15984 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15985 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15986 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15987 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15988 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15989 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15990 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15991 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15992 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15993 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15994
15995 LTCC='$LTCC'
15996 LTCFLAGS='$LTCFLAGS'
15997 compiler='$compiler_DEFAULT'
15998
15999 # A function that is used when there is no print builtin or printf.
16000 func_fallback_echo ()
16001 {
16002   eval 'cat <<_LTECHO_EOF
16003 \$1
16004 _LTECHO_EOF'
16005 }
16006
16007 # Quote evaled strings.
16008 for var in SHELL \
16009 ECHO \
16010 PATH_SEPARATOR \
16011 SED \
16012 GREP \
16013 EGREP \
16014 FGREP \
16015 LD \
16016 NM \
16017 LN_S \
16018 lt_SP2NL \
16019 lt_NL2SP \
16020 reload_flag \
16021 OBJDUMP \
16022 deplibs_check_method \
16023 file_magic_cmd \
16024 file_magic_glob \
16025 want_nocaseglob \
16026 DLLTOOL \
16027 sharedlib_from_linklib_cmd \
16028 AR \
16029 AR_FLAGS \
16030 archiver_list_spec \
16031 STRIP \
16032 RANLIB \
16033 CC \
16034 CFLAGS \
16035 compiler \
16036 lt_cv_sys_global_symbol_pipe \
16037 lt_cv_sys_global_symbol_to_cdecl \
16038 lt_cv_sys_global_symbol_to_c_name_address \
16039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16040 nm_file_list_spec \
16041 lt_prog_compiler_no_builtin_flag \
16042 lt_prog_compiler_pic \
16043 lt_prog_compiler_wl \
16044 lt_prog_compiler_static \
16045 lt_cv_prog_compiler_c_o \
16046 need_locks \
16047 MANIFEST_TOOL \
16048 DSYMUTIL \
16049 NMEDIT \
16050 LIPO \
16051 OTOOL \
16052 OTOOL64 \
16053 shrext_cmds \
16054 export_dynamic_flag_spec \
16055 whole_archive_flag_spec \
16056 compiler_needs_object \
16057 with_gnu_ld \
16058 allow_undefined_flag \
16059 no_undefined_flag \
16060 hardcode_libdir_flag_spec \
16061 hardcode_libdir_separator \
16062 exclude_expsyms \
16063 include_expsyms \
16064 file_list_spec \
16065 variables_saved_for_relink \
16066 libname_spec \
16067 library_names_spec \
16068 soname_spec \
16069 install_override_mode \
16070 finish_eval \
16071 old_striplib \
16072 striplib; do
16073     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16074     *[\\\\\\\`\\"\\\$]*)
16075       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16076       ;;
16077     *)
16078       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16079       ;;
16080     esac
16081 done
16082
16083 # Double-quote double-evaled strings.
16084 for var in reload_cmds \
16085 old_postinstall_cmds \
16086 old_postuninstall_cmds \
16087 old_archive_cmds \
16088 extract_expsyms_cmds \
16089 old_archive_from_new_cmds \
16090 old_archive_from_expsyms_cmds \
16091 archive_cmds \
16092 archive_expsym_cmds \
16093 module_cmds \
16094 module_expsym_cmds \
16095 export_symbols_cmds \
16096 prelink_cmds \
16097 postlink_cmds \
16098 postinstall_cmds \
16099 postuninstall_cmds \
16100 finish_cmds \
16101 sys_lib_search_path_spec \
16102 sys_lib_dlsearch_path_spec; do
16103     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16104     *[\\\\\\\`\\"\\\$]*)
16105       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16106       ;;
16107     *)
16108       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16109       ;;
16110     esac
16111 done
16112
16113 ac_aux_dir='$ac_aux_dir'
16114 xsi_shell='$xsi_shell'
16115 lt_shell_append='$lt_shell_append'
16116
16117 # See if we are running on zsh, and set the options which allow our
16118 # commands through without removal of \ escapes INIT.
16119 if test -n "\${ZSH_VERSION+set}" ; then
16120    setopt NO_GLOB_SUBST
16121 fi
16122
16123
16124     PACKAGE='$PACKAGE'
16125     VERSION='$VERSION'
16126     TIMESTAMP='$TIMESTAMP'
16127     RM='$RM'
16128     ofile='$ofile'
16129
16130
16131
16132 TARGETDIR="$TARGETDIR"
16133
16134 _ACEOF
16135
16136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16137
16138 # Handling of arguments.
16139 for ac_config_target in $ac_config_targets
16140 do
16141   case $ac_config_target in
16142     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16143     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16144     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16145     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16146     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16147     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16148     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16149     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16150     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16151     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16152     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16153     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16154     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16155
16156   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16157   esac
16158 done
16159
16160
16161 # If the user did not use the arguments to specify the items to instantiate,
16162 # then the envvar interface is used.  Set only those that are not.
16163 # We use the long form for the default assignment because of an extremely
16164 # bizarre bug on SunOS 4.1.3.
16165 if $ac_need_defaults; then
16166   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16167   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16168   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16169   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16170 fi
16171
16172 # Have a temporary directory for convenience.  Make it in the build tree
16173 # simply because there is no reason against having it here, and in addition,
16174 # creating and moving files from /tmp can sometimes cause problems.
16175 # Hook for its removal unless debugging.
16176 # Note that there is a small window in which the directory will not be cleaned:
16177 # after its creation but before its name has been assigned to `$tmp'.
16178 $debug ||
16179 {
16180   tmp= ac_tmp=
16181   trap 'exit_status=$?
16182   : "${ac_tmp:=$tmp}"
16183   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16184 ' 0
16185   trap 'as_fn_exit 1' 1 2 13 15
16186 }
16187 # Create a (secure) tmp directory for tmp files.
16188
16189 {
16190   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16191   test -d "$tmp"
16192 }  ||
16193 {
16194   tmp=./conf$$-$RANDOM
16195   (umask 077 && mkdir "$tmp")
16196 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16197 ac_tmp=$tmp
16198
16199 # Set up the scripts for CONFIG_FILES section.
16200 # No need to generate them if there are no CONFIG_FILES.
16201 # This happens for instance with `./config.status config.h'.
16202 if test -n "$CONFIG_FILES"; then
16203
16204
16205 ac_cr=`echo X | tr X '\015'`
16206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16207 # But we know of no other shell where ac_cr would be empty at this
16208 # point, so we can use a bashism as a fallback.
16209 if test "x$ac_cr" = x; then
16210   eval ac_cr=\$\'\\r\'
16211 fi
16212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16214   ac_cs_awk_cr='\\r'
16215 else
16216   ac_cs_awk_cr=$ac_cr
16217 fi
16218
16219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16220 _ACEOF
16221
16222
16223 {
16224   echo "cat >conf$$subs.awk <<_ACEOF" &&
16225   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16226   echo "_ACEOF"
16227 } >conf$$subs.sh ||
16228   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16229 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16230 ac_delim='%!_!# '
16231 for ac_last_try in false false false false false :; do
16232   . ./conf$$subs.sh ||
16233     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16234
16235   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16236   if test $ac_delim_n = $ac_delim_num; then
16237     break
16238   elif $ac_last_try; then
16239     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16240   else
16241     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16242   fi
16243 done
16244 rm -f conf$$subs.sh
16245
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16248 _ACEOF
16249 sed -n '
16250 h
16251 s/^/S["/; s/!.*/"]=/
16252 p
16253 g
16254 s/^[^!]*!//
16255 :repl
16256 t repl
16257 s/'"$ac_delim"'$//
16258 t delim
16259 :nl
16260 h
16261 s/\(.\{148\}\)..*/\1/
16262 t more1
16263 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16264 p
16265 n
16266 b repl
16267 :more1
16268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16269 p
16270 g
16271 s/.\{148\}//
16272 t nl
16273 :delim
16274 h
16275 s/\(.\{148\}\)..*/\1/
16276 t more2
16277 s/["\\]/\\&/g; s/^/"/; s/$/"/
16278 p
16279 b
16280 :more2
16281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16282 p
16283 g
16284 s/.\{148\}//
16285 t delim
16286 ' <conf$$subs.awk | sed '
16287 /^[^""]/{
16288   N
16289   s/\n//
16290 }
16291 ' >>$CONFIG_STATUS || ac_write_fail=1
16292 rm -f conf$$subs.awk
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 _ACAWK
16295 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16296   for (key in S) S_is_set[key] = 1
16297   FS = "\a"
16298
16299 }
16300 {
16301   line = $ 0
16302   nfields = split(line, field, "@")
16303   substed = 0
16304   len = length(field[1])
16305   for (i = 2; i < nfields; i++) {
16306     key = field[i]
16307     keylen = length(key)
16308     if (S_is_set[key]) {
16309       value = S[key]
16310       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16311       len += length(value) + length(field[++i])
16312       substed = 1
16313     } else
16314       len += 1 + keylen
16315   }
16316
16317   print line
16318 }
16319
16320 _ACAWK
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16324   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16325 else
16326   cat
16327 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16328   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16329 _ACEOF
16330
16331 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16332 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16333 # trailing colons and then remove the whole line if VPATH becomes empty
16334 # (actually we leave an empty line to preserve line numbers).
16335 if test "x$srcdir" = x.; then
16336   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16337 h
16338 s///
16339 s/^/:/
16340 s/[      ]*$/:/
16341 s/:\$(srcdir):/:/g
16342 s/:\${srcdir}:/:/g
16343 s/:@srcdir@:/:/g
16344 s/^:*//
16345 s/:*$//
16346 x
16347 s/\(=[   ]*\).*/\1/
16348 G
16349 s/\n//
16350 s/^[^=]*=[       ]*$//
16351 }'
16352 fi
16353
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 fi # test -n "$CONFIG_FILES"
16356
16357 # Set up the scripts for CONFIG_HEADERS section.
16358 # No need to generate them if there are no CONFIG_HEADERS.
16359 # This happens for instance with `./config.status Makefile'.
16360 if test -n "$CONFIG_HEADERS"; then
16361 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16362 BEGIN {
16363 _ACEOF
16364
16365 # Transform confdefs.h into an awk script `defines.awk', embedded as
16366 # here-document in config.status, that substitutes the proper values into
16367 # config.h.in to produce config.h.
16368
16369 # Create a delimiter string that does not exist in confdefs.h, to ease
16370 # handling of long lines.
16371 ac_delim='%!_!# '
16372 for ac_last_try in false false :; do
16373   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16374   if test -z "$ac_tt"; then
16375     break
16376   elif $ac_last_try; then
16377     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16378   else
16379     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16380   fi
16381 done
16382
16383 # For the awk script, D is an array of macro values keyed by name,
16384 # likewise P contains macro parameters if any.  Preserve backslash
16385 # newline sequences.
16386
16387 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16388 sed -n '
16389 s/.\{148\}/&'"$ac_delim"'/g
16390 t rset
16391 :rset
16392 s/^[     ]*#[    ]*define[       ][      ]*/ /
16393 t def
16394 d
16395 :def
16396 s/\\$//
16397 t bsnl
16398 s/["\\]/\\&/g
16399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16400 D["\1"]=" \3"/p
16401 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16402 d
16403 :bsnl
16404 s/["\\]/\\&/g
16405 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16406 D["\1"]=" \3\\\\\\n"\\/p
16407 t cont
16408 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16409 t cont
16410 d
16411 :cont
16412 n
16413 s/.\{148\}/&'"$ac_delim"'/g
16414 t clear
16415 :clear
16416 s/\\$//
16417 t bsnlc
16418 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16419 d
16420 :bsnlc
16421 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16422 b cont
16423 ' <confdefs.h | sed '
16424 s/'"$ac_delim"'/"\\\
16425 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16426
16427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16428   for (key in D) D_is_set[key] = 1
16429   FS = "\a"
16430 }
16431 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16432   line = \$ 0
16433   split(line, arg, " ")
16434   if (arg[1] == "#") {
16435     defundef = arg[2]
16436     mac1 = arg[3]
16437   } else {
16438     defundef = substr(arg[1], 2)
16439     mac1 = arg[2]
16440   }
16441   split(mac1, mac2, "(") #)
16442   macro = mac2[1]
16443   prefix = substr(line, 1, index(line, defundef) - 1)
16444   if (D_is_set[macro]) {
16445     # Preserve the white space surrounding the "#".
16446     print prefix "define", macro P[macro] D[macro]
16447     next
16448   } else {
16449     # Replace #undef with comments.  This is necessary, for example,
16450     # in the case of _POSIX_SOURCE, which is predefined and required
16451     # on some systems where configure will not decide to define it.
16452     if (defundef == "undef") {
16453       print "/*", prefix defundef, macro, "*/"
16454       next
16455     }
16456   }
16457 }
16458 { print }
16459 _ACAWK
16460 _ACEOF
16461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16463 fi # test -n "$CONFIG_HEADERS"
16464
16465
16466 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16467 shift
16468 for ac_tag
16469 do
16470   case $ac_tag in
16471   :[FHLC]) ac_mode=$ac_tag; continue;;
16472   esac
16473   case $ac_mode$ac_tag in
16474   :[FHL]*:*);;
16475   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16476   :[FH]-) ac_tag=-:-;;
16477   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16478   esac
16479   ac_save_IFS=$IFS
16480   IFS=:
16481   set x $ac_tag
16482   IFS=$ac_save_IFS
16483   shift
16484   ac_file=$1
16485   shift
16486
16487   case $ac_mode in
16488   :L) ac_source=$1;;
16489   :[FH])
16490     ac_file_inputs=
16491     for ac_f
16492     do
16493       case $ac_f in
16494       -) ac_f="$ac_tmp/stdin";;
16495       *) # Look for the file first in the build tree, then in the source tree
16496          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16497          # because $ac_f cannot contain `:'.
16498          test -f "$ac_f" ||
16499            case $ac_f in
16500            [\\/$]*) false;;
16501            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16502            esac ||
16503            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16504       esac
16505       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16506       as_fn_append ac_file_inputs " '$ac_f'"
16507     done
16508
16509     # Let's still pretend it is `configure' which instantiates (i.e., don't
16510     # use $as_me), people would be surprised to read:
16511     #    /* config.h.  Generated by config.status.  */
16512     configure_input='Generated from '`
16513           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16514         `' by configure.'
16515     if test x"$ac_file" != x-; then
16516       configure_input="$ac_file.  $configure_input"
16517       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16518 $as_echo "$as_me: creating $ac_file" >&6;}
16519     fi
16520     # Neutralize special characters interpreted by sed in replacement strings.
16521     case $configure_input in #(
16522     *\&* | *\|* | *\\* )
16523        ac_sed_conf_input=`$as_echo "$configure_input" |
16524        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16525     *) ac_sed_conf_input=$configure_input;;
16526     esac
16527
16528     case $ac_tag in
16529     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16530       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16531     esac
16532     ;;
16533   esac
16534
16535   ac_dir=`$as_dirname -- "$ac_file" ||
16536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16537          X"$ac_file" : 'X\(//\)[^/]' \| \
16538          X"$ac_file" : 'X\(//\)$' \| \
16539          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16540 $as_echo X"$ac_file" |
16541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16542             s//\1/
16543             q
16544           }
16545           /^X\(\/\/\)[^/].*/{
16546             s//\1/
16547             q
16548           }
16549           /^X\(\/\/\)$/{
16550             s//\1/
16551             q
16552           }
16553           /^X\(\/\).*/{
16554             s//\1/
16555             q
16556           }
16557           s/.*/./; q'`
16558   as_dir="$ac_dir"; as_fn_mkdir_p
16559   ac_builddir=.
16560
16561 case "$ac_dir" in
16562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16563 *)
16564   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16565   # A ".." for each directory in $ac_dir_suffix.
16566   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16567   case $ac_top_builddir_sub in
16568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16570   esac ;;
16571 esac
16572 ac_abs_top_builddir=$ac_pwd
16573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16574 # for backward compatibility:
16575 ac_top_builddir=$ac_top_build_prefix
16576
16577 case $srcdir in
16578   .)  # We are building in place.
16579     ac_srcdir=.
16580     ac_top_srcdir=$ac_top_builddir_sub
16581     ac_abs_top_srcdir=$ac_pwd ;;
16582   [\\/]* | ?:[\\/]* )  # Absolute name.
16583     ac_srcdir=$srcdir$ac_dir_suffix;
16584     ac_top_srcdir=$srcdir
16585     ac_abs_top_srcdir=$srcdir ;;
16586   *) # Relative name.
16587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16588     ac_top_srcdir=$ac_top_build_prefix$srcdir
16589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16590 esac
16591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16592
16593
16594   case $ac_mode in
16595   :F)
16596   #
16597   # CONFIG_FILE
16598   #
16599
16600   case $INSTALL in
16601   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16602   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16603   esac
16604   ac_MKDIR_P=$MKDIR_P
16605   case $MKDIR_P in
16606   [\\/$]* | ?:[\\/]* ) ;;
16607   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16608   esac
16609 _ACEOF
16610
16611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16612 # If the template does not know about datarootdir, expand it.
16613 # FIXME: This hack should be removed a few years after 2.60.
16614 ac_datarootdir_hack=; ac_datarootdir_seen=
16615 ac_sed_dataroot='
16616 /datarootdir/ {
16617   p
16618   q
16619 }
16620 /@datadir@/p
16621 /@docdir@/p
16622 /@infodir@/p
16623 /@localedir@/p
16624 /@mandir@/p'
16625 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16626 *datarootdir*) ac_datarootdir_seen=yes;;
16627 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16628   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16629 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16630 _ACEOF
16631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16632   ac_datarootdir_hack='
16633   s&@datadir@&$datadir&g
16634   s&@docdir@&$docdir&g
16635   s&@infodir@&$infodir&g
16636   s&@localedir@&$localedir&g
16637   s&@mandir@&$mandir&g
16638   s&\\\${datarootdir}&$datarootdir&g' ;;
16639 esac
16640 _ACEOF
16641
16642 # Neutralize VPATH when `$srcdir' = `.'.
16643 # Shell code in configure.ac might set extrasub.
16644 # FIXME: do we really want to maintain this feature?
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 ac_sed_extra="$ac_vpsub
16647 $extrasub
16648 _ACEOF
16649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16650 :t
16651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16652 s|@configure_input@|$ac_sed_conf_input|;t t
16653 s&@top_builddir@&$ac_top_builddir_sub&;t t
16654 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16655 s&@srcdir@&$ac_srcdir&;t t
16656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16657 s&@top_srcdir@&$ac_top_srcdir&;t t
16658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16659 s&@builddir@&$ac_builddir&;t t
16660 s&@abs_builddir@&$ac_abs_builddir&;t t
16661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16662 s&@INSTALL@&$ac_INSTALL&;t t
16663 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16664 $ac_datarootdir_hack
16665 "
16666 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16667   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16668
16669 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16670   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16671   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16672       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16674 which seems to be undefined.  Please make sure it is defined" >&5
16675 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16676 which seems to be undefined.  Please make sure it is defined" >&2;}
16677
16678   rm -f "$ac_tmp/stdin"
16679   case $ac_file in
16680   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16681   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16682   esac \
16683   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16684  ;;
16685   :H)
16686   #
16687   # CONFIG_HEADER
16688   #
16689   if test x"$ac_file" != x-; then
16690     {
16691       $as_echo "/* $configure_input  */" \
16692       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16693     } >"$ac_tmp/config.h" \
16694       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16695     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16696       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16697 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16698     else
16699       rm -f "$ac_file"
16700       mv "$ac_tmp/config.h" "$ac_file" \
16701         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16702     fi
16703   else
16704     $as_echo "/* $configure_input  */" \
16705       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16706       || as_fn_error $? "could not create -" "$LINENO" 5
16707   fi
16708 # Compute "$ac_file"'s index in $config_headers.
16709 _am_arg="$ac_file"
16710 _am_stamp_count=1
16711 for _am_header in $config_headers :; do
16712   case $_am_header in
16713     $_am_arg | $_am_arg:* )
16714       break ;;
16715     * )
16716       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16717   esac
16718 done
16719 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16720 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16721          X"$_am_arg" : 'X\(//\)[^/]' \| \
16722          X"$_am_arg" : 'X\(//\)$' \| \
16723          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16724 $as_echo X"$_am_arg" |
16725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16726             s//\1/
16727             q
16728           }
16729           /^X\(\/\/\)[^/].*/{
16730             s//\1/
16731             q
16732           }
16733           /^X\(\/\/\)$/{
16734             s//\1/
16735             q
16736           }
16737           /^X\(\/\).*/{
16738             s//\1/
16739             q
16740           }
16741           s/.*/./; q'`/stamp-h$_am_stamp_count
16742  ;;
16743   :L)
16744   #
16745   # CONFIG_LINK
16746   #
16747
16748   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16749     :
16750   else
16751     # Prefer the file from the source tree if names are identical.
16752     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16753       ac_source=$srcdir/$ac_source
16754     fi
16755
16756     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16757 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16758
16759     if test ! -r "$ac_source"; then
16760       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16761     fi
16762     rm -f "$ac_file"
16763
16764     # Try a relative symlink, then a hard link, then a copy.
16765     case $ac_source in
16766     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16767         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16768     esac
16769     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16770       ln "$ac_source" "$ac_file" 2>/dev/null ||
16771       cp -p "$ac_source" "$ac_file" ||
16772       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16773   fi
16774  ;;
16775   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16776 $as_echo "$as_me: executing $ac_file commands" >&6;}
16777  ;;
16778   esac
16779
16780
16781   case $ac_file$ac_mode in
16782     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16783   if test ".$ax_enable_builddir" = ".." ; then
16784     if test -f "$top_srcdir/Makefile" ; then
16785       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16786 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16787     else
16788       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16789 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16790     fi
16791   else
16792     if test -f "$ac_top_srcdir/Makefile" ; then
16793       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16794       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16795     fi
16796     if test -f "$ac_top_srcdir/Makefile" ; then
16797         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16798         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16799       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16800       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16801       then rm $ac_top_srcdir/Makefile ; fi
16802       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16803     fi
16804     if test ! -f "$ac_top_srcdir/Makefile" ; then
16805       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16806 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16807       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16808 /^\$/n
16809 x
16810 /^\$/bS
16811 x
16812 /\\\\\$/{H;d;}
16813 {H;s/.*//;x;}
16814 bM
16815 :S
16816 x
16817 /\\\\\$/{h;d;}
16818 {h;s/.*//;x;}
16819 :M
16820 s/\\(\\n\\)     /\\1 /g
16821 /^      /d
16822 /^[      ]*[\\#]/d
16823 /^VPATH *=/d
16824 s/^srcdir *=.*/srcdir = ./
16825 s/^top_srcdir *=.*/top_srcdir = ./
16826 /[:=]/!d
16827 /^\\./d
16828 / = /b
16829 / .= /b
16830 /:/!b
16831 s/:.*/:/
16832 s/ /  /g
16833 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16834 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16835 s/  / /g
16836 /^all all-all[ :]/i\\
16837 all-configured : all-all
16838 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16839 /-all-all/d
16840 a\\
16841         @ HOST="\$(HOST)\" \\\\\\
16842         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16843         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16844         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16845         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16846         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16847         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16848         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16849         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16850         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16851 /dist-all *:/a\\
16852         @ HOST="\$(HOST)\" \\\\\\
16853         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16854         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16855         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16856         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16857         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16858         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16859         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16860         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16861         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16862 /dist-[a-zA-Z0-9]*-all *:/a\\
16863         @ HOST="\$(HOST)\" \\\\\\
16864         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16865         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16866         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16867         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16868         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16869         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16870         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16871         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16872         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16873 /distclean-all *:/a\\
16874         @ HOST="\$(HOST)\" \\\\\\
16875         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16876         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16877         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16878         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16879         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16880         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16881         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16882         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16883         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16884         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16885         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16886 _EOF
16887       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16888       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16889       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16890         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16891 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16892         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16893       fi ; xxxx="####"
16894       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16895       # sanity check
16896       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16897         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16898 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16899         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16900           >$ac_top_srcdir/Makefile~
16901         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16902       fi
16903     else
16904       xxxx="\\#\\#\\#\\#"
16905       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16906       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16907       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16908         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16909         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16910       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16911         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16912 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16913         rm "$tmp/mkfile.tmp"
16914       else
16915         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16916 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16917         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16918       fi
16919     fi
16920     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16921 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16922     xxxx="####"
16923     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16924   fi
16925  ;;
16926     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16927   # Older Autoconf quotes --file arguments for eval, but not when files
16928   # are listed without --file.  Let's play safe and only enable the eval
16929   # if we detect the quoting.
16930   case $CONFIG_FILES in
16931   *\'*) eval set x "$CONFIG_FILES" ;;
16932   *)   set x $CONFIG_FILES ;;
16933   esac
16934   shift
16935   for mf
16936   do
16937     # Strip MF so we end up with the name of the file.
16938     mf=`echo "$mf" | sed -e 's/:.*$//'`
16939     # Check whether this is an Automake generated Makefile or not.
16940     # We used to match only the files named 'Makefile.in', but
16941     # some people rename them; so instead we look at the file content.
16942     # Grep'ing the first line is not enough: some people post-process
16943     # each Makefile.in and add a new line on top of each file to say so.
16944     # Grep'ing the whole file is not good either: AIX grep has a line
16945     # limit of 2048, but all sed's we know have understand at least 4000.
16946     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16947       dirpart=`$as_dirname -- "$mf" ||
16948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16949          X"$mf" : 'X\(//\)[^/]' \| \
16950          X"$mf" : 'X\(//\)$' \| \
16951          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16952 $as_echo X"$mf" |
16953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16954             s//\1/
16955             q
16956           }
16957           /^X\(\/\/\)[^/].*/{
16958             s//\1/
16959             q
16960           }
16961           /^X\(\/\/\)$/{
16962             s//\1/
16963             q
16964           }
16965           /^X\(\/\).*/{
16966             s//\1/
16967             q
16968           }
16969           s/.*/./; q'`
16970     else
16971       continue
16972     fi
16973     # Extract the definition of DEPDIR, am__include, and am__quote
16974     # from the Makefile without running 'make'.
16975     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16976     test -z "$DEPDIR" && continue
16977     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16978     test -z "$am__include" && continue
16979     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16980     # Find all dependency output files, they are included files with
16981     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16982     # simplest approach to changing $(DEPDIR) to its actual value in the
16983     # expansion.
16984     for file in `sed -n "
16985       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16986          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16987       # Make sure the directory exists.
16988       test -f "$dirpart/$file" && continue
16989       fdir=`$as_dirname -- "$file" ||
16990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16991          X"$file" : 'X\(//\)[^/]' \| \
16992          X"$file" : 'X\(//\)$' \| \
16993          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16994 $as_echo X"$file" |
16995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16996             s//\1/
16997             q
16998           }
16999           /^X\(\/\/\)[^/].*/{
17000             s//\1/
17001             q
17002           }
17003           /^X\(\/\/\)$/{
17004             s//\1/
17005             q
17006           }
17007           /^X\(\/\).*/{
17008             s//\1/
17009             q
17010           }
17011           s/.*/./; q'`
17012       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17013       # echo "creating $dirpart/$file"
17014       echo '# dummy' > "$dirpart/$file"
17015     done
17016   done
17017 }
17018  ;;
17019     "libtool":C)
17020
17021     # See if we are running on zsh, and set the options which allow our
17022     # commands through without removal of \ escapes.
17023     if test -n "${ZSH_VERSION+set}" ; then
17024       setopt NO_GLOB_SUBST
17025     fi
17026
17027     cfgfile="${ofile}T"
17028     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17029     $RM "$cfgfile"
17030
17031     cat <<_LT_EOF >> "$cfgfile"
17032 #! $SHELL
17033
17034 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17035 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17037 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17038 #
17039 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17040 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17041 #                 Foundation, Inc.
17042 #   Written by Gordon Matzigkeit, 1996
17043 #
17044 #   This file is part of GNU Libtool.
17045 #
17046 # GNU Libtool is free software; you can redistribute it and/or
17047 # modify it under the terms of the GNU General Public License as
17048 # published by the Free Software Foundation; either version 2 of
17049 # the License, or (at your option) any later version.
17050 #
17051 # As a special exception to the GNU General Public License,
17052 # if you distribute this file as part of a program or library that
17053 # is built using GNU Libtool, you may include this file under the
17054 # same distribution terms that you use for the rest of that program.
17055 #
17056 # GNU Libtool is distributed in the hope that it will be useful,
17057 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17058 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17059 # GNU General Public License for more details.
17060 #
17061 # You should have received a copy of the GNU General Public License
17062 # along with GNU Libtool; see the file COPYING.  If not, a copy
17063 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17064 # obtained by writing to the Free Software Foundation, Inc.,
17065 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17066
17067
17068 # The names of the tagged configurations supported by this script.
17069 available_tags=""
17070
17071 # ### BEGIN LIBTOOL CONFIG
17072
17073 # Which release of libtool.m4 was used?
17074 macro_version=$macro_version
17075 macro_revision=$macro_revision
17076
17077 # Whether or not to build shared libraries.
17078 build_libtool_libs=$enable_shared
17079
17080 # Whether or not to build static libraries.
17081 build_old_libs=$enable_static
17082
17083 # What type of objects to build.
17084 pic_mode=$pic_mode
17085
17086 # Whether or not to optimize for fast installation.
17087 fast_install=$enable_fast_install
17088
17089 # Shell to use when invoking shell scripts.
17090 SHELL=$lt_SHELL
17091
17092 # An echo program that protects backslashes.
17093 ECHO=$lt_ECHO
17094
17095 # The PATH separator for the build system.
17096 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17097
17098 # The host system.
17099 host_alias=$host_alias
17100 host=$host
17101 host_os=$host_os
17102
17103 # The build system.
17104 build_alias=$build_alias
17105 build=$build
17106 build_os=$build_os
17107
17108 # A sed program that does not truncate output.
17109 SED=$lt_SED
17110
17111 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17112 Xsed="\$SED -e 1s/^X//"
17113
17114 # A grep program that handles long lines.
17115 GREP=$lt_GREP
17116
17117 # An ERE matcher.
17118 EGREP=$lt_EGREP
17119
17120 # A literal string matcher.
17121 FGREP=$lt_FGREP
17122
17123 # A BSD- or MS-compatible name lister.
17124 NM=$lt_NM
17125
17126 # Whether we need soft or hard links.
17127 LN_S=$lt_LN_S
17128
17129 # What is the maximum length of a command?
17130 max_cmd_len=$max_cmd_len
17131
17132 # Object file suffix (normally "o").
17133 objext=$ac_objext
17134
17135 # Executable file suffix (normally "").
17136 exeext=$exeext
17137
17138 # whether the shell understands "unset".
17139 lt_unset=$lt_unset
17140
17141 # turn spaces into newlines.
17142 SP2NL=$lt_lt_SP2NL
17143
17144 # turn newlines into spaces.
17145 NL2SP=$lt_lt_NL2SP
17146
17147 # convert \$build file names to \$host format.
17148 to_host_file_cmd=$lt_cv_to_host_file_cmd
17149
17150 # convert \$build files to toolchain format.
17151 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17152
17153 # An object symbol dumper.
17154 OBJDUMP=$lt_OBJDUMP
17155
17156 # Method to check whether dependent libraries are shared objects.
17157 deplibs_check_method=$lt_deplibs_check_method
17158
17159 # Command to use when deplibs_check_method = "file_magic".
17160 file_magic_cmd=$lt_file_magic_cmd
17161
17162 # How to find potential files when deplibs_check_method = "file_magic".
17163 file_magic_glob=$lt_file_magic_glob
17164
17165 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17166 want_nocaseglob=$lt_want_nocaseglob
17167
17168 # DLL creation program.
17169 DLLTOOL=$lt_DLLTOOL
17170
17171 # Command to associate shared and link libraries.
17172 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17173
17174 # The archiver.
17175 AR=$lt_AR
17176
17177 # Flags to create an archive.
17178 AR_FLAGS=$lt_AR_FLAGS
17179
17180 # How to feed a file listing to the archiver.
17181 archiver_list_spec=$lt_archiver_list_spec
17182
17183 # A symbol stripping program.
17184 STRIP=$lt_STRIP
17185
17186 # Commands used to install an old-style archive.
17187 RANLIB=$lt_RANLIB
17188 old_postinstall_cmds=$lt_old_postinstall_cmds
17189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17190
17191 # Whether to use a lock for old archive extraction.
17192 lock_old_archive_extraction=$lock_old_archive_extraction
17193
17194 # A C compiler.
17195 LTCC=$lt_CC
17196
17197 # LTCC compiler flags.
17198 LTCFLAGS=$lt_CFLAGS
17199
17200 # Take the output of nm and produce a listing of raw symbols and C names.
17201 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17202
17203 # Transform the output of nm in a proper C declaration.
17204 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17205
17206 # Transform the output of nm in a C name address pair.
17207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17208
17209 # Transform the output of nm in a C name address pair when lib prefix is needed.
17210 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17211
17212 # Specify filename containing input files for \$NM.
17213 nm_file_list_spec=$lt_nm_file_list_spec
17214
17215 # The root where to search for dependent libraries,and in which our libraries should be installed.
17216 lt_sysroot=$lt_sysroot
17217
17218 # The name of the directory that contains temporary libtool files.
17219 objdir=$objdir
17220
17221 # Used to examine libraries when file_magic_cmd begins with "file".
17222 MAGIC_CMD=$MAGIC_CMD
17223
17224 # Must we lock files when doing compilation?
17225 need_locks=$lt_need_locks
17226
17227 # Manifest tool.
17228 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17229
17230 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17231 DSYMUTIL=$lt_DSYMUTIL
17232
17233 # Tool to change global to local symbols on Mac OS X.
17234 NMEDIT=$lt_NMEDIT
17235
17236 # Tool to manipulate fat objects and archives on Mac OS X.
17237 LIPO=$lt_LIPO
17238
17239 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17240 OTOOL=$lt_OTOOL
17241
17242 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17243 OTOOL64=$lt_OTOOL64
17244
17245 # Old archive suffix (normally "a").
17246 libext=$libext
17247
17248 # Shared library suffix (normally ".so").
17249 shrext_cmds=$lt_shrext_cmds
17250
17251 # The commands to extract the exported symbol list from a shared archive.
17252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17253
17254 # Variables whose values should be saved in libtool wrapper scripts and
17255 # restored at link time.
17256 variables_saved_for_relink=$lt_variables_saved_for_relink
17257
17258 # Do we need the "lib" prefix for modules?
17259 need_lib_prefix=$need_lib_prefix
17260
17261 # Do we need a version for libraries?
17262 need_version=$need_version
17263
17264 # Library versioning type.
17265 version_type=$version_type
17266
17267 # Shared library runtime path variable.
17268 runpath_var=$runpath_var
17269
17270 # Shared library path variable.
17271 shlibpath_var=$shlibpath_var
17272
17273 # Is shlibpath searched before the hard-coded library search path?
17274 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17275
17276 # Format of library name prefix.
17277 libname_spec=$lt_libname_spec
17278
17279 # List of archive names.  First name is the real one, the rest are links.
17280 # The last name is the one that the linker finds with -lNAME
17281 library_names_spec=$lt_library_names_spec
17282
17283 # The coded name of the library, if different from the real name.
17284 soname_spec=$lt_soname_spec
17285
17286 # Permission mode override for installation of shared libraries.
17287 install_override_mode=$lt_install_override_mode
17288
17289 # Command to use after installation of a shared archive.
17290 postinstall_cmds=$lt_postinstall_cmds
17291
17292 # Command to use after uninstallation of a shared archive.
17293 postuninstall_cmds=$lt_postuninstall_cmds
17294
17295 # Commands used to finish a libtool library installation in a directory.
17296 finish_cmds=$lt_finish_cmds
17297
17298 # As "finish_cmds", except a single script fragment to be evaled but
17299 # not shown.
17300 finish_eval=$lt_finish_eval
17301
17302 # Whether we should hardcode library paths into libraries.
17303 hardcode_into_libs=$hardcode_into_libs
17304
17305 # Compile-time system search path for libraries.
17306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17307
17308 # Run-time system search path for libraries.
17309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17310
17311 # Whether dlopen is supported.
17312 dlopen_support=$enable_dlopen
17313
17314 # Whether dlopen of programs is supported.
17315 dlopen_self=$enable_dlopen_self
17316
17317 # Whether dlopen of statically linked programs is supported.
17318 dlopen_self_static=$enable_dlopen_self_static
17319
17320 # Commands to strip libraries.
17321 old_striplib=$lt_old_striplib
17322 striplib=$lt_striplib
17323
17324
17325 # The linker used to build libraries.
17326 LD=$lt_LD
17327
17328 # How to create reloadable object files.
17329 reload_flag=$lt_reload_flag
17330 reload_cmds=$lt_reload_cmds
17331
17332 # Commands used to build an old-style archive.
17333 old_archive_cmds=$lt_old_archive_cmds
17334
17335 # A language specific compiler.
17336 CC=$lt_compiler
17337
17338 # Is the compiler the GNU compiler?
17339 with_gcc=$GCC
17340
17341 # Compiler flag to turn off builtin functions.
17342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17343
17344 # Additional compiler flags for building library objects.
17345 pic_flag=$lt_lt_prog_compiler_pic
17346
17347 # How to pass a linker flag through the compiler.
17348 wl=$lt_lt_prog_compiler_wl
17349
17350 # Compiler flag to prevent dynamic linking.
17351 link_static_flag=$lt_lt_prog_compiler_static
17352
17353 # Does compiler simultaneously support -c and -o options?
17354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17355
17356 # Whether or not to add -lc for building shared libraries.
17357 build_libtool_need_lc=$archive_cmds_need_lc
17358
17359 # Whether or not to disallow shared libs when runtime libs are static.
17360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17361
17362 # Compiler flag to allow reflexive dlopens.
17363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17364
17365 # Compiler flag to generate shared objects directly from archives.
17366 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17367
17368 # Whether the compiler copes with passing no objects directly.
17369 compiler_needs_object=$lt_compiler_needs_object
17370
17371 # Create an old-style archive from a shared archive.
17372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17373
17374 # Create a temporary old-style archive to link instead of a shared archive.
17375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17376
17377 # Commands used to build a shared archive.
17378 archive_cmds=$lt_archive_cmds
17379 archive_expsym_cmds=$lt_archive_expsym_cmds
17380
17381 # Commands used to build a loadable module if different from building
17382 # a shared archive.
17383 module_cmds=$lt_module_cmds
17384 module_expsym_cmds=$lt_module_expsym_cmds
17385
17386 # Whether we are building with GNU ld or not.
17387 with_gnu_ld=$lt_with_gnu_ld
17388
17389 # Flag that allows shared libraries with undefined symbols to be built.
17390 allow_undefined_flag=$lt_allow_undefined_flag
17391
17392 # Flag that enforces no undefined symbols.
17393 no_undefined_flag=$lt_no_undefined_flag
17394
17395 # Flag to hardcode \$libdir into a binary during linking.
17396 # This must work even if \$libdir does not exist
17397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17398
17399 # Whether we need a single "-rpath" flag with a separated argument.
17400 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17401
17402 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17403 # DIR into the resulting binary.
17404 hardcode_direct=$hardcode_direct
17405
17406 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17407 # DIR into the resulting binary and the resulting library dependency is
17408 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17409 # library is relocated.
17410 hardcode_direct_absolute=$hardcode_direct_absolute
17411
17412 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17413 # into the resulting binary.
17414 hardcode_minus_L=$hardcode_minus_L
17415
17416 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17417 # into the resulting binary.
17418 hardcode_shlibpath_var=$hardcode_shlibpath_var
17419
17420 # Set to "yes" if building a shared library automatically hardcodes DIR
17421 # into the library and all subsequent libraries and executables linked
17422 # against it.
17423 hardcode_automatic=$hardcode_automatic
17424
17425 # Set to yes if linker adds runtime paths of dependent libraries
17426 # to runtime path list.
17427 inherit_rpath=$inherit_rpath
17428
17429 # Whether libtool must link a program against all its dependency libraries.
17430 link_all_deplibs=$link_all_deplibs
17431
17432 # Set to "yes" if exported symbols are required.
17433 always_export_symbols=$always_export_symbols
17434
17435 # The commands to list exported symbols.
17436 export_symbols_cmds=$lt_export_symbols_cmds
17437
17438 # Symbols that should not be listed in the preloaded symbols.
17439 exclude_expsyms=$lt_exclude_expsyms
17440
17441 # Symbols that must always be exported.
17442 include_expsyms=$lt_include_expsyms
17443
17444 # Commands necessary for linking programs (against libraries) with templates.
17445 prelink_cmds=$lt_prelink_cmds
17446
17447 # Commands necessary for finishing linking programs.
17448 postlink_cmds=$lt_postlink_cmds
17449
17450 # Specify filename containing input files.
17451 file_list_spec=$lt_file_list_spec
17452
17453 # How to hardcode a shared library path into an executable.
17454 hardcode_action=$hardcode_action
17455
17456 # ### END LIBTOOL CONFIG
17457
17458 _LT_EOF
17459
17460   case $host_os in
17461   aix3*)
17462     cat <<\_LT_EOF >> "$cfgfile"
17463 # AIX sometimes has problems with the GCC collect2 program.  For some
17464 # reason, if we set the COLLECT_NAMES environment variable, the problems
17465 # vanish in a puff of smoke.
17466 if test "X${COLLECT_NAMES+set}" != Xset; then
17467   COLLECT_NAMES=
17468   export COLLECT_NAMES
17469 fi
17470 _LT_EOF
17471     ;;
17472   esac
17473
17474
17475 ltmain="$ac_aux_dir/ltmain.sh"
17476
17477
17478   # We use sed instead of cat because bash on DJGPP gets confused if
17479   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17480   # text mode, it properly converts lines to CR/LF.  This bash problem
17481   # is reportedly fixed, but why not run on old versions too?
17482   sed '$q' "$ltmain" >> "$cfgfile" \
17483      || (rm -f "$cfgfile"; exit 1)
17484
17485   if test x"$xsi_shell" = xyes; then
17486   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17487 func_dirname ()\
17488 {\
17489 \    case ${1} in\
17490 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17491 \      *  ) func_dirname_result="${3}" ;;\
17492 \    esac\
17493 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17494   && mv -f "$cfgfile.tmp" "$cfgfile" \
17495     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17496 test 0 -eq $? || _lt_function_replace_fail=:
17497
17498
17499   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17500 func_basename ()\
17501 {\
17502 \    func_basename_result="${1##*/}"\
17503 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17504   && mv -f "$cfgfile.tmp" "$cfgfile" \
17505     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17506 test 0 -eq $? || _lt_function_replace_fail=:
17507
17508
17509   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17510 func_dirname_and_basename ()\
17511 {\
17512 \    case ${1} in\
17513 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17514 \      *  ) func_dirname_result="${3}" ;;\
17515 \    esac\
17516 \    func_basename_result="${1##*/}"\
17517 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17518   && mv -f "$cfgfile.tmp" "$cfgfile" \
17519     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17520 test 0 -eq $? || _lt_function_replace_fail=:
17521
17522
17523   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17524 func_stripname ()\
17525 {\
17526 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17527 \    # positional parameters, so assign one to ordinary parameter first.\
17528 \    func_stripname_result=${3}\
17529 \    func_stripname_result=${func_stripname_result#"${1}"}\
17530 \    func_stripname_result=${func_stripname_result%"${2}"}\
17531 } # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\
17538 func_split_long_opt ()\
17539 {\
17540 \    func_split_long_opt_name=${1%%=*}\
17541 \    func_split_long_opt_arg=${1#*=}\
17542 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17543   && mv -f "$cfgfile.tmp" "$cfgfile" \
17544     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17545 test 0 -eq $? || _lt_function_replace_fail=:
17546
17547
17548   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17549 func_split_short_opt ()\
17550 {\
17551 \    func_split_short_opt_arg=${1#??}\
17552 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17553 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17554   && mv -f "$cfgfile.tmp" "$cfgfile" \
17555     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17556 test 0 -eq $? || _lt_function_replace_fail=:
17557
17558
17559   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17560 func_lo2o ()\
17561 {\
17562 \    case ${1} in\
17563 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17564 \      *)    func_lo2o_result=${1} ;;\
17565 \    esac\
17566 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17567   && mv -f "$cfgfile.tmp" "$cfgfile" \
17568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17569 test 0 -eq $? || _lt_function_replace_fail=:
17570
17571
17572   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17573 func_xform ()\
17574 {\
17575     func_xform_result=${1%.*}.lo\
17576 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17577   && mv -f "$cfgfile.tmp" "$cfgfile" \
17578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17579 test 0 -eq $? || _lt_function_replace_fail=:
17580
17581
17582   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17583 func_arith ()\
17584 {\
17585     func_arith_result=$(( $* ))\
17586 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17587   && mv -f "$cfgfile.tmp" "$cfgfile" \
17588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17589 test 0 -eq $? || _lt_function_replace_fail=:
17590
17591
17592   sed -e '/^func_len ()$/,/^} # func_len /c\
17593 func_len ()\
17594 {\
17595     func_len_result=${#1}\
17596 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17597   && mv -f "$cfgfile.tmp" "$cfgfile" \
17598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17599 test 0 -eq $? || _lt_function_replace_fail=:
17600
17601 fi
17602
17603 if test x"$lt_shell_append" = xyes; then
17604   sed -e '/^func_append ()$/,/^} # func_append /c\
17605 func_append ()\
17606 {\
17607     eval "${1}+=\\${2}"\
17608 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17609   && mv -f "$cfgfile.tmp" "$cfgfile" \
17610     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17611 test 0 -eq $? || _lt_function_replace_fail=:
17612
17613
17614   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17615 func_append_quoted ()\
17616 {\
17617 \    func_quote_for_eval "${2}"\
17618 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17619 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17620   && mv -f "$cfgfile.tmp" "$cfgfile" \
17621     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17622 test 0 -eq $? || _lt_function_replace_fail=:
17623
17624
17625   # Save a `func_append' function call where possible by direct use of '+='
17626   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17627     && mv -f "$cfgfile.tmp" "$cfgfile" \
17628       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17629   test 0 -eq $? || _lt_function_replace_fail=:
17630 else
17631   # Save a `func_append' function call even when '+=' is not available
17632   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17633     && mv -f "$cfgfile.tmp" "$cfgfile" \
17634       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17635   test 0 -eq $? || _lt_function_replace_fail=:
17636 fi
17637
17638 if test x"$_lt_function_replace_fail" = x":"; then
17639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17640 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17641 fi
17642
17643
17644    mv -f "$cfgfile" "$ofile" ||
17645     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17646   chmod +x "$ofile"
17647
17648  ;;
17649     "include":C) test -d include || mkdir include ;;
17650     "src":C)
17651 test -d src || mkdir src
17652 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17653  ;;
17654
17655   esac
17656 done # for ac_tag
17657
17658
17659 as_fn_exit 0
17660 _ACEOF
17661 ac_clean_files=$ac_clean_files_save
17662
17663 test $ac_write_fail = 0 ||
17664   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17665
17666
17667 # configure is writing to config.log, and then calls config.status.
17668 # config.status does its own redirection, appending to config.log.
17669 # Unfortunately, on DOS this fails, as config.log is still kept open
17670 # by configure, so config.status won't be able to write to it; its
17671 # output is simply discarded.  So we exec the FD to /dev/null,
17672 # effectively closing config.log, so it can be properly (re)opened and
17673 # appended to by config.status.  When coming back to configure, we
17674 # need to make the FD available again.
17675 if test "$no_create" != yes; then
17676   ac_cs_success=:
17677   ac_config_status_args=
17678   test "$silent" = yes &&
17679     ac_config_status_args="$ac_config_status_args --quiet"
17680   exec 5>/dev/null
17681   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17682   exec 5>>config.log
17683   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17684   # would make configure fail if this is the last instruction.
17685   $ac_cs_success || as_fn_exit 1
17686 fi
17687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17688   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17689 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17690 fi
17691