Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / ctypes / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libffi 3.0.10rc0.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://gcc.gnu.org/bugs.html about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='libffi'
703 PACKAGE_TARNAME='libffi'
704 PACKAGE_VERSION='3.0.10rc0'
705 PACKAGE_STRING='libffi 3.0.10rc0'
706 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 toolexeclibdir
750 toolexecdir
751 FFI_DEBUG_FALSE
752 FFI_DEBUG_TRUE
753 TARGETDIR
754 TARGET
755 HAVE_LONG_DOUBLE
756 ALLOCA
757 PA64_HPUX_FALSE
758 PA64_HPUX_TRUE
759 PA_HPUX_FALSE
760 PA_HPUX_TRUE
761 PA_LINUX_FALSE
762 PA_LINUX_TRUE
763 SH64_FALSE
764 SH64_TRUE
765 SH_FALSE
766 SH_TRUE
767 X86_64_FALSE
768 X86_64_TRUE
769 S390_FALSE
770 S390_TRUE
771 FRV_FALSE
772 FRV_TRUE
773 LIBFFI_CRIS_FALSE
774 LIBFFI_CRIS_TRUE
775 AVR32_FALSE
776 AVR32_TRUE
777 ARM_FALSE
778 ARM_TRUE
779 POWERPC_FREEBSD_FALSE
780 POWERPC_FREEBSD_TRUE
781 POWERPC_DARWIN_FALSE
782 POWERPC_DARWIN_TRUE
783 POWERPC_AIX_FALSE
784 POWERPC_AIX_TRUE
785 POWERPC_FALSE
786 POWERPC_TRUE
787 MOXIE_FALSE
788 MOXIE_TRUE
789 M68K_FALSE
790 M68K_TRUE
791 M32R_FALSE
792 M32R_TRUE
793 IA64_FALSE
794 IA64_TRUE
795 ALPHA_FALSE
796 ALPHA_TRUE
797 X86_DARWIN_FALSE
798 X86_DARWIN_TRUE
799 X86_WIN64_FALSE
800 X86_WIN64_TRUE
801 X86_WIN32_FALSE
802 X86_WIN32_TRUE
803 X86_FREEBSD_FALSE
804 X86_FREEBSD_TRUE
805 X86_FALSE
806 X86_TRUE
807 SPARC_FALSE
808 SPARC_TRUE
809 MIPS_FALSE
810 MIPS_TRUE
811 AM_LTLDFLAGS
812 AM_RUNTESTFLAGS
813 TESTSUBDIR_FALSE
814 TESTSUBDIR_TRUE
815 MAINT
816 MAINTAINER_MODE_FALSE
817 MAINTAINER_MODE_TRUE
818 CPP
819 OTOOL64
820 OTOOL
821 LIPO
822 NMEDIT
823 DSYMUTIL
824 lt_ECHO
825 RANLIB
826 AR
827 OBJDUMP
828 LN_S
829 NM
830 ac_ct_DUMPBIN
831 DUMPBIN
832 LD
833 FGREP
834 EGREP
835 GREP
836 SED
837 LIBTOOL
838 am__fastdepCCAS_FALSE
839 am__fastdepCCAS_TRUE
840 CCASDEPMODE
841 CCASFLAGS
842 CCAS
843 am__fastdepCC_FALSE
844 am__fastdepCC_TRUE
845 CCDEPMODE
846 AMDEPBACKSLASH
847 AMDEP_FALSE
848 AMDEP_TRUE
849 am__quote
850 am__include
851 DEPDIR
852 OBJEXT
853 EXEEXT
854 ac_ct_CC
855 CPPFLAGS
856 LDFLAGS
857 CFLAGS
858 CC
859 am__untar
860 am__tar
861 AMTAR
862 am__leading_dot
863 SET_MAKE
864 AWK
865 mkdir_p
866 MKDIR_P
867 INSTALL_STRIP_PROGRAM
868 STRIP
869 install_sh
870 MAKEINFO
871 AUTOHEADER
872 AUTOMAKE
873 AUTOCONF
874 ACLOCAL
875 VERSION
876 PACKAGE
877 CYGPATH_W
878 am__isrc
879 INSTALL_DATA
880 INSTALL_SCRIPT
881 INSTALL_PROGRAM
882 target_os
883 target_vendor
884 target_cpu
885 target
886 host_os
887 host_vendor
888 host_cpu
889 host
890 build_os
891 build_vendor
892 build_cpu
893 build
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_URL
925 PACKAGE_BUGREPORT
926 PACKAGE_STRING
927 PACKAGE_VERSION
928 PACKAGE_TARNAME
929 PACKAGE_NAME
930 PATH_SEPARATOR
931 SHELL'
932 ac_subst_files=''
933 ac_user_opts='
934 enable_option_checking
935 enable_dependency_tracking
936 enable_shared
937 enable_static
938 with_pic
939 enable_fast_install
940 with_gnu_ld
941 enable_libtool_lock
942 enable_maintainer_mode
943 enable_debug
944 enable_structs
945 enable_raw_api
946 enable_purify_safety
947 '
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CCAS
952 CCASFLAGS
953 CPP
954 CPPFLAGS'
955
956
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1004
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009   # If the previous option needs an argument, assign it.
1010   if test -n "$ac_prev"; then
1011     eval $ac_prev=\$ac_option
1012     ac_prev=
1013     continue
1014   fi
1015
1016   case $ac_option in
1017   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018   *)    ac_optarg=yes ;;
1019   esac
1020
1021   # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023   case $ac_dashdash$ac_option in
1024   --)
1025     ac_dashdash=yes ;;
1026
1027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028     ac_prev=bindir ;;
1029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030     bindir=$ac_optarg ;;
1031
1032   -build | --build | --buil | --bui | --bu)
1033     ac_prev=build_alias ;;
1034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035     build_alias=$ac_optarg ;;
1036
1037   -cache-file | --cache-file | --cache-fil | --cache-fi \
1038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039     ac_prev=cache_file ;;
1040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042     cache_file=$ac_optarg ;;
1043
1044   --config-cache | -C)
1045     cache_file=config.cache ;;
1046
1047   -datadir | --datadir | --datadi | --datad)
1048     ac_prev=datadir ;;
1049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050     datadir=$ac_optarg ;;
1051
1052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053   | --dataroo | --dataro | --datar)
1054     ac_prev=datarootdir ;;
1055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057     datarootdir=$ac_optarg ;;
1058
1059   -disable-* | --disable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error "invalid feature name: $ac_useropt"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=no ;;
1074
1075   -docdir | --docdir | --docdi | --doc | --do)
1076     ac_prev=docdir ;;
1077   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078     docdir=$ac_optarg ;;
1079
1080   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081     ac_prev=dvidir ;;
1082   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083     dvidir=$ac_optarg ;;
1084
1085   -enable-* | --enable-*)
1086     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087     # Reject names that are not valid shell variable names.
1088     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089       as_fn_error "invalid feature name: $ac_useropt"
1090     ac_useropt_orig=$ac_useropt
1091     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092     case $ac_user_opts in
1093       *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097          ac_unrecognized_sep=', ';;
1098     esac
1099     eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245     ac_prev=sbindir ;;
1246   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247   | --sbi=* | --sb=*)
1248     sbindir=$ac_optarg ;;
1249
1250   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252   | --sharedst | --shareds | --shared | --share | --shar \
1253   | --sha | --sh)
1254     ac_prev=sharedstatedir ;;
1255   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258   | --sha=* | --sh=*)
1259     sharedstatedir=$ac_optarg ;;
1260
1261   -site | --site | --sit)
1262     ac_prev=site ;;
1263   -site=* | --site=* | --sit=*)
1264     site=$ac_optarg ;;
1265
1266   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267     ac_prev=srcdir ;;
1268   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269     srcdir=$ac_optarg ;;
1270
1271   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272   | --syscon | --sysco | --sysc | --sys | --sy)
1273     ac_prev=sysconfdir ;;
1274   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276     sysconfdir=$ac_optarg ;;
1277
1278   -target | --target | --targe | --targ | --tar | --ta | --t)
1279     ac_prev=target_alias ;;
1280   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281     target_alias=$ac_optarg ;;
1282
1283   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284     verbose=yes ;;
1285
1286   -version | --version | --versio | --versi | --vers | -V)
1287     ac_init_version=: ;;
1288
1289   -with-* | --with-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=\$ac_optarg ;;
1304
1305   -without-* | --without-*)
1306     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309       as_fn_error "invalid package name: $ac_useropt"
1310     ac_useropt_orig=$ac_useropt
1311     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312     case $ac_user_opts in
1313       *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317          ac_unrecognized_sep=', ';;
1318     esac
1319     eval with_$ac_useropt=no ;;
1320
1321   --x)
1322     # Obsolete; use --with-x.
1323     with_x=yes ;;
1324
1325   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326   | --x-incl | --x-inc | --x-in | --x-i)
1327     ac_prev=x_includes ;;
1328   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330     x_includes=$ac_optarg ;;
1331
1332   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334     ac_prev=x_libraries ;;
1335   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337     x_libraries=$ac_optarg ;;
1338
1339   -*) as_fn_error "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information."
1341     ;;
1342
1343   *=*)
1344     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345     # Reject names that are not valid shell variable names.
1346     case $ac_envvar in #(
1347       '' | [0-9]* | *[!_$as_cr_alnum]* )
1348       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1349     esac
1350     eval $ac_envvar=\$ac_optarg
1351     export $ac_envvar ;;
1352
1353   *)
1354     # FIXME: should be removed in autoconf 3.0.
1355     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359     ;;
1360
1361   esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366   as_fn_error "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370   case $enable_option_checking in
1371     no) ;;
1372     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1373     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374   esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379                 datadir sysconfdir sharedstatedir localstatedir includedir \
1380                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381                 libdir localedir mandir
1382 do
1383   eval ac_val=\$$ac_var
1384   # Remove trailing slashes.
1385   case $ac_val in
1386     */ )
1387       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388       eval $ac_var=\$ac_val;;
1389   esac
1390   # Be sure to have absolute directory names.
1391   case $ac_val in
1392     [\\/$]* | ?:[\\/]* )  continue;;
1393     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394   esac
1395   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407   if test "x$build_alias" = x; then
1408     cross_compiling=maybe
1409     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410     If a cross compiler is detected then cross compile mode will be used." >&2
1411   elif test "x$build_alias" != "x$host_alias"; then
1412     cross_compiling=yes
1413   fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425   as_fn_error "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427   as_fn_error "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432   ac_srcdir_defaulted=yes
1433   # Try the directory containing this script, then the parent directory.
1434   ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436          X"$as_myself" : 'X\(//\)[^/]' \| \
1437          X"$as_myself" : 'X\(//\)$' \| \
1438          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)[^/].*/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\/\)$/{
1449             s//\1/
1450             q
1451           }
1452           /^X\(\/\).*/{
1453             s//\1/
1454             q
1455           }
1456           s/.*/./; q'`
1457   srcdir=$ac_confdir
1458   if test ! -r "$srcdir/$ac_unique_file"; then
1459     srcdir=..
1460   fi
1461 else
1462   ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471         pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474   srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_env_${ac_var}_value=\$${ac_var}
1485   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493   # Omit some internal or obsolete options to make the list less imposing.
1494   # This message is too long to be a string in the A/UX 3.1 sh.
1495   cat <<_ACEOF
1496 \`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE.  See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506   -h, --help              display this help and exit
1507       --help=short        display options specific to this package
1508       --help=recursive    display the short help of all the included packages
1509   -V, --version           display version information and exit
1510   -q, --quiet, --silent   do not print \`checking...' messages
1511       --cache-file=FILE   cache test results in FILE [disabled]
1512   -C, --config-cache      alias for \`--cache-file=config.cache'
1513   -n, --no-create         do not create output files
1514       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517   --prefix=PREFIX         install architecture-independent files in PREFIX
1518                           [$ac_default_prefix]
1519   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1520                           [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530   --bindir=DIR            user executables [EPREFIX/bin]
1531   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1532   --libexecdir=DIR        program executables [EPREFIX/libexec]
1533   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1534   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1535   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1536   --libdir=DIR            object code libraries [EPREFIX/lib]
1537   --includedir=DIR        C header files [PREFIX/include]
1538   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1539   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1540   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1541   --infodir=DIR           info documentation [DATAROOTDIR/info]
1542   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1543   --mandir=DIR            man documentation [DATAROOTDIR/man]
1544   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1545   --htmldir=DIR           html documentation [DOCDIR]
1546   --dvidir=DIR            dvi documentation [DOCDIR]
1547   --pdfdir=DIR            pdf documentation [DOCDIR]
1548   --psdir=DIR             ps documentation [DOCDIR]
1549 _ACEOF
1550
1551   cat <<\_ACEOF
1552
1553 Program names:
1554   --program-prefix=PREFIX            prepend PREFIX to installed program names
1555   --program-suffix=SUFFIX            append SUFFIX to installed program names
1556   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1557
1558 System types:
1559   --build=BUILD     configure for building on BUILD [guessed]
1560   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1561   --target=TARGET   configure for building compilers for TARGET [HOST]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566   case $ac_init_help in
1567      short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
1568    esac
1569   cat <<\_ACEOF
1570
1571 Optional Features:
1572   --disable-option-checking  ignore unrecognized --enable/--with options
1573   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575   --disable-dependency-tracking  speeds up one-time build
1576   --enable-dependency-tracking   do not reject slow dependency extractors
1577   --enable-shared[=PKGS]  build shared libraries [default=yes]
1578   --enable-static[=PKGS]  build static libraries [default=yes]
1579   --enable-fast-install[=PKGS]
1580                           optimize for fast installation [default=yes]
1581   --disable-libtool-lock  avoid locking (might break parallel builds)
1582   --enable-maintainer-mode  enable make rules and dependencies not useful
1583                           (and sometimes confusing) to the casual installer
1584   --enable-debug          debugging mode
1585   --disable-structs       omit code for struct support
1586   --disable-raw-api       make the raw api unavailable
1587   --enable-purify-safety  purify-safe mode
1588
1589 Optional Packages:
1590   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1591   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1592   --with-pic              try to use only PIC/non-PIC objects [default=use
1593                           both]
1594   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595
1596 Some influential environment variables:
1597   CC          C compiler command
1598   CFLAGS      C compiler flags
1599   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600               nonstandard directory <lib dir>
1601   LIBS        libraries to pass to the linker, e.g. -l<library>
1602   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603               you have headers in a nonstandard directory <include dir>
1604   CCAS        assembler compiler command (defaults to CC)
1605   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1606   CPP         C preprocessor
1607
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1610
1611 Report bugs to <http://gcc.gnu.org/bugs.html>.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617   # If there are subdirs, report their specific --help.
1618   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619     test -d "$ac_dir" ||
1620       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621       continue
1622     ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628   # A ".." for each directory in $ac_dir_suffix.
1629   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630   case $ac_top_builddir_sub in
1631   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633   esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641   .)  # We are building in place.
1642     ac_srcdir=.
1643     ac_top_srcdir=$ac_top_builddir_sub
1644     ac_abs_top_srcdir=$ac_pwd ;;
1645   [\\/]* | ?:[\\/]* )  # Absolute name.
1646     ac_srcdir=$srcdir$ac_dir_suffix;
1647     ac_top_srcdir=$srcdir
1648     ac_abs_top_srcdir=$srcdir ;;
1649   *) # Relative name.
1650     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651     ac_top_srcdir=$ac_top_build_prefix$srcdir
1652     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656     cd "$ac_dir" || { ac_status=$?; continue; }
1657     # Check for guested configure.
1658     if test -f "$ac_srcdir/configure.gnu"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661     elif test -f "$ac_srcdir/configure"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure" --help=recursive
1664     else
1665       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666     fi || ac_status=$?
1667     cd "$ac_pwd" || { ac_status=$?; break; }
1668   done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673   cat <<\_ACEOF
1674 libffi configure 3.0.10rc0
1675 generated by GNU Autoconf 2.65
1676
1677 Copyright (C) 2009 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681   exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext
1695   if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_compile") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest.$ac_objext; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   rm -f conftest.$ac_objext conftest$ac_exeext
1733   if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_link") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && {
1749          test -z "$ac_c_werror_flag" ||
1750          test ! -s conftest.err
1751        } && test -s conftest$ac_exeext && {
1752          test "$cross_compiling" = yes ||
1753          $as_test_x conftest$ac_exeext
1754        }; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760         ac_retval=1
1761 fi
1762   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764   # interfere with the next link command; also delete a directory that is
1765   # left behind by Apple's compiler.  We do this before executing the actions.
1766   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768   as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782   $as_echo_n "(cached) " >&6
1783 else
1784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   eval "$3=yes"
1791 else
1792   eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
1801 } # ac_fn_c_check_header_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } >/dev/null && {
1825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826          test ! -s conftest.err
1827        }; then :
1828   ac_retval=0
1829 else
1830   $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833     ac_retval=1
1834 fi
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1844 ac_fn_c_try_run ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_link") 2>&5
1855   ac_status=$?
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858   { { case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_try") 2>&5
1865   ac_status=$?
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; }; }; then :
1868   ac_retval=0
1869 else
1870   $as_echo "$as_me: program exited with status $ac_status" >&5
1871        $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874        ac_retval=$ac_status
1875 fi
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_run
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h.  */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900     which can conflict with char $2 (); below.
1901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902     <limits.h> exists even on freestanding compilers.  */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913    Use char because int might match the return type of a GCC
1914    builtin and then its argument prototype would still apply.  */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920     to always fail with ENOSYS.  Some functions are actually named
1921     something starting with __ and the normal name is an alias.  */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935   eval "$3=yes"
1936 else
1937   eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940     conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_c_check_header_mongrel ()
1955 {
1956   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961   $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967   # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976   ac_header_compiler=yes
1977 else
1978   ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992   ac_header_preproc=yes
1993 else
1994   ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So?  What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2002   yes:no: )
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007     ;;
2008   no:yes:* )
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ( cat <<\_ASBOX
2020 ## ------------------------------------------- ##
2021 ## Report this to http://gcc.gnu.org/bugs.html ##
2022 ## ------------------------------------------- ##
2023 _ASBOX
2024      ) | sed "s/^/$as_me: WARNING:     /" >&2
2025     ;;
2026 esac
2027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030   $as_echo_n "(cached) " >&6
2031 else
2032   eval "$3=\$ac_header_compiler"
2033 fi
2034 eval ac_res=\$$3
2035                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 fi
2038   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040 } # ac_fn_c_check_header_mongrel
2041
2042 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2043 # --------------------------------------------
2044 # Tries to find the compile-time value of EXPR in a program that includes
2045 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2046 # computed
2047 ac_fn_c_compute_int ()
2048 {
2049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050   if test "$cross_compiling" = yes; then
2051     # Depending upon the size, compute the lo and hi bounds.
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) >= 0)];
2059 test_array [0] = 0
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   ac_lo=0 ac_mid=0
2067   while :; do
2068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 $4
2071 int
2072 main ()
2073 {
2074 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2075 test_array [0] = 0
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082   ac_hi=$ac_mid; break
2083 else
2084   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2085                         if test $ac_lo -le $ac_mid; then
2086                           ac_lo= ac_hi=
2087                           break
2088                         fi
2089                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092   done
2093 else
2094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) < 0)];
2101 test_array [0] = 0
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   ac_hi=-1 ac_mid=-1
2109   while :; do
2110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2117 test_array [0] = 0
2118
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124   ac_lo=$ac_mid; break
2125 else
2126   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2127                         if test $ac_mid -le $ac_hi; then
2128                           ac_lo= ac_hi=
2129                           break
2130                         fi
2131                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134   done
2135 else
2136   ac_lo= ac_hi=
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 # Binary search between lo and hi bounds.
2142 while test "x$ac_lo" != "x$ac_hi"; do
2143   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 int
2148 main ()
2149 {
2150 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151 test_array [0] = 0
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158   ac_hi=$ac_mid
2159 else
2160   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164 case $ac_lo in #((
2165 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2166 '') ac_retval=1 ;;
2167 esac
2168   else
2169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $4
2172 static long int longval () { return $2; }
2173 static unsigned long int ulongval () { return $2; }
2174 #include <stdio.h>
2175 #include <stdlib.h>
2176 int
2177 main ()
2178 {
2179
2180   FILE *f = fopen ("conftest.val", "w");
2181   if (! f)
2182     return 1;
2183   if (($2) < 0)
2184     {
2185       long int i = longval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%ld", i);
2189     }
2190   else
2191     {
2192       unsigned long int i = ulongval ();
2193       if (i != ($2))
2194         return 1;
2195       fprintf (f, "%lu", i);
2196     }
2197   /* Do not output a trailing newline, as this causes \r\n confusion
2198      on some platforms.  */
2199   return ferror (f) || fclose (f) != 0;
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_run "$LINENO"; then :
2206   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2207 else
2208   ac_retval=1
2209 fi
2210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2211   conftest.$ac_objext conftest.beam conftest.$ac_ext
2212 rm -f conftest.val
2213
2214   fi
2215   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216   as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_compute_int
2219 cat >config.log <<_ACEOF
2220 This file contains any messages produced by compilers while
2221 running configure, to aid debugging if configure makes a mistake.
2222
2223 It was created by libffi $as_me 3.0.10rc0, which was
2224 generated by GNU Autoconf 2.65.  Invocation command line was
2225
2226   $ $0 $@
2227
2228 _ACEOF
2229 exec 5>>config.log
2230 {
2231 cat <<_ASUNAME
2232 ## --------- ##
2233 ## Platform. ##
2234 ## --------- ##
2235
2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2241
2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2244
2245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2248 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2252
2253 _ASUNAME
2254
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260     $as_echo "PATH: $as_dir"
2261   done
2262 IFS=$as_save_IFS
2263
2264 } >&5
2265
2266 cat >&5 <<_ACEOF
2267
2268
2269 ## ----------- ##
2270 ## Core tests. ##
2271 ## ----------- ##
2272
2273 _ACEOF
2274
2275
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2281 ac_configure_args=
2282 ac_configure_args0=
2283 ac_configure_args1=
2284 ac_must_keep_next=false
2285 for ac_pass in 1 2
2286 do
2287   for ac_arg
2288   do
2289     case $ac_arg in
2290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292     | -silent | --silent | --silen | --sile | --sil)
2293       continue ;;
2294     *\'*)
2295       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2296     esac
2297     case $ac_pass in
2298     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299     2)
2300       as_fn_append ac_configure_args1 " '$ac_arg'"
2301       if test $ac_must_keep_next = true; then
2302         ac_must_keep_next=false # Got value, back to normal.
2303       else
2304         case $ac_arg in
2305           *=* | --config-cache | -C | -disable-* | --disable-* \
2306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308           | -with-* | --with-* | -without-* | --without-* | --x)
2309             case "$ac_configure_args0 " in
2310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2311             esac
2312             ;;
2313           -* ) ac_must_keep_next=true ;;
2314         esac
2315       fi
2316       as_fn_append ac_configure_args " '$ac_arg'"
2317       ;;
2318     esac
2319   done
2320 done
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2323
2324 # When interrupted or exit'd, cleanup temporary files, and complete
2325 # config.log.  We remove comments because anyway the quotes in there
2326 # would cause problems or look ugly.
2327 # WARNING: Use '\'' to represent an apostrophe within the trap.
2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2329 trap 'exit_status=$?
2330   # Save into config.log some information that might help in debugging.
2331   {
2332     echo
2333
2334     cat <<\_ASBOX
2335 ## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##
2338 _ASBOX
2339     echo
2340     # The following way of writing the cache mishandles newlines in values,
2341 (
2342   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2343     eval ac_val=\$$ac_var
2344     case $ac_val in #(
2345     *${as_nl}*)
2346       case $ac_var in #(
2347       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2349       esac
2350       case $ac_var in #(
2351       _ | IFS | as_nl) ;; #(
2352       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353       *) { eval $ac_var=; unset $ac_var;} ;;
2354       esac ;;
2355     esac
2356   done
2357   (set) 2>&1 |
2358     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2359     *${as_nl}ac_space=\ *)
2360       sed -n \
2361         "s/'\''/'\''\\\\'\'''\''/g;
2362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2363       ;; #(
2364     *)
2365       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2366       ;;
2367     esac |
2368     sort
2369 )
2370     echo
2371
2372     cat <<\_ASBOX
2373 ## ----------------- ##
2374 ## Output variables. ##
2375 ## ----------------- ##
2376 _ASBOX
2377     echo
2378     for ac_var in $ac_subst_vars
2379     do
2380       eval ac_val=\$$ac_var
2381       case $ac_val in
2382       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383       esac
2384       $as_echo "$ac_var='\''$ac_val'\''"
2385     done | sort
2386     echo
2387
2388     if test -n "$ac_subst_files"; then
2389       cat <<\_ASBOX
2390 ## ------------------- ##
2391 ## File substitutions. ##
2392 ## ------------------- ##
2393 _ASBOX
2394       echo
2395       for ac_var in $ac_subst_files
2396       do
2397         eval ac_val=\$$ac_var
2398         case $ac_val in
2399         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400         esac
2401         $as_echo "$ac_var='\''$ac_val'\''"
2402       done | sort
2403       echo
2404     fi
2405
2406     if test -s confdefs.h; then
2407       cat <<\_ASBOX
2408 ## ----------- ##
2409 ## confdefs.h. ##
2410 ## ----------- ##
2411 _ASBOX
2412       echo
2413       cat confdefs.h
2414       echo
2415     fi
2416     test "$ac_signal" != 0 &&
2417       $as_echo "$as_me: caught signal $ac_signal"
2418     $as_echo "$as_me: exit $exit_status"
2419   } >&5
2420   rm -f core *.core core.conftest.* &&
2421     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2422     exit $exit_status
2423 ' 0
2424 for ac_signal in 1 2 13 15; do
2425   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2426 done
2427 ac_signal=0
2428
2429 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2430 rm -f -r conftest* confdefs.h
2431
2432 $as_echo "/* confdefs.h */" > confdefs.h
2433
2434 # Predefined preprocessor variables.
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_NAME "$PACKAGE_NAME"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_STRING "$PACKAGE_STRING"
2450 _ACEOF
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2454 _ACEOF
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_URL "$PACKAGE_URL"
2458 _ACEOF
2459
2460
2461 # Let the site file select an alternate cache file if it wants to.
2462 # Prefer an explicitly selected file to automatically selected ones.
2463 ac_site_file1=NONE
2464 ac_site_file2=NONE
2465 if test -n "$CONFIG_SITE"; then
2466   ac_site_file1=$CONFIG_SITE
2467 elif test "x$prefix" != xNONE; then
2468   ac_site_file1=$prefix/share/config.site
2469   ac_site_file2=$prefix/etc/config.site
2470 else
2471   ac_site_file1=$ac_default_prefix/share/config.site
2472   ac_site_file2=$ac_default_prefix/etc/config.site
2473 fi
2474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 do
2476   test "x$ac_site_file" = xNONE && continue
2477   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2480     sed 's/^/| /' "$ac_site_file" >&5
2481     . "$ac_site_file"
2482   fi
2483 done
2484
2485 if test -r "$cache_file"; then
2486   # Some versions of bash will fail to source /dev/null (special files
2487   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2488   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2491     case $cache_file in
2492       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493       *)                      . "./$cache_file";;
2494     esac
2495   fi
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499   >$cache_file
2500 fi
2501
2502 # Check that the precious variables saved in the cache have kept the same
2503 # value.
2504 ac_cache_corrupted=false
2505 for ac_var in $ac_precious_vars; do
2506   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507   eval ac_new_set=\$ac_env_${ac_var}_set
2508   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509   eval ac_new_val=\$ac_env_${ac_var}_value
2510   case $ac_old_set,$ac_new_set in
2511     set,)
2512       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514       ac_cache_corrupted=: ;;
2515     ,set)
2516       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518       ac_cache_corrupted=: ;;
2519     ,);;
2520     *)
2521       if test "x$ac_old_val" != "x$ac_new_val"; then
2522         # differences in whitespace do not lead to failure.
2523         ac_old_val_w=`echo x $ac_old_val`
2524         ac_new_val_w=`echo x $ac_new_val`
2525         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528           ac_cache_corrupted=:
2529         else
2530           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532           eval $ac_var=\$ac_old_val
2533         fi
2534         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2535 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2536         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2537 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2538       fi;;
2539   esac
2540   # Pass precious variables to config.status.
2541   if test "$ac_new_set" = set; then
2542     case $ac_new_val in
2543     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544     *) ac_arg=$ac_var=$ac_new_val ;;
2545     esac
2546     case " $ac_configure_args " in
2547       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2548       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549     esac
2550   fi
2551 done
2552 if $ac_cache_corrupted; then
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2558 fi
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570 ac_config_headers="$ac_config_headers fficonfig.h"
2571
2572
2573 ac_aux_dir=
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575   for ac_t in install-sh install.sh shtool; do
2576     if test -f "$ac_dir/$ac_t"; then
2577       ac_aux_dir=$ac_dir
2578       ac_install_sh="$ac_aux_dir/$ac_t -c"
2579       break 2
2580     fi
2581   done
2582 done
2583 if test -z "$ac_aux_dir"; then
2584   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2585 fi
2586
2587 # These three variables are undocumented and unsupported,
2588 # and are intended to be withdrawn in a future Autoconf release.
2589 # They can cause serious problems if a builder's source tree is in a directory
2590 # whose full name contains unusual characters.
2591 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2592 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2593 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2594
2595
2596 # Make sure we can run config.sub.
2597 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2598   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2601 $as_echo_n "checking build system type... " >&6; }
2602 if test "${ac_cv_build+set}" = set; then :
2603   $as_echo_n "(cached) " >&6
2604 else
2605   ac_build_alias=$build_alias
2606 test "x$ac_build_alias" = x &&
2607   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608 test "x$ac_build_alias" = x &&
2609   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2612
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2615 $as_echo "$ac_cv_build" >&6; }
2616 case $ac_cv_build in
2617 *-*-*) ;;
2618 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2619 esac
2620 build=$ac_cv_build
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_build
2623 shift
2624 build_cpu=$1
2625 build_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 build_os=$*
2630 IFS=$ac_save_IFS
2631 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2632
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2635 $as_echo_n "checking host system type... " >&6; }
2636 if test "${ac_cv_host+set}" = set; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test "x$host_alias" = x; then
2640   ac_cv_host=$ac_cv_build
2641 else
2642   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2643     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2644 fi
2645
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2648 $as_echo "$ac_cv_host" >&6; }
2649 case $ac_cv_host in
2650 *-*-*) ;;
2651 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2652 esac
2653 host=$ac_cv_host
2654 ac_save_IFS=$IFS; IFS='-'
2655 set x $ac_cv_host
2656 shift
2657 host_cpu=$1
2658 host_vendor=$2
2659 shift; shift
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2662 host_os=$*
2663 IFS=$ac_save_IFS
2664 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2665
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2668 $as_echo_n "checking target system type... " >&6; }
2669 if test "${ac_cv_target+set}" = set; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   if test "x$target_alias" = x; then
2673   ac_cv_target=$ac_cv_host
2674 else
2675   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2676     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2677 fi
2678
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2681 $as_echo "$ac_cv_target" >&6; }
2682 case $ac_cv_target in
2683 *-*-*) ;;
2684 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2685 esac
2686 target=$ac_cv_target
2687 ac_save_IFS=$IFS; IFS='-'
2688 set x $ac_cv_target
2689 shift
2690 target_cpu=$1
2691 target_vendor=$2
2692 shift; shift
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2695 target_os=$*
2696 IFS=$ac_save_IFS
2697 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2698
2699
2700 # The aliases save the names the user supplied, while $host etc.
2701 # will get canonicalized.
2702 test -n "$target_alias" &&
2703   test "$program_prefix$program_suffix$program_transform_name" = \
2704     NONENONEs,x,x, &&
2705   program_prefix=${target_alias}-
2706
2707 target_alias=${target_alias-$host_alias}
2708
2709 . ${srcdir}/configure.host
2710
2711 am__api_version='1.11'
2712
2713 # Find a good install program.  We prefer a C program (faster),
2714 # so one script is as good as another.  But avoid the broken or
2715 # incompatible versions:
2716 # SysV /etc/install, /usr/sbin/install
2717 # SunOS /usr/etc/install
2718 # IRIX /sbin/install
2719 # AIX /bin/install
2720 # AmigaOS /C/install, which installs bootblocks on floppy discs
2721 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2722 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2723 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2724 # OS/2's system install, which has a completely different semantic
2725 # ./install, which can be erroneously created by make from ./install.sh.
2726 # Reject install programs that cannot install multiple files.
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2728 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2729 if test -z "$INSTALL"; then
2730 if test "${ac_cv_path_install+set}" = set; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736   IFS=$as_save_IFS
2737   test -z "$as_dir" && as_dir=.
2738     # Account for people who put trailing slashes in PATH elements.
2739 case $as_dir/ in #((
2740   ./ | .// | /[cC]/* | \
2741   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2742   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2743   /usr/ucb/* ) ;;
2744   *)
2745     # OSF1 and SCO ODT 3.0 have their own names for install.
2746     # Don't use installbsd from OSF since it installs stuff as root
2747     # by default.
2748     for ac_prog in ginstall scoinst install; do
2749       for ac_exec_ext in '' $ac_executable_extensions; do
2750         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2751           if test $ac_prog = install &&
2752             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753             # AIX install.  It has an incompatible calling convention.
2754             :
2755           elif test $ac_prog = install &&
2756             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2757             # program-specific install script used by HP pwplus--don't use.
2758             :
2759           else
2760             rm -rf conftest.one conftest.two conftest.dir
2761             echo one > conftest.one
2762             echo two > conftest.two
2763             mkdir conftest.dir
2764             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2765               test -s conftest.one && test -s conftest.two &&
2766               test -s conftest.dir/conftest.one &&
2767               test -s conftest.dir/conftest.two
2768             then
2769               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2770               break 3
2771             fi
2772           fi
2773         fi
2774       done
2775     done
2776     ;;
2777 esac
2778
2779   done
2780 IFS=$as_save_IFS
2781
2782 rm -rf conftest.one conftest.two conftest.dir
2783
2784 fi
2785   if test "${ac_cv_path_install+set}" = set; then
2786     INSTALL=$ac_cv_path_install
2787   else
2788     # As a last resort, use the slow shell script.  Don't cache a
2789     # value for INSTALL within a source directory, because that will
2790     # break other packages using the cache if that directory is
2791     # removed, or if the value is a relative name.
2792     INSTALL=$ac_install_sh
2793   fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2796 $as_echo "$INSTALL" >&6; }
2797
2798 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2799 # It thinks the first close brace ends the variable substitution.
2800 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2801
2802 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2803
2804 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2807 $as_echo_n "checking whether build environment is sane... " >&6; }
2808 # Just in case
2809 sleep 1
2810 echo timestamp > conftest.file
2811 # Reject unsafe characters in $srcdir or the absolute working directory
2812 # name.  Accept space and tab only in the latter.
2813 am_lf='
2814 '
2815 case `pwd` in
2816   *[\\\"\#\$\&\'\`$am_lf]*)
2817     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2818 esac
2819 case $srcdir in
2820   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2821     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2822 esac
2823
2824 # Do `set' in a subshell so we don't clobber the current shell's
2825 # arguments.  Must try -L first in case configure is actually a
2826 # symlink; some systems play weird games with the mod time of symlinks
2827 # (eg FreeBSD returns the mod time of the symlink's containing
2828 # directory).
2829 if (
2830    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2831    if test "$*" = "X"; then
2832       # -L didn't work.
2833       set X `ls -t "$srcdir/configure" conftest.file`
2834    fi
2835    rm -f conftest.file
2836    if test "$*" != "X $srcdir/configure conftest.file" \
2837       && test "$*" != "X conftest.file $srcdir/configure"; then
2838
2839       # If neither matched, then we have a broken ls.  This can happen
2840       # if, for instance, CONFIG_SHELL is bash and it inherits a
2841       # broken ls alias from the environment.  This has actually
2842       # happened.  Such a system could not be considered "sane".
2843       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2844 alias in your environment" "$LINENO" 5
2845    fi
2846
2847    test "$2" = conftest.file
2848    )
2849 then
2850    # Ok.
2851    :
2852 else
2853    as_fn_error "newly created file is older than distributed files!
2854 Check your system clock" "$LINENO" 5
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857 $as_echo "yes" >&6; }
2858 test "$program_prefix" != NONE &&
2859   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2860 # Use a double $ so make ignores it.
2861 test "$program_suffix" != NONE &&
2862   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2863 # Double any \ or $.
2864 # By default was `s,x,x', remove it if useless.
2865 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2866 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2867
2868 # expand $ac_aux_dir to an absolute path
2869 am_aux_dir=`cd $ac_aux_dir && pwd`
2870
2871 if test x"${MISSING+set}" != xset; then
2872   case $am_aux_dir in
2873   *\ * | *\     *)
2874     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2875   *)
2876     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2877   esac
2878 fi
2879 # Use eval to expand $SHELL
2880 if eval "$MISSING --run true"; then
2881   am_missing_run="$MISSING --run "
2882 else
2883   am_missing_run=
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2885 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2886 fi
2887
2888 if test x"${install_sh}" != xset; then
2889   case $am_aux_dir in
2890   *\ * | *\     *)
2891     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2892   *)
2893     install_sh="\${SHELL} $am_aux_dir/install-sh"
2894   esac
2895 fi
2896
2897 # Installed binaries are usually stripped using `strip' when the user
2898 # run `make install-strip'.  However `strip' might not be the right
2899 # tool to use in cross-compilation environments, therefore Automake
2900 # will honor the `STRIP' environment variable to overrule this program.
2901 if test "$cross_compiling" != no; then
2902   if test -n "$ac_tool_prefix"; then
2903   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}strip; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_STRIP+set}" = set; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   if test -n "$STRIP"; then
2911   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 STRIP=$ac_cv_prog_STRIP
2931 if test -n "$STRIP"; then
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2933 $as_echo "$STRIP" >&6; }
2934 else
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 if test -z "$ac_cv_prog_STRIP"; then
2942   ac_ct_STRIP=$STRIP
2943   # Extract the first word of "strip", so it can be a program name with args.
2944 set dummy strip; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   if test -n "$ac_ct_STRIP"; then
2951   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     for ac_exec_ext in '' $ac_executable_extensions; do
2959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960     ac_cv_prog_ac_ct_STRIP="strip"
2961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962     break 2
2963   fi
2964 done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2971 if test -n "$ac_ct_STRIP"; then
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2973 $as_echo "$ac_ct_STRIP" >&6; }
2974 else
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979   if test "x$ac_ct_STRIP" = x; then
2980     STRIP=":"
2981   else
2982     case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988     STRIP=$ac_ct_STRIP
2989   fi
2990 else
2991   STRIP="$ac_cv_prog_STRIP"
2992 fi
2993
2994 fi
2995 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2996
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2998 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2999 if test -z "$MKDIR_P"; then
3000   if test "${ac_cv_path_mkdir+set}" = set; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_prog in mkdir gmkdir; do
3009          for ac_exec_ext in '' $ac_executable_extensions; do
3010            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3011            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3012              'mkdir (GNU coreutils) '* | \
3013              'mkdir (coreutils) '* | \
3014              'mkdir (fileutils) '4.1*)
3015                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3016                break 3;;
3017            esac
3018          done
3019        done
3020   done
3021 IFS=$as_save_IFS
3022
3023 fi
3024
3025   test -d ./--version && rmdir ./--version
3026   if test "${ac_cv_path_mkdir+set}" = set; then
3027     MKDIR_P="$ac_cv_path_mkdir -p"
3028   else
3029     # As a last resort, use the slow shell script.  Don't cache a
3030     # value for MKDIR_P within a source directory, because that will
3031     # break other packages using the cache if that directory is
3032     # removed, or if the value is a relative name.
3033     MKDIR_P="$ac_install_sh -d"
3034   fi
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3037 $as_echo "$MKDIR_P" >&6; }
3038
3039 mkdir_p="$MKDIR_P"
3040 case $mkdir_p in
3041   [\\/$]* | ?:[\\/]*) ;;
3042   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3043 esac
3044
3045 for ac_prog in gawk mawk nawk awk
3046 do
3047   # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_AWK+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$AWK"; then
3055   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064     ac_cv_prog_AWK="$ac_prog"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 AWK=$ac_cv_prog_AWK
3075 if test -n "$AWK"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077 $as_echo "$AWK" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084   test -n "$AWK" && break
3085 done
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3089 set x ${MAKE-make}
3090 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   cat >conftest.make <<\_ACEOF
3095 SHELL = /bin/sh
3096 all:
3097         @echo '@@@%%%=$(MAKE)=@@@%%%'
3098 _ACEOF
3099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3101   *@@@%%%=?*=@@@%%%*)
3102     eval ac_cv_prog_make_${ac_make}_set=yes;;
3103   *)
3104     eval ac_cv_prog_make_${ac_make}_set=no;;
3105 esac
3106 rm -f conftest.make
3107 fi
3108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3111   SET_MAKE=
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115   SET_MAKE="MAKE=${MAKE-make}"
3116 fi
3117
3118 rm -rf .tst 2>/dev/null
3119 mkdir .tst 2>/dev/null
3120 if test -d .tst; then
3121   am__leading_dot=.
3122 else
3123   am__leading_dot=_
3124 fi
3125 rmdir .tst 2>/dev/null
3126
3127 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3128   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3129   # is not polluted with repeated "-I."
3130   am__isrc=' -I$(srcdir)'
3131   # test to see if srcdir already configured
3132   if test -f $srcdir/config.status; then
3133     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3134   fi
3135 fi
3136
3137 # test whether we have cygpath
3138 if test -z "$CYGPATH_W"; then
3139   if (cygpath --version) >/dev/null 2>/dev/null; then
3140     CYGPATH_W='cygpath -w'
3141   else
3142     CYGPATH_W=echo
3143   fi
3144 fi
3145
3146
3147 # Define the identity of the package.
3148  PACKAGE='libffi'
3149  VERSION='3.0.10rc0'
3150
3151
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE "$PACKAGE"
3154 _ACEOF
3155
3156
3157 cat >>confdefs.h <<_ACEOF
3158 #define VERSION "$VERSION"
3159 _ACEOF
3160
3161 # Some tools Automake needs.
3162
3163 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3164
3165
3166 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3167
3168
3169 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3170
3171
3172 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3173
3174
3175 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3176
3177 # We need awk for the "check" target.  The system "awk" is bad on
3178 # some platforms.
3179 # Always define AMTAR for backward compatibility.
3180
3181 AMTAR=${AMTAR-"${am_missing_run}tar"}
3182
3183 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3184
3185
3186
3187
3188
3189
3190 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3191 # We must force CC to /not/ be precious variables; otherwise
3192 # the wrong, non-multilib-adjusted value will be used in multilibs.
3193 # As a side effect, we have to subst CFLAGS ourselves.
3194 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3195 # defaults of its own if none are provided.
3196
3197
3198
3199 save_CFLAGS=$CFLAGS
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 if test -n "$ac_tool_prefix"; then
3206   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_CC+set}" = set; then :
3211   $as_echo_n "(cached) " >&6
3212 else
3213   if test -n "$CC"; then
3214   ac_cv_prog_CC="$CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 CC=$ac_cv_prog_CC
3234 if test -n "$CC"; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3237 else
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243 fi
3244 if test -z "$ac_cv_prog_CC"; then
3245   ac_ct_CC=$CC
3246   # Extract the first word of "gcc", so it can be a program name with args.
3247 set dummy gcc; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   if test -n "$ac_ct_CC"; then
3254   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261     for ac_exec_ext in '' $ac_executable_extensions; do
3262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263     ac_cv_prog_ac_ct_CC="gcc"
3264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268   done
3269 IFS=$as_save_IFS
3270
3271 fi
3272 fi
3273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3274 if test -n "$ac_ct_CC"; then
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3276 $as_echo "$ac_ct_CC" >&6; }
3277 else
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282   if test "x$ac_ct_CC" = x; then
3283     CC=""
3284   else
3285     case $cross_compiling:$ac_tool_warned in
3286 yes:)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289 ac_tool_warned=yes ;;
3290 esac
3291     CC=$ac_ct_CC
3292   fi
3293 else
3294   CC="$ac_cv_prog_CC"
3295 fi
3296
3297 if test -z "$CC"; then
3298           if test -n "$ac_tool_prefix"; then
3299     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}cc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$CC"; then
3307   ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316     ac_cv_prog_CC="${ac_tool_prefix}cc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336   fi
3337 fi
3338 if test -z "$CC"; then
3339   # Extract the first word of "cc", so it can be a program name with args.
3340 set dummy cc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if test "${ac_cv_prog_CC+set}" = set; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   if test -n "$CC"; then
3347   ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349   ac_prog_rejected=no
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355     for ac_exec_ext in '' $ac_executable_extensions; do
3356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3358        ac_prog_rejected=yes
3359        continue
3360      fi
3361     ac_cv_prog_CC="cc"
3362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366   done
3367 IFS=$as_save_IFS
3368
3369 if test $ac_prog_rejected = yes; then
3370   # We found a bogon in the path, so make sure we never use it.
3371   set dummy $ac_cv_prog_CC
3372   shift
3373   if test $# != 0; then
3374     # We chose a different compiler from the bogus one.
3375     # However, it has the same basename, so the bogon will be chosen
3376     # first if we set CC to just the basename; use the full file name.
3377     shift
3378     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3379   fi
3380 fi
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3387 else
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 fi
3394 if test -z "$CC"; then
3395   if test -n "$ac_tool_prefix"; then
3396   for ac_prog in cl.exe
3397   do
3398     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then :
3403   $as_echo_n "(cached) " >&6
3404 else
3405   if test -n "$CC"; then
3406   ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413     for ac_exec_ext in '' $ac_executable_extensions; do
3414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420   done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435     test -n "$CC" && break
3436   done
3437 fi
3438 if test -z "$CC"; then
3439   ac_ct_CC=$CC
3440   for ac_prog in cl.exe
3441 do
3442   # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   if test -n "$ac_ct_CC"; then
3450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457     for ac_exec_ext in '' $ac_executable_extensions; do
3458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459     ac_cv_prog_ac_ct_CC="$ac_prog"
3460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3470 if test -n "$ac_ct_CC"; then
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3472 $as_echo "$ac_ct_CC" >&6; }
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 fi
3477
3478
3479   test -n "$ac_ct_CC" && break
3480 done
3481
3482   if test "x$ac_ct_CC" = x; then
3483     CC=""
3484   else
3485     case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491     CC=$ac_ct_CC
3492   fi
3493 fi
3494
3495 fi
3496
3497
3498 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error "no acceptable C compiler found in \$PATH
3501 See \`config.log' for more details." "$LINENO" 5; }
3502
3503 # Provide some information about the compiler.
3504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3505 set X $ac_compile
3506 ac_compiler=$2
3507 for ac_option in --version -v -V -qversion; do
3508   { { ac_try="$ac_compiler $ac_option >&5"
3509 case "(($ac_try" in
3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511   *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3516   ac_status=$?
3517   if test -s conftest.err; then
3518     sed '10a\
3519 ... rest of stderr output deleted ...
3520          10q' conftest.err >conftest.er1
3521     cat conftest.er1 >&5
3522   fi
3523   rm -f conftest.er1 conftest.err
3524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525   test $ac_status = 0; }
3526 done
3527
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 ac_clean_files_save=$ac_clean_files
3540 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3541 # Try to create an executable without -o first, disregard a.out.
3542 # It will help us diagnose broken compilers, and finding out an intuition
3543 # of exeext.
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3545 $as_echo_n "checking whether the C compiler works... " >&6; }
3546 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3547
3548 # The possible output files:
3549 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3550
3551 ac_rmfiles=
3552 for ac_file in $ac_files
3553 do
3554   case $ac_file in
3555     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3557   esac
3558 done
3559 rm -f $ac_rmfiles
3560
3561 if { { ac_try="$ac_link_default"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568   (eval "$ac_link_default") 2>&5
3569   ac_status=$?
3570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571   test $ac_status = 0; }; then :
3572   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3573 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3574 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3575 # so that the user can short-circuit this test for compilers unknown to
3576 # Autoconf.
3577 for ac_file in $ac_files ''
3578 do
3579   test -f "$ac_file" || continue
3580   case $ac_file in
3581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3582         ;;
3583     [ab].out )
3584         # We found the default executable, but exeext='' is most
3585         # certainly right.
3586         break;;
3587     *.* )
3588         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3589         then :; else
3590            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591         fi
3592         # We set ac_cv_exeext here because the later test for it is not
3593         # safe: cross compilers may not add the suffix if given an `-o'
3594         # argument, so we may need to know it at that point already.
3595         # Even if this section looks crufty: it has the advantage of
3596         # actually working.
3597         break;;
3598     * )
3599         break;;
3600   esac
3601 done
3602 test "$ac_cv_exeext" = no && ac_cv_exeext=
3603
3604 else
3605   ac_file=''
3606 fi
3607 if test -z "$ac_file"; then :
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 { as_fn_set_status 77
3616 as_fn_error "C compiler cannot create executables
3617 See \`config.log' for more details." "$LINENO" 5; }; }
3618 else
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3620 $as_echo "yes" >&6; }
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3623 $as_echo_n "checking for C compiler default output file name... " >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3625 $as_echo "$ac_file" >&6; }
3626 ac_exeext=$ac_cv_exeext
3627
3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3629 ac_clean_files=$ac_clean_files_save
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3631 $as_echo_n "checking for suffix of executables... " >&6; }
3632 if { { ac_try="$ac_link"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_link") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642   test $ac_status = 0; }; then :
3643   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3644 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3645 # work properly (i.e., refer to `conftest.exe'), while it won't with
3646 # `rm'.
3647 for ac_file in conftest.exe conftest conftest.*; do
3648   test -f "$ac_file" || continue
3649   case $ac_file in
3650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652           break;;
3653     * ) break;;
3654   esac
3655 done
3656 else
3657   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error "cannot compute suffix of executables: cannot compile and link
3660 See \`config.log' for more details." "$LINENO" 5; }
3661 fi
3662 rm -f conftest conftest$ac_cv_exeext
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3664 $as_echo "$ac_cv_exeext" >&6; }
3665
3666 rm -f conftest.$ac_ext
3667 EXEEXT=$ac_cv_exeext
3668 ac_exeext=$EXEEXT
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h.  */
3671 #include <stdio.h>
3672 int
3673 main ()
3674 {
3675 FILE *f = fopen ("conftest.out", "w");
3676  return ferror (f) || fclose (f) != 0;
3677
3678   ;
3679   return 0;
3680 }
3681 _ACEOF
3682 ac_clean_files="$ac_clean_files conftest.out"
3683 # Check that the compiler produces executables we can run.  If not, either
3684 # the compiler is broken, or we cross compile.
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3686 $as_echo_n "checking whether we are cross compiling... " >&6; }
3687 if test "$cross_compiling" != yes; then
3688   { { ac_try="$ac_link"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_link") 2>&5
3696   ac_status=$?
3697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698   test $ac_status = 0; }
3699   if { ac_try='./conftest$ac_cv_exeext'
3700   { { case "(($ac_try" in
3701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702   *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706   (eval "$ac_try") 2>&5
3707   ac_status=$?
3708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709   test $ac_status = 0; }; }; then
3710     cross_compiling=no
3711   else
3712     if test "$cross_compiling" = maybe; then
3713         cross_compiling=yes
3714     else
3715         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 as_fn_error "cannot run C compiled programs.
3718 If you meant to cross compile, use \`--host'.
3719 See \`config.log' for more details." "$LINENO" 5; }
3720     fi
3721   fi
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3724 $as_echo "$cross_compiling" >&6; }
3725
3726 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3727 ac_clean_files=$ac_clean_files_save
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3729 $as_echo_n "checking for suffix of object files... " >&6; }
3730 if test "${ac_cv_objext+set}" = set; then :
3731   $as_echo_n "(cached) " >&6
3732 else
3733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735
3736 int
3737 main ()
3738 {
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.o conftest.obj
3745 if { { ac_try="$ac_compile"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752   (eval "$ac_compile") 2>&5
3753   ac_status=$?
3754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755   test $ac_status = 0; }; then :
3756   for ac_file in conftest.o conftest.obj conftest.*; do
3757   test -f "$ac_file" || continue;
3758   case $ac_file in
3759     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3760     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3761        break;;
3762   esac
3763 done
3764 else
3765   $as_echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error "cannot compute suffix of object files: cannot compile
3771 See \`config.log' for more details." "$LINENO" 5; }
3772 fi
3773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3776 $as_echo "$ac_cv_objext" >&6; }
3777 OBJEXT=$ac_cv_objext
3778 ac_objext=$OBJEXT
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3781 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790 #ifndef __GNUC__
3791        choke me
3792 #endif
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799   ac_compiler_gnu=yes
3800 else
3801   ac_compiler_gnu=no
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3805
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3809 if test $ac_compiler_gnu = yes; then
3810   GCC=yes
3811 else
3812   GCC=
3813 fi
3814 ac_test_CFLAGS=${CFLAGS+set}
3815 ac_save_CFLAGS=$CFLAGS
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3818 if test "${ac_cv_prog_cc_g+set}" = set; then :
3819   $as_echo_n "(cached) " >&6
3820 else
3821   ac_save_c_werror_flag=$ac_c_werror_flag
3822    ac_c_werror_flag=yes
3823    ac_cv_prog_cc_g=no
3824    CFLAGS="-g"
3825    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827
3828 int
3829 main ()
3830 {
3831
3832   ;
3833   return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837   ac_cv_prog_cc_g=yes
3838 else
3839   CFLAGS=""
3840       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852
3853 else
3854   ac_c_werror_flag=$ac_save_c_werror_flag
3855          CFLAGS="-g"
3856          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868   ac_cv_prog_cc_g=yes
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875    ac_c_werror_flag=$ac_save_c_werror_flag
3876 fi
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3878 $as_echo "$ac_cv_prog_cc_g" >&6; }
3879 if test "$ac_test_CFLAGS" = set; then
3880   CFLAGS=$ac_save_CFLAGS
3881 elif test $ac_cv_prog_cc_g = yes; then
3882   if test "$GCC" = yes; then
3883     CFLAGS="-g -O2"
3884   else
3885     CFLAGS="-g"
3886   fi
3887 else
3888   if test "$GCC" = yes; then
3889     CFLAGS="-O2"
3890   else
3891     CFLAGS=
3892   fi
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3896 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   ac_cv_prog_cc_c89=no
3900 ac_save_CC=$CC
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <stdarg.h>
3904 #include <stdio.h>
3905 #include <sys/types.h>
3906 #include <sys/stat.h>
3907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3908 struct buf { int x; };
3909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3910 static char *e (p, i)
3911      char **p;
3912      int i;
3913 {
3914   return p[i];
3915 }
3916 static char *f (char * (*g) (char **, int), char **p, ...)
3917 {
3918   char *s;
3919   va_list v;
3920   va_start (v,p);
3921   s = g (p, va_arg (v,int));
3922   va_end (v);
3923   return s;
3924 }
3925
3926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3927    function prototypes and stuff, but not '\xHH' hex character constants.
3928    These don't provoke an error unfortunately, instead are silently treated
3929    as 'x'.  The following induces an error, until -std is added to get
3930    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3931    array size at least.  It's necessary to write '\x00'==0 to get something
3932    that's true only with -std.  */
3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3934
3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936    inside strings and character constants.  */
3937 #define FOO(x) 'x'
3938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3939
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944 int argc;
3945 char **argv;
3946 int
3947 main ()
3948 {
3949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956 do
3957   CC="$ac_save_CC $ac_arg"
3958   if ac_fn_c_try_compile "$LINENO"; then :
3959   ac_cv_prog_cc_c89=$ac_arg
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext
3962   test "x$ac_cv_prog_cc_c89" != "xno" && break
3963 done
3964 rm -f conftest.$ac_ext
3965 CC=$ac_save_CC
3966
3967 fi
3968 # AC_CACHE_VAL
3969 case "x$ac_cv_prog_cc_c89" in
3970   x)
3971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3972 $as_echo "none needed" >&6; } ;;
3973   xno)
3974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3975 $as_echo "unsupported" >&6; } ;;
3976   *)
3977     CC="$CC $ac_cv_prog_cc_c89"
3978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3980 esac
3981 if test "x$ac_cv_prog_cc_c89" != xno; then :
3982
3983 fi
3984
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 DEPDIR="${am__leading_dot}deps"
3991
3992 ac_config_commands="$ac_config_commands depfiles"
3993
3994
3995 am_make=${MAKE-make}
3996 cat > confinc << 'END'
3997 am__doit:
3998         @echo this is the am__doit target
3999 .PHONY: am__doit
4000 END
4001 # If we don't find an include directive, just comment out the code.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4004 am__include="#"
4005 am__quote=
4006 _am_result=none
4007 # First try GNU make style include.
4008 echo "include confinc" > confmf
4009 # Ignore all kinds of additional output from `make'.
4010 case `$am_make -s -f confmf 2> /dev/null` in #(
4011 *the\ am__doit\ target*)
4012   am__include=include
4013   am__quote=
4014   _am_result=GNU
4015   ;;
4016 esac
4017 # Now try BSD make style include.
4018 if test "$am__include" = "#"; then
4019    echo '.include "confinc"' > confmf
4020    case `$am_make -s -f confmf 2> /dev/null` in #(
4021    *the\ am__doit\ target*)
4022      am__include=.include
4023      am__quote="\""
4024      _am_result=BSD
4025      ;;
4026    esac
4027 fi
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4031 $as_echo "$_am_result" >&6; }
4032 rm -f confinc confmf
4033
4034 # Check whether --enable-dependency-tracking was given.
4035 if test "${enable_dependency_tracking+set}" = set; then :
4036   enableval=$enable_dependency_tracking;
4037 fi
4038
4039 if test "x$enable_dependency_tracking" != xno; then
4040   am_depcomp="$ac_aux_dir/depcomp"
4041   AMDEPBACKSLASH='\'
4042 fi
4043  if test "x$enable_dependency_tracking" != xno; then
4044   AMDEP_TRUE=
4045   AMDEP_FALSE='#'
4046 else
4047   AMDEP_TRUE='#'
4048   AMDEP_FALSE=
4049 fi
4050
4051
4052
4053 depcc="$CC"   am_compiler_list=
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4056 $as_echo_n "checking dependency style of $depcc... " >&6; }
4057 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4061   # We make a subdir and do the tests there.  Otherwise we can end up
4062   # making bogus files that we don't know about and never remove.  For
4063   # instance it was reported that on HP-UX the gcc test will end up
4064   # making a dummy file named `D' -- because `-MD' means `put the output
4065   # in D'.
4066   mkdir conftest.dir
4067   # Copy depcomp to subdir because otherwise we won't find it if we're
4068   # using a relative directory.
4069   cp "$am_depcomp" conftest.dir
4070   cd conftest.dir
4071   # We will build objects and dependencies in a subdirectory because
4072   # it helps to detect inapplicable dependency modes.  For instance
4073   # both Tru64's cc and ICC support -MD to output dependencies as a
4074   # side effect of compilation, but ICC will put the dependencies in
4075   # the current directory while Tru64 will put them in the object
4076   # directory.
4077   mkdir sub
4078
4079   am_cv_CC_dependencies_compiler_type=none
4080   if test "$am_compiler_list" = ""; then
4081      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4082   fi
4083   am__universal=false
4084   case " $depcc " in #(
4085      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4086      esac
4087
4088   for depmode in $am_compiler_list; do
4089     # Setup a source with many dependencies, because some compilers
4090     # like to wrap large dependency lists on column 80 (with \), and
4091     # we should not choose a depcomp mode which is confused by this.
4092     #
4093     # We need to recreate these files for each test, as the compiler may
4094     # overwrite some of them when testing with obscure command lines.
4095     # This happens at least with the AIX C compiler.
4096     : > sub/conftest.c
4097     for i in 1 2 3 4 5 6; do
4098       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4099       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4100       # Solaris 8's {/usr,}/bin/sh.
4101       touch sub/conftst$i.h
4102     done
4103     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4104
4105     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4106     # mode.  It turns out that the SunPro C++ compiler does not properly
4107     # handle `-M -o', and we need to detect this.  Also, some Intel
4108     # versions had trouble with output in subdirs
4109     am__obj=sub/conftest.${OBJEXT-o}
4110     am__minus_obj="-o $am__obj"
4111     case $depmode in
4112     gcc)
4113       # This depmode causes a compiler race in universal mode.
4114       test "$am__universal" = false || continue
4115       ;;
4116     nosideeffect)
4117       # after this tag, mechanisms are not by side-effect, so they'll
4118       # only be used when explicitly requested
4119       if test "x$enable_dependency_tracking" = xyes; then
4120         continue
4121       else
4122         break
4123       fi
4124       ;;
4125     msvisualcpp | msvcmsys)
4126       # This compiler won't grok `-c -o', but also, the minuso test has
4127       # not run yet.  These depmodes are late enough in the game, and
4128       # so weak that their functioning should not be impacted.
4129       am__obj=conftest.${OBJEXT-o}
4130       am__minus_obj=
4131       ;;
4132     none) break ;;
4133     esac
4134     if depmode=$depmode \
4135        source=sub/conftest.c object=$am__obj \
4136        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4137        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4138          >/dev/null 2>conftest.err &&
4139        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4140        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4141        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4142        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143       # icc doesn't choke on unknown options, it will just issue warnings
4144       # or remarks (even with -Werror).  So we grep stderr for any message
4145       # that says an option was ignored or not supported.
4146       # When given -MP, icc 7.0 and 7.1 complain thusly:
4147       #   icc: Command line warning: ignoring option '-M'; no argument required
4148       # The diagnosis changed in icc 8.0:
4149       #   icc: Command line remark: option '-MP' not supported
4150       if (grep 'ignoring option' conftest.err ||
4151           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4152         am_cv_CC_dependencies_compiler_type=$depmode
4153         break
4154       fi
4155     fi
4156   done
4157
4158   cd ..
4159   rm -rf conftest.dir
4160 else
4161   am_cv_CC_dependencies_compiler_type=none
4162 fi
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4168
4169  if
4170   test "x$enable_dependency_tracking" != xno \
4171   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4172   am__fastdepCC_TRUE=
4173   am__fastdepCC_FALSE='#'
4174 else
4175   am__fastdepCC_TRUE='#'
4176   am__fastdepCC_FALSE=
4177 fi
4178
4179
4180 CFLAGS=$save_CFLAGS
4181
4182
4183
4184
4185
4186 # By default we simply use the C compiler to build assembly code.
4187
4188 test "${CCAS+set}" = set || CCAS=$CC
4189 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4190
4191
4192
4193 depcc="$CCAS"   am_compiler_list=
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4196 $as_echo_n "checking dependency style of $depcc... " >&6; }
4197 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4201   # We make a subdir and do the tests there.  Otherwise we can end up
4202   # making bogus files that we don't know about and never remove.  For
4203   # instance it was reported that on HP-UX the gcc test will end up
4204   # making a dummy file named `D' -- because `-MD' means `put the output
4205   # in D'.
4206   mkdir conftest.dir
4207   # Copy depcomp to subdir because otherwise we won't find it if we're
4208   # using a relative directory.
4209   cp "$am_depcomp" conftest.dir
4210   cd conftest.dir
4211   # We will build objects and dependencies in a subdirectory because
4212   # it helps to detect inapplicable dependency modes.  For instance
4213   # both Tru64's cc and ICC support -MD to output dependencies as a
4214   # side effect of compilation, but ICC will put the dependencies in
4215   # the current directory while Tru64 will put them in the object
4216   # directory.
4217   mkdir sub
4218
4219   am_cv_CCAS_dependencies_compiler_type=none
4220   if test "$am_compiler_list" = ""; then
4221      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4222   fi
4223   am__universal=false
4224
4225
4226   for depmode in $am_compiler_list; do
4227     # Setup a source with many dependencies, because some compilers
4228     # like to wrap large dependency lists on column 80 (with \), and
4229     # we should not choose a depcomp mode which is confused by this.
4230     #
4231     # We need to recreate these files for each test, as the compiler may
4232     # overwrite some of them when testing with obscure command lines.
4233     # This happens at least with the AIX C compiler.
4234     : > sub/conftest.c
4235     for i in 1 2 3 4 5 6; do
4236       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4238       # Solaris 8's {/usr,}/bin/sh.
4239       touch sub/conftst$i.h
4240     done
4241     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4244     # mode.  It turns out that the SunPro C++ compiler does not properly
4245     # handle `-M -o', and we need to detect this.  Also, some Intel
4246     # versions had trouble with output in subdirs
4247     am__obj=sub/conftest.${OBJEXT-o}
4248     am__minus_obj="-o $am__obj"
4249     case $depmode in
4250     gcc)
4251       # This depmode causes a compiler race in universal mode.
4252       test "$am__universal" = false || continue
4253       ;;
4254     nosideeffect)
4255       # after this tag, mechanisms are not by side-effect, so they'll
4256       # only be used when explicitly requested
4257       if test "x$enable_dependency_tracking" = xyes; then
4258         continue
4259       else
4260         break
4261       fi
4262       ;;
4263     msvisualcpp | msvcmsys)
4264       # This compiler won't grok `-c -o', but also, the minuso test has
4265       # not run yet.  These depmodes are late enough in the game, and
4266       # so weak that their functioning should not be impacted.
4267       am__obj=conftest.${OBJEXT-o}
4268       am__minus_obj=
4269       ;;
4270     none) break ;;
4271     esac
4272     if depmode=$depmode \
4273        source=sub/conftest.c object=$am__obj \
4274        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276          >/dev/null 2>conftest.err &&
4277        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281       # icc doesn't choke on unknown options, it will just issue warnings
4282       # or remarks (even with -Werror).  So we grep stderr for any message
4283       # that says an option was ignored or not supported.
4284       # When given -MP, icc 7.0 and 7.1 complain thusly:
4285       #   icc: Command line warning: ignoring option '-M'; no argument required
4286       # The diagnosis changed in icc 8.0:
4287       #   icc: Command line remark: option '-MP' not supported
4288       if (grep 'ignoring option' conftest.err ||
4289           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290         am_cv_CCAS_dependencies_compiler_type=$depmode
4291         break
4292       fi
4293     fi
4294   done
4295
4296   cd ..
4297   rm -rf conftest.dir
4298 else
4299   am_cv_CCAS_dependencies_compiler_type=none
4300 fi
4301
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4304 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4305 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4306
4307  if
4308   test "x$enable_dependency_tracking" != xno \
4309   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4310   am__fastdepCCAS_TRUE=
4311   am__fastdepCCAS_FALSE='#'
4312 else
4313   am__fastdepCCAS_TRUE='#'
4314   am__fastdepCCAS_FALSE=
4315 fi
4316
4317
4318 if test "x$CC" != xcc; then
4319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4320 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4321 else
4322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4323 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4324 fi
4325 set dummy $CC; ac_cc=`$as_echo "$2" |
4326                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4327 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 # Make sure it works both with $CC and with simple cc.
4342 # We do the test twice because some compilers refuse to overwrite an
4343 # existing .o file with -o, though they will create one.
4344 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4345 rm -f conftest2.*
4346 if { { case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352   (eval "$ac_try") 2>&5
4353   ac_status=$?
4354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355   test $ac_status = 0; } &&
4356    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362   (eval "$ac_try") 2>&5
4363   ac_status=$?
4364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365   test $ac_status = 0; };
4366 then
4367   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4368   if test "x$CC" != xcc; then
4369     # Test first that cc exists at all.
4370     if { ac_try='cc -c conftest.$ac_ext >&5'
4371   { { case "(($ac_try" in
4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373   *) ac_try_echo=$ac_try;;
4374 esac
4375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376 $as_echo "$ac_try_echo"; } >&5
4377   (eval "$ac_try") 2>&5
4378   ac_status=$?
4379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380   test $ac_status = 0; }; }; then
4381       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4382       rm -f conftest2.*
4383       if { { case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389   (eval "$ac_try") 2>&5
4390   ac_status=$?
4391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392   test $ac_status = 0; } &&
4393          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399   (eval "$ac_try") 2>&5
4400   ac_status=$?
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; };
4403       then
4404         # cc works too.
4405         :
4406       else
4407         # cc exists but doesn't like -o.
4408         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4409       fi
4410     fi
4411   fi
4412 else
4413   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4414 fi
4415 rm -f core conftest*
4416
4417 fi
4418 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 $as_echo "yes" >&6; }
4421 else
4422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424
4425 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4426
4427 fi
4428
4429 # FIXME: we rely on the cache variable name because
4430 # there is no other way.
4431 set dummy $CC
4432 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4433 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4434 if test "$am_t" != yes; then
4435    # Losing compiler, so override with the script.
4436    # FIXME: It is wrong to rewrite CC.
4437    # But if we don't then we get into trouble of one sort or another.
4438    # A longer-term fix would be to have automake use am__CC in this case,
4439    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4440    CC="$am_aux_dir/compile $CC"
4441 fi
4442
4443
4444 case `pwd` in
4445   *\ * | *\     *)
4446     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4447 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4448 esac
4449
4450
4451
4452 macro_version='2.2.6b'
4453 macro_revision='1.3017'
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467 ltmain="$ac_aux_dir/ltmain.sh"
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4470 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4471 if test "${ac_cv_path_SED+set}" = set; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4475      for ac_i in 1 2 3 4 5 6 7; do
4476        ac_script="$ac_script$as_nl$ac_script"
4477      done
4478      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4479      { ac_script=; unset ac_script;}
4480      if test -z "$SED"; then
4481   ac_path_SED_found=false
4482   # Loop through the user's path and test for each of PROGNAME-LIST
4483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488     for ac_prog in sed gsed; do
4489     for ac_exec_ext in '' $ac_executable_extensions; do
4490       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4491       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4492 # Check for GNU ac_path_SED and select it if it is found.
4493   # Check for GNU $ac_path_SED
4494 case `"$ac_path_SED" --version 2>&1` in
4495 *GNU*)
4496   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4497 *)
4498   ac_count=0
4499   $as_echo_n 0123456789 >"conftest.in"
4500   while :
4501   do
4502     cat "conftest.in" "conftest.in" >"conftest.tmp"
4503     mv "conftest.tmp" "conftest.in"
4504     cp "conftest.in" "conftest.nl"
4505     $as_echo '' >> "conftest.nl"
4506     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508     as_fn_arith $ac_count + 1 && ac_count=$as_val
4509     if test $ac_count -gt ${ac_path_SED_max-0}; then
4510       # Best one so far, save it but keep looking for a better one
4511       ac_cv_path_SED="$ac_path_SED"
4512       ac_path_SED_max=$ac_count
4513     fi
4514     # 10*(2^10) chars as input seems more than enough
4515     test $ac_count -gt 10 && break
4516   done
4517   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4518 esac
4519
4520       $ac_path_SED_found && break 3
4521     done
4522   done
4523   done
4524 IFS=$as_save_IFS
4525   if test -z "$ac_cv_path_SED"; then
4526     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4527   fi
4528 else
4529   ac_cv_path_SED=$SED
4530 fi
4531
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4534 $as_echo "$ac_cv_path_SED" >&6; }
4535  SED="$ac_cv_path_SED"
4536   rm -f conftest.sed
4537
4538 test -z "$SED" && SED=sed
4539 Xsed="$SED -e 1s/^X//"
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4553 if test "${ac_cv_path_GREP+set}" = set; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -z "$GREP"; then
4557   ac_path_GREP_found=false
4558   # Loop through the user's path and test for each of PROGNAME-LIST
4559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_prog in grep ggrep; do
4565     for ac_exec_ext in '' $ac_executable_extensions; do
4566       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4567       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4568 # Check for GNU ac_path_GREP and select it if it is found.
4569   # Check for GNU $ac_path_GREP
4570 case `"$ac_path_GREP" --version 2>&1` in
4571 *GNU*)
4572   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4573 *)
4574   ac_count=0
4575   $as_echo_n 0123456789 >"conftest.in"
4576   while :
4577   do
4578     cat "conftest.in" "conftest.in" >"conftest.tmp"
4579     mv "conftest.tmp" "conftest.in"
4580     cp "conftest.in" "conftest.nl"
4581     $as_echo 'GREP' >> "conftest.nl"
4582     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584     as_fn_arith $ac_count + 1 && ac_count=$as_val
4585     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4586       # Best one so far, save it but keep looking for a better one
4587       ac_cv_path_GREP="$ac_path_GREP"
4588       ac_path_GREP_max=$ac_count
4589     fi
4590     # 10*(2^10) chars as input seems more than enough
4591     test $ac_count -gt 10 && break
4592   done
4593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594 esac
4595
4596       $ac_path_GREP_found && break 3
4597     done
4598   done
4599   done
4600 IFS=$as_save_IFS
4601   if test -z "$ac_cv_path_GREP"; then
4602     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603   fi
4604 else
4605   ac_cv_path_GREP=$GREP
4606 fi
4607
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4610 $as_echo "$ac_cv_path_GREP" >&6; }
4611  GREP="$ac_cv_path_GREP"
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4615 $as_echo_n "checking for egrep... " >&6; }
4616 if test "${ac_cv_path_EGREP+set}" = set; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4620    then ac_cv_path_EGREP="$GREP -E"
4621    else
4622      if test -z "$EGREP"; then
4623   ac_path_EGREP_found=false
4624   # Loop through the user's path and test for each of PROGNAME-LIST
4625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_prog in egrep; do
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4633       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4634 # Check for GNU ac_path_EGREP and select it if it is found.
4635   # Check for GNU $ac_path_EGREP
4636 case `"$ac_path_EGREP" --version 2>&1` in
4637 *GNU*)
4638   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4639 *)
4640   ac_count=0
4641   $as_echo_n 0123456789 >"conftest.in"
4642   while :
4643   do
4644     cat "conftest.in" "conftest.in" >"conftest.tmp"
4645     mv "conftest.tmp" "conftest.in"
4646     cp "conftest.in" "conftest.nl"
4647     $as_echo 'EGREP' >> "conftest.nl"
4648     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650     as_fn_arith $ac_count + 1 && ac_count=$as_val
4651     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4652       # Best one so far, save it but keep looking for a better one
4653       ac_cv_path_EGREP="$ac_path_EGREP"
4654       ac_path_EGREP_max=$ac_count
4655     fi
4656     # 10*(2^10) chars as input seems more than enough
4657     test $ac_count -gt 10 && break
4658   done
4659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662       $ac_path_EGREP_found && break 3
4663     done
4664   done
4665   done
4666 IFS=$as_save_IFS
4667   if test -z "$ac_cv_path_EGREP"; then
4668     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669   fi
4670 else
4671   ac_cv_path_EGREP=$EGREP
4672 fi
4673
4674    fi
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4677 $as_echo "$ac_cv_path_EGREP" >&6; }
4678  EGREP="$ac_cv_path_EGREP"
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4682 $as_echo_n "checking for fgrep... " >&6; }
4683 if test "${ac_cv_path_FGREP+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4687    then ac_cv_path_FGREP="$GREP -F"
4688    else
4689      if test -z "$FGREP"; then
4690   ac_path_FGREP_found=false
4691   # Loop through the user's path and test for each of PROGNAME-LIST
4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_prog in fgrep; do
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4700       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4701 # Check for GNU ac_path_FGREP and select it if it is found.
4702   # Check for GNU $ac_path_FGREP
4703 case `"$ac_path_FGREP" --version 2>&1` in
4704 *GNU*)
4705   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4706 *)
4707   ac_count=0
4708   $as_echo_n 0123456789 >"conftest.in"
4709   while :
4710   do
4711     cat "conftest.in" "conftest.in" >"conftest.tmp"
4712     mv "conftest.tmp" "conftest.in"
4713     cp "conftest.in" "conftest.nl"
4714     $as_echo 'FGREP' >> "conftest.nl"
4715     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717     as_fn_arith $ac_count + 1 && ac_count=$as_val
4718     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4719       # Best one so far, save it but keep looking for a better one
4720       ac_cv_path_FGREP="$ac_path_FGREP"
4721       ac_path_FGREP_max=$ac_count
4722     fi
4723     # 10*(2^10) chars as input seems more than enough
4724     test $ac_count -gt 10 && break
4725   done
4726   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4728
4729       $ac_path_FGREP_found && break 3
4730     done
4731   done
4732   done
4733 IFS=$as_save_IFS
4734   if test -z "$ac_cv_path_FGREP"; then
4735     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736   fi
4737 else
4738   ac_cv_path_FGREP=$FGREP
4739 fi
4740
4741    fi
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4744 $as_echo "$ac_cv_path_FGREP" >&6; }
4745  FGREP="$ac_cv_path_FGREP"
4746
4747
4748 test -z "$GREP" && GREP=grep
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768 # Check whether --with-gnu-ld was given.
4769 if test "${with_gnu_ld+set}" = set; then :
4770   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4771 else
4772   with_gnu_ld=no
4773 fi
4774
4775 ac_prog=ld
4776 if test "$GCC" = yes; then
4777   # Check if gcc -print-prog-name=ld gives a path.
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4779 $as_echo_n "checking for ld used by $CC... " >&6; }
4780   case $host in
4781   *-*-mingw*)
4782     # gcc leaves a trailing carriage return which upsets mingw
4783     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4784   *)
4785     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4786   esac
4787   case $ac_prog in
4788     # Accept absolute paths.
4789     [\\/]* | ?:[\\/]*)
4790       re_direlt='/[^/][^/]*/\.\./'
4791       # Canonicalize the pathname of ld
4792       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4793       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4794         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4795       done
4796       test -z "$LD" && LD="$ac_prog"
4797       ;;
4798   "")
4799     # If it fails, then pretend we aren't using GCC.
4800     ac_prog=ld
4801     ;;
4802   *)
4803     # If it is relative, then search for the first ld in PATH.
4804     with_gnu_ld=unknown
4805     ;;
4806   esac
4807 elif test "$with_gnu_ld" = yes; then
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4809 $as_echo_n "checking for GNU ld... " >&6; }
4810 else
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4812 $as_echo_n "checking for non-GNU ld... " >&6; }
4813 fi
4814 if test "${lt_cv_path_LD+set}" = set; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if test -z "$LD"; then
4818   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4819   for ac_dir in $PATH; do
4820     IFS="$lt_save_ifs"
4821     test -z "$ac_dir" && ac_dir=.
4822     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4823       lt_cv_path_LD="$ac_dir/$ac_prog"
4824       # Check to see if the program is GNU ld.  I'd rather use --version,
4825       # but apparently some variants of GNU ld only accept -v.
4826       # Break only if it was the GNU/non-GNU ld that we prefer.
4827       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4828       *GNU* | *'with BFD'*)
4829         test "$with_gnu_ld" != no && break
4830         ;;
4831       *)
4832         test "$with_gnu_ld" != yes && break
4833         ;;
4834       esac
4835     fi
4836   done
4837   IFS="$lt_save_ifs"
4838 else
4839   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4840 fi
4841 fi
4842
4843 LD="$lt_cv_path_LD"
4844 if test -n "$LD"; then
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4846 $as_echo "$LD" >&6; }
4847 else
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4853 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4854 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4858 case `$LD -v 2>&1 </dev/null` in
4859 *GNU* | *'with BFD'*)
4860   lt_cv_prog_gnu_ld=yes
4861   ;;
4862 *)
4863   lt_cv_prog_gnu_ld=no
4864   ;;
4865 esac
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4868 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4869 with_gnu_ld=$lt_cv_prog_gnu_ld
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4880 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4881 if test "${lt_cv_path_NM+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   if test -n "$NM"; then
4885   # Let the user override the test.
4886   lt_cv_path_NM="$NM"
4887 else
4888   lt_nm_to_check="${ac_tool_prefix}nm"
4889   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4890     lt_nm_to_check="$lt_nm_to_check nm"
4891   fi
4892   for lt_tmp_nm in $lt_nm_to_check; do
4893     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4894     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4895       IFS="$lt_save_ifs"
4896       test -z "$ac_dir" && ac_dir=.
4897       tmp_nm="$ac_dir/$lt_tmp_nm"
4898       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4899         # Check to see if the nm accepts a BSD-compat flag.
4900         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4901         #   nm: unknown option "B" ignored
4902         # Tru64's nm complains that /dev/null is an invalid object file
4903         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4904         */dev/null* | *'Invalid file or object type'*)
4905           lt_cv_path_NM="$tmp_nm -B"
4906           break
4907           ;;
4908         *)
4909           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4910           */dev/null*)
4911             lt_cv_path_NM="$tmp_nm -p"
4912             break
4913             ;;
4914           *)
4915             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4916             continue # so that we can try to find one that supports BSD flags
4917             ;;
4918           esac
4919           ;;
4920         esac
4921       fi
4922     done
4923     IFS="$lt_save_ifs"
4924   done
4925   : ${lt_cv_path_NM=no}
4926 fi
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4929 $as_echo "$lt_cv_path_NM" >&6; }
4930 if test "$lt_cv_path_NM" != "no"; then
4931   NM="$lt_cv_path_NM"
4932 else
4933   # Didn't find any BSD compatible name lister, look for dumpbin.
4934   if test -n "$ac_tool_prefix"; then
4935   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4936   do
4937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   if test -n "$DUMPBIN"; then
4945   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959   done
4960 IFS=$as_save_IFS
4961
4962 fi
4963 fi
4964 DUMPBIN=$ac_cv_prog_DUMPBIN
4965 if test -n "$DUMPBIN"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4967 $as_echo "$DUMPBIN" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972
4973
4974     test -n "$DUMPBIN" && break
4975   done
4976 fi
4977 if test -z "$DUMPBIN"; then
4978   ac_ct_DUMPBIN=$DUMPBIN
4979   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4980 do
4981   # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy $ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -n "$ac_ct_DUMPBIN"; then
4989   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5009 if test -n "$ac_ct_DUMPBIN"; then
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5011 $as_echo "$ac_ct_DUMPBIN" >&6; }
5012 else
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017
5018   test -n "$ac_ct_DUMPBIN" && break
5019 done
5020
5021   if test "x$ac_ct_DUMPBIN" = x; then
5022     DUMPBIN=":"
5023   else
5024     case $cross_compiling:$ac_tool_warned in
5025 yes:)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030     DUMPBIN=$ac_ct_DUMPBIN
5031   fi
5032 fi
5033
5034
5035   if test "$DUMPBIN" != ":"; then
5036     NM="$DUMPBIN"
5037   fi
5038 fi
5039 test -z "$NM" && NM=nm
5040
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5047 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5048 if test "${lt_cv_nm_interface+set}" = set; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   lt_cv_nm_interface="BSD nm"
5052   echo "int some_variable = 0;" > conftest.$ac_ext
5053   (eval echo "\"\$as_me:5053: $ac_compile\"" >&5)
5054   (eval "$ac_compile" 2>conftest.err)
5055   cat conftest.err >&5
5056   (eval echo "\"\$as_me:5056: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5057   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5058   cat conftest.err >&5
5059   (eval echo "\"\$as_me:5059: output\"" >&5)
5060   cat conftest.out >&5
5061   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5062     lt_cv_nm_interface="MS dumpbin"
5063   fi
5064   rm -f conftest*
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5067 $as_echo "$lt_cv_nm_interface" >&6; }
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5070 $as_echo_n "checking whether ln -s works... " >&6; }
5071 LN_S=$as_ln_s
5072 if test "$LN_S" = "ln -s"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5074 $as_echo "yes" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5077 $as_echo "no, using $LN_S" >&6; }
5078 fi
5079
5080 # find the maximum length of command line arguments
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5082 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5083 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086     i=0
5087   teststring="ABCD"
5088
5089   case $build_os in
5090   msdosdjgpp*)
5091     # On DJGPP, this test can blow up pretty badly due to problems in libc
5092     # (any single argument exceeding 2000 bytes causes a buffer overrun
5093     # during glob expansion).  Even if it were fixed, the result of this
5094     # check would be larger than it should be.
5095     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5096     ;;
5097
5098   gnu*)
5099     # Under GNU Hurd, this test is not required because there is
5100     # no limit to the length of command line arguments.
5101     # Libtool will interpret -1 as no limit whatsoever
5102     lt_cv_sys_max_cmd_len=-1;
5103     ;;
5104
5105   cygwin* | mingw* | cegcc*)
5106     # On Win9x/ME, this test blows up -- it succeeds, but takes
5107     # about 5 minutes as the teststring grows exponentially.
5108     # Worse, since 9x/ME are not pre-emptively multitasking,
5109     # you end up with a "frozen" computer, even though with patience
5110     # the test eventually succeeds (with a max line length of 256k).
5111     # Instead, let's just punt: use the minimum linelength reported by
5112     # all of the supported platforms: 8192 (on NT/2K/XP).
5113     lt_cv_sys_max_cmd_len=8192;
5114     ;;
5115
5116   amigaos*)
5117     # On AmigaOS with pdksh, this test takes hours, literally.
5118     # So we just punt and use a minimum line length of 8192.
5119     lt_cv_sys_max_cmd_len=8192;
5120     ;;
5121
5122   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5123     # This has been around since 386BSD, at least.  Likely further.
5124     if test -x /sbin/sysctl; then
5125       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5126     elif test -x /usr/sbin/sysctl; then
5127       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5128     else
5129       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5130     fi
5131     # And add a safety zone
5132     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5133     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5134     ;;
5135
5136   interix*)
5137     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5138     lt_cv_sys_max_cmd_len=196608
5139     ;;
5140
5141   osf*)
5142     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5143     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5144     # nice to cause kernel panics so lets avoid the loop below.
5145     # First set a reasonable default.
5146     lt_cv_sys_max_cmd_len=16384
5147     #
5148     if test -x /sbin/sysconfig; then
5149       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5150         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5151       esac
5152     fi
5153     ;;
5154   sco3.2v5*)
5155     lt_cv_sys_max_cmd_len=102400
5156     ;;
5157   sysv5* | sco5v6* | sysv4.2uw2*)
5158     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5159     if test -n "$kargmax"; then
5160       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5161     else
5162       lt_cv_sys_max_cmd_len=32768
5163     fi
5164     ;;
5165   *)
5166     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5167     if test -n "$lt_cv_sys_max_cmd_len"; then
5168       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5169       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5170     else
5171       # Make teststring a little bigger before we do anything with it.
5172       # a 1K string should be a reasonable start.
5173       for i in 1 2 3 4 5 6 7 8 ; do
5174         teststring=$teststring$teststring
5175       done
5176       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5177       # If test is not a shell built-in, we'll probably end up computing a
5178       # maximum length that is only half of the actual maximum length, but
5179       # we can't tell.
5180       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5181                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5182               test $i != 17 # 1/2 MB should be enough
5183       do
5184         i=`expr $i + 1`
5185         teststring=$teststring$teststring
5186       done
5187       # Only check the string length outside the loop.
5188       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5189       teststring=
5190       # Add a significant safety factor because C++ compilers can tack on
5191       # massive amounts of additional arguments before passing them to the
5192       # linker.  It appears as though 1/2 is a usable value.
5193       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5194     fi
5195     ;;
5196   esac
5197
5198 fi
5199
5200 if test -n $lt_cv_sys_max_cmd_len ; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5202 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5205 $as_echo "none" >&6; }
5206 fi
5207 max_cmd_len=$lt_cv_sys_max_cmd_len
5208
5209
5210
5211
5212
5213
5214 : ${CP="cp -f"}
5215 : ${MV="mv -f"}
5216 : ${RM="rm -f"}
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5219 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5220 # Try some XSI features
5221 xsi_shell=no
5222 ( _lt_dummy="a/b/c"
5223   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5224       = c,a/b,, \
5225     && eval 'test $(( 1 + 1 )) -eq 2 \
5226     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5227   && xsi_shell=yes
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5229 $as_echo "$xsi_shell" >&6; }
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5233 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5234 lt_shell_append=no
5235 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5236     >/dev/null 2>&1 \
5237   && lt_shell_append=yes
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5239 $as_echo "$lt_shell_append" >&6; }
5240
5241
5242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5243   lt_unset=unset
5244 else
5245   lt_unset=false
5246 fi
5247
5248
5249
5250
5251
5252 # test EBCDIC or ASCII
5253 case `echo X|tr X '\101'` in
5254  A) # ASCII based system
5255     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5256   lt_SP2NL='tr \040 \012'
5257   lt_NL2SP='tr \015\012 \040\040'
5258   ;;
5259  *) # EBCDIC based system
5260   lt_SP2NL='tr \100 \n'
5261   lt_NL2SP='tr \r\n \100\100'
5262   ;;
5263 esac
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5274 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5275 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   lt_cv_ld_reload_flag='-r'
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5281 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5282 reload_flag=$lt_cv_ld_reload_flag
5283 case $reload_flag in
5284 "" | " "*) ;;
5285 *) reload_flag=" $reload_flag" ;;
5286 esac
5287 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5288 case $host_os in
5289   darwin*)
5290     if test "$GCC" = yes; then
5291       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5292     else
5293       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5294     fi
5295     ;;
5296 esac
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306 if test -n "$ac_tool_prefix"; then
5307   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5308 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   if test -n "$OBJDUMP"; then
5315   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322     for ac_exec_ext in '' $ac_executable_extensions; do
5323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329   done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 OBJDUMP=$ac_cv_prog_OBJDUMP
5335 if test -n "$OBJDUMP"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5337 $as_echo "$OBJDUMP" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343
5344 fi
5345 if test -z "$ac_cv_prog_OBJDUMP"; then
5346   ac_ct_OBJDUMP=$OBJDUMP
5347   # Extract the first word of "objdump", so it can be a program name with args.
5348 set dummy objdump; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   if test -n "$ac_ct_OBJDUMP"; then
5355   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362     for ac_exec_ext in '' $ac_executable_extensions; do
5363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369   done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5375 if test -n "$ac_ct_OBJDUMP"; then
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5377 $as_echo "$ac_ct_OBJDUMP" >&6; }
5378 else
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383   if test "x$ac_ct_OBJDUMP" = x; then
5384     OBJDUMP="false"
5385   else
5386     case $cross_compiling:$ac_tool_warned in
5387 yes:)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390 ac_tool_warned=yes ;;
5391 esac
5392     OBJDUMP=$ac_ct_OBJDUMP
5393   fi
5394 else
5395   OBJDUMP="$ac_cv_prog_OBJDUMP"
5396 fi
5397
5398 test -z "$OBJDUMP" && OBJDUMP=objdump
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5409 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5410 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   lt_cv_file_magic_cmd='$MAGIC_CMD'
5414 lt_cv_file_magic_test_file=
5415 lt_cv_deplibs_check_method='unknown'
5416 # Need to set the preceding variable on all platforms that support
5417 # interlibrary dependencies.
5418 # 'none' -- dependencies not supported.
5419 # `unknown' -- same as none, but documents that we really don't know.
5420 # 'pass_all' -- all dependencies passed with no checks.
5421 # 'test_compile' -- check by making test program.
5422 # 'file_magic [[regex]]' -- check by looking for files in library path
5423 # which responds to the $file_magic_cmd with a given extended regex.
5424 # If you have `file' or equivalent on your system and you're not sure
5425 # whether `pass_all' will *always* work, you probably want this one.
5426
5427 case $host_os in
5428 aix[4-9]*)
5429   lt_cv_deplibs_check_method=pass_all
5430   ;;
5431
5432 beos*)
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 bsdi[45]*)
5437   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5438   lt_cv_file_magic_cmd='/usr/bin/file -L'
5439   lt_cv_file_magic_test_file=/shlib/libc.so
5440   ;;
5441
5442 cygwin*)
5443   # func_win32_libid is a shell function defined in ltmain.sh
5444   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5445   lt_cv_file_magic_cmd='func_win32_libid'
5446   ;;
5447
5448 mingw* | pw32*)
5449   # Base MSYS/MinGW do not provide the 'file' command needed by
5450   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5451   # unless we find 'file', for example because we are cross-compiling.
5452   if ( file / ) >/dev/null 2>&1; then
5453     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5454     lt_cv_file_magic_cmd='func_win32_libid'
5455   else
5456     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5457     lt_cv_file_magic_cmd='$OBJDUMP -f'
5458   fi
5459   ;;
5460
5461 cegcc)
5462   # use the weaker test based on 'objdump'. See mingw*.
5463   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5464   lt_cv_file_magic_cmd='$OBJDUMP -f'
5465   ;;
5466
5467 darwin* | rhapsody*)
5468   lt_cv_deplibs_check_method=pass_all
5469   ;;
5470
5471 freebsd* | dragonfly*)
5472   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5473     case $host_cpu in
5474     i*86 )
5475       # Not sure whether the presence of OpenBSD here was a mistake.
5476       # Let's accept both of them until this is cleared up.
5477       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5478       lt_cv_file_magic_cmd=/usr/bin/file
5479       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5480       ;;
5481     esac
5482   else
5483     lt_cv_deplibs_check_method=pass_all
5484   fi
5485   ;;
5486
5487 gnu*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 hpux10.20* | hpux11*)
5492   lt_cv_file_magic_cmd=/usr/bin/file
5493   case $host_cpu in
5494   ia64*)
5495     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5496     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5497     ;;
5498   hppa*64*)
5499     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5500     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5501     ;;
5502   *)
5503     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5504     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5505     ;;
5506   esac
5507   ;;
5508
5509 interix[3-9]*)
5510   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5511   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5512   ;;
5513
5514 irix5* | irix6* | nonstopux*)
5515   case $LD in
5516   *-32|*"-32 ") libmagic=32-bit;;
5517   *-n32|*"-n32 ") libmagic=N32;;
5518   *-64|*"-64 ") libmagic=64-bit;;
5519   *) libmagic=never-match;;
5520   esac
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523
5524 # This must be Linux ELF.
5525 linux* | k*bsd*-gnu)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 netbsd*)
5530   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5532   else
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5534   fi
5535   ;;
5536
5537 newos6*)
5538   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5539   lt_cv_file_magic_cmd=/usr/bin/file
5540   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5541   ;;
5542
5543 *nto* | *qnx*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 openbsd*)
5548   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5549     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5550   else
5551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5552   fi
5553   ;;
5554
5555 osf3* | osf4* | osf5*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 rdos*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 solaris*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 sysv4 | sysv4.3*)
5572   case $host_vendor in
5573   motorola)
5574     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]'
5575     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5576     ;;
5577   ncr)
5578     lt_cv_deplibs_check_method=pass_all
5579     ;;
5580   sequent)
5581     lt_cv_file_magic_cmd='/bin/file'
5582     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5583     ;;
5584   sni)
5585     lt_cv_file_magic_cmd='/bin/file'
5586     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5587     lt_cv_file_magic_test_file=/lib/libc.so
5588     ;;
5589   siemens)
5590     lt_cv_deplibs_check_method=pass_all
5591     ;;
5592   pc)
5593     lt_cv_deplibs_check_method=pass_all
5594     ;;
5595   esac
5596   ;;
5597
5598 tpf*)
5599   lt_cv_deplibs_check_method=pass_all
5600   ;;
5601 esac
5602
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5605 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5606 file_magic_cmd=$lt_cv_file_magic_cmd
5607 deplibs_check_method=$lt_cv_deplibs_check_method
5608 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 if test -n "$ac_tool_prefix"; then
5622   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}ar; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_prog_AR+set}" = set; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   if test -n "$AR"; then
5630   ac_cv_prog_AR="$AR" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639     ac_cv_prog_AR="${ac_tool_prefix}ar"
5640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644   done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 AR=$ac_cv_prog_AR
5650 if test -n "$AR"; then
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5652 $as_echo "$AR" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659 fi
5660 if test -z "$ac_cv_prog_AR"; then
5661   ac_ct_AR=$AR
5662   # Extract the first word of "ar", so it can be a program name with args.
5663 set dummy ar; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   if test -n "$ac_ct_AR"; then
5670   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_ac_ct_AR="ar"
5680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684   done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5690 if test -n "$ac_ct_AR"; then
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5692 $as_echo "$ac_ct_AR" >&6; }
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698   if test "x$ac_ct_AR" = x; then
5699     AR="false"
5700   else
5701     case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707     AR=$ac_ct_AR
5708   fi
5709 else
5710   AR="$ac_cv_prog_AR"
5711 fi
5712
5713 test -z "$AR" && AR=ar
5714 test -z "$AR_FLAGS" && AR_FLAGS=cru
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_STRIP+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$STRIP"; then
5735   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 STRIP=$ac_cv_prog_STRIP
5755 if test -n "$STRIP"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5757 $as_echo "$STRIP" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_STRIP"; then
5766   ac_ct_STRIP=$STRIP
5767   # Extract the first word of "strip", so it can be a program name with args.
5768 set dummy strip; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -n "$ac_ct_STRIP"; then
5775   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_prog_ac_ct_STRIP="strip"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5795 if test -n "$ac_ct_STRIP"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5797 $as_echo "$ac_ct_STRIP" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803   if test "x$ac_ct_STRIP" = x; then
5804     STRIP=":"
5805   else
5806     case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812     STRIP=$ac_ct_STRIP
5813   fi
5814 else
5815   STRIP="$ac_cv_prog_STRIP"
5816 fi
5817
5818 test -z "$STRIP" && STRIP=:
5819
5820
5821
5822
5823
5824
5825 if test -n "$ac_tool_prefix"; then
5826   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$RANLIB"; then
5834   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 RANLIB=$ac_cv_prog_RANLIB
5854 if test -n "$RANLIB"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5856 $as_echo "$RANLIB" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 if test -z "$ac_cv_prog_RANLIB"; then
5865   ac_ct_RANLIB=$RANLIB
5866   # Extract the first word of "ranlib", so it can be a program name with args.
5867 set dummy ranlib; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if test -n "$ac_ct_RANLIB"; then
5874   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_ac_ct_RANLIB="ranlib"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5894 if test -n "$ac_ct_RANLIB"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5896 $as_echo "$ac_ct_RANLIB" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902   if test "x$ac_ct_RANLIB" = x; then
5903     RANLIB=":"
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     RANLIB=$ac_ct_RANLIB
5912   fi
5913 else
5914   RANLIB="$ac_cv_prog_RANLIB"
5915 fi
5916
5917 test -z "$RANLIB" && RANLIB=:
5918
5919
5920
5921
5922
5923
5924 # Determine commands to create old-style static archives.
5925 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5926 old_postinstall_cmds='chmod 644 $oldlib'
5927 old_postuninstall_cmds=
5928
5929 if test -n "$RANLIB"; then
5930   case $host_os in
5931   openbsd*)
5932     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5933     ;;
5934   *)
5935     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5936     ;;
5937   esac
5938   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 # If no C compiler was specified, use CC.
5975 LTCC=${LTCC-"$CC"}
5976
5977 # If no C compiler flags were specified, use CFLAGS.
5978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979
5980 # Allow CC to be a program name with arguments.
5981 compiler=$CC
5982
5983
5984 # Check for command to grab the raw symbol name followed by C symbol from nm.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5986 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5987 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990
5991 # These are sane defaults that work on at least a few old systems.
5992 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5993
5994 # Character class describing NM global symbol codes.
5995 symcode='[BCDEGRST]'
5996
5997 # Regexp to match symbols that can be accessed directly from C.
5998 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999
6000 # Define system-specific variables.
6001 case $host_os in
6002 aix*)
6003   symcode='[BCDT]'
6004   ;;
6005 cygwin* | mingw* | pw32* | cegcc*)
6006   symcode='[ABCDGISTW]'
6007   ;;
6008 hpux*)
6009   if test "$host_cpu" = ia64; then
6010     symcode='[ABCDEGRST]'
6011   fi
6012   ;;
6013 irix* | nonstopux*)
6014   symcode='[BCDEGRST]'
6015   ;;
6016 osf*)
6017   symcode='[BCDEGQRST]'
6018   ;;
6019 solaris*)
6020   symcode='[BDRT]'
6021   ;;
6022 sco3.2v5*)
6023   symcode='[DT]'
6024   ;;
6025 sysv4.2uw2*)
6026   symcode='[DT]'
6027   ;;
6028 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6029   symcode='[ABDT]'
6030   ;;
6031 sysv4)
6032   symcode='[DFNSTU]'
6033   ;;
6034 esac
6035
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU* | *'with BFD'*)
6039   symcode='[ABCDGIRSTW]' ;;
6040 esac
6041
6042 # Transform an extracted symbol line into a proper C declaration.
6043 # Some systems (esp. on ia64) link data and code symbols differently,
6044 # so use this general approach.
6045 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046
6047 # Transform an extracted symbol line into symbol name and symbol address
6048 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6049 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'"
6050
6051 # Handle CRLF in mingw tool chain
6052 opt_cr=
6053 case $build_os in
6054 mingw*)
6055   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6056   ;;
6057 esac
6058
6059 # Try without a prefix underscore, then with it.
6060 for ac_symprfx in "" "_"; do
6061
6062   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6063   symxfrm="\\1 $ac_symprfx\\2 \\2"
6064
6065   # Write the raw and C identifiers.
6066   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6067     # Fake it for dumpbin and say T for any non-static function
6068     # and D for any global variable.
6069     # Also find C++ and __fastcall symbols from MSVC++,
6070     # which start with @ or ?.
6071     lt_cv_sys_global_symbol_pipe="$AWK '"\
6072 "     {last_section=section; section=\$ 3};"\
6073 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6074 "     \$ 0!~/External *\|/{next};"\
6075 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6076 "     {if(hide[section]) next};"\
6077 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6078 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6079 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6080 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6081 "     ' prfx=^$ac_symprfx"
6082   else
6083     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6084   fi
6085
6086   # Check to see that the pipe works correctly.
6087   pipe_works=no
6088
6089   rm -f conftest*
6090   cat > conftest.$ac_ext <<_LT_EOF
6091 #ifdef __cplusplus
6092 extern "C" {
6093 #endif
6094 char nm_test_var;
6095 void nm_test_func(void);
6096 void nm_test_func(void){}
6097 #ifdef __cplusplus
6098 }
6099 #endif
6100 int main(){nm_test_var='a';nm_test_func();return(0);}
6101 _LT_EOF
6102
6103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6104   (eval $ac_compile) 2>&5
6105   ac_status=$?
6106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107   test $ac_status = 0; }; then
6108     # Now try to grab the symbols.
6109     nlist=conftest.nm
6110     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6111   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6112   ac_status=$?
6113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114   test $ac_status = 0; } && test -s "$nlist"; then
6115       # Try sorting and uniquifying the output.
6116       if sort "$nlist" | uniq > "$nlist"T; then
6117         mv -f "$nlist"T "$nlist"
6118       else
6119         rm -f "$nlist"T
6120       fi
6121
6122       # Make sure that we snagged all the symbols we need.
6123       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6124         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6125           cat <<_LT_EOF > conftest.$ac_ext
6126 #ifdef __cplusplus
6127 extern "C" {
6128 #endif
6129
6130 _LT_EOF
6131           # Now generate the symbol file.
6132           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6133
6134           cat <<_LT_EOF >> conftest.$ac_ext
6135
6136 /* The mapping between symbol names and symbols.  */
6137 const struct {
6138   const char *name;
6139   void       *address;
6140 }
6141 lt__PROGRAM__LTX_preloaded_symbols[] =
6142 {
6143   { "@PROGRAM@", (void *) 0 },
6144 _LT_EOF
6145           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6146           cat <<\_LT_EOF >> conftest.$ac_ext
6147   {0, (void *) 0}
6148 };
6149
6150 /* This works around a problem in FreeBSD linker */
6151 #ifdef FREEBSD_WORKAROUND
6152 static const void *lt_preloaded_setup() {
6153   return lt__PROGRAM__LTX_preloaded_symbols;
6154 }
6155 #endif
6156
6157 #ifdef __cplusplus
6158 }
6159 #endif
6160 _LT_EOF
6161           # Now try linking the two files.
6162           mv conftest.$ac_objext conftstm.$ac_objext
6163           lt_save_LIBS="$LIBS"
6164           lt_save_CFLAGS="$CFLAGS"
6165           LIBS="conftstm.$ac_objext"
6166           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6167           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6168   (eval $ac_link) 2>&5
6169   ac_status=$?
6170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6172             pipe_works=yes
6173           fi
6174           LIBS="$lt_save_LIBS"
6175           CFLAGS="$lt_save_CFLAGS"
6176         else
6177           echo "cannot find nm_test_func in $nlist" >&5
6178         fi
6179       else
6180         echo "cannot find nm_test_var in $nlist" >&5
6181       fi
6182     else
6183       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6184     fi
6185   else
6186     echo "$progname: failed program was:" >&5
6187     cat conftest.$ac_ext >&5
6188   fi
6189   rm -rf conftest* conftst*
6190
6191   # Do not use the global_symbol_pipe unless it works.
6192   if test "$pipe_works" = yes; then
6193     break
6194   else
6195     lt_cv_sys_global_symbol_pipe=
6196   fi
6197 done
6198
6199 fi
6200
6201 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202   lt_cv_sys_global_symbol_to_cdecl=
6203 fi
6204 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6206 $as_echo "failed" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6209 $as_echo "ok" >&6; }
6210 fi
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234 # Check whether --enable-libtool-lock was given.
6235 if test "${enable_libtool_lock+set}" = set; then :
6236   enableval=$enable_libtool_lock;
6237 fi
6238
6239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6240
6241 # Some flags need to be propagated to the compiler or linker for good
6242 # libtool support.
6243 case $host in
6244 ia64-*-hpux*)
6245   # Find out which ABI we are using.
6246   echo 'int i;' > conftest.$ac_ext
6247   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248   (eval $ac_compile) 2>&5
6249   ac_status=$?
6250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251   test $ac_status = 0; }; then
6252     case `/usr/bin/file conftest.$ac_objext` in
6253       *ELF-32*)
6254         HPUX_IA64_MODE="32"
6255         ;;
6256       *ELF-64*)
6257         HPUX_IA64_MODE="64"
6258         ;;
6259     esac
6260   fi
6261   rm -rf conftest*
6262   ;;
6263 *-*-irix6*)
6264   # Find out which ABI we are using.
6265   echo '#line 6265 "configure"' > conftest.$ac_ext
6266   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6267   (eval $ac_compile) 2>&5
6268   ac_status=$?
6269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270   test $ac_status = 0; }; then
6271     if test "$lt_cv_prog_gnu_ld" = yes; then
6272       case `/usr/bin/file conftest.$ac_objext` in
6273         *32-bit*)
6274           LD="${LD-ld} -melf32bsmip"
6275           ;;
6276         *N32*)
6277           LD="${LD-ld} -melf32bmipn32"
6278           ;;
6279         *64-bit*)
6280           LD="${LD-ld} -melf64bmip"
6281         ;;
6282       esac
6283     else
6284       case `/usr/bin/file conftest.$ac_objext` in
6285         *32-bit*)
6286           LD="${LD-ld} -32"
6287           ;;
6288         *N32*)
6289           LD="${LD-ld} -n32"
6290           ;;
6291         *64-bit*)
6292           LD="${LD-ld} -64"
6293           ;;
6294       esac
6295     fi
6296   fi
6297   rm -rf conftest*
6298   ;;
6299
6300 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6301 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6302   # Find out which ABI we are using.
6303   echo 'int i;' > conftest.$ac_ext
6304   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305   (eval $ac_compile) 2>&5
6306   ac_status=$?
6307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308   test $ac_status = 0; }; then
6309     case `/usr/bin/file conftest.o` in
6310       *32-bit*)
6311         case $host in
6312           x86_64-*kfreebsd*-gnu)
6313             LD="${LD-ld} -m elf_i386_fbsd"
6314             ;;
6315           x86_64-*linux*)
6316             LD="${LD-ld} -m elf_i386"
6317             ;;
6318           ppc64-*linux*|powerpc64-*linux*)
6319             LD="${LD-ld} -m elf32ppclinux"
6320             ;;
6321           s390x-*linux*)
6322             LD="${LD-ld} -m elf_s390"
6323             ;;
6324           sparc64-*linux*)
6325             LD="${LD-ld} -m elf32_sparc"
6326             ;;
6327         esac
6328         ;;
6329       *64-bit*)
6330         case $host in
6331           x86_64-*kfreebsd*-gnu)
6332             LD="${LD-ld} -m elf_x86_64_fbsd"
6333             ;;
6334           x86_64-*linux*)
6335             LD="${LD-ld} -m elf_x86_64"
6336             ;;
6337           ppc*-*linux*|powerpc*-*linux*)
6338             LD="${LD-ld} -m elf64ppc"
6339             ;;
6340           s390*-*linux*|s390*-*tpf*)
6341             LD="${LD-ld} -m elf64_s390"
6342             ;;
6343           sparc*-*linux*)
6344             LD="${LD-ld} -m elf64_sparc"
6345             ;;
6346         esac
6347         ;;
6348     esac
6349   fi
6350   rm -rf conftest*
6351   ;;
6352
6353 *-*-sco3.2v5*)
6354   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355   SAVE_CFLAGS="$CFLAGS"
6356   CFLAGS="$CFLAGS -belf"
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6358 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6359 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   ac_ext=c
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h.  */
6370
6371 int
6372 main ()
6373 {
6374
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 if ac_fn_c_try_link "$LINENO"; then :
6380   lt_cv_cc_needs_belf=yes
6381 else
6382   lt_cv_cc_needs_belf=no
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext \
6385     conftest$ac_exeext conftest.$ac_ext
6386      ac_ext=c
6387 ac_cpp='$CPP $CPPFLAGS'
6388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6394 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6395   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6396     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6397     CFLAGS="$SAVE_CFLAGS"
6398   fi
6399   ;;
6400 sparc*-*solaris*)
6401   # Find out which ABI we are using.
6402   echo 'int i;' > conftest.$ac_ext
6403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404   (eval $ac_compile) 2>&5
6405   ac_status=$?
6406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407   test $ac_status = 0; }; then
6408     case `/usr/bin/file conftest.o` in
6409     *64-bit*)
6410       case $lt_cv_prog_gnu_ld in
6411       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6412       *)
6413         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6414           LD="${LD-ld} -64"
6415         fi
6416         ;;
6417       esac
6418       ;;
6419     esac
6420   fi
6421   rm -rf conftest*
6422   ;;
6423 esac
6424
6425 need_locks="$enable_libtool_lock"
6426
6427
6428   case $host_os in
6429     rhapsody* | darwin*)
6430     if test -n "$ac_tool_prefix"; then
6431   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   if test -n "$DSYMUTIL"; then
6439   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6459 if test -n "$DSYMUTIL"; then
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6461 $as_echo "$DSYMUTIL" >&6; }
6462 else
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467
6468 fi
6469 if test -z "$ac_cv_prog_DSYMUTIL"; then
6470   ac_ct_DSYMUTIL=$DSYMUTIL
6471   # Extract the first word of "dsymutil", so it can be a program name with args.
6472 set dummy dsymutil; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$ac_ct_DSYMUTIL"; then
6479   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6499 if test -n "$ac_ct_DSYMUTIL"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6501 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507   if test "x$ac_ct_DSYMUTIL" = x; then
6508     DSYMUTIL=":"
6509   else
6510     case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516     DSYMUTIL=$ac_ct_DSYMUTIL
6517   fi
6518 else
6519   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6520 fi
6521
6522     if test -n "$ac_tool_prefix"; then
6523   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   if test -n "$NMEDIT"; then
6531   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538     for ac_exec_ext in '' $ac_executable_extensions; do
6539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542     break 2
6543   fi
6544 done
6545   done
6546 IFS=$as_save_IFS
6547
6548 fi
6549 fi
6550 NMEDIT=$ac_cv_prog_NMEDIT
6551 if test -n "$NMEDIT"; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6553 $as_echo "$NMEDIT" >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559
6560 fi
6561 if test -z "$ac_cv_prog_NMEDIT"; then
6562   ac_ct_NMEDIT=$NMEDIT
6563   # Extract the first word of "nmedit", so it can be a program name with args.
6564 set dummy nmedit; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   if test -n "$ac_ct_NMEDIT"; then
6571   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578     for ac_exec_ext in '' $ac_executable_extensions; do
6579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585   done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6591 if test -n "$ac_ct_NMEDIT"; then
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6593 $as_echo "$ac_ct_NMEDIT" >&6; }
6594 else
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599   if test "x$ac_ct_NMEDIT" = x; then
6600     NMEDIT=":"
6601   else
6602     case $cross_compiling:$ac_tool_warned in
6603 yes:)
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606 ac_tool_warned=yes ;;
6607 esac
6608     NMEDIT=$ac_ct_NMEDIT
6609   fi
6610 else
6611   NMEDIT="$ac_cv_prog_NMEDIT"
6612 fi
6613
6614     if test -n "$ac_tool_prefix"; then
6615   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if test "${ac_cv_prog_LIPO+set}" = set; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$LIPO"; then
6623   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 LIPO=$ac_cv_prog_LIPO
6643 if test -n "$LIPO"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6645 $as_echo "$LIPO" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_prog_LIPO"; then
6654   ac_ct_LIPO=$LIPO
6655   # Extract the first word of "lipo", so it can be a program name with args.
6656 set dummy lipo; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$ac_ct_LIPO"; then
6663   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670     for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_prog_ac_ct_LIPO="lipo"
6673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677   done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6683 if test -n "$ac_ct_LIPO"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6685 $as_echo "$ac_ct_LIPO" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691   if test "x$ac_ct_LIPO" = x; then
6692     LIPO=":"
6693   else
6694     case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700     LIPO=$ac_ct_LIPO
6701   fi
6702 else
6703   LIPO="$ac_cv_prog_LIPO"
6704 fi
6705
6706     if test -n "$ac_tool_prefix"; then
6707   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}otool; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   if test -n "$OTOOL"; then
6715   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722     for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729   done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 OTOOL=$ac_cv_prog_OTOOL
6735 if test -n "$OTOOL"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6737 $as_echo "$OTOOL" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743
6744 fi
6745 if test -z "$ac_cv_prog_OTOOL"; then
6746   ac_ct_OTOOL=$OTOOL
6747   # Extract the first word of "otool", so it can be a program name with args.
6748 set dummy otool; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$ac_ct_OTOOL"; then
6755   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762     for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_ac_ct_OTOOL="otool"
6765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769   done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6775 if test -n "$ac_ct_OTOOL"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6777 $as_echo "$ac_ct_OTOOL" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783   if test "x$ac_ct_OTOOL" = x; then
6784     OTOOL=":"
6785   else
6786     case $cross_compiling:$ac_tool_warned in
6787 yes:)
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792     OTOOL=$ac_ct_OTOOL
6793   fi
6794 else
6795   OTOOL="$ac_cv_prog_OTOOL"
6796 fi
6797
6798     if test -n "$ac_tool_prefix"; then
6799   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806   if test -n "$OTOOL64"; then
6807   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814     for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821   done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 OTOOL64=$ac_cv_prog_OTOOL64
6827 if test -n "$OTOOL64"; then
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6829 $as_echo "$OTOOL64" >&6; }
6830 else
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834
6835
6836 fi
6837 if test -z "$ac_cv_prog_OTOOL64"; then
6838   ac_ct_OTOOL64=$OTOOL64
6839   # Extract the first word of "otool64", so it can be a program name with args.
6840 set dummy otool64; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   if test -n "$ac_ct_OTOOL64"; then
6847   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856     ac_cv_prog_ac_ct_OTOOL64="otool64"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6867 if test -n "$ac_ct_OTOOL64"; then
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6869 $as_echo "$ac_ct_OTOOL64" >&6; }
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875   if test "x$ac_ct_OTOOL64" = x; then
6876     OTOOL64=":"
6877   else
6878     case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882 ac_tool_warned=yes ;;
6883 esac
6884     OTOOL64=$ac_ct_OTOOL64
6885   fi
6886 else
6887   OTOOL64="$ac_cv_prog_OTOOL64"
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6917 $as_echo_n "checking for -single_module linker flag... " >&6; }
6918 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921   lt_cv_apple_cc_single_mod=no
6922       if test -z "${LT_MULTI_MODULE}"; then
6923         # By default we will add the -single_module flag. You can override
6924         # by either setting the environment variable LT_MULTI_MODULE
6925         # non-empty at configure time, or by adding -multi_module to the
6926         # link flags.
6927         rm -rf libconftest.dylib*
6928         echo "int foo(void){return 1;}" > conftest.c
6929         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6930 -dynamiclib -Wl,-single_module conftest.c" >&5
6931         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6932           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6933         _lt_result=$?
6934         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6935           lt_cv_apple_cc_single_mod=yes
6936         else
6937           cat conftest.err >&5
6938         fi
6939         rm -rf libconftest.dylib*
6940         rm -f conftest.*
6941       fi
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6944 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6946 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6947 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   lt_cv_ld_exported_symbols_list=no
6951       save_LDFLAGS=$LDFLAGS
6952       echo "_main" > conftest.sym
6953       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h.  */
6956
6957 int
6958 main ()
6959 {
6960
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_link "$LINENO"; then :
6966   lt_cv_ld_exported_symbols_list=yes
6967 else
6968   lt_cv_ld_exported_symbols_list=no
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext \
6971     conftest$ac_exeext conftest.$ac_ext
6972         LDFLAGS="$save_LDFLAGS"
6973
6974 fi
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6976 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6977     case $host_os in
6978     rhapsody* | darwin1.[012])
6979       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6980     darwin1.*)
6981       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6982     darwin*) # darwin 5.x on
6983       # if running on 10.5 or later, the deployment target defaults
6984       # to the OS version, if on x86, and 10.4, the deployment
6985       # target defaults to 10.4. Don't you love it?
6986       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6987         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6988           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6989         10.[012]*)
6990           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6991         10.*)
6992           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6993       esac
6994     ;;
6995   esac
6996     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6997       _lt_dar_single_mod='$single_module'
6998     fi
6999     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7000       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7001     else
7002       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7003     fi
7004     if test "$DSYMUTIL" != ":"; then
7005       _lt_dsymutil='~$DSYMUTIL $lib || :'
7006     else
7007       _lt_dsymutil=
7008     fi
7009     ;;
7010   esac
7011
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7018 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7019 # On Suns, sometimes $CPP names a directory.
7020 if test -n "$CPP" && test -d "$CPP"; then
7021   CPP=
7022 fi
7023 if test -z "$CPP"; then
7024   if test "${ac_cv_prog_CPP+set}" = set; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027       # Double quotes because CPP needs to be expanded
7028     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7029     do
7030       ac_preproc_ok=false
7031 for ac_c_preproc_warn_flag in '' yes
7032 do
7033   # Use a header file that comes with gcc, so configuring glibc
7034   # with a fresh cross-compiler works.
7035   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7036   # <limits.h> exists even on freestanding compilers.
7037   # On the NeXT, cc -E runs the code through the compiler's parser,
7038   # not just through cpp. "Syntax error" is here to catch this case.
7039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h.  */
7041 #ifdef __STDC__
7042 # include <limits.h>
7043 #else
7044 # include <assert.h>
7045 #endif
7046                      Syntax error
7047 _ACEOF
7048 if ac_fn_c_try_cpp "$LINENO"; then :
7049
7050 else
7051   # Broken: fails on valid input.
7052 continue
7053 fi
7054 rm -f conftest.err conftest.$ac_ext
7055
7056   # OK, works on sane cases.  Now check whether nonexistent headers
7057   # can be detected and how.
7058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h.  */
7060 #include <ac_nonexistent.h>
7061 _ACEOF
7062 if ac_fn_c_try_cpp "$LINENO"; then :
7063   # Broken: success on invalid input.
7064 continue
7065 else
7066   # Passes both tests.
7067 ac_preproc_ok=:
7068 break
7069 fi
7070 rm -f conftest.err conftest.$ac_ext
7071
7072 done
7073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7074 rm -f conftest.err conftest.$ac_ext
7075 if $ac_preproc_ok; then :
7076   break
7077 fi
7078
7079     done
7080     ac_cv_prog_CPP=$CPP
7081
7082 fi
7083   CPP=$ac_cv_prog_CPP
7084 else
7085   ac_cv_prog_CPP=$CPP
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7088 $as_echo "$CPP" >&6; }
7089 ac_preproc_ok=false
7090 for ac_c_preproc_warn_flag in '' yes
7091 do
7092   # Use a header file that comes with gcc, so configuring glibc
7093   # with a fresh cross-compiler works.
7094   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095   # <limits.h> exists even on freestanding compilers.
7096   # On the NeXT, cc -E runs the code through the compiler's parser,
7097   # not just through cpp. "Syntax error" is here to catch this case.
7098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h.  */
7100 #ifdef __STDC__
7101 # include <limits.h>
7102 #else
7103 # include <assert.h>
7104 #endif
7105                      Syntax error
7106 _ACEOF
7107 if ac_fn_c_try_cpp "$LINENO"; then :
7108
7109 else
7110   # Broken: fails on valid input.
7111 continue
7112 fi
7113 rm -f conftest.err conftest.$ac_ext
7114
7115   # OK, works on sane cases.  Now check whether nonexistent headers
7116   # can be detected and how.
7117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h.  */
7119 #include <ac_nonexistent.h>
7120 _ACEOF
7121 if ac_fn_c_try_cpp "$LINENO"; then :
7122   # Broken: success on invalid input.
7123 continue
7124 else
7125   # Passes both tests.
7126 ac_preproc_ok=:
7127 break
7128 fi
7129 rm -f conftest.err conftest.$ac_ext
7130
7131 done
7132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7133 rm -f conftest.err conftest.$ac_ext
7134 if $ac_preproc_ok; then :
7135
7136 else
7137   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7139 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7140 See \`config.log' for more details." "$LINENO" 5; }
7141 fi
7142
7143 ac_ext=c
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7151 $as_echo_n "checking for ANSI C header files... " >&6; }
7152 if test "${ac_cv_header_stdc+set}" = set; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 #include <stdlib.h>
7158 #include <stdarg.h>
7159 #include <string.h>
7160 #include <float.h>
7161
7162 int
7163 main ()
7164 {
7165
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171   ac_cv_header_stdc=yes
7172 else
7173   ac_cv_header_stdc=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176
7177 if test $ac_cv_header_stdc = yes; then
7178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 #include <string.h>
7182
7183 _ACEOF
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185   $EGREP "memchr" >/dev/null 2>&1; then :
7186
7187 else
7188   ac_cv_header_stdc=no
7189 fi
7190 rm -f conftest*
7191
7192 fi
7193
7194 if test $ac_cv_header_stdc = yes; then
7195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h.  */
7198 #include <stdlib.h>
7199
7200 _ACEOF
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202   $EGREP "free" >/dev/null 2>&1; then :
7203
7204 else
7205   ac_cv_header_stdc=no
7206 fi
7207 rm -f conftest*
7208
7209 fi
7210
7211 if test $ac_cv_header_stdc = yes; then
7212   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7213   if test "$cross_compiling" = yes; then :
7214   :
7215 else
7216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h.  */
7218 #include <ctype.h>
7219 #include <stdlib.h>
7220 #if ((' ' & 0x0FF) == 0x020)
7221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7223 #else
7224 # define ISLOWER(c) \
7225                    (('a' <= (c) && (c) <= 'i') \
7226                      || ('j' <= (c) && (c) <= 'r') \
7227                      || ('s' <= (c) && (c) <= 'z'))
7228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7229 #endif
7230
7231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7232 int
7233 main ()
7234 {
7235   int i;
7236   for (i = 0; i < 256; i++)
7237     if (XOR (islower (i), ISLOWER (i))
7238         || toupper (i) != TOUPPER (i))
7239       return 2;
7240   return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_run "$LINENO"; then :
7244
7245 else
7246   ac_cv_header_stdc=no
7247 fi
7248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249   conftest.$ac_objext conftest.beam conftest.$ac_ext
7250 fi
7251
7252 fi
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7255 $as_echo "$ac_cv_header_stdc" >&6; }
7256 if test $ac_cv_header_stdc = yes; then
7257
7258 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7259
7260 fi
7261
7262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7264                   inttypes.h stdint.h unistd.h
7265 do :
7266   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7267 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7268 "
7269 eval as_val=\$$as_ac_Header
7270    if test "x$as_val" = x""yes; then :
7271   cat >>confdefs.h <<_ACEOF
7272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273 _ACEOF
7274
7275 fi
7276
7277 done
7278
7279
7280 for ac_header in dlfcn.h
7281 do :
7282   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7283 "
7284 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7285   cat >>confdefs.h <<_ACEOF
7286 #define HAVE_DLFCN_H 1
7287 _ACEOF
7288
7289 fi
7290
7291 done
7292
7293
7294
7295 # Set options
7296
7297
7298
7299         enable_dlopen=no
7300
7301
7302   enable_win32_dll=no
7303
7304
7305             # Check whether --enable-shared was given.
7306 if test "${enable_shared+set}" = set; then :
7307   enableval=$enable_shared; p=${PACKAGE-default}
7308     case $enableval in
7309     yes) enable_shared=yes ;;
7310     no) enable_shared=no ;;
7311     *)
7312       enable_shared=no
7313       # Look at the argument we got.  We use all the common list separators.
7314       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315       for pkg in $enableval; do
7316         IFS="$lt_save_ifs"
7317         if test "X$pkg" = "X$p"; then
7318           enable_shared=yes
7319         fi
7320       done
7321       IFS="$lt_save_ifs"
7322       ;;
7323     esac
7324 else
7325   enable_shared=yes
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336   # Check whether --enable-static was given.
7337 if test "${enable_static+set}" = set; then :
7338   enableval=$enable_static; p=${PACKAGE-default}
7339     case $enableval in
7340     yes) enable_static=yes ;;
7341     no) enable_static=no ;;
7342     *)
7343      enable_static=no
7344       # Look at the argument we got.  We use all the common list separators.
7345       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346       for pkg in $enableval; do
7347         IFS="$lt_save_ifs"
7348         if test "X$pkg" = "X$p"; then
7349           enable_static=yes
7350         fi
7351       done
7352       IFS="$lt_save_ifs"
7353       ;;
7354     esac
7355 else
7356   enable_static=yes
7357 fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 # Check whether --with-pic was given.
7369 if test "${with_pic+set}" = set; then :
7370   withval=$with_pic; pic_mode="$withval"
7371 else
7372   pic_mode=default
7373 fi
7374
7375
7376 test -z "$pic_mode" && pic_mode=default
7377
7378
7379
7380
7381
7382
7383
7384   # Check whether --enable-fast-install was given.
7385 if test "${enable_fast_install+set}" = set; then :
7386   enableval=$enable_fast_install; p=${PACKAGE-default}
7387     case $enableval in
7388     yes) enable_fast_install=yes ;;
7389     no) enable_fast_install=no ;;
7390     *)
7391       enable_fast_install=no
7392       # Look at the argument we got.  We use all the common list separators.
7393       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7394       for pkg in $enableval; do
7395         IFS="$lt_save_ifs"
7396         if test "X$pkg" = "X$p"; then
7397           enable_fast_install=yes
7398         fi
7399       done
7400       IFS="$lt_save_ifs"
7401       ;;
7402     esac
7403 else
7404   enable_fast_install=yes
7405 fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 # This can be used to rebuild libtool when needed
7418 LIBTOOL_DEPS="$ltmain"
7419
7420 # Always use our own libtool.
7421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447 test -z "$LN_S" && LN_S="ln -s"
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 if test -n "${ZSH_VERSION+set}" ; then
7463    setopt NO_GLOB_SUBST
7464 fi
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7467 $as_echo_n "checking for objdir... " >&6; }
7468 if test "${lt_cv_objdir+set}" = set; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   rm -f .libs 2>/dev/null
7472 mkdir .libs 2>/dev/null
7473 if test -d .libs; then
7474   lt_cv_objdir=.libs
7475 else
7476   # MS-DOS does not allow filenames that begin with a dot.
7477   lt_cv_objdir=_libs
7478 fi
7479 rmdir .libs 2>/dev/null
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7482 $as_echo "$lt_cv_objdir" >&6; }
7483 objdir=$lt_cv_objdir
7484
7485
7486
7487
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define LT_OBJDIR "$lt_cv_objdir/"
7491 _ACEOF
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 case $host_os in
7510 aix3*)
7511   # AIX sometimes has problems with the GCC collect2 program.  For some
7512   # reason, if we set the COLLECT_NAMES environment variable, the problems
7513   # vanish in a puff of smoke.
7514   if test "X${COLLECT_NAMES+set}" != Xset; then
7515     COLLECT_NAMES=
7516     export COLLECT_NAMES
7517   fi
7518   ;;
7519 esac
7520
7521 # Sed substitution that helps us do robust quoting.  It backslashifies
7522 # metacharacters that are still active within double-quoted strings.
7523 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7524
7525 # Same as above, but do not quote variable references.
7526 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7527
7528 # Sed substitution to delay expansion of an escaped shell variable in a
7529 # double_quote_subst'ed string.
7530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7531
7532 # Sed substitution to delay expansion of an escaped single quote.
7533 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7534
7535 # Sed substitution to avoid accidental globbing in evaled expressions
7536 no_glob_subst='s/\*/\\\*/g'
7537
7538 # Global variables:
7539 ofile=libtool
7540 can_build_shared=yes
7541
7542 # All known linkers require a `.a' archive for static linking (except MSVC,
7543 # which needs '.lib').
7544 libext=a
7545
7546 with_gnu_ld="$lt_cv_prog_gnu_ld"
7547
7548 old_CC="$CC"
7549 old_CFLAGS="$CFLAGS"
7550
7551 # Set sane defaults for various variables
7552 test -z "$CC" && CC=cc
7553 test -z "$LTCC" && LTCC=$CC
7554 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7555 test -z "$LD" && LD=ld
7556 test -z "$ac_objext" && ac_objext=o
7557
7558 for cc_temp in $compiler""; do
7559   case $cc_temp in
7560     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7561     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7562     \-*) ;;
7563     *) break;;
7564   esac
7565 done
7566 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7567
7568
7569 # Only perform the check for file, if the check method requires it
7570 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7571 case $deplibs_check_method in
7572 file_magic*)
7573   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7575 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7576 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   case $MAGIC_CMD in
7580 [\\/*] |  ?:[\\/]*)
7581   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7582   ;;
7583 *)
7584   lt_save_MAGIC_CMD="$MAGIC_CMD"
7585   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7586   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7587   for ac_dir in $ac_dummy; do
7588     IFS="$lt_save_ifs"
7589     test -z "$ac_dir" && ac_dir=.
7590     if test -f $ac_dir/${ac_tool_prefix}file; then
7591       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7592       if test -n "$file_magic_test_file"; then
7593         case $deplibs_check_method in
7594         "file_magic "*)
7595           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7596           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7598             $EGREP "$file_magic_regex" > /dev/null; then
7599             :
7600           else
7601             cat <<_LT_EOF 1>&2
7602
7603 *** Warning: the command libtool uses to detect shared libraries,
7604 *** $file_magic_cmd, produces output that libtool cannot recognize.
7605 *** The result is that libtool may fail to recognize shared libraries
7606 *** as such.  This will affect the creation of libtool libraries that
7607 *** depend on shared libraries, but programs linked with such libtool
7608 *** libraries will work regardless of this problem.  Nevertheless, you
7609 *** may want to report the problem to your system manager and/or to
7610 *** bug-libtool@gnu.org
7611
7612 _LT_EOF
7613           fi ;;
7614         esac
7615       fi
7616       break
7617     fi
7618   done
7619   IFS="$lt_save_ifs"
7620   MAGIC_CMD="$lt_save_MAGIC_CMD"
7621   ;;
7622 esac
7623 fi
7624
7625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7626 if test -n "$MAGIC_CMD"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7628 $as_echo "$MAGIC_CMD" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635
7636
7637
7638 if test -z "$lt_cv_path_MAGIC_CMD"; then
7639   if test -n "$ac_tool_prefix"; then
7640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7641 $as_echo_n "checking for file... " >&6; }
7642 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   case $MAGIC_CMD in
7646 [\\/*] |  ?:[\\/]*)
7647   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7648   ;;
7649 *)
7650   lt_save_MAGIC_CMD="$MAGIC_CMD"
7651   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7652   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7653   for ac_dir in $ac_dummy; do
7654     IFS="$lt_save_ifs"
7655     test -z "$ac_dir" && ac_dir=.
7656     if test -f $ac_dir/file; then
7657       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7658       if test -n "$file_magic_test_file"; then
7659         case $deplibs_check_method in
7660         "file_magic "*)
7661           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7662           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7664             $EGREP "$file_magic_regex" > /dev/null; then
7665             :
7666           else
7667             cat <<_LT_EOF 1>&2
7668
7669 *** Warning: the command libtool uses to detect shared libraries,
7670 *** $file_magic_cmd, produces output that libtool cannot recognize.
7671 *** The result is that libtool may fail to recognize shared libraries
7672 *** as such.  This will affect the creation of libtool libraries that
7673 *** depend on shared libraries, but programs linked with such libtool
7674 *** libraries will work regardless of this problem.  Nevertheless, you
7675 *** may want to report the problem to your system manager and/or to
7676 *** bug-libtool@gnu.org
7677
7678 _LT_EOF
7679           fi ;;
7680         esac
7681       fi
7682       break
7683     fi
7684   done
7685   IFS="$lt_save_ifs"
7686   MAGIC_CMD="$lt_save_MAGIC_CMD"
7687   ;;
7688 esac
7689 fi
7690
7691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692 if test -n "$MAGIC_CMD"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7694 $as_echo "$MAGIC_CMD" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701   else
7702     MAGIC_CMD=:
7703   fi
7704 fi
7705
7706   fi
7707   ;;
7708 esac
7709
7710 # Use C for the default configuration in the libtool script
7711
7712 lt_save_CC="$CC"
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719
7720 # Source file extension for C test sources.
7721 ac_ext=c
7722
7723 # Object file extension for compiled C test sources.
7724 objext=o
7725 objext=$objext
7726
7727 # Code to be used in simple compile tests
7728 lt_simple_compile_test_code="int some_variable = 0;"
7729
7730 # Code to be used in simple link tests
7731 lt_simple_link_test_code='int main(){return(0);}'
7732
7733
7734
7735
7736
7737
7738
7739 # If no C compiler was specified, use CC.
7740 LTCC=${LTCC-"$CC"}
7741
7742 # If no C compiler flags were specified, use CFLAGS.
7743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7744
7745 # Allow CC to be a program name with arguments.
7746 compiler=$CC
7747
7748 # Save the default compiler, since it gets overwritten when the other
7749 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7750 compiler_DEFAULT=$CC
7751
7752 # save warnings/boilerplate of simple test code
7753 ac_outfile=conftest.$ac_objext
7754 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7756 _lt_compiler_boilerplate=`cat conftest.err`
7757 $RM conftest*
7758
7759 ac_outfile=conftest.$ac_objext
7760 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7762 _lt_linker_boilerplate=`cat conftest.err`
7763 $RM -r conftest*
7764
7765
7766 if test -n "$compiler"; then
7767
7768 lt_prog_compiler_no_builtin_flag=
7769
7770 if test "$GCC" = yes; then
7771   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7772
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7774 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7775 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   lt_cv_prog_compiler_rtti_exceptions=no
7779    ac_outfile=conftest.$ac_objext
7780    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7781    lt_compiler_flag="-fno-rtti -fno-exceptions"
7782    # Insert the option either (1) after the last *FLAGS variable, or
7783    # (2) before a word containing "conftest.", or (3) at the end.
7784    # Note that $ac_compile itself does not contain backslashes and begins
7785    # with a dollar sign (not a hyphen), so the echo should work correctly.
7786    # The option is referenced via a variable to avoid confusing sed.
7787    lt_compile=`echo "$ac_compile" | $SED \
7788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7790    -e 's:$: $lt_compiler_flag:'`
7791    (eval echo "\"\$as_me:7791: $lt_compile\"" >&5)
7792    (eval "$lt_compile" 2>conftest.err)
7793    ac_status=$?
7794    cat conftest.err >&5
7795    echo "$as_me:7795: \$? = $ac_status" >&5
7796    if (exit $ac_status) && test -s "$ac_outfile"; then
7797      # The compiler can only warn and ignore the option if not recognized
7798      # So say no if there are warnings other than the usual output.
7799      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7800      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7801      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7802        lt_cv_prog_compiler_rtti_exceptions=yes
7803      fi
7804    fi
7805    $RM conftest*
7806
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7809 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7810
7811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7812     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7813 else
7814     :
7815 fi
7816
7817 fi
7818
7819
7820
7821
7822
7823
7824   lt_prog_compiler_wl=
7825 lt_prog_compiler_pic=
7826 lt_prog_compiler_static=
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7830
7831   if test "$GCC" = yes; then
7832     lt_prog_compiler_wl='-Wl,'
7833     lt_prog_compiler_static='-static'
7834
7835     case $host_os in
7836       aix*)
7837       # All AIX code is PIC.
7838       if test "$host_cpu" = ia64; then
7839         # AIX 5 now supports IA64 processor
7840         lt_prog_compiler_static='-Bstatic'
7841       fi
7842       ;;
7843
7844     amigaos*)
7845       case $host_cpu in
7846       powerpc)
7847             # see comment about AmigaOS4 .so support
7848             lt_prog_compiler_pic='-fPIC'
7849         ;;
7850       m68k)
7851             # FIXME: we need at least 68020 code to build shared libraries, but
7852             # adding the `-m68020' flag to GCC prevents building anything better,
7853             # like `-m68040'.
7854             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7855         ;;
7856       esac
7857       ;;
7858
7859     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7860       # PIC is the default for these OSes.
7861       ;;
7862
7863     mingw* | cygwin* | pw32* | os2* | cegcc*)
7864       # This hack is so that the source file can tell whether it is being
7865       # built for inclusion in a dll (and should export symbols for example).
7866       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7867       # (--disable-auto-import) libraries
7868       lt_prog_compiler_pic='-DDLL_EXPORT'
7869       ;;
7870
7871     darwin* | rhapsody*)
7872       # PIC is the default on this platform
7873       # Common symbols not allowed in MH_DYLIB files
7874       lt_prog_compiler_pic='-fno-common'
7875       ;;
7876
7877     hpux*)
7878       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7879       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7880       # sets the default TLS model and affects inlining.
7881       case $host_cpu in
7882       hppa*64*)
7883         # +Z the default
7884         ;;
7885       *)
7886         lt_prog_compiler_pic='-fPIC'
7887         ;;
7888       esac
7889       ;;
7890
7891     interix[3-9]*)
7892       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7893       # Instead, we relocate shared libraries at runtime.
7894       ;;
7895
7896     msdosdjgpp*)
7897       # Just because we use GCC doesn't mean we suddenly get shared libraries
7898       # on systems that don't support them.
7899       lt_prog_compiler_can_build_shared=no
7900       enable_shared=no
7901       ;;
7902
7903     *nto* | *qnx*)
7904       # QNX uses GNU C++, but need to define -shared option too, otherwise
7905       # it will coredump.
7906       lt_prog_compiler_pic='-fPIC -shared'
7907       ;;
7908
7909     sysv4*MP*)
7910       if test -d /usr/nec; then
7911         lt_prog_compiler_pic=-Kconform_pic
7912       fi
7913       ;;
7914
7915     *)
7916       lt_prog_compiler_pic='-fPIC'
7917       ;;
7918     esac
7919   else
7920     # PORTME Check for flag to pass linker flags through the system compiler.
7921     case $host_os in
7922     aix*)
7923       lt_prog_compiler_wl='-Wl,'
7924       if test "$host_cpu" = ia64; then
7925         # AIX 5 now supports IA64 processor
7926         lt_prog_compiler_static='-Bstatic'
7927       else
7928         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7929       fi
7930       ;;
7931
7932     mingw* | cygwin* | pw32* | os2* | cegcc*)
7933       # This hack is so that the source file can tell whether it is being
7934       # built for inclusion in a dll (and should export symbols for example).
7935       lt_prog_compiler_pic='-DDLL_EXPORT'
7936       ;;
7937
7938     hpux9* | hpux10* | hpux11*)
7939       lt_prog_compiler_wl='-Wl,'
7940       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7941       # not for PA HP-UX.
7942       case $host_cpu in
7943       hppa*64*|ia64*)
7944         # +Z the default
7945         ;;
7946       *)
7947         lt_prog_compiler_pic='+Z'
7948         ;;
7949       esac
7950       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7951       lt_prog_compiler_static='${wl}-a ${wl}archive'
7952       ;;
7953
7954     irix5* | irix6* | nonstopux*)
7955       lt_prog_compiler_wl='-Wl,'
7956       # PIC (with -KPIC) is the default.
7957       lt_prog_compiler_static='-non_shared'
7958       ;;
7959
7960     linux* | k*bsd*-gnu)
7961       case $cc_basename in
7962       # old Intel for x86_64 which still supported -KPIC.
7963       ecc*)
7964         lt_prog_compiler_wl='-Wl,'
7965         lt_prog_compiler_pic='-KPIC'
7966         lt_prog_compiler_static='-static'
7967         ;;
7968       # icc used to be incompatible with GCC.
7969       # ICC 10 doesn't accept -KPIC any more.
7970       icc* | ifort*)
7971         lt_prog_compiler_wl='-Wl,'
7972         lt_prog_compiler_pic='-fPIC'
7973         lt_prog_compiler_static='-static'
7974         ;;
7975       # Lahey Fortran 8.1.
7976       lf95*)
7977         lt_prog_compiler_wl='-Wl,'
7978         lt_prog_compiler_pic='--shared'
7979         lt_prog_compiler_static='--static'
7980         ;;
7981       pgcc* | pgf77* | pgf90* | pgf95*)
7982         # Portland Group compilers (*not* the Pentium gcc compiler,
7983         # which looks to be a dead project)
7984         lt_prog_compiler_wl='-Wl,'
7985         lt_prog_compiler_pic='-fpic'
7986         lt_prog_compiler_static='-Bstatic'
7987         ;;
7988       ccc*)
7989         lt_prog_compiler_wl='-Wl,'
7990         # All Alpha code is PIC.
7991         lt_prog_compiler_static='-non_shared'
7992         ;;
7993       xl*)
7994         # IBM XL C 8.0/Fortran 10.1 on PPC
7995         lt_prog_compiler_wl='-Wl,'
7996         lt_prog_compiler_pic='-qpic'
7997         lt_prog_compiler_static='-qstaticlink'
7998         ;;
7999       *)
8000         case `$CC -V 2>&1 | sed 5q` in
8001         *Sun\ C*)
8002           # Sun C 5.9
8003           lt_prog_compiler_pic='-KPIC'
8004           lt_prog_compiler_static='-Bstatic'
8005           lt_prog_compiler_wl='-Wl,'
8006           ;;
8007         *Sun\ F*)
8008           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8009           lt_prog_compiler_pic='-KPIC'
8010           lt_prog_compiler_static='-Bstatic'
8011           lt_prog_compiler_wl=''
8012           ;;
8013         esac
8014         ;;
8015       esac
8016       ;;
8017
8018     newsos6)
8019       lt_prog_compiler_pic='-KPIC'
8020       lt_prog_compiler_static='-Bstatic'
8021       ;;
8022
8023     *nto* | *qnx*)
8024       # QNX uses GNU C++, but need to define -shared option too, otherwise
8025       # it will coredump.
8026       lt_prog_compiler_pic='-fPIC -shared'
8027       ;;
8028
8029     osf3* | osf4* | osf5*)
8030       lt_prog_compiler_wl='-Wl,'
8031       # All OSF/1 code is PIC.
8032       lt_prog_compiler_static='-non_shared'
8033       ;;
8034
8035     rdos*)
8036       lt_prog_compiler_static='-non_shared'
8037       ;;
8038
8039     solaris*)
8040       lt_prog_compiler_pic='-KPIC'
8041       lt_prog_compiler_static='-Bstatic'
8042       case $cc_basename in
8043       f77* | f90* | f95*)
8044         lt_prog_compiler_wl='-Qoption ld ';;
8045       *)
8046         lt_prog_compiler_wl='-Wl,';;
8047       esac
8048       ;;
8049
8050     sunos4*)
8051       lt_prog_compiler_wl='-Qoption ld '
8052       lt_prog_compiler_pic='-PIC'
8053       lt_prog_compiler_static='-Bstatic'
8054       ;;
8055
8056     sysv4 | sysv4.2uw2* | sysv4.3*)
8057       lt_prog_compiler_wl='-Wl,'
8058       lt_prog_compiler_pic='-KPIC'
8059       lt_prog_compiler_static='-Bstatic'
8060       ;;
8061
8062     sysv4*MP*)
8063       if test -d /usr/nec ;then
8064         lt_prog_compiler_pic='-Kconform_pic'
8065         lt_prog_compiler_static='-Bstatic'
8066       fi
8067       ;;
8068
8069     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8070       lt_prog_compiler_wl='-Wl,'
8071       lt_prog_compiler_pic='-KPIC'
8072       lt_prog_compiler_static='-Bstatic'
8073       ;;
8074
8075     unicos*)
8076       lt_prog_compiler_wl='-Wl,'
8077       lt_prog_compiler_can_build_shared=no
8078       ;;
8079
8080     uts4*)
8081       lt_prog_compiler_pic='-pic'
8082       lt_prog_compiler_static='-Bstatic'
8083       ;;
8084
8085     *)
8086       lt_prog_compiler_can_build_shared=no
8087       ;;
8088     esac
8089   fi
8090
8091 case $host_os in
8092   # For platforms which do not support PIC, -DPIC is meaningless:
8093   *djgpp*)
8094     lt_prog_compiler_pic=
8095     ;;
8096   *)
8097     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8098     ;;
8099 esac
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8101 $as_echo "$lt_prog_compiler_pic" >&6; }
8102
8103
8104
8105
8106
8107
8108 #
8109 # Check to make sure the PIC flag actually works.
8110 #
8111 if test -n "$lt_prog_compiler_pic"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8113 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8114 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   lt_cv_prog_compiler_pic_works=no
8118    ac_outfile=conftest.$ac_objext
8119    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8120    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8121    # Insert the option either (1) after the last *FLAGS variable, or
8122    # (2) before a word containing "conftest.", or (3) at the end.
8123    # Note that $ac_compile itself does not contain backslashes and begins
8124    # with a dollar sign (not a hyphen), so the echo should work correctly.
8125    # The option is referenced via a variable to avoid confusing sed.
8126    lt_compile=`echo "$ac_compile" | $SED \
8127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8129    -e 's:$: $lt_compiler_flag:'`
8130    (eval echo "\"\$as_me:8130: $lt_compile\"" >&5)
8131    (eval "$lt_compile" 2>conftest.err)
8132    ac_status=$?
8133    cat conftest.err >&5
8134    echo "$as_me:8134: \$? = $ac_status" >&5
8135    if (exit $ac_status) && test -s "$ac_outfile"; then
8136      # The compiler can only warn and ignore the option if not recognized
8137      # So say no if there are warnings other than the usual output.
8138      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8139      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8140      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8141        lt_cv_prog_compiler_pic_works=yes
8142      fi
8143    fi
8144    $RM conftest*
8145
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8148 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8149
8150 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8151     case $lt_prog_compiler_pic in
8152      "" | " "*) ;;
8153      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8154      esac
8155 else
8156     lt_prog_compiler_pic=
8157      lt_prog_compiler_can_build_shared=no
8158 fi
8159
8160 fi
8161
8162
8163
8164
8165
8166
8167 #
8168 # Check to make sure the static flag actually works.
8169 #
8170 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8172 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8173 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   lt_cv_prog_compiler_static_works=no
8177    save_LDFLAGS="$LDFLAGS"
8178    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8179    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8180    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8181      # The linker can only warn and ignore the option if not recognized
8182      # So say no if there are warnings
8183      if test -s conftest.err; then
8184        # Append any errors to the config.log.
8185        cat conftest.err 1>&5
8186        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8187        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8188        if diff conftest.exp conftest.er2 >/dev/null; then
8189          lt_cv_prog_compiler_static_works=yes
8190        fi
8191      else
8192        lt_cv_prog_compiler_static_works=yes
8193      fi
8194    fi
8195    $RM -r conftest*
8196    LDFLAGS="$save_LDFLAGS"
8197
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8200 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8201
8202 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8203     :
8204 else
8205     lt_prog_compiler_static=
8206 fi
8207
8208
8209
8210
8211
8212
8213
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8216 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   lt_cv_prog_compiler_c_o=no
8220    $RM -r conftest 2>/dev/null
8221    mkdir conftest
8222    cd conftest
8223    mkdir out
8224    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8225
8226    lt_compiler_flag="-o out/conftest2.$ac_objext"
8227    # Insert the option either (1) after the last *FLAGS variable, or
8228    # (2) before a word containing "conftest.", or (3) at the end.
8229    # Note that $ac_compile itself does not contain backslashes and begins
8230    # with a dollar sign (not a hyphen), so the echo should work correctly.
8231    lt_compile=`echo "$ac_compile" | $SED \
8232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234    -e 's:$: $lt_compiler_flag:'`
8235    (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236    (eval "$lt_compile" 2>out/conftest.err)
8237    ac_status=$?
8238    cat out/conftest.err >&5
8239    echo "$as_me:8239: \$? = $ac_status" >&5
8240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8241    then
8242      # The compiler can only warn and ignore the option if not recognized
8243      # So say no if there are warnings
8244      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8247        lt_cv_prog_compiler_c_o=yes
8248      fi
8249    fi
8250    chmod u+w . 2>&5
8251    $RM conftest*
8252    # SGI C++ compiler will create directory out/ii_files/ for
8253    # template instantiation
8254    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8255    $RM out/* && rmdir out
8256    cd ..
8257    $RM -r conftest
8258    $RM conftest*
8259
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8263
8264
8265
8266
8267
8268
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8271 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   lt_cv_prog_compiler_c_o=no
8275    $RM -r conftest 2>/dev/null
8276    mkdir conftest
8277    cd conftest
8278    mkdir out
8279    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8280
8281    lt_compiler_flag="-o out/conftest2.$ac_objext"
8282    # Insert the option either (1) after the last *FLAGS variable, or
8283    # (2) before a word containing "conftest.", or (3) at the end.
8284    # Note that $ac_compile itself does not contain backslashes and begins
8285    # with a dollar sign (not a hyphen), so the echo should work correctly.
8286    lt_compile=`echo "$ac_compile" | $SED \
8287    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8288    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8289    -e 's:$: $lt_compiler_flag:'`
8290    (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
8291    (eval "$lt_compile" 2>out/conftest.err)
8292    ac_status=$?
8293    cat out/conftest.err >&5
8294    echo "$as_me:8294: \$? = $ac_status" >&5
8295    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8296    then
8297      # The compiler can only warn and ignore the option if not recognized
8298      # So say no if there are warnings
8299      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8300      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8301      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8302        lt_cv_prog_compiler_c_o=yes
8303      fi
8304    fi
8305    chmod u+w . 2>&5
8306    $RM conftest*
8307    # SGI C++ compiler will create directory out/ii_files/ for
8308    # template instantiation
8309    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8310    $RM out/* && rmdir out
8311    cd ..
8312    $RM -r conftest
8313    $RM conftest*
8314
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8317 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8318
8319
8320
8321
8322 hard_links="nottested"
8323 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8324   # do not overwrite the value of need_locks provided by the user
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8326 $as_echo_n "checking if we can lock with hard links... " >&6; }
8327   hard_links=yes
8328   $RM conftest*
8329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8330   touch conftest.a
8331   ln conftest.a conftest.b 2>&5 || hard_links=no
8332   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8334 $as_echo "$hard_links" >&6; }
8335   if test "$hard_links" = no; then
8336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8337 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8338     need_locks=warn
8339   fi
8340 else
8341   need_locks=no
8342 fi
8343
8344
8345
8346
8347
8348
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8350 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8351
8352   runpath_var=
8353   allow_undefined_flag=
8354   always_export_symbols=no
8355   archive_cmds=
8356   archive_expsym_cmds=
8357   compiler_needs_object=no
8358   enable_shared_with_static_runtimes=no
8359   export_dynamic_flag_spec=
8360   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8361   hardcode_automatic=no
8362   hardcode_direct=no
8363   hardcode_direct_absolute=no
8364   hardcode_libdir_flag_spec=
8365   hardcode_libdir_flag_spec_ld=
8366   hardcode_libdir_separator=
8367   hardcode_minus_L=no
8368   hardcode_shlibpath_var=unsupported
8369   inherit_rpath=no
8370   link_all_deplibs=unknown
8371   module_cmds=
8372   module_expsym_cmds=
8373   old_archive_from_new_cmds=
8374   old_archive_from_expsyms_cmds=
8375   thread_safe_flag_spec=
8376   whole_archive_flag_spec=
8377   # include_expsyms should be a list of space-separated symbols to be *always*
8378   # included in the symbol list
8379   include_expsyms=
8380   # exclude_expsyms can be an extended regexp of symbols to exclude
8381   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8382   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8383   # as well as any symbol that contains `d'.
8384   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8385   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8386   # platforms (ab)use it in PIC code, but their linkers get confused if
8387   # the symbol is explicitly referenced.  Since portable code cannot
8388   # rely on this symbol name, it's probably fine to never include it in
8389   # preloaded symbol tables.
8390   # Exclude shared library initialization/finalization symbols.
8391   extract_expsyms_cmds=
8392
8393   case $host_os in
8394   cygwin* | mingw* | pw32* | cegcc*)
8395     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8396     # When not using gcc, we currently assume that we are using
8397     # Microsoft Visual C++.
8398     if test "$GCC" != yes; then
8399       with_gnu_ld=no
8400     fi
8401     ;;
8402   interix*)
8403     # we just hope/assume this is gcc and not c89 (= MSVC++)
8404     with_gnu_ld=yes
8405     ;;
8406   openbsd*)
8407     with_gnu_ld=no
8408     ;;
8409   esac
8410
8411   ld_shlibs=yes
8412   if test "$with_gnu_ld" = yes; then
8413     # If archive_cmds runs LD, not CC, wlarc should be empty
8414     wlarc='${wl}'
8415
8416     # Set some defaults for GNU ld with shared library support. These
8417     # are reset later if shared libraries are not supported. Putting them
8418     # here allows them to be overridden if necessary.
8419     runpath_var=LD_RUN_PATH
8420     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421     export_dynamic_flag_spec='${wl}--export-dynamic'
8422     # ancient GNU ld didn't support --whole-archive et. al.
8423     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8424       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8425     else
8426       whole_archive_flag_spec=
8427     fi
8428     supports_anon_versioning=no
8429     case `$LD -v 2>&1` in
8430       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8431       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8432       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8433       *\ 2.11.*) ;; # other 2.11 versions
8434       *) supports_anon_versioning=yes ;;
8435     esac
8436
8437     # See if GNU ld supports shared libraries.
8438     case $host_os in
8439     aix[3-9]*)
8440       # On AIX/PPC, the GNU linker is very broken
8441       if test "$host_cpu" != ia64; then
8442         ld_shlibs=no
8443         cat <<_LT_EOF 1>&2
8444
8445 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8446 *** to be unable to reliably create shared libraries on AIX.
8447 *** Therefore, libtool is disabling shared libraries support.  If you
8448 *** really care for shared libraries, you may want to modify your PATH
8449 *** so that a non-GNU linker is found, and then restart.
8450
8451 _LT_EOF
8452       fi
8453       ;;
8454
8455     amigaos*)
8456       case $host_cpu in
8457       powerpc)
8458             # see comment about AmigaOS4 .so support
8459             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8460             archive_expsym_cmds=''
8461         ;;
8462       m68k)
8463             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)'
8464             hardcode_libdir_flag_spec='-L$libdir'
8465             hardcode_minus_L=yes
8466         ;;
8467       esac
8468       ;;
8469
8470     beos*)
8471       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8472         allow_undefined_flag=unsupported
8473         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8474         # support --undefined.  This deserves some investigation.  FIXME
8475         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476       else
8477         ld_shlibs=no
8478       fi
8479       ;;
8480
8481     cygwin* | mingw* | pw32* | cegcc*)
8482       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8483       # as there is no search path for DLLs.
8484       hardcode_libdir_flag_spec='-L$libdir'
8485       allow_undefined_flag=unsupported
8486       always_export_symbols=no
8487       enable_shared_with_static_runtimes=yes
8488       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8489
8490       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8491         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492         # If the export-symbols file already is a .def file (1st line
8493         # is EXPORTS), use it as is; otherwise, prepend...
8494         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8495           cp $export_symbols $output_objdir/$soname.def;
8496         else
8497           echo EXPORTS > $output_objdir/$soname.def;
8498           cat $export_symbols >> $output_objdir/$soname.def;
8499         fi~
8500         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8501       else
8502         ld_shlibs=no
8503       fi
8504       ;;
8505
8506     interix[3-9]*)
8507       hardcode_direct=no
8508       hardcode_shlibpath_var=no
8509       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8510       export_dynamic_flag_spec='${wl}-E'
8511       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8512       # Instead, shared libraries are loaded at an image base (0x10000000 by
8513       # default) and relocated if they conflict, which is a slow very memory
8514       # consuming and fragmenting process.  To avoid this, we pick a random,
8515       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8516       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8517       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8518       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'
8519       ;;
8520
8521     gnu* | linux* | tpf* | k*bsd*-gnu)
8522       tmp_diet=no
8523       if test "$host_os" = linux-dietlibc; then
8524         case $cc_basename in
8525           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8526         esac
8527       fi
8528       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8529          && test "$tmp_diet" = no
8530       then
8531         tmp_addflag=
8532         tmp_sharedflag='-shared'
8533         case $cc_basename,$host_cpu in
8534         pgcc*)                          # Portland Group C compiler
8535           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8536           tmp_addflag=' $pic_flag'
8537           ;;
8538         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8539           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8540           tmp_addflag=' $pic_flag -Mnomain' ;;
8541         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8542           tmp_addflag=' -i_dynamic' ;;
8543         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8544           tmp_addflag=' -i_dynamic -nofor_main' ;;
8545         ifc* | ifort*)                  # Intel Fortran compiler
8546           tmp_addflag=' -nofor_main' ;;
8547         lf95*)                          # Lahey Fortran 8.1
8548           whole_archive_flag_spec=
8549           tmp_sharedflag='--shared' ;;
8550         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8551           tmp_sharedflag='-qmkshrobj'
8552           tmp_addflag= ;;
8553         esac
8554         case `$CC -V 2>&1 | sed 5q` in
8555         *Sun\ C*)                       # Sun C 5.9
8556           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8557           compiler_needs_object=yes
8558           tmp_sharedflag='-G' ;;
8559         *Sun\ F*)                       # Sun Fortran 8.3
8560           tmp_sharedflag='-G' ;;
8561         esac
8562         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563
8564         if test "x$supports_anon_versioning" = xyes; then
8565           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567             echo "local: *; };" >> $output_objdir/$libname.ver~
8568             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8569         fi
8570
8571         case $cc_basename in
8572         xlf*)
8573           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8574           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8575           hardcode_libdir_flag_spec=
8576           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8577           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8578           if test "x$supports_anon_versioning" = xyes; then
8579             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8580               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8581               echo "local: *; };" >> $output_objdir/$libname.ver~
8582               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8583           fi
8584           ;;
8585         esac
8586       else
8587         ld_shlibs=no
8588       fi
8589       ;;
8590
8591     netbsd*)
8592       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8593         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8594         wlarc=
8595       else
8596         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8598       fi
8599       ;;
8600
8601     solaris*)
8602       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8603         ld_shlibs=no
8604         cat <<_LT_EOF 1>&2
8605
8606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8607 *** create shared libraries on Solaris systems.  Therefore, libtool
8608 *** is disabling shared libraries support.  We urge you to upgrade GNU
8609 *** binutils to release 2.9.1 or newer.  Another option is to modify
8610 *** your PATH or compiler configuration so that the native linker is
8611 *** used, and then restart.
8612
8613 _LT_EOF
8614       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8617       else
8618         ld_shlibs=no
8619       fi
8620       ;;
8621
8622     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8623       case `$LD -v 2>&1` in
8624         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8625         ld_shlibs=no
8626         cat <<_LT_EOF 1>&2
8627
8628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8629 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8630 *** is disabling shared libraries support.  We urge you to upgrade GNU
8631 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8632 *** your PATH or compiler configuration so that the native linker is
8633 *** used, and then restart.
8634
8635 _LT_EOF
8636         ;;
8637         *)
8638           # For security reasons, it is highly recommended that you always
8639           # use absolute paths for naming shared libraries, and exclude the
8640           # DT_RUNPATH tag from executables and libraries.  But doing so
8641           # requires that you compile everything twice, which is a pain.
8642           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8643             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8646           else
8647             ld_shlibs=no
8648           fi
8649         ;;
8650       esac
8651       ;;
8652
8653     sunos4*)
8654       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655       wlarc=
8656       hardcode_direct=yes
8657       hardcode_shlibpath_var=no
8658       ;;
8659
8660     *)
8661       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8662         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664       else
8665         ld_shlibs=no
8666       fi
8667       ;;
8668     esac
8669
8670     if test "$ld_shlibs" = no; then
8671       runpath_var=
8672       hardcode_libdir_flag_spec=
8673       export_dynamic_flag_spec=
8674       whole_archive_flag_spec=
8675     fi
8676   else
8677     # PORTME fill in a description of your system's linker (not GNU ld)
8678     case $host_os in
8679     aix3*)
8680       allow_undefined_flag=unsupported
8681       always_export_symbols=yes
8682       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'
8683       # Note: this linker hardcodes the directories in LIBPATH if there
8684       # are no directories specified by -L.
8685       hardcode_minus_L=yes
8686       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8687         # Neither direct hardcoding nor static linking is supported with a
8688         # broken collect2.
8689         hardcode_direct=unsupported
8690       fi
8691       ;;
8692
8693     aix[4-9]*)
8694       if test "$host_cpu" = ia64; then
8695         # On IA64, the linker does run time linking by default, so we don't
8696         # have to do anything special.
8697         aix_use_runtimelinking=no
8698         exp_sym_flag='-Bexport'
8699         no_entry_flag=""
8700       else
8701         # If we're using GNU nm, then we don't want the "-C" option.
8702         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8703         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8704           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8705         else
8706           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'
8707         fi
8708         aix_use_runtimelinking=no
8709
8710         # Test if we are trying to use run time linking or normal
8711         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8712         # need to do runtime linking.
8713         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8714           for ld_flag in $LDFLAGS; do
8715           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8716             aix_use_runtimelinking=yes
8717             break
8718           fi
8719           done
8720           ;;
8721         esac
8722
8723         exp_sym_flag='-bexport'
8724         no_entry_flag='-bnoentry'
8725       fi
8726
8727       # When large executables or shared objects are built, AIX ld can
8728       # have problems creating the table of contents.  If linking a library
8729       # or program results in "error TOC overflow" add -mminimal-toc to
8730       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8731       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8732
8733       archive_cmds=''
8734       hardcode_direct=yes
8735       hardcode_direct_absolute=yes
8736       hardcode_libdir_separator=':'
8737       link_all_deplibs=yes
8738       file_list_spec='${wl}-f,'
8739
8740       if test "$GCC" = yes; then
8741         case $host_os in aix4.[012]|aix4.[012].*)
8742         # We only want to do this on AIX 4.2 and lower, the check
8743         # below for broken collect2 doesn't work under 4.3+
8744           collect2name=`${CC} -print-prog-name=collect2`
8745           if test -f "$collect2name" &&
8746            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8747           then
8748           # We have reworked collect2
8749           :
8750           else
8751           # We have old collect2
8752           hardcode_direct=unsupported
8753           # It fails to find uninstalled libraries when the uninstalled
8754           # path is not listed in the libpath.  Setting hardcode_minus_L
8755           # to unsupported forces relinking
8756           hardcode_minus_L=yes
8757           hardcode_libdir_flag_spec='-L$libdir'
8758           hardcode_libdir_separator=
8759           fi
8760           ;;
8761         esac
8762         shared_flag='-shared'
8763         if test "$aix_use_runtimelinking" = yes; then
8764           shared_flag="$shared_flag "'${wl}-G'
8765         fi
8766       else
8767         # not using gcc
8768         if test "$host_cpu" = ia64; then
8769         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8770         # chokes on -Wl,-G. The following line is correct:
8771           shared_flag='-G'
8772         else
8773           if test "$aix_use_runtimelinking" = yes; then
8774             shared_flag='${wl}-G'
8775           else
8776             shared_flag='${wl}-bM:SRE'
8777           fi
8778         fi
8779       fi
8780
8781       export_dynamic_flag_spec='${wl}-bexpall'
8782       # It seems that -bexpall does not export symbols beginning with
8783       # underscore (_), so it is better to generate a list of symbols to export.
8784       always_export_symbols=yes
8785       if test "$aix_use_runtimelinking" = yes; then
8786         # Warning - without using the other runtime loading flags (-brtl),
8787         # -berok will link without error, but may produce a broken library.
8788         allow_undefined_flag='-berok'
8789         # Determine the default libpath from the value encoded in an
8790         # empty executable.
8791         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h.  */
8793
8794 int
8795 main ()
8796 {
8797
8798   ;
8799   return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_link "$LINENO"; then :
8803
8804 lt_aix_libpath_sed='
8805     /Import File Strings/,/^$/ {
8806         /^0/ {
8807             s/^0  *\(.*\)$/\1/
8808             p
8809         }
8810     }'
8811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8812 # Check for a 64-bit object if we didn't find anything.
8813 if test -z "$aix_libpath"; then
8814   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8815 fi
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext \
8818     conftest$ac_exeext conftest.$ac_ext
8819 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8820
8821         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8822         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8823       else
8824         if test "$host_cpu" = ia64; then
8825           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8826           allow_undefined_flag="-z nodefs"
8827           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"
8828         else
8829          # Determine the default libpath from the value encoded in an
8830          # empty executable.
8831          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h.  */
8833
8834 int
8835 main ()
8836 {
8837
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_link "$LINENO"; then :
8843
8844 lt_aix_libpath_sed='
8845     /Import File Strings/,/^$/ {
8846         /^0/ {
8847             s/^0  *\(.*\)$/\1/
8848             p
8849         }
8850     }'
8851 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8852 # Check for a 64-bit object if we didn't find anything.
8853 if test -z "$aix_libpath"; then
8854   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8855 fi
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext \
8858     conftest$ac_exeext conftest.$ac_ext
8859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8860
8861          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8862           # Warning - without using the other run time loading flags,
8863           # -berok will link without error, but may produce a broken library.
8864           no_undefined_flag=' ${wl}-bernotok'
8865           allow_undefined_flag=' ${wl}-berok'
8866           # Exported symbols can be pulled into shared objects from archives
8867           whole_archive_flag_spec='$convenience'
8868           archive_cmds_need_lc=yes
8869           # This is similar to how AIX traditionally builds its shared libraries.
8870           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'
8871         fi
8872       fi
8873       ;;
8874
8875     amigaos*)
8876       case $host_cpu in
8877       powerpc)
8878             # see comment about AmigaOS4 .so support
8879             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880             archive_expsym_cmds=''
8881         ;;
8882       m68k)
8883             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)'
8884             hardcode_libdir_flag_spec='-L$libdir'
8885             hardcode_minus_L=yes
8886         ;;
8887       esac
8888       ;;
8889
8890     bsdi[45]*)
8891       export_dynamic_flag_spec=-rdynamic
8892       ;;
8893
8894     cygwin* | mingw* | pw32* | cegcc*)
8895       # When not using gcc, we currently assume that we are using
8896       # Microsoft Visual C++.
8897       # hardcode_libdir_flag_spec is actually meaningless, as there is
8898       # no search path for DLLs.
8899       hardcode_libdir_flag_spec=' '
8900       allow_undefined_flag=unsupported
8901       # Tell ltmain to make .lib files, not .a files.
8902       libext=lib
8903       # Tell ltmain to make .dll files, not .so files.
8904       shrext_cmds=".dll"
8905       # FIXME: Setting linknames here is a bad hack.
8906       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8907       # The linker will automatically build a .lib file if we build a DLL.
8908       old_archive_from_new_cmds='true'
8909       # FIXME: Should let the user specify the lib program.
8910       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8911       fix_srcfile_path=''
8912       enable_shared_with_static_runtimes=yes
8913       ;;
8914
8915     darwin* | rhapsody*)
8916
8917
8918   archive_cmds_need_lc=no
8919   hardcode_direct=no
8920   hardcode_automatic=yes
8921   hardcode_shlibpath_var=unsupported
8922   whole_archive_flag_spec=''
8923   link_all_deplibs=yes
8924   allow_undefined_flag="$_lt_dar_allow_undefined"
8925   case $cc_basename in
8926      ifort*) _lt_dar_can_shared=yes ;;
8927      *) _lt_dar_can_shared=$GCC ;;
8928   esac
8929   if test "$_lt_dar_can_shared" = "yes"; then
8930     output_verbose_link_cmd=echo
8931     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8932     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8933     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}"
8934     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}"
8935
8936   else
8937   ld_shlibs=no
8938   fi
8939
8940       ;;
8941
8942     dgux*)
8943       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944       hardcode_libdir_flag_spec='-L$libdir'
8945       hardcode_shlibpath_var=no
8946       ;;
8947
8948     freebsd1*)
8949       ld_shlibs=no
8950       ;;
8951
8952     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8953     # support.  Future versions do this automatically, but an explicit c++rt0.o
8954     # does not break anything, and helps significantly (at the cost of a little
8955     # extra space).
8956     freebsd2.2*)
8957       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8958       hardcode_libdir_flag_spec='-R$libdir'
8959       hardcode_direct=yes
8960       hardcode_shlibpath_var=no
8961       ;;
8962
8963     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8964     freebsd2*)
8965       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8966       hardcode_direct=yes
8967       hardcode_minus_L=yes
8968       hardcode_shlibpath_var=no
8969       ;;
8970
8971     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8972     freebsd* | dragonfly*)
8973       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8974       hardcode_libdir_flag_spec='-R$libdir'
8975       hardcode_direct=yes
8976       hardcode_shlibpath_var=no
8977       ;;
8978
8979     hpux9*)
8980       if test "$GCC" = yes; then
8981         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8982       else
8983         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'
8984       fi
8985       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8986       hardcode_libdir_separator=:
8987       hardcode_direct=yes
8988
8989       # hardcode_minus_L: Not really in the search PATH,
8990       # but as the default location of the library.
8991       hardcode_minus_L=yes
8992       export_dynamic_flag_spec='${wl}-E'
8993       ;;
8994
8995     hpux10*)
8996       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8997         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8998       else
8999         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9000       fi
9001       if test "$with_gnu_ld" = no; then
9002         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9003         hardcode_libdir_flag_spec_ld='+b $libdir'
9004         hardcode_libdir_separator=:
9005         hardcode_direct=yes
9006         hardcode_direct_absolute=yes
9007         export_dynamic_flag_spec='${wl}-E'
9008         # hardcode_minus_L: Not really in the search PATH,
9009         # but as the default location of the library.
9010         hardcode_minus_L=yes
9011       fi
9012       ;;
9013
9014     hpux11*)
9015       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9016         case $host_cpu in
9017         hppa*64*)
9018           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9019           ;;
9020         ia64*)
9021           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9022           ;;
9023         *)
9024           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9025           ;;
9026         esac
9027       else
9028         case $host_cpu in
9029         hppa*64*)
9030           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9031           ;;
9032         ia64*)
9033           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9034           ;;
9035         *)
9036           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9037           ;;
9038         esac
9039       fi
9040       if test "$with_gnu_ld" = no; then
9041         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9042         hardcode_libdir_separator=:
9043
9044         case $host_cpu in
9045         hppa*64*|ia64*)
9046           hardcode_direct=no
9047           hardcode_shlibpath_var=no
9048           ;;
9049         *)
9050           hardcode_direct=yes
9051           hardcode_direct_absolute=yes
9052           export_dynamic_flag_spec='${wl}-E'
9053
9054           # hardcode_minus_L: Not really in the search PATH,
9055           # but as the default location of the library.
9056           hardcode_minus_L=yes
9057           ;;
9058         esac
9059       fi
9060       ;;
9061
9062     irix5* | irix6* | nonstopux*)
9063       if test "$GCC" = yes; then
9064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9065         # Try to use the -exported_symbol ld option, if it does not
9066         # work, assume that -exports_file does not work either and
9067         # implicitly export all symbols.
9068         save_LDFLAGS="$LDFLAGS"
9069         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9070         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h.  */
9072 int foo(void) {}
9073 _ACEOF
9074 if ac_fn_c_try_link "$LINENO"; then :
9075   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9076
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext \
9079     conftest$ac_exeext conftest.$ac_ext
9080         LDFLAGS="$save_LDFLAGS"
9081       else
9082         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9083         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9084       fi
9085       archive_cmds_need_lc='no'
9086       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9087       hardcode_libdir_separator=:
9088       inherit_rpath=yes
9089       link_all_deplibs=yes
9090       ;;
9091
9092     netbsd*)
9093       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9094         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9095       else
9096         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9097       fi
9098       hardcode_libdir_flag_spec='-R$libdir'
9099       hardcode_direct=yes
9100       hardcode_shlibpath_var=no
9101       ;;
9102
9103     newsos6)
9104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105       hardcode_direct=yes
9106       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9107       hardcode_libdir_separator=:
9108       hardcode_shlibpath_var=no
9109       ;;
9110
9111     *nto* | *qnx*)
9112       ;;
9113
9114     openbsd*)
9115       if test -f /usr/libexec/ld.so; then
9116         hardcode_direct=yes
9117         hardcode_shlibpath_var=no
9118         hardcode_direct_absolute=yes
9119         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9120           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9121           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9122           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9123           export_dynamic_flag_spec='${wl}-E'
9124         else
9125           case $host_os in
9126            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9127              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9128              hardcode_libdir_flag_spec='-R$libdir'
9129              ;;
9130            *)
9131              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9132              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9133              ;;
9134           esac
9135         fi
9136       else
9137         ld_shlibs=no
9138       fi
9139       ;;
9140
9141     os2*)
9142       hardcode_libdir_flag_spec='-L$libdir'
9143       hardcode_minus_L=yes
9144       allow_undefined_flag=unsupported
9145       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'
9146       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9147       ;;
9148
9149     osf3*)
9150       if test "$GCC" = yes; then
9151         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9152         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9153       else
9154         allow_undefined_flag=' -expect_unresolved \*'
9155         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9156       fi
9157       archive_cmds_need_lc='no'
9158       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9159       hardcode_libdir_separator=:
9160       ;;
9161
9162     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9163       if test "$GCC" = yes; then
9164         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9165         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9166         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167       else
9168         allow_undefined_flag=' -expect_unresolved \*'
9169         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9170         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~
9171         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9172
9173         # Both c and cxx compiler support -rpath directly
9174         hardcode_libdir_flag_spec='-rpath $libdir'
9175       fi
9176       archive_cmds_need_lc='no'
9177       hardcode_libdir_separator=:
9178       ;;
9179
9180     solaris*)
9181       no_undefined_flag=' -z defs'
9182       if test "$GCC" = yes; then
9183         wlarc='${wl}'
9184         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9185         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9186           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9187       else
9188         case `$CC -V 2>&1` in
9189         *"Compilers 5.0"*)
9190           wlarc=''
9191           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9193           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9194           ;;
9195         *)
9196           wlarc='${wl}'
9197           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9198           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9199           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9200           ;;
9201         esac
9202       fi
9203       hardcode_libdir_flag_spec='-R$libdir'
9204       hardcode_shlibpath_var=no
9205       case $host_os in
9206       solaris2.[0-5] | solaris2.[0-5].*) ;;
9207       *)
9208         # The compiler driver will combine and reorder linker options,
9209         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9210         # but is careful enough not to reorder.
9211         # Supported since Solaris 2.6 (maybe 2.5.1?)
9212         if test "$GCC" = yes; then
9213           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9214         else
9215           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9216         fi
9217         ;;
9218       esac
9219       link_all_deplibs=yes
9220       ;;
9221
9222     sunos4*)
9223       if test "x$host_vendor" = xsequent; then
9224         # Use $CC to link under sequent, because it throws in some extra .o
9225         # files that make .init and .fini sections work.
9226         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9227       else
9228         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9229       fi
9230       hardcode_libdir_flag_spec='-L$libdir'
9231       hardcode_direct=yes
9232       hardcode_minus_L=yes
9233       hardcode_shlibpath_var=no
9234       ;;
9235
9236     sysv4)
9237       case $host_vendor in
9238         sni)
9239           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9240           hardcode_direct=yes # is this really true???
9241         ;;
9242         siemens)
9243           ## LD is ld it makes a PLAMLIB
9244           ## CC just makes a GrossModule.
9245           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9246           reload_cmds='$CC -r -o $output$reload_objs'
9247           hardcode_direct=no
9248         ;;
9249         motorola)
9250           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9252         ;;
9253       esac
9254       runpath_var='LD_RUN_PATH'
9255       hardcode_shlibpath_var=no
9256       ;;
9257
9258     sysv4.3*)
9259       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260       hardcode_shlibpath_var=no
9261       export_dynamic_flag_spec='-Bexport'
9262       ;;
9263
9264     sysv4*MP*)
9265       if test -d /usr/nec; then
9266         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267         hardcode_shlibpath_var=no
9268         runpath_var=LD_RUN_PATH
9269         hardcode_runpath_var=yes
9270         ld_shlibs=yes
9271       fi
9272       ;;
9273
9274     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9275       no_undefined_flag='${wl}-z,text'
9276       archive_cmds_need_lc=no
9277       hardcode_shlibpath_var=no
9278       runpath_var='LD_RUN_PATH'
9279
9280       if test "$GCC" = yes; then
9281         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9283       else
9284         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286       fi
9287       ;;
9288
9289     sysv5* | sco3.2v5* | sco5v6*)
9290       # Note: We can NOT use -z defs as we might desire, because we do not
9291       # link with -lc, and that would cause any symbols used from libc to
9292       # always be unresolved, which means just about no library would
9293       # ever link correctly.  If we're not using GNU ld we use -z text
9294       # though, which does catch some bad symbols but isn't as heavy-handed
9295       # as -z defs.
9296       no_undefined_flag='${wl}-z,text'
9297       allow_undefined_flag='${wl}-z,nodefs'
9298       archive_cmds_need_lc=no
9299       hardcode_shlibpath_var=no
9300       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9301       hardcode_libdir_separator=':'
9302       link_all_deplibs=yes
9303       export_dynamic_flag_spec='${wl}-Bexport'
9304       runpath_var='LD_RUN_PATH'
9305
9306       if test "$GCC" = yes; then
9307         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309       else
9310         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312       fi
9313       ;;
9314
9315     uts4*)
9316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317       hardcode_libdir_flag_spec='-L$libdir'
9318       hardcode_shlibpath_var=no
9319       ;;
9320
9321     *)
9322       ld_shlibs=no
9323       ;;
9324     esac
9325
9326     if test x$host_vendor = xsni; then
9327       case $host in
9328       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9329         export_dynamic_flag_spec='${wl}-Blargedynsym'
9330         ;;
9331       esac
9332     fi
9333   fi
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9336 $as_echo "$ld_shlibs" >&6; }
9337 test "$ld_shlibs" = no && can_build_shared=no
9338
9339 with_gnu_ld=$with_gnu_ld
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355 #
9356 # Do we need to explicitly link libc?
9357 #
9358 case "x$archive_cmds_need_lc" in
9359 x|xyes)
9360   # Assume -lc should be added
9361   archive_cmds_need_lc=yes
9362
9363   if test "$enable_shared" = yes && test "$GCC" = yes; then
9364     case $archive_cmds in
9365     *'~'*)
9366       # FIXME: we may have to deal with multi-command sequences.
9367       ;;
9368     '$CC '*)
9369       # Test whether the compiler implicitly links with -lc since on some
9370       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9371       # to ld, don't add -lc before -lgcc.
9372       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9373 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9374       $RM conftest*
9375       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376
9377       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9378   (eval $ac_compile) 2>&5
9379   ac_status=$?
9380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9381   test $ac_status = 0; } 2>conftest.err; then
9382         soname=conftest
9383         lib=conftest
9384         libobjs=conftest.$ac_objext
9385         deplibs=
9386         wl=$lt_prog_compiler_wl
9387         pic_flag=$lt_prog_compiler_pic
9388         compiler_flags=-v
9389         linker_flags=-v
9390         verstring=
9391         output_objdir=.
9392         libname=conftest
9393         lt_save_allow_undefined_flag=$allow_undefined_flag
9394         allow_undefined_flag=
9395         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9396   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9397   ac_status=$?
9398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9399   test $ac_status = 0; }
9400         then
9401           archive_cmds_need_lc=no
9402         else
9403           archive_cmds_need_lc=yes
9404         fi
9405         allow_undefined_flag=$lt_save_allow_undefined_flag
9406       else
9407         cat conftest.err 1>&5
9408       fi
9409       $RM conftest*
9410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9411 $as_echo "$archive_cmds_need_lc" >&6; }
9412       ;;
9413     esac
9414   fi
9415   ;;
9416 esac
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9575 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9576
9577 if test "$GCC" = yes; then
9578   case $host_os in
9579     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9580     *) lt_awk_arg="/^libraries:/" ;;
9581   esac
9582   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9583   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9584     # if the path contains ";" then we assume it to be the separator
9585     # otherwise default to the standard path separator (i.e. ":") - it is
9586     # assumed that no part of a normal pathname contains ";" but that should
9587     # okay in the real world where ";" in dirpaths is itself problematic.
9588     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9589   else
9590     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9591   fi
9592   # Ok, now we have the path, separated by spaces, we can step through it
9593   # and add multilib dir if necessary.
9594   lt_tmp_lt_search_path_spec=
9595   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9596   for lt_sys_path in $lt_search_path_spec; do
9597     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9598       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9599     else
9600       test -d "$lt_sys_path" && \
9601         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9602     fi
9603   done
9604   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9605 BEGIN {RS=" "; FS="/|\n";} {
9606   lt_foo="";
9607   lt_count=0;
9608   for (lt_i = NF; lt_i > 0; lt_i--) {
9609     if ($lt_i != "" && $lt_i != ".") {
9610       if ($lt_i == "..") {
9611         lt_count++;
9612       } else {
9613         if (lt_count == 0) {
9614           lt_foo="/" $lt_i lt_foo;
9615         } else {
9616           lt_count--;
9617         }
9618       }
9619     }
9620   }
9621   if (lt_foo != "") { lt_freq[lt_foo]++; }
9622   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9623 }'`
9624   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9625 else
9626   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9627 fi
9628 library_names_spec=
9629 libname_spec='lib$name'
9630 soname_spec=
9631 shrext_cmds=".so"
9632 postinstall_cmds=
9633 postuninstall_cmds=
9634 finish_cmds=
9635 finish_eval=
9636 shlibpath_var=
9637 shlibpath_overrides_runpath=unknown
9638 version_type=none
9639 dynamic_linker="$host_os ld.so"
9640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9641 need_lib_prefix=unknown
9642 hardcode_into_libs=no
9643
9644 # when you set need_version to no, make sure it does not cause -set_version
9645 # flags to be left without arguments
9646 need_version=unknown
9647
9648 case $host_os in
9649 aix3*)
9650   version_type=linux
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9652   shlibpath_var=LIBPATH
9653
9654   # AIX 3 has no versioning support, so we append a major version to the name.
9655   soname_spec='${libname}${release}${shared_ext}$major'
9656   ;;
9657
9658 aix[4-9]*)
9659   version_type=linux
9660   need_lib_prefix=no
9661   need_version=no
9662   hardcode_into_libs=yes
9663   if test "$host_cpu" = ia64; then
9664     # AIX 5 supports IA64
9665     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9666     shlibpath_var=LD_LIBRARY_PATH
9667   else
9668     # With GCC up to 2.95.x, collect2 would create an import file
9669     # for dependence libraries.  The import file would start with
9670     # the line `#! .'.  This would cause the generated library to
9671     # depend on `.', always an invalid library.  This was fixed in
9672     # development snapshots of GCC prior to 3.0.
9673     case $host_os in
9674       aix4 | aix4.[01] | aix4.[01].*)
9675       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9676            echo ' yes '
9677            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9678         :
9679       else
9680         can_build_shared=no
9681       fi
9682       ;;
9683     esac
9684     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9685     # soname into executable. Probably we can add versioning support to
9686     # collect2, so additional links can be useful in future.
9687     if test "$aix_use_runtimelinking" = yes; then
9688       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9689       # instead of lib<name>.a to let people know that these are not
9690       # typical AIX shared libraries.
9691       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692     else
9693       # We preserve .a as extension for shared libraries through AIX4.2
9694       # and later when we are not doing run time linking.
9695       library_names_spec='${libname}${release}.a $libname.a'
9696       soname_spec='${libname}${release}${shared_ext}$major'
9697     fi
9698     shlibpath_var=LIBPATH
9699   fi
9700   ;;
9701
9702 amigaos*)
9703   case $host_cpu in
9704   powerpc)
9705     # Since July 2007 AmigaOS4 officially supports .so libraries.
9706     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708     ;;
9709   m68k)
9710     library_names_spec='$libname.ixlibrary $libname.a'
9711     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9712     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9713     ;;
9714   esac
9715   ;;
9716
9717 beos*)
9718   library_names_spec='${libname}${shared_ext}'
9719   dynamic_linker="$host_os ld.so"
9720   shlibpath_var=LIBRARY_PATH
9721   ;;
9722
9723 bsdi[45]*)
9724   version_type=linux
9725   need_version=no
9726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727   soname_spec='${libname}${release}${shared_ext}$major'
9728   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9729   shlibpath_var=LD_LIBRARY_PATH
9730   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9731   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9732   # the default ld.so.conf also contains /usr/contrib/lib and
9733   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9734   # libtool to hard-code these into programs
9735   ;;
9736
9737 cygwin* | mingw* | pw32* | cegcc*)
9738   version_type=windows
9739   shrext_cmds=".dll"
9740   need_version=no
9741   need_lib_prefix=no
9742
9743   case $GCC,$host_os in
9744   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9745     library_names_spec='$libname.dll.a'
9746     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9747     postinstall_cmds='base_file=`basename \${file}`~
9748       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9749       dldir=$destdir/`dirname \$dlpath`~
9750       test -d \$dldir || mkdir -p \$dldir~
9751       $install_prog $dir/$dlname \$dldir/$dlname~
9752       chmod a+x \$dldir/$dlname~
9753       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9754         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9755       fi'
9756     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9757       dlpath=$dir/\$dldll~
9758        $RM \$dlpath'
9759     shlibpath_overrides_runpath=yes
9760
9761     case $host_os in
9762     cygwin*)
9763       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9764       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9765       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9766       ;;
9767     mingw* | cegcc*)
9768       # MinGW DLLs use traditional 'lib' prefix
9769       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9770       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9771       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9772         # It is most probably a Windows format PATH printed by
9773         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9774         # path with ; separators, and with drive letters. We can handle the
9775         # drive letters (cygwin fileutils understands them), so leave them,
9776         # especially as we might pass files found there to a mingw objdump,
9777         # which wouldn't understand a cygwinified path. Ahh.
9778         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9779       else
9780         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9781       fi
9782       ;;
9783     pw32*)
9784       # pw32 DLLs use 'pw' prefix rather than 'lib'
9785       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9786       ;;
9787     esac
9788     ;;
9789
9790   *)
9791     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9792     ;;
9793   esac
9794   dynamic_linker='Win32 ld.exe'
9795   # FIXME: first we should search . and the directory the executable is in
9796   shlibpath_var=PATH
9797   ;;
9798
9799 darwin* | rhapsody*)
9800   dynamic_linker="$host_os dyld"
9801   version_type=darwin
9802   need_lib_prefix=no
9803   need_version=no
9804   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9805   soname_spec='${libname}${release}${major}$shared_ext'
9806   shlibpath_overrides_runpath=yes
9807   shlibpath_var=DYLD_LIBRARY_PATH
9808   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9809
9810   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9811   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9812   ;;
9813
9814 dgux*)
9815   version_type=linux
9816   need_lib_prefix=no
9817   need_version=no
9818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9819   soname_spec='${libname}${release}${shared_ext}$major'
9820   shlibpath_var=LD_LIBRARY_PATH
9821   ;;
9822
9823 freebsd1*)
9824   dynamic_linker=no
9825   ;;
9826
9827 freebsd* | dragonfly*)
9828   # DragonFly does not have aout.  When/if they implement a new
9829   # versioning mechanism, adjust this.
9830   if test -x /usr/bin/objformat; then
9831     objformat=`/usr/bin/objformat`
9832   else
9833     case $host_os in
9834     freebsd[123]*) objformat=aout ;;
9835     *) objformat=elf ;;
9836     esac
9837   fi
9838   version_type=freebsd-$objformat
9839   case $version_type in
9840     freebsd-elf*)
9841       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9842       need_version=no
9843       need_lib_prefix=no
9844       ;;
9845     freebsd-*)
9846       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9847       need_version=yes
9848       ;;
9849   esac
9850   shlibpath_var=LD_LIBRARY_PATH
9851   case $host_os in
9852   freebsd2*)
9853     shlibpath_overrides_runpath=yes
9854     ;;
9855   freebsd3.[01]* | freebsdelf3.[01]*)
9856     shlibpath_overrides_runpath=yes
9857     hardcode_into_libs=yes
9858     ;;
9859   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9860   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9861     shlibpath_overrides_runpath=no
9862     hardcode_into_libs=yes
9863     ;;
9864   *) # from 4.6 on, and DragonFly
9865     shlibpath_overrides_runpath=yes
9866     hardcode_into_libs=yes
9867     ;;
9868   esac
9869   ;;
9870
9871 gnu*)
9872   version_type=linux
9873   need_lib_prefix=no
9874   need_version=no
9875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9876   soname_spec='${libname}${release}${shared_ext}$major'
9877   shlibpath_var=LD_LIBRARY_PATH
9878   hardcode_into_libs=yes
9879   ;;
9880
9881 hpux9* | hpux10* | hpux11*)
9882   # Give a soname corresponding to the major version so that dld.sl refuses to
9883   # link against other versions.
9884   version_type=sunos
9885   need_lib_prefix=no
9886   need_version=no
9887   case $host_cpu in
9888   ia64*)
9889     shrext_cmds='.so'
9890     hardcode_into_libs=yes
9891     dynamic_linker="$host_os dld.so"
9892     shlibpath_var=LD_LIBRARY_PATH
9893     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895     soname_spec='${libname}${release}${shared_ext}$major'
9896     if test "X$HPUX_IA64_MODE" = X32; then
9897       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9898     else
9899       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9900     fi
9901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9902     ;;
9903   hppa*64*)
9904     shrext_cmds='.sl'
9905     hardcode_into_libs=yes
9906     dynamic_linker="$host_os dld.sl"
9907     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910     soname_spec='${libname}${release}${shared_ext}$major'
9911     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9912     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9913     ;;
9914   *)
9915     shrext_cmds='.sl'
9916     dynamic_linker="$host_os dld.sl"
9917     shlibpath_var=SHLIB_PATH
9918     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920     soname_spec='${libname}${release}${shared_ext}$major'
9921     ;;
9922   esac
9923   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9924   postinstall_cmds='chmod 555 $lib'
9925   ;;
9926
9927 interix[3-9]*)
9928   version_type=linux
9929   need_lib_prefix=no
9930   need_version=no
9931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932   soname_spec='${libname}${release}${shared_ext}$major'
9933   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9934   shlibpath_var=LD_LIBRARY_PATH
9935   shlibpath_overrides_runpath=no
9936   hardcode_into_libs=yes
9937   ;;
9938
9939 irix5* | irix6* | nonstopux*)
9940   case $host_os in
9941     nonstopux*) version_type=nonstopux ;;
9942     *)
9943         if test "$lt_cv_prog_gnu_ld" = yes; then
9944                 version_type=linux
9945         else
9946                 version_type=irix
9947         fi ;;
9948   esac
9949   need_lib_prefix=no
9950   need_version=no
9951   soname_spec='${libname}${release}${shared_ext}$major'
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9953   case $host_os in
9954   irix5* | nonstopux*)
9955     libsuff= shlibsuff=
9956     ;;
9957   *)
9958     case $LD in # libtool.m4 will add one of these switches to LD
9959     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9960       libsuff= shlibsuff= libmagic=32-bit;;
9961     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9962       libsuff=32 shlibsuff=N32 libmagic=N32;;
9963     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9964       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9965     *) libsuff= shlibsuff= libmagic=never-match;;
9966     esac
9967     ;;
9968   esac
9969   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9970   shlibpath_overrides_runpath=no
9971   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9972   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9973   hardcode_into_libs=yes
9974   ;;
9975
9976 # No shared lib support for Linux oldld, aout, or coff.
9977 linux*oldld* | linux*aout* | linux*coff*)
9978   dynamic_linker=no
9979   ;;
9980
9981 # This must be Linux ELF.
9982 linux* | k*bsd*-gnu)
9983   version_type=linux
9984   need_lib_prefix=no
9985   need_version=no
9986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987   soname_spec='${libname}${release}${shared_ext}$major'
9988   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9989   shlibpath_var=LD_LIBRARY_PATH
9990   shlibpath_overrides_runpath=no
9991   # Some binutils ld are patched to set DT_RUNPATH
9992   save_LDFLAGS=$LDFLAGS
9993   save_libdir=$libdir
9994   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9995        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h.  */
9998
9999 int
10000 main ()
10001 {
10002
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10009   shlibpath_overrides_runpath=yes
10010 fi
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013     conftest$ac_exeext conftest.$ac_ext
10014   LDFLAGS=$save_LDFLAGS
10015   libdir=$save_libdir
10016
10017   # This implies no fast_install, which is unacceptable.
10018   # Some rework will be needed to allow for fast_install
10019   # before this can be enabled.
10020   hardcode_into_libs=yes
10021
10022   # Add ABI-specific directories to the system library path.
10023   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10024
10025   # Append ld.so.conf contents to the search path
10026   if test -f /etc/ld.so.conf; then
10027     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;/^$/d' | tr '\n' ' '`
10028     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10029   fi
10030
10031   # We used to test for /lib/ld.so.1 and disable shared libraries on
10032   # powerpc, because MkLinux only supported shared libraries with the
10033   # GNU dynamic linker.  Since this was broken with cross compilers,
10034   # most powerpc-linux boxes support dynamic linking these days and
10035   # people can always --disable-shared, the test was removed, and we
10036   # assume the GNU/Linux dynamic linker is in use.
10037   dynamic_linker='GNU/Linux ld.so'
10038   ;;
10039
10040 netbsd*)
10041   version_type=sunos
10042   need_lib_prefix=no
10043   need_version=no
10044   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10046     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10047     dynamic_linker='NetBSD (a.out) ld.so'
10048   else
10049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10050     soname_spec='${libname}${release}${shared_ext}$major'
10051     dynamic_linker='NetBSD ld.elf_so'
10052   fi
10053   shlibpath_var=LD_LIBRARY_PATH
10054   shlibpath_overrides_runpath=yes
10055   hardcode_into_libs=yes
10056   ;;
10057
10058 newsos6)
10059   version_type=linux
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   shlibpath_var=LD_LIBRARY_PATH
10062   shlibpath_overrides_runpath=yes
10063   ;;
10064
10065 *nto* | *qnx*)
10066   version_type=qnx
10067   need_lib_prefix=no
10068   need_version=no
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070   soname_spec='${libname}${release}${shared_ext}$major'
10071   shlibpath_var=LD_LIBRARY_PATH
10072   shlibpath_overrides_runpath=no
10073   hardcode_into_libs=yes
10074   dynamic_linker='ldqnx.so'
10075   ;;
10076
10077 openbsd*)
10078   version_type=sunos
10079   sys_lib_dlsearch_path_spec="/usr/lib"
10080   need_lib_prefix=no
10081   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10082   case $host_os in
10083     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10084     *)                          need_version=no  ;;
10085   esac
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10087   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10088   shlibpath_var=LD_LIBRARY_PATH
10089   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10090     case $host_os in
10091       openbsd2.[89] | openbsd2.[89].*)
10092         shlibpath_overrides_runpath=no
10093         ;;
10094       *)
10095         shlibpath_overrides_runpath=yes
10096         ;;
10097       esac
10098   else
10099     shlibpath_overrides_runpath=yes
10100   fi
10101   ;;
10102
10103 os2*)
10104   libname_spec='$name'
10105   shrext_cmds=".dll"
10106   need_lib_prefix=no
10107   library_names_spec='$libname${shared_ext} $libname.a'
10108   dynamic_linker='OS/2 ld.exe'
10109   shlibpath_var=LIBPATH
10110   ;;
10111
10112 osf3* | osf4* | osf5*)
10113   version_type=osf
10114   need_lib_prefix=no
10115   need_version=no
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118   shlibpath_var=LD_LIBRARY_PATH
10119   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10120   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10121   ;;
10122
10123 rdos*)
10124   dynamic_linker=no
10125   ;;
10126
10127 solaris*)
10128   version_type=linux
10129   need_lib_prefix=no
10130   need_version=no
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132   soname_spec='${libname}${release}${shared_ext}$major'
10133   shlibpath_var=LD_LIBRARY_PATH
10134   shlibpath_overrides_runpath=yes
10135   hardcode_into_libs=yes
10136   # ldd complains unless libraries are executable
10137   postinstall_cmds='chmod +x $lib'
10138   ;;
10139
10140 sunos4*)
10141   version_type=sunos
10142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10143   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=yes
10146   if test "$with_gnu_ld" = yes; then
10147     need_lib_prefix=no
10148   fi
10149   need_version=yes
10150   ;;
10151
10152 sysv4 | sysv4.3*)
10153   version_type=linux
10154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155   soname_spec='${libname}${release}${shared_ext}$major'
10156   shlibpath_var=LD_LIBRARY_PATH
10157   case $host_vendor in
10158     sni)
10159       shlibpath_overrides_runpath=no
10160       need_lib_prefix=no
10161       runpath_var=LD_RUN_PATH
10162       ;;
10163     siemens)
10164       need_lib_prefix=no
10165       ;;
10166     motorola)
10167       need_lib_prefix=no
10168       need_version=no
10169       shlibpath_overrides_runpath=no
10170       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10171       ;;
10172   esac
10173   ;;
10174
10175 sysv4*MP*)
10176   if test -d /usr/nec ;then
10177     version_type=linux
10178     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10179     soname_spec='$libname${shared_ext}.$major'
10180     shlibpath_var=LD_LIBRARY_PATH
10181   fi
10182   ;;
10183
10184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10185   version_type=freebsd-elf
10186   need_lib_prefix=no
10187   need_version=no
10188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10189   soname_spec='${libname}${release}${shared_ext}$major'
10190   shlibpath_var=LD_LIBRARY_PATH
10191   shlibpath_overrides_runpath=yes
10192   hardcode_into_libs=yes
10193   if test "$with_gnu_ld" = yes; then
10194     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10195   else
10196     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10197     case $host_os in
10198       sco3.2v5*)
10199         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10200         ;;
10201     esac
10202   fi
10203   sys_lib_dlsearch_path_spec='/usr/lib'
10204   ;;
10205
10206 tpf*)
10207   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10208   version_type=linux
10209   need_lib_prefix=no
10210   need_version=no
10211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   hardcode_into_libs=yes
10215   ;;
10216
10217 uts4*)
10218   version_type=linux
10219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220   soname_spec='${libname}${release}${shared_ext}$major'
10221   shlibpath_var=LD_LIBRARY_PATH
10222   ;;
10223
10224 *)
10225   dynamic_linker=no
10226   ;;
10227 esac
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10229 $as_echo "$dynamic_linker" >&6; }
10230 test "$dynamic_linker" = no && can_build_shared=no
10231
10232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10233 if test "$GCC" = yes; then
10234   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10235 fi
10236
10237 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10238   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10239 fi
10240 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10241   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10242 fi
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10331 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10332 hardcode_action=
10333 if test -n "$hardcode_libdir_flag_spec" ||
10334    test -n "$runpath_var" ||
10335    test "X$hardcode_automatic" = "Xyes" ; then
10336
10337   # We can hardcode non-existent directories.
10338   if test "$hardcode_direct" != no &&
10339      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10340      # have to relink, otherwise we might link with an installed library
10341      # when we should be linking with a yet-to-be-installed one
10342      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10343      test "$hardcode_minus_L" != no; then
10344     # Linking always hardcodes the temporary library directory.
10345     hardcode_action=relink
10346   else
10347     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10348     hardcode_action=immediate
10349   fi
10350 else
10351   # We cannot hardcode anything, or else we can only hardcode existing
10352   # directories.
10353   hardcode_action=unsupported
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10356 $as_echo "$hardcode_action" >&6; }
10357
10358 if test "$hardcode_action" = relink ||
10359    test "$inherit_rpath" = yes; then
10360   # Fast installation is not supported
10361   enable_fast_install=no
10362 elif test "$shlibpath_overrides_runpath" = yes ||
10363      test "$enable_shared" = no; then
10364   # Fast installation is not necessary
10365   enable_fast_install=needless
10366 fi
10367
10368
10369
10370
10371
10372
10373   if test "x$enable_dlopen" != xyes; then
10374   enable_dlopen=unknown
10375   enable_dlopen_self=unknown
10376   enable_dlopen_self_static=unknown
10377 else
10378   lt_cv_dlopen=no
10379   lt_cv_dlopen_libs=
10380
10381   case $host_os in
10382   beos*)
10383     lt_cv_dlopen="load_add_on"
10384     lt_cv_dlopen_libs=
10385     lt_cv_dlopen_self=yes
10386     ;;
10387
10388   mingw* | pw32* | cegcc*)
10389     lt_cv_dlopen="LoadLibrary"
10390     lt_cv_dlopen_libs=
10391     ;;
10392
10393   cygwin*)
10394     lt_cv_dlopen="dlopen"
10395     lt_cv_dlopen_libs=
10396     ;;
10397
10398   darwin*)
10399   # if libdl is installed we need to link against it
10400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10403   $as_echo_n "(cached) " >&6
10404 else
10405   ac_check_lib_save_LIBS=$LIBS
10406 LIBS="-ldl  $LIBS"
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h.  */
10409
10410 /* Override any GCC internal prototype to avoid an error.
10411    Use char because int might match the return type of a GCC
10412    builtin and then its argument prototype would still apply.  */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 char dlopen ();
10417 int
10418 main ()
10419 {
10420 return dlopen ();
10421   ;
10422   return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"; then :
10426   ac_cv_lib_dl_dlopen=yes
10427 else
10428   ac_cv_lib_dl_dlopen=no
10429 fi
10430 rm -f core conftest.err conftest.$ac_objext \
10431     conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$ac_check_lib_save_LIBS
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10436 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10437   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10438 else
10439
10440     lt_cv_dlopen="dyld"
10441     lt_cv_dlopen_libs=
10442     lt_cv_dlopen_self=yes
10443
10444 fi
10445
10446     ;;
10447
10448   *)
10449     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10450 if test "x$ac_cv_func_shl_load" = x""yes; then :
10451   lt_cv_dlopen="shl_load"
10452 else
10453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10454 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10455 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10456   $as_echo_n "(cached) " >&6
10457 else
10458   ac_check_lib_save_LIBS=$LIBS
10459 LIBS="-ldld  $LIBS"
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h.  */
10462
10463 /* Override any GCC internal prototype to avoid an error.
10464    Use char because int might match the return type of a GCC
10465    builtin and then its argument prototype would still apply.  */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char shl_load ();
10470 int
10471 main ()
10472 {
10473 return shl_load ();
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10479   ac_cv_lib_dld_shl_load=yes
10480 else
10481   ac_cv_lib_dld_shl_load=no
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext \
10484     conftest$ac_exeext conftest.$ac_ext
10485 LIBS=$ac_check_lib_save_LIBS
10486 fi
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10488 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10489 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10490   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10491 else
10492   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10493 if test "x$ac_cv_func_dlopen" = x""yes; then :
10494   lt_cv_dlopen="dlopen"
10495 else
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10497 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10499   $as_echo_n "(cached) " >&6
10500 else
10501   ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-ldl  $LIBS"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h.  */
10505
10506 /* Override any GCC internal prototype to avoid an error.
10507    Use char because int might match the return type of a GCC
10508    builtin and then its argument prototype would still apply.  */
10509 #ifdef __cplusplus
10510 extern "C"
10511 #endif
10512 char dlopen ();
10513 int
10514 main ()
10515 {
10516 return dlopen ();
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522   ac_cv_lib_dl_dlopen=yes
10523 else
10524   ac_cv_lib_dl_dlopen=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext \
10527     conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10531 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10532 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10534 else
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10536 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10538   $as_echo_n "(cached) " >&6
10539 else
10540   ac_check_lib_save_LIBS=$LIBS
10541 LIBS="-lsvld  $LIBS"
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h.  */
10544
10545 /* Override any GCC internal prototype to avoid an error.
10546    Use char because int might match the return type of a GCC
10547    builtin and then its argument prototype would still apply.  */
10548 #ifdef __cplusplus
10549 extern "C"
10550 #endif
10551 char dlopen ();
10552 int
10553 main ()
10554 {
10555 return dlopen ();
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"; then :
10561   ac_cv_lib_svld_dlopen=yes
10562 else
10563   ac_cv_lib_svld_dlopen=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext \
10566     conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10568 fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10570 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10571 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10572   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10573 else
10574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10575 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10576 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-ldld  $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h.  */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585    Use char because int might match the return type of a GCC
10586    builtin and then its argument prototype would still apply.  */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char dld_link ();
10591 int
10592 main ()
10593 {
10594 return dld_link ();
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600   ac_cv_lib_dld_dld_link=yes
10601 else
10602   ac_cv_lib_dld_dld_link=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext \
10605     conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10609 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10610 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10611   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10612 fi
10613
10614
10615 fi
10616
10617
10618 fi
10619
10620
10621 fi
10622
10623
10624 fi
10625
10626
10627 fi
10628
10629     ;;
10630   esac
10631
10632   if test "x$lt_cv_dlopen" != xno; then
10633     enable_dlopen=yes
10634   else
10635     enable_dlopen=no
10636   fi
10637
10638   case $lt_cv_dlopen in
10639   dlopen)
10640     save_CPPFLAGS="$CPPFLAGS"
10641     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10642
10643     save_LDFLAGS="$LDFLAGS"
10644     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10645
10646     save_LIBS="$LIBS"
10647     LIBS="$lt_cv_dlopen_libs $LIBS"
10648
10649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10650 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10651 if test "${lt_cv_dlopen_self+set}" = set; then :
10652   $as_echo_n "(cached) " >&6
10653 else
10654           if test "$cross_compiling" = yes; then :
10655   lt_cv_dlopen_self=cross
10656 else
10657   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10658   lt_status=$lt_dlunknown
10659   cat > conftest.$ac_ext <<_LT_EOF
10660 #line 10660 "configure"
10661 #include "confdefs.h"
10662
10663 #if HAVE_DLFCN_H
10664 #include <dlfcn.h>
10665 #endif
10666
10667 #include <stdio.h>
10668
10669 #ifdef RTLD_GLOBAL
10670 #  define LT_DLGLOBAL           RTLD_GLOBAL
10671 #else
10672 #  ifdef DL_GLOBAL
10673 #    define LT_DLGLOBAL         DL_GLOBAL
10674 #  else
10675 #    define LT_DLGLOBAL         0
10676 #  endif
10677 #endif
10678
10679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10680    find out it does not work in some platform. */
10681 #ifndef LT_DLLAZY_OR_NOW
10682 #  ifdef RTLD_LAZY
10683 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10684 #  else
10685 #    ifdef DL_LAZY
10686 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10687 #    else
10688 #      ifdef RTLD_NOW
10689 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10690 #      else
10691 #        ifdef DL_NOW
10692 #          define LT_DLLAZY_OR_NOW      DL_NOW
10693 #        else
10694 #          define LT_DLLAZY_OR_NOW      0
10695 #        endif
10696 #      endif
10697 #    endif
10698 #  endif
10699 #endif
10700
10701 void fnord() { int i=42;}
10702 int main ()
10703 {
10704   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10705   int status = $lt_dlunknown;
10706
10707   if (self)
10708     {
10709       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10710       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10711       /* dlclose (self); */
10712     }
10713   else
10714     puts (dlerror ());
10715
10716   return status;
10717 }
10718 _LT_EOF
10719   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10720   (eval $ac_link) 2>&5
10721   ac_status=$?
10722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10724     (./conftest; exit; ) >&5 2>/dev/null
10725     lt_status=$?
10726     case x$lt_status in
10727       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10728       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10729       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10730     esac
10731   else :
10732     # compilation failed
10733     lt_cv_dlopen_self=no
10734   fi
10735 fi
10736 rm -fr conftest*
10737
10738
10739 fi
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10741 $as_echo "$lt_cv_dlopen_self" >&6; }
10742
10743     if test "x$lt_cv_dlopen_self" = xyes; then
10744       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10746 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10747 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10748   $as_echo_n "(cached) " >&6
10749 else
10750           if test "$cross_compiling" = yes; then :
10751   lt_cv_dlopen_self_static=cross
10752 else
10753   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10754   lt_status=$lt_dlunknown
10755   cat > conftest.$ac_ext <<_LT_EOF
10756 #line 10756 "configure"
10757 #include "confdefs.h"
10758
10759 #if HAVE_DLFCN_H
10760 #include <dlfcn.h>
10761 #endif
10762
10763 #include <stdio.h>
10764
10765 #ifdef RTLD_GLOBAL
10766 #  define LT_DLGLOBAL           RTLD_GLOBAL
10767 #else
10768 #  ifdef DL_GLOBAL
10769 #    define LT_DLGLOBAL         DL_GLOBAL
10770 #  else
10771 #    define LT_DLGLOBAL         0
10772 #  endif
10773 #endif
10774
10775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10776    find out it does not work in some platform. */
10777 #ifndef LT_DLLAZY_OR_NOW
10778 #  ifdef RTLD_LAZY
10779 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10780 #  else
10781 #    ifdef DL_LAZY
10782 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10783 #    else
10784 #      ifdef RTLD_NOW
10785 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10786 #      else
10787 #        ifdef DL_NOW
10788 #          define LT_DLLAZY_OR_NOW      DL_NOW
10789 #        else
10790 #          define LT_DLLAZY_OR_NOW      0
10791 #        endif
10792 #      endif
10793 #    endif
10794 #  endif
10795 #endif
10796
10797 void fnord() { int i=42;}
10798 int main ()
10799 {
10800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10801   int status = $lt_dlunknown;
10802
10803   if (self)
10804     {
10805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10807       /* dlclose (self); */
10808     }
10809   else
10810     puts (dlerror ());
10811
10812   return status;
10813 }
10814 _LT_EOF
10815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10816   (eval $ac_link) 2>&5
10817   ac_status=$?
10818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10819   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10820     (./conftest; exit; ) >&5 2>/dev/null
10821     lt_status=$?
10822     case x$lt_status in
10823       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10824       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10825       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10826     esac
10827   else :
10828     # compilation failed
10829     lt_cv_dlopen_self_static=no
10830   fi
10831 fi
10832 rm -fr conftest*
10833
10834
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10837 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10838     fi
10839
10840     CPPFLAGS="$save_CPPFLAGS"
10841     LDFLAGS="$save_LDFLAGS"
10842     LIBS="$save_LIBS"
10843     ;;
10844   esac
10845
10846   case $lt_cv_dlopen_self in
10847   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10848   *) enable_dlopen_self=unknown ;;
10849   esac
10850
10851   case $lt_cv_dlopen_self_static in
10852   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10853   *) enable_dlopen_self_static=unknown ;;
10854   esac
10855 fi
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873 striplib=
10874 old_striplib=
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10876 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10877 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10878   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10879   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10881 $as_echo "yes" >&6; }
10882 else
10883 # FIXME - insert some real tests, host_os isn't really good enough
10884   case $host_os in
10885   darwin*)
10886     if test -n "$STRIP" ; then
10887       striplib="$STRIP -x"
10888       old_striplib="$STRIP -S"
10889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10890 $as_echo "yes" >&6; }
10891     else
10892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894     fi
10895     ;;
10896   *)
10897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899     ;;
10900   esac
10901 fi
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914   # Report which library types will actually be built
10915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10916 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10918 $as_echo "$can_build_shared" >&6; }
10919
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10921 $as_echo_n "checking whether to build shared libraries... " >&6; }
10922   test "$can_build_shared" = "no" && enable_shared=no
10923
10924   # On AIX, shared libraries and static libraries use the same namespace, and
10925   # are all built from PIC.
10926   case $host_os in
10927   aix3*)
10928     test "$enable_shared" = yes && enable_static=no
10929     if test -n "$RANLIB"; then
10930       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10931       postinstall_cmds='$RANLIB $lib'
10932     fi
10933     ;;
10934
10935   aix[4-9]*)
10936     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10937       test "$enable_shared" = yes && enable_static=no
10938     fi
10939     ;;
10940   esac
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10942 $as_echo "$enable_shared" >&6; }
10943
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10945 $as_echo_n "checking whether to build static libraries... " >&6; }
10946   # Make sure either enable_shared or enable_static is yes.
10947   test "$enable_shared" = yes || enable_static=yes
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10949 $as_echo "$enable_static" >&6; }
10950
10951
10952
10953
10954 fi
10955 ac_ext=c
10956 ac_cpp='$CPP $CPPFLAGS'
10957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10960
10961 CC="$lt_save_CC"
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975         ac_config_commands="$ac_config_commands libtool"
10976
10977
10978
10979
10980 # Only expand once:
10981
10982
10983
10984
10985
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10987 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10988     # Check whether --enable-maintainer-mode was given.
10989 if test "${enable_maintainer_mode+set}" = set; then :
10990   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10991 else
10992   USE_MAINTAINER_MODE=no
10993 fi
10994
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10996 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10997    if test $USE_MAINTAINER_MODE = yes; then
10998   MAINTAINER_MODE_TRUE=
10999   MAINTAINER_MODE_FALSE='#'
11000 else
11001   MAINTAINER_MODE_TRUE='#'
11002   MAINTAINER_MODE_FALSE=
11003 fi
11004
11005   MAINT=$MAINTAINER_MODE_TRUE
11006
11007
11008
11009 for ac_header in sys/mman.h
11010 do :
11011   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11012 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11013   cat >>confdefs.h <<_ACEOF
11014 #define HAVE_SYS_MMAN_H 1
11015 _ACEOF
11016
11017 fi
11018
11019 done
11020
11021 for ac_func in mmap
11022 do :
11023   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11024 if test "x$ac_cv_func_mmap" = x""yes; then :
11025   cat >>confdefs.h <<_ACEOF
11026 #define HAVE_MMAP 1
11027 _ACEOF
11028
11029 fi
11030 done
11031
11032
11033 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11034 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11035   libffi_header_sys_mman_h=yes
11036 else
11037   libffi_header_sys_mman_h=no
11038 fi
11039
11040
11041 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11042 if test "x$ac_cv_func_mmap" = x""yes; then :
11043   libffi_func_mmap=yes
11044 else
11045   libffi_func_mmap=no
11046 fi
11047
11048 if test "$libffi_header_sys_mman_h" != yes \
11049  || test "$libffi_func_mmap" != yes; then
11050    ac_cv_func_mmap_file=no
11051    ac_cv_func_mmap_dev_zero=no
11052    ac_cv_func_mmap_anon=no
11053 else
11054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11055 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11056 if test "${ac_cv_func_mmap_file+set}" = set; then :
11057   $as_echo_n "(cached) " >&6
11058 else
11059   # Add a system to this blacklist if
11060    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11061    # memory area containing the same data that you'd get if you applied
11062    # read() to the same fd.  The only system known to have a problem here
11063    # is VMS, where text files have record structure.
11064    case "$host_os" in
11065      vms* | ultrix*)
11066         ac_cv_func_mmap_file=no ;;
11067      *)
11068         ac_cv_func_mmap_file=yes;;
11069    esac
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11072 $as_echo "$ac_cv_func_mmap_file" >&6; }
11073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11074 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11075 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   # Add a system to this blacklist if it has mmap() but /dev/zero
11079    # does not exist, or if mmapping /dev/zero does not give anonymous
11080    # zeroed pages with both the following properties:
11081    # 1. If you map N consecutive pages in with one call, and then
11082    #    unmap any subset of those pages, the pages that were not
11083    #    explicitly unmapped remain accessible.
11084    # 2. If you map two adjacent blocks of memory and then unmap them
11085    #    both at once, they must both go away.
11086    # Systems known to be in this category are Windows (all variants),
11087    # VMS, and Darwin.
11088    case "$host_os" in
11089      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11090         ac_cv_func_mmap_dev_zero=no ;;
11091      *)
11092         ac_cv_func_mmap_dev_zero=yes;;
11093    esac
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11096 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11097
11098    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11100 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11101 if test "${ac_cv_decl_map_anon+set}" = set; then :
11102   $as_echo_n "(cached) " >&6
11103 else
11104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h.  */
11106 #include <sys/types.h>
11107 #include <sys/mman.h>
11108 #include <unistd.h>
11109
11110 #ifndef MAP_ANONYMOUS
11111 #define MAP_ANONYMOUS MAP_ANON
11112 #endif
11113
11114 int
11115 main ()
11116 {
11117 int n = MAP_ANONYMOUS;
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_compile "$LINENO"; then :
11123   ac_cv_decl_map_anon=yes
11124 else
11125   ac_cv_decl_map_anon=no
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11130 $as_echo "$ac_cv_decl_map_anon" >&6; }
11131
11132    if test $ac_cv_decl_map_anon = no; then
11133      ac_cv_func_mmap_anon=no
11134    else
11135      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11136 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11137 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   # Add a system to this blacklist if it has mmap() and MAP_ANON or
11141    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11142    # doesn't give anonymous zeroed pages with the same properties listed
11143    # above for use of /dev/zero.
11144    # Systems known to be in this category are Windows, VMS, and SCO Unix.
11145    case "$host_os" in
11146      vms* | cygwin* | pe | mingw* | sco* | udk* )
11147         ac_cv_func_mmap_anon=no ;;
11148      *)
11149         ac_cv_func_mmap_anon=yes;;
11150    esac
11151 fi
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11153 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11154    fi
11155 fi
11156
11157 if test $ac_cv_func_mmap_file = yes; then
11158
11159 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11160
11161 fi
11162 if test $ac_cv_func_mmap_dev_zero = yes; then
11163
11164 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11165
11166 fi
11167 if test $ac_cv_func_mmap_anon = yes; then
11168
11169 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11170
11171 fi
11172
11173
11174  if test -d $srcdir/testsuite; then
11175   TESTSUBDIR_TRUE=
11176   TESTSUBDIR_FALSE='#'
11177 else
11178   TESTSUBDIR_TRUE='#'
11179   TESTSUBDIR_FALSE=
11180 fi
11181
11182
11183 TARGETDIR="unknown"
11184 case "$host" in
11185   alpha*-*-*)
11186         TARGET=ALPHA; TARGETDIR=alpha;
11187         # Support 128-bit long double, changeable via command-line switch.
11188         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11189         ;;
11190
11191   arm*-*-*)
11192         TARGET=ARM; TARGETDIR=arm
11193         ;;
11194
11195   amd64-*-freebsd* | amd64-*-openbsd*)
11196         TARGET=X86_64; TARGETDIR=x86
11197         ;;
11198
11199   amd64-*-freebsd*)
11200         TARGET=X86_64; TARGETDIR=x86
11201         ;;
11202
11203   avr32*-*-*)
11204         TARGET=AVR32; TARGETDIR=avr32
11205         ;;
11206
11207   cris-*-*)
11208         TARGET=LIBFFI_CRIS; TARGETDIR=cris
11209         ;;
11210
11211   frv-*-*)
11212         TARGET=FRV; TARGETDIR=frv
11213         ;;
11214
11215   hppa*-*-linux* | parisc*-*-linux*)
11216         TARGET=PA_LINUX; TARGETDIR=pa
11217         ;;
11218   hppa*64-*-hpux*)
11219         TARGET=PA64_HPUX; TARGETDIR=pa
11220         ;;
11221   hppa*-*-hpux*)
11222         TARGET=PA_HPUX; TARGETDIR=pa
11223         ;;
11224
11225   i?86-*-freebsd* | i?86-*-openbsd*)
11226         TARGET=X86_FREEBSD; TARGETDIR=x86
11227         ;;
11228   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
11229         TARGET=X86_WIN32; TARGETDIR=x86
11230         # All mingw/cygwin/win32 builds require this for sharedlib
11231         AM_LTLDFLAGS="-no-undefined"
11232         ;;
11233   i?86-*-darwin*)
11234         TARGET=X86_DARWIN; TARGETDIR=x86
11235         ;;
11236   i?86-*-solaris2.1[0-9]*)
11237         TARGET=X86_64; TARGETDIR=x86
11238         ;;
11239   i?86-*-*)
11240         TARGET=X86; TARGETDIR=x86
11241         ;;
11242
11243   ia64*-*-*)
11244         TARGET=IA64; TARGETDIR=ia64
11245         ;;
11246
11247   m32r*-*-*)
11248         TARGET=M32R; TARGETDIR=m32r
11249         ;;
11250
11251   m68k-*-*)
11252         TARGET=M68K; TARGETDIR=m68k
11253         ;;
11254
11255   mips-sgi-irix5.* | mips-sgi-irix6.*)
11256         TARGET=MIPS; TARGETDIR=mips
11257         ;;
11258   mips*-*-linux*)
11259         # Support 128-bit long double for NewABI.
11260         HAVE_LONG_DOUBLE='defined(__mips64)'
11261         TARGET=MIPS; TARGETDIR=mips
11262         ;;
11263
11264   moxie-*-*)
11265         TARGET=MOXIE; TARGETDIR=moxie
11266         ;;
11267
11268   powerpc*-*-linux* | powerpc-*-sysv*)
11269         TARGET=POWERPC; TARGETDIR=powerpc
11270         ;;
11271   powerpc-*-beos*)
11272         TARGET=POWERPC; TARGETDIR=powerpc
11273         ;;
11274   powerpc-*-darwin*)
11275         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11276         ;;
11277   powerpc-*-aix* | rs6000-*-aix*)
11278         TARGET=POWERPC_AIX; TARGETDIR=powerpc
11279         ;;
11280   powerpc-*-freebsd*)
11281         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11282         ;;
11283   powerpc*-*-rtems*)
11284         TARGET=POWERPC; TARGETDIR=powerpc
11285         ;;
11286
11287   s390-*-* | s390x-*-*)
11288         TARGET=S390; TARGETDIR=s390
11289         ;;
11290
11291   sh-*-* | sh[34]*-*-*)
11292         TARGET=SH; TARGETDIR=sh
11293         ;;
11294   sh64-*-* | sh5*-*-*)
11295         TARGET=SH64; TARGETDIR=sh64
11296         ;;
11297
11298   sparc*-*-*)
11299         TARGET=SPARC; TARGETDIR=sparc
11300         ;;
11301
11302   x86_64-*-darwin*)
11303         TARGET=X86_DARWIN; TARGETDIR=x86
11304         ;;
11305
11306   x86_64-*-cygwin* | x86_64-*-mingw*)
11307         TARGET=X86_WIN64; TARGETDIR=x86
11308         ;;
11309
11310   x86_64-*-*)
11311         TARGET=X86_64; TARGETDIR=x86
11312         ;;
11313 esac
11314
11315
11316
11317
11318 if test $TARGETDIR = unknown; then
11319   as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11320 fi
11321
11322  if test x$TARGET = xMIPS; then
11323   MIPS_TRUE=
11324   MIPS_FALSE='#'
11325 else
11326   MIPS_TRUE='#'
11327   MIPS_FALSE=
11328 fi
11329
11330  if test x$TARGET = xSPARC; then
11331   SPARC_TRUE=
11332   SPARC_FALSE='#'
11333 else
11334   SPARC_TRUE='#'
11335   SPARC_FALSE=
11336 fi
11337
11338  if test x$TARGET = xX86; then
11339   X86_TRUE=
11340   X86_FALSE='#'
11341 else
11342   X86_TRUE='#'
11343   X86_FALSE=
11344 fi
11345
11346  if test x$TARGET = xX86_FREEBSD; then
11347   X86_FREEBSD_TRUE=
11348   X86_FREEBSD_FALSE='#'
11349 else
11350   X86_FREEBSD_TRUE='#'
11351   X86_FREEBSD_FALSE=
11352 fi
11353
11354  if test x$TARGET = xX86_WIN32; then
11355   X86_WIN32_TRUE=
11356   X86_WIN32_FALSE='#'
11357 else
11358   X86_WIN32_TRUE='#'
11359   X86_WIN32_FALSE=
11360 fi
11361
11362  if test x$TARGET = xX86_WIN64; then
11363   X86_WIN64_TRUE=
11364   X86_WIN64_FALSE='#'
11365 else
11366   X86_WIN64_TRUE='#'
11367   X86_WIN64_FALSE=
11368 fi
11369
11370  if test x$TARGET = xX86_DARWIN; then
11371   X86_DARWIN_TRUE=
11372   X86_DARWIN_FALSE='#'
11373 else
11374   X86_DARWIN_TRUE='#'
11375   X86_DARWIN_FALSE=
11376 fi
11377
11378  if test x$TARGET = xALPHA; then
11379   ALPHA_TRUE=
11380   ALPHA_FALSE='#'
11381 else
11382   ALPHA_TRUE='#'
11383   ALPHA_FALSE=
11384 fi
11385
11386  if test x$TARGET = xIA64; then
11387   IA64_TRUE=
11388   IA64_FALSE='#'
11389 else
11390   IA64_TRUE='#'
11391   IA64_FALSE=
11392 fi
11393
11394  if test x$TARGET = xM32R; then
11395   M32R_TRUE=
11396   M32R_FALSE='#'
11397 else
11398   M32R_TRUE='#'
11399   M32R_FALSE=
11400 fi
11401
11402  if test x$TARGET = xM68K; then
11403   M68K_TRUE=
11404   M68K_FALSE='#'
11405 else
11406   M68K_TRUE='#'
11407   M68K_FALSE=
11408 fi
11409
11410  if test x$TARGET = xMOXIE; then
11411   MOXIE_TRUE=
11412   MOXIE_FALSE='#'
11413 else
11414   MOXIE_TRUE='#'
11415   MOXIE_FALSE=
11416 fi
11417
11418  if test x$TARGET = xPOWERPC; then
11419   POWERPC_TRUE=
11420   POWERPC_FALSE='#'
11421 else
11422   POWERPC_TRUE='#'
11423   POWERPC_FALSE=
11424 fi
11425
11426  if test x$TARGET = xPOWERPC_AIX; then
11427   POWERPC_AIX_TRUE=
11428   POWERPC_AIX_FALSE='#'
11429 else
11430   POWERPC_AIX_TRUE='#'
11431   POWERPC_AIX_FALSE=
11432 fi
11433
11434  if test x$TARGET = xPOWERPC_DARWIN; then
11435   POWERPC_DARWIN_TRUE=
11436   POWERPC_DARWIN_FALSE='#'
11437 else
11438   POWERPC_DARWIN_TRUE='#'
11439   POWERPC_DARWIN_FALSE=
11440 fi
11441
11442  if test x$TARGET = xPOWERPC_FREEBSD; then
11443   POWERPC_FREEBSD_TRUE=
11444   POWERPC_FREEBSD_FALSE='#'
11445 else
11446   POWERPC_FREEBSD_TRUE='#'
11447   POWERPC_FREEBSD_FALSE=
11448 fi
11449
11450  if test x$TARGET = xARM; then
11451   ARM_TRUE=
11452   ARM_FALSE='#'
11453 else
11454   ARM_TRUE='#'
11455   ARM_FALSE=
11456 fi
11457
11458  if test x$TARGET = xAVR32; then
11459   AVR32_TRUE=
11460   AVR32_FALSE='#'
11461 else
11462   AVR32_TRUE='#'
11463   AVR32_FALSE=
11464 fi
11465
11466  if test x$TARGET = xLIBFFI_CRIS; then
11467   LIBFFI_CRIS_TRUE=
11468   LIBFFI_CRIS_FALSE='#'
11469 else
11470   LIBFFI_CRIS_TRUE='#'
11471   LIBFFI_CRIS_FALSE=
11472 fi
11473
11474  if test x$TARGET = xFRV; then
11475   FRV_TRUE=
11476   FRV_FALSE='#'
11477 else
11478   FRV_TRUE='#'
11479   FRV_FALSE=
11480 fi
11481
11482  if test x$TARGET = xS390; then
11483   S390_TRUE=
11484   S390_FALSE='#'
11485 else
11486   S390_TRUE='#'
11487   S390_FALSE=
11488 fi
11489
11490  if test x$TARGET = xX86_64; then
11491   X86_64_TRUE=
11492   X86_64_FALSE='#'
11493 else
11494   X86_64_TRUE='#'
11495   X86_64_FALSE=
11496 fi
11497
11498  if test x$TARGET = xSH; then
11499   SH_TRUE=
11500   SH_FALSE='#'
11501 else
11502   SH_TRUE='#'
11503   SH_FALSE=
11504 fi
11505
11506  if test x$TARGET = xSH64; then
11507   SH64_TRUE=
11508   SH64_FALSE='#'
11509 else
11510   SH64_TRUE='#'
11511   SH64_FALSE=
11512 fi
11513
11514  if test x$TARGET = xPA_LINUX; then
11515   PA_LINUX_TRUE=
11516   PA_LINUX_FALSE='#'
11517 else
11518   PA_LINUX_TRUE='#'
11519   PA_LINUX_FALSE=
11520 fi
11521
11522  if test x$TARGET = xPA_HPUX; then
11523   PA_HPUX_TRUE=
11524   PA_HPUX_FALSE='#'
11525 else
11526   PA_HPUX_TRUE='#'
11527   PA_HPUX_FALSE=
11528 fi
11529
11530  if test x$TARGET = xPA64_HPUX; then
11531   PA64_HPUX_TRUE=
11532   PA64_HPUX_FALSE='#'
11533 else
11534   PA64_HPUX_TRUE='#'
11535   PA64_HPUX_FALSE=
11536 fi
11537
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11540 $as_echo_n "checking for ANSI C header files... " >&6; }
11541 if test "${ac_cv_header_stdc+set}" = set; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h.  */
11546 #include <stdlib.h>
11547 #include <stdarg.h>
11548 #include <string.h>
11549 #include <float.h>
11550
11551 int
11552 main ()
11553 {
11554
11555   ;
11556   return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_compile "$LINENO"; then :
11560   ac_cv_header_stdc=yes
11561 else
11562   ac_cv_header_stdc=no
11563 fi
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565
11566 if test $ac_cv_header_stdc = yes; then
11567   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h.  */
11570 #include <string.h>
11571
11572 _ACEOF
11573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11574   $EGREP "memchr" >/dev/null 2>&1; then :
11575
11576 else
11577   ac_cv_header_stdc=no
11578 fi
11579 rm -f conftest*
11580
11581 fi
11582
11583 if test $ac_cv_header_stdc = yes; then
11584   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h.  */
11587 #include <stdlib.h>
11588
11589 _ACEOF
11590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11591   $EGREP "free" >/dev/null 2>&1; then :
11592
11593 else
11594   ac_cv_header_stdc=no
11595 fi
11596 rm -f conftest*
11597
11598 fi
11599
11600 if test $ac_cv_header_stdc = yes; then
11601   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11602   if test "$cross_compiling" = yes; then :
11603   :
11604 else
11605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607 #include <ctype.h>
11608 #include <stdlib.h>
11609 #if ((' ' & 0x0FF) == 0x020)
11610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11612 #else
11613 # define ISLOWER(c) \
11614                    (('a' <= (c) && (c) <= 'i') \
11615                      || ('j' <= (c) && (c) <= 'r') \
11616                      || ('s' <= (c) && (c) <= 'z'))
11617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11618 #endif
11619
11620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11621 int
11622 main ()
11623 {
11624   int i;
11625   for (i = 0; i < 256; i++)
11626     if (XOR (islower (i), ISLOWER (i))
11627         || toupper (i) != TOUPPER (i))
11628       return 2;
11629   return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_run "$LINENO"; then :
11633
11634 else
11635   ac_cv_header_stdc=no
11636 fi
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11638   conftest.$ac_objext conftest.beam conftest.$ac_ext
11639 fi
11640
11641 fi
11642 fi
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11644 $as_echo "$ac_cv_header_stdc" >&6; }
11645 if test $ac_cv_header_stdc = yes; then
11646
11647 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11648
11649 fi
11650
11651 for ac_func in memcpy
11652 do :
11653   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11654 if test "x$ac_cv_func_memcpy" = x""yes; then :
11655   cat >>confdefs.h <<_ACEOF
11656 #define HAVE_MEMCPY 1
11657 _ACEOF
11658
11659 fi
11660 done
11661
11662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11663 # for constant arguments.  Useless!
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11665 $as_echo_n "checking for working alloca.h... " >&6; }
11666 if test "${ac_cv_working_alloca_h+set}" = set; then :
11667   $as_echo_n "(cached) " >&6
11668 else
11669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671 #include <alloca.h>
11672 int
11673 main ()
11674 {
11675 char *p = (char *) alloca (2 * sizeof (int));
11676                           if (p) return 0;
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 if ac_fn_c_try_link "$LINENO"; then :
11682   ac_cv_working_alloca_h=yes
11683 else
11684   ac_cv_working_alloca_h=no
11685 fi
11686 rm -f core conftest.err conftest.$ac_objext \
11687     conftest$ac_exeext conftest.$ac_ext
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11690 $as_echo "$ac_cv_working_alloca_h" >&6; }
11691 if test $ac_cv_working_alloca_h = yes; then
11692
11693 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11694
11695 fi
11696
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11698 $as_echo_n "checking for alloca... " >&6; }
11699 if test "${ac_cv_func_alloca_works+set}" = set; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h.  */
11704 #ifdef __GNUC__
11705 # define alloca __builtin_alloca
11706 #else
11707 # ifdef _MSC_VER
11708 #  include <malloc.h>
11709 #  define alloca _alloca
11710 # else
11711 #  ifdef HAVE_ALLOCA_H
11712 #   include <alloca.h>
11713 #  else
11714 #   ifdef _AIX
11715  #pragma alloca
11716 #   else
11717 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11718 char *alloca ();
11719 #    endif
11720 #   endif
11721 #  endif
11722 # endif
11723 #endif
11724
11725 int
11726 main ()
11727 {
11728 char *p = (char *) alloca (1);
11729                                     if (p) return 0;
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 if ac_fn_c_try_link "$LINENO"; then :
11735   ac_cv_func_alloca_works=yes
11736 else
11737   ac_cv_func_alloca_works=no
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext \
11740     conftest$ac_exeext conftest.$ac_ext
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11743 $as_echo "$ac_cv_func_alloca_works" >&6; }
11744
11745 if test $ac_cv_func_alloca_works = yes; then
11746
11747 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11748
11749 else
11750   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11751 # that cause trouble.  Some versions do not even contain alloca or
11752 # contain a buggy version.  If you still want to use their alloca,
11753 # use ar to extract alloca.o from them instead of compiling alloca.c.
11754
11755 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11756
11757 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11758
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11761 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11762 if test "${ac_cv_os_cray+set}" = set; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h.  */
11767 #if defined CRAY && ! defined CRAY2
11768 webecray
11769 #else
11770 wenotbecray
11771 #endif
11772
11773 _ACEOF
11774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11775   $EGREP "webecray" >/dev/null 2>&1; then :
11776   ac_cv_os_cray=yes
11777 else
11778   ac_cv_os_cray=no
11779 fi
11780 rm -f conftest*
11781
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11784 $as_echo "$ac_cv_os_cray" >&6; }
11785 if test $ac_cv_os_cray = yes; then
11786   for ac_func in _getb67 GETB67 getb67; do
11787     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11789 eval as_val=\$$as_ac_var
11790    if test "x$as_val" = x""yes; then :
11791
11792 cat >>confdefs.h <<_ACEOF
11793 #define CRAY_STACKSEG_END $ac_func
11794 _ACEOF
11795
11796     break
11797 fi
11798
11799   done
11800 fi
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11803 $as_echo_n "checking stack direction for C alloca... " >&6; }
11804 if test "${ac_cv_c_stack_direction+set}" = set; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   if test "$cross_compiling" = yes; then :
11808   ac_cv_c_stack_direction=0
11809 else
11810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h.  */
11812 $ac_includes_default
11813 int
11814 find_stack_direction ()
11815 {
11816   static char *addr = 0;
11817   auto char dummy;
11818   if (addr == 0)
11819     {
11820       addr = &dummy;
11821       return find_stack_direction ();
11822     }
11823   else
11824     return (&dummy > addr) ? 1 : -1;
11825 }
11826
11827 int
11828 main ()
11829 {
11830   return find_stack_direction () < 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_run "$LINENO"; then :
11834   ac_cv_c_stack_direction=1
11835 else
11836   ac_cv_c_stack_direction=-1
11837 fi
11838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11839   conftest.$ac_objext conftest.beam conftest.$ac_ext
11840 fi
11841
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11844 $as_echo "$ac_cv_c_stack_direction" >&6; }
11845 cat >>confdefs.h <<_ACEOF
11846 #define STACK_DIRECTION $ac_cv_c_stack_direction
11847 _ACEOF
11848
11849
11850 fi
11851
11852
11853 # The cast to long int works around a bug in the HP C Compiler
11854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11856 # This bug is HP SR number 8606223364.
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11858 $as_echo_n "checking size of double... " >&6; }
11859 if test "${ac_cv_sizeof_double+set}" = set; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
11863
11864 else
11865   if test "$ac_cv_type_double" = yes; then
11866      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11868 { as_fn_set_status 77
11869 as_fn_error "cannot compute sizeof (double)
11870 See \`config.log' for more details." "$LINENO" 5; }; }
11871    else
11872      ac_cv_sizeof_double=0
11873    fi
11874 fi
11875
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11878 $as_echo "$ac_cv_sizeof_double" >&6; }
11879
11880
11881
11882 cat >>confdefs.h <<_ACEOF
11883 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11884 _ACEOF
11885
11886
11887 # The cast to long int works around a bug in the HP C Compiler
11888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11890 # This bug is HP SR number 8606223364.
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
11892 $as_echo_n "checking size of long double... " >&6; }
11893 if test "${ac_cv_sizeof_long_double+set}" = set; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
11897
11898 else
11899   if test "$ac_cv_type_long_double" = yes; then
11900      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 { as_fn_set_status 77
11903 as_fn_error "cannot compute sizeof (long double)
11904 See \`config.log' for more details." "$LINENO" 5; }; }
11905    else
11906      ac_cv_sizeof_long_double=0
11907    fi
11908 fi
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
11912 $as_echo "$ac_cv_sizeof_long_double" >&6; }
11913
11914
11915
11916 cat >>confdefs.h <<_ACEOF
11917 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11918 _ACEOF
11919
11920
11921
11922 # Also AC_SUBST this variable for ffi.h.
11923 if test -z "$HAVE_LONG_DOUBLE"; then
11924   HAVE_LONG_DOUBLE=0
11925   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
11926     if test $ac_cv_sizeof_long_double != 0; then
11927       HAVE_LONG_DOUBLE=1
11928
11929 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11930
11931     fi
11932   fi
11933 fi
11934
11935
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11937 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11938 if test "${ac_cv_c_bigendian+set}" = set; then :
11939   $as_echo_n "(cached) " >&6
11940 else
11941   ac_cv_c_bigendian=unknown
11942     # See if we're dealing with a universal compiler.
11943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h.  */
11945 #ifndef __APPLE_CC__
11946                not a universal capable compiler
11947              #endif
11948              typedef int dummy;
11949
11950 _ACEOF
11951 if ac_fn_c_try_compile "$LINENO"; then :
11952
11953         # Check for potential -arch flags.  It is not universal unless
11954         # there are at least two -arch flags with different values.
11955         ac_arch=
11956         ac_prev=
11957         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11958          if test -n "$ac_prev"; then
11959            case $ac_word in
11960              i?86 | x86_64 | ppc | ppc64)
11961                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11962                  ac_arch=$ac_word
11963                else
11964                  ac_cv_c_bigendian=universal
11965                  break
11966                fi
11967                ;;
11968            esac
11969            ac_prev=
11970          elif test "x$ac_word" = "x-arch"; then
11971            ac_prev=arch
11972          fi
11973        done
11974 fi
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976     if test $ac_cv_c_bigendian = unknown; then
11977       # See if sys/param.h defines the BYTE_ORDER macro.
11978       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h.  */
11980 #include <sys/types.h>
11981              #include <sys/param.h>
11982
11983 int
11984 main ()
11985 {
11986 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11987                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11988                      && LITTLE_ENDIAN)
11989               bogus endian macros
11990              #endif
11991
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_compile "$LINENO"; then :
11997   # It does; now see whether it defined to BIG_ENDIAN or not.
11998          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h.  */
12000 #include <sys/types.h>
12001                 #include <sys/param.h>
12002
12003 int
12004 main ()
12005 {
12006 #if BYTE_ORDER != BIG_ENDIAN
12007                  not big endian
12008                 #endif
12009
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 if ac_fn_c_try_compile "$LINENO"; then :
12015   ac_cv_c_bigendian=yes
12016 else
12017   ac_cv_c_bigendian=no
12018 fi
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022     fi
12023     if test $ac_cv_c_bigendian = unknown; then
12024       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12025       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027 #include <limits.h>
12028
12029 int
12030 main ()
12031 {
12032 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12033               bogus endian macros
12034              #endif
12035
12036   ;
12037   return 0;
12038 }
12039 _ACEOF
12040 if ac_fn_c_try_compile "$LINENO"; then :
12041   # It does; now see whether it defined to _BIG_ENDIAN or not.
12042          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h.  */
12044 #include <limits.h>
12045
12046 int
12047 main ()
12048 {
12049 #ifndef _BIG_ENDIAN
12050                  not big endian
12051                 #endif
12052
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 if ac_fn_c_try_compile "$LINENO"; then :
12058   ac_cv_c_bigendian=yes
12059 else
12060   ac_cv_c_bigendian=no
12061 fi
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065     fi
12066     if test $ac_cv_c_bigendian = unknown; then
12067       # Compile a test program.
12068       if test "$cross_compiling" = yes; then :
12069   # Try to guess by grepping values from an object file.
12070          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072 short int ascii_mm[] =
12073                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12074                 short int ascii_ii[] =
12075                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12076                 int use_ascii (int i) {
12077                   return ascii_mm[i] + ascii_ii[i];
12078                 }
12079                 short int ebcdic_ii[] =
12080                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12081                 short int ebcdic_mm[] =
12082                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12083                 int use_ebcdic (int i) {
12084                   return ebcdic_mm[i] + ebcdic_ii[i];
12085                 }
12086                 extern int foo;
12087
12088 int
12089 main ()
12090 {
12091 return use_ascii (foo) == use_ebcdic (foo);
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12098               ac_cv_c_bigendian=yes
12099             fi
12100             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12101               if test "$ac_cv_c_bigendian" = unknown; then
12102                 ac_cv_c_bigendian=no
12103               else
12104                 # finding both strings is unlikely to happen, but who knows?
12105                 ac_cv_c_bigendian=unknown
12106               fi
12107             fi
12108 fi
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 else
12111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h.  */
12113 $ac_includes_default
12114 int
12115 main ()
12116 {
12117
12118              /* Are we little or big endian?  From Harbison&Steele.  */
12119              union
12120              {
12121                long int l;
12122                char c[sizeof (long int)];
12123              } u;
12124              u.l = 1;
12125              return u.c[sizeof (long int) - 1] == 1;
12126
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then :
12132   ac_cv_c_bigendian=no
12133 else
12134   ac_cv_c_bigendian=yes
12135 fi
12136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12137   conftest.$ac_objext conftest.beam conftest.$ac_ext
12138 fi
12139
12140     fi
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12143 $as_echo "$ac_cv_c_bigendian" >&6; }
12144  case $ac_cv_c_bigendian in #(
12145    yes)
12146      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12147 ;; #(
12148    no)
12149       ;; #(
12150    universal)
12151
12152 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12153
12154      ;; #(
12155    *)
12156      as_fn_error "unknown endianness
12157  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12158  esac
12159
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12162 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12163 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166
12167     libffi_cv_as_cfi_pseudo_op=unknown
12168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h.  */
12170 asm (".cfi_startproc\n\t.cfi_endproc");
12171 int
12172 main ()
12173 {
12174
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_compile "$LINENO"; then :
12180   libffi_cv_as_cfi_pseudo_op=yes
12181 else
12182   libffi_cv_as_cfi_pseudo_op=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12188 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
12189 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12190
12191 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12192
12193 fi
12194
12195 if test x$TARGET = xSPARC; then
12196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12197 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12198 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12199   $as_echo_n "(cached) " >&6
12200 else
12201
12202         save_CFLAGS="$CFLAGS"
12203         save_LDFLAGS="$LDFLAGS"
12204         CFLAGS="$CFLAGS -fpic"
12205         LDFLAGS="$LDFLAGS -shared"
12206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h.  */
12208 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12209 int
12210 main ()
12211 {
12212
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218   libffi_cv_as_sparc_ua_pcrel=yes
12219 else
12220   libffi_cv_as_sparc_ua_pcrel=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext \
12223     conftest$ac_exeext conftest.$ac_ext
12224         CFLAGS="$save_CFLAGS"
12225         LDFLAGS="$save_LDFLAGS"
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12228 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12229     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12230
12231 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12232
12233     fi
12234
12235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12236 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12237 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240
12241        libffi_cv_as_register_pseudo_op=unknown
12242        # Check if we have .register
12243        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h.  */
12245 asm (".register %g2, #scratch");
12246 int
12247 main ()
12248 {
12249
12250   ;
12251   return 0;
12252 }
12253 _ACEOF
12254 if ac_fn_c_try_compile "$LINENO"; then :
12255   libffi_cv_as_register_pseudo_op=yes
12256 else
12257   libffi_cv_as_register_pseudo_op=no
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12263 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12264     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12265
12266 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12267
12268     fi
12269 fi
12270
12271 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12273 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12274 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277
12278         libffi_cv_as_x86_pcrel=yes
12279         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12280         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12281             libffi_cv_as_x86_pcrel=no
12282         fi
12283
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12286 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12287     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12288
12289 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12290
12291     fi
12292
12293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12294 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12295 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12296   $as_echo_n "(cached) " >&6
12297 else
12298
12299        libffi_cv_as_ascii_pseudo_op=unknown
12300        # Check if we have .ascii
12301        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h.  */
12303 asm (".ascii \"string\"");
12304 int
12305 main ()
12306 {
12307
12308   ;
12309   return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_c_try_compile "$LINENO"; then :
12313   libffi_cv_as_ascii_pseudo_op=yes
12314 else
12315   libffi_cv_as_ascii_pseudo_op=no
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12321 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12322     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12323
12324 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12325
12326     fi
12327
12328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12329 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12330 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333
12334        libffi_cv_as_string_pseudo_op=unknown
12335        # Check if we have .string
12336        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338 asm (".string \"string\"");
12339 int
12340 main ()
12341 {
12342
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_compile "$LINENO"; then :
12348   libffi_cv_as_string_pseudo_op=yes
12349 else
12350   libffi_cv_as_string_pseudo_op=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12356 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12357     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12358
12359 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12360
12361     fi
12362 fi
12363
12364 case "$target" in
12365      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
12366
12367 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12368
12369      ;;
12370 esac
12371
12372 if test x$TARGET = xX86_64; then
12373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12374 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12375 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378
12379         libffi_cv_as_x86_64_unwind_section_type=yes
12380         echo '.section .eh_frame,"a",@unwind' > conftest.s
12381         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12382             libffi_cv_as_x86_64_unwind_section_type=no
12383         fi
12384
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12387 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12388     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12389
12390 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12391
12392     fi
12393 fi
12394
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12396 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12397 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12398   $as_echo_n "(cached) " >&6
12399 else
12400
12401         libffi_cv_ro_eh_frame=no
12402         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12403         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12404             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12405                 libffi_cv_ro_eh_frame=yes
12406             elif grep '.section.*eh_frame.*#alloc' conftest.c \
12407                  | grep -v '#write' > /dev/null; then
12408                 libffi_cv_ro_eh_frame=yes
12409             fi
12410         fi
12411         rm -f conftest.*
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12415 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12416 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12417
12418 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12419
12420
12421 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12422
12423 else
12424
12425 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12426
12427 fi
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12430 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12431 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434
12435         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12436         libffi_cv_hidden_visibility_attribute=no
12437         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12438   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12442   test $ac_status = 0; }; }; then
12443             if grep '\.hidden.*foo' conftest.s >/dev/null; then
12444                 libffi_cv_hidden_visibility_attribute=yes
12445             fi
12446         fi
12447         rm -f conftest.*
12448
12449 fi
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12451 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12452 if test $libffi_cv_hidden_visibility_attribute = yes; then
12453
12454 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12455
12456 fi
12457
12458
12459
12460
12461
12462
12463
12464
12465 # Check whether --enable-debug was given.
12466 if test "${enable_debug+set}" = set; then :
12467   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12468
12469 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12470
12471   fi
12472 fi
12473
12474  if test "$enable_debug" = "yes"; then
12475   FFI_DEBUG_TRUE=
12476   FFI_DEBUG_FALSE='#'
12477 else
12478   FFI_DEBUG_TRUE='#'
12479   FFI_DEBUG_FALSE=
12480 fi
12481
12482
12483 # Check whether --enable-structs was given.
12484 if test "${enable_structs+set}" = set; then :
12485   enableval=$enable_structs; if test "$enable_structs" = "no"; then
12486
12487 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12488
12489   fi
12490 fi
12491
12492
12493 # Check whether --enable-raw-api was given.
12494 if test "${enable_raw_api+set}" = set; then :
12495   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12496
12497 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12498
12499   fi
12500 fi
12501
12502
12503 # Check whether --enable-purify-safety was given.
12504 if test "${enable_purify_safety+set}" = set; then :
12505   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12506
12507 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12508
12509   fi
12510 fi
12511
12512
12513 if test -n "$with_cross_host" &&
12514    test x"$with_cross_host" != x"no"; then
12515   toolexecdir='$(exec_prefix)/$(target_alias)'
12516   toolexeclibdir='$(toolexecdir)/lib'
12517 else
12518   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12519   toolexeclibdir='$(libdir)'
12520 fi
12521 multi_os_directory=`$CC -print-multi-os-directory`
12522 case $multi_os_directory in
12523   .) ;; # Avoid trailing /.
12524   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12525 esac
12526
12527
12528
12529 if test "${multilib}" = "yes"; then
12530   multilib_arg="--enable-multilib"
12531 else
12532   multilib_arg=
12533 fi
12534
12535 ac_config_commands="$ac_config_commands include"
12536
12537 ac_config_commands="$ac_config_commands src"
12538
12539
12540 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12541
12542
12543 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
12544
12545
12546 cat >confcache <<\_ACEOF
12547 # This file is a shell script that caches the results of configure
12548 # tests run on this system so they can be shared between configure
12549 # scripts and configure runs, see configure's option --config-cache.
12550 # It is not useful on other systems.  If it contains results you don't
12551 # want to keep, you may remove or edit it.
12552 #
12553 # config.status only pays attention to the cache file if you give it
12554 # the --recheck option to rerun configure.
12555 #
12556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12558 # following values.
12559
12560 _ACEOF
12561
12562 # The following way of writing the cache mishandles newlines in values,
12563 # but we know of no workaround that is simple, portable, and efficient.
12564 # So, we kill variables containing newlines.
12565 # Ultrix sh set writes to stderr and can't be redirected directly,
12566 # and sets the high bit in the cache file unless we assign to the vars.
12567 (
12568   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12569     eval ac_val=\$$ac_var
12570     case $ac_val in #(
12571     *${as_nl}*)
12572       case $ac_var in #(
12573       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12575       esac
12576       case $ac_var in #(
12577       _ | IFS | as_nl) ;; #(
12578       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12579       *) { eval $ac_var=; unset $ac_var;} ;;
12580       esac ;;
12581     esac
12582   done
12583
12584   (set) 2>&1 |
12585     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12586     *${as_nl}ac_space=\ *)
12587       # `set' does not quote correctly, so add quotes: double-quote
12588       # substitution turns \\\\ into \\, and sed turns \\ into \.
12589       sed -n \
12590         "s/'/'\\\\''/g;
12591           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12592       ;; #(
12593     *)
12594       # `set' quotes correctly as required by POSIX, so do not add quotes.
12595       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12596       ;;
12597     esac |
12598     sort
12599 ) |
12600   sed '
12601      /^ac_cv_env_/b end
12602      t clear
12603      :clear
12604      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12605      t end
12606      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12607      :end' >>confcache
12608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12609   if test -w "$cache_file"; then
12610     test "x$cache_file" != "x/dev/null" &&
12611       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12612 $as_echo "$as_me: updating cache $cache_file" >&6;}
12613     cat confcache >$cache_file
12614   else
12615     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12617   fi
12618 fi
12619 rm -f confcache
12620
12621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12622 # Let make expand exec_prefix.
12623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12624
12625 DEFS=-DHAVE_CONFIG_H
12626
12627 ac_libobjs=
12628 ac_ltlibobjs=
12629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12630   # 1. Remove the extension, and $U if already installed.
12631   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12632   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12633   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12634   #    will be set to the directory where LIBOBJS objects are built.
12635   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12636   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12637 done
12638 LIBOBJS=$ac_libobjs
12639
12640 LTLIBOBJS=$ac_ltlibobjs
12641
12642
12643  if test -n "$EXEEXT"; then
12644   am__EXEEXT_TRUE=
12645   am__EXEEXT_FALSE='#'
12646 else
12647   am__EXEEXT_TRUE='#'
12648   am__EXEEXT_FALSE=
12649 fi
12650
12651 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12652   as_fn_error "conditional \"AMDEP\" was never defined.
12653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12654 fi
12655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12656   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12658 fi
12659 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12660   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12662 fi
12663 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12664   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12666 fi
12667 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12668   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12670 fi
12671 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12672   as_fn_error "conditional \"MIPS\" was never defined.
12673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12674 fi
12675 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12676   as_fn_error "conditional \"SPARC\" was never defined.
12677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12678 fi
12679 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12680   as_fn_error "conditional \"X86\" was never defined.
12681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12682 fi
12683 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
12684   as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12686 fi
12687 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12688   as_fn_error "conditional \"X86_WIN32\" was never defined.
12689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12690 fi
12691 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
12692   as_fn_error "conditional \"X86_WIN64\" was never defined.
12693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12694 fi
12695 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12696   as_fn_error "conditional \"X86_DARWIN\" was never defined.
12697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12698 fi
12699 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12700   as_fn_error "conditional \"ALPHA\" was never defined.
12701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12702 fi
12703 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12704   as_fn_error "conditional \"IA64\" was never defined.
12705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12706 fi
12707 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12708   as_fn_error "conditional \"M32R\" was never defined.
12709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12710 fi
12711 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12712   as_fn_error "conditional \"M68K\" was never defined.
12713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12714 fi
12715 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
12716   as_fn_error "conditional \"MOXIE\" was never defined.
12717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12718 fi
12719 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12720   as_fn_error "conditional \"POWERPC\" was never defined.
12721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12722 fi
12723 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12724   as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12726 fi
12727 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12728   as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12730 fi
12731 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12732   as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12734 fi
12735 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12736   as_fn_error "conditional \"ARM\" was never defined.
12737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12738 fi
12739 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12740   as_fn_error "conditional \"AVR32\" was never defined.
12741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12742 fi
12743 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12744   as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12746 fi
12747 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12748   as_fn_error "conditional \"FRV\" was never defined.
12749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12750 fi
12751 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12752   as_fn_error "conditional \"S390\" was never defined.
12753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12754 fi
12755 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12756   as_fn_error "conditional \"X86_64\" was never defined.
12757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12758 fi
12759 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12760   as_fn_error "conditional \"SH\" was never defined.
12761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12762 fi
12763 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12764   as_fn_error "conditional \"SH64\" was never defined.
12765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12766 fi
12767 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12768   as_fn_error "conditional \"PA_LINUX\" was never defined.
12769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12770 fi
12771 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12772   as_fn_error "conditional \"PA_HPUX\" was never defined.
12773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12774 fi
12775 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12776   as_fn_error "conditional \"PA64_HPUX\" was never defined.
12777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12778 fi
12779
12780 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
12781   as_fn_error "conditional \"FFI_DEBUG\" was never defined.
12782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12783 fi
12784
12785 : ${CONFIG_STATUS=./config.status}
12786 ac_write_fail=0
12787 ac_clean_files_save=$ac_clean_files
12788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12790 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12791 as_write_fail=0
12792 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12793 #! $SHELL
12794 # Generated by $as_me.
12795 # Run this file to recreate the current configuration.
12796 # Compiler output produced by configure, useful for debugging
12797 # configure, is in config.log if it exists.
12798
12799 debug=false
12800 ac_cs_recheck=false
12801 ac_cs_silent=false
12802
12803 SHELL=\${CONFIG_SHELL-$SHELL}
12804 export SHELL
12805 _ASEOF
12806 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12807 ## -------------------- ##
12808 ## M4sh Initialization. ##
12809 ## -------------------- ##
12810
12811 # Be more Bourne compatible
12812 DUALCASE=1; export DUALCASE # for MKS sh
12813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12814   emulate sh
12815   NULLCMD=:
12816   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12817   # is contrary to our usage.  Disable this feature.
12818   alias -g '${1+"$@"}'='"$@"'
12819   setopt NO_GLOB_SUBST
12820 else
12821   case `(set -o) 2>/dev/null` in #(
12822   *posix*) :
12823     set -o posix ;; #(
12824   *) :
12825      ;;
12826 esac
12827 fi
12828
12829
12830 as_nl='
12831 '
12832 export as_nl
12833 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12834 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12836 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12837 # Prefer a ksh shell builtin over an external printf program on Solaris,
12838 # but without wasting forks for bash or zsh.
12839 if test -z "$BASH_VERSION$ZSH_VERSION" \
12840     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12841   as_echo='print -r --'
12842   as_echo_n='print -rn --'
12843 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12844   as_echo='printf %s\n'
12845   as_echo_n='printf %s'
12846 else
12847   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12848     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12849     as_echo_n='/usr/ucb/echo -n'
12850   else
12851     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12852     as_echo_n_body='eval
12853       arg=$1;
12854       case $arg in #(
12855       *"$as_nl"*)
12856         expr "X$arg" : "X\\(.*\\)$as_nl";
12857         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12858       esac;
12859       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12860     '
12861     export as_echo_n_body
12862     as_echo_n='sh -c $as_echo_n_body as_echo'
12863   fi
12864   export as_echo_body
12865   as_echo='sh -c $as_echo_body as_echo'
12866 fi
12867
12868 # The user is always right.
12869 if test "${PATH_SEPARATOR+set}" != set; then
12870   PATH_SEPARATOR=:
12871   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12872     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12873       PATH_SEPARATOR=';'
12874   }
12875 fi
12876
12877
12878 # IFS
12879 # We need space, tab and new line, in precisely that order.  Quoting is
12880 # there to prevent editors from complaining about space-tab.
12881 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12882 # splitting by setting IFS to empty value.)
12883 IFS=" ""        $as_nl"
12884
12885 # Find who we are.  Look in the path if we contain no directory separator.
12886 case $0 in #((
12887   *[\\/]* ) as_myself=$0 ;;
12888   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12890 do
12891   IFS=$as_save_IFS
12892   test -z "$as_dir" && as_dir=.
12893     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12894   done
12895 IFS=$as_save_IFS
12896
12897      ;;
12898 esac
12899 # We did not find ourselves, most probably we were run as `sh COMMAND'
12900 # in which case we are not to be found in the path.
12901 if test "x$as_myself" = x; then
12902   as_myself=$0
12903 fi
12904 if test ! -f "$as_myself"; then
12905   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12906   exit 1
12907 fi
12908
12909 # Unset variables that we do not need and which cause bugs (e.g. in
12910 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12911 # suppresses any "Segmentation fault" message there.  '((' could
12912 # trigger a bug in pdksh 5.2.14.
12913 for as_var in BASH_ENV ENV MAIL MAILPATH
12914 do eval test x\${$as_var+set} = xset \
12915   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12916 done
12917 PS1='$ '
12918 PS2='> '
12919 PS4='+ '
12920
12921 # NLS nuisances.
12922 LC_ALL=C
12923 export LC_ALL
12924 LANGUAGE=C
12925 export LANGUAGE
12926
12927 # CDPATH.
12928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12929
12930
12931 # as_fn_error ERROR [LINENO LOG_FD]
12932 # ---------------------------------
12933 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12934 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12935 # script with status $?, using 1 if that was 0.
12936 as_fn_error ()
12937 {
12938   as_status=$?; test $as_status -eq 0 && as_status=1
12939   if test "$3"; then
12940     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12941     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12942   fi
12943   $as_echo "$as_me: error: $1" >&2
12944   as_fn_exit $as_status
12945 } # as_fn_error
12946
12947
12948 # as_fn_set_status STATUS
12949 # -----------------------
12950 # Set $? to STATUS, without forking.
12951 as_fn_set_status ()
12952 {
12953   return $1
12954 } # as_fn_set_status
12955
12956 # as_fn_exit STATUS
12957 # -----------------
12958 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12959 as_fn_exit ()
12960 {
12961   set +e
12962   as_fn_set_status $1
12963   exit $1
12964 } # as_fn_exit
12965
12966 # as_fn_unset VAR
12967 # ---------------
12968 # Portably unset VAR.
12969 as_fn_unset ()
12970 {
12971   { eval $1=; unset $1;}
12972 }
12973 as_unset=as_fn_unset
12974 # as_fn_append VAR VALUE
12975 # ----------------------
12976 # Append the text in VALUE to the end of the definition contained in VAR. Take
12977 # advantage of any shell optimizations that allow amortized linear growth over
12978 # repeated appends, instead of the typical quadratic growth present in naive
12979 # implementations.
12980 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12981   eval 'as_fn_append ()
12982   {
12983     eval $1+=\$2
12984   }'
12985 else
12986   as_fn_append ()
12987   {
12988     eval $1=\$$1\$2
12989   }
12990 fi # as_fn_append
12991
12992 # as_fn_arith ARG...
12993 # ------------------
12994 # Perform arithmetic evaluation on the ARGs, and store the result in the
12995 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12996 # must be portable across $(()) and expr.
12997 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12998   eval 'as_fn_arith ()
12999   {
13000     as_val=$(( $* ))
13001   }'
13002 else
13003   as_fn_arith ()
13004   {
13005     as_val=`expr "$@" || test $? -eq 1`
13006   }
13007 fi # as_fn_arith
13008
13009
13010 if expr a : '\(a\)' >/dev/null 2>&1 &&
13011    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13012   as_expr=expr
13013 else
13014   as_expr=false
13015 fi
13016
13017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13018   as_basename=basename
13019 else
13020   as_basename=false
13021 fi
13022
13023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13024   as_dirname=dirname
13025 else
13026   as_dirname=false
13027 fi
13028
13029 as_me=`$as_basename -- "$0" ||
13030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13031          X"$0" : 'X\(//\)$' \| \
13032          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13033 $as_echo X/"$0" |
13034     sed '/^.*\/\([^/][^/]*\)\/*$/{
13035             s//\1/
13036             q
13037           }
13038           /^X\/\(\/\/\)$/{
13039             s//\1/
13040             q
13041           }
13042           /^X\/\(\/\).*/{
13043             s//\1/
13044             q
13045           }
13046           s/.*/./; q'`
13047
13048 # Avoid depending upon Character Ranges.
13049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13052 as_cr_digits='0123456789'
13053 as_cr_alnum=$as_cr_Letters$as_cr_digits
13054
13055 ECHO_C= ECHO_N= ECHO_T=
13056 case `echo -n x` in #(((((
13057 -n*)
13058   case `echo 'xy\c'` in
13059   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13060   xy)  ECHO_C='\c';;
13061   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13062        ECHO_T=' ';;
13063   esac;;
13064 *)
13065   ECHO_N='-n';;
13066 esac
13067
13068 rm -f conf$$ conf$$.exe conf$$.file
13069 if test -d conf$$.dir; then
13070   rm -f conf$$.dir/conf$$.file
13071 else
13072   rm -f conf$$.dir
13073   mkdir conf$$.dir 2>/dev/null
13074 fi
13075 if (echo >conf$$.file) 2>/dev/null; then
13076   if ln -s conf$$.file conf$$ 2>/dev/null; then
13077     as_ln_s='ln -s'
13078     # ... but there are two gotchas:
13079     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13080     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13081     # In both cases, we have to default to `cp -p'.
13082     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13083       as_ln_s='cp -p'
13084   elif ln conf$$.file conf$$ 2>/dev/null; then
13085     as_ln_s=ln
13086   else
13087     as_ln_s='cp -p'
13088   fi
13089 else
13090   as_ln_s='cp -p'
13091 fi
13092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13093 rmdir conf$$.dir 2>/dev/null
13094
13095
13096 # as_fn_mkdir_p
13097 # -------------
13098 # Create "$as_dir" as a directory, including parents if necessary.
13099 as_fn_mkdir_p ()
13100 {
13101
13102   case $as_dir in #(
13103   -*) as_dir=./$as_dir;;
13104   esac
13105   test -d "$as_dir" || eval $as_mkdir_p || {
13106     as_dirs=
13107     while :; do
13108       case $as_dir in #(
13109       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13110       *) as_qdir=$as_dir;;
13111       esac
13112       as_dirs="'$as_qdir' $as_dirs"
13113       as_dir=`$as_dirname -- "$as_dir" ||
13114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13115          X"$as_dir" : 'X\(//\)[^/]' \| \
13116          X"$as_dir" : 'X\(//\)$' \| \
13117          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13118 $as_echo X"$as_dir" |
13119     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13120             s//\1/
13121             q
13122           }
13123           /^X\(\/\/\)[^/].*/{
13124             s//\1/
13125             q
13126           }
13127           /^X\(\/\/\)$/{
13128             s//\1/
13129             q
13130           }
13131           /^X\(\/\).*/{
13132             s//\1/
13133             q
13134           }
13135           s/.*/./; q'`
13136       test -d "$as_dir" && break
13137     done
13138     test -z "$as_dirs" || eval "mkdir $as_dirs"
13139   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13140
13141
13142 } # as_fn_mkdir_p
13143 if mkdir -p . 2>/dev/null; then
13144   as_mkdir_p='mkdir -p "$as_dir"'
13145 else
13146   test -d ./-p && rmdir ./-p
13147   as_mkdir_p=false
13148 fi
13149
13150 if test -x / >/dev/null 2>&1; then
13151   as_test_x='test -x'
13152 else
13153   if ls -dL / >/dev/null 2>&1; then
13154     as_ls_L_option=L
13155   else
13156     as_ls_L_option=
13157   fi
13158   as_test_x='
13159     eval sh -c '\''
13160       if test -d "$1"; then
13161         test -d "$1/.";
13162       else
13163         case $1 in #(
13164         -*)set "./$1";;
13165         esac;
13166         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13167         ???[sx]*):;;*)false;;esac;fi
13168     '\'' sh
13169   '
13170 fi
13171 as_executable_p=$as_test_x
13172
13173 # Sed expression to map a string onto a valid CPP name.
13174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13175
13176 # Sed expression to map a string onto a valid variable name.
13177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13178
13179
13180 exec 6>&1
13181 ## ----------------------------------- ##
13182 ## Main body of $CONFIG_STATUS script. ##
13183 ## ----------------------------------- ##
13184 _ASEOF
13185 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13186
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188 # Save the log message, to keep $0 and so on meaningful, and to
13189 # report actual input values of CONFIG_FILES etc. instead of their
13190 # values after options handling.
13191 ac_log="
13192 This file was extended by libffi $as_me 3.0.10rc0, which was
13193 generated by GNU Autoconf 2.65.  Invocation command line was
13194
13195   CONFIG_FILES    = $CONFIG_FILES
13196   CONFIG_HEADERS  = $CONFIG_HEADERS
13197   CONFIG_LINKS    = $CONFIG_LINKS
13198   CONFIG_COMMANDS = $CONFIG_COMMANDS
13199   $ $0 $@
13200
13201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13202 "
13203
13204 _ACEOF
13205
13206 case $ac_config_files in *"
13207 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13208 esac
13209
13210 case $ac_config_headers in *"
13211 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13212 esac
13213
13214
13215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13216 # Files that config.status was made for.
13217 config_files="$ac_config_files"
13218 config_headers="$ac_config_headers"
13219 config_links="$ac_config_links"
13220 config_commands="$ac_config_commands"
13221
13222 _ACEOF
13223
13224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13225 ac_cs_usage="\
13226 \`$as_me' instantiates files and other configuration actions
13227 from templates according to the current configuration.  Unless the files
13228 and actions are specified as TAGs, all are instantiated by default.
13229
13230 Usage: $0 [OPTION]... [TAG]...
13231
13232   -h, --help       print this help, then exit
13233   -V, --version    print version number and configuration settings, then exit
13234       --config     print configuration, then exit
13235   -q, --quiet, --silent
13236                    do not print progress messages
13237   -d, --debug      don't remove temporary files
13238       --recheck    update $as_me by reconfiguring in the same conditions
13239       --file=FILE[:TEMPLATE]
13240                    instantiate the configuration file FILE
13241       --header=FILE[:TEMPLATE]
13242                    instantiate the configuration header FILE
13243
13244 Configuration files:
13245 $config_files
13246
13247 Configuration headers:
13248 $config_headers
13249
13250 Configuration links:
13251 $config_links
13252
13253 Configuration commands:
13254 $config_commands
13255
13256 Report bugs to <http://gcc.gnu.org/bugs.html>."
13257
13258 _ACEOF
13259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13260 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13261 ac_cs_version="\\
13262 libffi config.status 3.0.10rc0
13263 configured by $0, generated by GNU Autoconf 2.65,
13264   with options \\"\$ac_cs_config\\"
13265
13266 Copyright (C) 2009 Free Software Foundation, Inc.
13267 This config.status script is free software; the Free Software Foundation
13268 gives unlimited permission to copy, distribute and modify it."
13269
13270 ac_pwd='$ac_pwd'
13271 srcdir='$srcdir'
13272 INSTALL='$INSTALL'
13273 MKDIR_P='$MKDIR_P'
13274 AWK='$AWK'
13275 test -n "\$AWK" || AWK=awk
13276 _ACEOF
13277
13278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13279 # The default lists apply if the user does not specify any file.
13280 ac_need_defaults=:
13281 while test $# != 0
13282 do
13283   case $1 in
13284   --*=*)
13285     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13286     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13287     ac_shift=:
13288     ;;
13289   *)
13290     ac_option=$1
13291     ac_optarg=$2
13292     ac_shift=shift
13293     ;;
13294   esac
13295
13296   case $ac_option in
13297   # Handling of the options.
13298   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13299     ac_cs_recheck=: ;;
13300   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13301     $as_echo "$ac_cs_version"; exit ;;
13302   --config | --confi | --conf | --con | --co | --c )
13303     $as_echo "$ac_cs_config"; exit ;;
13304   --debug | --debu | --deb | --de | --d | -d )
13305     debug=: ;;
13306   --file | --fil | --fi | --f )
13307     $ac_shift
13308     case $ac_optarg in
13309     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13310     esac
13311     as_fn_append CONFIG_FILES " '$ac_optarg'"
13312     ac_need_defaults=false;;
13313   --header | --heade | --head | --hea )
13314     $ac_shift
13315     case $ac_optarg in
13316     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13317     esac
13318     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13319     ac_need_defaults=false;;
13320   --he | --h)
13321     # Conflict between --help and --header
13322     as_fn_error "ambiguous option: \`$1'
13323 Try \`$0 --help' for more information.";;
13324   --help | --hel | -h )
13325     $as_echo "$ac_cs_usage"; exit ;;
13326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13327   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13328     ac_cs_silent=: ;;
13329
13330   # This is an error.
13331   -*) as_fn_error "unrecognized option: \`$1'
13332 Try \`$0 --help' for more information." ;;
13333
13334   *) as_fn_append ac_config_targets " $1"
13335      ac_need_defaults=false ;;
13336
13337   esac
13338   shift
13339 done
13340
13341 ac_configure_extra_args=
13342
13343 if $ac_cs_silent; then
13344   exec 6>/dev/null
13345   ac_configure_extra_args="$ac_configure_extra_args --silent"
13346 fi
13347
13348 _ACEOF
13349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13350 if \$ac_cs_recheck; then
13351   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13352   shift
13353   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13354   CONFIG_SHELL='$SHELL'
13355   export CONFIG_SHELL
13356   exec "\$@"
13357 fi
13358
13359 _ACEOF
13360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13361 exec 5>>config.log
13362 {
13363   echo
13364   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13365 ## Running $as_me. ##
13366 _ASBOX
13367   $as_echo "$ac_log"
13368 } >&5
13369
13370 _ACEOF
13371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13372 #
13373 # INIT-COMMANDS
13374 #
13375 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13376
13377
13378 # The HP-UX ksh and POSIX shell print the target directory to stdout
13379 # if CDPATH is set.
13380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13381
13382 sed_quote_subst='$sed_quote_subst'
13383 double_quote_subst='$double_quote_subst'
13384 delay_variable_subst='$delay_variable_subst'
13385 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13386 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13387 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13388 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13389 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13390 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13391 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13392 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13393 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13394 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13395 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13396 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13397 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13398 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13399 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13400 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13401 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13402 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13403 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13404 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13405 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13406 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13407 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13408 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13409 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13410 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13411 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13412 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13413 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13414 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13415 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13416 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13417 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13418 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13419 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13420 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13421 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13422 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13424 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13425 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13426 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13427 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13428 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13429 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13431 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13432 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13433 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13434 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13435 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13436 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13437 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13438 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13439 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13440 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13441 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13442 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13443 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13444 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13445 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13446 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13447 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13448 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13449 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13450 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13451 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13452 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13453 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13454 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13455 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13456 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13457 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13458 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13459 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13460 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13461 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13462 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13463 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13464 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13465 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13466 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13467 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13468 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13469 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13470 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13471 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13472 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13473 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13474 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13475 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13476 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13477 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13478 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13479 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13480 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13481 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13482 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13483 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13484 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13485 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13486 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13487 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13488 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13489 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13490 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13492 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13493 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13494 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13495 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13496 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13497 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13498 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13499 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13500 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13501 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13502 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13503
13504 LTCC='$LTCC'
13505 LTCFLAGS='$LTCFLAGS'
13506 compiler='$compiler_DEFAULT'
13507
13508 # Quote evaled strings.
13509 for var in SED \
13510 GREP \
13511 EGREP \
13512 FGREP \
13513 LD \
13514 NM \
13515 LN_S \
13516 lt_SP2NL \
13517 lt_NL2SP \
13518 reload_flag \
13519 OBJDUMP \
13520 deplibs_check_method \
13521 file_magic_cmd \
13522 AR \
13523 AR_FLAGS \
13524 STRIP \
13525 RANLIB \
13526 CC \
13527 CFLAGS \
13528 compiler \
13529 lt_cv_sys_global_symbol_pipe \
13530 lt_cv_sys_global_symbol_to_cdecl \
13531 lt_cv_sys_global_symbol_to_c_name_address \
13532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13533 SHELL \
13534 ECHO \
13535 lt_prog_compiler_no_builtin_flag \
13536 lt_prog_compiler_wl \
13537 lt_prog_compiler_pic \
13538 lt_prog_compiler_static \
13539 lt_cv_prog_compiler_c_o \
13540 need_locks \
13541 DSYMUTIL \
13542 NMEDIT \
13543 LIPO \
13544 OTOOL \
13545 OTOOL64 \
13546 shrext_cmds \
13547 export_dynamic_flag_spec \
13548 whole_archive_flag_spec \
13549 compiler_needs_object \
13550 with_gnu_ld \
13551 allow_undefined_flag \
13552 no_undefined_flag \
13553 hardcode_libdir_flag_spec \
13554 hardcode_libdir_flag_spec_ld \
13555 hardcode_libdir_separator \
13556 fix_srcfile_path \
13557 exclude_expsyms \
13558 include_expsyms \
13559 file_list_spec \
13560 variables_saved_for_relink \
13561 libname_spec \
13562 library_names_spec \
13563 soname_spec \
13564 finish_eval \
13565 old_striplib \
13566 striplib; do
13567     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13568     *[\\\\\\\`\\"\\\$]*)
13569       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13570       ;;
13571     *)
13572       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13573       ;;
13574     esac
13575 done
13576
13577 # Double-quote double-evaled strings.
13578 for var in reload_cmds \
13579 old_postinstall_cmds \
13580 old_postuninstall_cmds \
13581 old_archive_cmds \
13582 extract_expsyms_cmds \
13583 old_archive_from_new_cmds \
13584 old_archive_from_expsyms_cmds \
13585 archive_cmds \
13586 archive_expsym_cmds \
13587 module_cmds \
13588 module_expsym_cmds \
13589 export_symbols_cmds \
13590 prelink_cmds \
13591 postinstall_cmds \
13592 postuninstall_cmds \
13593 finish_cmds \
13594 sys_lib_search_path_spec \
13595 sys_lib_dlsearch_path_spec; do
13596     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13597     *[\\\\\\\`\\"\\\$]*)
13598       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13599       ;;
13600     *)
13601       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13602       ;;
13603     esac
13604 done
13605
13606 # Fix-up fallback echo if it was mangled by the above quoting rules.
13607 case \$lt_ECHO in
13608 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13609   ;;
13610 esac
13611
13612 ac_aux_dir='$ac_aux_dir'
13613 xsi_shell='$xsi_shell'
13614 lt_shell_append='$lt_shell_append'
13615
13616 # See if we are running on zsh, and set the options which allow our
13617 # commands through without removal of \ escapes INIT.
13618 if test -n "\${ZSH_VERSION+set}" ; then
13619    setopt NO_GLOB_SUBST
13620 fi
13621
13622
13623     PACKAGE='$PACKAGE'
13624     VERSION='$VERSION'
13625     TIMESTAMP='$TIMESTAMP'
13626     RM='$RM'
13627     ofile='$ofile'
13628
13629
13630
13631 TARGETDIR="$TARGETDIR"
13632
13633 _ACEOF
13634
13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13636
13637 # Handling of arguments.
13638 for ac_config_target in $ac_config_targets
13639 do
13640   case $ac_config_target in
13641     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13642     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13643     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13644     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13645     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13646     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13647     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13648     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13649     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13650     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13651     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13652     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
13653
13654   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13655   esac
13656 done
13657
13658
13659 # If the user did not use the arguments to specify the items to instantiate,
13660 # then the envvar interface is used.  Set only those that are not.
13661 # We use the long form for the default assignment because of an extremely
13662 # bizarre bug on SunOS 4.1.3.
13663 if $ac_need_defaults; then
13664   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13665   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13666   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13668 fi
13669
13670 # Have a temporary directory for convenience.  Make it in the build tree
13671 # simply because there is no reason against having it here, and in addition,
13672 # creating and moving files from /tmp can sometimes cause problems.
13673 # Hook for its removal unless debugging.
13674 # Note that there is a small window in which the directory will not be cleaned:
13675 # after its creation but before its name has been assigned to `$tmp'.
13676 $debug ||
13677 {
13678   tmp=
13679   trap 'exit_status=$?
13680   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13681 ' 0
13682   trap 'as_fn_exit 1' 1 2 13 15
13683 }
13684 # Create a (secure) tmp directory for tmp files.
13685
13686 {
13687   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13688   test -n "$tmp" && test -d "$tmp"
13689 }  ||
13690 {
13691   tmp=./conf$$-$RANDOM
13692   (umask 077 && mkdir "$tmp")
13693 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13694
13695 # Set up the scripts for CONFIG_FILES section.
13696 # No need to generate them if there are no CONFIG_FILES.
13697 # This happens for instance with `./config.status config.h'.
13698 if test -n "$CONFIG_FILES"; then
13699
13700
13701 ac_cr=`echo X | tr X '\015'`
13702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13703 # But we know of no other shell where ac_cr would be empty at this
13704 # point, so we can use a bashism as a fallback.
13705 if test "x$ac_cr" = x; then
13706   eval ac_cr=\$\'\\r\'
13707 fi
13708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13710   ac_cs_awk_cr='\r'
13711 else
13712   ac_cs_awk_cr=$ac_cr
13713 fi
13714
13715 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13716 _ACEOF
13717
13718
13719 {
13720   echo "cat >conf$$subs.awk <<_ACEOF" &&
13721   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13722   echo "_ACEOF"
13723 } >conf$$subs.sh ||
13724   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13726 ac_delim='%!_!# '
13727 for ac_last_try in false false false false false :; do
13728   . ./conf$$subs.sh ||
13729     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13730
13731   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13732   if test $ac_delim_n = $ac_delim_num; then
13733     break
13734   elif $ac_last_try; then
13735     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13736   else
13737     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13738   fi
13739 done
13740 rm -f conf$$subs.sh
13741
13742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13744 _ACEOF
13745 sed -n '
13746 h
13747 s/^/S["/; s/!.*/"]=/
13748 p
13749 g
13750 s/^[^!]*!//
13751 :repl
13752 t repl
13753 s/'"$ac_delim"'$//
13754 t delim
13755 :nl
13756 h
13757 s/\(.\{148\}\)..*/\1/
13758 t more1
13759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13760 p
13761 n
13762 b repl
13763 :more1
13764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13765 p
13766 g
13767 s/.\{148\}//
13768 t nl
13769 :delim
13770 h
13771 s/\(.\{148\}\)..*/\1/
13772 t more2
13773 s/["\\]/\\&/g; s/^/"/; s/$/"/
13774 p
13775 b
13776 :more2
13777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13778 p
13779 g
13780 s/.\{148\}//
13781 t delim
13782 ' <conf$$subs.awk | sed '
13783 /^[^""]/{
13784   N
13785   s/\n//
13786 }
13787 ' >>$CONFIG_STATUS || ac_write_fail=1
13788 rm -f conf$$subs.awk
13789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13790 _ACAWK
13791 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13792   for (key in S) S_is_set[key] = 1
13793   FS = "\a"
13794
13795 }
13796 {
13797   line = $ 0
13798   nfields = split(line, field, "@")
13799   substed = 0
13800   len = length(field[1])
13801   for (i = 2; i < nfields; i++) {
13802     key = field[i]
13803     keylen = length(key)
13804     if (S_is_set[key]) {
13805       value = S[key]
13806       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13807       len += length(value) + length(field[++i])
13808       substed = 1
13809     } else
13810       len += 1 + keylen
13811   }
13812
13813   print line
13814 }
13815
13816 _ACAWK
13817 _ACEOF
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13820   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13821 else
13822   cat
13823 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13824   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13825 _ACEOF
13826
13827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13829 # trailing colons and then remove the whole line if VPATH becomes empty
13830 # (actually we leave an empty line to preserve line numbers).
13831 if test "x$srcdir" = x.; then
13832   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13833 s/:*\$(srcdir):*/:/
13834 s/:*\${srcdir}:*/:/
13835 s/:*@srcdir@:*/:/
13836 s/^\([^=]*=[     ]*\):*/\1/
13837 s/:*$//
13838 s/^[^=]*=[       ]*$//
13839 }'
13840 fi
13841
13842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843 fi # test -n "$CONFIG_FILES"
13844
13845 # Set up the scripts for CONFIG_HEADERS section.
13846 # No need to generate them if there are no CONFIG_HEADERS.
13847 # This happens for instance with `./config.status Makefile'.
13848 if test -n "$CONFIG_HEADERS"; then
13849 cat >"$tmp/defines.awk" <<\_ACAWK ||
13850 BEGIN {
13851 _ACEOF
13852
13853 # Transform confdefs.h into an awk script `defines.awk', embedded as
13854 # here-document in config.status, that substitutes the proper values into
13855 # config.h.in to produce config.h.
13856
13857 # Create a delimiter string that does not exist in confdefs.h, to ease
13858 # handling of long lines.
13859 ac_delim='%!_!# '
13860 for ac_last_try in false false :; do
13861   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13862   if test -z "$ac_t"; then
13863     break
13864   elif $ac_last_try; then
13865     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13866   else
13867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13868   fi
13869 done
13870
13871 # For the awk script, D is an array of macro values keyed by name,
13872 # likewise P contains macro parameters if any.  Preserve backslash
13873 # newline sequences.
13874
13875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13876 sed -n '
13877 s/.\{148\}/&'"$ac_delim"'/g
13878 t rset
13879 :rset
13880 s/^[     ]*#[    ]*define[       ][      ]*/ /
13881 t def
13882 d
13883 :def
13884 s/\\$//
13885 t bsnl
13886 s/["\\]/\\&/g
13887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13888 D["\1"]=" \3"/p
13889 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13890 d
13891 :bsnl
13892 s/["\\]/\\&/g
13893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13894 D["\1"]=" \3\\\\\\n"\\/p
13895 t cont
13896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13897 t cont
13898 d
13899 :cont
13900 n
13901 s/.\{148\}/&'"$ac_delim"'/g
13902 t clear
13903 :clear
13904 s/\\$//
13905 t bsnlc
13906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13907 d
13908 :bsnlc
13909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13910 b cont
13911 ' <confdefs.h | sed '
13912 s/'"$ac_delim"'/"\\\
13913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13914
13915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13916   for (key in D) D_is_set[key] = 1
13917   FS = "\a"
13918 }
13919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13920   line = \$ 0
13921   split(line, arg, " ")
13922   if (arg[1] == "#") {
13923     defundef = arg[2]
13924     mac1 = arg[3]
13925   } else {
13926     defundef = substr(arg[1], 2)
13927     mac1 = arg[2]
13928   }
13929   split(mac1, mac2, "(") #)
13930   macro = mac2[1]
13931   prefix = substr(line, 1, index(line, defundef) - 1)
13932   if (D_is_set[macro]) {
13933     # Preserve the white space surrounding the "#".
13934     print prefix "define", macro P[macro] D[macro]
13935     next
13936   } else {
13937     # Replace #undef with comments.  This is necessary, for example,
13938     # in the case of _POSIX_SOURCE, which is predefined and required
13939     # on some systems where configure will not decide to define it.
13940     if (defundef == "undef") {
13941       print "/*", prefix defundef, macro, "*/"
13942       next
13943     }
13944   }
13945 }
13946 { print }
13947 _ACAWK
13948 _ACEOF
13949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13950   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13951 fi # test -n "$CONFIG_HEADERS"
13952
13953
13954 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
13955 shift
13956 for ac_tag
13957 do
13958   case $ac_tag in
13959   :[FHLC]) ac_mode=$ac_tag; continue;;
13960   esac
13961   case $ac_mode$ac_tag in
13962   :[FHL]*:*);;
13963   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13964   :[FH]-) ac_tag=-:-;;
13965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13966   esac
13967   ac_save_IFS=$IFS
13968   IFS=:
13969   set x $ac_tag
13970   IFS=$ac_save_IFS
13971   shift
13972   ac_file=$1
13973   shift
13974
13975   case $ac_mode in
13976   :L) ac_source=$1;;
13977   :[FH])
13978     ac_file_inputs=
13979     for ac_f
13980     do
13981       case $ac_f in
13982       -) ac_f="$tmp/stdin";;
13983       *) # Look for the file first in the build tree, then in the source tree
13984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13985          # because $ac_f cannot contain `:'.
13986          test -f "$ac_f" ||
13987            case $ac_f in
13988            [\\/$]*) false;;
13989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13990            esac ||
13991            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13992       esac
13993       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13994       as_fn_append ac_file_inputs " '$ac_f'"
13995     done
13996
13997     # Let's still pretend it is `configure' which instantiates (i.e., don't
13998     # use $as_me), people would be surprised to read:
13999     #    /* config.h.  Generated by config.status.  */
14000     configure_input='Generated from '`
14001           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14002         `' by configure.'
14003     if test x"$ac_file" != x-; then
14004       configure_input="$ac_file.  $configure_input"
14005       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14006 $as_echo "$as_me: creating $ac_file" >&6;}
14007     fi
14008     # Neutralize special characters interpreted by sed in replacement strings.
14009     case $configure_input in #(
14010     *\&* | *\|* | *\\* )
14011        ac_sed_conf_input=`$as_echo "$configure_input" |
14012        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14013     *) ac_sed_conf_input=$configure_input;;
14014     esac
14015
14016     case $ac_tag in
14017     *:-:* | *:-) cat >"$tmp/stdin" \
14018       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14019     esac
14020     ;;
14021   esac
14022
14023   ac_dir=`$as_dirname -- "$ac_file" ||
14024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14025          X"$ac_file" : 'X\(//\)[^/]' \| \
14026          X"$ac_file" : 'X\(//\)$' \| \
14027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14028 $as_echo X"$ac_file" |
14029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14030             s//\1/
14031             q
14032           }
14033           /^X\(\/\/\)[^/].*/{
14034             s//\1/
14035             q
14036           }
14037           /^X\(\/\/\)$/{
14038             s//\1/
14039             q
14040           }
14041           /^X\(\/\).*/{
14042             s//\1/
14043             q
14044           }
14045           s/.*/./; q'`
14046   as_dir="$ac_dir"; as_fn_mkdir_p
14047   ac_builddir=.
14048
14049 case "$ac_dir" in
14050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14051 *)
14052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14053   # A ".." for each directory in $ac_dir_suffix.
14054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14055   case $ac_top_builddir_sub in
14056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14058   esac ;;
14059 esac
14060 ac_abs_top_builddir=$ac_pwd
14061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14062 # for backward compatibility:
14063 ac_top_builddir=$ac_top_build_prefix
14064
14065 case $srcdir in
14066   .)  # We are building in place.
14067     ac_srcdir=.
14068     ac_top_srcdir=$ac_top_builddir_sub
14069     ac_abs_top_srcdir=$ac_pwd ;;
14070   [\\/]* | ?:[\\/]* )  # Absolute name.
14071     ac_srcdir=$srcdir$ac_dir_suffix;
14072     ac_top_srcdir=$srcdir
14073     ac_abs_top_srcdir=$srcdir ;;
14074   *) # Relative name.
14075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14076     ac_top_srcdir=$ac_top_build_prefix$srcdir
14077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14078 esac
14079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14080
14081
14082   case $ac_mode in
14083   :F)
14084   #
14085   # CONFIG_FILE
14086   #
14087
14088   case $INSTALL in
14089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14090   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14091   esac
14092   ac_MKDIR_P=$MKDIR_P
14093   case $MKDIR_P in
14094   [\\/$]* | ?:[\\/]* ) ;;
14095   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14096   esac
14097 _ACEOF
14098
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # If the template does not know about datarootdir, expand it.
14101 # FIXME: This hack should be removed a few years after 2.60.
14102 ac_datarootdir_hack=; ac_datarootdir_seen=
14103 ac_sed_dataroot='
14104 /datarootdir/ {
14105   p
14106   q
14107 }
14108 /@datadir@/p
14109 /@docdir@/p
14110 /@infodir@/p
14111 /@localedir@/p
14112 /@mandir@/p'
14113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14114 *datarootdir*) ac_datarootdir_seen=yes;;
14115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14118 _ACEOF
14119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120   ac_datarootdir_hack='
14121   s&@datadir@&$datadir&g
14122   s&@docdir@&$docdir&g
14123   s&@infodir@&$infodir&g
14124   s&@localedir@&$localedir&g
14125   s&@mandir@&$mandir&g
14126   s&\\\${datarootdir}&$datarootdir&g' ;;
14127 esac
14128 _ACEOF
14129
14130 # Neutralize VPATH when `$srcdir' = `.'.
14131 # Shell code in configure.ac might set extrasub.
14132 # FIXME: do we really want to maintain this feature?
14133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14134 ac_sed_extra="$ac_vpsub
14135 $extrasub
14136 _ACEOF
14137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138 :t
14139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14140 s|@configure_input@|$ac_sed_conf_input|;t t
14141 s&@top_builddir@&$ac_top_builddir_sub&;t t
14142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14143 s&@srcdir@&$ac_srcdir&;t t
14144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14145 s&@top_srcdir@&$ac_top_srcdir&;t t
14146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14147 s&@builddir@&$ac_builddir&;t t
14148 s&@abs_builddir@&$ac_abs_builddir&;t t
14149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14150 s&@INSTALL@&$ac_INSTALL&;t t
14151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14152 $ac_datarootdir_hack
14153 "
14154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14155   || as_fn_error "could not create $ac_file" "$LINENO" 5
14156
14157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14158   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14161 which seems to be undefined.  Please make sure it is defined." >&5
14162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14163 which seems to be undefined.  Please make sure it is defined." >&2;}
14164
14165   rm -f "$tmp/stdin"
14166   case $ac_file in
14167   -) cat "$tmp/out" && rm -f "$tmp/out";;
14168   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14169   esac \
14170   || as_fn_error "could not create $ac_file" "$LINENO" 5
14171  ;;
14172   :H)
14173   #
14174   # CONFIG_HEADER
14175   #
14176   if test x"$ac_file" != x-; then
14177     {
14178       $as_echo "/* $configure_input  */" \
14179       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14180     } >"$tmp/config.h" \
14181       || as_fn_error "could not create $ac_file" "$LINENO" 5
14182     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14185     else
14186       rm -f "$ac_file"
14187       mv "$tmp/config.h" "$ac_file" \
14188         || as_fn_error "could not create $ac_file" "$LINENO" 5
14189     fi
14190   else
14191     $as_echo "/* $configure_input  */" \
14192       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14193       || as_fn_error "could not create -" "$LINENO" 5
14194   fi
14195 # Compute "$ac_file"'s index in $config_headers.
14196 _am_arg="$ac_file"
14197 _am_stamp_count=1
14198 for _am_header in $config_headers :; do
14199   case $_am_header in
14200     $_am_arg | $_am_arg:* )
14201       break ;;
14202     * )
14203       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14204   esac
14205 done
14206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14208          X"$_am_arg" : 'X\(//\)[^/]' \| \
14209          X"$_am_arg" : 'X\(//\)$' \| \
14210          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14211 $as_echo X"$_am_arg" |
14212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14213             s//\1/
14214             q
14215           }
14216           /^X\(\/\/\)[^/].*/{
14217             s//\1/
14218             q
14219           }
14220           /^X\(\/\/\)$/{
14221             s//\1/
14222             q
14223           }
14224           /^X\(\/\).*/{
14225             s//\1/
14226             q
14227           }
14228           s/.*/./; q'`/stamp-h$_am_stamp_count
14229  ;;
14230   :L)
14231   #
14232   # CONFIG_LINK
14233   #
14234
14235   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14236     :
14237   else
14238     # Prefer the file from the source tree if names are identical.
14239     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14240       ac_source=$srcdir/$ac_source
14241     fi
14242
14243     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14244 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14245
14246     if test ! -r "$ac_source"; then
14247       as_fn_error "$ac_source: file not found" "$LINENO" 5
14248     fi
14249     rm -f "$ac_file"
14250
14251     # Try a relative symlink, then a hard link, then a copy.
14252     case $srcdir in
14253     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14254         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14255     esac
14256     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14257       ln "$ac_source" "$ac_file" 2>/dev/null ||
14258       cp -p "$ac_source" "$ac_file" ||
14259       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14260   fi
14261  ;;
14262   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14263 $as_echo "$as_me: executing $ac_file commands" >&6;}
14264  ;;
14265   esac
14266
14267
14268   case $ac_file$ac_mode in
14269     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14270   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14271   # are listed without --file.  Let's play safe and only enable the eval
14272   # if we detect the quoting.
14273   case $CONFIG_FILES in
14274   *\'*) eval set x "$CONFIG_FILES" ;;
14275   *)   set x $CONFIG_FILES ;;
14276   esac
14277   shift
14278   for mf
14279   do
14280     # Strip MF so we end up with the name of the file.
14281     mf=`echo "$mf" | sed -e 's/:.*$//'`
14282     # Check whether this is an Automake generated Makefile or not.
14283     # We used to match only the files named `Makefile.in', but
14284     # some people rename them; so instead we look at the file content.
14285     # Grep'ing the first line is not enough: some people post-process
14286     # each Makefile.in and add a new line on top of each file to say so.
14287     # Grep'ing the whole file is not good either: AIX grep has a line
14288     # limit of 2048, but all sed's we know have understand at least 4000.
14289     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14290       dirpart=`$as_dirname -- "$mf" ||
14291 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14292          X"$mf" : 'X\(//\)[^/]' \| \
14293          X"$mf" : 'X\(//\)$' \| \
14294          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14295 $as_echo X"$mf" |
14296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14297             s//\1/
14298             q
14299           }
14300           /^X\(\/\/\)[^/].*/{
14301             s//\1/
14302             q
14303           }
14304           /^X\(\/\/\)$/{
14305             s//\1/
14306             q
14307           }
14308           /^X\(\/\).*/{
14309             s//\1/
14310             q
14311           }
14312           s/.*/./; q'`
14313     else
14314       continue
14315     fi
14316     # Extract the definition of DEPDIR, am__include, and am__quote
14317     # from the Makefile without running `make'.
14318     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14319     test -z "$DEPDIR" && continue
14320     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14321     test -z "am__include" && continue
14322     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14323     # When using ansi2knr, U may be empty or an underscore; expand it
14324     U=`sed -n 's/^U = //p' < "$mf"`
14325     # Find all dependency output files, they are included files with
14326     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14327     # simplest approach to changing $(DEPDIR) to its actual value in the
14328     # expansion.
14329     for file in `sed -n "
14330       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14331          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14332       # Make sure the directory exists.
14333       test -f "$dirpart/$file" && continue
14334       fdir=`$as_dirname -- "$file" ||
14335 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14336          X"$file" : 'X\(//\)[^/]' \| \
14337          X"$file" : 'X\(//\)$' \| \
14338          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14339 $as_echo X"$file" |
14340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14341             s//\1/
14342             q
14343           }
14344           /^X\(\/\/\)[^/].*/{
14345             s//\1/
14346             q
14347           }
14348           /^X\(\/\/\)$/{
14349             s//\1/
14350             q
14351           }
14352           /^X\(\/\).*/{
14353             s//\1/
14354             q
14355           }
14356           s/.*/./; q'`
14357       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14358       # echo "creating $dirpart/$file"
14359       echo '# dummy' > "$dirpart/$file"
14360     done
14361   done
14362 }
14363  ;;
14364     "libtool":C)
14365
14366     # See if we are running on zsh, and set the options which allow our
14367     # commands through without removal of \ escapes.
14368     if test -n "${ZSH_VERSION+set}" ; then
14369       setopt NO_GLOB_SUBST
14370     fi
14371
14372     cfgfile="${ofile}T"
14373     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14374     $RM "$cfgfile"
14375
14376     cat <<_LT_EOF >> "$cfgfile"
14377 #! $SHELL
14378
14379 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14380 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14382 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14383 #
14384 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14385 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14386 #   Written by Gordon Matzigkeit, 1996
14387 #
14388 #   This file is part of GNU Libtool.
14389 #
14390 # GNU Libtool is free software; you can redistribute it and/or
14391 # modify it under the terms of the GNU General Public License as
14392 # published by the Free Software Foundation; either version 2 of
14393 # the License, or (at your option) any later version.
14394 #
14395 # As a special exception to the GNU General Public License,
14396 # if you distribute this file as part of a program or library that
14397 # is built using GNU Libtool, you may include this file under the
14398 # same distribution terms that you use for the rest of that program.
14399 #
14400 # GNU Libtool is distributed in the hope that it will be useful,
14401 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14403 # GNU General Public License for more details.
14404 #
14405 # You should have received a copy of the GNU General Public License
14406 # along with GNU Libtool; see the file COPYING.  If not, a copy
14407 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14408 # obtained by writing to the Free Software Foundation, Inc.,
14409 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14410
14411
14412 # The names of the tagged configurations supported by this script.
14413 available_tags=""
14414
14415 # ### BEGIN LIBTOOL CONFIG
14416
14417 # Which release of libtool.m4 was used?
14418 macro_version=$macro_version
14419 macro_revision=$macro_revision
14420
14421 # Whether or not to build shared libraries.
14422 build_libtool_libs=$enable_shared
14423
14424 # Whether or not to build static libraries.
14425 build_old_libs=$enable_static
14426
14427 # What type of objects to build.
14428 pic_mode=$pic_mode
14429
14430 # Whether or not to optimize for fast installation.
14431 fast_install=$enable_fast_install
14432
14433 # The host system.
14434 host_alias=$host_alias
14435 host=$host
14436 host_os=$host_os
14437
14438 # The build system.
14439 build_alias=$build_alias
14440 build=$build
14441 build_os=$build_os
14442
14443 # A sed program that does not truncate output.
14444 SED=$lt_SED
14445
14446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14447 Xsed="\$SED -e 1s/^X//"
14448
14449 # A grep program that handles long lines.
14450 GREP=$lt_GREP
14451
14452 # An ERE matcher.
14453 EGREP=$lt_EGREP
14454
14455 # A literal string matcher.
14456 FGREP=$lt_FGREP
14457
14458 # A BSD- or MS-compatible name lister.
14459 NM=$lt_NM
14460
14461 # Whether we need soft or hard links.
14462 LN_S=$lt_LN_S
14463
14464 # What is the maximum length of a command?
14465 max_cmd_len=$max_cmd_len
14466
14467 # Object file suffix (normally "o").
14468 objext=$ac_objext
14469
14470 # Executable file suffix (normally "").
14471 exeext=$exeext
14472
14473 # whether the shell understands "unset".
14474 lt_unset=$lt_unset
14475
14476 # turn spaces into newlines.
14477 SP2NL=$lt_lt_SP2NL
14478
14479 # turn newlines into spaces.
14480 NL2SP=$lt_lt_NL2SP
14481
14482 # How to create reloadable object files.
14483 reload_flag=$lt_reload_flag
14484 reload_cmds=$lt_reload_cmds
14485
14486 # An object symbol dumper.
14487 OBJDUMP=$lt_OBJDUMP
14488
14489 # Method to check whether dependent libraries are shared objects.
14490 deplibs_check_method=$lt_deplibs_check_method
14491
14492 # Command to use when deplibs_check_method == "file_magic".
14493 file_magic_cmd=$lt_file_magic_cmd
14494
14495 # The archiver.
14496 AR=$lt_AR
14497 AR_FLAGS=$lt_AR_FLAGS
14498
14499 # A symbol stripping program.
14500 STRIP=$lt_STRIP
14501
14502 # Commands used to install an old-style archive.
14503 RANLIB=$lt_RANLIB
14504 old_postinstall_cmds=$lt_old_postinstall_cmds
14505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14506
14507 # A C compiler.
14508 LTCC=$lt_CC
14509
14510 # LTCC compiler flags.
14511 LTCFLAGS=$lt_CFLAGS
14512
14513 # Take the output of nm and produce a listing of raw symbols and C names.
14514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14515
14516 # Transform the output of nm in a proper C declaration.
14517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14518
14519 # Transform the output of nm in a C name address pair.
14520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14521
14522 # Transform the output of nm in a C name address pair when lib prefix is needed.
14523 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14524
14525 # The name of the directory that contains temporary libtool files.
14526 objdir=$objdir
14527
14528 # Shell to use when invoking shell scripts.
14529 SHELL=$lt_SHELL
14530
14531 # An echo program that does not interpret backslashes.
14532 ECHO=$lt_ECHO
14533
14534 # Used to examine libraries when file_magic_cmd begins with "file".
14535 MAGIC_CMD=$MAGIC_CMD
14536
14537 # Must we lock files when doing compilation?
14538 need_locks=$lt_need_locks
14539
14540 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14541 DSYMUTIL=$lt_DSYMUTIL
14542
14543 # Tool to change global to local symbols on Mac OS X.
14544 NMEDIT=$lt_NMEDIT
14545
14546 # Tool to manipulate fat objects and archives on Mac OS X.
14547 LIPO=$lt_LIPO
14548
14549 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14550 OTOOL=$lt_OTOOL
14551
14552 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14553 OTOOL64=$lt_OTOOL64
14554
14555 # Old archive suffix (normally "a").
14556 libext=$libext
14557
14558 # Shared library suffix (normally ".so").
14559 shrext_cmds=$lt_shrext_cmds
14560
14561 # The commands to extract the exported symbol list from a shared archive.
14562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14563
14564 # Variables whose values should be saved in libtool wrapper scripts and
14565 # restored at link time.
14566 variables_saved_for_relink=$lt_variables_saved_for_relink
14567
14568 # Do we need the "lib" prefix for modules?
14569 need_lib_prefix=$need_lib_prefix
14570
14571 # Do we need a version for libraries?
14572 need_version=$need_version
14573
14574 # Library versioning type.
14575 version_type=$version_type
14576
14577 # Shared library runtime path variable.
14578 runpath_var=$runpath_var
14579
14580 # Shared library path variable.
14581 shlibpath_var=$shlibpath_var
14582
14583 # Is shlibpath searched before the hard-coded library search path?
14584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14585
14586 # Format of library name prefix.
14587 libname_spec=$lt_libname_spec
14588
14589 # List of archive names.  First name is the real one, the rest are links.
14590 # The last name is the one that the linker finds with -lNAME
14591 library_names_spec=$lt_library_names_spec
14592
14593 # The coded name of the library, if different from the real name.
14594 soname_spec=$lt_soname_spec
14595
14596 # Command to use after installation of a shared archive.
14597 postinstall_cmds=$lt_postinstall_cmds
14598
14599 # Command to use after uninstallation of a shared archive.
14600 postuninstall_cmds=$lt_postuninstall_cmds
14601
14602 # Commands used to finish a libtool library installation in a directory.
14603 finish_cmds=$lt_finish_cmds
14604
14605 # As "finish_cmds", except a single script fragment to be evaled but
14606 # not shown.
14607 finish_eval=$lt_finish_eval
14608
14609 # Whether we should hardcode library paths into libraries.
14610 hardcode_into_libs=$hardcode_into_libs
14611
14612 # Compile-time system search path for libraries.
14613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14614
14615 # Run-time system search path for libraries.
14616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14617
14618 # Whether dlopen is supported.
14619 dlopen_support=$enable_dlopen
14620
14621 # Whether dlopen of programs is supported.
14622 dlopen_self=$enable_dlopen_self
14623
14624 # Whether dlopen of statically linked programs is supported.
14625 dlopen_self_static=$enable_dlopen_self_static
14626
14627 # Commands to strip libraries.
14628 old_striplib=$lt_old_striplib
14629 striplib=$lt_striplib
14630
14631
14632 # The linker used to build libraries.
14633 LD=$lt_LD
14634
14635 # Commands used to build an old-style archive.
14636 old_archive_cmds=$lt_old_archive_cmds
14637
14638 # A language specific compiler.
14639 CC=$lt_compiler
14640
14641 # Is the compiler the GNU compiler?
14642 with_gcc=$GCC
14643
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14646
14647 # How to pass a linker flag through the compiler.
14648 wl=$lt_lt_prog_compiler_wl
14649
14650 # Additional compiler flags for building library objects.
14651 pic_flag=$lt_lt_prog_compiler_pic
14652
14653 # Compiler flag to prevent dynamic linking.
14654 link_static_flag=$lt_lt_prog_compiler_static
14655
14656 # Does compiler simultaneously support -c and -o options?
14657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14658
14659 # Whether or not to add -lc for building shared libraries.
14660 build_libtool_need_lc=$archive_cmds_need_lc
14661
14662 # Whether or not to disallow shared libs when runtime libs are static.
14663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14664
14665 # Compiler flag to allow reflexive dlopens.
14666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14667
14668 # Compiler flag to generate shared objects directly from archives.
14669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14670
14671 # Whether the compiler copes with passing no objects directly.
14672 compiler_needs_object=$lt_compiler_needs_object
14673
14674 # Create an old-style archive from a shared archive.
14675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14676
14677 # Create a temporary old-style archive to link instead of a shared archive.
14678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14679
14680 # Commands used to build a shared archive.
14681 archive_cmds=$lt_archive_cmds
14682 archive_expsym_cmds=$lt_archive_expsym_cmds
14683
14684 # Commands used to build a loadable module if different from building
14685 # a shared archive.
14686 module_cmds=$lt_module_cmds
14687 module_expsym_cmds=$lt_module_expsym_cmds
14688
14689 # Whether we are building with GNU ld or not.
14690 with_gnu_ld=$lt_with_gnu_ld
14691
14692 # Flag that allows shared libraries with undefined symbols to be built.
14693 allow_undefined_flag=$lt_allow_undefined_flag
14694
14695 # Flag that enforces no undefined symbols.
14696 no_undefined_flag=$lt_no_undefined_flag
14697
14698 # Flag to hardcode \$libdir into a binary during linking.
14699 # This must work even if \$libdir does not exist
14700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14701
14702 # If ld is used when linking, flag to hardcode \$libdir into a binary
14703 # during linking.  This must work even if \$libdir does not exist.
14704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14705
14706 # Whether we need a single "-rpath" flag with a separated argument.
14707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14708
14709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14710 # DIR into the resulting binary.
14711 hardcode_direct=$hardcode_direct
14712
14713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14714 # DIR into the resulting binary and the resulting library dependency is
14715 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14716 # library is relocated.
14717 hardcode_direct_absolute=$hardcode_direct_absolute
14718
14719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14720 # into the resulting binary.
14721 hardcode_minus_L=$hardcode_minus_L
14722
14723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14724 # into the resulting binary.
14725 hardcode_shlibpath_var=$hardcode_shlibpath_var
14726
14727 # Set to "yes" if building a shared library automatically hardcodes DIR
14728 # into the library and all subsequent libraries and executables linked
14729 # against it.
14730 hardcode_automatic=$hardcode_automatic
14731
14732 # Set to yes if linker adds runtime paths of dependent libraries
14733 # to runtime path list.
14734 inherit_rpath=$inherit_rpath
14735
14736 # Whether libtool must link a program against all its dependency libraries.
14737 link_all_deplibs=$link_all_deplibs
14738
14739 # Fix the shell variable \$srcfile for the compiler.
14740 fix_srcfile_path=$lt_fix_srcfile_path
14741
14742 # Set to "yes" if exported symbols are required.
14743 always_export_symbols=$always_export_symbols
14744
14745 # The commands to list exported symbols.
14746 export_symbols_cmds=$lt_export_symbols_cmds
14747
14748 # Symbols that should not be listed in the preloaded symbols.
14749 exclude_expsyms=$lt_exclude_expsyms
14750
14751 # Symbols that must always be exported.
14752 include_expsyms=$lt_include_expsyms
14753
14754 # Commands necessary for linking programs (against libraries) with templates.
14755 prelink_cmds=$lt_prelink_cmds
14756
14757 # Specify filename containing input files.
14758 file_list_spec=$lt_file_list_spec
14759
14760 # How to hardcode a shared library path into an executable.
14761 hardcode_action=$hardcode_action
14762
14763 # ### END LIBTOOL CONFIG
14764
14765 _LT_EOF
14766
14767   case $host_os in
14768   aix3*)
14769     cat <<\_LT_EOF >> "$cfgfile"
14770 # AIX sometimes has problems with the GCC collect2 program.  For some
14771 # reason, if we set the COLLECT_NAMES environment variable, the problems
14772 # vanish in a puff of smoke.
14773 if test "X${COLLECT_NAMES+set}" != Xset; then
14774   COLLECT_NAMES=
14775   export COLLECT_NAMES
14776 fi
14777 _LT_EOF
14778     ;;
14779   esac
14780
14781
14782 ltmain="$ac_aux_dir/ltmain.sh"
14783
14784
14785   # We use sed instead of cat because bash on DJGPP gets confused if
14786   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14787   # text mode, it properly converts lines to CR/LF.  This bash problem
14788   # is reportedly fixed, but why not run on old versions too?
14789   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14790     || (rm -f "$cfgfile"; exit 1)
14791
14792   case $xsi_shell in
14793   yes)
14794     cat << \_LT_EOF >> "$cfgfile"
14795
14796 # func_dirname file append nondir_replacement
14797 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14798 # otherwise set result to NONDIR_REPLACEMENT.
14799 func_dirname ()
14800 {
14801   case ${1} in
14802     */*) func_dirname_result="${1%/*}${2}" ;;
14803     *  ) func_dirname_result="${3}" ;;
14804   esac
14805 }
14806
14807 # func_basename file
14808 func_basename ()
14809 {
14810   func_basename_result="${1##*/}"
14811 }
14812
14813 # func_dirname_and_basename file append nondir_replacement
14814 # perform func_basename and func_dirname in a single function
14815 # call:
14816 #   dirname:  Compute the dirname of FILE.  If nonempty,
14817 #             add APPEND to the result, otherwise set result
14818 #             to NONDIR_REPLACEMENT.
14819 #             value returned in "$func_dirname_result"
14820 #   basename: Compute filename of FILE.
14821 #             value retuned in "$func_basename_result"
14822 # Implementation must be kept synchronized with func_dirname
14823 # and func_basename. For efficiency, we do not delegate to
14824 # those functions but instead duplicate the functionality here.
14825 func_dirname_and_basename ()
14826 {
14827   case ${1} in
14828     */*) func_dirname_result="${1%/*}${2}" ;;
14829     *  ) func_dirname_result="${3}" ;;
14830   esac
14831   func_basename_result="${1##*/}"
14832 }
14833
14834 # func_stripname prefix suffix name
14835 # strip PREFIX and SUFFIX off of NAME.
14836 # PREFIX and SUFFIX must not contain globbing or regex special
14837 # characters, hashes, percent signs, but SUFFIX may contain a leading
14838 # dot (in which case that matches only a dot).
14839 func_stripname ()
14840 {
14841   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14842   # positional parameters, so assign one to ordinary parameter first.
14843   func_stripname_result=${3}
14844   func_stripname_result=${func_stripname_result#"${1}"}
14845   func_stripname_result=${func_stripname_result%"${2}"}
14846 }
14847
14848 # func_opt_split
14849 func_opt_split ()
14850 {
14851   func_opt_split_opt=${1%%=*}
14852   func_opt_split_arg=${1#*=}
14853 }
14854
14855 # func_lo2o object
14856 func_lo2o ()
14857 {
14858   case ${1} in
14859     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14860     *)    func_lo2o_result=${1} ;;
14861   esac
14862 }
14863
14864 # func_xform libobj-or-source
14865 func_xform ()
14866 {
14867   func_xform_result=${1%.*}.lo
14868 }
14869
14870 # func_arith arithmetic-term...
14871 func_arith ()
14872 {
14873   func_arith_result=$(( $* ))
14874 }
14875
14876 # func_len string
14877 # STRING may not start with a hyphen.
14878 func_len ()
14879 {
14880   func_len_result=${#1}
14881 }
14882
14883 _LT_EOF
14884     ;;
14885   *) # Bourne compatible functions.
14886     cat << \_LT_EOF >> "$cfgfile"
14887
14888 # func_dirname file append nondir_replacement
14889 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14890 # otherwise set result to NONDIR_REPLACEMENT.
14891 func_dirname ()
14892 {
14893   # Extract subdirectory from the argument.
14894   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14895   if test "X$func_dirname_result" = "X${1}"; then
14896     func_dirname_result="${3}"
14897   else
14898     func_dirname_result="$func_dirname_result${2}"
14899   fi
14900 }
14901
14902 # func_basename file
14903 func_basename ()
14904 {
14905   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14906 }
14907
14908
14909 # func_stripname prefix suffix name
14910 # strip PREFIX and SUFFIX off of NAME.
14911 # PREFIX and SUFFIX must not contain globbing or regex special
14912 # characters, hashes, percent signs, but SUFFIX may contain a leading
14913 # dot (in which case that matches only a dot).
14914 # func_strip_suffix prefix name
14915 func_stripname ()
14916 {
14917   case ${2} in
14918     .*) func_stripname_result=`$ECHO "X${3}" \
14919            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14920     *)  func_stripname_result=`$ECHO "X${3}" \
14921            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14922   esac
14923 }
14924
14925 # sed scripts:
14926 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14927 my_sed_long_arg='1s/^-[^=]*=//'
14928
14929 # func_opt_split
14930 func_opt_split ()
14931 {
14932   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14933   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14934 }
14935
14936 # func_lo2o object
14937 func_lo2o ()
14938 {
14939   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14940 }
14941
14942 # func_xform libobj-or-source
14943 func_xform ()
14944 {
14945   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14946 }
14947
14948 # func_arith arithmetic-term...
14949 func_arith ()
14950 {
14951   func_arith_result=`expr "$@"`
14952 }
14953
14954 # func_len string
14955 # STRING may not start with a hyphen.
14956 func_len ()
14957 {
14958   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14959 }
14960
14961 _LT_EOF
14962 esac
14963
14964 case $lt_shell_append in
14965   yes)
14966     cat << \_LT_EOF >> "$cfgfile"
14967
14968 # func_append var value
14969 # Append VALUE to the end of shell variable VAR.
14970 func_append ()
14971 {
14972   eval "$1+=\$2"
14973 }
14974 _LT_EOF
14975     ;;
14976   *)
14977     cat << \_LT_EOF >> "$cfgfile"
14978
14979 # func_append var value
14980 # Append VALUE to the end of shell variable VAR.
14981 func_append ()
14982 {
14983   eval "$1=\$$1\$2"
14984 }
14985
14986 _LT_EOF
14987     ;;
14988   esac
14989
14990
14991   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14992     || (rm -f "$cfgfile"; exit 1)
14993
14994   mv -f "$cfgfile" "$ofile" ||
14995     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14996   chmod +x "$ofile"
14997
14998  ;;
14999     "include":C) test -d include || mkdir include ;;
15000     "src":C)
15001 test -d src || mkdir src
15002 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15003  ;;
15004
15005   esac
15006 done # for ac_tag
15007
15008
15009 as_fn_exit 0
15010 _ACEOF
15011 ac_clean_files=$ac_clean_files_save
15012
15013 test $ac_write_fail = 0 ||
15014   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15015
15016
15017 # configure is writing to config.log, and then calls config.status.
15018 # config.status does its own redirection, appending to config.log.
15019 # Unfortunately, on DOS this fails, as config.log is still kept open
15020 # by configure, so config.status won't be able to write to it; its
15021 # output is simply discarded.  So we exec the FD to /dev/null,
15022 # effectively closing config.log, so it can be properly (re)opened and
15023 # appended to by config.status.  When coming back to configure, we
15024 # need to make the FD available again.
15025 if test "$no_create" != yes; then
15026   ac_cs_success=:
15027   ac_config_status_args=
15028   test "$silent" = yes &&
15029     ac_config_status_args="$ac_config_status_args --quiet"
15030   exec 5>/dev/null
15031   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15032   exec 5>>config.log
15033   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15034   # would make configure fail if this is the last instruction.
15035   $ac_cs_success || as_fn_exit $?
15036 fi
15037 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15038   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15039 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15040 fi
15041