Rebase
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.10rc0.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libffi'
747 PACKAGE_TARNAME='libffi'
748 PACKAGE_VERSION='3.0.10rc0'
749 PACKAGE_STRING='libffi 3.0.10rc0'
750 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
751
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 toolexeclibdir
793 toolexecdir
794 FFI_DEBUG_FALSE
795 FFI_DEBUG_TRUE
796 TARGETDIR
797 TARGET
798 HAVE_LONG_DOUBLE
799 ALLOCA
800 PA64_HPUX_FALSE
801 PA64_HPUX_TRUE
802 PA_HPUX_FALSE
803 PA_HPUX_TRUE
804 PA_LINUX_FALSE
805 PA_LINUX_TRUE
806 SH64_FALSE
807 SH64_TRUE
808 SH_FALSE
809 SH_TRUE
810 X86_64_FALSE
811 X86_64_TRUE
812 S390_FALSE
813 S390_TRUE
814 FRV_FALSE
815 FRV_TRUE
816 LIBFFI_CRIS_FALSE
817 LIBFFI_CRIS_TRUE
818 AVR32_FALSE
819 AVR32_TRUE
820 ARM_FALSE
821 ARM_TRUE
822 POWERPC_FREEBSD_FALSE
823 POWERPC_FREEBSD_TRUE
824 POWERPC_DARWIN_FALSE
825 POWERPC_DARWIN_TRUE
826 POWERPC_AIX_FALSE
827 POWERPC_AIX_TRUE
828 POWERPC_FALSE
829 POWERPC_TRUE
830 MOXIE_FALSE
831 MOXIE_TRUE
832 M68K_FALSE
833 M68K_TRUE
834 M32R_FALSE
835 M32R_TRUE
836 IA64_FALSE
837 IA64_TRUE
838 ALPHA_FALSE
839 ALPHA_TRUE
840 X86_DARWIN_FALSE
841 X86_DARWIN_TRUE
842 X86_WIN64_FALSE
843 X86_WIN64_TRUE
844 X86_WIN32_FALSE
845 X86_WIN32_TRUE
846 X86_FREEBSD_FALSE
847 X86_FREEBSD_TRUE
848 X86_FALSE
849 X86_TRUE
850 SPARC_FALSE
851 SPARC_TRUE
852 MIPS_FALSE
853 MIPS_TRUE
854 AM_LTLDFLAGS
855 AM_RUNTESTFLAGS
856 TESTSUBDIR_FALSE
857 TESTSUBDIR_TRUE
858 MAINT
859 MAINTAINER_MODE_FALSE
860 MAINTAINER_MODE_TRUE
861 CPP
862 OTOOL64
863 OTOOL
864 LIPO
865 NMEDIT
866 DSYMUTIL
867 lt_ECHO
868 RANLIB
869 AR
870 OBJDUMP
871 LN_S
872 NM
873 ac_ct_DUMPBIN
874 DUMPBIN
875 LD
876 FGREP
877 EGREP
878 GREP
879 SED
880 LIBTOOL
881 am__fastdepCCAS_FALSE
882 am__fastdepCCAS_TRUE
883 CCASDEPMODE
884 CCASFLAGS
885 CCAS
886 am__fastdepCC_FALSE
887 am__fastdepCC_TRUE
888 CCDEPMODE
889 AMDEPBACKSLASH
890 AMDEP_FALSE
891 AMDEP_TRUE
892 am__quote
893 am__include
894 DEPDIR
895 OBJEXT
896 EXEEXT
897 ac_ct_CC
898 CPPFLAGS
899 LDFLAGS
900 CFLAGS
901 CC
902 am__untar
903 am__tar
904 AMTAR
905 am__leading_dot
906 SET_MAKE
907 AWK
908 mkdir_p
909 MKDIR_P
910 INSTALL_STRIP_PROGRAM
911 STRIP
912 install_sh
913 MAKEINFO
914 AUTOHEADER
915 AUTOMAKE
916 AUTOCONF
917 ACLOCAL
918 VERSION
919 PACKAGE
920 CYGPATH_W
921 am__isrc
922 INSTALL_DATA
923 INSTALL_SCRIPT
924 INSTALL_PROGRAM
925 target_os
926 target_vendor
927 target_cpu
928 target
929 host_os
930 host_vendor
931 host_cpu
932 host
933 build_os
934 build_vendor
935 build_cpu
936 build
937 target_alias
938 host_alias
939 build_alias
940 LIBS
941 ECHO_T
942 ECHO_N
943 ECHO_C
944 DEFS
945 mandir
946 localedir
947 libdir
948 psdir
949 pdfdir
950 dvidir
951 htmldir
952 infodir
953 docdir
954 oldincludedir
955 includedir
956 localstatedir
957 sharedstatedir
958 sysconfdir
959 datadir
960 datarootdir
961 libexecdir
962 sbindir
963 bindir
964 program_transform_name
965 prefix
966 exec_prefix
967 PACKAGE_BUGREPORT
968 PACKAGE_STRING
969 PACKAGE_VERSION
970 PACKAGE_TARNAME
971 PACKAGE_NAME
972 PATH_SEPARATOR
973 SHELL'
974 ac_subst_files=''
975 ac_user_opts='
976 enable_option_checking
977 enable_dependency_tracking
978 enable_shared
979 enable_static
980 with_pic
981 enable_fast_install
982 with_gnu_ld
983 enable_libtool_lock
984 enable_maintainer_mode
985 enable_debug
986 enable_structs
987 enable_raw_api
988 enable_purify_safety
989 '
990       ac_precious_vars='build_alias
991 host_alias
992 target_alias
993 CCAS
994 CCASFLAGS
995 CPP
996 CPPFLAGS'
997
998
999 # Initialize some variables set by options.
1000 ac_init_help=
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1007 exec_prefix=NONE
1008 no_create=
1009 no_recursion=
1010 prefix=NONE
1011 program_prefix=NONE
1012 program_suffix=NONE
1013 program_transform_name=s,x,x,
1014 silent=
1015 site=
1016 srcdir=
1017 verbose=
1018 x_includes=NONE
1019 x_libraries=NONE
1020
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1039 htmldir='${docdir}'
1040 dvidir='${docdir}'
1041 pdfdir='${docdir}'
1042 psdir='${docdir}'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1046
1047 ac_prev=
1048 ac_dashdash=
1049 for ac_option
1050 do
1051   # If the previous option needs an argument, assign it.
1052   if test -n "$ac_prev"; then
1053     eval $ac_prev=\$ac_option
1054     ac_prev=
1055     continue
1056   fi
1057
1058   case $ac_option in
1059   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060   *)    ac_optarg=yes ;;
1061   esac
1062
1063   # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065   case $ac_dashdash$ac_option in
1066   --)
1067     ac_dashdash=yes ;;
1068
1069   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070     ac_prev=bindir ;;
1071   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072     bindir=$ac_optarg ;;
1073
1074   -build | --build | --buil | --bui | --bu)
1075     ac_prev=build_alias ;;
1076   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077     build_alias=$ac_optarg ;;
1078
1079   -cache-file | --cache-file | --cache-fil | --cache-fi \
1080   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081     ac_prev=cache_file ;;
1082   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084     cache_file=$ac_optarg ;;
1085
1086   --config-cache | -C)
1087     cache_file=config.cache ;;
1088
1089   -datadir | --datadir | --datadi | --datad)
1090     ac_prev=datadir ;;
1091   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092     datadir=$ac_optarg ;;
1093
1094   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095   | --dataroo | --dataro | --datar)
1096     ac_prev=datarootdir ;;
1097   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099     datarootdir=$ac_optarg ;;
1100
1101   -disable-* | --disable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=no ;;
1117
1118   -docdir | --docdir | --docdi | --doc | --do)
1119     ac_prev=docdir ;;
1120   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121     docdir=$ac_optarg ;;
1122
1123   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124     ac_prev=dvidir ;;
1125   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126     dvidir=$ac_optarg ;;
1127
1128   -enable-* | --enable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133    { (exit 1); exit 1; }; }
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147   | --exec | --exe | --ex)
1148     ac_prev=exec_prefix ;;
1149   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151   | --exec=* | --exe=* | --ex=*)
1152     exec_prefix=$ac_optarg ;;
1153
1154   -gas | --gas | --ga | --g)
1155     # Obsolete; use --with-gas.
1156     with_gas=yes ;;
1157
1158   -help | --help | --hel | --he | -h)
1159     ac_init_help=long ;;
1160   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161     ac_init_help=recursive ;;
1162   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163     ac_init_help=short ;;
1164
1165   -host | --host | --hos | --ho)
1166     ac_prev=host_alias ;;
1167   -host=* | --host=* | --hos=* | --ho=*)
1168     host_alias=$ac_optarg ;;
1169
1170   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171     ac_prev=htmldir ;;
1172   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173   | --ht=*)
1174     htmldir=$ac_optarg ;;
1175
1176   -includedir | --includedir | --includedi | --included | --include \
1177   | --includ | --inclu | --incl | --inc)
1178     ac_prev=includedir ;;
1179   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180   | --includ=* | --inclu=* | --incl=* | --inc=*)
1181     includedir=$ac_optarg ;;
1182
1183   -infodir | --infodir | --infodi | --infod | --info | --inf)
1184     ac_prev=infodir ;;
1185   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186     infodir=$ac_optarg ;;
1187
1188   -libdir | --libdir | --libdi | --libd)
1189     ac_prev=libdir ;;
1190   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191     libdir=$ac_optarg ;;
1192
1193   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194   | --libexe | --libex | --libe)
1195     ac_prev=libexecdir ;;
1196   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197   | --libexe=* | --libex=* | --libe=*)
1198     libexecdir=$ac_optarg ;;
1199
1200   -localedir | --localedir | --localedi | --localed | --locale)
1201     ac_prev=localedir ;;
1202   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203     localedir=$ac_optarg ;;
1204
1205   -localstatedir | --localstatedir | --localstatedi | --localstated \
1206   | --localstate | --localstat | --localsta | --localst | --locals)
1207     ac_prev=localstatedir ;;
1208   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210     localstatedir=$ac_optarg ;;
1211
1212   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213     ac_prev=mandir ;;
1214   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215     mandir=$ac_optarg ;;
1216
1217   -nfp | --nfp | --nf)
1218     # Obsolete; use --without-fp.
1219     with_fp=no ;;
1220
1221   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222   | --no-cr | --no-c | -n)
1223     no_create=yes ;;
1224
1225   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227     no_recursion=yes ;;
1228
1229   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231   | --oldin | --oldi | --old | --ol | --o)
1232     ac_prev=oldincludedir ;;
1233   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236     oldincludedir=$ac_optarg ;;
1237
1238   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239     ac_prev=prefix ;;
1240   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241     prefix=$ac_optarg ;;
1242
1243   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244   | --program-pre | --program-pr | --program-p)
1245     ac_prev=program_prefix ;;
1246   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248     program_prefix=$ac_optarg ;;
1249
1250   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251   | --program-suf | --program-su | --program-s)
1252     ac_prev=program_suffix ;;
1253   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255     program_suffix=$ac_optarg ;;
1256
1257   -program-transform-name | --program-transform-name \
1258   | --program-transform-nam | --program-transform-na \
1259   | --program-transform-n | --program-transform- \
1260   | --program-transform | --program-transfor \
1261   | --program-transfo | --program-transf \
1262   | --program-trans | --program-tran \
1263   | --progr-tra | --program-tr | --program-t)
1264     ac_prev=program_transform_name ;;
1265   -program-transform-name=* | --program-transform-name=* \
1266   | --program-transform-nam=* | --program-transform-na=* \
1267   | --program-transform-n=* | --program-transform-=* \
1268   | --program-transform=* | --program-transfor=* \
1269   | --program-transfo=* | --program-transf=* \
1270   | --program-trans=* | --program-tran=* \
1271   | --progr-tra=* | --program-tr=* | --program-t=*)
1272     program_transform_name=$ac_optarg ;;
1273
1274   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275     ac_prev=pdfdir ;;
1276   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277     pdfdir=$ac_optarg ;;
1278
1279   -psdir | --psdir | --psdi | --psd | --ps)
1280     ac_prev=psdir ;;
1281   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282     psdir=$ac_optarg ;;
1283
1284   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285   | -silent | --silent | --silen | --sile | --sil)
1286     silent=yes ;;
1287
1288   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289     ac_prev=sbindir ;;
1290   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291   | --sbi=* | --sb=*)
1292     sbindir=$ac_optarg ;;
1293
1294   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296   | --sharedst | --shareds | --shared | --share | --shar \
1297   | --sha | --sh)
1298     ac_prev=sharedstatedir ;;
1299   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302   | --sha=* | --sh=*)
1303     sharedstatedir=$ac_optarg ;;
1304
1305   -site | --site | --sit)
1306     ac_prev=site ;;
1307   -site=* | --site=* | --sit=*)
1308     site=$ac_optarg ;;
1309
1310   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311     ac_prev=srcdir ;;
1312   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313     srcdir=$ac_optarg ;;
1314
1315   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316   | --syscon | --sysco | --sysc | --sys | --sy)
1317     ac_prev=sysconfdir ;;
1318   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320     sysconfdir=$ac_optarg ;;
1321
1322   -target | --target | --targe | --targ | --tar | --ta | --t)
1323     ac_prev=target_alias ;;
1324   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325     target_alias=$ac_optarg ;;
1326
1327   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328     verbose=yes ;;
1329
1330   -version | --version | --versio | --versi | --vers | -V)
1331     ac_init_version=: ;;
1332
1333   -with-* | --with-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338    { (exit 1); exit 1; }; }
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=\$ac_optarg ;;
1349
1350   -without-* | --without-*)
1351     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352     # Reject names that are not valid shell variable names.
1353     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355    { (exit 1); exit 1; }; }
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387    { (exit 1); exit 1; }; }
1388     ;;
1389
1390   *=*)
1391     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392     # Reject names that are not valid shell variable names.
1393     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395    { (exit 1); exit 1; }; }
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413    { (exit 1); exit 1; }; }
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417   case $enable_option_checking in
1418     no) ;;
1419     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420    { (exit 1); exit 1; }; } ;;
1421     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422   esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427                 datadir sysconfdir sharedstatedir localstatedir includedir \
1428                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429                 libdir localedir mandir
1430 do
1431   eval ac_val=\$$ac_var
1432   # Remove trailing slashes.
1433   case $ac_val in
1434     */ )
1435       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436       eval $ac_var=\$ac_val;;
1437   esac
1438   # Be sure to have absolute directory names.
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444    { (exit 1); exit 1; }; }
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456   if test "x$build_alias" = x; then
1457     cross_compiling=maybe
1458     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459     If a cross compiler is detected then cross compile mode will be used." >&2
1460   elif test "x$build_alias" != "x$host_alias"; then
1461     cross_compiling=yes
1462   fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475    { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478    { (exit 1); exit 1; }; }
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$as_myself" : 'X\(//\)[^/]' \| \
1488          X"$as_myself" : 'X\(//\)$' \| \
1489          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518    { (exit 1); exit 1; }; }
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523    { (exit 1); exit 1; }; }
1524         pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527   srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_env_${ac_var}_value=\$${ac_var}
1538   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546   # Omit some internal or obsolete options to make the list less imposing.
1547   # This message is too long to be a string in the A/UX 3.1 sh.
1548   cat <<_ACEOF
1549 \`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559   -h, --help              display this help and exit
1560       --help=short        display options specific to this package
1561       --help=recursive    display the short help of all the included packages
1562   -V, --version           display version information and exit
1563   -q, --quiet, --silent   do not print \`checking...' messages
1564       --cache-file=FILE   cache test results in FILE [disabled]
1565   -C, --config-cache      alias for \`--cache-file=config.cache'
1566   -n, --no-create         do not create output files
1567       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570   --prefix=PREFIX         install architecture-independent files in PREFIX
1571                           [$ac_default_prefix]
1572   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                           [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583   --bindir=DIR            user executables [EPREFIX/bin]
1584   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1585   --libexecdir=DIR        program executables [EPREFIX/libexec]
1586   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1587   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1588   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1589   --libdir=DIR            object code libraries [EPREFIX/lib]
1590   --includedir=DIR        C header files [PREFIX/include]
1591   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1592   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1593   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1594   --infodir=DIR           info documentation [DATAROOTDIR/info]
1595   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1596   --mandir=DIR            man documentation [DATAROOTDIR/man]
1597   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1598   --htmldir=DIR           html documentation [DOCDIR]
1599   --dvidir=DIR            dvi documentation [DOCDIR]
1600   --pdfdir=DIR            pdf documentation [DOCDIR]
1601   --psdir=DIR             ps documentation [DOCDIR]
1602 _ACEOF
1603
1604   cat <<\_ACEOF
1605
1606 Program names:
1607   --program-prefix=PREFIX            prepend PREFIX to installed program names
1608   --program-suffix=SUFFIX            append SUFFIX to installed program names
1609   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1610
1611 System types:
1612   --build=BUILD     configure for building on BUILD [guessed]
1613   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1614   --target=TARGET   configure for building compilers for TARGET [HOST]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619   case $ac_init_help in
1620      short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
1621    esac
1622   cat <<\_ACEOF
1623
1624 Optional Features:
1625   --disable-option-checking  ignore unrecognized --enable/--with options
1626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1628   --disable-dependency-tracking  speeds up one-time build
1629   --enable-dependency-tracking   do not reject slow dependency extractors
1630   --enable-shared[=PKGS]  build shared libraries [default=yes]
1631   --enable-static[=PKGS]  build static libraries [default=yes]
1632   --enable-fast-install[=PKGS]
1633                           optimize for fast installation [default=yes]
1634   --disable-libtool-lock  avoid locking (might break parallel builds)
1635   --enable-maintainer-mode  enable make rules and dependencies not useful
1636                           (and sometimes confusing) to the casual installer
1637   --enable-debug          debugging mode
1638   --disable-structs       omit code for struct support
1639   --disable-raw-api       make the raw api unavailable
1640   --enable-purify-safety  purify-safe mode
1641
1642 Optional Packages:
1643   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1644   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1645   --with-pic              try to use only PIC/non-PIC objects [default=use
1646                           both]
1647   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1648
1649 Some influential environment variables:
1650   CC          C compiler command
1651   CFLAGS      C compiler flags
1652   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1653               nonstandard directory <lib dir>
1654   LIBS        libraries to pass to the linker, e.g. -l<library>
1655   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1656               you have headers in a nonstandard directory <include dir>
1657   CCAS        assembler compiler command (defaults to CC)
1658   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1659   CPP         C preprocessor
1660
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1663
1664 Report bugs to <http://gcc.gnu.org/bugs.html>.
1665 _ACEOF
1666 ac_status=$?
1667 fi
1668
1669 if test "$ac_init_help" = "recursive"; then
1670   # If there are subdirs, report their specific --help.
1671   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1672     test -d "$ac_dir" ||
1673       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674       continue
1675     ac_builddir=.
1676
1677 case "$ac_dir" in
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *)
1680   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1681   # A ".." for each directory in $ac_dir_suffix.
1682   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1683   case $ac_top_builddir_sub in
1684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686   esac ;;
1687 esac
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1692
1693 case $srcdir in
1694   .)  # We are building in place.
1695     ac_srcdir=.
1696     ac_top_srcdir=$ac_top_builddir_sub
1697     ac_abs_top_srcdir=$ac_pwd ;;
1698   [\\/]* | ?:[\\/]* )  # Absolute name.
1699     ac_srcdir=$srcdir$ac_dir_suffix;
1700     ac_top_srcdir=$srcdir
1701     ac_abs_top_srcdir=$srcdir ;;
1702   *) # Relative name.
1703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704     ac_top_srcdir=$ac_top_build_prefix$srcdir
1705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706 esac
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1708
1709     cd "$ac_dir" || { ac_status=$?; continue; }
1710     # Check for guested configure.
1711     if test -f "$ac_srcdir/configure.gnu"; then
1712       echo &&
1713       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714     elif test -f "$ac_srcdir/configure"; then
1715       echo &&
1716       $SHELL "$ac_srcdir/configure" --help=recursive
1717     else
1718       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719     fi || ac_status=$?
1720     cd "$ac_pwd" || { ac_status=$?; break; }
1721   done
1722 fi
1723
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1726   cat <<\_ACEOF
1727 libffi configure 3.0.10rc0
1728 generated by GNU Autoconf 2.63
1729
1730 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1731 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1732 This configure script is free software; the Free Software Foundation
1733 gives unlimited permission to copy, distribute and modify it.
1734 _ACEOF
1735   exit
1736 fi
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1740
1741 It was created by libffi $as_me 3.0.10rc0, which was
1742 generated by GNU Autoconf 2.63.  Invocation command line was
1743
1744   $ $0 $@
1745
1746 _ACEOF
1747 exec 5>>config.log
1748 {
1749 cat <<_ASUNAME
1750 ## --------- ##
1751 ## Platform. ##
1752 ## --------- ##
1753
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1762
1763 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1770
1771 _ASUNAME
1772
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   $as_echo "PATH: $as_dir"
1779 done
1780 IFS=$as_save_IFS
1781
1782 } >&5
1783
1784 cat >&5 <<_ACEOF
1785
1786
1787 ## ----------- ##
1788 ## Core tests. ##
1789 ## ----------- ##
1790
1791 _ACEOF
1792
1793
1794 # Keep a trace of the command line.
1795 # Strip out --no-create and --no-recursion so they do not pile up.
1796 # Strip out --silent because we don't want to record it for future runs.
1797 # Also quote any args containing shell meta-characters.
1798 # Make two passes to allow for proper duplicate-argument suppression.
1799 ac_configure_args=
1800 ac_configure_args0=
1801 ac_configure_args1=
1802 ac_must_keep_next=false
1803 for ac_pass in 1 2
1804 do
1805   for ac_arg
1806   do
1807     case $ac_arg in
1808     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810     | -silent | --silent | --silen | --sile | --sil)
1811       continue ;;
1812     *\'*)
1813       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814     esac
1815     case $ac_pass in
1816     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1817     2)
1818       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1819       if test $ac_must_keep_next = true; then
1820         ac_must_keep_next=false # Got value, back to normal.
1821       else
1822         case $ac_arg in
1823           *=* | --config-cache | -C | -disable-* | --disable-* \
1824           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826           | -with-* | --with-* | -without-* | --without-* | --x)
1827             case "$ac_configure_args0 " in
1828               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829             esac
1830             ;;
1831           -* ) ac_must_keep_next=true ;;
1832         esac
1833       fi
1834       ac_configure_args="$ac_configure_args '$ac_arg'"
1835       ;;
1836     esac
1837   done
1838 done
1839 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1840 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1841
1842 # When interrupted or exit'd, cleanup temporary files, and complete
1843 # config.log.  We remove comments because anyway the quotes in there
1844 # would cause problems or look ugly.
1845 # WARNING: Use '\'' to represent an apostrophe within the trap.
1846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847 trap 'exit_status=$?
1848   # Save into config.log some information that might help in debugging.
1849   {
1850     echo
1851
1852     cat <<\_ASBOX
1853 ## ---------------- ##
1854 ## Cache variables. ##
1855 ## ---------------- ##
1856 _ASBOX
1857     echo
1858     # The following way of writing the cache mishandles newlines in values,
1859 (
1860   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861     eval ac_val=\$$ac_var
1862     case $ac_val in #(
1863     *${as_nl}*)
1864       case $ac_var in #(
1865       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867       esac
1868       case $ac_var in #(
1869       _ | IFS | as_nl) ;; #(
1870       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871       *) $as_unset $ac_var ;;
1872       esac ;;
1873     esac
1874   done
1875   (set) 2>&1 |
1876     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877     *${as_nl}ac_space=\ *)
1878       sed -n \
1879         "s/'\''/'\''\\\\'\'''\''/g;
1880           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881       ;; #(
1882     *)
1883       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884       ;;
1885     esac |
1886     sort
1887 )
1888     echo
1889
1890     cat <<\_ASBOX
1891 ## ----------------- ##
1892 ## Output variables. ##
1893 ## ----------------- ##
1894 _ASBOX
1895     echo
1896     for ac_var in $ac_subst_vars
1897     do
1898       eval ac_val=\$$ac_var
1899       case $ac_val in
1900       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901       esac
1902       $as_echo "$ac_var='\''$ac_val'\''"
1903     done | sort
1904     echo
1905
1906     if test -n "$ac_subst_files"; then
1907       cat <<\_ASBOX
1908 ## ------------------- ##
1909 ## File substitutions. ##
1910 ## ------------------- ##
1911 _ASBOX
1912       echo
1913       for ac_var in $ac_subst_files
1914       do
1915         eval ac_val=\$$ac_var
1916         case $ac_val in
1917         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918         esac
1919         $as_echo "$ac_var='\''$ac_val'\''"
1920       done | sort
1921       echo
1922     fi
1923
1924     if test -s confdefs.h; then
1925       cat <<\_ASBOX
1926 ## ----------- ##
1927 ## confdefs.h. ##
1928 ## ----------- ##
1929 _ASBOX
1930       echo
1931       cat confdefs.h
1932       echo
1933     fi
1934     test "$ac_signal" != 0 &&
1935       $as_echo "$as_me: caught signal $ac_signal"
1936     $as_echo "$as_me: exit $exit_status"
1937   } >&5
1938   rm -f core *.core core.conftest.* &&
1939     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940     exit $exit_status
1941 ' 0
1942 for ac_signal in 1 2 13 15; do
1943   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1944 done
1945 ac_signal=0
1946
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1949
1950 # Predefined preprocessor variables.
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_NAME "$PACKAGE_NAME"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1959 _ACEOF
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1964 _ACEOF
1965
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_STRING "$PACKAGE_STRING"
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 _ACEOF
1975
1976
1977 # Let the site file select an alternate cache file if it wants to.
1978 # Prefer an explicitly selected file to automatically selected ones.
1979 ac_site_file1=NONE
1980 ac_site_file2=NONE
1981 if test -n "$CONFIG_SITE"; then
1982   ac_site_file1=$CONFIG_SITE
1983 elif test "x$prefix" != xNONE; then
1984   ac_site_file1=$prefix/share/config.site
1985   ac_site_file2=$prefix/etc/config.site
1986 else
1987   ac_site_file1=$ac_default_prefix/share/config.site
1988   ac_site_file2=$ac_default_prefix/etc/config.site
1989 fi
1990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1991 do
1992   test "x$ac_site_file" = xNONE && continue
1993   if test -r "$ac_site_file"; then
1994     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1996     sed 's/^/| /' "$ac_site_file" >&5
1997     . "$ac_site_file"
1998   fi
1999 done
2000
2001 if test -r "$cache_file"; then
2002   # Some versions of bash will fail to source /dev/null (special
2003   # files actually), so we avoid doing that.
2004   if test -f "$cache_file"; then
2005     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2006 $as_echo "$as_me: loading cache $cache_file" >&6;}
2007     case $cache_file in
2008       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009       *)                      . "./$cache_file";;
2010     esac
2011   fi
2012 else
2013   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2014 $as_echo "$as_me: creating cache $cache_file" >&6;}
2015   >$cache_file
2016 fi
2017
2018 # Check that the precious variables saved in the cache have kept the same
2019 # value.
2020 ac_cache_corrupted=false
2021 for ac_var in $ac_precious_vars; do
2022   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023   eval ac_new_set=\$ac_env_${ac_var}_set
2024   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025   eval ac_new_val=\$ac_env_${ac_var}_value
2026   case $ac_old_set,$ac_new_set in
2027     set,)
2028       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030       ac_cache_corrupted=: ;;
2031     ,set)
2032       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2034       ac_cache_corrupted=: ;;
2035     ,);;
2036     *)
2037       if test "x$ac_old_val" != "x$ac_new_val"; then
2038         # differences in whitespace do not lead to failure.
2039         ac_old_val_w=`echo x $ac_old_val`
2040         ac_new_val_w=`echo x $ac_new_val`
2041         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2042           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2044           ac_cache_corrupted=:
2045         else
2046           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2048           eval $ac_var=\$ac_old_val
2049         fi
2050         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2051 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2052         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2053 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2054       fi;;
2055   esac
2056   # Pass precious variables to config.status.
2057   if test "$ac_new_set" = set; then
2058     case $ac_new_val in
2059     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2060     *) ac_arg=$ac_var=$ac_new_val ;;
2061     esac
2062     case " $ac_configure_args " in
2063       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2064       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2065     esac
2066   fi
2067 done
2068 if $ac_cache_corrupted; then
2069   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2074 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2075    { (exit 1); exit 1; }; }
2076 fi
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102 ac_ext=c
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107
2108
2109 ac_config_headers="$ac_config_headers fficonfig.h"
2110
2111
2112 ac_aux_dir=
2113 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2114   if test -f "$ac_dir/install-sh"; then
2115     ac_aux_dir=$ac_dir
2116     ac_install_sh="$ac_aux_dir/install-sh -c"
2117     break
2118   elif test -f "$ac_dir/install.sh"; then
2119     ac_aux_dir=$ac_dir
2120     ac_install_sh="$ac_aux_dir/install.sh -c"
2121     break
2122   elif test -f "$ac_dir/shtool"; then
2123     ac_aux_dir=$ac_dir
2124     ac_install_sh="$ac_aux_dir/shtool install -c"
2125     break
2126   fi
2127 done
2128 if test -z "$ac_aux_dir"; then
2129   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2130 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2131    { (exit 1); exit 1; }; }
2132 fi
2133
2134 # These three variables are undocumented and unsupported,
2135 # and are intended to be withdrawn in a future Autoconf release.
2136 # They can cause serious problems if a builder's source tree is in a directory
2137 # whose full name contains unusual characters.
2138 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2139 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2140 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2141
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2150 $as_echo_n "checking build system type... " >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152   $as_echo_n "(cached) " >&6
2153 else
2154   ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 $as_echo "$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2190 $as_echo_n "checking host system type... " >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192   $as_echo_n "(cached) " >&6
2193 else
2194   if test "x$host_alias" = x; then
2195   ac_cv_host=$ac_cv_build
2196 else
2197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 $as_echo "$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2227 $as_echo_n "checking target system type... " >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229   $as_echo_n "(cached) " >&6
2230 else
2231   if test "x$target_alias" = x; then
2232   ac_cv_target=$ac_cv_host
2233 else
2234   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 fi
2241 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 $as_echo "$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2247    { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266   test "$program_prefix$program_suffix$program_transform_name" = \
2267     NONENONEs,x,x, &&
2268   program_prefix=${target_alias}-
2269 target_alias=${target_alias-$host_alias}
2270
2271 . ${srcdir}/configure.host
2272
2273 am__api_version='1.11'
2274
2275 # Find a good install program.  We prefer a C program (faster),
2276 # so one script is as good as another.  But avoid the broken or
2277 # incompatible versions:
2278 # SysV /etc/install, /usr/sbin/install
2279 # SunOS /usr/etc/install
2280 # IRIX /sbin/install
2281 # AIX /bin/install
2282 # AmigaOS /C/install, which installs bootblocks on floppy discs
2283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2286 # OS/2's system install, which has a completely different semantic
2287 # ./install, which can be erroneously created by make from ./install.sh.
2288 # Reject install programs that cannot install multiple files.
2289 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2290 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2291 if test -z "$INSTALL"; then
2292 if test "${ac_cv_path_install+set}" = set; then
2293   $as_echo_n "(cached) " >&6
2294 else
2295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   # Account for people who put trailing slashes in PATH elements.
2301 case $as_dir/ in
2302   ./ | .// | /cC/* | \
2303   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2304   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2305   /usr/ucb/* ) ;;
2306   *)
2307     # OSF1 and SCO ODT 3.0 have their own names for install.
2308     # Don't use installbsd from OSF since it installs stuff as root
2309     # by default.
2310     for ac_prog in ginstall scoinst install; do
2311       for ac_exec_ext in '' $ac_executable_extensions; do
2312         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2313           if test $ac_prog = install &&
2314             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315             # AIX install.  It has an incompatible calling convention.
2316             :
2317           elif test $ac_prog = install &&
2318             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319             # program-specific install script used by HP pwplus--don't use.
2320             :
2321           else
2322             rm -rf conftest.one conftest.two conftest.dir
2323             echo one > conftest.one
2324             echo two > conftest.two
2325             mkdir conftest.dir
2326             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2327               test -s conftest.one && test -s conftest.two &&
2328               test -s conftest.dir/conftest.one &&
2329               test -s conftest.dir/conftest.two
2330             then
2331               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2332               break 3
2333             fi
2334           fi
2335         fi
2336       done
2337     done
2338     ;;
2339 esac
2340
2341 done
2342 IFS=$as_save_IFS
2343
2344 rm -rf conftest.one conftest.two conftest.dir
2345
2346 fi
2347   if test "${ac_cv_path_install+set}" = set; then
2348     INSTALL=$ac_cv_path_install
2349   else
2350     # As a last resort, use the slow shell script.  Don't cache a
2351     # value for INSTALL within a source directory, because that will
2352     # break other packages using the cache if that directory is
2353     # removed, or if the value is a relative name.
2354     INSTALL=$ac_install_sh
2355   fi
2356 fi
2357 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2358 $as_echo "$INSTALL" >&6; }
2359
2360 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2361 # It thinks the first close brace ends the variable substitution.
2362 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2363
2364 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2365
2366 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2367
2368 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2369 $as_echo_n "checking whether build environment is sane... " >&6; }
2370 # Just in case
2371 sleep 1
2372 echo timestamp > conftest.file
2373 # Reject unsafe characters in $srcdir or the absolute working directory
2374 # name.  Accept space and tab only in the latter.
2375 am_lf='
2376 '
2377 case `pwd` in
2378   *[\\\"\#\$\&\'\`$am_lf]*)
2379     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2380 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2381    { (exit 1); exit 1; }; };;
2382 esac
2383 case $srcdir in
2384   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2385     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2386 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2387    { (exit 1); exit 1; }; };;
2388 esac
2389
2390 # Do `set' in a subshell so we don't clobber the current shell's
2391 # arguments.  Must try -L first in case configure is actually a
2392 # symlink; some systems play weird games with the mod time of symlinks
2393 # (eg FreeBSD returns the mod time of the symlink's containing
2394 # directory).
2395 if (
2396    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2397    if test "$*" = "X"; then
2398       # -L didn't work.
2399       set X `ls -t "$srcdir/configure" conftest.file`
2400    fi
2401    rm -f conftest.file
2402    if test "$*" != "X $srcdir/configure conftest.file" \
2403       && test "$*" != "X conftest.file $srcdir/configure"; then
2404
2405       # If neither matched, then we have a broken ls.  This can happen
2406       # if, for instance, CONFIG_SHELL is bash and it inherits a
2407       # broken ls alias from the environment.  This has actually
2408       # happened.  Such a system could not be considered "sane".
2409       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2410 alias in your environment" >&5
2411 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2412 alias in your environment" >&2;}
2413    { (exit 1); exit 1; }; }
2414    fi
2415
2416    test "$2" = conftest.file
2417    )
2418 then
2419    # Ok.
2420    :
2421 else
2422    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2423 Check your system clock" >&5
2424 $as_echo "$as_me: error: newly created file is older than distributed files!
2425 Check your system clock" >&2;}
2426    { (exit 1); exit 1; }; }
2427 fi
2428 { $as_echo "$as_me:$LINENO: result: yes" >&5
2429 $as_echo "yes" >&6; }
2430 test "$program_prefix" != NONE &&
2431   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2432 # Use a double $ so make ignores it.
2433 test "$program_suffix" != NONE &&
2434   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2435 # Double any \ or $.
2436 # By default was `s,x,x', remove it if useless.
2437 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2438 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2439
2440 # expand $ac_aux_dir to an absolute path
2441 am_aux_dir=`cd $ac_aux_dir && pwd`
2442
2443 if test x"${MISSING+set}" != xset; then
2444   case $am_aux_dir in
2445   *\ * | *\     *)
2446     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2447   *)
2448     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2449   esac
2450 fi
2451 # Use eval to expand $SHELL
2452 if eval "$MISSING --run true"; then
2453   am_missing_run="$MISSING --run "
2454 else
2455   am_missing_run=
2456   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2457 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2458 fi
2459
2460 if test x"${install_sh}" != xset; then
2461   case $am_aux_dir in
2462   *\ * | *\     *)
2463     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2464   *)
2465     install_sh="\${SHELL} $am_aux_dir/install-sh"
2466   esac
2467 fi
2468
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'.  However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474   if test -n "$ac_tool_prefix"; then
2475   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480   $as_echo_n "(cached) " >&6
2481 else
2482   if test -n "$STRIP"; then
2483   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2505 $as_echo "$STRIP" >&6; }
2506 else
2507   { $as_echo "$as_me:$LINENO: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_STRIP"; then
2514   ac_ct_STRIP=$STRIP
2515   # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520   $as_echo_n "(cached) " >&6
2521 else
2522   if test -n "$ac_ct_STRIP"; then
2523   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532     ac_cv_prog_ac_ct_STRIP="strip"
2533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 $as_echo "$ac_ct_STRIP" >&6; }
2546 else
2547   { $as_echo "$as_me:$LINENO: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551   if test "x$ac_ct_STRIP" = x; then
2552     STRIP=":"
2553   else
2554     case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560     STRIP=$ac_ct_STRIP
2561   fi
2562 else
2563   STRIP="$ac_cv_prog_STRIP"
2564 fi
2565
2566 fi
2567 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2570 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2571 if test -z "$MKDIR_P"; then
2572   if test "${ac_cv_path_mkdir+set}" = set; then
2573   $as_echo_n "(cached) " >&6
2574 else
2575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580   for ac_prog in mkdir gmkdir; do
2581          for ac_exec_ext in '' $ac_executable_extensions; do
2582            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2583            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2584              'mkdir (GNU coreutils) '* | \
2585              'mkdir (coreutils) '* | \
2586              'mkdir (fileutils) '4.1*)
2587                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2588                break 3;;
2589            esac
2590          done
2591        done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596
2597   if test "${ac_cv_path_mkdir+set}" = set; then
2598     MKDIR_P="$ac_cv_path_mkdir -p"
2599   else
2600     # As a last resort, use the slow shell script.  Don't cache a
2601     # value for MKDIR_P within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the value is a relative name.
2604     test -d ./--version && rmdir ./--version
2605     MKDIR_P="$ac_install_sh -d"
2606   fi
2607 fi
2608 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2609 $as_echo "$MKDIR_P" >&6; }
2610
2611 mkdir_p="$MKDIR_P"
2612 case $mkdir_p in
2613   [\\/$]* | ?:[\\/]*) ;;
2614   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2615 esac
2616
2617 for ac_prog in gawk mawk nawk awk
2618 do
2619   # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_AWK+set}" = set; then
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$AWK"; then
2627   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636     ac_cv_prog_AWK="$ac_prog"
2637     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 AWK=$ac_cv_prog_AWK
2647 if test -n "$AWK"; then
2648   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2649 $as_echo "$AWK" >&6; }
2650 else
2651   { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656   test -n "$AWK" && break
2657 done
2658
2659 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2660 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2661 set x ${MAKE-make}
2662 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2663 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2664   $as_echo_n "(cached) " >&6
2665 else
2666   cat >conftest.make <<\_ACEOF
2667 SHELL = /bin/sh
2668 all:
2669         @echo '@@@%%%=$(MAKE)=@@@%%%'
2670 _ACEOF
2671 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2672 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2673   *@@@%%%=?*=@@@%%%*)
2674     eval ac_cv_prog_make_${ac_make}_set=yes;;
2675   *)
2676     eval ac_cv_prog_make_${ac_make}_set=no;;
2677 esac
2678 rm -f conftest.make
2679 fi
2680 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2681   { $as_echo "$as_me:$LINENO: result: yes" >&5
2682 $as_echo "yes" >&6; }
2683   SET_MAKE=
2684 else
2685   { $as_echo "$as_me:$LINENO: result: no" >&5
2686 $as_echo "no" >&6; }
2687   SET_MAKE="MAKE=${MAKE-make}"
2688 fi
2689
2690 rm -rf .tst 2>/dev/null
2691 mkdir .tst 2>/dev/null
2692 if test -d .tst; then
2693   am__leading_dot=.
2694 else
2695   am__leading_dot=_
2696 fi
2697 rmdir .tst 2>/dev/null
2698
2699 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2700   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2701   # is not polluted with repeated "-I."
2702   am__isrc=' -I$(srcdir)'
2703   # test to see if srcdir already configured
2704   if test -f $srcdir/config.status; then
2705     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2706 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2707    { (exit 1); exit 1; }; }
2708   fi
2709 fi
2710
2711 # test whether we have cygpath
2712 if test -z "$CYGPATH_W"; then
2713   if (cygpath --version) >/dev/null 2>/dev/null; then
2714     CYGPATH_W='cygpath -w'
2715   else
2716     CYGPATH_W=echo
2717   fi
2718 fi
2719
2720
2721 # Define the identity of the package.
2722  PACKAGE='libffi'
2723  VERSION='3.0.10rc0'
2724
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE "$PACKAGE"
2728 _ACEOF
2729
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define VERSION "$VERSION"
2733 _ACEOF
2734
2735 # Some tools Automake needs.
2736
2737 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2738
2739
2740 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2741
2742
2743 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2744
2745
2746 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2747
2748
2749 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2750
2751 # We need awk for the "check" target.  The system "awk" is bad on
2752 # some platforms.
2753 # Always define AMTAR for backward compatibility.
2754
2755 AMTAR=${AMTAR-"${am_missing_run}tar"}
2756
2757 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2758
2759
2760
2761
2762
2763
2764 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2765 # We must force CC to /not/ be precious variables; otherwise
2766 # the wrong, non-multilib-adjusted value will be used in multilibs.
2767 # As a side effect, we have to subst CFLAGS ourselves.
2768 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
2769 # defaults of its own if none are provided.
2770
2771
2772
2773 save_CFLAGS=$CFLAGS
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785   $as_echo_n "(cached) " >&6
2786 else
2787   if test -n "$CC"; then
2788   ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795   for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2798     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812   { $as_echo "$as_me:$LINENO: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 fi
2818 if test -z "$ac_cv_prog_CC"; then
2819   ac_ct_CC=$CC
2820   # Extract the first word of "gcc", so it can be a program name with args.
2821 set dummy gcc; ac_word=$2
2822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2825   $as_echo_n "(cached) " >&6
2826 else
2827   if test -n "$ac_ct_CC"; then
2828   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835   for ac_exec_ext in '' $ac_executable_extensions; do
2836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837     ac_cv_prog_ac_ct_CC="gcc"
2838     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839     break 2
2840   fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848 if test -n "$ac_ct_CC"; then
2849   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2850 $as_echo "$ac_ct_CC" >&6; }
2851 else
2852   { $as_echo "$as_me:$LINENO: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856   if test "x$ac_ct_CC" = x; then
2857     CC=""
2858   else
2859     case $cross_compiling:$ac_tool_warned in
2860 yes:)
2861 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865     CC=$ac_ct_CC
2866   fi
2867 else
2868   CC="$ac_cv_prog_CC"
2869 fi
2870
2871 if test -z "$CC"; then
2872           if test -n "$ac_tool_prefix"; then
2873     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}cc; ac_word=$2
2875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878   $as_echo_n "(cached) " >&6
2879 else
2880   if test -n "$CC"; then
2881   ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890     ac_cv_prog_CC="${ac_tool_prefix}cc"
2891     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2904 else
2905   { $as_echo "$as_me:$LINENO: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909
2910   fi
2911 fi
2912 if test -z "$CC"; then
2913   # Extract the first word of "cc", so it can be a program name with args.
2914 set dummy cc; ac_word=$2
2915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_CC+set}" = set; then
2918   $as_echo_n "(cached) " >&6
2919 else
2920   if test -n "$CC"; then
2921   ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923   ac_prog_rejected=no
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929   for ac_exec_ext in '' $ac_executable_extensions; do
2930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2932        ac_prog_rejected=yes
2933        continue
2934      fi
2935     ac_cv_prog_CC="cc"
2936     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937     break 2
2938   fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 if test $ac_prog_rejected = yes; then
2944   # We found a bogon in the path, so make sure we never use it.
2945   set dummy $ac_cv_prog_CC
2946   shift
2947   if test $# != 0; then
2948     # We chose a different compiler from the bogus one.
2949     # However, it has the same basename, so the bogon will be chosen
2950     # first if we set CC to just the basename; use the full file name.
2951     shift
2952     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2953   fi
2954 fi
2955 fi
2956 fi
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962   { $as_echo "$as_me:$LINENO: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 fi
2968 if test -z "$CC"; then
2969   if test -n "$ac_tool_prefix"; then
2970   for ac_prog in cl.exe
2971   do
2972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2974 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2990     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004   { $as_echo "$as_me:$LINENO: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009     test -n "$CC" && break
3010   done
3011 fi
3012 if test -z "$CC"; then
3013   ac_ct_CC=$CC
3014   for ac_prog in cl.exe
3015 do
3016   # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$ac_ct_CC"; then
3024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031   for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     ac_cv_prog_ac_ct_CC="$ac_prog"
3034     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3046 $as_echo "$ac_ct_CC" >&6; }
3047 else
3048   { $as_echo "$as_me:$LINENO: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053   test -n "$ac_ct_CC" && break
3054 done
3055
3056   if test "x$ac_ct_CC" = x; then
3057     CC=""
3058   else
3059     case $cross_compiling:$ac_tool_warned in
3060 yes:)
3061 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned=yes ;;
3064 esac
3065     CC=$ac_ct_CC
3066   fi
3067 fi
3068
3069 fi
3070
3071
3072 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3075 See \`config.log' for more details." >&5
3076 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." >&2;}
3078    { (exit 1); exit 1; }; }; }
3079
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3082 set X $ac_compile
3083 ac_compiler=$2
3084 { (ac_try="$ac_compiler --version >&5"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090 $as_echo "$ac_try_echo") >&5
3091   (eval "$ac_compiler --version >&5") 2>&5
3092   ac_status=$?
3093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }
3095 { (ac_try="$ac_compiler -v >&5"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102   (eval "$ac_compiler -v >&5") 2>&5
3103   ac_status=$?
3104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }
3106 { (ac_try="$ac_compiler -V >&5"
3107 case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3112 $as_echo "$ac_try_echo") >&5
3113   (eval "$ac_compiler -V >&5") 2>&5
3114   ac_status=$?
3115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }
3117
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124
3125 int
3126 main ()
3127 {
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 ac_clean_files_save=$ac_clean_files
3134 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3135 # Try to create an executable without -o first, disregard a.out.
3136 # It will help us diagnose broken compilers, and finding out an intuition
3137 # of exeext.
3138 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3139 $as_echo_n "checking for C compiler default output file name... " >&6; }
3140 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3141
3142 # The possible output files:
3143 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3144
3145 ac_rmfiles=
3146 for ac_file in $ac_files
3147 do
3148   case $ac_file in
3149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3150     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3151   esac
3152 done
3153 rm -f $ac_rmfiles
3154
3155 if { (ac_try="$ac_link_default"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161 $as_echo "$ac_try_echo") >&5
3162   (eval "$ac_link_default") 2>&5
3163   ac_status=$?
3164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; then
3166   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3168 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3169 # so that the user can short-circuit this test for compilers unknown to
3170 # Autoconf.
3171 for ac_file in $ac_files ''
3172 do
3173   test -f "$ac_file" || continue
3174   case $ac_file in
3175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3176         ;;
3177     [ab].out )
3178         # We found the default executable, but exeext='' is most
3179         # certainly right.
3180         break;;
3181     *.* )
3182         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3183         then :; else
3184            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185         fi
3186         # We set ac_cv_exeext here because the later test for it is not
3187         # safe: cross compilers may not add the suffix if given an `-o'
3188         # argument, so we may need to know it at that point already.
3189         # Even if this section looks crufty: it has the advantage of
3190         # actually working.
3191         break;;
3192     * )
3193         break;;
3194   esac
3195 done
3196 test "$ac_cv_exeext" = no && ac_cv_exeext=
3197
3198 else
3199   ac_file=''
3200 fi
3201
3202 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3203 $as_echo "$ac_file" >&6; }
3204 if test -z "$ac_file"; then
3205   $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3211 See \`config.log' for more details." >&5
3212 $as_echo "$as_me: error: C compiler cannot create executables
3213 See \`config.log' for more details." >&2;}
3214    { (exit 77); exit 77; }; }; }
3215 fi
3216
3217 ac_exeext=$ac_cv_exeext
3218
3219 # Check that the compiler produces executables we can run.  If not, either
3220 # the compiler is broken, or we cross compile.
3221 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3224 # If not cross compiling, check that we can run a simple program.
3225 if test "$cross_compiling" != yes; then
3226   if { ac_try='./$ac_file'
3227   { (case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233   (eval "$ac_try") 2>&5
3234   ac_status=$?
3235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237     cross_compiling=no
3238   else
3239     if test "$cross_compiling" = maybe; then
3240         cross_compiling=yes
3241     else
3242         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details." >&5
3247 $as_echo "$as_me: error: cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details." >&2;}
3250    { (exit 1); exit 1; }; }; }
3251     fi
3252   fi
3253 fi
3254 { $as_echo "$as_me:$LINENO: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256
3257 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 # Check that the compiler produces executables we can run.  If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3264 $as_echo "$cross_compiling" >&6; }
3265
3266 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3267 $as_echo_n "checking for suffix of executables... " >&6; }
3268 if { (ac_try="$ac_link"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275   (eval "$ac_link") 2>&5
3276   ac_status=$?
3277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; then
3279   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3281 # work properly (i.e., refer to `conftest.exe'), while it won't with
3282 # `rm'.
3283 for ac_file in conftest.exe conftest conftest.*; do
3284   test -f "$ac_file" || continue
3285   case $ac_file in
3286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288           break;;
3289     * ) break;;
3290   esac
3291 done
3292 else
3293   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3296 See \`config.log' for more details." >&5
3297 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details." >&2;}
3299    { (exit 1); exit 1; }; }; }
3300 fi
3301
3302 rm -f conftest$ac_cv_exeext
3303 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3304 $as_echo "$ac_cv_exeext" >&6; }
3305
3306 rm -f conftest.$ac_ext
3307 EXEEXT=$ac_cv_exeext
3308 ac_exeext=$EXEEXT
3309 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if test "${ac_cv_objext+set}" = set; then
3312   $as_echo_n "(cached) " >&6
3313 else
3314   cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.o conftest.obj
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337   (eval "$ac_compile") 2>&5
3338   ac_status=$?
3339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; then
3341   for ac_file in conftest.o conftest.obj conftest.*; do
3342   test -f "$ac_file" || continue;
3343   case $ac_file in
3344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3346        break;;
3347   esac
3348 done
3349 else
3350   $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details." >&5
3357 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details." >&2;}
3359    { (exit 1); exit 1; }; }; }
3360 fi
3361
3362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3363 fi
3364 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3365 $as_echo "$ac_cv_objext" >&6; }
3366 OBJEXT=$ac_cv_objext
3367 ac_objext=$OBJEXT
3368 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3369 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3370 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3371   $as_echo_n "(cached) " >&6
3372 else
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379
3380 int
3381 main ()
3382 {
3383 #ifndef __GNUC__
3384        choke me
3385 #endif
3386
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398 $as_echo "$ac_try_echo") >&5
3399   (eval "$ac_compile") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } && {
3406          test -z "$ac_c_werror_flag" ||
3407          test ! -s conftest.err
3408        } && test -s conftest.$ac_objext; then
3409   ac_compiler_gnu=yes
3410 else
3411   $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414         ac_compiler_gnu=no
3415 fi
3416
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3419
3420 fi
3421 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3422 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3423 if test $ac_compiler_gnu = yes; then
3424   GCC=yes
3425 else
3426   GCC=
3427 fi
3428 ac_test_CFLAGS=${CFLAGS+set}
3429 ac_save_CFLAGS=$CFLAGS
3430 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3431 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3432 if test "${ac_cv_prog_cc_g+set}" = set; then
3433   $as_echo_n "(cached) " >&6
3434 else
3435   ac_save_c_werror_flag=$ac_c_werror_flag
3436    ac_c_werror_flag=yes
3437    ac_cv_prog_cc_g=no
3438    CFLAGS="-g"
3439    cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445
3446 int
3447 main ()
3448 {
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461 $as_echo "$ac_try_echo") >&5
3462   (eval "$ac_compile") 2>conftest.er1
3463   ac_status=$?
3464   grep -v '^ *+' conftest.er1 >conftest.err
3465   rm -f conftest.er1
3466   cat conftest.err >&5
3467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } && {
3469          test -z "$ac_c_werror_flag" ||
3470          test ! -s conftest.err
3471        } && test -s conftest.$ac_objext; then
3472   ac_cv_prog_cc_g=yes
3473 else
3474   $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477         CFLAGS=""
3478       cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (ac_try="$ac_compile"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501   (eval "$ac_compile") 2>conftest.er1
3502   ac_status=$?
3503   grep -v '^ *+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } && {
3508          test -z "$ac_c_werror_flag" ||
3509          test ! -s conftest.err
3510        } && test -s conftest.$ac_objext; then
3511   :
3512 else
3513   $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516         ac_c_werror_flag=$ac_save_c_werror_flag
3517          CFLAGS="-g"
3518          cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541   (eval "$ac_compile") 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } && {
3548          test -z "$ac_c_werror_flag" ||
3549          test ! -s conftest.err
3550        } && test -s conftest.$ac_objext; then
3551   ac_cv_prog_cc_g=yes
3552 else
3553   $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556
3557 fi
3558
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 fi
3564
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566    ac_c_werror_flag=$ac_save_c_werror_flag
3567 fi
3568 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3569 $as_echo "$ac_cv_prog_cc_g" >&6; }
3570 if test "$ac_test_CFLAGS" = set; then
3571   CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573   if test "$GCC" = yes; then
3574     CFLAGS="-g -O2"
3575   else
3576     CFLAGS="-g"
3577   fi
3578 else
3579   if test "$GCC" = yes; then
3580     CFLAGS="-O2"
3581   else
3582     CFLAGS=
3583   fi
3584 fi
3585 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3587 if test "${ac_cv_prog_cc_c89+set}" = set; then
3588   $as_echo_n "(cached) " >&6
3589 else
3590   ac_cv_prog_cc_c89=no
3591 ac_save_CC=$CC
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606      char **p;
3607      int i;
3608 {
3609   return p[i];
3610 }
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3612 {
3613   char *s;
3614   va_list v;
3615   va_start (v,p);
3616   s = g (p, va_arg (v,int));
3617   va_end (v);
3618   return s;
3619 }
3620
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3622    function prototypes and stuff, but not '\xHH' hex character constants.
3623    These don't provoke an error unfortunately, instead are silently treated
3624    as 'x'.  The following induces an error, until -std is added to get
3625    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3626    array size at least.  It's necessary to write '\x00'==0 to get something
3627    that's true only with -std.  */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631    inside strings and character constants.  */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3641 int
3642 main ()
3643 {
3644 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 do
3652   CC="$ac_save_CC $ac_arg"
3653   rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661   (eval "$ac_compile") 2>conftest.er1
3662   ac_status=$?
3663   grep -v '^ *+' conftest.er1 >conftest.err
3664   rm -f conftest.er1
3665   cat conftest.err >&5
3666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); } && {
3668          test -z "$ac_c_werror_flag" ||
3669          test ! -s conftest.err
3670        } && test -s conftest.$ac_objext; then
3671   ac_cv_prog_cc_c89=$ac_arg
3672 else
3673   $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676
3677 fi
3678
3679 rm -f core conftest.err conftest.$ac_objext
3680   test "x$ac_cv_prog_cc_c89" != "xno" && break
3681 done
3682 rm -f conftest.$ac_ext
3683 CC=$ac_save_CC
3684
3685 fi
3686 # AC_CACHE_VAL
3687 case "x$ac_cv_prog_cc_c89" in
3688   x)
3689     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3690 $as_echo "none needed" >&6; } ;;
3691   xno)
3692     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3693 $as_echo "unsupported" >&6; } ;;
3694   *)
3695     CC="$CC $ac_cv_prog_cc_c89"
3696     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3698 esac
3699
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 DEPDIR="${am__leading_dot}deps"
3707
3708 ac_config_commands="$ac_config_commands depfiles"
3709
3710
3711 am_make=${MAKE-make}
3712 cat > confinc << 'END'
3713 am__doit:
3714         @echo this is the am__doit target
3715 .PHONY: am__doit
3716 END
3717 # If we don't find an include directive, just comment out the code.
3718 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3719 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3720 am__include="#"
3721 am__quote=
3722 _am_result=none
3723 # First try GNU make style include.
3724 echo "include confinc" > confmf
3725 # Ignore all kinds of additional output from `make'.
3726 case `$am_make -s -f confmf 2> /dev/null` in #(
3727 *the\ am__doit\ target*)
3728   am__include=include
3729   am__quote=
3730   _am_result=GNU
3731   ;;
3732 esac
3733 # Now try BSD make style include.
3734 if test "$am__include" = "#"; then
3735    echo '.include "confinc"' > confmf
3736    case `$am_make -s -f confmf 2> /dev/null` in #(
3737    *the\ am__doit\ target*)
3738      am__include=.include
3739      am__quote="\""
3740      _am_result=BSD
3741      ;;
3742    esac
3743 fi
3744
3745
3746 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3747 $as_echo "$_am_result" >&6; }
3748 rm -f confinc confmf
3749
3750 # Check whether --enable-dependency-tracking was given.
3751 if test "${enable_dependency_tracking+set}" = set; then
3752   enableval=$enable_dependency_tracking;
3753 fi
3754
3755 if test "x$enable_dependency_tracking" != xno; then
3756   am_depcomp="$ac_aux_dir/depcomp"
3757   AMDEPBACKSLASH='\'
3758 fi
3759  if test "x$enable_dependency_tracking" != xno; then
3760   AMDEP_TRUE=
3761   AMDEP_FALSE='#'
3762 else
3763   AMDEP_TRUE='#'
3764   AMDEP_FALSE=
3765 fi
3766
3767
3768
3769 depcc="$CC"   am_compiler_list=
3770
3771 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3774   $as_echo_n "(cached) " >&6
3775 else
3776   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777   # We make a subdir and do the tests there.  Otherwise we can end up
3778   # making bogus files that we don't know about and never remove.  For
3779   # instance it was reported that on HP-UX the gcc test will end up
3780   # making a dummy file named `D' -- because `-MD' means `put the output
3781   # in D'.
3782   mkdir conftest.dir
3783   # Copy depcomp to subdir because otherwise we won't find it if we're
3784   # using a relative directory.
3785   cp "$am_depcomp" conftest.dir
3786   cd conftest.dir
3787   # We will build objects and dependencies in a subdirectory because
3788   # it helps to detect inapplicable dependency modes.  For instance
3789   # both Tru64's cc and ICC support -MD to output dependencies as a
3790   # side effect of compilation, but ICC will put the dependencies in
3791   # the current directory while Tru64 will put them in the object
3792   # directory.
3793   mkdir sub
3794
3795   am_cv_CC_dependencies_compiler_type=none
3796   if test "$am_compiler_list" = ""; then
3797      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798   fi
3799   am__universal=false
3800   case " $depcc " in #(
3801      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802      esac
3803
3804   for depmode in $am_compiler_list; do
3805     # Setup a source with many dependencies, because some compilers
3806     # like to wrap large dependency lists on column 80 (with \), and
3807     # we should not choose a depcomp mode which is confused by this.
3808     #
3809     # We need to recreate these files for each test, as the compiler may
3810     # overwrite some of them when testing with obscure command lines.
3811     # This happens at least with the AIX C compiler.
3812     : > sub/conftest.c
3813     for i in 1 2 3 4 5 6; do
3814       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816       # Solaris 8's {/usr,}/bin/sh.
3817       touch sub/conftst$i.h
3818     done
3819     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822     # mode.  It turns out that the SunPro C++ compiler does not properly
3823     # handle `-M -o', and we need to detect this.  Also, some Intel
3824     # versions had trouble with output in subdirs
3825     am__obj=sub/conftest.${OBJEXT-o}
3826     am__minus_obj="-o $am__obj"
3827     case $depmode in
3828     gcc)
3829       # This depmode causes a compiler race in universal mode.
3830       test "$am__universal" = false || continue
3831       ;;
3832     nosideeffect)
3833       # after this tag, mechanisms are not by side-effect, so they'll
3834       # only be used when explicitly requested
3835       if test "x$enable_dependency_tracking" = xyes; then
3836         continue
3837       else
3838         break
3839       fi
3840       ;;
3841     msvisualcpp | msvcmsys)
3842       # This compiler won't grok `-c -o', but also, the minuso test has
3843       # not run yet.  These depmodes are late enough in the game, and
3844       # so weak that their functioning should not be impacted.
3845       am__obj=conftest.${OBJEXT-o}
3846       am__minus_obj=
3847       ;;
3848     none) break ;;
3849     esac
3850     if depmode=$depmode \
3851        source=sub/conftest.c object=$am__obj \
3852        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854          >/dev/null 2>conftest.err &&
3855        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859       # icc doesn't choke on unknown options, it will just issue warnings
3860       # or remarks (even with -Werror).  So we grep stderr for any message
3861       # that says an option was ignored or not supported.
3862       # When given -MP, icc 7.0 and 7.1 complain thusly:
3863       #   icc: Command line warning: ignoring option '-M'; no argument required
3864       # The diagnosis changed in icc 8.0:
3865       #   icc: Command line remark: option '-MP' not supported
3866       if (grep 'ignoring option' conftest.err ||
3867           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868         am_cv_CC_dependencies_compiler_type=$depmode
3869         break
3870       fi
3871     fi
3872   done
3873
3874   cd ..
3875   rm -rf conftest.dir
3876 else
3877   am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885  if
3886   test "x$enable_dependency_tracking" != xno \
3887   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888   am__fastdepCC_TRUE=
3889   am__fastdepCC_FALSE='#'
3890 else
3891   am__fastdepCC_TRUE='#'
3892   am__fastdepCC_FALSE=
3893 fi
3894
3895
3896 CFLAGS=$save_CFLAGS
3897
3898
3899
3900
3901
3902 # By default we simply use the C compiler to build assembly code.
3903
3904 test "${CCAS+set}" = set || CCAS=$CC
3905 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3906
3907
3908
3909 depcc="$CCAS"   am_compiler_list=
3910
3911 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3912 $as_echo_n "checking dependency style of $depcc... " >&6; }
3913 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3914   $as_echo_n "(cached) " >&6
3915 else
3916   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917   # We make a subdir and do the tests there.  Otherwise we can end up
3918   # making bogus files that we don't know about and never remove.  For
3919   # instance it was reported that on HP-UX the gcc test will end up
3920   # making a dummy file named `D' -- because `-MD' means `put the output
3921   # in D'.
3922   mkdir conftest.dir
3923   # Copy depcomp to subdir because otherwise we won't find it if we're
3924   # using a relative directory.
3925   cp "$am_depcomp" conftest.dir
3926   cd conftest.dir
3927   # We will build objects and dependencies in a subdirectory because
3928   # it helps to detect inapplicable dependency modes.  For instance
3929   # both Tru64's cc and ICC support -MD to output dependencies as a
3930   # side effect of compilation, but ICC will put the dependencies in
3931   # the current directory while Tru64 will put them in the object
3932   # directory.
3933   mkdir sub
3934
3935   am_cv_CCAS_dependencies_compiler_type=none
3936   if test "$am_compiler_list" = ""; then
3937      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3938   fi
3939   am__universal=false
3940
3941
3942   for depmode in $am_compiler_list; do
3943     # Setup a source with many dependencies, because some compilers
3944     # like to wrap large dependency lists on column 80 (with \), and
3945     # we should not choose a depcomp mode which is confused by this.
3946     #
3947     # We need to recreate these files for each test, as the compiler may
3948     # overwrite some of them when testing with obscure command lines.
3949     # This happens at least with the AIX C compiler.
3950     : > sub/conftest.c
3951     for i in 1 2 3 4 5 6; do
3952       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3953       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3954       # Solaris 8's {/usr,}/bin/sh.
3955       touch sub/conftst$i.h
3956     done
3957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3958
3959     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3960     # mode.  It turns out that the SunPro C++ compiler does not properly
3961     # handle `-M -o', and we need to detect this.  Also, some Intel
3962     # versions had trouble with output in subdirs
3963     am__obj=sub/conftest.${OBJEXT-o}
3964     am__minus_obj="-o $am__obj"
3965     case $depmode in
3966     gcc)
3967       # This depmode causes a compiler race in universal mode.
3968       test "$am__universal" = false || continue
3969       ;;
3970     nosideeffect)
3971       # after this tag, mechanisms are not by side-effect, so they'll
3972       # only be used when explicitly requested
3973       if test "x$enable_dependency_tracking" = xyes; then
3974         continue
3975       else
3976         break
3977       fi
3978       ;;
3979     msvisualcpp | msvcmsys)
3980       # This compiler won't grok `-c -o', but also, the minuso test has
3981       # not run yet.  These depmodes are late enough in the game, and
3982       # so weak that their functioning should not be impacted.
3983       am__obj=conftest.${OBJEXT-o}
3984       am__minus_obj=
3985       ;;
3986     none) break ;;
3987     esac
3988     if depmode=$depmode \
3989        source=sub/conftest.c object=$am__obj \
3990        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3991        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3992          >/dev/null 2>conftest.err &&
3993        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3994        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3995        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3996        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3997       # icc doesn't choke on unknown options, it will just issue warnings
3998       # or remarks (even with -Werror).  So we grep stderr for any message
3999       # that says an option was ignored or not supported.
4000       # When given -MP, icc 7.0 and 7.1 complain thusly:
4001       #   icc: Command line warning: ignoring option '-M'; no argument required
4002       # The diagnosis changed in icc 8.0:
4003       #   icc: Command line remark: option '-MP' not supported
4004       if (grep 'ignoring option' conftest.err ||
4005           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4006         am_cv_CCAS_dependencies_compiler_type=$depmode
4007         break
4008       fi
4009     fi
4010   done
4011
4012   cd ..
4013   rm -rf conftest.dir
4014 else
4015   am_cv_CCAS_dependencies_compiler_type=none
4016 fi
4017
4018 fi
4019 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4020 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4021 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4022
4023  if
4024   test "x$enable_dependency_tracking" != xno \
4025   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4026   am__fastdepCCAS_TRUE=
4027   am__fastdepCCAS_FALSE='#'
4028 else
4029   am__fastdepCCAS_TRUE='#'
4030   am__fastdepCCAS_FALSE=
4031 fi
4032
4033
4034 if test "x$CC" != xcc; then
4035   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4036 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4037 else
4038   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4039 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4040 fi
4041 set dummy $CC; ac_cc=`$as_echo "$2" |
4042                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4043 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4044   $as_echo_n "(cached) " >&6
4045 else
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052
4053 int
4054 main ()
4055 {
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 # Make sure it works both with $CC and with simple cc.
4062 # We do the test twice because some compilers refuse to overwrite an
4063 # existing .o file with -o, though they will create one.
4064 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4065 rm -f conftest2.*
4066 if { (case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072   (eval "$ac_try") 2>&5
4073   ac_status=$?
4074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078   *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081 $as_echo "$ac_try_echo") >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); };
4086 then
4087   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4088   if test "x$CC" != xcc; then
4089     # Test first that cc exists at all.
4090     if { ac_try='cc -c conftest.$ac_ext >&5'
4091   { (case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4102       rm -f conftest2.*
4103       if { (case "(($ac_try" in
4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105   *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109   (eval "$ac_try") 2>&5
4110   ac_status=$?
4111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } &&
4113          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4118 $as_echo "$ac_try_echo") >&5
4119   (eval "$ac_try") 2>&5
4120   ac_status=$?
4121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); };
4123       then
4124         # cc works too.
4125         :
4126       else
4127         # cc exists but doesn't like -o.
4128         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4129       fi
4130     fi
4131   fi
4132 else
4133   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4134 fi
4135 rm -f core conftest*
4136
4137 fi
4138 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4139   { $as_echo "$as_me:$LINENO: result: yes" >&5
4140 $as_echo "yes" >&6; }
4141 else
4142   { $as_echo "$as_me:$LINENO: result: no" >&5
4143 $as_echo "no" >&6; }
4144
4145 cat >>confdefs.h <<\_ACEOF
4146 #define NO_MINUS_C_MINUS_O 1
4147 _ACEOF
4148
4149 fi
4150
4151 # FIXME: we rely on the cache variable name because
4152 # there is no other way.
4153 set dummy $CC
4154 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4155 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4156 if test "$am_t" != yes; then
4157    # Losing compiler, so override with the script.
4158    # FIXME: It is wrong to rewrite CC.
4159    # But if we don't then we get into trouble of one sort or another.
4160    # A longer-term fix would be to have automake use am__CC in this case,
4161    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4162    CC="$am_aux_dir/compile $CC"
4163 fi
4164
4165
4166 case `pwd` in
4167   *\ * | *\     *)
4168     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4169 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4170 esac
4171
4172
4173
4174 macro_version='2.2.6b'
4175 macro_revision='1.3017'
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189 ltmain="$ac_aux_dir/ltmain.sh"
4190
4191 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4192 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4193 if test "${ac_cv_path_SED+set}" = set; then
4194   $as_echo_n "(cached) " >&6
4195 else
4196             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4197      for ac_i in 1 2 3 4 5 6 7; do
4198        ac_script="$ac_script$as_nl$ac_script"
4199      done
4200      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4201      $as_unset ac_script || ac_script=
4202      if test -z "$SED"; then
4203   ac_path_SED_found=false
4204   # Loop through the user's path and test for each of PROGNAME-LIST
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_prog in sed gsed; do
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4213       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4214 # Check for GNU ac_path_SED and select it if it is found.
4215   # Check for GNU $ac_path_SED
4216 case `"$ac_path_SED" --version 2>&1` in
4217 *GNU*)
4218   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4219 *)
4220   ac_count=0
4221   $as_echo_n 0123456789 >"conftest.in"
4222   while :
4223   do
4224     cat "conftest.in" "conftest.in" >"conftest.tmp"
4225     mv "conftest.tmp" "conftest.in"
4226     cp "conftest.in" "conftest.nl"
4227     $as_echo '' >> "conftest.nl"
4228     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230     ac_count=`expr $ac_count + 1`
4231     if test $ac_count -gt ${ac_path_SED_max-0}; then
4232       # Best one so far, save it but keep looking for a better one
4233       ac_cv_path_SED="$ac_path_SED"
4234       ac_path_SED_max=$ac_count
4235     fi
4236     # 10*(2^10) chars as input seems more than enough
4237     test $ac_count -gt 10 && break
4238   done
4239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242       $ac_path_SED_found && break 3
4243     done
4244   done
4245 done
4246 IFS=$as_save_IFS
4247   if test -z "$ac_cv_path_SED"; then
4248     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4249 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4250    { (exit 1); exit 1; }; }
4251   fi
4252 else
4253   ac_cv_path_SED=$SED
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4258 $as_echo "$ac_cv_path_SED" >&6; }
4259  SED="$ac_cv_path_SED"
4260   rm -f conftest.sed
4261
4262 test -z "$SED" && SED=sed
4263 Xsed="$SED -e 1s/^X//"
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4277 if test "${ac_cv_path_GREP+set}" = set; then
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -z "$GREP"; then
4281   ac_path_GREP_found=false
4282   # Loop through the user's path and test for each of PROGNAME-LIST
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_prog in grep ggrep; do
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4291       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4292 # Check for GNU ac_path_GREP and select it if it is found.
4293   # Check for GNU $ac_path_GREP
4294 case `"$ac_path_GREP" --version 2>&1` in
4295 *GNU*)
4296   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4297 *)
4298   ac_count=0
4299   $as_echo_n 0123456789 >"conftest.in"
4300   while :
4301   do
4302     cat "conftest.in" "conftest.in" >"conftest.tmp"
4303     mv "conftest.tmp" "conftest.in"
4304     cp "conftest.in" "conftest.nl"
4305     $as_echo 'GREP' >> "conftest.nl"
4306     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308     ac_count=`expr $ac_count + 1`
4309     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4310       # Best one so far, save it but keep looking for a better one
4311       ac_cv_path_GREP="$ac_path_GREP"
4312       ac_path_GREP_max=$ac_count
4313     fi
4314     # 10*(2^10) chars as input seems more than enough
4315     test $ac_count -gt 10 && break
4316   done
4317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4319
4320       $ac_path_GREP_found && break 3
4321     done
4322   done
4323 done
4324 IFS=$as_save_IFS
4325   if test -z "$ac_cv_path_GREP"; then
4326     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328    { (exit 1); exit 1; }; }
4329   fi
4330 else
4331   ac_cv_path_GREP=$GREP
4332 fi
4333
4334 fi
4335 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337  GREP="$ac_cv_path_GREP"
4338
4339
4340 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if test "${ac_cv_path_EGREP+set}" = set; then
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346    then ac_cv_path_EGREP="$GREP -E"
4347    else
4348      if test -z "$EGREP"; then
4349   ac_path_EGREP_found=false
4350   # Loop through the user's path and test for each of PROGNAME-LIST
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_prog in egrep; do
4357     for ac_exec_ext in '' $ac_executable_extensions; do
4358       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361   # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4363 *GNU*)
4364   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4365 *)
4366   ac_count=0
4367   $as_echo_n 0123456789 >"conftest.in"
4368   while :
4369   do
4370     cat "conftest.in" "conftest.in" >"conftest.tmp"
4371     mv "conftest.tmp" "conftest.in"
4372     cp "conftest.in" "conftest.nl"
4373     $as_echo 'EGREP' >> "conftest.nl"
4374     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376     ac_count=`expr $ac_count + 1`
4377     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378       # Best one so far, save it but keep looking for a better one
4379       ac_cv_path_EGREP="$ac_path_EGREP"
4380       ac_path_EGREP_max=$ac_count
4381     fi
4382     # 10*(2^10) chars as input seems more than enough
4383     test $ac_count -gt 10 && break
4384   done
4385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4387
4388       $ac_path_EGREP_found && break 3
4389     done
4390   done
4391 done
4392 IFS=$as_save_IFS
4393   if test -z "$ac_cv_path_EGREP"; then
4394     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4395 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4396    { (exit 1); exit 1; }; }
4397   fi
4398 else
4399   ac_cv_path_EGREP=$EGREP
4400 fi
4401
4402    fi
4403 fi
4404 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4405 $as_echo "$ac_cv_path_EGREP" >&6; }
4406  EGREP="$ac_cv_path_EGREP"
4407
4408
4409 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4410 $as_echo_n "checking for fgrep... " >&6; }
4411 if test "${ac_cv_path_FGREP+set}" = set; then
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4415    then ac_cv_path_FGREP="$GREP -F"
4416    else
4417      if test -z "$FGREP"; then
4418   ac_path_FGREP_found=false
4419   # Loop through the user's path and test for each of PROGNAME-LIST
4420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425   for ac_prog in fgrep; do
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4428       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4429 # Check for GNU ac_path_FGREP and select it if it is found.
4430   # Check for GNU $ac_path_FGREP
4431 case `"$ac_path_FGREP" --version 2>&1` in
4432 *GNU*)
4433   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4434 *)
4435   ac_count=0
4436   $as_echo_n 0123456789 >"conftest.in"
4437   while :
4438   do
4439     cat "conftest.in" "conftest.in" >"conftest.tmp"
4440     mv "conftest.tmp" "conftest.in"
4441     cp "conftest.in" "conftest.nl"
4442     $as_echo 'FGREP' >> "conftest.nl"
4443     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445     ac_count=`expr $ac_count + 1`
4446     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4447       # Best one so far, save it but keep looking for a better one
4448       ac_cv_path_FGREP="$ac_path_FGREP"
4449       ac_path_FGREP_max=$ac_count
4450     fi
4451     # 10*(2^10) chars as input seems more than enough
4452     test $ac_count -gt 10 && break
4453   done
4454   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455 esac
4456
4457       $ac_path_FGREP_found && break 3
4458     done
4459   done
4460 done
4461 IFS=$as_save_IFS
4462   if test -z "$ac_cv_path_FGREP"; then
4463     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4464 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4465    { (exit 1); exit 1; }; }
4466   fi
4467 else
4468   ac_cv_path_FGREP=$FGREP
4469 fi
4470
4471    fi
4472 fi
4473 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4474 $as_echo "$ac_cv_path_FGREP" >&6; }
4475  FGREP="$ac_cv_path_FGREP"
4476
4477
4478 test -z "$GREP" && GREP=grep
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498 # Check whether --with-gnu-ld was given.
4499 if test "${with_gnu_ld+set}" = set; then
4500   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4501 else
4502   with_gnu_ld=no
4503 fi
4504
4505 ac_prog=ld
4506 if test "$GCC" = yes; then
4507   # Check if gcc -print-prog-name=ld gives a path.
4508   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4509 $as_echo_n "checking for ld used by $CC... " >&6; }
4510   case $host in
4511   *-*-mingw*)
4512     # gcc leaves a trailing carriage return which upsets mingw
4513     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4514   *)
4515     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4516   esac
4517   case $ac_prog in
4518     # Accept absolute paths.
4519     [\\/]* | ?:[\\/]*)
4520       re_direlt='/[^/][^/]*/\.\./'
4521       # Canonicalize the pathname of ld
4522       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4523       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4524         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4525       done
4526       test -z "$LD" && LD="$ac_prog"
4527       ;;
4528   "")
4529     # If it fails, then pretend we aren't using GCC.
4530     ac_prog=ld
4531     ;;
4532   *)
4533     # If it is relative, then search for the first ld in PATH.
4534     with_gnu_ld=unknown
4535     ;;
4536   esac
4537 elif test "$with_gnu_ld" = yes; then
4538   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4539 $as_echo_n "checking for GNU ld... " >&6; }
4540 else
4541   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4542 $as_echo_n "checking for non-GNU ld... " >&6; }
4543 fi
4544 if test "${lt_cv_path_LD+set}" = set; then
4545   $as_echo_n "(cached) " >&6
4546 else
4547   if test -z "$LD"; then
4548   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4549   for ac_dir in $PATH; do
4550     IFS="$lt_save_ifs"
4551     test -z "$ac_dir" && ac_dir=.
4552     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4553       lt_cv_path_LD="$ac_dir/$ac_prog"
4554       # Check to see if the program is GNU ld.  I'd rather use --version,
4555       # but apparently some variants of GNU ld only accept -v.
4556       # Break only if it was the GNU/non-GNU ld that we prefer.
4557       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4558       *GNU* | *'with BFD'*)
4559         test "$with_gnu_ld" != no && break
4560         ;;
4561       *)
4562         test "$with_gnu_ld" != yes && break
4563         ;;
4564       esac
4565     fi
4566   done
4567   IFS="$lt_save_ifs"
4568 else
4569   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4570 fi
4571 fi
4572
4573 LD="$lt_cv_path_LD"
4574 if test -n "$LD"; then
4575   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4576 $as_echo "$LD" >&6; }
4577 else
4578   { $as_echo "$as_me:$LINENO: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4582 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4583    { (exit 1); exit 1; }; }
4584 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4586 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4587   $as_echo_n "(cached) " >&6
4588 else
4589   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4590 case `$LD -v 2>&1 </dev/null` in
4591 *GNU* | *'with BFD'*)
4592   lt_cv_prog_gnu_ld=yes
4593   ;;
4594 *)
4595   lt_cv_prog_gnu_ld=no
4596   ;;
4597 esac
4598 fi
4599 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4601 with_gnu_ld=$lt_cv_prog_gnu_ld
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4612 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4613 if test "${lt_cv_path_NM+set}" = set; then
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -n "$NM"; then
4617   # Let the user override the test.
4618   lt_cv_path_NM="$NM"
4619 else
4620   lt_nm_to_check="${ac_tool_prefix}nm"
4621   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4622     lt_nm_to_check="$lt_nm_to_check nm"
4623   fi
4624   for lt_tmp_nm in $lt_nm_to_check; do
4625     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4626     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4627       IFS="$lt_save_ifs"
4628       test -z "$ac_dir" && ac_dir=.
4629       tmp_nm="$ac_dir/$lt_tmp_nm"
4630       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4631         # Check to see if the nm accepts a BSD-compat flag.
4632         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4633         #   nm: unknown option "B" ignored
4634         # Tru64's nm complains that /dev/null is an invalid object file
4635         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4636         */dev/null* | *'Invalid file or object type'*)
4637           lt_cv_path_NM="$tmp_nm -B"
4638           break
4639           ;;
4640         *)
4641           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4642           */dev/null*)
4643             lt_cv_path_NM="$tmp_nm -p"
4644             break
4645             ;;
4646           *)
4647             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4648             continue # so that we can try to find one that supports BSD flags
4649             ;;
4650           esac
4651           ;;
4652         esac
4653       fi
4654     done
4655     IFS="$lt_save_ifs"
4656   done
4657   : ${lt_cv_path_NM=no}
4658 fi
4659 fi
4660 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4661 $as_echo "$lt_cv_path_NM" >&6; }
4662 if test "$lt_cv_path_NM" != "no"; then
4663   NM="$lt_cv_path_NM"
4664 else
4665   # Didn't find any BSD compatible name lister, look for dumpbin.
4666   if test -n "$ac_tool_prefix"; then
4667   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4668   do
4669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4674   $as_echo_n "(cached) " >&6
4675 else
4676   if test -n "$DUMPBIN"; then
4677   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   test -z "$as_dir" && as_dir=.
4684   for ac_exec_ext in '' $ac_executable_extensions; do
4685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4687     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688     break 2
4689   fi
4690 done
4691 done
4692 IFS=$as_save_IFS
4693
4694 fi
4695 fi
4696 DUMPBIN=$ac_cv_prog_DUMPBIN
4697 if test -n "$DUMPBIN"; then
4698   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4699 $as_echo "$DUMPBIN" >&6; }
4700 else
4701   { $as_echo "$as_me:$LINENO: result: no" >&5
4702 $as_echo "no" >&6; }
4703 fi
4704
4705
4706     test -n "$DUMPBIN" && break
4707   done
4708 fi
4709 if test -z "$DUMPBIN"; then
4710   ac_ct_DUMPBIN=$DUMPBIN
4711   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4712 do
4713   # Extract the first word of "$ac_prog", so it can be a program name with args.
4714 set dummy $ac_prog; ac_word=$2
4715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4718   $as_echo_n "(cached) " >&6
4719 else
4720   if test -n "$ac_ct_DUMPBIN"; then
4721   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728   for ac_exec_ext in '' $ac_executable_extensions; do
4729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733   fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4741 if test -n "$ac_ct_DUMPBIN"; then
4742   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4743 $as_echo "$ac_ct_DUMPBIN" >&6; }
4744 else
4745   { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750   test -n "$ac_ct_DUMPBIN" && break
4751 done
4752
4753   if test "x$ac_ct_DUMPBIN" = x; then
4754     DUMPBIN=":"
4755   else
4756     case $cross_compiling:$ac_tool_warned in
4757 yes:)
4758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760 ac_tool_warned=yes ;;
4761 esac
4762     DUMPBIN=$ac_ct_DUMPBIN
4763   fi
4764 fi
4765
4766
4767   if test "$DUMPBIN" != ":"; then
4768     NM="$DUMPBIN"
4769   fi
4770 fi
4771 test -z "$NM" && NM=nm
4772
4773
4774
4775
4776
4777
4778 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4780 if test "${lt_cv_nm_interface+set}" = set; then
4781   $as_echo_n "(cached) " >&6
4782 else
4783   lt_cv_nm_interface="BSD nm"
4784   echo "int some_variable = 0;" > conftest.$ac_ext
4785   (eval echo "\"\$as_me:4785: $ac_compile\"" >&5)
4786   (eval "$ac_compile" 2>conftest.err)
4787   cat conftest.err >&5
4788   (eval echo "\"\$as_me:4788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4789   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4790   cat conftest.err >&5
4791   (eval echo "\"\$as_me:4791: output\"" >&5)
4792   cat conftest.out >&5
4793   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4794     lt_cv_nm_interface="MS dumpbin"
4795   fi
4796   rm -f conftest*
4797 fi
4798 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4799 $as_echo "$lt_cv_nm_interface" >&6; }
4800
4801 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4802 $as_echo_n "checking whether ln -s works... " >&6; }
4803 LN_S=$as_ln_s
4804 if test "$LN_S" = "ln -s"; then
4805   { $as_echo "$as_me:$LINENO: result: yes" >&5
4806 $as_echo "yes" >&6; }
4807 else
4808   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4809 $as_echo "no, using $LN_S" >&6; }
4810 fi
4811
4812 # find the maximum length of command line arguments
4813 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4816   $as_echo_n "(cached) " >&6
4817 else
4818     i=0
4819   teststring="ABCD"
4820
4821   case $build_os in
4822   msdosdjgpp*)
4823     # On DJGPP, this test can blow up pretty badly due to problems in libc
4824     # (any single argument exceeding 2000 bytes causes a buffer overrun
4825     # during glob expansion).  Even if it were fixed, the result of this
4826     # check would be larger than it should be.
4827     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4828     ;;
4829
4830   gnu*)
4831     # Under GNU Hurd, this test is not required because there is
4832     # no limit to the length of command line arguments.
4833     # Libtool will interpret -1 as no limit whatsoever
4834     lt_cv_sys_max_cmd_len=-1;
4835     ;;
4836
4837   cygwin* | mingw* | cegcc*)
4838     # On Win9x/ME, this test blows up -- it succeeds, but takes
4839     # about 5 minutes as the teststring grows exponentially.
4840     # Worse, since 9x/ME are not pre-emptively multitasking,
4841     # you end up with a "frozen" computer, even though with patience
4842     # the test eventually succeeds (with a max line length of 256k).
4843     # Instead, let's just punt: use the minimum linelength reported by
4844     # all of the supported platforms: 8192 (on NT/2K/XP).
4845     lt_cv_sys_max_cmd_len=8192;
4846     ;;
4847
4848   amigaos*)
4849     # On AmigaOS with pdksh, this test takes hours, literally.
4850     # So we just punt and use a minimum line length of 8192.
4851     lt_cv_sys_max_cmd_len=8192;
4852     ;;
4853
4854   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4855     # This has been around since 386BSD, at least.  Likely further.
4856     if test -x /sbin/sysctl; then
4857       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4858     elif test -x /usr/sbin/sysctl; then
4859       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4860     else
4861       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4862     fi
4863     # And add a safety zone
4864     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4866     ;;
4867
4868   interix*)
4869     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4870     lt_cv_sys_max_cmd_len=196608
4871     ;;
4872
4873   osf*)
4874     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4875     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4876     # nice to cause kernel panics so lets avoid the loop below.
4877     # First set a reasonable default.
4878     lt_cv_sys_max_cmd_len=16384
4879     #
4880     if test -x /sbin/sysconfig; then
4881       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4882         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4883       esac
4884     fi
4885     ;;
4886   sco3.2v5*)
4887     lt_cv_sys_max_cmd_len=102400
4888     ;;
4889   sysv5* | sco5v6* | sysv4.2uw2*)
4890     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4891     if test -n "$kargmax"; then
4892       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4893     else
4894       lt_cv_sys_max_cmd_len=32768
4895     fi
4896     ;;
4897   *)
4898     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4899     if test -n "$lt_cv_sys_max_cmd_len"; then
4900       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4901       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4902     else
4903       # Make teststring a little bigger before we do anything with it.
4904       # a 1K string should be a reasonable start.
4905       for i in 1 2 3 4 5 6 7 8 ; do
4906         teststring=$teststring$teststring
4907       done
4908       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4909       # If test is not a shell built-in, we'll probably end up computing a
4910       # maximum length that is only half of the actual maximum length, but
4911       # we can't tell.
4912       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4913                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4914               test $i != 17 # 1/2 MB should be enough
4915       do
4916         i=`expr $i + 1`
4917         teststring=$teststring$teststring
4918       done
4919       # Only check the string length outside the loop.
4920       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4921       teststring=
4922       # Add a significant safety factor because C++ compilers can tack on
4923       # massive amounts of additional arguments before passing them to the
4924       # linker.  It appears as though 1/2 is a usable value.
4925       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4926     fi
4927     ;;
4928   esac
4929
4930 fi
4931
4932 if test -n $lt_cv_sys_max_cmd_len ; then
4933   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4934 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4935 else
4936   { $as_echo "$as_me:$LINENO: result: none" >&5
4937 $as_echo "none" >&6; }
4938 fi
4939 max_cmd_len=$lt_cv_sys_max_cmd_len
4940
4941
4942
4943
4944
4945
4946 : ${CP="cp -f"}
4947 : ${MV="mv -f"}
4948 : ${RM="rm -f"}
4949
4950 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4951 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4952 # Try some XSI features
4953 xsi_shell=no
4954 ( _lt_dummy="a/b/c"
4955   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4956       = c,a/b,, \
4957     && eval 'test $(( 1 + 1 )) -eq 2 \
4958     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4959   && xsi_shell=yes
4960 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4961 $as_echo "$xsi_shell" >&6; }
4962
4963
4964 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4965 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4966 lt_shell_append=no
4967 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4968     >/dev/null 2>&1 \
4969   && lt_shell_append=yes
4970 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4971 $as_echo "$lt_shell_append" >&6; }
4972
4973
4974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4975   lt_unset=unset
4976 else
4977   lt_unset=false
4978 fi
4979
4980
4981
4982
4983
4984 # test EBCDIC or ASCII
4985 case `echo X|tr X '\101'` in
4986  A) # ASCII based system
4987     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4988   lt_SP2NL='tr \040 \012'
4989   lt_NL2SP='tr \015\012 \040\040'
4990   ;;
4991  *) # EBCDIC based system
4992   lt_SP2NL='tr \100 \n'
4993   lt_NL2SP='tr \r\n \100\100'
4994   ;;
4995 esac
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5006 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5007 if test "${lt_cv_ld_reload_flag+set}" = set; then
5008   $as_echo_n "(cached) " >&6
5009 else
5010   lt_cv_ld_reload_flag='-r'
5011 fi
5012 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5013 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5014 reload_flag=$lt_cv_ld_reload_flag
5015 case $reload_flag in
5016 "" | " "*) ;;
5017 *) reload_flag=" $reload_flag" ;;
5018 esac
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020 case $host_os in
5021   darwin*)
5022     if test "$GCC" = yes; then
5023       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5024     else
5025       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026     fi
5027     ;;
5028 esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 if test -n "$ac_tool_prefix"; then
5039   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5044   $as_echo_n "(cached) " >&6
5045 else
5046   if test -n "$OBJDUMP"; then
5047   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5057     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 OBJDUMP=$ac_cv_prog_OBJDUMP
5067 if test -n "$OBJDUMP"; then
5068   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5069 $as_echo "$OBJDUMP" >&6; }
5070 else
5071   { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 fi
5077 if test -z "$ac_cv_prog_OBJDUMP"; then
5078   ac_ct_OBJDUMP=$OBJDUMP
5079   # Extract the first word of "objdump", so it can be a program name with args.
5080 set dummy objdump; ac_word=$2
5081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5084   $as_echo_n "(cached) " >&6
5085 else
5086   if test -n "$ac_ct_OBJDUMP"; then
5087   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5097     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5107 if test -n "$ac_ct_OBJDUMP"; then
5108   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5109 $as_echo "$ac_ct_OBJDUMP" >&6; }
5110 else
5111   { $as_echo "$as_me:$LINENO: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115   if test "x$ac_ct_OBJDUMP" = x; then
5116     OBJDUMP="false"
5117   else
5118     case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124     OBJDUMP=$ac_ct_OBJDUMP
5125   fi
5126 else
5127   OBJDUMP="$ac_cv_prog_OBJDUMP"
5128 fi
5129
5130 test -z "$OBJDUMP" && OBJDUMP=objdump
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5142 if test "${lt_cv_deplibs_check_method+set}" = set; then
5143   $as_echo_n "(cached) " >&6
5144 else
5145   lt_cv_file_magic_cmd='$MAGIC_CMD'
5146 lt_cv_file_magic_test_file=
5147 lt_cv_deplibs_check_method='unknown'
5148 # Need to set the preceding variable on all platforms that support
5149 # interlibrary dependencies.
5150 # 'none' -- dependencies not supported.
5151 # `unknown' -- same as none, but documents that we really don't know.
5152 # 'pass_all' -- all dependencies passed with no checks.
5153 # 'test_compile' -- check by making test program.
5154 # 'file_magic [[regex]]' -- check by looking for files in library path
5155 # which responds to the $file_magic_cmd with a given extended regex.
5156 # If you have `file' or equivalent on your system and you're not sure
5157 # whether `pass_all' will *always* work, you probably want this one.
5158
5159 case $host_os in
5160 aix[4-9]*)
5161   lt_cv_deplibs_check_method=pass_all
5162   ;;
5163
5164 beos*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 bsdi[45]*)
5169   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5170   lt_cv_file_magic_cmd='/usr/bin/file -L'
5171   lt_cv_file_magic_test_file=/shlib/libc.so
5172   ;;
5173
5174 cygwin*)
5175   # func_win32_libid is a shell function defined in ltmain.sh
5176   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177   lt_cv_file_magic_cmd='func_win32_libid'
5178   ;;
5179
5180 mingw* | pw32*)
5181   # Base MSYS/MinGW do not provide the 'file' command needed by
5182   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5183   # unless we find 'file', for example because we are cross-compiling.
5184   if ( file / ) >/dev/null 2>&1; then
5185     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5186     lt_cv_file_magic_cmd='func_win32_libid'
5187   else
5188     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5189     lt_cv_file_magic_cmd='$OBJDUMP -f'
5190   fi
5191   ;;
5192
5193 cegcc)
5194   # use the weaker test based on 'objdump'. See mingw*.
5195   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5196   lt_cv_file_magic_cmd='$OBJDUMP -f'
5197   ;;
5198
5199 darwin* | rhapsody*)
5200   lt_cv_deplibs_check_method=pass_all
5201   ;;
5202
5203 freebsd* | dragonfly*)
5204   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5205     case $host_cpu in
5206     i*86 )
5207       # Not sure whether the presence of OpenBSD here was a mistake.
5208       # Let's accept both of them until this is cleared up.
5209       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5210       lt_cv_file_magic_cmd=/usr/bin/file
5211       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212       ;;
5213     esac
5214   else
5215     lt_cv_deplibs_check_method=pass_all
5216   fi
5217   ;;
5218
5219 gnu*)
5220   lt_cv_deplibs_check_method=pass_all
5221   ;;
5222
5223 hpux10.20* | hpux11*)
5224   lt_cv_file_magic_cmd=/usr/bin/file
5225   case $host_cpu in
5226   ia64*)
5227     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5228     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5229     ;;
5230   hppa*64*)
5231     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]'
5232     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5233     ;;
5234   *)
5235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5236     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5237     ;;
5238   esac
5239   ;;
5240
5241 interix[3-9]*)
5242   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5243   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5244   ;;
5245
5246 irix5* | irix6* | nonstopux*)
5247   case $LD in
5248   *-32|*"-32 ") libmagic=32-bit;;
5249   *-n32|*"-n32 ") libmagic=N32;;
5250   *-64|*"-64 ") libmagic=64-bit;;
5251   *) libmagic=never-match;;
5252   esac
5253   lt_cv_deplibs_check_method=pass_all
5254   ;;
5255
5256 # This must be Linux ELF.
5257 linux* | k*bsd*-gnu)
5258   lt_cv_deplibs_check_method=pass_all
5259   ;;
5260
5261 netbsd*)
5262   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5264   else
5265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5266   fi
5267   ;;
5268
5269 newos6*)
5270   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5271   lt_cv_file_magic_cmd=/usr/bin/file
5272   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5273   ;;
5274
5275 *nto* | *qnx*)
5276   lt_cv_deplibs_check_method=pass_all
5277   ;;
5278
5279 openbsd*)
5280   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5281     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5282   else
5283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5284   fi
5285   ;;
5286
5287 osf3* | osf4* | osf5*)
5288   lt_cv_deplibs_check_method=pass_all
5289   ;;
5290
5291 rdos*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5294
5295 solaris*)
5296   lt_cv_deplibs_check_method=pass_all
5297   ;;
5298
5299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 sysv4 | sysv4.3*)
5304   case $host_vendor in
5305   motorola)
5306     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]'
5307     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5308     ;;
5309   ncr)
5310     lt_cv_deplibs_check_method=pass_all
5311     ;;
5312   sequent)
5313     lt_cv_file_magic_cmd='/bin/file'
5314     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5315     ;;
5316   sni)
5317     lt_cv_file_magic_cmd='/bin/file'
5318     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5319     lt_cv_file_magic_test_file=/lib/libc.so
5320     ;;
5321   siemens)
5322     lt_cv_deplibs_check_method=pass_all
5323     ;;
5324   pc)
5325     lt_cv_deplibs_check_method=pass_all
5326     ;;
5327   esac
5328   ;;
5329
5330 tpf*)
5331   lt_cv_deplibs_check_method=pass_all
5332   ;;
5333 esac
5334
5335 fi
5336 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5337 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5338 file_magic_cmd=$lt_cv_file_magic_cmd
5339 deplibs_check_method=$lt_cv_deplibs_check_method
5340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 if test -n "$ac_tool_prefix"; then
5354   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}ar; ac_word=$2
5356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_prog_AR+set}" = set; then
5359   $as_echo_n "(cached) " >&6
5360 else
5361   if test -n "$AR"; then
5362   ac_cv_prog_AR="$AR" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   test -z "$as_dir" && as_dir=.
5369   for ac_exec_ext in '' $ac_executable_extensions; do
5370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371     ac_cv_prog_AR="${ac_tool_prefix}ar"
5372     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 AR=$ac_cv_prog_AR
5382 if test -n "$AR"; then
5383   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5384 $as_echo "$AR" >&6; }
5385 else
5386   { $as_echo "$as_me:$LINENO: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 fi
5392 if test -z "$ac_cv_prog_AR"; then
5393   ac_ct_AR=$AR
5394   # Extract the first word of "ar", so it can be a program name with args.
5395 set dummy ar; ac_word=$2
5396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$ac_ct_AR"; then
5402   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409   for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_ac_ct_AR="ar"
5412     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5422 if test -n "$ac_ct_AR"; then
5423   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5424 $as_echo "$ac_ct_AR" >&6; }
5425 else
5426   { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430   if test "x$ac_ct_AR" = x; then
5431     AR="false"
5432   else
5433     case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439     AR=$ac_ct_AR
5440   fi
5441 else
5442   AR="$ac_cv_prog_AR"
5443 fi
5444
5445 test -z "$AR" && AR=ar
5446 test -z "$AR_FLAGS" && AR_FLAGS=cru
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 if test -n "$ac_tool_prefix"; then
5459   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5460 set dummy ${ac_tool_prefix}strip; ac_word=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_STRIP+set}" = set; then
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$STRIP"; then
5467   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5477     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 STRIP=$ac_cv_prog_STRIP
5487 if test -n "$STRIP"; then
5488   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5489 $as_echo "$STRIP" >&6; }
5490 else
5491   { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 fi
5497 if test -z "$ac_cv_prog_STRIP"; then
5498   ac_ct_STRIP=$STRIP
5499   # Extract the first word of "strip", so it can be a program name with args.
5500 set dummy strip; ac_word=$2
5501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5504   $as_echo_n "(cached) " >&6
5505 else
5506   if test -n "$ac_ct_STRIP"; then
5507   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516     ac_cv_prog_ac_ct_STRIP="strip"
5517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5527 if test -n "$ac_ct_STRIP"; then
5528   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5529 $as_echo "$ac_ct_STRIP" >&6; }
5530 else
5531   { $as_echo "$as_me:$LINENO: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535   if test "x$ac_ct_STRIP" = x; then
5536     STRIP=":"
5537   else
5538     case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544     STRIP=$ac_ct_STRIP
5545   fi
5546 else
5547   STRIP="$ac_cv_prog_STRIP"
5548 fi
5549
5550 test -z "$STRIP" && STRIP=:
5551
5552
5553
5554
5555
5556
5557 if test -n "$ac_tool_prefix"; then
5558   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if test "${ac_cv_prog_RANLIB+set}" = set; then
5563   $as_echo_n "(cached) " >&6
5564 else
5565   if test -n "$RANLIB"; then
5566   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571   IFS=$as_save_IFS
5572   test -z "$as_dir" && as_dir=.
5573   for ac_exec_ext in '' $ac_executable_extensions; do
5574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5576     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577     break 2
5578   fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 RANLIB=$ac_cv_prog_RANLIB
5586 if test -n "$RANLIB"; then
5587   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5588 $as_echo "$RANLIB" >&6; }
5589 else
5590   { $as_echo "$as_me:$LINENO: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595 fi
5596 if test -z "$ac_cv_prog_RANLIB"; then
5597   ac_ct_RANLIB=$RANLIB
5598   # Extract the first word of "ranlib", so it can be a program name with args.
5599 set dummy ranlib; ac_word=$2
5600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$ac_ct_RANLIB"; then
5606   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_exec_ext in '' $ac_executable_extensions; do
5614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615     ac_cv_prog_ac_ct_RANLIB="ranlib"
5616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5626 if test -n "$ac_ct_RANLIB"; then
5627   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5628 $as_echo "$ac_ct_RANLIB" >&6; }
5629 else
5630   { $as_echo "$as_me:$LINENO: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634   if test "x$ac_ct_RANLIB" = x; then
5635     RANLIB=":"
5636   else
5637     case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643     RANLIB=$ac_ct_RANLIB
5644   fi
5645 else
5646   RANLIB="$ac_cv_prog_RANLIB"
5647 fi
5648
5649 test -z "$RANLIB" && RANLIB=:
5650
5651
5652
5653
5654
5655
5656 # Determine commands to create old-style static archives.
5657 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5658 old_postinstall_cmds='chmod 644 $oldlib'
5659 old_postuninstall_cmds=
5660
5661 if test -n "$RANLIB"; then
5662   case $host_os in
5663   openbsd*)
5664     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5665     ;;
5666   *)
5667     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5668     ;;
5669   esac
5670   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5671 fi
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 # If no C compiler was specified, use CC.
5707 LTCC=${LTCC-"$CC"}
5708
5709 # If no C compiler flags were specified, use CFLAGS.
5710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5711
5712 # Allow CC to be a program name with arguments.
5713 compiler=$CC
5714
5715
5716 # Check for command to grab the raw symbol name followed by C symbol from nm.
5717 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5720   $as_echo_n "(cached) " >&6
5721 else
5722
5723 # These are sane defaults that work on at least a few old systems.
5724 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5725
5726 # Character class describing NM global symbol codes.
5727 symcode='[BCDEGRST]'
5728
5729 # Regexp to match symbols that can be accessed directly from C.
5730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5731
5732 # Define system-specific variables.
5733 case $host_os in
5734 aix*)
5735   symcode='[BCDT]'
5736   ;;
5737 cygwin* | mingw* | pw32* | cegcc*)
5738   symcode='[ABCDGISTW]'
5739   ;;
5740 hpux*)
5741   if test "$host_cpu" = ia64; then
5742     symcode='[ABCDEGRST]'
5743   fi
5744   ;;
5745 irix* | nonstopux*)
5746   symcode='[BCDEGRST]'
5747   ;;
5748 osf*)
5749   symcode='[BCDEGQRST]'
5750   ;;
5751 solaris*)
5752   symcode='[BDRT]'
5753   ;;
5754 sco3.2v5*)
5755   symcode='[DT]'
5756   ;;
5757 sysv4.2uw2*)
5758   symcode='[DT]'
5759   ;;
5760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5761   symcode='[ABDT]'
5762   ;;
5763 sysv4)
5764   symcode='[DFNSTU]'
5765   ;;
5766 esac
5767
5768 # If we're using GNU nm, then use its standard symbol codes.
5769 case `$NM -V 2>&1` in
5770 *GNU* | *'with BFD'*)
5771   symcode='[ABCDGIRSTW]' ;;
5772 esac
5773
5774 # Transform an extracted symbol line into a proper C declaration.
5775 # Some systems (esp. on ia64) link data and code symbols differently,
5776 # so use this general approach.
5777 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5778
5779 # Transform an extracted symbol line into symbol name and symbol address
5780 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5781 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'"
5782
5783 # Handle CRLF in mingw tool chain
5784 opt_cr=
5785 case $build_os in
5786 mingw*)
5787   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5788   ;;
5789 esac
5790
5791 # Try without a prefix underscore, then with it.
5792 for ac_symprfx in "" "_"; do
5793
5794   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5795   symxfrm="\\1 $ac_symprfx\\2 \\2"
5796
5797   # Write the raw and C identifiers.
5798   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5799     # Fake it for dumpbin and say T for any non-static function
5800     # and D for any global variable.
5801     # Also find C++ and __fastcall symbols from MSVC++,
5802     # which start with @ or ?.
5803     lt_cv_sys_global_symbol_pipe="$AWK '"\
5804 "     {last_section=section; section=\$ 3};"\
5805 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5806 "     \$ 0!~/External *\|/{next};"\
5807 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5808 "     {if(hide[section]) next};"\
5809 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5810 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5811 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5812 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5813 "     ' prfx=^$ac_symprfx"
5814   else
5815     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5816   fi
5817
5818   # Check to see that the pipe works correctly.
5819   pipe_works=no
5820
5821   rm -f conftest*
5822   cat > conftest.$ac_ext <<_LT_EOF
5823 #ifdef __cplusplus
5824 extern "C" {
5825 #endif
5826 char nm_test_var;
5827 void nm_test_func(void);
5828 void nm_test_func(void){}
5829 #ifdef __cplusplus
5830 }
5831 #endif
5832 int main(){nm_test_var='a';nm_test_func();return(0);}
5833 _LT_EOF
5834
5835   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836   (eval $ac_compile) 2>&5
5837   ac_status=$?
5838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; then
5840     # Now try to grab the symbols.
5841     nlist=conftest.nm
5842     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5843   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5844   ac_status=$?
5845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); } && test -s "$nlist"; then
5847       # Try sorting and uniquifying the output.
5848       if sort "$nlist" | uniq > "$nlist"T; then
5849         mv -f "$nlist"T "$nlist"
5850       else
5851         rm -f "$nlist"T
5852       fi
5853
5854       # Make sure that we snagged all the symbols we need.
5855       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5856         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5857           cat <<_LT_EOF > conftest.$ac_ext
5858 #ifdef __cplusplus
5859 extern "C" {
5860 #endif
5861
5862 _LT_EOF
5863           # Now generate the symbol file.
5864           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5865
5866           cat <<_LT_EOF >> conftest.$ac_ext
5867
5868 /* The mapping between symbol names and symbols.  */
5869 const struct {
5870   const char *name;
5871   void       *address;
5872 }
5873 lt__PROGRAM__LTX_preloaded_symbols[] =
5874 {
5875   { "@PROGRAM@", (void *) 0 },
5876 _LT_EOF
5877           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5878           cat <<\_LT_EOF >> conftest.$ac_ext
5879   {0, (void *) 0}
5880 };
5881
5882 /* This works around a problem in FreeBSD linker */
5883 #ifdef FREEBSD_WORKAROUND
5884 static const void *lt_preloaded_setup() {
5885   return lt__PROGRAM__LTX_preloaded_symbols;
5886 }
5887 #endif
5888
5889 #ifdef __cplusplus
5890 }
5891 #endif
5892 _LT_EOF
5893           # Now try linking the two files.
5894           mv conftest.$ac_objext conftstm.$ac_objext
5895           lt_save_LIBS="$LIBS"
5896           lt_save_CFLAGS="$CFLAGS"
5897           LIBS="conftstm.$ac_objext"
5898           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5899           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900   (eval $ac_link) 2>&5
5901   ac_status=$?
5902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5904             pipe_works=yes
5905           fi
5906           LIBS="$lt_save_LIBS"
5907           CFLAGS="$lt_save_CFLAGS"
5908         else
5909           echo "cannot find nm_test_func in $nlist" >&5
5910         fi
5911       else
5912         echo "cannot find nm_test_var in $nlist" >&5
5913       fi
5914     else
5915       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5916     fi
5917   else
5918     echo "$progname: failed program was:" >&5
5919     cat conftest.$ac_ext >&5
5920   fi
5921   rm -rf conftest* conftst*
5922
5923   # Do not use the global_symbol_pipe unless it works.
5924   if test "$pipe_works" = yes; then
5925     break
5926   else
5927     lt_cv_sys_global_symbol_pipe=
5928   fi
5929 done
5930
5931 fi
5932
5933 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5934   lt_cv_sys_global_symbol_to_cdecl=
5935 fi
5936 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5937   { $as_echo "$as_me:$LINENO: result: failed" >&5
5938 $as_echo "failed" >&6; }
5939 else
5940   { $as_echo "$as_me:$LINENO: result: ok" >&5
5941 $as_echo "ok" >&6; }
5942 fi
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 # Check whether --enable-libtool-lock was given.
5967 if test "${enable_libtool_lock+set}" = set; then
5968   enableval=$enable_libtool_lock;
5969 fi
5970
5971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5972
5973 # Some flags need to be propagated to the compiler or linker for good
5974 # libtool support.
5975 case $host in
5976 ia64-*-hpux*)
5977   # Find out which ABI we are using.
5978   echo 'int i;' > conftest.$ac_ext
5979   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980   (eval $ac_compile) 2>&5
5981   ac_status=$?
5982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; then
5984     case `/usr/bin/file conftest.$ac_objext` in
5985       *ELF-32*)
5986         HPUX_IA64_MODE="32"
5987         ;;
5988       *ELF-64*)
5989         HPUX_IA64_MODE="64"
5990         ;;
5991     esac
5992   fi
5993   rm -rf conftest*
5994   ;;
5995 *-*-irix6*)
5996   # Find out which ABI we are using.
5997   echo '#line 5997 "configure"' > conftest.$ac_ext
5998   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999   (eval $ac_compile) 2>&5
6000   ac_status=$?
6001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; then
6003     if test "$lt_cv_prog_gnu_ld" = yes; then
6004       case `/usr/bin/file conftest.$ac_objext` in
6005         *32-bit*)
6006           LD="${LD-ld} -melf32bsmip"
6007           ;;
6008         *N32*)
6009           LD="${LD-ld} -melf32bmipn32"
6010           ;;
6011         *64-bit*)
6012           LD="${LD-ld} -melf64bmip"
6013         ;;
6014       esac
6015     else
6016       case `/usr/bin/file conftest.$ac_objext` in
6017         *32-bit*)
6018           LD="${LD-ld} -32"
6019           ;;
6020         *N32*)
6021           LD="${LD-ld} -n32"
6022           ;;
6023         *64-bit*)
6024           LD="${LD-ld} -64"
6025           ;;
6026       esac
6027     fi
6028   fi
6029   rm -rf conftest*
6030   ;;
6031
6032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6034   # Find out which ABI we are using.
6035   echo 'int i;' > conftest.$ac_ext
6036   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037   (eval $ac_compile) 2>&5
6038   ac_status=$?
6039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); }; then
6041     case `/usr/bin/file conftest.o` in
6042       *32-bit*)
6043         case $host in
6044           x86_64-*kfreebsd*-gnu)
6045             LD="${LD-ld} -m elf_i386_fbsd"
6046             ;;
6047           x86_64-*linux*)
6048             LD="${LD-ld} -m elf_i386"
6049             ;;
6050           ppc64-*linux*|powerpc64-*linux*)
6051             LD="${LD-ld} -m elf32ppclinux"
6052             ;;
6053           s390x-*linux*)
6054             LD="${LD-ld} -m elf_s390"
6055             ;;
6056           sparc64-*linux*)
6057             LD="${LD-ld} -m elf32_sparc"
6058             ;;
6059         esac
6060         ;;
6061       *64-bit*)
6062         case $host in
6063           x86_64-*kfreebsd*-gnu)
6064             LD="${LD-ld} -m elf_x86_64_fbsd"
6065             ;;
6066           x86_64-*linux*)
6067             LD="${LD-ld} -m elf_x86_64"
6068             ;;
6069           ppc*-*linux*|powerpc*-*linux*)
6070             LD="${LD-ld} -m elf64ppc"
6071             ;;
6072           s390*-*linux*|s390*-*tpf*)
6073             LD="${LD-ld} -m elf64_s390"
6074             ;;
6075           sparc*-*linux*)
6076             LD="${LD-ld} -m elf64_sparc"
6077             ;;
6078         esac
6079         ;;
6080     esac
6081   fi
6082   rm -rf conftest*
6083   ;;
6084
6085 *-*-sco3.2v5*)
6086   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6087   SAVE_CFLAGS="$CFLAGS"
6088   CFLAGS="$CFLAGS -belf"
6089   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6090 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6091 if test "${lt_cv_cc_needs_belf+set}" = set; then
6092   $as_echo_n "(cached) " >&6
6093 else
6094   ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100      cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106
6107 int
6108 main ()
6109 {
6110
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (ac_try="$ac_link"
6117 case "(($ac_try" in
6118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119   *) ac_try_echo=$ac_try;;
6120 esac
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123   (eval "$ac_link") 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } && {
6130          test -z "$ac_c_werror_flag" ||
6131          test ! -s conftest.err
6132        } && test -s conftest$ac_exeext && {
6133          test "$cross_compiling" = yes ||
6134          $as_test_x conftest$ac_exeext
6135        }; then
6136   lt_cv_cc_needs_belf=yes
6137 else
6138   $as_echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141         lt_cv_cc_needs_belf=no
6142 fi
6143
6144 rm -rf conftest.dSYM
6145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6146       conftest$ac_exeext conftest.$ac_ext
6147      ac_ext=c
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153 fi
6154 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6155 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6156   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6157     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6158     CFLAGS="$SAVE_CFLAGS"
6159   fi
6160   ;;
6161 sparc*-*solaris*)
6162   # Find out which ABI we are using.
6163   echo 'int i;' > conftest.$ac_ext
6164   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165   (eval $ac_compile) 2>&5
6166   ac_status=$?
6167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; then
6169     case `/usr/bin/file conftest.o` in
6170     *64-bit*)
6171       case $lt_cv_prog_gnu_ld in
6172       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6173       *)
6174         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6175           LD="${LD-ld} -64"
6176         fi
6177         ;;
6178       esac
6179       ;;
6180     esac
6181   fi
6182   rm -rf conftest*
6183   ;;
6184 esac
6185
6186 need_locks="$enable_libtool_lock"
6187
6188
6189   case $host_os in
6190     rhapsody* | darwin*)
6191     if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$DSYMUTIL"; then
6200   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6210     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6220 if test -n "$DSYMUTIL"; then
6221   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6222 $as_echo "$DSYMUTIL" >&6; }
6223 else
6224   { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_DSYMUTIL"; then
6231   ac_ct_DSYMUTIL=$DSYMUTIL
6232   # Extract the first word of "dsymutil", so it can be a program name with args.
6233 set dummy dsymutil; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -n "$ac_ct_DSYMUTIL"; then
6240   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6250     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6260 if test -n "$ac_ct_DSYMUTIL"; then
6261   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6262 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6263 else
6264   { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_DSYMUTIL" = x; then
6269     DSYMUTIL=":"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     DSYMUTIL=$ac_ct_DSYMUTIL
6278   fi
6279 else
6280   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6281 fi
6282
6283     if test -n "$ac_tool_prefix"; then
6284   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$NMEDIT"; then
6292   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299   for ac_exec_ext in '' $ac_executable_extensions; do
6300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6302     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 NMEDIT=$ac_cv_prog_NMEDIT
6312 if test -n "$NMEDIT"; then
6313   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6314 $as_echo "$NMEDIT" >&6; }
6315 else
6316   { $as_echo "$as_me:$LINENO: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320
6321 fi
6322 if test -z "$ac_cv_prog_NMEDIT"; then
6323   ac_ct_NMEDIT=$NMEDIT
6324   # Extract the first word of "nmedit", so it can be a program name with args.
6325 set dummy nmedit; ac_word=$2
6326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -n "$ac_ct_NMEDIT"; then
6332   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339   for ac_exec_ext in '' $ac_executable_extensions; do
6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6352 if test -n "$ac_ct_NMEDIT"; then
6353   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6354 $as_echo "$ac_ct_NMEDIT" >&6; }
6355 else
6356   { $as_echo "$as_me:$LINENO: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360   if test "x$ac_ct_NMEDIT" = x; then
6361     NMEDIT=":"
6362   else
6363     case $cross_compiling:$ac_tool_warned in
6364 yes:)
6365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6368 esac
6369     NMEDIT=$ac_ct_NMEDIT
6370   fi
6371 else
6372   NMEDIT="$ac_cv_prog_NMEDIT"
6373 fi
6374
6375     if test -n "$ac_tool_prefix"; then
6376   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_LIPO+set}" = set; then
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$LIPO"; then
6384   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391   for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6394     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 LIPO=$ac_cv_prog_LIPO
6404 if test -n "$LIPO"; then
6405   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6406 $as_echo "$LIPO" >&6; }
6407 else
6408   { $as_echo "$as_me:$LINENO: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413 fi
6414 if test -z "$ac_cv_prog_LIPO"; then
6415   ac_ct_LIPO=$LIPO
6416   # Extract the first word of "lipo", so it can be a program name with args.
6417 set dummy lipo; ac_word=$2
6418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$ac_ct_LIPO"; then
6424   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431   for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_ac_ct_LIPO="lipo"
6434     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6444 if test -n "$ac_ct_LIPO"; then
6445   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6446 $as_echo "$ac_ct_LIPO" >&6; }
6447 else
6448   { $as_echo "$as_me:$LINENO: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452   if test "x$ac_ct_LIPO" = x; then
6453     LIPO=":"
6454   else
6455     case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461     LIPO=$ac_ct_LIPO
6462   fi
6463 else
6464   LIPO="$ac_cv_prog_LIPO"
6465 fi
6466
6467     if test -n "$ac_tool_prefix"; then
6468   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}otool; ac_word=$2
6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_prog_OTOOL+set}" = set; then
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$OTOOL"; then
6476   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483   for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6486     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 OTOOL=$ac_cv_prog_OTOOL
6496 if test -n "$OTOOL"; then
6497   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6498 $as_echo "$OTOOL" >&6; }
6499 else
6500   { $as_echo "$as_me:$LINENO: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504
6505 fi
6506 if test -z "$ac_cv_prog_OTOOL"; then
6507   ac_ct_OTOOL=$OTOOL
6508   # Extract the first word of "otool", so it can be a program name with args.
6509 set dummy otool; ac_word=$2
6510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6513   $as_echo_n "(cached) " >&6
6514 else
6515   if test -n "$ac_ct_OTOOL"; then
6516   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523   for ac_exec_ext in '' $ac_executable_extensions; do
6524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525     ac_cv_prog_ac_ct_OTOOL="otool"
6526     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6536 if test -n "$ac_ct_OTOOL"; then
6537   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6538 $as_echo "$ac_ct_OTOOL" >&6; }
6539 else
6540   { $as_echo "$as_me:$LINENO: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544   if test "x$ac_ct_OTOOL" = x; then
6545     OTOOL=":"
6546   else
6547     case $cross_compiling:$ac_tool_warned in
6548 yes:)
6549 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned=yes ;;
6552 esac
6553     OTOOL=$ac_ct_OTOOL
6554   fi
6555 else
6556   OTOOL="$ac_cv_prog_OTOOL"
6557 fi
6558
6559     if test -n "$ac_tool_prefix"; then
6560   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6565   $as_echo_n "(cached) " >&6
6566 else
6567   if test -n "$OTOOL64"; then
6568   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573   IFS=$as_save_IFS
6574   test -z "$as_dir" && as_dir=.
6575   for ac_exec_ext in '' $ac_executable_extensions; do
6576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6578     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579     break 2
6580   fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6584
6585 fi
6586 fi
6587 OTOOL64=$ac_cv_prog_OTOOL64
6588 if test -n "$OTOOL64"; then
6589   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6590 $as_echo "$OTOOL64" >&6; }
6591 else
6592   { $as_echo "$as_me:$LINENO: result: no" >&5
6593 $as_echo "no" >&6; }
6594 fi
6595
6596
6597 fi
6598 if test -z "$ac_cv_prog_OTOOL64"; then
6599   ac_ct_OTOOL64=$OTOOL64
6600   # Extract the first word of "otool64", so it can be a program name with args.
6601 set dummy otool64; ac_word=$2
6602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6605   $as_echo_n "(cached) " >&6
6606 else
6607   if test -n "$ac_ct_OTOOL64"; then
6608   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_prog_ac_ct_OTOOL64="otool64"
6618     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6628 if test -n "$ac_ct_OTOOL64"; then
6629   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6630 $as_echo "$ac_ct_OTOOL64" >&6; }
6631 else
6632   { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636   if test "x$ac_ct_OTOOL64" = x; then
6637     OTOOL64=":"
6638   else
6639     case $cross_compiling:$ac_tool_warned in
6640 yes:)
6641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6643 ac_tool_warned=yes ;;
6644 esac
6645     OTOOL64=$ac_ct_OTOOL64
6646   fi
6647 else
6648   OTOOL64="$ac_cv_prog_OTOOL64"
6649 fi
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6678 $as_echo_n "checking for -single_module linker flag... " >&6; }
6679 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6680   $as_echo_n "(cached) " >&6
6681 else
6682   lt_cv_apple_cc_single_mod=no
6683       if test -z "${LT_MULTI_MODULE}"; then
6684         # By default we will add the -single_module flag. You can override
6685         # by either setting the environment variable LT_MULTI_MODULE
6686         # non-empty at configure time, or by adding -multi_module to the
6687         # link flags.
6688         rm -rf libconftest.dylib*
6689         echo "int foo(void){return 1;}" > conftest.c
6690         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6691 -dynamiclib -Wl,-single_module conftest.c" >&5
6692         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6693           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6694         _lt_result=$?
6695         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6696           lt_cv_apple_cc_single_mod=yes
6697         else
6698           cat conftest.err >&5
6699         fi
6700         rm -rf libconftest.dylib*
6701         rm -f conftest.*
6702       fi
6703 fi
6704 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6705 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6706     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6707 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6708 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6709   $as_echo_n "(cached) " >&6
6710 else
6711   lt_cv_ld_exported_symbols_list=no
6712       save_LDFLAGS=$LDFLAGS
6713       echo "_main" > conftest.sym
6714       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6715       cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721
6722 int
6723 main ()
6724 {
6725
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6732 case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738   (eval "$ac_link") 2>conftest.er1
6739   ac_status=$?
6740   grep -v '^ *+' conftest.er1 >conftest.err
6741   rm -f conftest.er1
6742   cat conftest.err >&5
6743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } && {
6745          test -z "$ac_c_werror_flag" ||
6746          test ! -s conftest.err
6747        } && test -s conftest$ac_exeext && {
6748          test "$cross_compiling" = yes ||
6749          $as_test_x conftest$ac_exeext
6750        }; then
6751   lt_cv_ld_exported_symbols_list=yes
6752 else
6753   $as_echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756         lt_cv_ld_exported_symbols_list=no
6757 fi
6758
6759 rm -rf conftest.dSYM
6760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6761       conftest$ac_exeext conftest.$ac_ext
6762         LDFLAGS="$save_LDFLAGS"
6763
6764 fi
6765 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6766 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6767     case $host_os in
6768     rhapsody* | darwin1.[012])
6769       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6770     darwin1.*)
6771       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6772     darwin*) # darwin 5.x on
6773       # if running on 10.5 or later, the deployment target defaults
6774       # to the OS version, if on x86, and 10.4, the deployment
6775       # target defaults to 10.4. Don't you love it?
6776       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6777         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6778           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6779         10.[012]*)
6780           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6781         10.*)
6782           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6783       esac
6784     ;;
6785   esac
6786     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6787       _lt_dar_single_mod='$single_module'
6788     fi
6789     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6790       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6791     else
6792       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6793     fi
6794     if test "$DSYMUTIL" != ":"; then
6795       _lt_dsymutil='~$DSYMUTIL $lib || :'
6796     else
6797       _lt_dsymutil=
6798     fi
6799     ;;
6800   esac
6801
6802 ac_ext=c
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6809 # On Suns, sometimes $CPP names a directory.
6810 if test -n "$CPP" && test -d "$CPP"; then
6811   CPP=
6812 fi
6813 if test -z "$CPP"; then
6814   if test "${ac_cv_prog_CPP+set}" = set; then
6815   $as_echo_n "(cached) " >&6
6816 else
6817       # Double quotes because CPP needs to be expanded
6818     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6819     do
6820       ac_preproc_ok=false
6821 for ac_c_preproc_warn_flag in '' yes
6822 do
6823   # Use a header file that comes with gcc, so configuring glibc
6824   # with a fresh cross-compiler works.
6825   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826   # <limits.h> exists even on freestanding compilers.
6827   # On the NeXT, cc -E runs the code through the compiler's parser,
6828   # not just through cpp. "Syntax error" is here to catch this case.
6829   cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835 #ifdef __STDC__
6836 # include <limits.h>
6837 #else
6838 # include <assert.h>
6839 #endif
6840                      Syntax error
6841 _ACEOF
6842 if { (ac_try="$ac_cpp conftest.$ac_ext"
6843 case "(($ac_try" in
6844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845   *) ac_try_echo=$ac_try;;
6846 esac
6847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6848 $as_echo "$ac_try_echo") >&5
6849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6850   ac_status=$?
6851   grep -v '^ *+' conftest.er1 >conftest.err
6852   rm -f conftest.er1
6853   cat conftest.err >&5
6854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); } >/dev/null && {
6856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6857          test ! -s conftest.err
6858        }; then
6859   :
6860 else
6861   $as_echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864   # Broken: fails on valid input.
6865 continue
6866 fi
6867
6868 rm -f conftest.err conftest.$ac_ext
6869
6870   # OK, works on sane cases.  Now check whether nonexistent headers
6871   # can be detected and how.
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #include <ac_nonexistent.h>
6879 _ACEOF
6880 if { (ac_try="$ac_cpp conftest.$ac_ext"
6881 case "(($ac_try" in
6882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883   *) ac_try_echo=$ac_try;;
6884 esac
6885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886 $as_echo "$ac_try_echo") >&5
6887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6888   ac_status=$?
6889   grep -v '^ *+' conftest.er1 >conftest.err
6890   rm -f conftest.er1
6891   cat conftest.err >&5
6892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } >/dev/null && {
6894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6895          test ! -s conftest.err
6896        }; then
6897   # Broken: success on invalid input.
6898 continue
6899 else
6900   $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903   # Passes both tests.
6904 ac_preproc_ok=:
6905 break
6906 fi
6907
6908 rm -f conftest.err conftest.$ac_ext
6909
6910 done
6911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6912 rm -f conftest.err conftest.$ac_ext
6913 if $ac_preproc_ok; then
6914   break
6915 fi
6916
6917     done
6918     ac_cv_prog_CPP=$CPP
6919
6920 fi
6921   CPP=$ac_cv_prog_CPP
6922 else
6923   ac_cv_prog_CPP=$CPP
6924 fi
6925 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6926 $as_echo "$CPP" >&6; }
6927 ac_preproc_ok=false
6928 for ac_c_preproc_warn_flag in '' yes
6929 do
6930   # Use a header file that comes with gcc, so configuring glibc
6931   # with a fresh cross-compiler works.
6932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6933   # <limits.h> exists even on freestanding compilers.
6934   # On the NeXT, cc -E runs the code through the compiler's parser,
6935   # not just through cpp. "Syntax error" is here to catch this case.
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 #ifdef __STDC__
6943 # include <limits.h>
6944 #else
6945 # include <assert.h>
6946 #endif
6947                      Syntax error
6948 _ACEOF
6949 if { (ac_try="$ac_cpp conftest.$ac_ext"
6950 case "(($ac_try" in
6951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952   *) ac_try_echo=$ac_try;;
6953 esac
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6957   ac_status=$?
6958   grep -v '^ *+' conftest.er1 >conftest.err
6959   rm -f conftest.er1
6960   cat conftest.err >&5
6961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } >/dev/null && {
6963          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6964          test ! -s conftest.err
6965        }; then
6966   :
6967 else
6968   $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971   # Broken: fails on valid input.
6972 continue
6973 fi
6974
6975 rm -f conftest.err conftest.$ac_ext
6976
6977   # OK, works on sane cases.  Now check whether nonexistent headers
6978   # can be detected and how.
6979   cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985 #include <ac_nonexistent.h>
6986 _ACEOF
6987 if { (ac_try="$ac_cpp conftest.$ac_ext"
6988 case "(($ac_try" in
6989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990   *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6995   ac_status=$?
6996   grep -v '^ *+' conftest.er1 >conftest.err
6997   rm -f conftest.er1
6998   cat conftest.err >&5
6999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } >/dev/null && {
7001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002          test ! -s conftest.err
7003        }; then
7004   # Broken: success on invalid input.
7005 continue
7006 else
7007   $as_echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010   # Passes both tests.
7011 ac_preproc_ok=:
7012 break
7013 fi
7014
7015 rm -f conftest.err conftest.$ac_ext
7016
7017 done
7018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7019 rm -f conftest.err conftest.$ac_ext
7020 if $ac_preproc_ok; then
7021   :
7022 else
7023   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7025 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7026 See \`config.log' for more details." >&5
7027 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7028 See \`config.log' for more details." >&2;}
7029    { (exit 1); exit 1; }; }; }
7030 fi
7031
7032 ac_ext=c
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037
7038
7039 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7040 $as_echo_n "checking for ANSI C header files... " >&6; }
7041 if test "${ac_cv_header_stdc+set}" = set; then
7042   $as_echo_n "(cached) " >&6
7043 else
7044   cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h.  */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h.  */
7050 #include <stdlib.h>
7051 #include <stdarg.h>
7052 #include <string.h>
7053 #include <float.h>
7054
7055 int
7056 main ()
7057 {
7058
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest.$ac_objext
7064 if { (ac_try="$ac_compile"
7065 case "(($ac_try" in
7066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067   *) ac_try_echo=$ac_try;;
7068 esac
7069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7070 $as_echo "$ac_try_echo") >&5
7071   (eval "$ac_compile") 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && {
7078          test -z "$ac_c_werror_flag" ||
7079          test ! -s conftest.err
7080        } && test -s conftest.$ac_objext; then
7081   ac_cv_header_stdc=yes
7082 else
7083   $as_echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086         ac_cv_header_stdc=no
7087 fi
7088
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090
7091 if test $ac_cv_header_stdc = yes; then
7092   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7093   cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h.  */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h.  */
7099 #include <string.h>
7100
7101 _ACEOF
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103   $EGREP "memchr" >/dev/null 2>&1; then
7104   :
7105 else
7106   ac_cv_header_stdc=no
7107 fi
7108 rm -f conftest*
7109
7110 fi
7111
7112 if test $ac_cv_header_stdc = yes; then
7113   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7114   cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h.  */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h.  */
7120 #include <stdlib.h>
7121
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124   $EGREP "free" >/dev/null 2>&1; then
7125   :
7126 else
7127   ac_cv_header_stdc=no
7128 fi
7129 rm -f conftest*
7130
7131 fi
7132
7133 if test $ac_cv_header_stdc = yes; then
7134   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7135   if test "$cross_compiling" = yes; then
7136   :
7137 else
7138   cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h.  */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h.  */
7144 #include <ctype.h>
7145 #include <stdlib.h>
7146 #if ((' ' & 0x0FF) == 0x020)
7147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7149 #else
7150 # define ISLOWER(c) \
7151                    (('a' <= (c) && (c) <= 'i') \
7152                      || ('j' <= (c) && (c) <= 'r') \
7153                      || ('s' <= (c) && (c) <= 'z'))
7154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7155 #endif
7156
7157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7158 int
7159 main ()
7160 {
7161   int i;
7162   for (i = 0; i < 256; i++)
7163     if (XOR (islower (i), ISLOWER (i))
7164         || toupper (i) != TOUPPER (i))
7165       return 2;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7176 $as_echo "$ac_try_echo") >&5
7177   (eval "$ac_link") 2>&5
7178   ac_status=$?
7179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7181   { (case "(($ac_try" in
7182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183   *) ac_try_echo=$ac_try;;
7184 esac
7185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186 $as_echo "$ac_try_echo") >&5
7187   (eval "$ac_try") 2>&5
7188   ac_status=$?
7189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; }; then
7191   :
7192 else
7193   $as_echo "$as_me: program exited with status $ac_status" >&5
7194 $as_echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 ( exit $ac_status )
7198 ac_cv_header_stdc=no
7199 fi
7200 rm -rf conftest.dSYM
7201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7202 fi
7203
7204
7205 fi
7206 fi
7207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7208 $as_echo "$ac_cv_header_stdc" >&6; }
7209 if test $ac_cv_header_stdc = yes; then
7210
7211 cat >>confdefs.h <<\_ACEOF
7212 #define STDC_HEADERS 1
7213 _ACEOF
7214
7215 fi
7216
7217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7228                   inttypes.h stdint.h unistd.h
7229 do
7230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7232 $as_echo_n "checking for $ac_header... " >&6; }
7233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7234   $as_echo_n "(cached) " >&6
7235 else
7236   cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h.  */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h.  */
7242 $ac_includes_default
7243
7244 #include <$ac_header>
7245 _ACEOF
7246 rm -f conftest.$ac_objext
7247 if { (ac_try="$ac_compile"
7248 case "(($ac_try" in
7249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250   *) ac_try_echo=$ac_try;;
7251 esac
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254   (eval "$ac_compile") 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } && {
7261          test -z "$ac_c_werror_flag" ||
7262          test ! -s conftest.err
7263        } && test -s conftest.$ac_objext; then
7264   eval "$as_ac_Header=yes"
7265 else
7266   $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269         eval "$as_ac_Header=no"
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 ac_res=`eval 'as_val=${'$as_ac_Header'}
7275                  $as_echo "$as_val"'`
7276                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7277 $as_echo "$ac_res" >&6; }
7278 as_val=`eval 'as_val=${'$as_ac_Header'}
7279                  $as_echo "$as_val"'`
7280    if test "x$as_val" = x""yes; then
7281   cat >>confdefs.h <<_ACEOF
7282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283 _ACEOF
7284
7285 fi
7286
7287 done
7288
7289
7290
7291 for ac_header in dlfcn.h
7292 do
7293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7295 $as_echo_n "checking for $ac_header... " >&6; }
7296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7297   $as_echo_n "(cached) " >&6
7298 else
7299   cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 $ac_includes_default
7306
7307 #include <$ac_header>
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7311 case "(($ac_try" in
7312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313   *) ac_try_echo=$ac_try;;
7314 esac
7315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7316 $as_echo "$ac_try_echo") >&5
7317   (eval "$ac_compile") 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } && {
7324          test -z "$ac_c_werror_flag" ||
7325          test ! -s conftest.err
7326        } && test -s conftest.$ac_objext; then
7327   eval "$as_ac_Header=yes"
7328 else
7329   $as_echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332         eval "$as_ac_Header=no"
7333 fi
7334
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 ac_res=`eval 'as_val=${'$as_ac_Header'}
7338                  $as_echo "$as_val"'`
7339                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7340 $as_echo "$ac_res" >&6; }
7341 as_val=`eval 'as_val=${'$as_ac_Header'}
7342                  $as_echo "$as_val"'`
7343    if test "x$as_val" = x""yes; then
7344   cat >>confdefs.h <<_ACEOF
7345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7346 _ACEOF
7347
7348 fi
7349
7350 done
7351
7352
7353
7354 # Set options
7355
7356
7357
7358         enable_dlopen=no
7359
7360
7361   enable_win32_dll=no
7362
7363
7364             # Check whether --enable-shared was given.
7365 if test "${enable_shared+set}" = set; then
7366   enableval=$enable_shared; p=${PACKAGE-default}
7367     case $enableval in
7368     yes) enable_shared=yes ;;
7369     no) enable_shared=no ;;
7370     *)
7371       enable_shared=no
7372       # Look at the argument we got.  We use all the common list separators.
7373       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7374       for pkg in $enableval; do
7375         IFS="$lt_save_ifs"
7376         if test "X$pkg" = "X$p"; then
7377           enable_shared=yes
7378         fi
7379       done
7380       IFS="$lt_save_ifs"
7381       ;;
7382     esac
7383 else
7384   enable_shared=yes
7385 fi
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395   # Check whether --enable-static was given.
7396 if test "${enable_static+set}" = set; then
7397   enableval=$enable_static; p=${PACKAGE-default}
7398     case $enableval in
7399     yes) enable_static=yes ;;
7400     no) enable_static=no ;;
7401     *)
7402      enable_static=no
7403       # Look at the argument we got.  We use all the common list separators.
7404       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7405       for pkg in $enableval; do
7406         IFS="$lt_save_ifs"
7407         if test "X$pkg" = "X$p"; then
7408           enable_static=yes
7409         fi
7410       done
7411       IFS="$lt_save_ifs"
7412       ;;
7413     esac
7414 else
7415   enable_static=yes
7416 fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 # Check whether --with-pic was given.
7428 if test "${with_pic+set}" = set; then
7429   withval=$with_pic; pic_mode="$withval"
7430 else
7431   pic_mode=default
7432 fi
7433
7434
7435 test -z "$pic_mode" && pic_mode=default
7436
7437
7438
7439
7440
7441
7442
7443   # Check whether --enable-fast-install was given.
7444 if test "${enable_fast_install+set}" = set; then
7445   enableval=$enable_fast_install; p=${PACKAGE-default}
7446     case $enableval in
7447     yes) enable_fast_install=yes ;;
7448     no) enable_fast_install=no ;;
7449     *)
7450       enable_fast_install=no
7451       # Look at the argument we got.  We use all the common list separators.
7452       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7453       for pkg in $enableval; do
7454         IFS="$lt_save_ifs"
7455         if test "X$pkg" = "X$p"; then
7456           enable_fast_install=yes
7457         fi
7458       done
7459       IFS="$lt_save_ifs"
7460       ;;
7461     esac
7462 else
7463   enable_fast_install=yes
7464 fi
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 # This can be used to rebuild libtool when needed
7477 LIBTOOL_DEPS="$ltmain"
7478
7479 # Always use our own libtool.
7480 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506 test -z "$LN_S" && LN_S="ln -s"
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 if test -n "${ZSH_VERSION+set}" ; then
7522    setopt NO_GLOB_SUBST
7523 fi
7524
7525 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7526 $as_echo_n "checking for objdir... " >&6; }
7527 if test "${lt_cv_objdir+set}" = set; then
7528   $as_echo_n "(cached) " >&6
7529 else
7530   rm -f .libs 2>/dev/null
7531 mkdir .libs 2>/dev/null
7532 if test -d .libs; then
7533   lt_cv_objdir=.libs
7534 else
7535   # MS-DOS does not allow filenames that begin with a dot.
7536   lt_cv_objdir=_libs
7537 fi
7538 rmdir .libs 2>/dev/null
7539 fi
7540 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7541 $as_echo "$lt_cv_objdir" >&6; }
7542 objdir=$lt_cv_objdir
7543
7544
7545
7546
7547
7548 cat >>confdefs.h <<_ACEOF
7549 #define LT_OBJDIR "$lt_cv_objdir/"
7550 _ACEOF
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 case $host_os in
7569 aix3*)
7570   # AIX sometimes has problems with the GCC collect2 program.  For some
7571   # reason, if we set the COLLECT_NAMES environment variable, the problems
7572   # vanish in a puff of smoke.
7573   if test "X${COLLECT_NAMES+set}" != Xset; then
7574     COLLECT_NAMES=
7575     export COLLECT_NAMES
7576   fi
7577   ;;
7578 esac
7579
7580 # Sed substitution that helps us do robust quoting.  It backslashifies
7581 # metacharacters that are still active within double-quoted strings.
7582 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7583
7584 # Same as above, but do not quote variable references.
7585 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7586
7587 # Sed substitution to delay expansion of an escaped shell variable in a
7588 # double_quote_subst'ed string.
7589 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7590
7591 # Sed substitution to delay expansion of an escaped single quote.
7592 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7593
7594 # Sed substitution to avoid accidental globbing in evaled expressions
7595 no_glob_subst='s/\*/\\\*/g'
7596
7597 # Global variables:
7598 ofile=libtool
7599 can_build_shared=yes
7600
7601 # All known linkers require a `.a' archive for static linking (except MSVC,
7602 # which needs '.lib').
7603 libext=a
7604
7605 with_gnu_ld="$lt_cv_prog_gnu_ld"
7606
7607 old_CC="$CC"
7608 old_CFLAGS="$CFLAGS"
7609
7610 # Set sane defaults for various variables
7611 test -z "$CC" && CC=cc
7612 test -z "$LTCC" && LTCC=$CC
7613 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7614 test -z "$LD" && LD=ld
7615 test -z "$ac_objext" && ac_objext=o
7616
7617 for cc_temp in $compiler""; do
7618   case $cc_temp in
7619     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7620     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7621     \-*) ;;
7622     *) break;;
7623   esac
7624 done
7625 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7626
7627
7628 # Only perform the check for file, if the check method requires it
7629 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7630 case $deplibs_check_method in
7631 file_magic*)
7632   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7633     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7634 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7635 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7636   $as_echo_n "(cached) " >&6
7637 else
7638   case $MAGIC_CMD in
7639 [\\/*] |  ?:[\\/]*)
7640   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7641   ;;
7642 *)
7643   lt_save_MAGIC_CMD="$MAGIC_CMD"
7644   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646   for ac_dir in $ac_dummy; do
7647     IFS="$lt_save_ifs"
7648     test -z "$ac_dir" && ac_dir=.
7649     if test -f $ac_dir/${ac_tool_prefix}file; then
7650       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7651       if test -n "$file_magic_test_file"; then
7652         case $deplibs_check_method in
7653         "file_magic "*)
7654           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657             $EGREP "$file_magic_regex" > /dev/null; then
7658             :
7659           else
7660             cat <<_LT_EOF 1>&2
7661
7662 *** Warning: the command libtool uses to detect shared libraries,
7663 *** $file_magic_cmd, produces output that libtool cannot recognize.
7664 *** The result is that libtool may fail to recognize shared libraries
7665 *** as such.  This will affect the creation of libtool libraries that
7666 *** depend on shared libraries, but programs linked with such libtool
7667 *** libraries will work regardless of this problem.  Nevertheless, you
7668 *** may want to report the problem to your system manager and/or to
7669 *** bug-libtool@gnu.org
7670
7671 _LT_EOF
7672           fi ;;
7673         esac
7674       fi
7675       break
7676     fi
7677   done
7678   IFS="$lt_save_ifs"
7679   MAGIC_CMD="$lt_save_MAGIC_CMD"
7680   ;;
7681 esac
7682 fi
7683
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if test -n "$MAGIC_CMD"; then
7686   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7687 $as_echo "$MAGIC_CMD" >&6; }
7688 else
7689   { $as_echo "$as_me:$LINENO: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693
7694
7695
7696
7697 if test -z "$lt_cv_path_MAGIC_CMD"; then
7698   if test -n "$ac_tool_prefix"; then
7699     { $as_echo "$as_me:$LINENO: checking for file" >&5
7700 $as_echo_n "checking for file... " >&6; }
7701 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7702   $as_echo_n "(cached) " >&6
7703 else
7704   case $MAGIC_CMD in
7705 [\\/*] |  ?:[\\/]*)
7706   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7707   ;;
7708 *)
7709   lt_save_MAGIC_CMD="$MAGIC_CMD"
7710   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7711   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7712   for ac_dir in $ac_dummy; do
7713     IFS="$lt_save_ifs"
7714     test -z "$ac_dir" && ac_dir=.
7715     if test -f $ac_dir/file; then
7716       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7717       if test -n "$file_magic_test_file"; then
7718         case $deplibs_check_method in
7719         "file_magic "*)
7720           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7721           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7722           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7723             $EGREP "$file_magic_regex" > /dev/null; then
7724             :
7725           else
7726             cat <<_LT_EOF 1>&2
7727
7728 *** Warning: the command libtool uses to detect shared libraries,
7729 *** $file_magic_cmd, produces output that libtool cannot recognize.
7730 *** The result is that libtool may fail to recognize shared libraries
7731 *** as such.  This will affect the creation of libtool libraries that
7732 *** depend on shared libraries, but programs linked with such libtool
7733 *** libraries will work regardless of this problem.  Nevertheless, you
7734 *** may want to report the problem to your system manager and/or to
7735 *** bug-libtool@gnu.org
7736
7737 _LT_EOF
7738           fi ;;
7739         esac
7740       fi
7741       break
7742     fi
7743   done
7744   IFS="$lt_save_ifs"
7745   MAGIC_CMD="$lt_save_MAGIC_CMD"
7746   ;;
7747 esac
7748 fi
7749
7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751 if test -n "$MAGIC_CMD"; then
7752   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7753 $as_echo "$MAGIC_CMD" >&6; }
7754 else
7755   { $as_echo "$as_me:$LINENO: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759
7760   else
7761     MAGIC_CMD=:
7762   fi
7763 fi
7764
7765   fi
7766   ;;
7767 esac
7768
7769 # Use C for the default configuration in the libtool script
7770
7771 lt_save_CC="$CC"
7772 ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778
7779 # Source file extension for C test sources.
7780 ac_ext=c
7781
7782 # Object file extension for compiled C test sources.
7783 objext=o
7784 objext=$objext
7785
7786 # Code to be used in simple compile tests
7787 lt_simple_compile_test_code="int some_variable = 0;"
7788
7789 # Code to be used in simple link tests
7790 lt_simple_link_test_code='int main(){return(0);}'
7791
7792
7793
7794
7795
7796
7797
7798 # If no C compiler was specified, use CC.
7799 LTCC=${LTCC-"$CC"}
7800
7801 # If no C compiler flags were specified, use CFLAGS.
7802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7803
7804 # Allow CC to be a program name with arguments.
7805 compiler=$CC
7806
7807 # Save the default compiler, since it gets overwritten when the other
7808 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7809 compiler_DEFAULT=$CC
7810
7811 # save warnings/boilerplate of simple test code
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815 _lt_compiler_boilerplate=`cat conftest.err`
7816 $RM conftest*
7817
7818 ac_outfile=conftest.$ac_objext
7819 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7821 _lt_linker_boilerplate=`cat conftest.err`
7822 $RM -r conftest*
7823
7824
7825 if test -n "$compiler"; then
7826
7827 lt_prog_compiler_no_builtin_flag=
7828
7829 if test "$GCC" = yes; then
7830   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7831
7832   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7833 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7834 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7835   $as_echo_n "(cached) " >&6
7836 else
7837   lt_cv_prog_compiler_rtti_exceptions=no
7838    ac_outfile=conftest.$ac_objext
7839    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7840    lt_compiler_flag="-fno-rtti -fno-exceptions"
7841    # Insert the option either (1) after the last *FLAGS variable, or
7842    # (2) before a word containing "conftest.", or (3) at the end.
7843    # Note that $ac_compile itself does not contain backslashes and begins
7844    # with a dollar sign (not a hyphen), so the echo should work correctly.
7845    # The option is referenced via a variable to avoid confusing sed.
7846    lt_compile=`echo "$ac_compile" | $SED \
7847    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7848    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849    -e 's:$: $lt_compiler_flag:'`
7850    (eval echo "\"\$as_me:7850: $lt_compile\"" >&5)
7851    (eval "$lt_compile" 2>conftest.err)
7852    ac_status=$?
7853    cat conftest.err >&5
7854    echo "$as_me:7854: \$? = $ac_status" >&5
7855    if (exit $ac_status) && test -s "$ac_outfile"; then
7856      # The compiler can only warn and ignore the option if not recognized
7857      # So say no if there are warnings other than the usual output.
7858      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7859      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7860      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7861        lt_cv_prog_compiler_rtti_exceptions=yes
7862      fi
7863    fi
7864    $RM conftest*
7865
7866 fi
7867 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7868 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7869
7870 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7871     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7872 else
7873     :
7874 fi
7875
7876 fi
7877
7878
7879
7880
7881
7882
7883   lt_prog_compiler_wl=
7884 lt_prog_compiler_pic=
7885 lt_prog_compiler_static=
7886
7887 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7888 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7889
7890   if test "$GCC" = yes; then
7891     lt_prog_compiler_wl='-Wl,'
7892     lt_prog_compiler_static='-static'
7893
7894     case $host_os in
7895       aix*)
7896       # All AIX code is PIC.
7897       if test "$host_cpu" = ia64; then
7898         # AIX 5 now supports IA64 processor
7899         lt_prog_compiler_static='-Bstatic'
7900       fi
7901       ;;
7902
7903     amigaos*)
7904       case $host_cpu in
7905       powerpc)
7906             # see comment about AmigaOS4 .so support
7907             lt_prog_compiler_pic='-fPIC'
7908         ;;
7909       m68k)
7910             # FIXME: we need at least 68020 code to build shared libraries, but
7911             # adding the `-m68020' flag to GCC prevents building anything better,
7912             # like `-m68040'.
7913             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7914         ;;
7915       esac
7916       ;;
7917
7918     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7919       # PIC is the default for these OSes.
7920       ;;
7921
7922     mingw* | cygwin* | pw32* | os2* | cegcc*)
7923       # This hack is so that the source file can tell whether it is being
7924       # built for inclusion in a dll (and should export symbols for example).
7925       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7926       # (--disable-auto-import) libraries
7927       lt_prog_compiler_pic='-DDLL_EXPORT'
7928       ;;
7929
7930     darwin* | rhapsody*)
7931       # PIC is the default on this platform
7932       # Common symbols not allowed in MH_DYLIB files
7933       lt_prog_compiler_pic='-fno-common'
7934       ;;
7935
7936     hpux*)
7937       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7938       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7939       # sets the default TLS model and affects inlining.
7940       case $host_cpu in
7941       hppa*64*)
7942         # +Z the default
7943         ;;
7944       *)
7945         lt_prog_compiler_pic='-fPIC'
7946         ;;
7947       esac
7948       ;;
7949
7950     interix[3-9]*)
7951       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7952       # Instead, we relocate shared libraries at runtime.
7953       ;;
7954
7955     msdosdjgpp*)
7956       # Just because we use GCC doesn't mean we suddenly get shared libraries
7957       # on systems that don't support them.
7958       lt_prog_compiler_can_build_shared=no
7959       enable_shared=no
7960       ;;
7961
7962     *nto* | *qnx*)
7963       # QNX uses GNU C++, but need to define -shared option too, otherwise
7964       # it will coredump.
7965       lt_prog_compiler_pic='-fPIC -shared'
7966       ;;
7967
7968     sysv4*MP*)
7969       if test -d /usr/nec; then
7970         lt_prog_compiler_pic=-Kconform_pic
7971       fi
7972       ;;
7973
7974     *)
7975       lt_prog_compiler_pic='-fPIC'
7976       ;;
7977     esac
7978   else
7979     # PORTME Check for flag to pass linker flags through the system compiler.
7980     case $host_os in
7981     aix*)
7982       lt_prog_compiler_wl='-Wl,'
7983       if test "$host_cpu" = ia64; then
7984         # AIX 5 now supports IA64 processor
7985         lt_prog_compiler_static='-Bstatic'
7986       else
7987         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7988       fi
7989       ;;
7990
7991     mingw* | cygwin* | pw32* | os2* | cegcc*)
7992       # This hack is so that the source file can tell whether it is being
7993       # built for inclusion in a dll (and should export symbols for example).
7994       lt_prog_compiler_pic='-DDLL_EXPORT'
7995       ;;
7996
7997     hpux9* | hpux10* | hpux11*)
7998       lt_prog_compiler_wl='-Wl,'
7999       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8000       # not for PA HP-UX.
8001       case $host_cpu in
8002       hppa*64*|ia64*)
8003         # +Z the default
8004         ;;
8005       *)
8006         lt_prog_compiler_pic='+Z'
8007         ;;
8008       esac
8009       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8010       lt_prog_compiler_static='${wl}-a ${wl}archive'
8011       ;;
8012
8013     irix5* | irix6* | nonstopux*)
8014       lt_prog_compiler_wl='-Wl,'
8015       # PIC (with -KPIC) is the default.
8016       lt_prog_compiler_static='-non_shared'
8017       ;;
8018
8019     linux* | k*bsd*-gnu)
8020       case $cc_basename in
8021       # old Intel for x86_64 which still supported -KPIC.
8022       ecc*)
8023         lt_prog_compiler_wl='-Wl,'
8024         lt_prog_compiler_pic='-KPIC'
8025         lt_prog_compiler_static='-static'
8026         ;;
8027       # icc used to be incompatible with GCC.
8028       # ICC 10 doesn't accept -KPIC any more.
8029       icc* | ifort*)
8030         lt_prog_compiler_wl='-Wl,'
8031         lt_prog_compiler_pic='-fPIC'
8032         lt_prog_compiler_static='-static'
8033         ;;
8034       # Lahey Fortran 8.1.
8035       lf95*)
8036         lt_prog_compiler_wl='-Wl,'
8037         lt_prog_compiler_pic='--shared'
8038         lt_prog_compiler_static='--static'
8039         ;;
8040       pgcc* | pgf77* | pgf90* | pgf95*)
8041         # Portland Group compilers (*not* the Pentium gcc compiler,
8042         # which looks to be a dead project)
8043         lt_prog_compiler_wl='-Wl,'
8044         lt_prog_compiler_pic='-fpic'
8045         lt_prog_compiler_static='-Bstatic'
8046         ;;
8047       ccc*)
8048         lt_prog_compiler_wl='-Wl,'
8049         # All Alpha code is PIC.
8050         lt_prog_compiler_static='-non_shared'
8051         ;;
8052       xl*)
8053         # IBM XL C 8.0/Fortran 10.1 on PPC
8054         lt_prog_compiler_wl='-Wl,'
8055         lt_prog_compiler_pic='-qpic'
8056         lt_prog_compiler_static='-qstaticlink'
8057         ;;
8058       *)
8059         case `$CC -V 2>&1 | sed 5q` in
8060         *Sun\ C*)
8061           # Sun C 5.9
8062           lt_prog_compiler_pic='-KPIC'
8063           lt_prog_compiler_static='-Bstatic'
8064           lt_prog_compiler_wl='-Wl,'
8065           ;;
8066         *Sun\ F*)
8067           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8068           lt_prog_compiler_pic='-KPIC'
8069           lt_prog_compiler_static='-Bstatic'
8070           lt_prog_compiler_wl=''
8071           ;;
8072         esac
8073         ;;
8074       esac
8075       ;;
8076
8077     newsos6)
8078       lt_prog_compiler_pic='-KPIC'
8079       lt_prog_compiler_static='-Bstatic'
8080       ;;
8081
8082     *nto* | *qnx*)
8083       # QNX uses GNU C++, but need to define -shared option too, otherwise
8084       # it will coredump.
8085       lt_prog_compiler_pic='-fPIC -shared'
8086       ;;
8087
8088     osf3* | osf4* | osf5*)
8089       lt_prog_compiler_wl='-Wl,'
8090       # All OSF/1 code is PIC.
8091       lt_prog_compiler_static='-non_shared'
8092       ;;
8093
8094     rdos*)
8095       lt_prog_compiler_static='-non_shared'
8096       ;;
8097
8098     solaris*)
8099       lt_prog_compiler_pic='-KPIC'
8100       lt_prog_compiler_static='-Bstatic'
8101       case $cc_basename in
8102       f77* | f90* | f95*)
8103         lt_prog_compiler_wl='-Qoption ld ';;
8104       *)
8105         lt_prog_compiler_wl='-Wl,';;
8106       esac
8107       ;;
8108
8109     sunos4*)
8110       lt_prog_compiler_wl='-Qoption ld '
8111       lt_prog_compiler_pic='-PIC'
8112       lt_prog_compiler_static='-Bstatic'
8113       ;;
8114
8115     sysv4 | sysv4.2uw2* | sysv4.3*)
8116       lt_prog_compiler_wl='-Wl,'
8117       lt_prog_compiler_pic='-KPIC'
8118       lt_prog_compiler_static='-Bstatic'
8119       ;;
8120
8121     sysv4*MP*)
8122       if test -d /usr/nec ;then
8123         lt_prog_compiler_pic='-Kconform_pic'
8124         lt_prog_compiler_static='-Bstatic'
8125       fi
8126       ;;
8127
8128     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8129       lt_prog_compiler_wl='-Wl,'
8130       lt_prog_compiler_pic='-KPIC'
8131       lt_prog_compiler_static='-Bstatic'
8132       ;;
8133
8134     unicos*)
8135       lt_prog_compiler_wl='-Wl,'
8136       lt_prog_compiler_can_build_shared=no
8137       ;;
8138
8139     uts4*)
8140       lt_prog_compiler_pic='-pic'
8141       lt_prog_compiler_static='-Bstatic'
8142       ;;
8143
8144     *)
8145       lt_prog_compiler_can_build_shared=no
8146       ;;
8147     esac
8148   fi
8149
8150 case $host_os in
8151   # For platforms which do not support PIC, -DPIC is meaningless:
8152   *djgpp*)
8153     lt_prog_compiler_pic=
8154     ;;
8155   *)
8156     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8157     ;;
8158 esac
8159 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8160 $as_echo "$lt_prog_compiler_pic" >&6; }
8161
8162
8163
8164
8165
8166
8167 #
8168 # Check to make sure the PIC flag actually works.
8169 #
8170 if test -n "$lt_prog_compiler_pic"; then
8171   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8173 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8174   $as_echo_n "(cached) " >&6
8175 else
8176   lt_cv_prog_compiler_pic_works=no
8177    ac_outfile=conftest.$ac_objext
8178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8180    # Insert the option either (1) after the last *FLAGS variable, or
8181    # (2) before a word containing "conftest.", or (3) at the end.
8182    # Note that $ac_compile itself does not contain backslashes and begins
8183    # with a dollar sign (not a hyphen), so the echo should work correctly.
8184    # The option is referenced via a variable to avoid confusing sed.
8185    lt_compile=`echo "$ac_compile" | $SED \
8186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188    -e 's:$: $lt_compiler_flag:'`
8189    (eval echo "\"\$as_me:8189: $lt_compile\"" >&5)
8190    (eval "$lt_compile" 2>conftest.err)
8191    ac_status=$?
8192    cat conftest.err >&5
8193    echo "$as_me:8193: \$? = $ac_status" >&5
8194    if (exit $ac_status) && test -s "$ac_outfile"; then
8195      # The compiler can only warn and ignore the option if not recognized
8196      # So say no if there are warnings other than the usual output.
8197      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8198      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200        lt_cv_prog_compiler_pic_works=yes
8201      fi
8202    fi
8203    $RM conftest*
8204
8205 fi
8206 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8207 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8208
8209 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8210     case $lt_prog_compiler_pic in
8211      "" | " "*) ;;
8212      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8213      esac
8214 else
8215     lt_prog_compiler_pic=
8216      lt_prog_compiler_can_build_shared=no
8217 fi
8218
8219 fi
8220
8221
8222
8223
8224
8225
8226 #
8227 # Check to make sure the static flag actually works.
8228 #
8229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8230 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8231 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8232 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8233   $as_echo_n "(cached) " >&6
8234 else
8235   lt_cv_prog_compiler_static_works=no
8236    save_LDFLAGS="$LDFLAGS"
8237    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8238    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8239    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8240      # The linker can only warn and ignore the option if not recognized
8241      # So say no if there are warnings
8242      if test -s conftest.err; then
8243        # Append any errors to the config.log.
8244        cat conftest.err 1>&5
8245        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8246        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8247        if diff conftest.exp conftest.er2 >/dev/null; then
8248          lt_cv_prog_compiler_static_works=yes
8249        fi
8250      else
8251        lt_cv_prog_compiler_static_works=yes
8252      fi
8253    fi
8254    $RM -r conftest*
8255    LDFLAGS="$save_LDFLAGS"
8256
8257 fi
8258 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8259 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8260
8261 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8262     :
8263 else
8264     lt_prog_compiler_static=
8265 fi
8266
8267
8268
8269
8270
8271
8272
8273   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8274 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8275 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8276   $as_echo_n "(cached) " >&6
8277 else
8278   lt_cv_prog_compiler_c_o=no
8279    $RM -r conftest 2>/dev/null
8280    mkdir conftest
8281    cd conftest
8282    mkdir out
8283    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284
8285    lt_compiler_flag="-o out/conftest2.$ac_objext"
8286    # Insert the option either (1) after the last *FLAGS variable, or
8287    # (2) before a word containing "conftest.", or (3) at the end.
8288    # Note that $ac_compile itself does not contain backslashes and begins
8289    # with a dollar sign (not a hyphen), so the echo should work correctly.
8290    lt_compile=`echo "$ac_compile" | $SED \
8291    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8293    -e 's:$: $lt_compiler_flag:'`
8294    (eval echo "\"\$as_me:8294: $lt_compile\"" >&5)
8295    (eval "$lt_compile" 2>out/conftest.err)
8296    ac_status=$?
8297    cat out/conftest.err >&5
8298    echo "$as_me:8298: \$? = $ac_status" >&5
8299    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8300    then
8301      # The compiler can only warn and ignore the option if not recognized
8302      # So say no if there are warnings
8303      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8304      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8305      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8306        lt_cv_prog_compiler_c_o=yes
8307      fi
8308    fi
8309    chmod u+w . 2>&5
8310    $RM conftest*
8311    # SGI C++ compiler will create directory out/ii_files/ for
8312    # template instantiation
8313    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8314    $RM out/* && rmdir out
8315    cd ..
8316    $RM -r conftest
8317    $RM conftest*
8318
8319 fi
8320 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8321 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8322
8323
8324
8325
8326
8327
8328   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8331   $as_echo_n "(cached) " >&6
8332 else
8333   lt_cv_prog_compiler_c_o=no
8334    $RM -r conftest 2>/dev/null
8335    mkdir conftest
8336    cd conftest
8337    mkdir out
8338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339
8340    lt_compiler_flag="-o out/conftest2.$ac_objext"
8341    # Insert the option either (1) after the last *FLAGS variable, or
8342    # (2) before a word containing "conftest.", or (3) at the end.
8343    # Note that $ac_compile itself does not contain backslashes and begins
8344    # with a dollar sign (not a hyphen), so the echo should work correctly.
8345    lt_compile=`echo "$ac_compile" | $SED \
8346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348    -e 's:$: $lt_compiler_flag:'`
8349    (eval echo "\"\$as_me:8349: $lt_compile\"" >&5)
8350    (eval "$lt_compile" 2>out/conftest.err)
8351    ac_status=$?
8352    cat out/conftest.err >&5
8353    echo "$as_me:8353: \$? = $ac_status" >&5
8354    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8355    then
8356      # The compiler can only warn and ignore the option if not recognized
8357      # So say no if there are warnings
8358      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8359      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8360      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8361        lt_cv_prog_compiler_c_o=yes
8362      fi
8363    fi
8364    chmod u+w . 2>&5
8365    $RM conftest*
8366    # SGI C++ compiler will create directory out/ii_files/ for
8367    # template instantiation
8368    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8369    $RM out/* && rmdir out
8370    cd ..
8371    $RM -r conftest
8372    $RM conftest*
8373
8374 fi
8375 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8376 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8377
8378
8379
8380
8381 hard_links="nottested"
8382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8383   # do not overwrite the value of need_locks provided by the user
8384   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8385 $as_echo_n "checking if we can lock with hard links... " >&6; }
8386   hard_links=yes
8387   $RM conftest*
8388   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8389   touch conftest.a
8390   ln conftest.a conftest.b 2>&5 || hard_links=no
8391   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8393 $as_echo "$hard_links" >&6; }
8394   if test "$hard_links" = no; then
8395     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8396 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8397     need_locks=warn
8398   fi
8399 else
8400   need_locks=no
8401 fi
8402
8403
8404
8405
8406
8407
8408   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8409 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8410
8411   runpath_var=
8412   allow_undefined_flag=
8413   always_export_symbols=no
8414   archive_cmds=
8415   archive_expsym_cmds=
8416   compiler_needs_object=no
8417   enable_shared_with_static_runtimes=no
8418   export_dynamic_flag_spec=
8419   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8420   hardcode_automatic=no
8421   hardcode_direct=no
8422   hardcode_direct_absolute=no
8423   hardcode_libdir_flag_spec=
8424   hardcode_libdir_flag_spec_ld=
8425   hardcode_libdir_separator=
8426   hardcode_minus_L=no
8427   hardcode_shlibpath_var=unsupported
8428   inherit_rpath=no
8429   link_all_deplibs=unknown
8430   module_cmds=
8431   module_expsym_cmds=
8432   old_archive_from_new_cmds=
8433   old_archive_from_expsyms_cmds=
8434   thread_safe_flag_spec=
8435   whole_archive_flag_spec=
8436   # include_expsyms should be a list of space-separated symbols to be *always*
8437   # included in the symbol list
8438   include_expsyms=
8439   # exclude_expsyms can be an extended regexp of symbols to exclude
8440   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8441   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8442   # as well as any symbol that contains `d'.
8443   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8444   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8445   # platforms (ab)use it in PIC code, but their linkers get confused if
8446   # the symbol is explicitly referenced.  Since portable code cannot
8447   # rely on this symbol name, it's probably fine to never include it in
8448   # preloaded symbol tables.
8449   # Exclude shared library initialization/finalization symbols.
8450   extract_expsyms_cmds=
8451
8452   case $host_os in
8453   cygwin* | mingw* | pw32* | cegcc*)
8454     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8455     # When not using gcc, we currently assume that we are using
8456     # Microsoft Visual C++.
8457     if test "$GCC" != yes; then
8458       with_gnu_ld=no
8459     fi
8460     ;;
8461   interix*)
8462     # we just hope/assume this is gcc and not c89 (= MSVC++)
8463     with_gnu_ld=yes
8464     ;;
8465   openbsd*)
8466     with_gnu_ld=no
8467     ;;
8468   esac
8469
8470   ld_shlibs=yes
8471   if test "$with_gnu_ld" = yes; then
8472     # If archive_cmds runs LD, not CC, wlarc should be empty
8473     wlarc='${wl}'
8474
8475     # Set some defaults for GNU ld with shared library support. These
8476     # are reset later if shared libraries are not supported. Putting them
8477     # here allows them to be overridden if necessary.
8478     runpath_var=LD_RUN_PATH
8479     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8480     export_dynamic_flag_spec='${wl}--export-dynamic'
8481     # ancient GNU ld didn't support --whole-archive et. al.
8482     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8483       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8484     else
8485       whole_archive_flag_spec=
8486     fi
8487     supports_anon_versioning=no
8488     case `$LD -v 2>&1` in
8489       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8490       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8491       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8492       *\ 2.11.*) ;; # other 2.11 versions
8493       *) supports_anon_versioning=yes ;;
8494     esac
8495
8496     # See if GNU ld supports shared libraries.
8497     case $host_os in
8498     aix[3-9]*)
8499       # On AIX/PPC, the GNU linker is very broken
8500       if test "$host_cpu" != ia64; then
8501         ld_shlibs=no
8502         cat <<_LT_EOF 1>&2
8503
8504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8505 *** to be unable to reliably create shared libraries on AIX.
8506 *** Therefore, libtool is disabling shared libraries support.  If you
8507 *** really care for shared libraries, you may want to modify your PATH
8508 *** so that a non-GNU linker is found, and then restart.
8509
8510 _LT_EOF
8511       fi
8512       ;;
8513
8514     amigaos*)
8515       case $host_cpu in
8516       powerpc)
8517             # see comment about AmigaOS4 .so support
8518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519             archive_expsym_cmds=''
8520         ;;
8521       m68k)
8522             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)'
8523             hardcode_libdir_flag_spec='-L$libdir'
8524             hardcode_minus_L=yes
8525         ;;
8526       esac
8527       ;;
8528
8529     beos*)
8530       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531         allow_undefined_flag=unsupported
8532         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8533         # support --undefined.  This deserves some investigation.  FIXME
8534         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8535       else
8536         ld_shlibs=no
8537       fi
8538       ;;
8539
8540     cygwin* | mingw* | pw32* | cegcc*)
8541       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8542       # as there is no search path for DLLs.
8543       hardcode_libdir_flag_spec='-L$libdir'
8544       allow_undefined_flag=unsupported
8545       always_export_symbols=no
8546       enable_shared_with_static_runtimes=yes
8547       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8548
8549       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8550         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8551         # If the export-symbols file already is a .def file (1st line
8552         # is EXPORTS), use it as is; otherwise, prepend...
8553         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8554           cp $export_symbols $output_objdir/$soname.def;
8555         else
8556           echo EXPORTS > $output_objdir/$soname.def;
8557           cat $export_symbols >> $output_objdir/$soname.def;
8558         fi~
8559         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8560       else
8561         ld_shlibs=no
8562       fi
8563       ;;
8564
8565     interix[3-9]*)
8566       hardcode_direct=no
8567       hardcode_shlibpath_var=no
8568       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8569       export_dynamic_flag_spec='${wl}-E'
8570       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8571       # Instead, shared libraries are loaded at an image base (0x10000000 by
8572       # default) and relocated if they conflict, which is a slow very memory
8573       # consuming and fragmenting process.  To avoid this, we pick a random,
8574       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8575       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8576       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8577       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'
8578       ;;
8579
8580     gnu* | linux* | tpf* | k*bsd*-gnu)
8581       tmp_diet=no
8582       if test "$host_os" = linux-dietlibc; then
8583         case $cc_basename in
8584           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8585         esac
8586       fi
8587       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8588          && test "$tmp_diet" = no
8589       then
8590         tmp_addflag=
8591         tmp_sharedflag='-shared'
8592         case $cc_basename,$host_cpu in
8593         pgcc*)                          # Portland Group C compiler
8594           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'
8595           tmp_addflag=' $pic_flag'
8596           ;;
8597         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8598           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'
8599           tmp_addflag=' $pic_flag -Mnomain' ;;
8600         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8601           tmp_addflag=' -i_dynamic' ;;
8602         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8603           tmp_addflag=' -i_dynamic -nofor_main' ;;
8604         ifc* | ifort*)                  # Intel Fortran compiler
8605           tmp_addflag=' -nofor_main' ;;
8606         lf95*)                          # Lahey Fortran 8.1
8607           whole_archive_flag_spec=
8608           tmp_sharedflag='--shared' ;;
8609         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8610           tmp_sharedflag='-qmkshrobj'
8611           tmp_addflag= ;;
8612         esac
8613         case `$CC -V 2>&1 | sed 5q` in
8614         *Sun\ C*)                       # Sun C 5.9
8615           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'
8616           compiler_needs_object=yes
8617           tmp_sharedflag='-G' ;;
8618         *Sun\ F*)                       # Sun Fortran 8.3
8619           tmp_sharedflag='-G' ;;
8620         esac
8621         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8622
8623         if test "x$supports_anon_versioning" = xyes; then
8624           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8625             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8626             echo "local: *; };" >> $output_objdir/$libname.ver~
8627             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8628         fi
8629
8630         case $cc_basename in
8631         xlf*)
8632           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8633           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8634           hardcode_libdir_flag_spec=
8635           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8636           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8637           if test "x$supports_anon_versioning" = xyes; then
8638             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8639               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8640               echo "local: *; };" >> $output_objdir/$libname.ver~
8641               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8642           fi
8643           ;;
8644         esac
8645       else
8646         ld_shlibs=no
8647       fi
8648       ;;
8649
8650     netbsd*)
8651       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8652         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8653         wlarc=
8654       else
8655         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657       fi
8658       ;;
8659
8660     solaris*)
8661       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8662         ld_shlibs=no
8663         cat <<_LT_EOF 1>&2
8664
8665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8666 *** create shared libraries on Solaris systems.  Therefore, libtool
8667 *** is disabling shared libraries support.  We urge you to upgrade GNU
8668 *** binutils to release 2.9.1 or newer.  Another option is to modify
8669 *** your PATH or compiler configuration so that the native linker is
8670 *** used, and then restart.
8671
8672 _LT_EOF
8673       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8674         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8676       else
8677         ld_shlibs=no
8678       fi
8679       ;;
8680
8681     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8682       case `$LD -v 2>&1` in
8683         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8684         ld_shlibs=no
8685         cat <<_LT_EOF 1>&2
8686
8687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8688 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8689 *** is disabling shared libraries support.  We urge you to upgrade GNU
8690 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8691 *** your PATH or compiler configuration so that the native linker is
8692 *** used, and then restart.
8693
8694 _LT_EOF
8695         ;;
8696         *)
8697           # For security reasons, it is highly recommended that you always
8698           # use absolute paths for naming shared libraries, and exclude the
8699           # DT_RUNPATH tag from executables and libraries.  But doing so
8700           # requires that you compile everything twice, which is a pain.
8701           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8702             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8703             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705           else
8706             ld_shlibs=no
8707           fi
8708         ;;
8709       esac
8710       ;;
8711
8712     sunos4*)
8713       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8714       wlarc=
8715       hardcode_direct=yes
8716       hardcode_shlibpath_var=no
8717       ;;
8718
8719     *)
8720       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727     esac
8728
8729     if test "$ld_shlibs" = no; then
8730       runpath_var=
8731       hardcode_libdir_flag_spec=
8732       export_dynamic_flag_spec=
8733       whole_archive_flag_spec=
8734     fi
8735   else
8736     # PORTME fill in a description of your system's linker (not GNU ld)
8737     case $host_os in
8738     aix3*)
8739       allow_undefined_flag=unsupported
8740       always_export_symbols=yes
8741       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'
8742       # Note: this linker hardcodes the directories in LIBPATH if there
8743       # are no directories specified by -L.
8744       hardcode_minus_L=yes
8745       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8746         # Neither direct hardcoding nor static linking is supported with a
8747         # broken collect2.
8748         hardcode_direct=unsupported
8749       fi
8750       ;;
8751
8752     aix[4-9]*)
8753       if test "$host_cpu" = ia64; then
8754         # On IA64, the linker does run time linking by default, so we don't
8755         # have to do anything special.
8756         aix_use_runtimelinking=no
8757         exp_sym_flag='-Bexport'
8758         no_entry_flag=""
8759       else
8760         # If we're using GNU nm, then we don't want the "-C" option.
8761         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8762         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8763           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'
8764         else
8765           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'
8766         fi
8767         aix_use_runtimelinking=no
8768
8769         # Test if we are trying to use run time linking or normal
8770         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8771         # need to do runtime linking.
8772         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8773           for ld_flag in $LDFLAGS; do
8774           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8775             aix_use_runtimelinking=yes
8776             break
8777           fi
8778           done
8779           ;;
8780         esac
8781
8782         exp_sym_flag='-bexport'
8783         no_entry_flag='-bnoentry'
8784       fi
8785
8786       # When large executables or shared objects are built, AIX ld can
8787       # have problems creating the table of contents.  If linking a library
8788       # or program results in "error TOC overflow" add -mminimal-toc to
8789       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8790       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8791
8792       archive_cmds=''
8793       hardcode_direct=yes
8794       hardcode_direct_absolute=yes
8795       hardcode_libdir_separator=':'
8796       link_all_deplibs=yes
8797       file_list_spec='${wl}-f,'
8798
8799       if test "$GCC" = yes; then
8800         case $host_os in aix4.[012]|aix4.[012].*)
8801         # We only want to do this on AIX 4.2 and lower, the check
8802         # below for broken collect2 doesn't work under 4.3+
8803           collect2name=`${CC} -print-prog-name=collect2`
8804           if test -f "$collect2name" &&
8805            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8806           then
8807           # We have reworked collect2
8808           :
8809           else
8810           # We have old collect2
8811           hardcode_direct=unsupported
8812           # It fails to find uninstalled libraries when the uninstalled
8813           # path is not listed in the libpath.  Setting hardcode_minus_L
8814           # to unsupported forces relinking
8815           hardcode_minus_L=yes
8816           hardcode_libdir_flag_spec='-L$libdir'
8817           hardcode_libdir_separator=
8818           fi
8819           ;;
8820         esac
8821         shared_flag='-shared'
8822         if test "$aix_use_runtimelinking" = yes; then
8823           shared_flag="$shared_flag "'${wl}-G'
8824         fi
8825       else
8826         # not using gcc
8827         if test "$host_cpu" = ia64; then
8828         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8829         # chokes on -Wl,-G. The following line is correct:
8830           shared_flag='-G'
8831         else
8832           if test "$aix_use_runtimelinking" = yes; then
8833             shared_flag='${wl}-G'
8834           else
8835             shared_flag='${wl}-bM:SRE'
8836           fi
8837         fi
8838       fi
8839
8840       export_dynamic_flag_spec='${wl}-bexpall'
8841       # It seems that -bexpall does not export symbols beginning with
8842       # underscore (_), so it is better to generate a list of symbols to export.
8843       always_export_symbols=yes
8844       if test "$aix_use_runtimelinking" = yes; then
8845         # Warning - without using the other runtime loading flags (-brtl),
8846         # -berok will link without error, but may produce a broken library.
8847         allow_undefined_flag='-berok'
8848         # Determine the default libpath from the value encoded in an
8849         # empty executable.
8850         cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h.  */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h.  */
8856
8857 int
8858 main ()
8859 {
8860
8861   ;
8862   return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8867 case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873   (eval "$ac_link") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } && {
8880          test -z "$ac_c_werror_flag" ||
8881          test ! -s conftest.err
8882        } && test -s conftest$ac_exeext && {
8883          test "$cross_compiling" = yes ||
8884          $as_test_x conftest$ac_exeext
8885        }; then
8886
8887 lt_aix_libpath_sed='
8888     /Import File Strings/,/^$/ {
8889         /^0/ {
8890             s/^0  *\(.*\)$/\1/
8891             p
8892         }
8893     }'
8894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8895 # Check for a 64-bit object if we didn't find anything.
8896 if test -z "$aix_libpath"; then
8897   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8898 fi
8899 else
8900   $as_echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8902
8903
8904 fi
8905
8906 rm -rf conftest.dSYM
8907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8908       conftest$ac_exeext conftest.$ac_ext
8909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8910
8911         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8912         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"
8913       else
8914         if test "$host_cpu" = ia64; then
8915           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8916           allow_undefined_flag="-z nodefs"
8917           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"
8918         else
8919          # Determine the default libpath from the value encoded in an
8920          # empty executable.
8921          cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h.  */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h.  */
8927
8928 int
8929 main ()
8930 {
8931
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944   (eval "$ac_link") 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } && {
8951          test -z "$ac_c_werror_flag" ||
8952          test ! -s conftest.err
8953        } && test -s conftest$ac_exeext && {
8954          test "$cross_compiling" = yes ||
8955          $as_test_x conftest$ac_exeext
8956        }; then
8957
8958 lt_aix_libpath_sed='
8959     /Import File Strings/,/^$/ {
8960         /^0/ {
8961             s/^0  *\(.*\)$/\1/
8962             p
8963         }
8964     }'
8965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966 # Check for a 64-bit object if we didn't find anything.
8967 if test -z "$aix_libpath"; then
8968   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 fi
8970 else
8971   $as_echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974
8975 fi
8976
8977 rm -rf conftest.dSYM
8978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8979       conftest$ac_exeext conftest.$ac_ext
8980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8981
8982          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8983           # Warning - without using the other run time loading flags,
8984           # -berok will link without error, but may produce a broken library.
8985           no_undefined_flag=' ${wl}-bernotok'
8986           allow_undefined_flag=' ${wl}-berok'
8987           # Exported symbols can be pulled into shared objects from archives
8988           whole_archive_flag_spec='$convenience'
8989           archive_cmds_need_lc=yes
8990           # This is similar to how AIX traditionally builds its shared libraries.
8991           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'
8992         fi
8993       fi
8994       ;;
8995
8996     amigaos*)
8997       case $host_cpu in
8998       powerpc)
8999             # see comment about AmigaOS4 .so support
9000             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001             archive_expsym_cmds=''
9002         ;;
9003       m68k)
9004             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)'
9005             hardcode_libdir_flag_spec='-L$libdir'
9006             hardcode_minus_L=yes
9007         ;;
9008       esac
9009       ;;
9010
9011     bsdi[45]*)
9012       export_dynamic_flag_spec=-rdynamic
9013       ;;
9014
9015     cygwin* | mingw* | pw32* | cegcc*)
9016       # When not using gcc, we currently assume that we are using
9017       # Microsoft Visual C++.
9018       # hardcode_libdir_flag_spec is actually meaningless, as there is
9019       # no search path for DLLs.
9020       hardcode_libdir_flag_spec=' '
9021       allow_undefined_flag=unsupported
9022       # Tell ltmain to make .lib files, not .a files.
9023       libext=lib
9024       # Tell ltmain to make .dll files, not .so files.
9025       shrext_cmds=".dll"
9026       # FIXME: Setting linknames here is a bad hack.
9027       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9028       # The linker will automatically build a .lib file if we build a DLL.
9029       old_archive_from_new_cmds='true'
9030       # FIXME: Should let the user specify the lib program.
9031       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9032       fix_srcfile_path='`cygpath -w "$srcfile"`'
9033       enable_shared_with_static_runtimes=yes
9034       ;;
9035
9036     darwin* | rhapsody*)
9037
9038
9039   archive_cmds_need_lc=no
9040   hardcode_direct=no
9041   hardcode_automatic=yes
9042   hardcode_shlibpath_var=unsupported
9043   whole_archive_flag_spec=''
9044   link_all_deplibs=yes
9045   allow_undefined_flag="$_lt_dar_allow_undefined"
9046   case $cc_basename in
9047      ifort*) _lt_dar_can_shared=yes ;;
9048      *) _lt_dar_can_shared=$GCC ;;
9049   esac
9050   if test "$_lt_dar_can_shared" = "yes"; then
9051     output_verbose_link_cmd=echo
9052     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9053     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9054     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}"
9055     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}"
9056
9057   else
9058   ld_shlibs=no
9059   fi
9060
9061       ;;
9062
9063     dgux*)
9064       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065       hardcode_libdir_flag_spec='-L$libdir'
9066       hardcode_shlibpath_var=no
9067       ;;
9068
9069     freebsd1*)
9070       ld_shlibs=no
9071       ;;
9072
9073     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9074     # support.  Future versions do this automatically, but an explicit c++rt0.o
9075     # does not break anything, and helps significantly (at the cost of a little
9076     # extra space).
9077     freebsd2.2*)
9078       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9079       hardcode_libdir_flag_spec='-R$libdir'
9080       hardcode_direct=yes
9081       hardcode_shlibpath_var=no
9082       ;;
9083
9084     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9085     freebsd2*)
9086       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9087       hardcode_direct=yes
9088       hardcode_minus_L=yes
9089       hardcode_shlibpath_var=no
9090       ;;
9091
9092     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9093     freebsd* | dragonfly*)
9094       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9095       hardcode_libdir_flag_spec='-R$libdir'
9096       hardcode_direct=yes
9097       hardcode_shlibpath_var=no
9098       ;;
9099
9100     hpux9*)
9101       if test "$GCC" = yes; then
9102         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'
9103       else
9104         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'
9105       fi
9106       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9107       hardcode_libdir_separator=:
9108       hardcode_direct=yes
9109
9110       # hardcode_minus_L: Not really in the search PATH,
9111       # but as the default location of the library.
9112       hardcode_minus_L=yes
9113       export_dynamic_flag_spec='${wl}-E'
9114       ;;
9115
9116     hpux10*)
9117       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9118         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9119       else
9120         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9121       fi
9122       if test "$with_gnu_ld" = no; then
9123         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124         hardcode_libdir_flag_spec_ld='+b $libdir'
9125         hardcode_libdir_separator=:
9126         hardcode_direct=yes
9127         hardcode_direct_absolute=yes
9128         export_dynamic_flag_spec='${wl}-E'
9129         # hardcode_minus_L: Not really in the search PATH,
9130         # but as the default location of the library.
9131         hardcode_minus_L=yes
9132       fi
9133       ;;
9134
9135     hpux11*)
9136       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9137         case $host_cpu in
9138         hppa*64*)
9139           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9140           ;;
9141         ia64*)
9142           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9143           ;;
9144         *)
9145           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9146           ;;
9147         esac
9148       else
9149         case $host_cpu in
9150         hppa*64*)
9151           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9152           ;;
9153         ia64*)
9154           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9155           ;;
9156         *)
9157           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158           ;;
9159         esac
9160       fi
9161       if test "$with_gnu_ld" = no; then
9162         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163         hardcode_libdir_separator=:
9164
9165         case $host_cpu in
9166         hppa*64*|ia64*)
9167           hardcode_direct=no
9168           hardcode_shlibpath_var=no
9169           ;;
9170         *)
9171           hardcode_direct=yes
9172           hardcode_direct_absolute=yes
9173           export_dynamic_flag_spec='${wl}-E'
9174
9175           # hardcode_minus_L: Not really in the search PATH,
9176           # but as the default location of the library.
9177           hardcode_minus_L=yes
9178           ;;
9179         esac
9180       fi
9181       ;;
9182
9183     irix5* | irix6* | nonstopux*)
9184       if test "$GCC" = yes; then
9185         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'
9186         # Try to use the -exported_symbol ld option, if it does not
9187         # work, assume that -exports_file does not work either and
9188         # implicitly export all symbols.
9189         save_LDFLAGS="$LDFLAGS"
9190         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9191         cat >conftest.$ac_ext <<_ACEOF
9192 int foo(void) {}
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198   *) ac_try_echo=$ac_try;;
9199 esac
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202   (eval "$ac_link") 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } && {
9209          test -z "$ac_c_werror_flag" ||
9210          test ! -s conftest.err
9211        } && test -s conftest$ac_exeext && {
9212          test "$cross_compiling" = yes ||
9213          $as_test_x conftest$ac_exeext
9214        }; then
9215   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'
9216
9217 else
9218   $as_echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221
9222 fi
9223
9224 rm -rf conftest.dSYM
9225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9226       conftest$ac_exeext conftest.$ac_ext
9227         LDFLAGS="$save_LDFLAGS"
9228       else
9229         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'
9230         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'
9231       fi
9232       archive_cmds_need_lc='no'
9233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234       hardcode_libdir_separator=:
9235       inherit_rpath=yes
9236       link_all_deplibs=yes
9237       ;;
9238
9239     netbsd*)
9240       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9241         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9242       else
9243         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9244       fi
9245       hardcode_libdir_flag_spec='-R$libdir'
9246       hardcode_direct=yes
9247       hardcode_shlibpath_var=no
9248       ;;
9249
9250     newsos6)
9251       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252       hardcode_direct=yes
9253       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254       hardcode_libdir_separator=:
9255       hardcode_shlibpath_var=no
9256       ;;
9257
9258     *nto* | *qnx*)
9259       ;;
9260
9261     openbsd*)
9262       if test -f /usr/libexec/ld.so; then
9263         hardcode_direct=yes
9264         hardcode_shlibpath_var=no
9265         hardcode_direct_absolute=yes
9266         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9267           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9269           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270           export_dynamic_flag_spec='${wl}-E'
9271         else
9272           case $host_os in
9273            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9274              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9275              hardcode_libdir_flag_spec='-R$libdir'
9276              ;;
9277            *)
9278              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9279              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280              ;;
9281           esac
9282         fi
9283       else
9284         ld_shlibs=no
9285       fi
9286       ;;
9287
9288     os2*)
9289       hardcode_libdir_flag_spec='-L$libdir'
9290       hardcode_minus_L=yes
9291       allow_undefined_flag=unsupported
9292       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'
9293       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9294       ;;
9295
9296     osf3*)
9297       if test "$GCC" = yes; then
9298         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299         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'
9300       else
9301         allow_undefined_flag=' -expect_unresolved \*'
9302         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'
9303       fi
9304       archive_cmds_need_lc='no'
9305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306       hardcode_libdir_separator=:
9307       ;;
9308
9309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9310       if test "$GCC" = yes; then
9311         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9312         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'
9313         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314       else
9315         allow_undefined_flag=' -expect_unresolved \*'
9316         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'
9317         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~
9318         $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'
9319
9320         # Both c and cxx compiler support -rpath directly
9321         hardcode_libdir_flag_spec='-rpath $libdir'
9322       fi
9323       archive_cmds_need_lc='no'
9324       hardcode_libdir_separator=:
9325       ;;
9326
9327     solaris*)
9328       no_undefined_flag=' -z defs'
9329       if test "$GCC" = yes; then
9330         wlarc='${wl}'
9331         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9332         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9334       else
9335         case `$CC -V 2>&1` in
9336         *"Compilers 5.0"*)
9337           wlarc=''
9338           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9341           ;;
9342         *)
9343           wlarc='${wl}'
9344           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9345           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9346           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9347           ;;
9348         esac
9349       fi
9350       hardcode_libdir_flag_spec='-R$libdir'
9351       hardcode_shlibpath_var=no
9352       case $host_os in
9353       solaris2.[0-5] | solaris2.[0-5].*) ;;
9354       *)
9355         # The compiler driver will combine and reorder linker options,
9356         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9357         # but is careful enough not to reorder.
9358         # Supported since Solaris 2.6 (maybe 2.5.1?)
9359         if test "$GCC" = yes; then
9360           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9361         else
9362           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9363         fi
9364         ;;
9365       esac
9366       link_all_deplibs=yes
9367       ;;
9368
9369     sunos4*)
9370       if test "x$host_vendor" = xsequent; then
9371         # Use $CC to link under sequent, because it throws in some extra .o
9372         # files that make .init and .fini sections work.
9373         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9374       else
9375         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9376       fi
9377       hardcode_libdir_flag_spec='-L$libdir'
9378       hardcode_direct=yes
9379       hardcode_minus_L=yes
9380       hardcode_shlibpath_var=no
9381       ;;
9382
9383     sysv4)
9384       case $host_vendor in
9385         sni)
9386           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387           hardcode_direct=yes # is this really true???
9388         ;;
9389         siemens)
9390           ## LD is ld it makes a PLAMLIB
9391           ## CC just makes a GrossModule.
9392           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9393           reload_cmds='$CC -r -o $output$reload_objs'
9394           hardcode_direct=no
9395         ;;
9396         motorola)
9397           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9399         ;;
9400       esac
9401       runpath_var='LD_RUN_PATH'
9402       hardcode_shlibpath_var=no
9403       ;;
9404
9405     sysv4.3*)
9406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407       hardcode_shlibpath_var=no
9408       export_dynamic_flag_spec='-Bexport'
9409       ;;
9410
9411     sysv4*MP*)
9412       if test -d /usr/nec; then
9413         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414         hardcode_shlibpath_var=no
9415         runpath_var=LD_RUN_PATH
9416         hardcode_runpath_var=yes
9417         ld_shlibs=yes
9418       fi
9419       ;;
9420
9421     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9422       no_undefined_flag='${wl}-z,text'
9423       archive_cmds_need_lc=no
9424       hardcode_shlibpath_var=no
9425       runpath_var='LD_RUN_PATH'
9426
9427       if test "$GCC" = yes; then
9428         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430       else
9431         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433       fi
9434       ;;
9435
9436     sysv5* | sco3.2v5* | sco5v6*)
9437       # Note: We can NOT use -z defs as we might desire, because we do not
9438       # link with -lc, and that would cause any symbols used from libc to
9439       # always be unresolved, which means just about no library would
9440       # ever link correctly.  If we're not using GNU ld we use -z text
9441       # though, which does catch some bad symbols but isn't as heavy-handed
9442       # as -z defs.
9443       no_undefined_flag='${wl}-z,text'
9444       allow_undefined_flag='${wl}-z,nodefs'
9445       archive_cmds_need_lc=no
9446       hardcode_shlibpath_var=no
9447       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9448       hardcode_libdir_separator=':'
9449       link_all_deplibs=yes
9450       export_dynamic_flag_spec='${wl}-Bexport'
9451       runpath_var='LD_RUN_PATH'
9452
9453       if test "$GCC" = yes; then
9454         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456       else
9457         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459       fi
9460       ;;
9461
9462     uts4*)
9463       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464       hardcode_libdir_flag_spec='-L$libdir'
9465       hardcode_shlibpath_var=no
9466       ;;
9467
9468     *)
9469       ld_shlibs=no
9470       ;;
9471     esac
9472
9473     if test x$host_vendor = xsni; then
9474       case $host in
9475       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9476         export_dynamic_flag_spec='${wl}-Blargedynsym'
9477         ;;
9478       esac
9479     fi
9480   fi
9481
9482 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9483 $as_echo "$ld_shlibs" >&6; }
9484 test "$ld_shlibs" = no && can_build_shared=no
9485
9486 with_gnu_ld=$with_gnu_ld
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 #
9503 # Do we need to explicitly link libc?
9504 #
9505 case "x$archive_cmds_need_lc" in
9506 x|xyes)
9507   # Assume -lc should be added
9508   archive_cmds_need_lc=yes
9509
9510   if test "$enable_shared" = yes && test "$GCC" = yes; then
9511     case $archive_cmds in
9512     *'~'*)
9513       # FIXME: we may have to deal with multi-command sequences.
9514       ;;
9515     '$CC '*)
9516       # Test whether the compiler implicitly links with -lc since on some
9517       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9518       # to ld, don't add -lc before -lgcc.
9519       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9521       $RM conftest*
9522       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523
9524       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525   (eval $ac_compile) 2>&5
9526   ac_status=$?
9527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } 2>conftest.err; then
9529         soname=conftest
9530         lib=conftest
9531         libobjs=conftest.$ac_objext
9532         deplibs=
9533         wl=$lt_prog_compiler_wl
9534         pic_flag=$lt_prog_compiler_pic
9535         compiler_flags=-v
9536         linker_flags=-v
9537         verstring=
9538         output_objdir=.
9539         libname=conftest
9540         lt_save_allow_undefined_flag=$allow_undefined_flag
9541         allow_undefined_flag=
9542         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9543   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9544   ac_status=$?
9545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }
9547         then
9548           archive_cmds_need_lc=no
9549         else
9550           archive_cmds_need_lc=yes
9551         fi
9552         allow_undefined_flag=$lt_save_allow_undefined_flag
9553       else
9554         cat conftest.err 1>&5
9555       fi
9556       $RM conftest*
9557       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9558 $as_echo "$archive_cmds_need_lc" >&6; }
9559       ;;
9560     esac
9561   fi
9562   ;;
9563 esac
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9723
9724 if test "$GCC" = yes; then
9725   case $host_os in
9726     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9727     *) lt_awk_arg="/^libraries:/" ;;
9728   esac
9729   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9730   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9731     # if the path contains ";" then we assume it to be the separator
9732     # otherwise default to the standard path separator (i.e. ":") - it is
9733     # assumed that no part of a normal pathname contains ";" but that should
9734     # okay in the real world where ";" in dirpaths is itself problematic.
9735     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9736   else
9737     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9738   fi
9739   # Ok, now we have the path, separated by spaces, we can step through it
9740   # and add multilib dir if necessary.
9741   lt_tmp_lt_search_path_spec=
9742   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9743   for lt_sys_path in $lt_search_path_spec; do
9744     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9745       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9746     else
9747       test -d "$lt_sys_path" && \
9748         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9749     fi
9750   done
9751   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9752 BEGIN {RS=" "; FS="/|\n";} {
9753   lt_foo="";
9754   lt_count=0;
9755   for (lt_i = NF; lt_i > 0; lt_i--) {
9756     if ($lt_i != "" && $lt_i != ".") {
9757       if ($lt_i == "..") {
9758         lt_count++;
9759       } else {
9760         if (lt_count == 0) {
9761           lt_foo="/" $lt_i lt_foo;
9762         } else {
9763           lt_count--;
9764         }
9765       }
9766     }
9767   }
9768   if (lt_foo != "") { lt_freq[lt_foo]++; }
9769   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9770 }'`
9771   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9772 else
9773   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9774 fi
9775 library_names_spec=
9776 libname_spec='lib$name'
9777 soname_spec=
9778 shrext_cmds=".so"
9779 postinstall_cmds=
9780 postuninstall_cmds=
9781 finish_cmds=
9782 finish_eval=
9783 shlibpath_var=
9784 shlibpath_overrides_runpath=unknown
9785 version_type=none
9786 dynamic_linker="$host_os ld.so"
9787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9788 need_lib_prefix=unknown
9789 hardcode_into_libs=no
9790
9791 # when you set need_version to no, make sure it does not cause -set_version
9792 # flags to be left without arguments
9793 need_version=unknown
9794
9795 case $host_os in
9796 aix3*)
9797   version_type=linux
9798   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9799   shlibpath_var=LIBPATH
9800
9801   # AIX 3 has no versioning support, so we append a major version to the name.
9802   soname_spec='${libname}${release}${shared_ext}$major'
9803   ;;
9804
9805 aix[4-9]*)
9806   version_type=linux
9807   need_lib_prefix=no
9808   need_version=no
9809   hardcode_into_libs=yes
9810   if test "$host_cpu" = ia64; then
9811     # AIX 5 supports IA64
9812     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9813     shlibpath_var=LD_LIBRARY_PATH
9814   else
9815     # With GCC up to 2.95.x, collect2 would create an import file
9816     # for dependence libraries.  The import file would start with
9817     # the line `#! .'.  This would cause the generated library to
9818     # depend on `.', always an invalid library.  This was fixed in
9819     # development snapshots of GCC prior to 3.0.
9820     case $host_os in
9821       aix4 | aix4.[01] | aix4.[01].*)
9822       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9823            echo ' yes '
9824            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9825         :
9826       else
9827         can_build_shared=no
9828       fi
9829       ;;
9830     esac
9831     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9832     # soname into executable. Probably we can add versioning support to
9833     # collect2, so additional links can be useful in future.
9834     if test "$aix_use_runtimelinking" = yes; then
9835       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9836       # instead of lib<name>.a to let people know that these are not
9837       # typical AIX shared libraries.
9838       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839     else
9840       # We preserve .a as extension for shared libraries through AIX4.2
9841       # and later when we are not doing run time linking.
9842       library_names_spec='${libname}${release}.a $libname.a'
9843       soname_spec='${libname}${release}${shared_ext}$major'
9844     fi
9845     shlibpath_var=LIBPATH
9846   fi
9847   ;;
9848
9849 amigaos*)
9850   case $host_cpu in
9851   powerpc)
9852     # Since July 2007 AmigaOS4 officially supports .so libraries.
9853     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855     ;;
9856   m68k)
9857     library_names_spec='$libname.ixlibrary $libname.a'
9858     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9859     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'
9860     ;;
9861   esac
9862   ;;
9863
9864 beos*)
9865   library_names_spec='${libname}${shared_ext}'
9866   dynamic_linker="$host_os ld.so"
9867   shlibpath_var=LIBRARY_PATH
9868   ;;
9869
9870 bsdi[45]*)
9871   version_type=linux
9872   need_version=no
9873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874   soname_spec='${libname}${release}${shared_ext}$major'
9875   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9876   shlibpath_var=LD_LIBRARY_PATH
9877   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9878   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9879   # the default ld.so.conf also contains /usr/contrib/lib and
9880   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9881   # libtool to hard-code these into programs
9882   ;;
9883
9884 cygwin* | mingw* | pw32* | cegcc*)
9885   version_type=windows
9886   shrext_cmds=".dll"
9887   need_version=no
9888   need_lib_prefix=no
9889
9890   case $GCC,$host_os in
9891   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9892     library_names_spec='$libname.dll.a'
9893     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9894     postinstall_cmds='base_file=`basename \${file}`~
9895       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9896       dldir=$destdir/`dirname \$dlpath`~
9897       test -d \$dldir || mkdir -p \$dldir~
9898       $install_prog $dir/$dlname \$dldir/$dlname~
9899       chmod a+x \$dldir/$dlname~
9900       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9901         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9902       fi'
9903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9904       dlpath=$dir/\$dldll~
9905        $RM \$dlpath'
9906     shlibpath_overrides_runpath=yes
9907
9908     case $host_os in
9909     cygwin*)
9910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9913       ;;
9914     mingw* | cegcc*)
9915       # MinGW DLLs use traditional 'lib' prefix
9916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9918       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9919         # It is most probably a Windows format PATH printed by
9920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9921         # path with ; separators, and with drive letters. We can handle the
9922         # drive letters (cygwin fileutils understands them), so leave them,
9923         # especially as we might pass files found there to a mingw objdump,
9924         # which wouldn't understand a cygwinified path. Ahh.
9925         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9926       else
9927         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9928       fi
9929       ;;
9930     pw32*)
9931       # pw32 DLLs use 'pw' prefix rather than 'lib'
9932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9933       ;;
9934     esac
9935     ;;
9936
9937   *)
9938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9939     ;;
9940   esac
9941   dynamic_linker='Win32 ld.exe'
9942   # FIXME: first we should search . and the directory the executable is in
9943   shlibpath_var=PATH
9944   ;;
9945
9946 darwin* | rhapsody*)
9947   dynamic_linker="$host_os dyld"
9948   version_type=darwin
9949   need_lib_prefix=no
9950   need_version=no
9951   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9952   soname_spec='${libname}${release}${major}$shared_ext'
9953   shlibpath_overrides_runpath=yes
9954   shlibpath_var=DYLD_LIBRARY_PATH
9955   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9956
9957   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9958   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9959   ;;
9960
9961 dgux*)
9962   version_type=linux
9963   need_lib_prefix=no
9964   need_version=no
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   ;;
9969
9970 freebsd1*)
9971   dynamic_linker=no
9972   ;;
9973
9974 freebsd* | dragonfly*)
9975   # DragonFly does not have aout.  When/if they implement a new
9976   # versioning mechanism, adjust this.
9977   if test -x /usr/bin/objformat; then
9978     objformat=`/usr/bin/objformat`
9979   else
9980     case $host_os in
9981     freebsd[123]*) objformat=aout ;;
9982     *) objformat=elf ;;
9983     esac
9984   fi
9985   version_type=freebsd-$objformat
9986   case $version_type in
9987     freebsd-elf*)
9988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9989       need_version=no
9990       need_lib_prefix=no
9991       ;;
9992     freebsd-*)
9993       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9994       need_version=yes
9995       ;;
9996   esac
9997   shlibpath_var=LD_LIBRARY_PATH
9998   case $host_os in
9999   freebsd2*)
10000     shlibpath_overrides_runpath=yes
10001     ;;
10002   freebsd3.[01]* | freebsdelf3.[01]*)
10003     shlibpath_overrides_runpath=yes
10004     hardcode_into_libs=yes
10005     ;;
10006   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10007   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10008     shlibpath_overrides_runpath=no
10009     hardcode_into_libs=yes
10010     ;;
10011   *) # from 4.6 on, and DragonFly
10012     shlibpath_overrides_runpath=yes
10013     hardcode_into_libs=yes
10014     ;;
10015   esac
10016   ;;
10017
10018 gnu*)
10019   version_type=linux
10020   need_lib_prefix=no
10021   need_version=no
10022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10023   soname_spec='${libname}${release}${shared_ext}$major'
10024   shlibpath_var=LD_LIBRARY_PATH
10025   hardcode_into_libs=yes
10026   ;;
10027
10028 hpux9* | hpux10* | hpux11*)
10029   # Give a soname corresponding to the major version so that dld.sl refuses to
10030   # link against other versions.
10031   version_type=sunos
10032   need_lib_prefix=no
10033   need_version=no
10034   case $host_cpu in
10035   ia64*)
10036     shrext_cmds='.so'
10037     hardcode_into_libs=yes
10038     dynamic_linker="$host_os dld.so"
10039     shlibpath_var=LD_LIBRARY_PATH
10040     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042     soname_spec='${libname}${release}${shared_ext}$major'
10043     if test "X$HPUX_IA64_MODE" = X32; then
10044       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10045     else
10046       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10047     fi
10048     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10049     ;;
10050   hppa*64*)
10051     shrext_cmds='.sl'
10052     hardcode_into_libs=yes
10053     dynamic_linker="$host_os dld.sl"
10054     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10055     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057     soname_spec='${libname}${release}${shared_ext}$major'
10058     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10059     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10060     ;;
10061   *)
10062     shrext_cmds='.sl'
10063     dynamic_linker="$host_os dld.sl"
10064     shlibpath_var=SHLIB_PATH
10065     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067     soname_spec='${libname}${release}${shared_ext}$major'
10068     ;;
10069   esac
10070   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10071   postinstall_cmds='chmod 555 $lib'
10072   ;;
10073
10074 interix[3-9]*)
10075   version_type=linux
10076   need_lib_prefix=no
10077   need_version=no
10078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10079   soname_spec='${libname}${release}${shared_ext}$major'
10080   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10081   shlibpath_var=LD_LIBRARY_PATH
10082   shlibpath_overrides_runpath=no
10083   hardcode_into_libs=yes
10084   ;;
10085
10086 irix5* | irix6* | nonstopux*)
10087   case $host_os in
10088     nonstopux*) version_type=nonstopux ;;
10089     *)
10090         if test "$lt_cv_prog_gnu_ld" = yes; then
10091                 version_type=linux
10092         else
10093                 version_type=irix
10094         fi ;;
10095   esac
10096   need_lib_prefix=no
10097   need_version=no
10098   soname_spec='${libname}${release}${shared_ext}$major'
10099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10100   case $host_os in
10101   irix5* | nonstopux*)
10102     libsuff= shlibsuff=
10103     ;;
10104   *)
10105     case $LD in # libtool.m4 will add one of these switches to LD
10106     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10107       libsuff= shlibsuff= libmagic=32-bit;;
10108     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10109       libsuff=32 shlibsuff=N32 libmagic=N32;;
10110     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10111       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10112     *) libsuff= shlibsuff= libmagic=never-match;;
10113     esac
10114     ;;
10115   esac
10116   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10117   shlibpath_overrides_runpath=no
10118   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10119   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10120   hardcode_into_libs=yes
10121   ;;
10122
10123 # No shared lib support for Linux oldld, aout, or coff.
10124 linux*oldld* | linux*aout* | linux*coff*)
10125   dynamic_linker=no
10126   ;;
10127
10128 # This must be Linux ELF.
10129 linux* | k*bsd*-gnu)
10130   version_type=linux
10131   need_lib_prefix=no
10132   need_version=no
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134   soname_spec='${libname}${release}${shared_ext}$major'
10135   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10136   shlibpath_var=LD_LIBRARY_PATH
10137   shlibpath_overrides_runpath=no
10138   # Some binutils ld are patched to set DT_RUNPATH
10139   save_LDFLAGS=$LDFLAGS
10140   save_libdir=$libdir
10141   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10142        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10143   cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149
10150 int
10151 main ()
10152 {
10153
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166   (eval "$ac_link") 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && {
10173          test -z "$ac_c_werror_flag" ||
10174          test ! -s conftest.err
10175        } && test -s conftest$ac_exeext && {
10176          test "$cross_compiling" = yes ||
10177          $as_test_x conftest$ac_exeext
10178        }; then
10179   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10180   shlibpath_overrides_runpath=yes
10181 fi
10182
10183 else
10184   $as_echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187
10188 fi
10189
10190 rm -rf conftest.dSYM
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192       conftest$ac_exeext conftest.$ac_ext
10193   LDFLAGS=$save_LDFLAGS
10194   libdir=$save_libdir
10195
10196   # This implies no fast_install, which is unacceptable.
10197   # Some rework will be needed to allow for fast_install
10198   # before this can be enabled.
10199   hardcode_into_libs=yes
10200
10201   # Add ABI-specific directories to the system library path.
10202   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10203
10204   # Append ld.so.conf contents to the search path
10205   if test -f /etc/ld.so.conf; then
10206     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' ' '`
10207     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10208   fi
10209
10210   # We used to test for /lib/ld.so.1 and disable shared libraries on
10211   # powerpc, because MkLinux only supported shared libraries with the
10212   # GNU dynamic linker.  Since this was broken with cross compilers,
10213   # most powerpc-linux boxes support dynamic linking these days and
10214   # people can always --disable-shared, the test was removed, and we
10215   # assume the GNU/Linux dynamic linker is in use.
10216   dynamic_linker='GNU/Linux ld.so'
10217   ;;
10218
10219 netbsd*)
10220   version_type=sunos
10221   need_lib_prefix=no
10222   need_version=no
10223   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226     dynamic_linker='NetBSD (a.out) ld.so'
10227   else
10228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10229     soname_spec='${libname}${release}${shared_ext}$major'
10230     dynamic_linker='NetBSD ld.elf_so'
10231   fi
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=yes
10234   hardcode_into_libs=yes
10235   ;;
10236
10237 newsos6)
10238   version_type=linux
10239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240   shlibpath_var=LD_LIBRARY_PATH
10241   shlibpath_overrides_runpath=yes
10242   ;;
10243
10244 *nto* | *qnx*)
10245   version_type=qnx
10246   need_lib_prefix=no
10247   need_version=no
10248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249   soname_spec='${libname}${release}${shared_ext}$major'
10250   shlibpath_var=LD_LIBRARY_PATH
10251   shlibpath_overrides_runpath=no
10252   hardcode_into_libs=yes
10253   dynamic_linker='ldqnx.so'
10254   ;;
10255
10256 openbsd*)
10257   version_type=sunos
10258   sys_lib_dlsearch_path_spec="/usr/lib"
10259   need_lib_prefix=no
10260   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10261   case $host_os in
10262     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10263     *)                          need_version=no  ;;
10264   esac
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269     case $host_os in
10270       openbsd2.[89] | openbsd2.[89].*)
10271         shlibpath_overrides_runpath=no
10272         ;;
10273       *)
10274         shlibpath_overrides_runpath=yes
10275         ;;
10276       esac
10277   else
10278     shlibpath_overrides_runpath=yes
10279   fi
10280   ;;
10281
10282 os2*)
10283   libname_spec='$name'
10284   shrext_cmds=".dll"
10285   need_lib_prefix=no
10286   library_names_spec='$libname${shared_ext} $libname.a'
10287   dynamic_linker='OS/2 ld.exe'
10288   shlibpath_var=LIBPATH
10289   ;;
10290
10291 osf3* | osf4* | osf5*)
10292   version_type=osf
10293   need_lib_prefix=no
10294   need_version=no
10295   soname_spec='${libname}${release}${shared_ext}$major'
10296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10300   ;;
10301
10302 rdos*)
10303   dynamic_linker=no
10304   ;;
10305
10306 solaris*)
10307   version_type=linux
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311   soname_spec='${libname}${release}${shared_ext}$major'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   shlibpath_overrides_runpath=yes
10314   hardcode_into_libs=yes
10315   # ldd complains unless libraries are executable
10316   postinstall_cmds='chmod +x $lib'
10317   ;;
10318
10319 sunos4*)
10320   version_type=sunos
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10322   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   shlibpath_overrides_runpath=yes
10325   if test "$with_gnu_ld" = yes; then
10326     need_lib_prefix=no
10327   fi
10328   need_version=yes
10329   ;;
10330
10331 sysv4 | sysv4.3*)
10332   version_type=linux
10333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334   soname_spec='${libname}${release}${shared_ext}$major'
10335   shlibpath_var=LD_LIBRARY_PATH
10336   case $host_vendor in
10337     sni)
10338       shlibpath_overrides_runpath=no
10339       need_lib_prefix=no
10340       runpath_var=LD_RUN_PATH
10341       ;;
10342     siemens)
10343       need_lib_prefix=no
10344       ;;
10345     motorola)
10346       need_lib_prefix=no
10347       need_version=no
10348       shlibpath_overrides_runpath=no
10349       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10350       ;;
10351   esac
10352   ;;
10353
10354 sysv4*MP*)
10355   if test -d /usr/nec ;then
10356     version_type=linux
10357     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10358     soname_spec='$libname${shared_ext}.$major'
10359     shlibpath_var=LD_LIBRARY_PATH
10360   fi
10361   ;;
10362
10363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10364   version_type=freebsd-elf
10365   need_lib_prefix=no
10366   need_version=no
10367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10368   soname_spec='${libname}${release}${shared_ext}$major'
10369   shlibpath_var=LD_LIBRARY_PATH
10370   shlibpath_overrides_runpath=yes
10371   hardcode_into_libs=yes
10372   if test "$with_gnu_ld" = yes; then
10373     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10374   else
10375     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10376     case $host_os in
10377       sco3.2v5*)
10378         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10379         ;;
10380     esac
10381   fi
10382   sys_lib_dlsearch_path_spec='/usr/lib'
10383   ;;
10384
10385 tpf*)
10386   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10387   version_type=linux
10388   need_lib_prefix=no
10389   need_version=no
10390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391   shlibpath_var=LD_LIBRARY_PATH
10392   shlibpath_overrides_runpath=no
10393   hardcode_into_libs=yes
10394   ;;
10395
10396 uts4*)
10397   version_type=linux
10398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399   soname_spec='${libname}${release}${shared_ext}$major'
10400   shlibpath_var=LD_LIBRARY_PATH
10401   ;;
10402
10403 *)
10404   dynamic_linker=no
10405   ;;
10406 esac
10407 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10408 $as_echo "$dynamic_linker" >&6; }
10409 test "$dynamic_linker" = no && can_build_shared=no
10410
10411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10412 if test "$GCC" = yes; then
10413   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10414 fi
10415
10416 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10417   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10418 fi
10419 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10420   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10421 fi
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10511 hardcode_action=
10512 if test -n "$hardcode_libdir_flag_spec" ||
10513    test -n "$runpath_var" ||
10514    test "X$hardcode_automatic" = "Xyes" ; then
10515
10516   # We can hardcode non-existent directories.
10517   if test "$hardcode_direct" != no &&
10518      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10519      # have to relink, otherwise we might link with an installed library
10520      # when we should be linking with a yet-to-be-installed one
10521      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10522      test "$hardcode_minus_L" != no; then
10523     # Linking always hardcodes the temporary library directory.
10524     hardcode_action=relink
10525   else
10526     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10527     hardcode_action=immediate
10528   fi
10529 else
10530   # We cannot hardcode anything, or else we can only hardcode existing
10531   # directories.
10532   hardcode_action=unsupported
10533 fi
10534 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10535 $as_echo "$hardcode_action" >&6; }
10536
10537 if test "$hardcode_action" = relink ||
10538    test "$inherit_rpath" = yes; then
10539   # Fast installation is not supported
10540   enable_fast_install=no
10541 elif test "$shlibpath_overrides_runpath" = yes ||
10542      test "$enable_shared" = no; then
10543   # Fast installation is not necessary
10544   enable_fast_install=needless
10545 fi
10546
10547
10548
10549
10550
10551
10552   if test "x$enable_dlopen" != xyes; then
10553   enable_dlopen=unknown
10554   enable_dlopen_self=unknown
10555   enable_dlopen_self_static=unknown
10556 else
10557   lt_cv_dlopen=no
10558   lt_cv_dlopen_libs=
10559
10560   case $host_os in
10561   beos*)
10562     lt_cv_dlopen="load_add_on"
10563     lt_cv_dlopen_libs=
10564     lt_cv_dlopen_self=yes
10565     ;;
10566
10567   mingw* | pw32* | cegcc*)
10568     lt_cv_dlopen="LoadLibrary"
10569     lt_cv_dlopen_libs=
10570     ;;
10571
10572   cygwin*)
10573     lt_cv_dlopen="dlopen"
10574     lt_cv_dlopen_libs=
10575     ;;
10576
10577   darwin*)
10578   # if libdl is installed we need to link against it
10579     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10581 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10582   $as_echo_n "(cached) " >&6
10583 else
10584   ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-ldl  $LIBS"
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592
10593 /* Override any GCC internal prototype to avoid an error.
10594    Use char because int might match the return type of a GCC
10595    builtin and then its argument prototype would still apply.  */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char dlopen ();
10600 int
10601 main ()
10602 {
10603 return dlopen ();
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616   (eval "$ac_link") 2>conftest.er1
10617   ac_status=$?
10618   grep -v '^ *+' conftest.er1 >conftest.err
10619   rm -f conftest.er1
10620   cat conftest.err >&5
10621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } && {
10623          test -z "$ac_c_werror_flag" ||
10624          test ! -s conftest.err
10625        } && test -s conftest$ac_exeext && {
10626          test "$cross_compiling" = yes ||
10627          $as_test_x conftest$ac_exeext
10628        }; then
10629   ac_cv_lib_dl_dlopen=yes
10630 else
10631   $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634         ac_cv_lib_dl_dlopen=no
10635 fi
10636
10637 rm -rf conftest.dSYM
10638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639       conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10641 fi
10642 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10644 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10645   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10646 else
10647
10648     lt_cv_dlopen="dyld"
10649     lt_cv_dlopen_libs=
10650     lt_cv_dlopen_self=yes
10651
10652 fi
10653
10654     ;;
10655
10656   *)
10657     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10658 $as_echo_n "checking for shl_load... " >&6; }
10659 if test "${ac_cv_func_shl_load+set}" = set; then
10660   $as_echo_n "(cached) " >&6
10661 else
10662   cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h.  */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h.  */
10668 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10670 #define shl_load innocuous_shl_load
10671
10672 /* System header to define __stub macros and hopefully few prototypes,
10673     which can conflict with char shl_load (); below.
10674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10675     <limits.h> exists even on freestanding compilers.  */
10676
10677 #ifdef __STDC__
10678 # include <limits.h>
10679 #else
10680 # include <assert.h>
10681 #endif
10682
10683 #undef shl_load
10684
10685 /* Override any GCC internal prototype to avoid an error.
10686    Use char because int might match the return type of a GCC
10687    builtin and then its argument prototype would still apply.  */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char shl_load ();
10692 /* The GNU C library defines this for functions which it implements
10693     to always fail with ENOSYS.  Some functions are actually named
10694     something starting with __ and the normal name is an alias.  */
10695 #if defined __stub_shl_load || defined __stub___shl_load
10696 choke me
10697 #endif
10698
10699 int
10700 main ()
10701 {
10702 return shl_load ();
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext conftest$ac_exeext
10708 if { (ac_try="$ac_link"
10709 case "(($ac_try" in
10710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711   *) ac_try_echo=$ac_try;;
10712 esac
10713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714 $as_echo "$ac_try_echo") >&5
10715   (eval "$ac_link") 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } && {
10722          test -z "$ac_c_werror_flag" ||
10723          test ! -s conftest.err
10724        } && test -s conftest$ac_exeext && {
10725          test "$cross_compiling" = yes ||
10726          $as_test_x conftest$ac_exeext
10727        }; then
10728   ac_cv_func_shl_load=yes
10729 else
10730   $as_echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733         ac_cv_func_shl_load=no
10734 fi
10735
10736 rm -rf conftest.dSYM
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738       conftest$ac_exeext conftest.$ac_ext
10739 fi
10740 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10741 $as_echo "$ac_cv_func_shl_load" >&6; }
10742 if test "x$ac_cv_func_shl_load" = x""yes; then
10743   lt_cv_dlopen="shl_load"
10744 else
10745   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10746 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10748   $as_echo_n "(cached) " >&6
10749 else
10750   ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-ldld  $LIBS"
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char shl_load ();
10766 int
10767 main ()
10768 {
10769 return shl_load ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781 $as_echo "$ac_try_echo") >&5
10782   (eval "$ac_link") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && {
10789          test -z "$ac_c_werror_flag" ||
10790          test ! -s conftest.err
10791        } && test -s conftest$ac_exeext && {
10792          test "$cross_compiling" = yes ||
10793          $as_test_x conftest$ac_exeext
10794        }; then
10795   ac_cv_lib_dld_shl_load=yes
10796 else
10797   $as_echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800         ac_cv_lib_dld_shl_load=no
10801 fi
10802
10803 rm -rf conftest.dSYM
10804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805       conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10811   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10812 else
10813   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10814 $as_echo_n "checking for dlopen... " >&6; }
10815 if test "${ac_cv_func_dlopen+set}" = set; then
10816   $as_echo_n "(cached) " >&6
10817 else
10818   cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10826 #define dlopen innocuous_dlopen
10827
10828 /* System header to define __stub macros and hopefully few prototypes,
10829     which can conflict with char dlopen (); below.
10830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831     <limits.h> exists even on freestanding compilers.  */
10832
10833 #ifdef __STDC__
10834 # include <limits.h>
10835 #else
10836 # include <assert.h>
10837 #endif
10838
10839 #undef dlopen
10840
10841 /* Override any GCC internal prototype to avoid an error.
10842    Use char because int might match the return type of a GCC
10843    builtin and then its argument prototype would still apply.  */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 char dlopen ();
10848 /* The GNU C library defines this for functions which it implements
10849     to always fail with ENOSYS.  Some functions are actually named
10850     something starting with __ and the normal name is an alias.  */
10851 #if defined __stub_dlopen || defined __stub___dlopen
10852 choke me
10853 #endif
10854
10855 int
10856 main ()
10857 {
10858 return dlopen ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10870 $as_echo "$ac_try_echo") >&5
10871   (eval "$ac_link") 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } && {
10878          test -z "$ac_c_werror_flag" ||
10879          test ! -s conftest.err
10880        } && test -s conftest$ac_exeext && {
10881          test "$cross_compiling" = yes ||
10882          $as_test_x conftest$ac_exeext
10883        }; then
10884   ac_cv_func_dlopen=yes
10885 else
10886   $as_echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         ac_cv_func_dlopen=no
10890 fi
10891
10892 rm -rf conftest.dSYM
10893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10894       conftest$ac_exeext conftest.$ac_ext
10895 fi
10896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10897 $as_echo "$ac_cv_func_dlopen" >&6; }
10898 if test "x$ac_cv_func_dlopen" = x""yes; then
10899   lt_cv_dlopen="dlopen"
10900 else
10901   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10904   $as_echo_n "(cached) " >&6
10905 else
10906   ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-ldl  $LIBS"
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h.  */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h.  */
10914
10915 /* Override any GCC internal prototype to avoid an error.
10916    Use char because int might match the return type of a GCC
10917    builtin and then its argument prototype would still apply.  */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char dlopen ();
10922 int
10923 main ()
10924 {
10925 return dlopen ();
10926   ;
10927   return 0;
10928 }
10929 _ACEOF
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10937 $as_echo "$ac_try_echo") >&5
10938   (eval "$ac_link") 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } && {
10945          test -z "$ac_c_werror_flag" ||
10946          test ! -s conftest.err
10947        } && test -s conftest$ac_exeext && {
10948          test "$cross_compiling" = yes ||
10949          $as_test_x conftest$ac_exeext
10950        }; then
10951   ac_cv_lib_dl_dlopen=yes
10952 else
10953   $as_echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956         ac_cv_lib_dl_dlopen=no
10957 fi
10958
10959 rm -rf conftest.dSYM
10960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10961       conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_lib_save_LIBS
10963 fi
10964 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10965 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10966 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10967   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10968 else
10969   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10970 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10971 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10972   $as_echo_n "(cached) " >&6
10973 else
10974   ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-lsvld  $LIBS"
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982
10983 /* Override any GCC internal prototype to avoid an error.
10984    Use char because int might match the return type of a GCC
10985    builtin and then its argument prototype would still apply.  */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 char dlopen ();
10990 int
10991 main ()
10992 {
10993 return dlopen ();
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (ac_try="$ac_link"
11000 case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11005 $as_echo "$ac_try_echo") >&5
11006   (eval "$ac_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } && {
11013          test -z "$ac_c_werror_flag" ||
11014          test ! -s conftest.err
11015        } && test -s conftest$ac_exeext && {
11016          test "$cross_compiling" = yes ||
11017          $as_test_x conftest$ac_exeext
11018        }; then
11019   ac_cv_lib_svld_dlopen=yes
11020 else
11021   $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024         ac_cv_lib_svld_dlopen=no
11025 fi
11026
11027 rm -rf conftest.dSYM
11028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11029       conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11031 fi
11032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11033 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11034 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11035   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11036 else
11037   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11038 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11039 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11040   $as_echo_n "(cached) " >&6
11041 else
11042   ac_check_lib_save_LIBS=$LIBS
11043 LIBS="-ldld  $LIBS"
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h.  */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h.  */
11050
11051 /* Override any GCC internal prototype to avoid an error.
11052    Use char because int might match the return type of a GCC
11053    builtin and then its argument prototype would still apply.  */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 char dld_link ();
11058 int
11059 main ()
11060 {
11061 return dld_link ();
11062   ;
11063   return 0;
11064 }
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070   *) ac_try_echo=$ac_try;;
11071 esac
11072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11073 $as_echo "$ac_try_echo") >&5
11074   (eval "$ac_link") 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } && {
11081          test -z "$ac_c_werror_flag" ||
11082          test ! -s conftest.err
11083        } && test -s conftest$ac_exeext && {
11084          test "$cross_compiling" = yes ||
11085          $as_test_x conftest$ac_exeext
11086        }; then
11087   ac_cv_lib_dld_dld_link=yes
11088 else
11089   $as_echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11091
11092         ac_cv_lib_dld_dld_link=no
11093 fi
11094
11095 rm -rf conftest.dSYM
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097       conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11099 fi
11100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11101 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11102 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11103   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11104 fi
11105
11106
11107 fi
11108
11109
11110 fi
11111
11112
11113 fi
11114
11115
11116 fi
11117
11118
11119 fi
11120
11121     ;;
11122   esac
11123
11124   if test "x$lt_cv_dlopen" != xno; then
11125     enable_dlopen=yes
11126   else
11127     enable_dlopen=no
11128   fi
11129
11130   case $lt_cv_dlopen in
11131   dlopen)
11132     save_CPPFLAGS="$CPPFLAGS"
11133     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11134
11135     save_LDFLAGS="$LDFLAGS"
11136     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11137
11138     save_LIBS="$LIBS"
11139     LIBS="$lt_cv_dlopen_libs $LIBS"
11140
11141     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11142 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11143 if test "${lt_cv_dlopen_self+set}" = set; then
11144   $as_echo_n "(cached) " >&6
11145 else
11146           if test "$cross_compiling" = yes; then :
11147   lt_cv_dlopen_self=cross
11148 else
11149   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11150   lt_status=$lt_dlunknown
11151   cat > conftest.$ac_ext <<_LT_EOF
11152 #line 11152 "configure"
11153 #include "confdefs.h"
11154
11155 #if HAVE_DLFCN_H
11156 #include <dlfcn.h>
11157 #endif
11158
11159 #include <stdio.h>
11160
11161 #ifdef RTLD_GLOBAL
11162 #  define LT_DLGLOBAL           RTLD_GLOBAL
11163 #else
11164 #  ifdef DL_GLOBAL
11165 #    define LT_DLGLOBAL         DL_GLOBAL
11166 #  else
11167 #    define LT_DLGLOBAL         0
11168 #  endif
11169 #endif
11170
11171 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11172    find out it does not work in some platform. */
11173 #ifndef LT_DLLAZY_OR_NOW
11174 #  ifdef RTLD_LAZY
11175 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11176 #  else
11177 #    ifdef DL_LAZY
11178 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11179 #    else
11180 #      ifdef RTLD_NOW
11181 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11182 #      else
11183 #        ifdef DL_NOW
11184 #          define LT_DLLAZY_OR_NOW      DL_NOW
11185 #        else
11186 #          define LT_DLLAZY_OR_NOW      0
11187 #        endif
11188 #      endif
11189 #    endif
11190 #  endif
11191 #endif
11192
11193 void fnord() { int i=42;}
11194 int main ()
11195 {
11196   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11197   int status = $lt_dlunknown;
11198
11199   if (self)
11200     {
11201       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11202       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11203       /* dlclose (self); */
11204     }
11205   else
11206     puts (dlerror ());
11207
11208   return status;
11209 }
11210 _LT_EOF
11211   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212   (eval $ac_link) 2>&5
11213   ac_status=$?
11214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11216     (./conftest; exit; ) >&5 2>/dev/null
11217     lt_status=$?
11218     case x$lt_status in
11219       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11220       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11221       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11222     esac
11223   else :
11224     # compilation failed
11225     lt_cv_dlopen_self=no
11226   fi
11227 fi
11228 rm -fr conftest*
11229
11230
11231 fi
11232 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11233 $as_echo "$lt_cv_dlopen_self" >&6; }
11234
11235     if test "x$lt_cv_dlopen_self" = xyes; then
11236       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11237       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11239 if test "${lt_cv_dlopen_self_static+set}" = set; then
11240   $as_echo_n "(cached) " >&6
11241 else
11242           if test "$cross_compiling" = yes; then :
11243   lt_cv_dlopen_self_static=cross
11244 else
11245   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11246   lt_status=$lt_dlunknown
11247   cat > conftest.$ac_ext <<_LT_EOF
11248 #line 11248 "configure"
11249 #include "confdefs.h"
11250
11251 #if HAVE_DLFCN_H
11252 #include <dlfcn.h>
11253 #endif
11254
11255 #include <stdio.h>
11256
11257 #ifdef RTLD_GLOBAL
11258 #  define LT_DLGLOBAL           RTLD_GLOBAL
11259 #else
11260 #  ifdef DL_GLOBAL
11261 #    define LT_DLGLOBAL         DL_GLOBAL
11262 #  else
11263 #    define LT_DLGLOBAL         0
11264 #  endif
11265 #endif
11266
11267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11268    find out it does not work in some platform. */
11269 #ifndef LT_DLLAZY_OR_NOW
11270 #  ifdef RTLD_LAZY
11271 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11272 #  else
11273 #    ifdef DL_LAZY
11274 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11275 #    else
11276 #      ifdef RTLD_NOW
11277 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11278 #      else
11279 #        ifdef DL_NOW
11280 #          define LT_DLLAZY_OR_NOW      DL_NOW
11281 #        else
11282 #          define LT_DLLAZY_OR_NOW      0
11283 #        endif
11284 #      endif
11285 #    endif
11286 #  endif
11287 #endif
11288
11289 void fnord() { int i=42;}
11290 int main ()
11291 {
11292   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11293   int status = $lt_dlunknown;
11294
11295   if (self)
11296     {
11297       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11298       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11299       /* dlclose (self); */
11300     }
11301   else
11302     puts (dlerror ());
11303
11304   return status;
11305 }
11306 _LT_EOF
11307   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308   (eval $ac_link) 2>&5
11309   ac_status=$?
11310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11312     (./conftest; exit; ) >&5 2>/dev/null
11313     lt_status=$?
11314     case x$lt_status in
11315       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11316       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11317       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11318     esac
11319   else :
11320     # compilation failed
11321     lt_cv_dlopen_self_static=no
11322   fi
11323 fi
11324 rm -fr conftest*
11325
11326
11327 fi
11328 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11329 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11330     fi
11331
11332     CPPFLAGS="$save_CPPFLAGS"
11333     LDFLAGS="$save_LDFLAGS"
11334     LIBS="$save_LIBS"
11335     ;;
11336   esac
11337
11338   case $lt_cv_dlopen_self in
11339   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11340   *) enable_dlopen_self=unknown ;;
11341   esac
11342
11343   case $lt_cv_dlopen_self_static in
11344   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11345   *) enable_dlopen_self_static=unknown ;;
11346   esac
11347 fi
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 striplib=
11366 old_striplib=
11367 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11368 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11369 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11370   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11371   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11372   { $as_echo "$as_me:$LINENO: result: yes" >&5
11373 $as_echo "yes" >&6; }
11374 else
11375 # FIXME - insert some real tests, host_os isn't really good enough
11376   case $host_os in
11377   darwin*)
11378     if test -n "$STRIP" ; then
11379       striplib="$STRIP -x"
11380       old_striplib="$STRIP -S"
11381       { $as_echo "$as_me:$LINENO: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383     else
11384       { $as_echo "$as_me:$LINENO: result: no" >&5
11385 $as_echo "no" >&6; }
11386     fi
11387     ;;
11388   *)
11389     { $as_echo "$as_me:$LINENO: result: no" >&5
11390 $as_echo "no" >&6; }
11391     ;;
11392   esac
11393 fi
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406   # Report which library types will actually be built
11407   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11408 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11409   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11410 $as_echo "$can_build_shared" >&6; }
11411
11412   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11413 $as_echo_n "checking whether to build shared libraries... " >&6; }
11414   test "$can_build_shared" = "no" && enable_shared=no
11415
11416   # On AIX, shared libraries and static libraries use the same namespace, and
11417   # are all built from PIC.
11418   case $host_os in
11419   aix3*)
11420     test "$enable_shared" = yes && enable_static=no
11421     if test -n "$RANLIB"; then
11422       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423       postinstall_cmds='$RANLIB $lib'
11424     fi
11425     ;;
11426
11427   aix[4-9]*)
11428     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429       test "$enable_shared" = yes && enable_static=no
11430     fi
11431     ;;
11432   esac
11433   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11434 $as_echo "$enable_shared" >&6; }
11435
11436   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11437 $as_echo_n "checking whether to build static libraries... " >&6; }
11438   # Make sure either enable_shared or enable_static is yes.
11439   test "$enable_shared" = yes || enable_static=yes
11440   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11441 $as_echo "$enable_static" >&6; }
11442
11443
11444
11445
11446 fi
11447 ac_ext=c
11448 ac_cpp='$CPP $CPPFLAGS'
11449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11452
11453 CC="$lt_save_CC"
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467         ac_config_commands="$ac_config_commands libtool"
11468
11469
11470
11471
11472 # Only expand once:
11473
11474
11475
11476
11477
11478 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11479 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11480     # Check whether --enable-maintainer-mode was given.
11481 if test "${enable_maintainer_mode+set}" = set; then
11482   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11483 else
11484   USE_MAINTAINER_MODE=no
11485 fi
11486
11487   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11488 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11489    if test $USE_MAINTAINER_MODE = yes; then
11490   MAINTAINER_MODE_TRUE=
11491   MAINTAINER_MODE_FALSE='#'
11492 else
11493   MAINTAINER_MODE_TRUE='#'
11494   MAINTAINER_MODE_FALSE=
11495 fi
11496
11497   MAINT=$MAINTAINER_MODE_TRUE
11498
11499
11500
11501
11502 for ac_header in sys/mman.h
11503 do
11504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11507 $as_echo_n "checking for $ac_header... " >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509   $as_echo_n "(cached) " >&6
11510 fi
11511 ac_res=`eval 'as_val=${'$as_ac_Header'}
11512                  $as_echo "$as_val"'`
11513                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11514 $as_echo "$ac_res" >&6; }
11515 else
11516   # Is the header compilable?
11517 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11518 $as_echo_n "checking $ac_header usability... " >&6; }
11519 cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 $ac_includes_default
11526 #include <$ac_header>
11527 _ACEOF
11528 rm -f conftest.$ac_objext
11529 if { (ac_try="$ac_compile"
11530 case "(($ac_try" in
11531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532   *) ac_try_echo=$ac_try;;
11533 esac
11534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11535 $as_echo "$ac_try_echo") >&5
11536   (eval "$ac_compile") 2>conftest.er1
11537   ac_status=$?
11538   grep -v '^ *+' conftest.er1 >conftest.err
11539   rm -f conftest.er1
11540   cat conftest.err >&5
11541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } && {
11543          test -z "$ac_c_werror_flag" ||
11544          test ! -s conftest.err
11545        } && test -s conftest.$ac_objext; then
11546   ac_header_compiler=yes
11547 else
11548   $as_echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11550
11551         ac_header_compiler=no
11552 fi
11553
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 $as_echo "$ac_header_compiler" >&6; }
11557
11558 # Is the header present?
11559 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11560 $as_echo_n "checking $ac_header presence... " >&6; }
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 #include <$ac_header>
11568 _ACEOF
11569 if { (ac_try="$ac_cpp conftest.$ac_ext"
11570 case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11575 $as_echo "$ac_try_echo") >&5
11576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11577   ac_status=$?
11578   grep -v '^ *+' conftest.er1 >conftest.err
11579   rm -f conftest.er1
11580   cat conftest.err >&5
11581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } >/dev/null && {
11583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11584          test ! -s conftest.err
11585        }; then
11586   ac_header_preproc=yes
11587 else
11588   $as_echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591   ac_header_preproc=no
11592 fi
11593
11594 rm -f conftest.err conftest.$ac_ext
11595 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 $as_echo "$ac_header_preproc" >&6; }
11597
11598 # So?  What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600   yes:no: )
11601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605     ac_header_preproc=yes
11606     ;;
11607   no:yes:* )
11608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11611 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11615 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11620     ( cat <<\_ASBOX
11621 ## ------------------------------------------- ##
11622 ## Report this to http://gcc.gnu.org/bugs.html ##
11623 ## ------------------------------------------- ##
11624 _ASBOX
11625      ) | sed "s/^/$as_me: WARNING:     /" >&2
11626     ;;
11627 esac
11628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 $as_echo_n "checking for $ac_header... " >&6; }
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631   $as_echo_n "(cached) " >&6
11632 else
11633   eval "$as_ac_Header=\$ac_header_preproc"
11634 fi
11635 ac_res=`eval 'as_val=${'$as_ac_Header'}
11636                  $as_echo "$as_val"'`
11637                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11638 $as_echo "$ac_res" >&6; }
11639
11640 fi
11641 as_val=`eval 'as_val=${'$as_ac_Header'}
11642                  $as_echo "$as_val"'`
11643    if test "x$as_val" = x""yes; then
11644   cat >>confdefs.h <<_ACEOF
11645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646 _ACEOF
11647
11648 fi
11649
11650 done
11651
11652
11653 for ac_func in mmap
11654 do
11655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11657 $as_echo_n "checking for $ac_func... " >&6; }
11658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659   $as_echo_n "(cached) " >&6
11660 else
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11669 #define $ac_func innocuous_$ac_func
11670
11671 /* System header to define __stub macros and hopefully few prototypes,
11672     which can conflict with char $ac_func (); below.
11673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674     <limits.h> exists even on freestanding compilers.  */
11675
11676 #ifdef __STDC__
11677 # include <limits.h>
11678 #else
11679 # include <assert.h>
11680 #endif
11681
11682 #undef $ac_func
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685    Use char because int might match the return type of a GCC
11686    builtin and then its argument prototype would still apply.  */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char $ac_func ();
11691 /* The GNU C library defines this for functions which it implements
11692     to always fail with ENOSYS.  Some functions are actually named
11693     something starting with __ and the normal name is an alias.  */
11694 #if defined __stub_$ac_func || defined __stub___$ac_func
11695 choke me
11696 #endif
11697
11698 int
11699 main ()
11700 {
11701 return $ac_func ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714   (eval "$ac_link") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } && {
11721          test -z "$ac_c_werror_flag" ||
11722          test ! -s conftest.err
11723        } && test -s conftest$ac_exeext && {
11724          test "$cross_compiling" = yes ||
11725          $as_test_x conftest$ac_exeext
11726        }; then
11727   eval "$as_ac_var=yes"
11728 else
11729   $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732         eval "$as_ac_var=no"
11733 fi
11734
11735 rm -rf conftest.dSYM
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737       conftest$ac_exeext conftest.$ac_ext
11738 fi
11739 ac_res=`eval 'as_val=${'$as_ac_var'}
11740                  $as_echo "$as_val"'`
11741                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11742 $as_echo "$ac_res" >&6; }
11743 as_val=`eval 'as_val=${'$as_ac_var'}
11744                  $as_echo "$as_val"'`
11745    if test "x$as_val" = x""yes; then
11746   cat >>confdefs.h <<_ACEOF
11747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11748 _ACEOF
11749
11750 fi
11751 done
11752
11753
11754 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11755   { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11756 $as_echo_n "checking for sys/mman.h... " >&6; }
11757 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11758   $as_echo_n "(cached) " >&6
11759 fi
11760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11761 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11762 else
11763   # Is the header compilable?
11764 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11765 $as_echo_n "checking sys/mman.h usability... " >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 $ac_includes_default
11773 #include <sys/mman.h>
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11782 $as_echo "$ac_try_echo") >&5
11783   (eval "$ac_compile") 2>conftest.er1
11784   ac_status=$?
11785   grep -v '^ *+' conftest.er1 >conftest.err
11786   rm -f conftest.er1
11787   cat conftest.err >&5
11788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } && {
11790          test -z "$ac_c_werror_flag" ||
11791          test ! -s conftest.err
11792        } && test -s conftest.$ac_objext; then
11793   ac_header_compiler=yes
11794 else
11795   $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798         ac_header_compiler=no
11799 fi
11800
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11803 $as_echo "$ac_header_compiler" >&6; }
11804
11805 # Is the header present?
11806 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11807 $as_echo_n "checking sys/mman.h presence... " >&6; }
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814 #include <sys/mman.h>
11815 _ACEOF
11816 if { (ac_try="$ac_cpp conftest.$ac_ext"
11817 case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11822 $as_echo "$ac_try_echo") >&5
11823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11824   ac_status=$?
11825   grep -v '^ *+' conftest.er1 >conftest.err
11826   rm -f conftest.er1
11827   cat conftest.err >&5
11828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } >/dev/null && {
11830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11831          test ! -s conftest.err
11832        }; then
11833   ac_header_preproc=yes
11834 else
11835   $as_echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838   ac_header_preproc=no
11839 fi
11840
11841 rm -f conftest.err conftest.$ac_ext
11842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843 $as_echo "$ac_header_preproc" >&6; }
11844
11845 # So?  What about this header?
11846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11847   yes:no: )
11848     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11849 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11851 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11852     ac_header_preproc=yes
11853     ;;
11854   no:yes:* )
11855     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11856 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11857     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
11858 $as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
11859     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11860 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11861     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
11862 $as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11863     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11864 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11865     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11866 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11867     ( cat <<\_ASBOX
11868 ## ------------------------------------------- ##
11869 ## Report this to http://gcc.gnu.org/bugs.html ##
11870 ## ------------------------------------------- ##
11871 _ASBOX
11872      ) | sed "s/^/$as_me: WARNING:     /" >&2
11873     ;;
11874 esac
11875 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11876 $as_echo_n "checking for sys/mman.h... " >&6; }
11877 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11878   $as_echo_n "(cached) " >&6
11879 else
11880   ac_cv_header_sys_mman_h=$ac_header_preproc
11881 fi
11882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11883 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11884
11885 fi
11886 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11887   libffi_header_sys_mman_h=yes
11888 else
11889   libffi_header_sys_mman_h=no
11890 fi
11891
11892
11893 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11894 $as_echo_n "checking for mmap... " >&6; }
11895 if test "${ac_cv_func_mmap+set}" = set; then
11896   $as_echo_n "(cached) " >&6
11897 else
11898   cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11906 #define mmap innocuous_mmap
11907
11908 /* System header to define __stub macros and hopefully few prototypes,
11909     which can conflict with char mmap (); below.
11910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911     <limits.h> exists even on freestanding compilers.  */
11912
11913 #ifdef __STDC__
11914 # include <limits.h>
11915 #else
11916 # include <assert.h>
11917 #endif
11918
11919 #undef mmap
11920
11921 /* Override any GCC internal prototype to avoid an error.
11922    Use char because int might match the return type of a GCC
11923    builtin and then its argument prototype would still apply.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 char mmap ();
11928 /* The GNU C library defines this for functions which it implements
11929     to always fail with ENOSYS.  Some functions are actually named
11930     something starting with __ and the normal name is an alias.  */
11931 #if defined __stub_mmap || defined __stub___mmap
11932 choke me
11933 #endif
11934
11935 int
11936 main ()
11937 {
11938 return mmap ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11950 $as_echo "$ac_try_echo") >&5
11951   (eval "$ac_link") 2>conftest.er1
11952   ac_status=$?
11953   grep -v '^ *+' conftest.er1 >conftest.err
11954   rm -f conftest.er1
11955   cat conftest.err >&5
11956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); } && {
11958          test -z "$ac_c_werror_flag" ||
11959          test ! -s conftest.err
11960        } && test -s conftest$ac_exeext && {
11961          test "$cross_compiling" = yes ||
11962          $as_test_x conftest$ac_exeext
11963        }; then
11964   ac_cv_func_mmap=yes
11965 else
11966   $as_echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969         ac_cv_func_mmap=no
11970 fi
11971
11972 rm -rf conftest.dSYM
11973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11974       conftest$ac_exeext conftest.$ac_ext
11975 fi
11976 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11977 $as_echo "$ac_cv_func_mmap" >&6; }
11978 if test "x$ac_cv_func_mmap" = x""yes; then
11979   libffi_func_mmap=yes
11980 else
11981   libffi_func_mmap=no
11982 fi
11983
11984 if test "$libffi_header_sys_mman_h" != yes \
11985  || test "$libffi_func_mmap" != yes; then
11986    ac_cv_func_mmap_file=no
11987    ac_cv_func_mmap_dev_zero=no
11988    ac_cv_func_mmap_anon=no
11989 else
11990    { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11991 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11992 if test "${ac_cv_func_mmap_file+set}" = set; then
11993   $as_echo_n "(cached) " >&6
11994 else
11995   # Add a system to this blacklist if
11996    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11997    # memory area containing the same data that you'd get if you applied
11998    # read() to the same fd.  The only system known to have a problem here
11999    # is VMS, where text files have record structure.
12000    case "$host_os" in
12001      vms* | ultrix*)
12002         ac_cv_func_mmap_file=no ;;
12003      *)
12004         ac_cv_func_mmap_file=yes;;
12005    esac
12006 fi
12007 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12008 $as_echo "$ac_cv_func_mmap_file" >&6; }
12009    { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12010 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12011 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12012   $as_echo_n "(cached) " >&6
12013 else
12014   # Add a system to this blacklist if it has mmap() but /dev/zero
12015    # does not exist, or if mmapping /dev/zero does not give anonymous
12016    # zeroed pages with both the following properties:
12017    # 1. If you map N consecutive pages in with one call, and then
12018    #    unmap any subset of those pages, the pages that were not
12019    #    explicitly unmapped remain accessible.
12020    # 2. If you map two adjacent blocks of memory and then unmap them
12021    #    both at once, they must both go away.
12022    # Systems known to be in this category are Windows (all variants),
12023    # VMS, and Darwin.
12024    case "$host_os" in
12025      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12026         ac_cv_func_mmap_dev_zero=no ;;
12027      *)
12028         ac_cv_func_mmap_dev_zero=yes;;
12029    esac
12030 fi
12031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12032 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12033
12034    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12035    { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12036 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12037 if test "${ac_cv_decl_map_anon+set}" = set; then
12038   $as_echo_n "(cached) " >&6
12039 else
12040   cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 #include <sys/types.h>
12047 #include <sys/mman.h>
12048 #include <unistd.h>
12049
12050 #ifndef MAP_ANONYMOUS
12051 #define MAP_ANONYMOUS MAP_ANON
12052 #endif
12053
12054 int
12055 main ()
12056 {
12057 int n = MAP_ANONYMOUS;
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (ac_try="$ac_compile"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069 $as_echo "$ac_try_echo") >&5
12070   (eval "$ac_compile") 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } && {
12077          test -z "$ac_c_werror_flag" ||
12078          test ! -s conftest.err
12079        } && test -s conftest.$ac_objext; then
12080   ac_cv_decl_map_anon=yes
12081 else
12082   $as_echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085         ac_cv_decl_map_anon=no
12086 fi
12087
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 fi
12090 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12091 $as_echo "$ac_cv_decl_map_anon" >&6; }
12092
12093    if test $ac_cv_decl_map_anon = no; then
12094      ac_cv_func_mmap_anon=no
12095    else
12096      { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12097 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12098 if test "${ac_cv_func_mmap_anon+set}" = set; then
12099   $as_echo_n "(cached) " >&6
12100 else
12101   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12102    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12103    # doesn't give anonymous zeroed pages with the same properties listed
12104    # above for use of /dev/zero.
12105    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12106    case "$host_os" in
12107      vms* | cygwin* | pe | mingw* | sco* | udk* )
12108         ac_cv_func_mmap_anon=no ;;
12109      *)
12110         ac_cv_func_mmap_anon=yes;;
12111    esac
12112 fi
12113 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12114 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12115    fi
12116 fi
12117
12118 if test $ac_cv_func_mmap_file = yes; then
12119
12120 cat >>confdefs.h <<\_ACEOF
12121 #define HAVE_MMAP_FILE 1
12122 _ACEOF
12123
12124 fi
12125 if test $ac_cv_func_mmap_dev_zero = yes; then
12126
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_MMAP_DEV_ZERO 1
12129 _ACEOF
12130
12131 fi
12132 if test $ac_cv_func_mmap_anon = yes; then
12133
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_MMAP_ANON 1
12136 _ACEOF
12137
12138 fi
12139
12140
12141  if test -d $srcdir/testsuite; then
12142   TESTSUBDIR_TRUE=
12143   TESTSUBDIR_FALSE='#'
12144 else
12145   TESTSUBDIR_TRUE='#'
12146   TESTSUBDIR_FALSE=
12147 fi
12148
12149
12150 TARGETDIR="unknown"
12151 case "$host" in
12152   alpha*-*-*)
12153         TARGET=ALPHA; TARGETDIR=alpha;
12154         # Support 128-bit long double, changeable via command-line switch.
12155         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12156         ;;
12157
12158   arm*-*-*)
12159         TARGET=ARM; TARGETDIR=arm
12160         ;;
12161
12162   amd64-*-freebsd* | amd64-*-openbsd*)
12163         TARGET=X86_64; TARGETDIR=x86
12164         ;;
12165
12166   amd64-*-freebsd*)
12167         TARGET=X86_64; TARGETDIR=x86
12168         ;;
12169
12170   avr32*-*-*)
12171         TARGET=AVR32; TARGETDIR=avr32
12172         ;;
12173
12174   cris-*-*)
12175         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12176         ;;
12177
12178   frv-*-*)
12179         TARGET=FRV; TARGETDIR=frv
12180         ;;
12181
12182   hppa*-*-linux* | parisc*-*-linux*)
12183         TARGET=PA_LINUX; TARGETDIR=pa
12184         ;;
12185   hppa*64-*-hpux*)
12186         TARGET=PA64_HPUX; TARGETDIR=pa
12187         ;;
12188   hppa*-*-hpux*)
12189         TARGET=PA_HPUX; TARGETDIR=pa
12190         ;;
12191
12192   i?86-*-freebsd* | i?86-*-openbsd*)
12193         TARGET=X86_FREEBSD; TARGETDIR=x86
12194         ;;
12195   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
12196         TARGET=X86_WIN32; TARGETDIR=x86
12197         # All mingw/cygwin/win32 builds require this for sharedlib
12198         AM_LTLDFLAGS="-no-undefined"
12199         ;;
12200   i?86-*-darwin*)
12201         TARGET=X86_DARWIN; TARGETDIR=x86
12202         ;;
12203   i?86-*-solaris2.1[0-9]*)
12204         TARGET=X86_64; TARGETDIR=x86
12205         ;;
12206   i?86-*-*)
12207         TARGET=X86; TARGETDIR=x86
12208         ;;
12209
12210   ia64*-*-*)
12211         TARGET=IA64; TARGETDIR=ia64
12212         ;;
12213
12214   m32r*-*-*)
12215         TARGET=M32R; TARGETDIR=m32r
12216         ;;
12217
12218   m68k-*-*)
12219         TARGET=M68K; TARGETDIR=m68k
12220         ;;
12221
12222   mips-sgi-irix5.* | mips-sgi-irix6.*)
12223         TARGET=MIPS; TARGETDIR=mips
12224         ;;
12225   mips*-*-linux*)
12226         # Support 128-bit long double for NewABI.
12227         HAVE_LONG_DOUBLE='defined(__mips64)'
12228         TARGET=MIPS; TARGETDIR=mips
12229         ;;
12230
12231   powerpc*-*-linux* | powerpc-*-sysv*)
12232         TARGET=POWERPC; TARGETDIR=powerpc
12233         ;;
12234   powerpc-*-beos*)
12235         TARGET=POWERPC; TARGETDIR=powerpc
12236         ;;
12237   powerpc-*-darwin*)
12238         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12239         ;;
12240   powerpc-*-aix* | rs6000-*-aix*)
12241         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12242         ;;
12243   powerpc-*-freebsd*)
12244         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12245         ;;
12246  powerpc64-*-freebsd*)
12247         TARGET=POWERPC; TARGETDIR=powerpc
12248         ;;
12249   powerpc*-*-rtems*)
12250         TARGET=POWERPC; TARGETDIR=powerpc
12251         ;;
12252
12253   s390-*-* | s390x-*-*)
12254         TARGET=S390; TARGETDIR=s390
12255         ;;
12256
12257   sh-*-* | sh[34]*-*-*)
12258         TARGET=SH; TARGETDIR=sh
12259         ;;
12260   sh64-*-* | sh5*-*-*)
12261         TARGET=SH64; TARGETDIR=sh64
12262         ;;
12263
12264   sparc*-*-*)
12265         TARGET=SPARC; TARGETDIR=sparc
12266         ;;
12267
12268   x86_64-*-darwin*)
12269         TARGET=X86_DARWIN; TARGETDIR=x86
12270         ;;
12271
12272   x86_64-*-cygwin* | x86_64-*-mingw*)
12273         TARGET=X86_WIN64; TARGETDIR=x86
12274         ;;
12275
12276   x86_64-*-*)
12277         TARGET=X86_64; TARGETDIR=x86
12278         ;;
12279 esac
12280
12281
12282
12283
12284 if test $TARGETDIR = unknown; then
12285   { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12286 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12287    { (exit 1); exit 1; }; }
12288 fi
12289
12290  if test x$TARGET = xMIPS; then
12291   MIPS_TRUE=
12292   MIPS_FALSE='#'
12293 else
12294   MIPS_TRUE='#'
12295   MIPS_FALSE=
12296 fi
12297
12298  if test x$TARGET = xSPARC; then
12299   SPARC_TRUE=
12300   SPARC_FALSE='#'
12301 else
12302   SPARC_TRUE='#'
12303   SPARC_FALSE=
12304 fi
12305
12306  if test x$TARGET = xX86; then
12307   X86_TRUE=
12308   X86_FALSE='#'
12309 else
12310   X86_TRUE='#'
12311   X86_FALSE=
12312 fi
12313
12314  if test x$TARGET = xX86_FREEBSD; then
12315   X86_FREEBSD_TRUE=
12316   X86_FREEBSD_FALSE='#'
12317 else
12318   X86_FREEBSD_TRUE='#'
12319   X86_FREEBSD_FALSE=
12320 fi
12321
12322  if test x$TARGET = xX86_WIN32; then
12323   X86_WIN32_TRUE=
12324   X86_WIN32_FALSE='#'
12325 else
12326   X86_WIN32_TRUE='#'
12327   X86_WIN32_FALSE=
12328 fi
12329
12330  if test x$TARGET = xX86_WIN64; then
12331   X86_WIN64_TRUE=
12332   X86_WIN64_FALSE='#'
12333 else
12334   X86_WIN64_TRUE='#'
12335   X86_WIN64_FALSE=
12336 fi
12337
12338  if test x$TARGET = xX86_DARWIN; then
12339   X86_DARWIN_TRUE=
12340   X86_DARWIN_FALSE='#'
12341 else
12342   X86_DARWIN_TRUE='#'
12343   X86_DARWIN_FALSE=
12344 fi
12345
12346  if test x$TARGET = xALPHA; then
12347   ALPHA_TRUE=
12348   ALPHA_FALSE='#'
12349 else
12350   ALPHA_TRUE='#'
12351   ALPHA_FALSE=
12352 fi
12353
12354  if test x$TARGET = xIA64; then
12355   IA64_TRUE=
12356   IA64_FALSE='#'
12357 else
12358   IA64_TRUE='#'
12359   IA64_FALSE=
12360 fi
12361
12362  if test x$TARGET = xM32R; then
12363   M32R_TRUE=
12364   M32R_FALSE='#'
12365 else
12366   M32R_TRUE='#'
12367   M32R_FALSE=
12368 fi
12369
12370  if test x$TARGET = xM68K; then
12371   M68K_TRUE=
12372   M68K_FALSE='#'
12373 else
12374   M68K_TRUE='#'
12375   M68K_FALSE=
12376 fi
12377
12378  if test x$TARGET = xMOXIE; then
12379   MOXIE_TRUE=
12380   MOXIE_FALSE='#'
12381 else
12382   MOXIE_TRUE='#'
12383   MOXIE_FALSE=
12384 fi
12385
12386  if test x$TARGET = xPOWERPC; then
12387   POWERPC_TRUE=
12388   POWERPC_FALSE='#'
12389 else
12390   POWERPC_TRUE='#'
12391   POWERPC_FALSE=
12392 fi
12393
12394  if test x$TARGET = xPOWERPC_AIX; then
12395   POWERPC_AIX_TRUE=
12396   POWERPC_AIX_FALSE='#'
12397 else
12398   POWERPC_AIX_TRUE='#'
12399   POWERPC_AIX_FALSE=
12400 fi
12401
12402  if test x$TARGET = xPOWERPC_DARWIN; then
12403   POWERPC_DARWIN_TRUE=
12404   POWERPC_DARWIN_FALSE='#'
12405 else
12406   POWERPC_DARWIN_TRUE='#'
12407   POWERPC_DARWIN_FALSE=
12408 fi
12409
12410  if test x$TARGET = xPOWERPC_FREEBSD; then
12411   POWERPC_FREEBSD_TRUE=
12412   POWERPC_FREEBSD_FALSE='#'
12413 else
12414   POWERPC_FREEBSD_TRUE='#'
12415   POWERPC_FREEBSD_FALSE=
12416 fi
12417
12418  if test x$TARGET = xARM; then
12419   ARM_TRUE=
12420   ARM_FALSE='#'
12421 else
12422   ARM_TRUE='#'
12423   ARM_FALSE=
12424 fi
12425
12426  if test x$TARGET = xAVR32; then
12427   AVR32_TRUE=
12428   AVR32_FALSE='#'
12429 else
12430   AVR32_TRUE='#'
12431   AVR32_FALSE=
12432 fi
12433
12434  if test x$TARGET = xLIBFFI_CRIS; then
12435   LIBFFI_CRIS_TRUE=
12436   LIBFFI_CRIS_FALSE='#'
12437 else
12438   LIBFFI_CRIS_TRUE='#'
12439   LIBFFI_CRIS_FALSE=
12440 fi
12441
12442  if test x$TARGET = xFRV; then
12443   FRV_TRUE=
12444   FRV_FALSE='#'
12445 else
12446   FRV_TRUE='#'
12447   FRV_FALSE=
12448 fi
12449
12450  if test x$TARGET = xS390; then
12451   S390_TRUE=
12452   S390_FALSE='#'
12453 else
12454   S390_TRUE='#'
12455   S390_FALSE=
12456 fi
12457
12458  if test x$TARGET = xX86_64; then
12459   X86_64_TRUE=
12460   X86_64_FALSE='#'
12461 else
12462   X86_64_TRUE='#'
12463   X86_64_FALSE=
12464 fi
12465
12466  if test x$TARGET = xSH; then
12467   SH_TRUE=
12468   SH_FALSE='#'
12469 else
12470   SH_TRUE='#'
12471   SH_FALSE=
12472 fi
12473
12474  if test x$TARGET = xSH64; then
12475   SH64_TRUE=
12476   SH64_FALSE='#'
12477 else
12478   SH64_TRUE='#'
12479   SH64_FALSE=
12480 fi
12481
12482  if test x$TARGET = xPA_LINUX; then
12483   PA_LINUX_TRUE=
12484   PA_LINUX_FALSE='#'
12485 else
12486   PA_LINUX_TRUE='#'
12487   PA_LINUX_FALSE=
12488 fi
12489
12490  if test x$TARGET = xPA_HPUX; then
12491   PA_HPUX_TRUE=
12492   PA_HPUX_FALSE='#'
12493 else
12494   PA_HPUX_TRUE='#'
12495   PA_HPUX_FALSE=
12496 fi
12497
12498  if test x$TARGET = xPA64_HPUX; then
12499   PA64_HPUX_TRUE=
12500   PA64_HPUX_FALSE='#'
12501 else
12502   PA64_HPUX_TRUE='#'
12503   PA64_HPUX_FALSE=
12504 fi
12505
12506
12507 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12508 $as_echo_n "checking for ANSI C header files... " >&6; }
12509 if test "${ac_cv_header_stdc+set}" = set; then
12510   $as_echo_n "(cached) " >&6
12511 else
12512   cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518 #include <stdlib.h>
12519 #include <stdarg.h>
12520 #include <string.h>
12521 #include <float.h>
12522
12523 int
12524 main ()
12525 {
12526
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext
12532 if { (ac_try="$ac_compile"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12538 $as_echo "$ac_try_echo") >&5
12539   (eval "$ac_compile") 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } && {
12546          test -z "$ac_c_werror_flag" ||
12547          test ! -s conftest.err
12548        } && test -s conftest.$ac_objext; then
12549   ac_cv_header_stdc=yes
12550 else
12551   $as_echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554         ac_cv_header_stdc=no
12555 fi
12556
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558
12559 if test $ac_cv_header_stdc = yes; then
12560   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12561   cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 #include <string.h>
12568
12569 _ACEOF
12570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12571   $EGREP "memchr" >/dev/null 2>&1; then
12572   :
12573 else
12574   ac_cv_header_stdc=no
12575 fi
12576 rm -f conftest*
12577
12578 fi
12579
12580 if test $ac_cv_header_stdc = yes; then
12581   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12582   cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588 #include <stdlib.h>
12589
12590 _ACEOF
12591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592   $EGREP "free" >/dev/null 2>&1; then
12593   :
12594 else
12595   ac_cv_header_stdc=no
12596 fi
12597 rm -f conftest*
12598
12599 fi
12600
12601 if test $ac_cv_header_stdc = yes; then
12602   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12603   if test "$cross_compiling" = yes; then
12604   :
12605 else
12606   cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 #include <ctype.h>
12613 #include <stdlib.h>
12614 #if ((' ' & 0x0FF) == 0x020)
12615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12617 #else
12618 # define ISLOWER(c) \
12619                    (('a' <= (c) && (c) <= 'i') \
12620                      || ('j' <= (c) && (c) <= 'r') \
12621                      || ('s' <= (c) && (c) <= 'z'))
12622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12623 #endif
12624
12625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12626 int
12627 main ()
12628 {
12629   int i;
12630   for (i = 0; i < 256; i++)
12631     if (XOR (islower (i), ISLOWER (i))
12632         || toupper (i) != TOUPPER (i))
12633       return 2;
12634   return 0;
12635 }
12636 _ACEOF
12637 rm -f conftest$ac_exeext
12638 if { (ac_try="$ac_link"
12639 case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12644 $as_echo "$ac_try_echo") >&5
12645   (eval "$ac_link") 2>&5
12646   ac_status=$?
12647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12649   { (case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654 $as_echo "$ac_try_echo") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   :
12660 else
12661   $as_echo "$as_me: program exited with status $ac_status" >&5
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ( exit $ac_status )
12666 ac_cv_header_stdc=no
12667 fi
12668 rm -rf conftest.dSYM
12669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12670 fi
12671
12672
12673 fi
12674 fi
12675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12676 $as_echo "$ac_cv_header_stdc" >&6; }
12677 if test $ac_cv_header_stdc = yes; then
12678
12679 cat >>confdefs.h <<\_ACEOF
12680 #define STDC_HEADERS 1
12681 _ACEOF
12682
12683 fi
12684
12685
12686 for ac_func in memcpy
12687 do
12688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12690 $as_echo_n "checking for $ac_func... " >&6; }
12691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12692   $as_echo_n "(cached) " >&6
12693 else
12694   cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12702 #define $ac_func innocuous_$ac_func
12703
12704 /* System header to define __stub macros and hopefully few prototypes,
12705     which can conflict with char $ac_func (); below.
12706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707     <limits.h> exists even on freestanding compilers.  */
12708
12709 #ifdef __STDC__
12710 # include <limits.h>
12711 #else
12712 # include <assert.h>
12713 #endif
12714
12715 #undef $ac_func
12716
12717 /* Override any GCC internal prototype to avoid an error.
12718    Use char because int might match the return type of a GCC
12719    builtin and then its argument prototype would still apply.  */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 char $ac_func ();
12724 /* The GNU C library defines this for functions which it implements
12725     to always fail with ENOSYS.  Some functions are actually named
12726     something starting with __ and the normal name is an alias.  */
12727 #if defined __stub_$ac_func || defined __stub___$ac_func
12728 choke me
12729 #endif
12730
12731 int
12732 main ()
12733 {
12734 return $ac_func ();
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747   (eval "$ac_link") 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } && {
12754          test -z "$ac_c_werror_flag" ||
12755          test ! -s conftest.err
12756        } && test -s conftest$ac_exeext && {
12757          test "$cross_compiling" = yes ||
12758          $as_test_x conftest$ac_exeext
12759        }; then
12760   eval "$as_ac_var=yes"
12761 else
12762   $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765         eval "$as_ac_var=no"
12766 fi
12767
12768 rm -rf conftest.dSYM
12769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12770       conftest$ac_exeext conftest.$ac_ext
12771 fi
12772 ac_res=`eval 'as_val=${'$as_ac_var'}
12773                  $as_echo "$as_val"'`
12774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12775 $as_echo "$ac_res" >&6; }
12776 as_val=`eval 'as_val=${'$as_ac_var'}
12777                  $as_echo "$as_val"'`
12778    if test "x$as_val" = x""yes; then
12779   cat >>confdefs.h <<_ACEOF
12780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12781 _ACEOF
12782
12783 fi
12784 done
12785
12786 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12787 # for constant arguments.  Useless!
12788 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12789 $as_echo_n "checking for working alloca.h... " >&6; }
12790 if test "${ac_cv_working_alloca_h+set}" = set; then
12791   $as_echo_n "(cached) " >&6
12792 else
12793   cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 #include <alloca.h>
12800 int
12801 main ()
12802 {
12803 char *p = (char *) alloca (2 * sizeof (int));
12804                           if (p) return 0;
12805   ;
12806   return 0;
12807 }
12808 _ACEOF
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813   *) ac_try_echo=$ac_try;;
12814 esac
12815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816 $as_echo "$ac_try_echo") >&5
12817   (eval "$ac_link") 2>conftest.er1
12818   ac_status=$?
12819   grep -v '^ *+' conftest.er1 >conftest.err
12820   rm -f conftest.er1
12821   cat conftest.err >&5
12822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } && {
12824          test -z "$ac_c_werror_flag" ||
12825          test ! -s conftest.err
12826        } && test -s conftest$ac_exeext && {
12827          test "$cross_compiling" = yes ||
12828          $as_test_x conftest$ac_exeext
12829        }; then
12830   ac_cv_working_alloca_h=yes
12831 else
12832   $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835         ac_cv_working_alloca_h=no
12836 fi
12837
12838 rm -rf conftest.dSYM
12839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12840       conftest$ac_exeext conftest.$ac_ext
12841 fi
12842 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12843 $as_echo "$ac_cv_working_alloca_h" >&6; }
12844 if test $ac_cv_working_alloca_h = yes; then
12845
12846 cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_ALLOCA_H 1
12848 _ACEOF
12849
12850 fi
12851
12852 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12853 $as_echo_n "checking for alloca... " >&6; }
12854 if test "${ac_cv_func_alloca_works+set}" = set; then
12855   $as_echo_n "(cached) " >&6
12856 else
12857   cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863 #ifdef __GNUC__
12864 # define alloca __builtin_alloca
12865 #else
12866 # ifdef _MSC_VER
12867 #  include <malloc.h>
12868 #  define alloca _alloca
12869 # else
12870 #  ifdef HAVE_ALLOCA_H
12871 #   include <alloca.h>
12872 #  else
12873 #   ifdef _AIX
12874  #pragma alloca
12875 #   else
12876 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12877 char *alloca ();
12878 #    endif
12879 #   endif
12880 #  endif
12881 # endif
12882 #endif
12883
12884 int
12885 main ()
12886 {
12887 char *p = (char *) alloca (1);
12888                                     if (p) return 0;
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (ac_try="$ac_link"
12895 case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900 $as_echo "$ac_try_echo") >&5
12901   (eval "$ac_link") 2>conftest.er1
12902   ac_status=$?
12903   grep -v '^ *+' conftest.er1 >conftest.err
12904   rm -f conftest.er1
12905   cat conftest.err >&5
12906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } && {
12908          test -z "$ac_c_werror_flag" ||
12909          test ! -s conftest.err
12910        } && test -s conftest$ac_exeext && {
12911          test "$cross_compiling" = yes ||
12912          $as_test_x conftest$ac_exeext
12913        }; then
12914   ac_cv_func_alloca_works=yes
12915 else
12916   $as_echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919         ac_cv_func_alloca_works=no
12920 fi
12921
12922 rm -rf conftest.dSYM
12923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12924       conftest$ac_exeext conftest.$ac_ext
12925 fi
12926 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12927 $as_echo "$ac_cv_func_alloca_works" >&6; }
12928
12929 if test $ac_cv_func_alloca_works = yes; then
12930
12931 cat >>confdefs.h <<\_ACEOF
12932 #define HAVE_ALLOCA 1
12933 _ACEOF
12934
12935 else
12936   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12937 # that cause trouble.  Some versions do not even contain alloca or
12938 # contain a buggy version.  If you still want to use their alloca,
12939 # use ar to extract alloca.o from them instead of compiling alloca.c.
12940
12941 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define C_ALLOCA 1
12945 _ACEOF
12946
12947
12948 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12949 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12950 if test "${ac_cv_os_cray+set}" = set; then
12951   $as_echo_n "(cached) " >&6
12952 else
12953   cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959 #if defined CRAY && ! defined CRAY2
12960 webecray
12961 #else
12962 wenotbecray
12963 #endif
12964
12965 _ACEOF
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967   $EGREP "webecray" >/dev/null 2>&1; then
12968   ac_cv_os_cray=yes
12969 else
12970   ac_cv_os_cray=no
12971 fi
12972 rm -f conftest*
12973
12974 fi
12975 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12976 $as_echo "$ac_cv_os_cray" >&6; }
12977 if test $ac_cv_os_cray = yes; then
12978   for ac_func in _getb67 GETB67 getb67; do
12979     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12981 $as_echo_n "checking for $ac_func... " >&6; }
12982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12983   $as_echo_n "(cached) " >&6
12984 else
12985   cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12993 #define $ac_func innocuous_$ac_func
12994
12995 /* System header to define __stub macros and hopefully few prototypes,
12996     which can conflict with char $ac_func (); below.
12997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12998     <limits.h> exists even on freestanding compilers.  */
12999
13000 #ifdef __STDC__
13001 # include <limits.h>
13002 #else
13003 # include <assert.h>
13004 #endif
13005
13006 #undef $ac_func
13007
13008 /* Override any GCC internal prototype to avoid an error.
13009    Use char because int might match the return type of a GCC
13010    builtin and then its argument prototype would still apply.  */
13011 #ifdef __cplusplus
13012 extern "C"
13013 #endif
13014 char $ac_func ();
13015 /* The GNU C library defines this for functions which it implements
13016     to always fail with ENOSYS.  Some functions are actually named
13017     something starting with __ and the normal name is an alias.  */
13018 #if defined __stub_$ac_func || defined __stub___$ac_func
13019 choke me
13020 #endif
13021
13022 int
13023 main ()
13024 {
13025 return $ac_func ();
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (ac_try="$ac_link"
13032 case "(($ac_try" in
13033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034   *) ac_try_echo=$ac_try;;
13035 esac
13036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13037 $as_echo "$ac_try_echo") >&5
13038   (eval "$ac_link") 2>conftest.er1
13039   ac_status=$?
13040   grep -v '^ *+' conftest.er1 >conftest.err
13041   rm -f conftest.er1
13042   cat conftest.err >&5
13043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } && {
13045          test -z "$ac_c_werror_flag" ||
13046          test ! -s conftest.err
13047        } && test -s conftest$ac_exeext && {
13048          test "$cross_compiling" = yes ||
13049          $as_test_x conftest$ac_exeext
13050        }; then
13051   eval "$as_ac_var=yes"
13052 else
13053   $as_echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056         eval "$as_ac_var=no"
13057 fi
13058
13059 rm -rf conftest.dSYM
13060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13061       conftest$ac_exeext conftest.$ac_ext
13062 fi
13063 ac_res=`eval 'as_val=${'$as_ac_var'}
13064                  $as_echo "$as_val"'`
13065                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13066 $as_echo "$ac_res" >&6; }
13067 as_val=`eval 'as_val=${'$as_ac_var'}
13068                  $as_echo "$as_val"'`
13069    if test "x$as_val" = x""yes; then
13070
13071 cat >>confdefs.h <<_ACEOF
13072 #define CRAY_STACKSEG_END $ac_func
13073 _ACEOF
13074
13075     break
13076 fi
13077
13078   done
13079 fi
13080
13081 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13082 $as_echo_n "checking stack direction for C alloca... " >&6; }
13083 if test "${ac_cv_c_stack_direction+set}" = set; then
13084   $as_echo_n "(cached) " >&6
13085 else
13086   if test "$cross_compiling" = yes; then
13087   ac_cv_c_stack_direction=0
13088 else
13089   cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 $ac_includes_default
13096 int
13097 find_stack_direction ()
13098 {
13099   static char *addr = 0;
13100   auto char dummy;
13101   if (addr == 0)
13102     {
13103       addr = &dummy;
13104       return find_stack_direction ();
13105     }
13106   else
13107     return (&dummy > addr) ? 1 : -1;
13108 }
13109
13110 int
13111 main ()
13112 {
13113   return find_stack_direction () < 0;
13114 }
13115 _ACEOF
13116 rm -f conftest$ac_exeext
13117 if { (ac_try="$ac_link"
13118 case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13123 $as_echo "$ac_try_echo") >&5
13124   (eval "$ac_link") 2>&5
13125   ac_status=$?
13126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13128   { (case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_cv_c_stack_direction=1
13139 else
13140   $as_echo "$as_me: program exited with status $ac_status" >&5
13141 $as_echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ( exit $ac_status )
13145 ac_cv_c_stack_direction=-1
13146 fi
13147 rm -rf conftest.dSYM
13148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13149 fi
13150
13151
13152 fi
13153 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13154 $as_echo "$ac_cv_c_stack_direction" >&6; }
13155
13156 cat >>confdefs.h <<_ACEOF
13157 #define STACK_DIRECTION $ac_cv_c_stack_direction
13158 _ACEOF
13159
13160
13161 fi
13162
13163
13164 # The cast to long int works around a bug in the HP C Compiler
13165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13167 # This bug is HP SR number 8606223364.
13168 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13169 $as_echo_n "checking size of double... " >&6; }
13170 if test "${ac_cv_sizeof_double+set}" = set; then
13171   $as_echo_n "(cached) " >&6
13172 else
13173   if test "$cross_compiling" = yes; then
13174   # Depending upon the size, compute the lo and hi bounds.
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h.  */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h.  */
13181 $ac_includes_default
13182 int
13183 main ()
13184 {
13185 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13186 test_array [0] = 0
13187
13188   ;
13189   return 0;
13190 }
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196   *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200   (eval "$ac_compile") 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } && {
13207          test -z "$ac_c_werror_flag" ||
13208          test ! -s conftest.err
13209        } && test -s conftest.$ac_objext; then
13210   ac_lo=0 ac_mid=0
13211   while :; do
13212     cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 $ac_includes_default
13219 int
13220 main ()
13221 {
13222 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13223 test_array [0] = 0
13224
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext
13230 if { (ac_try="$ac_compile"
13231 case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236 $as_echo "$ac_try_echo") >&5
13237   (eval "$ac_compile") 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } && {
13244          test -z "$ac_c_werror_flag" ||
13245          test ! -s conftest.err
13246        } && test -s conftest.$ac_objext; then
13247   ac_hi=$ac_mid; break
13248 else
13249   $as_echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252         ac_lo=`expr $ac_mid + 1`
13253                         if test $ac_lo -le $ac_mid; then
13254                           ac_lo= ac_hi=
13255                           break
13256                         fi
13257                         ac_mid=`expr 2 '*' $ac_mid + 1`
13258 fi
13259
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261   done
13262 else
13263   $as_echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266         cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 $ac_includes_default
13273 int
13274 main ()
13275 {
13276 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13277 test_array [0] = 0
13278
13279   ;
13280   return 0;
13281 }
13282 _ACEOF
13283 rm -f conftest.$ac_objext
13284 if { (ac_try="$ac_compile"
13285 case "(($ac_try" in
13286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287   *) ac_try_echo=$ac_try;;
13288 esac
13289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13290 $as_echo "$ac_try_echo") >&5
13291   (eval "$ac_compile") 2>conftest.er1
13292   ac_status=$?
13293   grep -v '^ *+' conftest.er1 >conftest.err
13294   rm -f conftest.er1
13295   cat conftest.err >&5
13296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); } && {
13298          test -z "$ac_c_werror_flag" ||
13299          test ! -s conftest.err
13300        } && test -s conftest.$ac_objext; then
13301   ac_hi=-1 ac_mid=-1
13302   while :; do
13303     cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h.  */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h.  */
13309 $ac_includes_default
13310 int
13311 main ()
13312 {
13313 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13314 test_array [0] = 0
13315
13316   ;
13317   return 0;
13318 }
13319 _ACEOF
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13327 $as_echo "$ac_try_echo") >&5
13328   (eval "$ac_compile") 2>conftest.er1
13329   ac_status=$?
13330   grep -v '^ *+' conftest.er1 >conftest.err
13331   rm -f conftest.er1
13332   cat conftest.err >&5
13333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); } && {
13335          test -z "$ac_c_werror_flag" ||
13336          test ! -s conftest.err
13337        } && test -s conftest.$ac_objext; then
13338   ac_lo=$ac_mid; break
13339 else
13340   $as_echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13342
13343         ac_hi=`expr '(' $ac_mid ')' - 1`
13344                         if test $ac_mid -le $ac_hi; then
13345                           ac_lo= ac_hi=
13346                           break
13347                         fi
13348                         ac_mid=`expr 2 '*' $ac_mid`
13349 fi
13350
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352   done
13353 else
13354   $as_echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357         ac_lo= ac_hi=
13358 fi
13359
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 fi
13362
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 # Binary search between lo and hi bounds.
13365 while test "x$ac_lo" != "x$ac_hi"; do
13366   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13367   cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 $ac_includes_default
13374 int
13375 main ()
13376 {
13377 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13378 test_array [0] = 0
13379
13380   ;
13381   return 0;
13382 }
13383 _ACEOF
13384 rm -f conftest.$ac_objext
13385 if { (ac_try="$ac_compile"
13386 case "(($ac_try" in
13387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388   *) ac_try_echo=$ac_try;;
13389 esac
13390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13391 $as_echo "$ac_try_echo") >&5
13392   (eval "$ac_compile") 2>conftest.er1
13393   ac_status=$?
13394   grep -v '^ *+' conftest.er1 >conftest.err
13395   rm -f conftest.er1
13396   cat conftest.err >&5
13397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); } && {
13399          test -z "$ac_c_werror_flag" ||
13400          test ! -s conftest.err
13401        } && test -s conftest.$ac_objext; then
13402   ac_hi=$ac_mid
13403 else
13404   $as_echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407         ac_lo=`expr '(' $ac_mid ')' + 1`
13408 fi
13409
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 done
13412 case $ac_lo in
13413 ?*) ac_cv_sizeof_double=$ac_lo;;
13414 '') if test "$ac_cv_type_double" = yes; then
13415      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13417 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13418 See \`config.log' for more details." >&5
13419 $as_echo "$as_me: error: cannot compute sizeof (double)
13420 See \`config.log' for more details." >&2;}
13421    { (exit 77); exit 77; }; }; }
13422    else
13423      ac_cv_sizeof_double=0
13424    fi ;;
13425 esac
13426 else
13427   cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h.  */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h.  */
13433 $ac_includes_default
13434 static long int longval () { return (long int) (sizeof (double)); }
13435 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13436 #include <stdio.h>
13437 #include <stdlib.h>
13438 int
13439 main ()
13440 {
13441
13442   FILE *f = fopen ("conftest.val", "w");
13443   if (! f)
13444     return 1;
13445   if (((long int) (sizeof (double))) < 0)
13446     {
13447       long int i = longval ();
13448       if (i != ((long int) (sizeof (double))))
13449         return 1;
13450       fprintf (f, "%ld", i);
13451     }
13452   else
13453     {
13454       unsigned long int i = ulongval ();
13455       if (i != ((long int) (sizeof (double))))
13456         return 1;
13457       fprintf (f, "%lu", i);
13458     }
13459   /* Do not output a trailing newline, as this causes \r\n confusion
13460      on some platforms.  */
13461   return ferror (f) || fclose (f) != 0;
13462
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471   *) ac_try_echo=$ac_try;;
13472 esac
13473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475   (eval "$ac_link") 2>&5
13476   ac_status=$?
13477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13479   { (case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485   (eval "$ac_try") 2>&5
13486   ac_status=$?
13487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; }; then
13489   ac_cv_sizeof_double=`cat conftest.val`
13490 else
13491   $as_echo "$as_me: program exited with status $ac_status" >&5
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ( exit $ac_status )
13496 if test "$ac_cv_type_double" = yes; then
13497      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13499 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13500 See \`config.log' for more details." >&5
13501 $as_echo "$as_me: error: cannot compute sizeof (double)
13502 See \`config.log' for more details." >&2;}
13503    { (exit 77); exit 77; }; }; }
13504    else
13505      ac_cv_sizeof_double=0
13506    fi
13507 fi
13508 rm -rf conftest.dSYM
13509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13510 fi
13511 rm -f conftest.val
13512 fi
13513 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13514 $as_echo "$ac_cv_sizeof_double" >&6; }
13515
13516
13517
13518 cat >>confdefs.h <<_ACEOF
13519 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13520 _ACEOF
13521
13522
13523 # The cast to long int works around a bug in the HP C Compiler
13524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13526 # This bug is HP SR number 8606223364.
13527 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13528 $as_echo_n "checking size of long double... " >&6; }
13529 if test "${ac_cv_sizeof_long_double+set}" = set; then
13530   $as_echo_n "(cached) " >&6
13531 else
13532   if test "$cross_compiling" = yes; then
13533   # Depending upon the size, compute the lo and hi bounds.
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540 $ac_includes_default
13541 int
13542 main ()
13543 {
13544 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13545 test_array [0] = 0
13546
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (ac_try="$ac_compile"
13553 case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13558 $as_echo "$ac_try_echo") >&5
13559   (eval "$ac_compile") 2>conftest.er1
13560   ac_status=$?
13561   grep -v '^ *+' conftest.er1 >conftest.err
13562   rm -f conftest.er1
13563   cat conftest.err >&5
13564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); } && {
13566          test -z "$ac_c_werror_flag" ||
13567          test ! -s conftest.err
13568        } && test -s conftest.$ac_objext; then
13569   ac_lo=0 ac_mid=0
13570   while :; do
13571     cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577 $ac_includes_default
13578 int
13579 main ()
13580 {
13581 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13582 test_array [0] = 0
13583
13584   ;
13585   return 0;
13586 }
13587 _ACEOF
13588 rm -f conftest.$ac_objext
13589 if { (ac_try="$ac_compile"
13590 case "(($ac_try" in
13591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592   *) ac_try_echo=$ac_try;;
13593 esac
13594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13595 $as_echo "$ac_try_echo") >&5
13596   (eval "$ac_compile") 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } && {
13603          test -z "$ac_c_werror_flag" ||
13604          test ! -s conftest.err
13605        } && test -s conftest.$ac_objext; then
13606   ac_hi=$ac_mid; break
13607 else
13608   $as_echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13610
13611         ac_lo=`expr $ac_mid + 1`
13612                         if test $ac_lo -le $ac_mid; then
13613                           ac_lo= ac_hi=
13614                           break
13615                         fi
13616                         ac_mid=`expr 2 '*' $ac_mid + 1`
13617 fi
13618
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620   done
13621 else
13622   $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625         cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h.  */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h.  */
13631 $ac_includes_default
13632 int
13633 main ()
13634 {
13635 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13636 test_array [0] = 0
13637
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13649 $as_echo "$ac_try_echo") >&5
13650   (eval "$ac_compile") 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } && {
13657          test -z "$ac_c_werror_flag" ||
13658          test ! -s conftest.err
13659        } && test -s conftest.$ac_objext; then
13660   ac_hi=-1 ac_mid=-1
13661   while :; do
13662     cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h.  */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h.  */
13668 $ac_includes_default
13669 int
13670 main ()
13671 {
13672 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13673 test_array [0] = 0
13674
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13686 $as_echo "$ac_try_echo") >&5
13687   (eval "$ac_compile") 2>conftest.er1
13688   ac_status=$?
13689   grep -v '^ *+' conftest.er1 >conftest.err
13690   rm -f conftest.er1
13691   cat conftest.err >&5
13692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); } && {
13694          test -z "$ac_c_werror_flag" ||
13695          test ! -s conftest.err
13696        } && test -s conftest.$ac_objext; then
13697   ac_lo=$ac_mid; break
13698 else
13699   $as_echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702         ac_hi=`expr '(' $ac_mid ')' - 1`
13703                         if test $ac_mid -le $ac_hi; then
13704                           ac_lo= ac_hi=
13705                           break
13706                         fi
13707                         ac_mid=`expr 2 '*' $ac_mid`
13708 fi
13709
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711   done
13712 else
13713   $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716         ac_lo= ac_hi=
13717 fi
13718
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 fi
13721
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 # Binary search between lo and hi bounds.
13724 while test "x$ac_lo" != "x$ac_hi"; do
13725   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 $ac_includes_default
13733 int
13734 main ()
13735 {
13736 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13737 test_array [0] = 0
13738
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext
13744 if { (ac_try="$ac_compile"
13745 case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750 $as_echo "$ac_try_echo") >&5
13751   (eval "$ac_compile") 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } && {
13758          test -z "$ac_c_werror_flag" ||
13759          test ! -s conftest.err
13760        } && test -s conftest.$ac_objext; then
13761   ac_hi=$ac_mid
13762 else
13763   $as_echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766         ac_lo=`expr '(' $ac_mid ')' + 1`
13767 fi
13768
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 done
13771 case $ac_lo in
13772 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13773 '') if test "$ac_cv_type_long_double" = yes; then
13774      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13776 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13777 See \`config.log' for more details." >&5
13778 $as_echo "$as_me: error: cannot compute sizeof (long double)
13779 See \`config.log' for more details." >&2;}
13780    { (exit 77); exit 77; }; }; }
13781    else
13782      ac_cv_sizeof_long_double=0
13783    fi ;;
13784 esac
13785 else
13786   cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h.  */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h.  */
13792 $ac_includes_default
13793 static long int longval () { return (long int) (sizeof (long double)); }
13794 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13795 #include <stdio.h>
13796 #include <stdlib.h>
13797 int
13798 main ()
13799 {
13800
13801   FILE *f = fopen ("conftest.val", "w");
13802   if (! f)
13803     return 1;
13804   if (((long int) (sizeof (long double))) < 0)
13805     {
13806       long int i = longval ();
13807       if (i != ((long int) (sizeof (long double))))
13808         return 1;
13809       fprintf (f, "%ld", i);
13810     }
13811   else
13812     {
13813       unsigned long int i = ulongval ();
13814       if (i != ((long int) (sizeof (long double))))
13815         return 1;
13816       fprintf (f, "%lu", i);
13817     }
13818   /* Do not output a trailing newline, as this causes \r\n confusion
13819      on some platforms.  */
13820   return ferror (f) || fclose (f) != 0;
13821
13822   ;
13823   return 0;
13824 }
13825 _ACEOF
13826 rm -f conftest$ac_exeext
13827 if { (ac_try="$ac_link"
13828 case "(($ac_try" in
13829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830   *) ac_try_echo=$ac_try;;
13831 esac
13832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13833 $as_echo "$ac_try_echo") >&5
13834   (eval "$ac_link") 2>&5
13835   ac_status=$?
13836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13838   { (case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13843 $as_echo "$ac_try_echo") >&5
13844   (eval "$ac_try") 2>&5
13845   ac_status=$?
13846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   ac_cv_sizeof_long_double=`cat conftest.val`
13849 else
13850   $as_echo "$as_me: program exited with status $ac_status" >&5
13851 $as_echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854 ( exit $ac_status )
13855 if test "$ac_cv_type_long_double" = yes; then
13856      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13858 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13859 See \`config.log' for more details." >&5
13860 $as_echo "$as_me: error: cannot compute sizeof (long double)
13861 See \`config.log' for more details." >&2;}
13862    { (exit 77); exit 77; }; }; }
13863    else
13864      ac_cv_sizeof_long_double=0
13865    fi
13866 fi
13867 rm -rf conftest.dSYM
13868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13869 fi
13870 rm -f conftest.val
13871 fi
13872 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13873 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13874
13875
13876
13877 cat >>confdefs.h <<_ACEOF
13878 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13879 _ACEOF
13880
13881
13882
13883 # Also AC_SUBST this variable for ffi.h.
13884 if test -z "$HAVE_LONG_DOUBLE"; then
13885   HAVE_LONG_DOUBLE=0
13886   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13887     if test $ac_cv_sizeof_long_double != 0; then
13888       HAVE_LONG_DOUBLE=1
13889
13890 cat >>confdefs.h <<\_ACEOF
13891 #define HAVE_LONG_DOUBLE 1
13892 _ACEOF
13893
13894     fi
13895   fi
13896 fi
13897
13898
13899
13900  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13901 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13902 if test "${ac_cv_c_bigendian+set}" = set; then
13903   $as_echo_n "(cached) " >&6
13904 else
13905   ac_cv_c_bigendian=unknown
13906     # See if we're dealing with a universal compiler.
13907     cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913 #ifndef __APPLE_CC__
13914                not a universal capable compiler
13915              #endif
13916              typedef int dummy;
13917
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 $as_echo "$ac_try_echo") >&5
13927   (eval "$ac_compile") 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } && {
13934          test -z "$ac_c_werror_flag" ||
13935          test ! -s conftest.err
13936        } && test -s conftest.$ac_objext; then
13937
13938         # Check for potential -arch flags.  It is not universal unless
13939         # there are some -arch flags.  Note that *ppc* also matches
13940         # ppc64.  This check is also rather less than ideal.
13941         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13942           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13943         esac
13944 else
13945   $as_echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948
13949 fi
13950
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952     if test $ac_cv_c_bigendian = unknown; then
13953       # See if sys/param.h defines the BYTE_ORDER macro.
13954       cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h.  */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h.  */
13960 #include <sys/types.h>
13961              #include <sys/param.h>
13962
13963 int
13964 main ()
13965 {
13966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13967                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13968                      && LITTLE_ENDIAN)
13969               bogus endian macros
13970              #endif
13971
13972   ;
13973   return 0;
13974 }
13975 _ACEOF
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980   *) ac_try_echo=$ac_try;;
13981 esac
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984   (eval "$ac_compile") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } && {
13991          test -z "$ac_c_werror_flag" ||
13992          test ! -s conftest.err
13993        } && test -s conftest.$ac_objext; then
13994   # It does; now see whether it defined to BIG_ENDIAN or not.
13995          cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 #include <sys/types.h>
14002                 #include <sys/param.h>
14003
14004 int
14005 main ()
14006 {
14007 #if BYTE_ORDER != BIG_ENDIAN
14008                  not big endian
14009                 #endif
14010
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext
14016 if { (ac_try="$ac_compile"
14017 case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14022 $as_echo "$ac_try_echo") >&5
14023   (eval "$ac_compile") 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } && {
14030          test -z "$ac_c_werror_flag" ||
14031          test ! -s conftest.err
14032        } && test -s conftest.$ac_objext; then
14033   ac_cv_c_bigendian=yes
14034 else
14035   $as_echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038         ac_cv_c_bigendian=no
14039 fi
14040
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 else
14043   $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046
14047 fi
14048
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050     fi
14051     if test $ac_cv_c_bigendian = unknown; then
14052       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14053       cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 #include <limits.h>
14060
14061 int
14062 main ()
14063 {
14064 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14065               bogus endian macros
14066              #endif
14067
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14079 $as_echo "$ac_try_echo") >&5
14080   (eval "$ac_compile") 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } && {
14087          test -z "$ac_c_werror_flag" ||
14088          test ! -s conftest.err
14089        } && test -s conftest.$ac_objext; then
14090   # It does; now see whether it defined to _BIG_ENDIAN or not.
14091          cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 #include <limits.h>
14098
14099 int
14100 main ()
14101 {
14102 #ifndef _BIG_ENDIAN
14103                  not big endian
14104                 #endif
14105
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 rm -f conftest.$ac_objext
14111 if { (ac_try="$ac_compile"
14112 case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14117 $as_echo "$ac_try_echo") >&5
14118   (eval "$ac_compile") 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } && {
14125          test -z "$ac_c_werror_flag" ||
14126          test ! -s conftest.err
14127        } && test -s conftest.$ac_objext; then
14128   ac_cv_c_bigendian=yes
14129 else
14130   $as_echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133         ac_cv_c_bigendian=no
14134 fi
14135
14136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14137 else
14138   $as_echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14140
14141
14142 fi
14143
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145     fi
14146     if test $ac_cv_c_bigendian = unknown; then
14147       # Compile a test program.
14148       if test "$cross_compiling" = yes; then
14149   # Try to guess by grepping values from an object file.
14150          cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156 short int ascii_mm[] =
14157                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14158                 short int ascii_ii[] =
14159                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14160                 int use_ascii (int i) {
14161                   return ascii_mm[i] + ascii_ii[i];
14162                 }
14163                 short int ebcdic_ii[] =
14164                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14165                 short int ebcdic_mm[] =
14166                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14167                 int use_ebcdic (int i) {
14168                   return ebcdic_mm[i] + ebcdic_ii[i];
14169                 }
14170                 extern int foo;
14171
14172 int
14173 main ()
14174 {
14175 return use_ascii (foo) == use_ebcdic (foo);
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184   *) ac_try_echo=$ac_try;;
14185 esac
14186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14187 $as_echo "$ac_try_echo") >&5
14188   (eval "$ac_compile") 2>conftest.er1
14189   ac_status=$?
14190   grep -v '^ *+' conftest.er1 >conftest.err
14191   rm -f conftest.er1
14192   cat conftest.err >&5
14193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } && {
14195          test -z "$ac_c_werror_flag" ||
14196          test ! -s conftest.err
14197        } && test -s conftest.$ac_objext; then
14198   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14199               ac_cv_c_bigendian=yes
14200             fi
14201             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14202               if test "$ac_cv_c_bigendian" = unknown; then
14203                 ac_cv_c_bigendian=no
14204               else
14205                 # finding both strings is unlikely to happen, but who knows?
14206                 ac_cv_c_bigendian=unknown
14207               fi
14208             fi
14209 else
14210   $as_echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14212
14213
14214 fi
14215
14216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 else
14218   cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h.  */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h.  */
14224 $ac_includes_default
14225 int
14226 main ()
14227 {
14228
14229              /* Are we little or big endian?  From Harbison&Steele.  */
14230              union
14231              {
14232                long int l;
14233                char c[sizeof (long int)];
14234              } u;
14235              u.l = 1;
14236              return u.c[sizeof (long int) - 1] == 1;
14237
14238   ;
14239   return 0;
14240 }
14241 _ACEOF
14242 rm -f conftest$ac_exeext
14243 if { (ac_try="$ac_link"
14244 case "(($ac_try" in
14245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246   *) ac_try_echo=$ac_try;;
14247 esac
14248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14249 $as_echo "$ac_try_echo") >&5
14250   (eval "$ac_link") 2>&5
14251   ac_status=$?
14252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14254   { (case "(($ac_try" in
14255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256   *) ac_try_echo=$ac_try;;
14257 esac
14258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14259 $as_echo "$ac_try_echo") >&5
14260   (eval "$ac_try") 2>&5
14261   ac_status=$?
14262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; }; then
14264   ac_cv_c_bigendian=no
14265 else
14266   $as_echo "$as_me: program exited with status $ac_status" >&5
14267 $as_echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270 ( exit $ac_status )
14271 ac_cv_c_bigendian=yes
14272 fi
14273 rm -rf conftest.dSYM
14274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14275 fi
14276
14277
14278     fi
14279 fi
14280 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14281 $as_echo "$ac_cv_c_bigendian" >&6; }
14282  case $ac_cv_c_bigendian in #(
14283    yes)
14284      cat >>confdefs.h <<\_ACEOF
14285 #define WORDS_BIGENDIAN 1
14286 _ACEOF
14287 ;; #(
14288    no)
14289       ;; #(
14290    universal)
14291
14292 cat >>confdefs.h <<\_ACEOF
14293 #define AC_APPLE_UNIVERSAL_BUILD 1
14294 _ACEOF
14295
14296      ;; #(
14297    *)
14298      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14299  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14300 $as_echo "$as_me: error: unknown endianness
14301  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14302    { (exit 1); exit 1; }; } ;;
14303  esac
14304
14305
14306 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14307 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14308 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14309   $as_echo_n "(cached) " >&6
14310 else
14311
14312     libffi_cv_as_cfi_pseudo_op=unknown
14313     cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 asm (".cfi_startproc\n\t.cfi_endproc");
14320 int
14321 main ()
14322 {
14323
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336   (eval "$ac_compile") 2>conftest.er1
14337   ac_status=$?
14338   grep -v '^ *+' conftest.er1 >conftest.err
14339   rm -f conftest.er1
14340   cat conftest.err >&5
14341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); } && {
14343          test -z "$ac_c_werror_flag" ||
14344          test ! -s conftest.err
14345        } && test -s conftest.$ac_objext; then
14346   libffi_cv_as_cfi_pseudo_op=yes
14347 else
14348   $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351         libffi_cv_as_cfi_pseudo_op=no
14352 fi
14353
14354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355
14356 fi
14357 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14358 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14359 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14360
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_AS_CFI_PSEUDO_OP 1
14363 _ACEOF
14364
14365 fi
14366
14367 if test x$TARGET = xSPARC; then
14368     { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14369 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14370 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14371   $as_echo_n "(cached) " >&6
14372 else
14373
14374         save_CFLAGS="$CFLAGS"
14375         save_LDFLAGS="$LDFLAGS"
14376         CFLAGS="$CFLAGS -fpic"
14377         LDFLAGS="$LDFLAGS -shared"
14378         cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14385 int
14386 main ()
14387 {
14388
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14400 $as_echo "$ac_try_echo") >&5
14401   (eval "$ac_link") 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } && {
14408          test -z "$ac_c_werror_flag" ||
14409          test ! -s conftest.err
14410        } && test -s conftest$ac_exeext && {
14411          test "$cross_compiling" = yes ||
14412          $as_test_x conftest$ac_exeext
14413        }; then
14414   libffi_cv_as_sparc_ua_pcrel=yes
14415 else
14416   $as_echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419         libffi_cv_as_sparc_ua_pcrel=no
14420 fi
14421
14422 rm -rf conftest.dSYM
14423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14424       conftest$ac_exeext conftest.$ac_ext
14425         CFLAGS="$save_CFLAGS"
14426         LDFLAGS="$save_LDFLAGS"
14427 fi
14428 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14429 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14430     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14431
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_AS_SPARC_UA_PCREL 1
14434 _ACEOF
14435
14436     fi
14437
14438     { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14439 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14440 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14441   $as_echo_n "(cached) " >&6
14442 else
14443
14444        libffi_cv_as_register_pseudo_op=unknown
14445        # Check if we have .register
14446        cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h.  */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h.  */
14452 asm (".register %g2, #scratch");
14453 int
14454 main ()
14455 {
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest.$ac_objext
14462 if { (ac_try="$ac_compile"
14463 case "(($ac_try" in
14464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465   *) ac_try_echo=$ac_try;;
14466 esac
14467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14468 $as_echo "$ac_try_echo") >&5
14469   (eval "$ac_compile") 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } && {
14476          test -z "$ac_c_werror_flag" ||
14477          test ! -s conftest.err
14478        } && test -s conftest.$ac_objext; then
14479   libffi_cv_as_register_pseudo_op=yes
14480 else
14481   $as_echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484         libffi_cv_as_register_pseudo_op=no
14485 fi
14486
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488
14489 fi
14490 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14491 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14492     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14493
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14496 _ACEOF
14497
14498     fi
14499 fi
14500
14501 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14502     { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14503 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14504 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14505   $as_echo_n "(cached) " >&6
14506 else
14507
14508         libffi_cv_as_x86_pcrel=yes
14509         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14510         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14511             libffi_cv_as_x86_pcrel=no
14512         fi
14513
14514 fi
14515 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14516 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14517     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14518
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_AS_X86_PCREL 1
14521 _ACEOF
14522
14523     fi
14524
14525     { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14526 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14527 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14528   $as_echo_n "(cached) " >&6
14529 else
14530
14531        libffi_cv_as_ascii_pseudo_op=unknown
14532        # Check if we have .ascii
14533        cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539 asm (".ascii \"string\"");
14540 int
14541 main ()
14542 {
14543
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552   *) ac_try_echo=$ac_try;;
14553 esac
14554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556   (eval "$ac_compile") 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } && {
14563          test -z "$ac_c_werror_flag" ||
14564          test ! -s conftest.err
14565        } && test -s conftest.$ac_objext; then
14566   libffi_cv_as_ascii_pseudo_op=yes
14567 else
14568   $as_echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571         libffi_cv_as_ascii_pseudo_op=no
14572 fi
14573
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575
14576 fi
14577 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14578 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14579     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14580
14581 cat >>confdefs.h <<\_ACEOF
14582 #define HAVE_AS_ASCII_PSEUDO_OP 1
14583 _ACEOF
14584
14585     fi
14586
14587     { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14588 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14589 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14590   $as_echo_n "(cached) " >&6
14591 else
14592
14593        libffi_cv_as_string_pseudo_op=unknown
14594        # Check if we have .string
14595        cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h.  */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h.  */
14601 asm (".string \"string\"");
14602 int
14603 main ()
14604 {
14605
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614   *) ac_try_echo=$ac_try;;
14615 esac
14616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618   (eval "$ac_compile") 2>conftest.er1
14619   ac_status=$?
14620   grep -v '^ *+' conftest.er1 >conftest.err
14621   rm -f conftest.er1
14622   cat conftest.err >&5
14623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } && {
14625          test -z "$ac_c_werror_flag" ||
14626          test ! -s conftest.err
14627        } && test -s conftest.$ac_objext; then
14628   libffi_cv_as_string_pseudo_op=yes
14629 else
14630   $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633         libffi_cv_as_string_pseudo_op=no
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637
14638 fi
14639 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14640 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14641     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14642
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_AS_STRING_PSEUDO_OP 1
14645 _ACEOF
14646
14647     fi
14648 fi
14649
14650 case "$target" in
14651      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14652
14653 cat >>confdefs.h <<\_ACEOF
14654 #define FFI_MMAP_EXEC_WRIT 1
14655 _ACEOF
14656
14657      ;;
14658 esac
14659
14660 if test x$TARGET = xX86_64; then
14661     { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14662 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14663 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14664   $as_echo_n "(cached) " >&6
14665 else
14666
14667         libffi_cv_as_x86_64_unwind_section_type=yes
14668         echo '.section .eh_frame,"a",@unwind' > conftest.s
14669         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14670             libffi_cv_as_x86_64_unwind_section_type=no
14671         fi
14672
14673 fi
14674 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14675 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14676     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14677
14678 cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14680 _ACEOF
14681
14682     fi
14683 fi
14684
14685 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14686 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14687 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14688   $as_echo_n "(cached) " >&6
14689 else
14690
14691         libffi_cv_ro_eh_frame=no
14692         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14693         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14694             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14695                 libffi_cv_ro_eh_frame=yes
14696             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14697                  | grep -v '#write' > /dev/null; then
14698                 libffi_cv_ro_eh_frame=yes
14699             fi
14700         fi
14701         rm -f conftest.*
14702
14703 fi
14704 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14705 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14706 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14707
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_RO_EH_FRAME 1
14710 _ACEOF
14711
14712
14713 cat >>confdefs.h <<\_ACEOF
14714 #define EH_FRAME_FLAGS "a"
14715 _ACEOF
14716
14717 else
14718
14719 cat >>confdefs.h <<\_ACEOF
14720 #define EH_FRAME_FLAGS "aw"
14721 _ACEOF
14722
14723 fi
14724
14725 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14726 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14727 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14728   $as_echo_n "(cached) " >&6
14729 else
14730
14731         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14732         libffi_cv_hidden_visibility_attribute=no
14733         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14740                 libffi_cv_hidden_visibility_attribute=yes
14741             fi
14742         fi
14743         rm -f conftest.*
14744
14745 fi
14746 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14747 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14748 if test $libffi_cv_hidden_visibility_attribute = yes; then
14749
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14752 _ACEOF
14753
14754 fi
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764 # Check whether --enable-debug was given.
14765 if test "${enable_debug+set}" = set; then
14766   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14767
14768 cat >>confdefs.h <<\_ACEOF
14769 #define FFI_DEBUG 1
14770 _ACEOF
14771
14772   fi
14773 fi
14774
14775  if test "$enable_debug" = "yes"; then
14776   FFI_DEBUG_TRUE=
14777   FFI_DEBUG_FALSE='#'
14778 else
14779   FFI_DEBUG_TRUE='#'
14780   FFI_DEBUG_FALSE=
14781 fi
14782
14783
14784 # Check whether --enable-structs was given.
14785 if test "${enable_structs+set}" = set; then
14786   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14787
14788 cat >>confdefs.h <<\_ACEOF
14789 #define FFI_NO_STRUCTS 1
14790 _ACEOF
14791
14792   fi
14793 fi
14794
14795
14796 # Check whether --enable-raw-api was given.
14797 if test "${enable_raw_api+set}" = set; then
14798   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14799
14800 cat >>confdefs.h <<\_ACEOF
14801 #define FFI_NO_RAW_API 1
14802 _ACEOF
14803
14804   fi
14805 fi
14806
14807
14808 # Check whether --enable-purify-safety was given.
14809 if test "${enable_purify_safety+set}" = set; then
14810   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14811
14812 cat >>confdefs.h <<\_ACEOF
14813 #define USING_PURIFY 1
14814 _ACEOF
14815
14816   fi
14817 fi
14818
14819
14820 if test -n "$with_cross_host" &&
14821    test x"$with_cross_host" != x"no"; then
14822   toolexecdir='$(exec_prefix)/$(target_alias)'
14823   toolexeclibdir='$(toolexecdir)/lib'
14824 else
14825   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14826   toolexeclibdir='$(libdir)'
14827 fi
14828 multi_os_directory=`$CC -print-multi-os-directory`
14829 case $multi_os_directory in
14830   .) ;; # Avoid trailing /.
14831   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14832 esac
14833
14834
14835
14836 if test "${multilib}" = "yes"; then
14837   multilib_arg="--enable-multilib"
14838 else
14839   multilib_arg=
14840 fi
14841
14842 ac_config_commands="$ac_config_commands include"
14843
14844 ac_config_commands="$ac_config_commands src"
14845
14846
14847 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14848
14849
14850 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14851
14852
14853 cat >confcache <<\_ACEOF
14854 # This file is a shell script that caches the results of configure
14855 # tests run on this system so they can be shared between configure
14856 # scripts and configure runs, see configure's option --config-cache.
14857 # It is not useful on other systems.  If it contains results you don't
14858 # want to keep, you may remove or edit it.
14859 #
14860 # config.status only pays attention to the cache file if you give it
14861 # the --recheck option to rerun configure.
14862 #
14863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14865 # following values.
14866
14867 _ACEOF
14868
14869 # The following way of writing the cache mishandles newlines in values,
14870 # but we know of no workaround that is simple, portable, and efficient.
14871 # So, we kill variables containing newlines.
14872 # Ultrix sh set writes to stderr and can't be redirected directly,
14873 # and sets the high bit in the cache file unless we assign to the vars.
14874 (
14875   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14876     eval ac_val=\$$ac_var
14877     case $ac_val in #(
14878     *${as_nl}*)
14879       case $ac_var in #(
14880       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14882       esac
14883       case $ac_var in #(
14884       _ | IFS | as_nl) ;; #(
14885       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14886       *) $as_unset $ac_var ;;
14887       esac ;;
14888     esac
14889   done
14890
14891   (set) 2>&1 |
14892     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14893     *${as_nl}ac_space=\ *)
14894       # `set' does not quote correctly, so add quotes (double-quote
14895       # substitution turns \\\\ into \\, and sed turns \\ into \).
14896       sed -n \
14897         "s/'/'\\\\''/g;
14898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14899       ;; #(
14900     *)
14901       # `set' quotes correctly as required by POSIX, so do not add quotes.
14902       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14903       ;;
14904     esac |
14905     sort
14906 ) |
14907   sed '
14908      /^ac_cv_env_/b end
14909      t clear
14910      :clear
14911      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14912      t end
14913      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14914      :end' >>confcache
14915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14916   if test -w "$cache_file"; then
14917     test "x$cache_file" != "x/dev/null" &&
14918       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14919 $as_echo "$as_me: updating cache $cache_file" >&6;}
14920     cat confcache >$cache_file
14921   else
14922     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14923 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14924   fi
14925 fi
14926 rm -f confcache
14927
14928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14929 # Let make expand exec_prefix.
14930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14931
14932 DEFS=-DHAVE_CONFIG_H
14933
14934 ac_libobjs=
14935 ac_ltlibobjs=
14936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14937   # 1. Remove the extension, and $U if already installed.
14938   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14939   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14940   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14941   #    will be set to the directory where LIBOBJS objects are built.
14942   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14943   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14944 done
14945 LIBOBJS=$ac_libobjs
14946
14947 LTLIBOBJS=$ac_ltlibobjs
14948
14949
14950  if test -n "$EXEEXT"; then
14951   am__EXEEXT_TRUE=
14952   am__EXEEXT_FALSE='#'
14953 else
14954   am__EXEEXT_TRUE='#'
14955   am__EXEEXT_FALSE=
14956 fi
14957
14958 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14959   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14960 Usually this means the macro was only invoked conditionally." >&5
14961 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&2;}
14963    { (exit 1); exit 1; }; }
14964 fi
14965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14966   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14967 Usually this means the macro was only invoked conditionally." >&5
14968 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&2;}
14970    { (exit 1); exit 1; }; }
14971 fi
14972 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14973   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14974 Usually this means the macro was only invoked conditionally." >&5
14975 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&2;}
14977    { (exit 1); exit 1; }; }
14978 fi
14979 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14980   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14981 Usually this means the macro was only invoked conditionally." >&5
14982 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&2;}
14984    { (exit 1); exit 1; }; }
14985 fi
14986 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14987   { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
14988 Usually this means the macro was only invoked conditionally." >&5
14989 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&2;}
14991    { (exit 1); exit 1; }; }
14992 fi
14993 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14994   { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
14995 Usually this means the macro was only invoked conditionally." >&5
14996 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
14997 Usually this means the macro was only invoked conditionally." >&2;}
14998    { (exit 1); exit 1; }; }
14999 fi
15000 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15001   { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15002 Usually this means the macro was only invoked conditionally." >&5
15003 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
15004 Usually this means the macro was only invoked conditionally." >&2;}
15005    { (exit 1); exit 1; }; }
15006 fi
15007 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15008   { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15009 Usually this means the macro was only invoked conditionally." >&5
15010 $as_echo "$as_me: error: conditional \"X86\" was never defined.
15011 Usually this means the macro was only invoked conditionally." >&2;}
15012    { (exit 1); exit 1; }; }
15013 fi
15014 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15015   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15016 Usually this means the macro was only invoked conditionally." >&5
15017 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15018 Usually this means the macro was only invoked conditionally." >&2;}
15019    { (exit 1); exit 1; }; }
15020 fi
15021 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15022   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15023 Usually this means the macro was only invoked conditionally." >&5
15024 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15025 Usually this means the macro was only invoked conditionally." >&2;}
15026    { (exit 1); exit 1; }; }
15027 fi
15028 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15029   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15030 Usually this means the macro was only invoked conditionally." >&5
15031 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15032 Usually this means the macro was only invoked conditionally." >&2;}
15033    { (exit 1); exit 1; }; }
15034 fi
15035 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15036   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15037 Usually this means the macro was only invoked conditionally." >&5
15038 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15039 Usually this means the macro was only invoked conditionally." >&2;}
15040    { (exit 1); exit 1; }; }
15041 fi
15042 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15043   { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15044 Usually this means the macro was only invoked conditionally." >&5
15045 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15046 Usually this means the macro was only invoked conditionally." >&2;}
15047    { (exit 1); exit 1; }; }
15048 fi
15049 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15050   { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15051 Usually this means the macro was only invoked conditionally." >&5
15052 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
15053 Usually this means the macro was only invoked conditionally." >&2;}
15054    { (exit 1); exit 1; }; }
15055 fi
15056 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15057   { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15058 Usually this means the macro was only invoked conditionally." >&5
15059 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
15060 Usually this means the macro was only invoked conditionally." >&2;}
15061    { (exit 1); exit 1; }; }
15062 fi
15063 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15064   { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15065 Usually this means the macro was only invoked conditionally." >&5
15066 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
15067 Usually this means the macro was only invoked conditionally." >&2;}
15068    { (exit 1); exit 1; }; }
15069 fi
15070 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15071   { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15072 Usually this means the macro was only invoked conditionally." >&5
15073 $as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15074 Usually this means the macro was only invoked conditionally." >&2;}
15075    { (exit 1); exit 1; }; }
15076 fi
15077 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15078   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15079 Usually this means the macro was only invoked conditionally." >&5
15080 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15081 Usually this means the macro was only invoked conditionally." >&2;}
15082    { (exit 1); exit 1; }; }
15083 fi
15084 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15085   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15086 Usually this means the macro was only invoked conditionally." >&5
15087 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15088 Usually this means the macro was only invoked conditionally." >&2;}
15089    { (exit 1); exit 1; }; }
15090 fi
15091 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15092   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15093 Usually this means the macro was only invoked conditionally." >&5
15094 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15095 Usually this means the macro was only invoked conditionally." >&2;}
15096    { (exit 1); exit 1; }; }
15097 fi
15098 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15099   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15100 Usually this means the macro was only invoked conditionally." >&5
15101 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15102 Usually this means the macro was only invoked conditionally." >&2;}
15103    { (exit 1); exit 1; }; }
15104 fi
15105 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15106   { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15107 Usually this means the macro was only invoked conditionally." >&5
15108 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15109 Usually this means the macro was only invoked conditionally." >&2;}
15110    { (exit 1); exit 1; }; }
15111 fi
15112 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15113   { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." >&5
15115 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15116 Usually this means the macro was only invoked conditionally." >&2;}
15117    { (exit 1); exit 1; }; }
15118 fi
15119 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15120   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15121 Usually this means the macro was only invoked conditionally." >&5
15122 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15123 Usually this means the macro was only invoked conditionally." >&2;}
15124    { (exit 1); exit 1; }; }
15125 fi
15126 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15127   { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15128 Usually this means the macro was only invoked conditionally." >&5
15129 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15130 Usually this means the macro was only invoked conditionally." >&2;}
15131    { (exit 1); exit 1; }; }
15132 fi
15133 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15134   { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15135 Usually this means the macro was only invoked conditionally." >&5
15136 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15137 Usually this means the macro was only invoked conditionally." >&2;}
15138    { (exit 1); exit 1; }; }
15139 fi
15140 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15141   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15142 Usually this means the macro was only invoked conditionally." >&5
15143 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15144 Usually this means the macro was only invoked conditionally." >&2;}
15145    { (exit 1); exit 1; }; }
15146 fi
15147 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15148   { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15149 Usually this means the macro was only invoked conditionally." >&5
15150 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15151 Usually this means the macro was only invoked conditionally." >&2;}
15152    { (exit 1); exit 1; }; }
15153 fi
15154 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15155   { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15156 Usually this means the macro was only invoked conditionally." >&5
15157 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15158 Usually this means the macro was only invoked conditionally." >&2;}
15159    { (exit 1); exit 1; }; }
15160 fi
15161 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15162   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15163 Usually this means the macro was only invoked conditionally." >&5
15164 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15165 Usually this means the macro was only invoked conditionally." >&2;}
15166    { (exit 1); exit 1; }; }
15167 fi
15168 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15169   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15170 Usually this means the macro was only invoked conditionally." >&5
15171 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15172 Usually this means the macro was only invoked conditionally." >&2;}
15173    { (exit 1); exit 1; }; }
15174 fi
15175 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15176   { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15177 Usually this means the macro was only invoked conditionally." >&5
15178 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15179 Usually this means the macro was only invoked conditionally." >&2;}
15180    { (exit 1); exit 1; }; }
15181 fi
15182
15183 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15184   { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_DEBUG\" was never defined.
15185 Usually this means the macro was only invoked conditionally." >&5
15186 $as_echo "$as_me: error: conditional \"FFI_DEBUG\" was never defined.
15187 Usually this means the macro was only invoked conditionally." >&2;}
15188    { (exit 1); exit 1; }; }
15189 fi
15190
15191 : ${CONFIG_STATUS=./config.status}
15192 ac_write_fail=0
15193 ac_clean_files_save=$ac_clean_files
15194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15195 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15197 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198 #! $SHELL
15199 # Generated by $as_me.
15200 # Run this file to recreate the current configuration.
15201 # Compiler output produced by configure, useful for debugging
15202 # configure, is in config.log if it exists.
15203
15204 debug=false
15205 ac_cs_recheck=false
15206 ac_cs_silent=false
15207 SHELL=\${CONFIG_SHELL-$SHELL}
15208 _ACEOF
15209
15210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15211 ## --------------------- ##
15212 ## M4sh Initialization.  ##
15213 ## --------------------- ##
15214
15215 # Be more Bourne compatible
15216 DUALCASE=1; export DUALCASE # for MKS sh
15217 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15218   emulate sh
15219   NULLCMD=:
15220   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15221   # is contrary to our usage.  Disable this feature.
15222   alias -g '${1+"$@"}'='"$@"'
15223   setopt NO_GLOB_SUBST
15224 else
15225   case `(set -o) 2>/dev/null` in
15226   *posix*) set -o posix ;;
15227 esac
15228
15229 fi
15230
15231
15232
15233
15234 # PATH needs CR
15235 # Avoid depending upon Character Ranges.
15236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15239 as_cr_digits='0123456789'
15240 as_cr_alnum=$as_cr_Letters$as_cr_digits
15241
15242 as_nl='
15243 '
15244 export as_nl
15245 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15246 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15249 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15250   as_echo='printf %s\n'
15251   as_echo_n='printf %s'
15252 else
15253   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15254     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15255     as_echo_n='/usr/ucb/echo -n'
15256   else
15257     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15258     as_echo_n_body='eval
15259       arg=$1;
15260       case $arg in
15261       *"$as_nl"*)
15262         expr "X$arg" : "X\\(.*\\)$as_nl";
15263         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15264       esac;
15265       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15266     '
15267     export as_echo_n_body
15268     as_echo_n='sh -c $as_echo_n_body as_echo'
15269   fi
15270   export as_echo_body
15271   as_echo='sh -c $as_echo_body as_echo'
15272 fi
15273
15274 # The user is always right.
15275 if test "${PATH_SEPARATOR+set}" != set; then
15276   PATH_SEPARATOR=:
15277   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15278     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15279       PATH_SEPARATOR=';'
15280   }
15281 fi
15282
15283 # Support unset when possible.
15284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15285   as_unset=unset
15286 else
15287   as_unset=false
15288 fi
15289
15290
15291 # IFS
15292 # We need space, tab and new line, in precisely that order.  Quoting is
15293 # there to prevent editors from complaining about space-tab.
15294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15295 # splitting by setting IFS to empty value.)
15296 IFS=" ""        $as_nl"
15297
15298 # Find who we are.  Look in the path if we contain no directory separator.
15299 case $0 in
15300   *[\\/]* ) as_myself=$0 ;;
15301   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15302 for as_dir in $PATH
15303 do
15304   IFS=$as_save_IFS
15305   test -z "$as_dir" && as_dir=.
15306   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15307 done
15308 IFS=$as_save_IFS
15309
15310      ;;
15311 esac
15312 # We did not find ourselves, most probably we were run as `sh COMMAND'
15313 # in which case we are not to be found in the path.
15314 if test "x$as_myself" = x; then
15315   as_myself=$0
15316 fi
15317 if test ! -f "$as_myself"; then
15318   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15319   { (exit 1); exit 1; }
15320 fi
15321
15322 # Work around bugs in pre-3.0 UWIN ksh.
15323 for as_var in ENV MAIL MAILPATH
15324 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15325 done
15326 PS1='$ '
15327 PS2='> '
15328 PS4='+ '
15329
15330 # NLS nuisances.
15331 LC_ALL=C
15332 export LC_ALL
15333 LANGUAGE=C
15334 export LANGUAGE
15335
15336 # Required to use basename.
15337 if expr a : '\(a\)' >/dev/null 2>&1 &&
15338    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15339   as_expr=expr
15340 else
15341   as_expr=false
15342 fi
15343
15344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15345   as_basename=basename
15346 else
15347   as_basename=false
15348 fi
15349
15350
15351 # Name of the executable.
15352 as_me=`$as_basename -- "$0" ||
15353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15354          X"$0" : 'X\(//\)$' \| \
15355          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15356 $as_echo X/"$0" |
15357     sed '/^.*\/\([^/][^/]*\)\/*$/{
15358             s//\1/
15359             q
15360           }
15361           /^X\/\(\/\/\)$/{
15362             s//\1/
15363             q
15364           }
15365           /^X\/\(\/\).*/{
15366             s//\1/
15367             q
15368           }
15369           s/.*/./; q'`
15370
15371 # CDPATH.
15372 $as_unset CDPATH
15373
15374
15375
15376   as_lineno_1=$LINENO
15377   as_lineno_2=$LINENO
15378   test "x$as_lineno_1" != "x$as_lineno_2" &&
15379   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15380
15381   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15382   # uniformly replaced by the line number.  The first 'sed' inserts a
15383   # line-number line after each line using $LINENO; the second 'sed'
15384   # does the real work.  The second script uses 'N' to pair each
15385   # line-number line with the line containing $LINENO, and appends
15386   # trailing '-' during substitution so that $LINENO is not a special
15387   # case at line end.
15388   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15389   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15390   # E. McMahon (1931-1989) for sed's syntax.  :-)
15391   sed -n '
15392     p
15393     /[$]LINENO/=
15394   ' <$as_myself |
15395     sed '
15396       s/[$]LINENO.*/&-/
15397       t lineno
15398       b
15399       :lineno
15400       N
15401       :loop
15402       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15403       t loop
15404       s/-\n.*//
15405     ' >$as_me.lineno &&
15406   chmod +x "$as_me.lineno" ||
15407     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15408    { (exit 1); exit 1; }; }
15409
15410   # Don't try to exec as it changes $[0], causing all sort of problems
15411   # (the dirname of $[0] is not the place where we might find the
15412   # original and so on.  Autoconf is especially sensitive to this).
15413   . "./$as_me.lineno"
15414   # Exit status is that of the last command.
15415   exit
15416 }
15417
15418
15419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15420   as_dirname=dirname
15421 else
15422   as_dirname=false
15423 fi
15424
15425 ECHO_C= ECHO_N= ECHO_T=
15426 case `echo -n x` in
15427 -n*)
15428   case `echo 'x\c'` in
15429   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15430   *)   ECHO_C='\c';;
15431   esac;;
15432 *)
15433   ECHO_N='-n';;
15434 esac
15435 if expr a : '\(a\)' >/dev/null 2>&1 &&
15436    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15437   as_expr=expr
15438 else
15439   as_expr=false
15440 fi
15441
15442 rm -f conf$$ conf$$.exe conf$$.file
15443 if test -d conf$$.dir; then
15444   rm -f conf$$.dir/conf$$.file
15445 else
15446   rm -f conf$$.dir
15447   mkdir conf$$.dir 2>/dev/null
15448 fi
15449 if (echo >conf$$.file) 2>/dev/null; then
15450   if ln -s conf$$.file conf$$ 2>/dev/null; then
15451     as_ln_s='ln -s'
15452     # ... but there are two gotchas:
15453     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15454     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15455     # In both cases, we have to default to `cp -p'.
15456     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15457       as_ln_s='cp -p'
15458   elif ln conf$$.file conf$$ 2>/dev/null; then
15459     as_ln_s=ln
15460   else
15461     as_ln_s='cp -p'
15462   fi
15463 else
15464   as_ln_s='cp -p'
15465 fi
15466 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15467 rmdir conf$$.dir 2>/dev/null
15468
15469 if mkdir -p . 2>/dev/null; then
15470   as_mkdir_p=:
15471 else
15472   test -d ./-p && rmdir ./-p
15473   as_mkdir_p=false
15474 fi
15475
15476 if test -x / >/dev/null 2>&1; then
15477   as_test_x='test -x'
15478 else
15479   if ls -dL / >/dev/null 2>&1; then
15480     as_ls_L_option=L
15481   else
15482     as_ls_L_option=
15483   fi
15484   as_test_x='
15485     eval sh -c '\''
15486       if test -d "$1"; then
15487         test -d "$1/.";
15488       else
15489         case $1 in
15490         -*)set "./$1";;
15491         esac;
15492         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15493         ???[sx]*):;;*)false;;esac;fi
15494     '\'' sh
15495   '
15496 fi
15497 as_executable_p=$as_test_x
15498
15499 # Sed expression to map a string onto a valid CPP name.
15500 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15501
15502 # Sed expression to map a string onto a valid variable name.
15503 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15504
15505
15506 exec 6>&1
15507
15508 # Save the log message, to keep $[0] and so on meaningful, and to
15509 # report actual input values of CONFIG_FILES etc. instead of their
15510 # values after options handling.
15511 ac_log="
15512 This file was extended by libffi $as_me 3.0.10rc0, which was
15513 generated by GNU Autoconf 2.63.  Invocation command line was
15514
15515   CONFIG_FILES    = $CONFIG_FILES
15516   CONFIG_HEADERS  = $CONFIG_HEADERS
15517   CONFIG_LINKS    = $CONFIG_LINKS
15518   CONFIG_COMMANDS = $CONFIG_COMMANDS
15519   $ $0 $@
15520
15521 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15522 "
15523
15524 _ACEOF
15525
15526 case $ac_config_files in *"
15527 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15528 esac
15529
15530 case $ac_config_headers in *"
15531 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15532 esac
15533
15534
15535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536 # Files that config.status was made for.
15537 config_files="$ac_config_files"
15538 config_headers="$ac_config_headers"
15539 config_links="$ac_config_links"
15540 config_commands="$ac_config_commands"
15541
15542 _ACEOF
15543
15544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15545 ac_cs_usage="\
15546 \`$as_me' instantiates files from templates according to the
15547 current configuration.
15548
15549 Usage: $0 [OPTION]... [FILE]...
15550
15551   -h, --help       print this help, then exit
15552   -V, --version    print version number and configuration settings, then exit
15553   -q, --quiet, --silent
15554                    do not print progress messages
15555   -d, --debug      don't remove temporary files
15556       --recheck    update $as_me by reconfiguring in the same conditions
15557       --file=FILE[:TEMPLATE]
15558                    instantiate the configuration file FILE
15559       --header=FILE[:TEMPLATE]
15560                    instantiate the configuration header FILE
15561
15562 Configuration files:
15563 $config_files
15564
15565 Configuration headers:
15566 $config_headers
15567
15568 Configuration links:
15569 $config_links
15570
15571 Configuration commands:
15572 $config_commands
15573
15574 Report bugs to <bug-autoconf@gnu.org>."
15575
15576 _ACEOF
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578 ac_cs_version="\\
15579 libffi config.status 3.0.10rc0
15580 configured by $0, generated by GNU Autoconf 2.63,
15581   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15582
15583 Copyright (C) 2008 Free Software Foundation, Inc.
15584 This config.status script is free software; the Free Software Foundation
15585 gives unlimited permission to copy, distribute and modify it."
15586
15587 ac_pwd='$ac_pwd'
15588 srcdir='$srcdir'
15589 INSTALL='$INSTALL'
15590 MKDIR_P='$MKDIR_P'
15591 AWK='$AWK'
15592 test -n "\$AWK" || AWK=awk
15593 _ACEOF
15594
15595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596 # The default lists apply if the user does not specify any file.
15597 ac_need_defaults=:
15598 while test $# != 0
15599 do
15600   case $1 in
15601   --*=*)
15602     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15603     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15604     ac_shift=:
15605     ;;
15606   *)
15607     ac_option=$1
15608     ac_optarg=$2
15609     ac_shift=shift
15610     ;;
15611   esac
15612
15613   case $ac_option in
15614   # Handling of the options.
15615   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15616     ac_cs_recheck=: ;;
15617   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15618     $as_echo "$ac_cs_version"; exit ;;
15619   --debug | --debu | --deb | --de | --d | -d )
15620     debug=: ;;
15621   --file | --fil | --fi | --f )
15622     $ac_shift
15623     case $ac_optarg in
15624     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15625     esac
15626     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15627     ac_need_defaults=false;;
15628   --header | --heade | --head | --hea )
15629     $ac_shift
15630     case $ac_optarg in
15631     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15632     esac
15633     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15634     ac_need_defaults=false;;
15635   --he | --h)
15636     # Conflict between --help and --header
15637     { $as_echo "$as_me: error: ambiguous option: $1
15638 Try \`$0 --help' for more information." >&2
15639    { (exit 1); exit 1; }; };;
15640   --help | --hel | -h )
15641     $as_echo "$ac_cs_usage"; exit ;;
15642   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15643   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15644     ac_cs_silent=: ;;
15645
15646   # This is an error.
15647   -*) { $as_echo "$as_me: error: unrecognized option: $1
15648 Try \`$0 --help' for more information." >&2
15649    { (exit 1); exit 1; }; } ;;
15650
15651   *) ac_config_targets="$ac_config_targets $1"
15652      ac_need_defaults=false ;;
15653
15654   esac
15655   shift
15656 done
15657
15658 ac_configure_extra_args=
15659
15660 if $ac_cs_silent; then
15661   exec 6>/dev/null
15662   ac_configure_extra_args="$ac_configure_extra_args --silent"
15663 fi
15664
15665 _ACEOF
15666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15667 if \$ac_cs_recheck; then
15668   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15669   shift
15670   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15671   CONFIG_SHELL='$SHELL'
15672   export CONFIG_SHELL
15673   exec "\$@"
15674 fi
15675
15676 _ACEOF
15677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15678 exec 5>>config.log
15679 {
15680   echo
15681   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15682 ## Running $as_me. ##
15683 _ASBOX
15684   $as_echo "$ac_log"
15685 } >&5
15686
15687 _ACEOF
15688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15689 #
15690 # INIT-COMMANDS
15691 #
15692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15693
15694
15695 # The HP-UX ksh and POSIX shell print the target directory to stdout
15696 # if CDPATH is set.
15697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15698
15699 sed_quote_subst='$sed_quote_subst'
15700 double_quote_subst='$double_quote_subst'
15701 delay_variable_subst='$delay_variable_subst'
15702 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15703 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15704 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15705 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15706 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15707 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15708 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15709 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15710 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15711 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15712 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15713 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15714 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15715 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15716 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15717 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15718 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15719 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15720 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15721 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15722 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15723 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15724 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15725 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15726 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15727 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15728 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15729 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15730 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15731 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15732 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15733 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15734 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15735 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15736 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15737 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15738 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15739 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15740 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15741 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15742 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15743 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15744 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15745 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15746 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"`'
15747 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"`'
15748 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15749 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15750 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15751 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15752 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15753 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15754 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15755 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15756 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15757 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15758 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15759 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15760 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15761 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15762 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15763 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15764 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15765 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15766 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15767 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15768 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15769 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15770 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15771 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15772 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15773 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15774 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15775 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15776 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15777 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15778 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15779 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15780 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15781 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15782 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15783 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15784 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15785 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15786 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15787 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15788 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15789 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15790 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15791 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15792 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15793 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15794 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15795 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15796 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15797 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15798 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15799 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15800 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15801 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15802 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15803 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15804 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15805 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15806 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15807 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15808 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15809 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15810 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15811 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15812 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15813 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15814 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15815 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15816 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15817 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15818 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15819 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15820
15821 LTCC='$LTCC'
15822 LTCFLAGS='$LTCFLAGS'
15823 compiler='$compiler_DEFAULT'
15824
15825 # Quote evaled strings.
15826 for var in SED \
15827 GREP \
15828 EGREP \
15829 FGREP \
15830 LD \
15831 NM \
15832 LN_S \
15833 lt_SP2NL \
15834 lt_NL2SP \
15835 reload_flag \
15836 OBJDUMP \
15837 deplibs_check_method \
15838 file_magic_cmd \
15839 AR \
15840 AR_FLAGS \
15841 STRIP \
15842 RANLIB \
15843 CC \
15844 CFLAGS \
15845 compiler \
15846 lt_cv_sys_global_symbol_pipe \
15847 lt_cv_sys_global_symbol_to_cdecl \
15848 lt_cv_sys_global_symbol_to_c_name_address \
15849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15850 SHELL \
15851 ECHO \
15852 lt_prog_compiler_no_builtin_flag \
15853 lt_prog_compiler_wl \
15854 lt_prog_compiler_pic \
15855 lt_prog_compiler_static \
15856 lt_cv_prog_compiler_c_o \
15857 need_locks \
15858 DSYMUTIL \
15859 NMEDIT \
15860 LIPO \
15861 OTOOL \
15862 OTOOL64 \
15863 shrext_cmds \
15864 export_dynamic_flag_spec \
15865 whole_archive_flag_spec \
15866 compiler_needs_object \
15867 with_gnu_ld \
15868 allow_undefined_flag \
15869 no_undefined_flag \
15870 hardcode_libdir_flag_spec \
15871 hardcode_libdir_flag_spec_ld \
15872 hardcode_libdir_separator \
15873 fix_srcfile_path \
15874 exclude_expsyms \
15875 include_expsyms \
15876 file_list_spec \
15877 variables_saved_for_relink \
15878 libname_spec \
15879 library_names_spec \
15880 soname_spec \
15881 finish_eval \
15882 old_striplib \
15883 striplib; do
15884     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15885     *[\\\\\\\`\\"\\\$]*)
15886       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15887       ;;
15888     *)
15889       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15890       ;;
15891     esac
15892 done
15893
15894 # Double-quote double-evaled strings.
15895 for var in reload_cmds \
15896 old_postinstall_cmds \
15897 old_postuninstall_cmds \
15898 old_archive_cmds \
15899 extract_expsyms_cmds \
15900 old_archive_from_new_cmds \
15901 old_archive_from_expsyms_cmds \
15902 archive_cmds \
15903 archive_expsym_cmds \
15904 module_cmds \
15905 module_expsym_cmds \
15906 export_symbols_cmds \
15907 prelink_cmds \
15908 postinstall_cmds \
15909 postuninstall_cmds \
15910 finish_cmds \
15911 sys_lib_search_path_spec \
15912 sys_lib_dlsearch_path_spec; do
15913     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15914     *[\\\\\\\`\\"\\\$]*)
15915       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15916       ;;
15917     *)
15918       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15919       ;;
15920     esac
15921 done
15922
15923 # Fix-up fallback echo if it was mangled by the above quoting rules.
15924 case \$lt_ECHO in
15925 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15926   ;;
15927 esac
15928
15929 ac_aux_dir='$ac_aux_dir'
15930 xsi_shell='$xsi_shell'
15931 lt_shell_append='$lt_shell_append'
15932
15933 # See if we are running on zsh, and set the options which allow our
15934 # commands through without removal of \ escapes INIT.
15935 if test -n "\${ZSH_VERSION+set}" ; then
15936    setopt NO_GLOB_SUBST
15937 fi
15938
15939
15940     PACKAGE='$PACKAGE'
15941     VERSION='$VERSION'
15942     TIMESTAMP='$TIMESTAMP'
15943     RM='$RM'
15944     ofile='$ofile'
15945
15946
15947
15948 TARGETDIR="$TARGETDIR"
15949
15950 _ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953
15954 # Handling of arguments.
15955 for ac_config_target in $ac_config_targets
15956 do
15957   case $ac_config_target in
15958     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15959     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15960     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15961     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15962     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15963     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15964     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15965     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15966     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15967     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15968     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15969     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15970
15971   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15972 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15973    { (exit 1); exit 1; }; };;
15974   esac
15975 done
15976
15977
15978 # If the user did not use the arguments to specify the items to instantiate,
15979 # then the envvar interface is used.  Set only those that are not.
15980 # We use the long form for the default assignment because of an extremely
15981 # bizarre bug on SunOS 4.1.3.
15982 if $ac_need_defaults; then
15983   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15984   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15985   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15986   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15987 fi
15988
15989 # Have a temporary directory for convenience.  Make it in the build tree
15990 # simply because there is no reason against having it here, and in addition,
15991 # creating and moving files from /tmp can sometimes cause problems.
15992 # Hook for its removal unless debugging.
15993 # Note that there is a small window in which the directory will not be cleaned:
15994 # after its creation but before its name has been assigned to `$tmp'.
15995 $debug ||
15996 {
15997   tmp=
15998   trap 'exit_status=$?
15999   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16000 ' 0
16001   trap '{ (exit 1); exit 1; }' 1 2 13 15
16002 }
16003 # Create a (secure) tmp directory for tmp files.
16004
16005 {
16006   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16007   test -n "$tmp" && test -d "$tmp"
16008 }  ||
16009 {
16010   tmp=./conf$$-$RANDOM
16011   (umask 077 && mkdir "$tmp")
16012 } ||
16013 {
16014    $as_echo "$as_me: cannot create a temporary directory in ." >&2
16015    { (exit 1); exit 1; }
16016 }
16017
16018 # Set up the scripts for CONFIG_FILES section.
16019 # No need to generate them if there are no CONFIG_FILES.
16020 # This happens for instance with `./config.status config.h'.
16021 if test -n "$CONFIG_FILES"; then
16022
16023
16024 ac_cr='\r'
16025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16027   ac_cs_awk_cr='\\r'
16028 else
16029   ac_cs_awk_cr=$ac_cr
16030 fi
16031
16032 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16033 _ACEOF
16034
16035
16036 {
16037   echo "cat >conf$$subs.awk <<_ACEOF" &&
16038   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16039   echo "_ACEOF"
16040 } >conf$$subs.sh ||
16041   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16042 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16043    { (exit 1); exit 1; }; }
16044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16045 ac_delim='%!_!# '
16046 for ac_last_try in false false false false false :; do
16047   . ./conf$$subs.sh ||
16048     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16049 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16050    { (exit 1); exit 1; }; }
16051
16052   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16053   if test $ac_delim_n = $ac_delim_num; then
16054     break
16055   elif $ac_last_try; then
16056     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16057 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16058    { (exit 1); exit 1; }; }
16059   else
16060     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16061   fi
16062 done
16063 rm -f conf$$subs.sh
16064
16065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16066 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16067 _ACEOF
16068 sed -n '
16069 h
16070 s/^/S["/; s/!.*/"]=/
16071 p
16072 g
16073 s/^[^!]*!//
16074 :repl
16075 t repl
16076 s/'"$ac_delim"'$//
16077 t delim
16078 :nl
16079 h
16080 s/\(.\{148\}\).*/\1/
16081 t more1
16082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16083 p
16084 n
16085 b repl
16086 :more1
16087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16088 p
16089 g
16090 s/.\{148\}//
16091 t nl
16092 :delim
16093 h
16094 s/\(.\{148\}\).*/\1/
16095 t more2
16096 s/["\\]/\\&/g; s/^/"/; s/$/"/
16097 p
16098 b
16099 :more2
16100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16101 p
16102 g
16103 s/.\{148\}//
16104 t delim
16105 ' <conf$$subs.awk | sed '
16106 /^[^""]/{
16107   N
16108   s/\n//
16109 }
16110 ' >>$CONFIG_STATUS || ac_write_fail=1
16111 rm -f conf$$subs.awk
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 _ACAWK
16114 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16115   for (key in S) S_is_set[key] = 1
16116   FS = "\a"
16117
16118 }
16119 {
16120   line = $ 0
16121   nfields = split(line, field, "@")
16122   substed = 0
16123   len = length(field[1])
16124   for (i = 2; i < nfields; i++) {
16125     key = field[i]
16126     keylen = length(key)
16127     if (S_is_set[key]) {
16128       value = S[key]
16129       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16130       len += length(value) + length(field[++i])
16131       substed = 1
16132     } else
16133       len += 1 + keylen
16134   }
16135
16136   print line
16137 }
16138
16139 _ACAWK
16140 _ACEOF
16141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16143   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16144 else
16145   cat
16146 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16147   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16148 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16149    { (exit 1); exit 1; }; }
16150 _ACEOF
16151
16152 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16153 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16154 # trailing colons and then remove the whole line if VPATH becomes empty
16155 # (actually we leave an empty line to preserve line numbers).
16156 if test "x$srcdir" = x.; then
16157   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16158 s/:*\$(srcdir):*/:/
16159 s/:*\${srcdir}:*/:/
16160 s/:*@srcdir@:*/:/
16161 s/^\([^=]*=[     ]*\):*/\1/
16162 s/:*$//
16163 s/^[^=]*=[       ]*$//
16164 }'
16165 fi
16166
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 fi # test -n "$CONFIG_FILES"
16169
16170 # Set up the scripts for CONFIG_HEADERS section.
16171 # No need to generate them if there are no CONFIG_HEADERS.
16172 # This happens for instance with `./config.status Makefile'.
16173 if test -n "$CONFIG_HEADERS"; then
16174 cat >"$tmp/defines.awk" <<\_ACAWK ||
16175 BEGIN {
16176 _ACEOF
16177
16178 # Transform confdefs.h into an awk script `defines.awk', embedded as
16179 # here-document in config.status, that substitutes the proper values into
16180 # config.h.in to produce config.h.
16181
16182 # Create a delimiter string that does not exist in confdefs.h, to ease
16183 # handling of long lines.
16184 ac_delim='%!_!# '
16185 for ac_last_try in false false :; do
16186   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16187   if test -z "$ac_t"; then
16188     break
16189   elif $ac_last_try; then
16190     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16191 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16192    { (exit 1); exit 1; }; }
16193   else
16194     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16195   fi
16196 done
16197
16198 # For the awk script, D is an array of macro values keyed by name,
16199 # likewise P contains macro parameters if any.  Preserve backslash
16200 # newline sequences.
16201
16202 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16203 sed -n '
16204 s/.\{148\}/&'"$ac_delim"'/g
16205 t rset
16206 :rset
16207 s/^[     ]*#[    ]*define[       ][      ]*/ /
16208 t def
16209 d
16210 :def
16211 s/\\$//
16212 t bsnl
16213 s/["\\]/\\&/g
16214 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16215 D["\1"]=" \3"/p
16216 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16217 d
16218 :bsnl
16219 s/["\\]/\\&/g
16220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16221 D["\1"]=" \3\\\\\\n"\\/p
16222 t cont
16223 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16224 t cont
16225 d
16226 :cont
16227 n
16228 s/.\{148\}/&'"$ac_delim"'/g
16229 t clear
16230 :clear
16231 s/\\$//
16232 t bsnlc
16233 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16234 d
16235 :bsnlc
16236 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16237 b cont
16238 ' <confdefs.h | sed '
16239 s/'"$ac_delim"'/"\\\
16240 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16241
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243   for (key in D) D_is_set[key] = 1
16244   FS = "\a"
16245 }
16246 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16247   line = \$ 0
16248   split(line, arg, " ")
16249   if (arg[1] == "#") {
16250     defundef = arg[2]
16251     mac1 = arg[3]
16252   } else {
16253     defundef = substr(arg[1], 2)
16254     mac1 = arg[2]
16255   }
16256   split(mac1, mac2, "(") #)
16257   macro = mac2[1]
16258   prefix = substr(line, 1, index(line, defundef) - 1)
16259   if (D_is_set[macro]) {
16260     # Preserve the white space surrounding the "#".
16261     print prefix "define", macro P[macro] D[macro]
16262     next
16263   } else {
16264     # Replace #undef with comments.  This is necessary, for example,
16265     # in the case of _POSIX_SOURCE, which is predefined and required
16266     # on some systems where configure will not decide to define it.
16267     if (defundef == "undef") {
16268       print "/*", prefix defundef, macro, "*/"
16269       next
16270     }
16271   }
16272 }
16273 { print }
16274 _ACAWK
16275 _ACEOF
16276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16277   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16278 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16279    { (exit 1); exit 1; }; }
16280 fi # test -n "$CONFIG_HEADERS"
16281
16282
16283 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16284 shift
16285 for ac_tag
16286 do
16287   case $ac_tag in
16288   :[FHLC]) ac_mode=$ac_tag; continue;;
16289   esac
16290   case $ac_mode$ac_tag in
16291   :[FHL]*:*);;
16292   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16293 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16294    { (exit 1); exit 1; }; };;
16295   :[FH]-) ac_tag=-:-;;
16296   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16297   esac
16298   ac_save_IFS=$IFS
16299   IFS=:
16300   set x $ac_tag
16301   IFS=$ac_save_IFS
16302   shift
16303   ac_file=$1
16304   shift
16305
16306   case $ac_mode in
16307   :L) ac_source=$1;;
16308   :[FH])
16309     ac_file_inputs=
16310     for ac_f
16311     do
16312       case $ac_f in
16313       -) ac_f="$tmp/stdin";;
16314       *) # Look for the file first in the build tree, then in the source tree
16315          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16316          # because $ac_f cannot contain `:'.
16317          test -f "$ac_f" ||
16318            case $ac_f in
16319            [\\/$]*) false;;
16320            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16321            esac ||
16322            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16323 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16324    { (exit 1); exit 1; }; };;
16325       esac
16326       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16327       ac_file_inputs="$ac_file_inputs '$ac_f'"
16328     done
16329
16330     # Let's still pretend it is `configure' which instantiates (i.e., don't
16331     # use $as_me), people would be surprised to read:
16332     #    /* config.h.  Generated by config.status.  */
16333     configure_input='Generated from '`
16334           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16335         `' by configure.'
16336     if test x"$ac_file" != x-; then
16337       configure_input="$ac_file.  $configure_input"
16338       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16339 $as_echo "$as_me: creating $ac_file" >&6;}
16340     fi
16341     # Neutralize special characters interpreted by sed in replacement strings.
16342     case $configure_input in #(
16343     *\&* | *\|* | *\\* )
16344        ac_sed_conf_input=`$as_echo "$configure_input" |
16345        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16346     *) ac_sed_conf_input=$configure_input;;
16347     esac
16348
16349     case $ac_tag in
16350     *:-:* | *:-) cat >"$tmp/stdin" \
16351       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16353    { (exit 1); exit 1; }; } ;;
16354     esac
16355     ;;
16356   esac
16357
16358   ac_dir=`$as_dirname -- "$ac_file" ||
16359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16360          X"$ac_file" : 'X\(//\)[^/]' \| \
16361          X"$ac_file" : 'X\(//\)$' \| \
16362          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16363 $as_echo X"$ac_file" |
16364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16365             s//\1/
16366             q
16367           }
16368           /^X\(\/\/\)[^/].*/{
16369             s//\1/
16370             q
16371           }
16372           /^X\(\/\/\)$/{
16373             s//\1/
16374             q
16375           }
16376           /^X\(\/\).*/{
16377             s//\1/
16378             q
16379           }
16380           s/.*/./; q'`
16381   { as_dir="$ac_dir"
16382   case $as_dir in #(
16383   -*) as_dir=./$as_dir;;
16384   esac
16385   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16386     as_dirs=
16387     while :; do
16388       case $as_dir in #(
16389       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16390       *) as_qdir=$as_dir;;
16391       esac
16392       as_dirs="'$as_qdir' $as_dirs"
16393       as_dir=`$as_dirname -- "$as_dir" ||
16394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16395          X"$as_dir" : 'X\(//\)[^/]' \| \
16396          X"$as_dir" : 'X\(//\)$' \| \
16397          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16398 $as_echo X"$as_dir" |
16399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16400             s//\1/
16401             q
16402           }
16403           /^X\(\/\/\)[^/].*/{
16404             s//\1/
16405             q
16406           }
16407           /^X\(\/\/\)$/{
16408             s//\1/
16409             q
16410           }
16411           /^X\(\/\).*/{
16412             s//\1/
16413             q
16414           }
16415           s/.*/./; q'`
16416       test -d "$as_dir" && break
16417     done
16418     test -z "$as_dirs" || eval "mkdir $as_dirs"
16419   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16420 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16421    { (exit 1); exit 1; }; }; }
16422   ac_builddir=.
16423
16424 case "$ac_dir" in
16425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16426 *)
16427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16428   # A ".." for each directory in $ac_dir_suffix.
16429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16430   case $ac_top_builddir_sub in
16431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16433   esac ;;
16434 esac
16435 ac_abs_top_builddir=$ac_pwd
16436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16437 # for backward compatibility:
16438 ac_top_builddir=$ac_top_build_prefix
16439
16440 case $srcdir in
16441   .)  # We are building in place.
16442     ac_srcdir=.
16443     ac_top_srcdir=$ac_top_builddir_sub
16444     ac_abs_top_srcdir=$ac_pwd ;;
16445   [\\/]* | ?:[\\/]* )  # Absolute name.
16446     ac_srcdir=$srcdir$ac_dir_suffix;
16447     ac_top_srcdir=$srcdir
16448     ac_abs_top_srcdir=$srcdir ;;
16449   *) # Relative name.
16450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16451     ac_top_srcdir=$ac_top_build_prefix$srcdir
16452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16453 esac
16454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16455
16456
16457   case $ac_mode in
16458   :F)
16459   #
16460   # CONFIG_FILE
16461   #
16462
16463   case $INSTALL in
16464   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16465   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16466   esac
16467   ac_MKDIR_P=$MKDIR_P
16468   case $MKDIR_P in
16469   [\\/$]* | ?:[\\/]* ) ;;
16470   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16471   esac
16472 _ACEOF
16473
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 # If the template does not know about datarootdir, expand it.
16476 # FIXME: This hack should be removed a few years after 2.60.
16477 ac_datarootdir_hack=; ac_datarootdir_seen=
16478
16479 ac_sed_dataroot='
16480 /datarootdir/ {
16481   p
16482   q
16483 }
16484 /@datadir@/p
16485 /@docdir@/p
16486 /@infodir@/p
16487 /@localedir@/p
16488 /@mandir@/p
16489 '
16490 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16491 *datarootdir*) ac_datarootdir_seen=yes;;
16492 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16493   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16494 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16495 _ACEOF
16496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16497   ac_datarootdir_hack='
16498   s&@datadir@&$datadir&g
16499   s&@docdir@&$docdir&g
16500   s&@infodir@&$infodir&g
16501   s&@localedir@&$localedir&g
16502   s&@mandir@&$mandir&g
16503     s&\\\${datarootdir}&$datarootdir&g' ;;
16504 esac
16505 _ACEOF
16506
16507 # Neutralize VPATH when `$srcdir' = `.'.
16508 # Shell code in configure.ac might set extrasub.
16509 # FIXME: do we really want to maintain this feature?
16510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16511 ac_sed_extra="$ac_vpsub
16512 $extrasub
16513 _ACEOF
16514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16515 :t
16516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16517 s|@configure_input@|$ac_sed_conf_input|;t t
16518 s&@top_builddir@&$ac_top_builddir_sub&;t t
16519 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16520 s&@srcdir@&$ac_srcdir&;t t
16521 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16522 s&@top_srcdir@&$ac_top_srcdir&;t t
16523 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16524 s&@builddir@&$ac_builddir&;t t
16525 s&@abs_builddir@&$ac_abs_builddir&;t t
16526 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16527 s&@INSTALL@&$ac_INSTALL&;t t
16528 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16529 $ac_datarootdir_hack
16530 "
16531 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16532   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16533 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16534    { (exit 1); exit 1; }; }
16535
16536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16537   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16538   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16539   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined.  Please make sure it is defined." >&5
16541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16542 which seems to be undefined.  Please make sure it is defined." >&2;}
16543
16544   rm -f "$tmp/stdin"
16545   case $ac_file in
16546   -) cat "$tmp/out" && rm -f "$tmp/out";;
16547   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16548   esac \
16549   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16550 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16551    { (exit 1); exit 1; }; }
16552  ;;
16553   :H)
16554   #
16555   # CONFIG_HEADER
16556   #
16557   if test x"$ac_file" != x-; then
16558     {
16559       $as_echo "/* $configure_input  */" \
16560       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16561     } >"$tmp/config.h" \
16562       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16563 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16564    { (exit 1); exit 1; }; }
16565     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16566       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16568     else
16569       rm -f "$ac_file"
16570       mv "$tmp/config.h" "$ac_file" \
16571         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16572 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16573    { (exit 1); exit 1; }; }
16574     fi
16575   else
16576     $as_echo "/* $configure_input  */" \
16577       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16578       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16579 $as_echo "$as_me: error: could not create -" >&2;}
16580    { (exit 1); exit 1; }; }
16581   fi
16582 # Compute "$ac_file"'s index in $config_headers.
16583 _am_arg="$ac_file"
16584 _am_stamp_count=1
16585 for _am_header in $config_headers :; do
16586   case $_am_header in
16587     $_am_arg | $_am_arg:* )
16588       break ;;
16589     * )
16590       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16591   esac
16592 done
16593 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16594 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595          X"$_am_arg" : 'X\(//\)[^/]' \| \
16596          X"$_am_arg" : 'X\(//\)$' \| \
16597          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16598 $as_echo X"$_am_arg" |
16599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16600             s//\1/
16601             q
16602           }
16603           /^X\(\/\/\)[^/].*/{
16604             s//\1/
16605             q
16606           }
16607           /^X\(\/\/\)$/{
16608             s//\1/
16609             q
16610           }
16611           /^X\(\/\).*/{
16612             s//\1/
16613             q
16614           }
16615           s/.*/./; q'`/stamp-h$_am_stamp_count
16616  ;;
16617   :L)
16618   #
16619   # CONFIG_LINK
16620   #
16621
16622   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16623     :
16624   else
16625     # Prefer the file from the source tree if names are identical.
16626     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16627       ac_source=$srcdir/$ac_source
16628     fi
16629
16630     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16631 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16632
16633     if test ! -r "$ac_source"; then
16634       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16635 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16636    { (exit 1); exit 1; }; }
16637     fi
16638     rm -f "$ac_file"
16639
16640     # Try a relative symlink, then a hard link, then a copy.
16641     case $srcdir in
16642     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16643         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16644     esac
16645     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16646       ln "$ac_source" "$ac_file" 2>/dev/null ||
16647       cp -p "$ac_source" "$ac_file" ||
16648       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16649 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16650    { (exit 1); exit 1; }; }
16651   fi
16652  ;;
16653   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16654 $as_echo "$as_me: executing $ac_file commands" >&6;}
16655  ;;
16656   esac
16657
16658
16659   case $ac_file$ac_mode in
16660     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16661   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16662   # are listed without --file.  Let's play safe and only enable the eval
16663   # if we detect the quoting.
16664   case $CONFIG_FILES in
16665   *\'*) eval set x "$CONFIG_FILES" ;;
16666   *)   set x $CONFIG_FILES ;;
16667   esac
16668   shift
16669   for mf
16670   do
16671     # Strip MF so we end up with the name of the file.
16672     mf=`echo "$mf" | sed -e 's/:.*$//'`
16673     # Check whether this is an Automake generated Makefile or not.
16674     # We used to match only the files named `Makefile.in', but
16675     # some people rename them; so instead we look at the file content.
16676     # Grep'ing the first line is not enough: some people post-process
16677     # each Makefile.in and add a new line on top of each file to say so.
16678     # Grep'ing the whole file is not good either: AIX grep has a line
16679     # limit of 2048, but all sed's we know have understand at least 4000.
16680     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16681       dirpart=`$as_dirname -- "$mf" ||
16682 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16683          X"$mf" : 'X\(//\)[^/]' \| \
16684          X"$mf" : 'X\(//\)$' \| \
16685          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16686 $as_echo X"$mf" |
16687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16688             s//\1/
16689             q
16690           }
16691           /^X\(\/\/\)[^/].*/{
16692             s//\1/
16693             q
16694           }
16695           /^X\(\/\/\)$/{
16696             s//\1/
16697             q
16698           }
16699           /^X\(\/\).*/{
16700             s//\1/
16701             q
16702           }
16703           s/.*/./; q'`
16704     else
16705       continue
16706     fi
16707     # Extract the definition of DEPDIR, am__include, and am__quote
16708     # from the Makefile without running `make'.
16709     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16710     test -z "$DEPDIR" && continue
16711     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16712     test -z "am__include" && continue
16713     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16714     # When using ansi2knr, U may be empty or an underscore; expand it
16715     U=`sed -n 's/^U = //p' < "$mf"`
16716     # Find all dependency output files, they are included files with
16717     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16718     # simplest approach to changing $(DEPDIR) to its actual value in the
16719     # expansion.
16720     for file in `sed -n "
16721       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16722          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16723       # Make sure the directory exists.
16724       test -f "$dirpart/$file" && continue
16725       fdir=`$as_dirname -- "$file" ||
16726 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16727          X"$file" : 'X\(//\)[^/]' \| \
16728          X"$file" : 'X\(//\)$' \| \
16729          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16730 $as_echo X"$file" |
16731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16732             s//\1/
16733             q
16734           }
16735           /^X\(\/\/\)[^/].*/{
16736             s//\1/
16737             q
16738           }
16739           /^X\(\/\/\)$/{
16740             s//\1/
16741             q
16742           }
16743           /^X\(\/\).*/{
16744             s//\1/
16745             q
16746           }
16747           s/.*/./; q'`
16748       { as_dir=$dirpart/$fdir
16749   case $as_dir in #(
16750   -*) as_dir=./$as_dir;;
16751   esac
16752   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16753     as_dirs=
16754     while :; do
16755       case $as_dir in #(
16756       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16757       *) as_qdir=$as_dir;;
16758       esac
16759       as_dirs="'$as_qdir' $as_dirs"
16760       as_dir=`$as_dirname -- "$as_dir" ||
16761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16762          X"$as_dir" : 'X\(//\)[^/]' \| \
16763          X"$as_dir" : 'X\(//\)$' \| \
16764          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16765 $as_echo X"$as_dir" |
16766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16767             s//\1/
16768             q
16769           }
16770           /^X\(\/\/\)[^/].*/{
16771             s//\1/
16772             q
16773           }
16774           /^X\(\/\/\)$/{
16775             s//\1/
16776             q
16777           }
16778           /^X\(\/\).*/{
16779             s//\1/
16780             q
16781           }
16782           s/.*/./; q'`
16783       test -d "$as_dir" && break
16784     done
16785     test -z "$as_dirs" || eval "mkdir $as_dirs"
16786   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16787 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16788    { (exit 1); exit 1; }; }; }
16789       # echo "creating $dirpart/$file"
16790       echo '# dummy' > "$dirpart/$file"
16791     done
16792   done
16793 }
16794  ;;
16795     "libtool":C)
16796
16797     # See if we are running on zsh, and set the options which allow our
16798     # commands through without removal of \ escapes.
16799     if test -n "${ZSH_VERSION+set}" ; then
16800       setopt NO_GLOB_SUBST
16801     fi
16802
16803     cfgfile="${ofile}T"
16804     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16805     $RM "$cfgfile"
16806
16807     cat <<_LT_EOF >> "$cfgfile"
16808 #! $SHELL
16809
16810 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16811 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16812 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16813 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16814 #
16815 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16816 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16817 #   Written by Gordon Matzigkeit, 1996
16818 #
16819 #   This file is part of GNU Libtool.
16820 #
16821 # GNU Libtool is free software; you can redistribute it and/or
16822 # modify it under the terms of the GNU General Public License as
16823 # published by the Free Software Foundation; either version 2 of
16824 # the License, or (at your option) any later version.
16825 #
16826 # As a special exception to the GNU General Public License,
16827 # if you distribute this file as part of a program or library that
16828 # is built using GNU Libtool, you may include this file under the
16829 # same distribution terms that you use for the rest of that program.
16830 #
16831 # GNU Libtool is distributed in the hope that it will be useful,
16832 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16833 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16834 # GNU General Public License for more details.
16835 #
16836 # You should have received a copy of the GNU General Public License
16837 # along with GNU Libtool; see the file COPYING.  If not, a copy
16838 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16839 # obtained by writing to the Free Software Foundation, Inc.,
16840 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16841
16842
16843 # The names of the tagged configurations supported by this script.
16844 available_tags=""
16845
16846 # ### BEGIN LIBTOOL CONFIG
16847
16848 # Which release of libtool.m4 was used?
16849 macro_version=$macro_version
16850 macro_revision=$macro_revision
16851
16852 # Whether or not to build shared libraries.
16853 build_libtool_libs=$enable_shared
16854
16855 # Whether or not to build static libraries.
16856 build_old_libs=$enable_static
16857
16858 # What type of objects to build.
16859 pic_mode=$pic_mode
16860
16861 # Whether or not to optimize for fast installation.
16862 fast_install=$enable_fast_install
16863
16864 # The host system.
16865 host_alias=$host_alias
16866 host=$host
16867 host_os=$host_os
16868
16869 # The build system.
16870 build_alias=$build_alias
16871 build=$build
16872 build_os=$build_os
16873
16874 # A sed program that does not truncate output.
16875 SED=$lt_SED
16876
16877 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16878 Xsed="\$SED -e 1s/^X//"
16879
16880 # A grep program that handles long lines.
16881 GREP=$lt_GREP
16882
16883 # An ERE matcher.
16884 EGREP=$lt_EGREP
16885
16886 # A literal string matcher.
16887 FGREP=$lt_FGREP
16888
16889 # A BSD- or MS-compatible name lister.
16890 NM=$lt_NM
16891
16892 # Whether we need soft or hard links.
16893 LN_S=$lt_LN_S
16894
16895 # What is the maximum length of a command?
16896 max_cmd_len=$max_cmd_len
16897
16898 # Object file suffix (normally "o").
16899 objext=$ac_objext
16900
16901 # Executable file suffix (normally "").
16902 exeext=$exeext
16903
16904 # whether the shell understands "unset".
16905 lt_unset=$lt_unset
16906
16907 # turn spaces into newlines.
16908 SP2NL=$lt_lt_SP2NL
16909
16910 # turn newlines into spaces.
16911 NL2SP=$lt_lt_NL2SP
16912
16913 # How to create reloadable object files.
16914 reload_flag=$lt_reload_flag
16915 reload_cmds=$lt_reload_cmds
16916
16917 # An object symbol dumper.
16918 OBJDUMP=$lt_OBJDUMP
16919
16920 # Method to check whether dependent libraries are shared objects.
16921 deplibs_check_method=$lt_deplibs_check_method
16922
16923 # Command to use when deplibs_check_method == "file_magic".
16924 file_magic_cmd=$lt_file_magic_cmd
16925
16926 # The archiver.
16927 AR=$lt_AR
16928 AR_FLAGS=$lt_AR_FLAGS
16929
16930 # A symbol stripping program.
16931 STRIP=$lt_STRIP
16932
16933 # Commands used to install an old-style archive.
16934 RANLIB=$lt_RANLIB
16935 old_postinstall_cmds=$lt_old_postinstall_cmds
16936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16937
16938 # A C compiler.
16939 LTCC=$lt_CC
16940
16941 # LTCC compiler flags.
16942 LTCFLAGS=$lt_CFLAGS
16943
16944 # Take the output of nm and produce a listing of raw symbols and C names.
16945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16946
16947 # Transform the output of nm in a proper C declaration.
16948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16949
16950 # Transform the output of nm in a C name address pair.
16951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16952
16953 # Transform the output of nm in a C name address pair when lib prefix is needed.
16954 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16955
16956 # The name of the directory that contains temporary libtool files.
16957 objdir=$objdir
16958
16959 # Shell to use when invoking shell scripts.
16960 SHELL=$lt_SHELL
16961
16962 # An echo program that does not interpret backslashes.
16963 ECHO=$lt_ECHO
16964
16965 # Used to examine libraries when file_magic_cmd begins with "file".
16966 MAGIC_CMD=$MAGIC_CMD
16967
16968 # Must we lock files when doing compilation?
16969 need_locks=$lt_need_locks
16970
16971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16972 DSYMUTIL=$lt_DSYMUTIL
16973
16974 # Tool to change global to local symbols on Mac OS X.
16975 NMEDIT=$lt_NMEDIT
16976
16977 # Tool to manipulate fat objects and archives on Mac OS X.
16978 LIPO=$lt_LIPO
16979
16980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16981 OTOOL=$lt_OTOOL
16982
16983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16984 OTOOL64=$lt_OTOOL64
16985
16986 # Old archive suffix (normally "a").
16987 libext=$libext
16988
16989 # Shared library suffix (normally ".so").
16990 shrext_cmds=$lt_shrext_cmds
16991
16992 # The commands to extract the exported symbol list from a shared archive.
16993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16994
16995 # Variables whose values should be saved in libtool wrapper scripts and
16996 # restored at link time.
16997 variables_saved_for_relink=$lt_variables_saved_for_relink
16998
16999 # Do we need the "lib" prefix for modules?
17000 need_lib_prefix=$need_lib_prefix
17001
17002 # Do we need a version for libraries?
17003 need_version=$need_version
17004
17005 # Library versioning type.
17006 version_type=$version_type
17007
17008 # Shared library runtime path variable.
17009 runpath_var=$runpath_var
17010
17011 # Shared library path variable.
17012 shlibpath_var=$shlibpath_var
17013
17014 # Is shlibpath searched before the hard-coded library search path?
17015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17016
17017 # Format of library name prefix.
17018 libname_spec=$lt_libname_spec
17019
17020 # List of archive names.  First name is the real one, the rest are links.
17021 # The last name is the one that the linker finds with -lNAME
17022 library_names_spec=$lt_library_names_spec
17023
17024 # The coded name of the library, if different from the real name.
17025 soname_spec=$lt_soname_spec
17026
17027 # Command to use after installation of a shared archive.
17028 postinstall_cmds=$lt_postinstall_cmds
17029
17030 # Command to use after uninstallation of a shared archive.
17031 postuninstall_cmds=$lt_postuninstall_cmds
17032
17033 # Commands used to finish a libtool library installation in a directory.
17034 finish_cmds=$lt_finish_cmds
17035
17036 # As "finish_cmds", except a single script fragment to be evaled but
17037 # not shown.
17038 finish_eval=$lt_finish_eval
17039
17040 # Whether we should hardcode library paths into libraries.
17041 hardcode_into_libs=$hardcode_into_libs
17042
17043 # Compile-time system search path for libraries.
17044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17045
17046 # Run-time system search path for libraries.
17047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17048
17049 # Whether dlopen is supported.
17050 dlopen_support=$enable_dlopen
17051
17052 # Whether dlopen of programs is supported.
17053 dlopen_self=$enable_dlopen_self
17054
17055 # Whether dlopen of statically linked programs is supported.
17056 dlopen_self_static=$enable_dlopen_self_static
17057
17058 # Commands to strip libraries.
17059 old_striplib=$lt_old_striplib
17060 striplib=$lt_striplib
17061
17062
17063 # The linker used to build libraries.
17064 LD=$lt_LD
17065
17066 # Commands used to build an old-style archive.
17067 old_archive_cmds=$lt_old_archive_cmds
17068
17069 # A language specific compiler.
17070 CC=$lt_compiler
17071
17072 # Is the compiler the GNU compiler?
17073 with_gcc=$GCC
17074
17075 # Compiler flag to turn off builtin functions.
17076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17077
17078 # How to pass a linker flag through the compiler.
17079 wl=$lt_lt_prog_compiler_wl
17080
17081 # Additional compiler flags for building library objects.
17082 pic_flag=$lt_lt_prog_compiler_pic
17083
17084 # Compiler flag to prevent dynamic linking.
17085 link_static_flag=$lt_lt_prog_compiler_static
17086
17087 # Does compiler simultaneously support -c and -o options?
17088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17089
17090 # Whether or not to add -lc for building shared libraries.
17091 build_libtool_need_lc=$archive_cmds_need_lc
17092
17093 # Whether or not to disallow shared libs when runtime libs are static.
17094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17095
17096 # Compiler flag to allow reflexive dlopens.
17097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17098
17099 # Compiler flag to generate shared objects directly from archives.
17100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17101
17102 # Whether the compiler copes with passing no objects directly.
17103 compiler_needs_object=$lt_compiler_needs_object
17104
17105 # Create an old-style archive from a shared archive.
17106 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17107
17108 # Create a temporary old-style archive to link instead of a shared archive.
17109 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17110
17111 # Commands used to build a shared archive.
17112 archive_cmds=$lt_archive_cmds
17113 archive_expsym_cmds=$lt_archive_expsym_cmds
17114
17115 # Commands used to build a loadable module if different from building
17116 # a shared archive.
17117 module_cmds=$lt_module_cmds
17118 module_expsym_cmds=$lt_module_expsym_cmds
17119
17120 # Whether we are building with GNU ld or not.
17121 with_gnu_ld=$lt_with_gnu_ld
17122
17123 # Flag that allows shared libraries with undefined symbols to be built.
17124 allow_undefined_flag=$lt_allow_undefined_flag
17125
17126 # Flag that enforces no undefined symbols.
17127 no_undefined_flag=$lt_no_undefined_flag
17128
17129 # Flag to hardcode \$libdir into a binary during linking.
17130 # This must work even if \$libdir does not exist
17131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17132
17133 # If ld is used when linking, flag to hardcode \$libdir into a binary
17134 # during linking.  This must work even if \$libdir does not exist.
17135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17136
17137 # Whether we need a single "-rpath" flag with a separated argument.
17138 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17139
17140 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17141 # DIR into the resulting binary.
17142 hardcode_direct=$hardcode_direct
17143
17144 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17145 # DIR into the resulting binary and the resulting library dependency is
17146 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17147 # library is relocated.
17148 hardcode_direct_absolute=$hardcode_direct_absolute
17149
17150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17151 # into the resulting binary.
17152 hardcode_minus_L=$hardcode_minus_L
17153
17154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17155 # into the resulting binary.
17156 hardcode_shlibpath_var=$hardcode_shlibpath_var
17157
17158 # Set to "yes" if building a shared library automatically hardcodes DIR
17159 # into the library and all subsequent libraries and executables linked
17160 # against it.
17161 hardcode_automatic=$hardcode_automatic
17162
17163 # Set to yes if linker adds runtime paths of dependent libraries
17164 # to runtime path list.
17165 inherit_rpath=$inherit_rpath
17166
17167 # Whether libtool must link a program against all its dependency libraries.
17168 link_all_deplibs=$link_all_deplibs
17169
17170 # Fix the shell variable \$srcfile for the compiler.
17171 fix_srcfile_path=$lt_fix_srcfile_path
17172
17173 # Set to "yes" if exported symbols are required.
17174 always_export_symbols=$always_export_symbols
17175
17176 # The commands to list exported symbols.
17177 export_symbols_cmds=$lt_export_symbols_cmds
17178
17179 # Symbols that should not be listed in the preloaded symbols.
17180 exclude_expsyms=$lt_exclude_expsyms
17181
17182 # Symbols that must always be exported.
17183 include_expsyms=$lt_include_expsyms
17184
17185 # Commands necessary for linking programs (against libraries) with templates.
17186 prelink_cmds=$lt_prelink_cmds
17187
17188 # Specify filename containing input files.
17189 file_list_spec=$lt_file_list_spec
17190
17191 # How to hardcode a shared library path into an executable.
17192 hardcode_action=$hardcode_action
17193
17194 # ### END LIBTOOL CONFIG
17195
17196 _LT_EOF
17197
17198   case $host_os in
17199   aix3*)
17200     cat <<\_LT_EOF >> "$cfgfile"
17201 # AIX sometimes has problems with the GCC collect2 program.  For some
17202 # reason, if we set the COLLECT_NAMES environment variable, the problems
17203 # vanish in a puff of smoke.
17204 if test "X${COLLECT_NAMES+set}" != Xset; then
17205   COLLECT_NAMES=
17206   export COLLECT_NAMES
17207 fi
17208 _LT_EOF
17209     ;;
17210   esac
17211
17212
17213 ltmain="$ac_aux_dir/ltmain.sh"
17214
17215
17216   # We use sed instead of cat because bash on DJGPP gets confused if
17217   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17218   # text mode, it properly converts lines to CR/LF.  This bash problem
17219   # is reportedly fixed, but why not run on old versions too?
17220   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17221     || (rm -f "$cfgfile"; exit 1)
17222
17223   case $xsi_shell in
17224   yes)
17225     cat << \_LT_EOF >> "$cfgfile"
17226
17227 # func_dirname file append nondir_replacement
17228 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17229 # otherwise set result to NONDIR_REPLACEMENT.
17230 func_dirname ()
17231 {
17232   case ${1} in
17233     */*) func_dirname_result="${1%/*}${2}" ;;
17234     *  ) func_dirname_result="${3}" ;;
17235   esac
17236 }
17237
17238 # func_basename file
17239 func_basename ()
17240 {
17241   func_basename_result="${1##*/}"
17242 }
17243
17244 # func_dirname_and_basename file append nondir_replacement
17245 # perform func_basename and func_dirname in a single function
17246 # call:
17247 #   dirname:  Compute the dirname of FILE.  If nonempty,
17248 #             add APPEND to the result, otherwise set result
17249 #             to NONDIR_REPLACEMENT.
17250 #             value returned in "$func_dirname_result"
17251 #   basename: Compute filename of FILE.
17252 #             value retuned in "$func_basename_result"
17253 # Implementation must be kept synchronized with func_dirname
17254 # and func_basename. For efficiency, we do not delegate to
17255 # those functions but instead duplicate the functionality here.
17256 func_dirname_and_basename ()
17257 {
17258   case ${1} in
17259     */*) func_dirname_result="${1%/*}${2}" ;;
17260     *  ) func_dirname_result="${3}" ;;
17261   esac
17262   func_basename_result="${1##*/}"
17263 }
17264
17265 # func_stripname prefix suffix name
17266 # strip PREFIX and SUFFIX off of NAME.
17267 # PREFIX and SUFFIX must not contain globbing or regex special
17268 # characters, hashes, percent signs, but SUFFIX may contain a leading
17269 # dot (in which case that matches only a dot).
17270 func_stripname ()
17271 {
17272   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17273   # positional parameters, so assign one to ordinary parameter first.
17274   func_stripname_result=${3}
17275   func_stripname_result=${func_stripname_result#"${1}"}
17276   func_stripname_result=${func_stripname_result%"${2}"}
17277 }
17278
17279 # func_opt_split
17280 func_opt_split ()
17281 {
17282   func_opt_split_opt=${1%%=*}
17283   func_opt_split_arg=${1#*=}
17284 }
17285
17286 # func_lo2o object
17287 func_lo2o ()
17288 {
17289   case ${1} in
17290     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17291     *)    func_lo2o_result=${1} ;;
17292   esac
17293 }
17294
17295 # func_xform libobj-or-source
17296 func_xform ()
17297 {
17298   func_xform_result=${1%.*}.lo
17299 }
17300
17301 # func_arith arithmetic-term...
17302 func_arith ()
17303 {
17304   func_arith_result=$(( $* ))
17305 }
17306
17307 # func_len string
17308 # STRING may not start with a hyphen.
17309 func_len ()
17310 {
17311   func_len_result=${#1}
17312 }
17313
17314 _LT_EOF
17315     ;;
17316   *) # Bourne compatible functions.
17317     cat << \_LT_EOF >> "$cfgfile"
17318
17319 # func_dirname file append nondir_replacement
17320 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17321 # otherwise set result to NONDIR_REPLACEMENT.
17322 func_dirname ()
17323 {
17324   # Extract subdirectory from the argument.
17325   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17326   if test "X$func_dirname_result" = "X${1}"; then
17327     func_dirname_result="${3}"
17328   else
17329     func_dirname_result="$func_dirname_result${2}"
17330   fi
17331 }
17332
17333 # func_basename file
17334 func_basename ()
17335 {
17336   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17337 }
17338
17339
17340 # func_stripname prefix suffix name
17341 # strip PREFIX and SUFFIX off of NAME.
17342 # PREFIX and SUFFIX must not contain globbing or regex special
17343 # characters, hashes, percent signs, but SUFFIX may contain a leading
17344 # dot (in which case that matches only a dot).
17345 # func_strip_suffix prefix name
17346 func_stripname ()
17347 {
17348   case ${2} in
17349     .*) func_stripname_result=`$ECHO "X${3}" \
17350            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17351     *)  func_stripname_result=`$ECHO "X${3}" \
17352            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17353   esac
17354 }
17355
17356 # sed scripts:
17357 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17358 my_sed_long_arg='1s/^-[^=]*=//'
17359
17360 # func_opt_split
17361 func_opt_split ()
17362 {
17363   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17364   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17365 }
17366
17367 # func_lo2o object
17368 func_lo2o ()
17369 {
17370   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17371 }
17372
17373 # func_xform libobj-or-source
17374 func_xform ()
17375 {
17376   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17377 }
17378
17379 # func_arith arithmetic-term...
17380 func_arith ()
17381 {
17382   func_arith_result=`expr "$@"`
17383 }
17384
17385 # func_len string
17386 # STRING may not start with a hyphen.
17387 func_len ()
17388 {
17389   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17390 }
17391
17392 _LT_EOF
17393 esac
17394
17395 case $lt_shell_append in
17396   yes)
17397     cat << \_LT_EOF >> "$cfgfile"
17398
17399 # func_append var value
17400 # Append VALUE to the end of shell variable VAR.
17401 func_append ()
17402 {
17403   eval "$1+=\$2"
17404 }
17405 _LT_EOF
17406     ;;
17407   *)
17408     cat << \_LT_EOF >> "$cfgfile"
17409
17410 # func_append var value
17411 # Append VALUE to the end of shell variable VAR.
17412 func_append ()
17413 {
17414   eval "$1=\$$1\$2"
17415 }
17416
17417 _LT_EOF
17418     ;;
17419   esac
17420
17421
17422   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17423     || (rm -f "$cfgfile"; exit 1)
17424
17425   mv -f "$cfgfile" "$ofile" ||
17426     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17427   chmod +x "$ofile"
17428
17429  ;;
17430     "include":C) test -d include || mkdir include ;;
17431     "src":C)
17432 test -d src || mkdir src
17433 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17434  ;;
17435
17436   esac
17437 done # for ac_tag
17438
17439
17440 { (exit 0); exit 0; }
17441 _ACEOF
17442 chmod +x $CONFIG_STATUS
17443 ac_clean_files=$ac_clean_files_save
17444
17445 test $ac_write_fail = 0 ||
17446   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17447 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17448    { (exit 1); exit 1; }; }
17449
17450
17451 # configure is writing to config.log, and then calls config.status.
17452 # config.status does its own redirection, appending to config.log.
17453 # Unfortunately, on DOS this fails, as config.log is still kept open
17454 # by configure, so config.status won't be able to write to it; its
17455 # output is simply discarded.  So we exec the FD to /dev/null,
17456 # effectively closing config.log, so it can be properly (re)opened and
17457 # appended to by config.status.  When coming back to configure, we
17458 # need to make the FD available again.
17459 if test "$no_create" != yes; then
17460   ac_cs_success=:
17461   ac_config_status_args=
17462   test "$silent" = yes &&
17463     ac_config_status_args="$ac_config_status_args --quiet"
17464   exec 5>/dev/null
17465   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17466   exec 5>>config.log
17467   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17468   # would make configure fail if this is the last instruction.
17469   $ac_cs_success || { (exit 1); exit 1; }
17470 fi
17471 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17472   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17473 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17474 fi
17475