Update to rc2
[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.10rc2.
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.10rc2'
749 PACKAGE_STRING='libffi 3.0.10rc2'
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 FFI_EXEC_TRAMPOLINE_TABLE
799 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
800 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
801 sys_symbol_underscore
802 HAVE_LONG_DOUBLE
803 ALLOCA
804 PA64_HPUX_FALSE
805 PA64_HPUX_TRUE
806 PA_HPUX_FALSE
807 PA_HPUX_TRUE
808 PA_LINUX_FALSE
809 PA_LINUX_TRUE
810 SH64_FALSE
811 SH64_TRUE
812 SH_FALSE
813 SH_TRUE
814 X86_64_FALSE
815 X86_64_TRUE
816 S390_FALSE
817 S390_TRUE
818 FRV_FALSE
819 FRV_TRUE
820 LIBFFI_CRIS_FALSE
821 LIBFFI_CRIS_TRUE
822 AVR32_FALSE
823 AVR32_TRUE
824 ARM_FALSE
825 ARM_TRUE
826 POWERPC_FREEBSD_FALSE
827 POWERPC_FREEBSD_TRUE
828 POWERPC_DARWIN_FALSE
829 POWERPC_DARWIN_TRUE
830 POWERPC_AIX_FALSE
831 POWERPC_AIX_TRUE
832 POWERPC_FALSE
833 POWERPC_TRUE
834 MOXIE_FALSE
835 MOXIE_TRUE
836 M68K_FALSE
837 M68K_TRUE
838 M32R_FALSE
839 M32R_TRUE
840 IA64_FALSE
841 IA64_TRUE
842 ALPHA_FALSE
843 ALPHA_TRUE
844 X86_DARWIN_FALSE
845 X86_DARWIN_TRUE
846 X86_WIN64_FALSE
847 X86_WIN64_TRUE
848 X86_WIN32_FALSE
849 X86_WIN32_TRUE
850 X86_FREEBSD_FALSE
851 X86_FREEBSD_TRUE
852 X86_FALSE
853 X86_TRUE
854 SPARC_FALSE
855 SPARC_TRUE
856 MIPS_FALSE
857 MIPS_TRUE
858 AM_LTLDFLAGS
859 AM_RUNTESTFLAGS
860 TESTSUBDIR_FALSE
861 TESTSUBDIR_TRUE
862 MAINT
863 MAINTAINER_MODE_FALSE
864 MAINTAINER_MODE_TRUE
865 CPP
866 OTOOL64
867 OTOOL
868 LIPO
869 NMEDIT
870 DSYMUTIL
871 lt_ECHO
872 RANLIB
873 AR
874 OBJDUMP
875 LN_S
876 NM
877 ac_ct_DUMPBIN
878 DUMPBIN
879 LD
880 FGREP
881 EGREP
882 GREP
883 SED
884 LIBTOOL
885 am__fastdepCCAS_FALSE
886 am__fastdepCCAS_TRUE
887 CCASDEPMODE
888 CCASFLAGS
889 CCAS
890 am__fastdepCC_FALSE
891 am__fastdepCC_TRUE
892 CCDEPMODE
893 AMDEPBACKSLASH
894 AMDEP_FALSE
895 AMDEP_TRUE
896 am__quote
897 am__include
898 DEPDIR
899 OBJEXT
900 EXEEXT
901 ac_ct_CC
902 CPPFLAGS
903 LDFLAGS
904 CFLAGS
905 CC
906 am__untar
907 am__tar
908 AMTAR
909 am__leading_dot
910 SET_MAKE
911 AWK
912 mkdir_p
913 MKDIR_P
914 INSTALL_STRIP_PROGRAM
915 STRIP
916 install_sh
917 MAKEINFO
918 AUTOHEADER
919 AUTOMAKE
920 AUTOCONF
921 ACLOCAL
922 VERSION
923 PACKAGE
924 CYGPATH_W
925 am__isrc
926 INSTALL_DATA
927 INSTALL_SCRIPT
928 INSTALL_PROGRAM
929 target_os
930 target_vendor
931 target_cpu
932 target
933 host_os
934 host_vendor
935 host_cpu
936 host
937 build_os
938 build_vendor
939 build_cpu
940 build
941 target_alias
942 host_alias
943 build_alias
944 LIBS
945 ECHO_T
946 ECHO_N
947 ECHO_C
948 DEFS
949 mandir
950 localedir
951 libdir
952 psdir
953 pdfdir
954 dvidir
955 htmldir
956 infodir
957 docdir
958 oldincludedir
959 includedir
960 localstatedir
961 sharedstatedir
962 sysconfdir
963 datadir
964 datarootdir
965 libexecdir
966 sbindir
967 bindir
968 program_transform_name
969 prefix
970 exec_prefix
971 PACKAGE_BUGREPORT
972 PACKAGE_STRING
973 PACKAGE_VERSION
974 PACKAGE_TARNAME
975 PACKAGE_NAME
976 PATH_SEPARATOR
977 SHELL'
978 ac_subst_files=''
979 ac_user_opts='
980 enable_option_checking
981 enable_dependency_tracking
982 enable_shared
983 enable_static
984 with_pic
985 enable_fast_install
986 with_gnu_ld
987 enable_libtool_lock
988 enable_maintainer_mode
989 enable_debug
990 enable_structs
991 enable_raw_api
992 enable_purify_safety
993 '
994       ac_precious_vars='build_alias
995 host_alias
996 target_alias
997 CCAS
998 CCASFLAGS
999 CPP
1000 CPPFLAGS'
1001
1002
1003 # Initialize some variables set by options.
1004 ac_init_help=
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1011 exec_prefix=NONE
1012 no_create=
1013 no_recursion=
1014 prefix=NONE
1015 program_prefix=NONE
1016 program_suffix=NONE
1017 program_transform_name=s,x,x,
1018 silent=
1019 site=
1020 srcdir=
1021 verbose=
1022 x_includes=NONE
1023 x_libraries=NONE
1024
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042 infodir='${datarootdir}/info'
1043 htmldir='${docdir}'
1044 dvidir='${docdir}'
1045 pdfdir='${docdir}'
1046 psdir='${docdir}'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1050
1051 ac_prev=
1052 ac_dashdash=
1053 for ac_option
1054 do
1055   # If the previous option needs an argument, assign it.
1056   if test -n "$ac_prev"; then
1057     eval $ac_prev=\$ac_option
1058     ac_prev=
1059     continue
1060   fi
1061
1062   case $ac_option in
1063   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064   *)    ac_optarg=yes ;;
1065   esac
1066
1067   # Accept the important Cygnus configure options, so we can diagnose typos.
1068
1069   case $ac_dashdash$ac_option in
1070   --)
1071     ac_dashdash=yes ;;
1072
1073   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074     ac_prev=bindir ;;
1075   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076     bindir=$ac_optarg ;;
1077
1078   -build | --build | --buil | --bui | --bu)
1079     ac_prev=build_alias ;;
1080   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081     build_alias=$ac_optarg ;;
1082
1083   -cache-file | --cache-file | --cache-fil | --cache-fi \
1084   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085     ac_prev=cache_file ;;
1086   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088     cache_file=$ac_optarg ;;
1089
1090   --config-cache | -C)
1091     cache_file=config.cache ;;
1092
1093   -datadir | --datadir | --datadi | --datad)
1094     ac_prev=datadir ;;
1095   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096     datadir=$ac_optarg ;;
1097
1098   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099   | --dataroo | --dataro | --datar)
1100     ac_prev=datarootdir ;;
1101   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103     datarootdir=$ac_optarg ;;
1104
1105   -disable-* | --disable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1110    { (exit 1); exit 1; }; }
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval enable_$ac_useropt=no ;;
1121
1122   -docdir | --docdir | --docdi | --doc | --do)
1123     ac_prev=docdir ;;
1124   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125     docdir=$ac_optarg ;;
1126
1127   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128     ac_prev=dvidir ;;
1129   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130     dvidir=$ac_optarg ;;
1131
1132   -enable-* | --enable-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1137    { (exit 1); exit 1; }; }
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "enable_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval enable_$ac_useropt=\$ac_optarg ;;
1148
1149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151   | --exec | --exe | --ex)
1152     ac_prev=exec_prefix ;;
1153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155   | --exec=* | --exe=* | --ex=*)
1156     exec_prefix=$ac_optarg ;;
1157
1158   -gas | --gas | --ga | --g)
1159     # Obsolete; use --with-gas.
1160     with_gas=yes ;;
1161
1162   -help | --help | --hel | --he | -h)
1163     ac_init_help=long ;;
1164   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165     ac_init_help=recursive ;;
1166   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167     ac_init_help=short ;;
1168
1169   -host | --host | --hos | --ho)
1170     ac_prev=host_alias ;;
1171   -host=* | --host=* | --hos=* | --ho=*)
1172     host_alias=$ac_optarg ;;
1173
1174   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175     ac_prev=htmldir ;;
1176   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177   | --ht=*)
1178     htmldir=$ac_optarg ;;
1179
1180   -includedir | --includedir | --includedi | --included | --include \
1181   | --includ | --inclu | --incl | --inc)
1182     ac_prev=includedir ;;
1183   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184   | --includ=* | --inclu=* | --incl=* | --inc=*)
1185     includedir=$ac_optarg ;;
1186
1187   -infodir | --infodir | --infodi | --infod | --info | --inf)
1188     ac_prev=infodir ;;
1189   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190     infodir=$ac_optarg ;;
1191
1192   -libdir | --libdir | --libdi | --libd)
1193     ac_prev=libdir ;;
1194   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195     libdir=$ac_optarg ;;
1196
1197   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198   | --libexe | --libex | --libe)
1199     ac_prev=libexecdir ;;
1200   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201   | --libexe=* | --libex=* | --libe=*)
1202     libexecdir=$ac_optarg ;;
1203
1204   -localedir | --localedir | --localedi | --localed | --locale)
1205     ac_prev=localedir ;;
1206   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207     localedir=$ac_optarg ;;
1208
1209   -localstatedir | --localstatedir | --localstatedi | --localstated \
1210   | --localstate | --localstat | --localsta | --localst | --locals)
1211     ac_prev=localstatedir ;;
1212   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214     localstatedir=$ac_optarg ;;
1215
1216   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217     ac_prev=mandir ;;
1218   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219     mandir=$ac_optarg ;;
1220
1221   -nfp | --nfp | --nf)
1222     # Obsolete; use --without-fp.
1223     with_fp=no ;;
1224
1225   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226   | --no-cr | --no-c | -n)
1227     no_create=yes ;;
1228
1229   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231     no_recursion=yes ;;
1232
1233   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235   | --oldin | --oldi | --old | --ol | --o)
1236     ac_prev=oldincludedir ;;
1237   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240     oldincludedir=$ac_optarg ;;
1241
1242   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243     ac_prev=prefix ;;
1244   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245     prefix=$ac_optarg ;;
1246
1247   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248   | --program-pre | --program-pr | --program-p)
1249     ac_prev=program_prefix ;;
1250   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252     program_prefix=$ac_optarg ;;
1253
1254   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255   | --program-suf | --program-su | --program-s)
1256     ac_prev=program_suffix ;;
1257   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259     program_suffix=$ac_optarg ;;
1260
1261   -program-transform-name | --program-transform-name \
1262   | --program-transform-nam | --program-transform-na \
1263   | --program-transform-n | --program-transform- \
1264   | --program-transform | --program-transfor \
1265   | --program-transfo | --program-transf \
1266   | --program-trans | --program-tran \
1267   | --progr-tra | --program-tr | --program-t)
1268     ac_prev=program_transform_name ;;
1269   -program-transform-name=* | --program-transform-name=* \
1270   | --program-transform-nam=* | --program-transform-na=* \
1271   | --program-transform-n=* | --program-transform-=* \
1272   | --program-transform=* | --program-transfor=* \
1273   | --program-transfo=* | --program-transf=* \
1274   | --program-trans=* | --program-tran=* \
1275   | --progr-tra=* | --program-tr=* | --program-t=*)
1276     program_transform_name=$ac_optarg ;;
1277
1278   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279     ac_prev=pdfdir ;;
1280   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281     pdfdir=$ac_optarg ;;
1282
1283   -psdir | --psdir | --psdi | --psd | --ps)
1284     ac_prev=psdir ;;
1285   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286     psdir=$ac_optarg ;;
1287
1288   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289   | -silent | --silent | --silen | --sile | --sil)
1290     silent=yes ;;
1291
1292   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293     ac_prev=sbindir ;;
1294   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295   | --sbi=* | --sb=*)
1296     sbindir=$ac_optarg ;;
1297
1298   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300   | --sharedst | --shareds | --shared | --share | --shar \
1301   | --sha | --sh)
1302     ac_prev=sharedstatedir ;;
1303   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306   | --sha=* | --sh=*)
1307     sharedstatedir=$ac_optarg ;;
1308
1309   -site | --site | --sit)
1310     ac_prev=site ;;
1311   -site=* | --site=* | --sit=*)
1312     site=$ac_optarg ;;
1313
1314   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315     ac_prev=srcdir ;;
1316   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317     srcdir=$ac_optarg ;;
1318
1319   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320   | --syscon | --sysco | --sysc | --sys | --sy)
1321     ac_prev=sysconfdir ;;
1322   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324     sysconfdir=$ac_optarg ;;
1325
1326   -target | --target | --targe | --targ | --tar | --ta | --t)
1327     ac_prev=target_alias ;;
1328   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329     target_alias=$ac_optarg ;;
1330
1331   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332     verbose=yes ;;
1333
1334   -version | --version | --versio | --versi | --vers | -V)
1335     ac_init_version=: ;;
1336
1337   -with-* | --with-*)
1338     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1342    { (exit 1); exit 1; }; }
1343     ac_useropt_orig=$ac_useropt
1344     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345     case $ac_user_opts in
1346       *"
1347 "with_$ac_useropt"
1348 "*) ;;
1349       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350          ac_unrecognized_sep=', ';;
1351     esac
1352     eval with_$ac_useropt=\$ac_optarg ;;
1353
1354   -without-* | --without-*)
1355     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1359    { (exit 1); exit 1; }; }
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=no ;;
1370
1371   --x)
1372     # Obsolete; use --with-x.
1373     with_x=yes ;;
1374
1375   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376   | --x-incl | --x-inc | --x-in | --x-i)
1377     ac_prev=x_includes ;;
1378   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380     x_includes=$ac_optarg ;;
1381
1382   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384     ac_prev=x_libraries ;;
1385   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387     x_libraries=$ac_optarg ;;
1388
1389   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1390 Try \`$0 --help' for more information." >&2
1391    { (exit 1); exit 1; }; }
1392     ;;
1393
1394   *=*)
1395     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396     # Reject names that are not valid shell variable names.
1397     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1398       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1399    { (exit 1); exit 1; }; }
1400     eval $ac_envvar=\$ac_optarg
1401     export $ac_envvar ;;
1402
1403   *)
1404     # FIXME: should be removed in autoconf 3.0.
1405     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1409     ;;
1410
1411   esac
1412 done
1413
1414 if test -n "$ac_prev"; then
1415   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1417    { (exit 1); exit 1; }; }
1418 fi
1419
1420 if test -n "$ac_unrecognized_opts"; then
1421   case $enable_option_checking in
1422     no) ;;
1423     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1424    { (exit 1); exit 1; }; } ;;
1425     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426   esac
1427 fi
1428
1429 # Check all directory arguments for consistency.
1430 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431                 datadir sysconfdir sharedstatedir localstatedir includedir \
1432                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433                 libdir localedir mandir
1434 do
1435   eval ac_val=\$$ac_var
1436   # Remove trailing slashes.
1437   case $ac_val in
1438     */ )
1439       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440       eval $ac_var=\$ac_val;;
1441   esac
1442   # Be sure to have absolute directory names.
1443   case $ac_val in
1444     [\\/$]* | ?:[\\/]* )  continue;;
1445     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446   esac
1447   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1448    { (exit 1); exit 1; }; }
1449 done
1450
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1454 build=$build_alias
1455 host=$host_alias
1456 target=$target_alias
1457
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460   if test "x$build_alias" = x; then
1461     cross_compiling=maybe
1462     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1463     If a cross compiler is detected then cross compile mode will be used." >&2
1464   elif test "x$build_alias" != "x$host_alias"; then
1465     cross_compiling=yes
1466   fi
1467 fi
1468
1469 ac_tool_prefix=
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
1472 test "$silent" = yes && exec 6>/dev/null
1473
1474
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1479    { (exit 1); exit 1; }; }
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1482    { (exit 1); exit 1; }; }
1483
1484
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487   ac_srcdir_defaulted=yes
1488   # Try the directory containing this script, then the parent directory.
1489   ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491          X"$as_myself" : 'X\(//\)[^/]' \| \
1492          X"$as_myself" : 'X\(//\)$' \| \
1493          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)[^/].*/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)$/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\).*/{
1508             s//\1/
1509             q
1510           }
1511           s/.*/./; q'`
1512   srcdir=$ac_confdir
1513   if test ! -r "$srcdir/$ac_unique_file"; then
1514     srcdir=..
1515   fi
1516 else
1517   ac_srcdir_defaulted=no
1518 fi
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1522    { (exit 1); exit 1; }; }
1523 fi
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 ac_abs_confdir=`(
1526         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1527    { (exit 1); exit 1; }; }
1528         pwd)`
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531   srcdir=.
1532 fi
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1536 case $srcdir in
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1538 esac
1539 for ac_var in $ac_precious_vars; do
1540   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541   eval ac_env_${ac_var}_value=\$${ac_var}
1542   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 done
1545
1546 #
1547 # Report the --help message.
1548 #
1549 if test "$ac_init_help" = "long"; then
1550   # Omit some internal or obsolete options to make the list less imposing.
1551   # This message is too long to be a string in the A/UX 3.1 sh.
1552   cat <<_ACEOF
1553 \`configure' configures libffi 3.0.10rc2 to adapt to many kinds of systems.
1554
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1556
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE.  See below for descriptions of some of the useful variables.
1559
1560 Defaults for the options are specified in brackets.
1561
1562 Configuration:
1563   -h, --help              display this help and exit
1564       --help=short        display options specific to this package
1565       --help=recursive    display the short help of all the included packages
1566   -V, --version           display version information and exit
1567   -q, --quiet, --silent   do not print \`checking...' messages
1568       --cache-file=FILE   cache test results in FILE [disabled]
1569   -C, --config-cache      alias for \`--cache-file=config.cache'
1570   -n, --no-create         do not create output files
1571       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1572
1573 Installation directories:
1574   --prefix=PREFIX         install architecture-independent files in PREFIX
1575                           [$ac_default_prefix]
1576   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1577                           [PREFIX]
1578
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1583
1584 For better control, use the options below.
1585
1586 Fine tuning of the installation directories:
1587   --bindir=DIR            user executables [EPREFIX/bin]
1588   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1589   --libexecdir=DIR        program executables [EPREFIX/libexec]
1590   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1591   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1592   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1593   --libdir=DIR            object code libraries [EPREFIX/lib]
1594   --includedir=DIR        C header files [PREFIX/include]
1595   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1596   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1597   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1598   --infodir=DIR           info documentation [DATAROOTDIR/info]
1599   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1600   --mandir=DIR            man documentation [DATAROOTDIR/man]
1601   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1602   --htmldir=DIR           html documentation [DOCDIR]
1603   --dvidir=DIR            dvi documentation [DOCDIR]
1604   --pdfdir=DIR            pdf documentation [DOCDIR]
1605   --psdir=DIR             ps documentation [DOCDIR]
1606 _ACEOF
1607
1608   cat <<\_ACEOF
1609
1610 Program names:
1611   --program-prefix=PREFIX            prepend PREFIX to installed program names
1612   --program-suffix=SUFFIX            append SUFFIX to installed program names
1613   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1614
1615 System types:
1616   --build=BUILD     configure for building on BUILD [guessed]
1617   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1618   --target=TARGET   configure for building compilers for TARGET [HOST]
1619 _ACEOF
1620 fi
1621
1622 if test -n "$ac_init_help"; then
1623   case $ac_init_help in
1624      short | recursive ) echo "Configuration of libffi 3.0.10rc2:";;
1625    esac
1626   cat <<\_ACEOF
1627
1628 Optional Features:
1629   --disable-option-checking  ignore unrecognized --enable/--with options
1630   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1631   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1632   --disable-dependency-tracking  speeds up one-time build
1633   --enable-dependency-tracking   do not reject slow dependency extractors
1634   --enable-shared[=PKGS]  build shared libraries [default=yes]
1635   --enable-static[=PKGS]  build static libraries [default=yes]
1636   --enable-fast-install[=PKGS]
1637                           optimize for fast installation [default=yes]
1638   --disable-libtool-lock  avoid locking (might break parallel builds)
1639   --enable-maintainer-mode  enable make rules and dependencies not useful
1640                           (and sometimes confusing) to the casual installer
1641   --enable-debug          debugging mode
1642   --disable-structs       omit code for struct support
1643   --disable-raw-api       make the raw api unavailable
1644   --enable-purify-safety  purify-safe mode
1645
1646 Optional Packages:
1647   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1648   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1649   --with-pic              try to use only PIC/non-PIC objects [default=use
1650                           both]
1651   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1652
1653 Some influential environment variables:
1654   CC          C compiler command
1655   CFLAGS      C compiler flags
1656   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1657               nonstandard directory <lib dir>
1658   LIBS        libraries to pass to the linker, e.g. -l<library>
1659   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660               you have headers in a nonstandard directory <include dir>
1661   CCAS        assembler compiler command (defaults to CC)
1662   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1663   CPP         C preprocessor
1664
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1667
1668 Report bugs to <http://gcc.gnu.org/bugs.html>.
1669 _ACEOF
1670 ac_status=$?
1671 fi
1672
1673 if test "$ac_init_help" = "recursive"; then
1674   # If there are subdirs, report their specific --help.
1675   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676     test -d "$ac_dir" ||
1677       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678       continue
1679     ac_builddir=.
1680
1681 case "$ac_dir" in
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *)
1684   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685   # A ".." for each directory in $ac_dir_suffix.
1686   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687   case $ac_top_builddir_sub in
1688   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690   esac ;;
1691 esac
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1696
1697 case $srcdir in
1698   .)  # We are building in place.
1699     ac_srcdir=.
1700     ac_top_srcdir=$ac_top_builddir_sub
1701     ac_abs_top_srcdir=$ac_pwd ;;
1702   [\\/]* | ?:[\\/]* )  # Absolute name.
1703     ac_srcdir=$srcdir$ac_dir_suffix;
1704     ac_top_srcdir=$srcdir
1705     ac_abs_top_srcdir=$srcdir ;;
1706   *) # Relative name.
1707     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708     ac_top_srcdir=$ac_top_build_prefix$srcdir
1709     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1710 esac
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712
1713     cd "$ac_dir" || { ac_status=$?; continue; }
1714     # Check for guested configure.
1715     if test -f "$ac_srcdir/configure.gnu"; then
1716       echo &&
1717       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718     elif test -f "$ac_srcdir/configure"; then
1719       echo &&
1720       $SHELL "$ac_srcdir/configure" --help=recursive
1721     else
1722       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1723     fi || ac_status=$?
1724     cd "$ac_pwd" || { ac_status=$?; break; }
1725   done
1726 fi
1727
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1730   cat <<\_ACEOF
1731 libffi configure 3.0.10rc2
1732 generated by GNU Autoconf 2.63
1733
1734 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1735 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1736 This configure script is free software; the Free Software Foundation
1737 gives unlimited permission to copy, distribute and modify it.
1738 _ACEOF
1739   exit
1740 fi
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1744
1745 It was created by libffi $as_me 3.0.10rc2, which was
1746 generated by GNU Autoconf 2.63.  Invocation command line was
1747
1748   $ $0 $@
1749
1750 _ACEOF
1751 exec 5>>config.log
1752 {
1753 cat <<_ASUNAME
1754 ## --------- ##
1755 ## Platform. ##
1756 ## --------- ##
1757
1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1766
1767 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1768 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1771 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1772 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1773 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1774
1775 _ASUNAME
1776
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780   IFS=$as_save_IFS
1781   test -z "$as_dir" && as_dir=.
1782   $as_echo "PATH: $as_dir"
1783 done
1784 IFS=$as_save_IFS
1785
1786 } >&5
1787
1788 cat >&5 <<_ACEOF
1789
1790
1791 ## ----------- ##
1792 ## Core tests. ##
1793 ## ----------- ##
1794
1795 _ACEOF
1796
1797
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1803 ac_configure_args=
1804 ac_configure_args0=
1805 ac_configure_args1=
1806 ac_must_keep_next=false
1807 for ac_pass in 1 2
1808 do
1809   for ac_arg
1810   do
1811     case $ac_arg in
1812     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814     | -silent | --silent | --silen | --sile | --sil)
1815       continue ;;
1816     *\'*)
1817       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818     esac
1819     case $ac_pass in
1820     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1821     2)
1822       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823       if test $ac_must_keep_next = true; then
1824         ac_must_keep_next=false # Got value, back to normal.
1825       else
1826         case $ac_arg in
1827           *=* | --config-cache | -C | -disable-* | --disable-* \
1828           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830           | -with-* | --with-* | -without-* | --without-* | --x)
1831             case "$ac_configure_args0 " in
1832               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833             esac
1834             ;;
1835           -* ) ac_must_keep_next=true ;;
1836         esac
1837       fi
1838       ac_configure_args="$ac_configure_args '$ac_arg'"
1839       ;;
1840     esac
1841   done
1842 done
1843 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1845
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log.  We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852   # Save into config.log some information that might help in debugging.
1853   {
1854     echo
1855
1856     cat <<\_ASBOX
1857 ## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##
1860 _ASBOX
1861     echo
1862     # The following way of writing the cache mishandles newlines in values,
1863 (
1864   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865     eval ac_val=\$$ac_var
1866     case $ac_val in #(
1867     *${as_nl}*)
1868       case $ac_var in #(
1869       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871       esac
1872       case $ac_var in #(
1873       _ | IFS | as_nl) ;; #(
1874       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875       *) $as_unset $ac_var ;;
1876       esac ;;
1877     esac
1878   done
1879   (set) 2>&1 |
1880     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881     *${as_nl}ac_space=\ *)
1882       sed -n \
1883         "s/'\''/'\''\\\\'\'''\''/g;
1884           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885       ;; #(
1886     *)
1887       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888       ;;
1889     esac |
1890     sort
1891 )
1892     echo
1893
1894     cat <<\_ASBOX
1895 ## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##
1898 _ASBOX
1899     echo
1900     for ac_var in $ac_subst_vars
1901     do
1902       eval ac_val=\$$ac_var
1903       case $ac_val in
1904       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905       esac
1906       $as_echo "$ac_var='\''$ac_val'\''"
1907     done | sort
1908     echo
1909
1910     if test -n "$ac_subst_files"; then
1911       cat <<\_ASBOX
1912 ## ------------------- ##
1913 ## File substitutions. ##
1914 ## ------------------- ##
1915 _ASBOX
1916       echo
1917       for ac_var in $ac_subst_files
1918       do
1919         eval ac_val=\$$ac_var
1920         case $ac_val in
1921         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922         esac
1923         $as_echo "$ac_var='\''$ac_val'\''"
1924       done | sort
1925       echo
1926     fi
1927
1928     if test -s confdefs.h; then
1929       cat <<\_ASBOX
1930 ## ----------- ##
1931 ## confdefs.h. ##
1932 ## ----------- ##
1933 _ASBOX
1934       echo
1935       cat confdefs.h
1936       echo
1937     fi
1938     test "$ac_signal" != 0 &&
1939       $as_echo "$as_me: caught signal $ac_signal"
1940     $as_echo "$as_me: exit $exit_status"
1941   } >&5
1942   rm -f core *.core core.conftest.* &&
1943     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944     exit $exit_status
1945 ' 0
1946 for ac_signal in 1 2 13 15; do
1947   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1948 done
1949 ac_signal=0
1950
1951 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1952 rm -f -r conftest* confdefs.h
1953
1954 # Predefined preprocessor variables.
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1958 _ACEOF
1959
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963 _ACEOF
1964
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1968 _ACEOF
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_STRING "$PACKAGE_STRING"
1973 _ACEOF
1974
1975
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1978 _ACEOF
1979
1980
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1983 ac_site_file1=NONE
1984 ac_site_file2=NONE
1985 if test -n "$CONFIG_SITE"; then
1986   ac_site_file1=$CONFIG_SITE
1987 elif test "x$prefix" != xNONE; then
1988   ac_site_file1=$prefix/share/config.site
1989   ac_site_file2=$prefix/etc/config.site
1990 else
1991   ac_site_file1=$ac_default_prefix/share/config.site
1992   ac_site_file2=$ac_default_prefix/etc/config.site
1993 fi
1994 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1995 do
1996   test "x$ac_site_file" = xNONE && continue
1997   if test -r "$ac_site_file"; then
1998     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1999 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2000     sed 's/^/| /' "$ac_site_file" >&5
2001     . "$ac_site_file"
2002   fi
2003 done
2004
2005 if test -r "$cache_file"; then
2006   # Some versions of bash will fail to source /dev/null (special
2007   # files actually), so we avoid doing that.
2008   if test -f "$cache_file"; then
2009     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2010 $as_echo "$as_me: loading cache $cache_file" >&6;}
2011     case $cache_file in
2012       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013       *)                      . "./$cache_file";;
2014     esac
2015   fi
2016 else
2017   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2018 $as_echo "$as_me: creating cache $cache_file" >&6;}
2019   >$cache_file
2020 fi
2021
2022 # Check that the precious variables saved in the cache have kept the same
2023 # value.
2024 ac_cache_corrupted=false
2025 for ac_var in $ac_precious_vars; do
2026   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027   eval ac_new_set=\$ac_env_${ac_var}_set
2028   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029   eval ac_new_val=\$ac_env_${ac_var}_value
2030   case $ac_old_set,$ac_new_set in
2031     set,)
2032       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034       ac_cache_corrupted=: ;;
2035     ,set)
2036       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038       ac_cache_corrupted=: ;;
2039     ,);;
2040     *)
2041       if test "x$ac_old_val" != "x$ac_new_val"; then
2042         # differences in whitespace do not lead to failure.
2043         ac_old_val_w=`echo x $ac_old_val`
2044         ac_new_val_w=`echo x $ac_new_val`
2045         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048           ac_cache_corrupted=:
2049         else
2050           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052           eval $ac_var=\$ac_old_val
2053         fi
2054         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2055 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2056         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2057 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2058       fi;;
2059   esac
2060   # Pass precious variables to config.status.
2061   if test "$ac_new_set" = set; then
2062     case $ac_new_val in
2063     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064     *) ac_arg=$ac_var=$ac_new_val ;;
2065     esac
2066     case " $ac_configure_args " in
2067       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2068       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2069     esac
2070   fi
2071 done
2072 if $ac_cache_corrupted; then
2073   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2078 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2079    { (exit 1); exit 1; }; }
2080 fi
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113 ac_config_headers="$ac_config_headers fficonfig.h"
2114
2115
2116 ac_aux_dir=
2117 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2118   if 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/install.sh"; then
2123     ac_aux_dir=$ac_dir
2124     ac_install_sh="$ac_aux_dir/install.sh -c"
2125     break
2126   elif test -f "$ac_dir/shtool"; then
2127     ac_aux_dir=$ac_dir
2128     ac_install_sh="$ac_aux_dir/shtool install -c"
2129     break
2130   fi
2131 done
2132 if test -z "$ac_aux_dir"; then
2133   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2134 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2135    { (exit 1); exit 1; }; }
2136 fi
2137
2138 # These three variables are undocumented and unsupported,
2139 # and are intended to be withdrawn in a future Autoconf release.
2140 # They can cause serious problems if a builder's source tree is in a directory
2141 # whose full name contains unusual characters.
2142 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2143 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2144 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2145
2146
2147 # Make sure we can run config.sub.
2148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2149   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2151    { (exit 1); exit 1; }; }
2152
2153 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2154 $as_echo_n "checking build system type... " >&6; }
2155 if test "${ac_cv_build+set}" = set; then
2156   $as_echo_n "(cached) " >&6
2157 else
2158   ac_build_alias=$build_alias
2159 test "x$ac_build_alias" = x &&
2160   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161 test "x$ac_build_alias" = x &&
2162   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164    { (exit 1); exit 1; }; }
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2168    { (exit 1); exit 1; }; }
2169
2170 fi
2171 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 $as_echo "$ac_cv_build" >&6; }
2173 case $ac_cv_build in
2174 *-*-*) ;;
2175 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2177    { (exit 1); exit 1; }; };;
2178 esac
2179 build=$ac_cv_build
2180 ac_save_IFS=$IFS; IFS='-'
2181 set x $ac_cv_build
2182 shift
2183 build_cpu=$1
2184 build_vendor=$2
2185 shift; shift
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2188 build_os=$*
2189 IFS=$ac_save_IFS
2190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2191
2192
2193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2194 $as_echo_n "checking host system type... " >&6; }
2195 if test "${ac_cv_host+set}" = set; then
2196   $as_echo_n "(cached) " >&6
2197 else
2198   if test "x$host_alias" = x; then
2199   ac_cv_host=$ac_cv_build
2200 else
2201   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2202     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2204    { (exit 1); exit 1; }; }
2205 fi
2206
2207 fi
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 $as_echo "$ac_cv_host" >&6; }
2210 case $ac_cv_host in
2211 *-*-*) ;;
2212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2214    { (exit 1); exit 1; }; };;
2215 esac
2216 host=$ac_cv_host
2217 ac_save_IFS=$IFS; IFS='-'
2218 set x $ac_cv_host
2219 shift
2220 host_cpu=$1
2221 host_vendor=$2
2222 shift; shift
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2225 host_os=$*
2226 IFS=$ac_save_IFS
2227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2228
2229
2230 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2231 $as_echo_n "checking target system type... " >&6; }
2232 if test "${ac_cv_target+set}" = set; then
2233   $as_echo_n "(cached) " >&6
2234 else
2235   if test "x$target_alias" = x; then
2236   ac_cv_target=$ac_cv_host
2237 else
2238   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2239     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2241    { (exit 1); exit 1; }; }
2242 fi
2243
2244 fi
2245 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2248 *-*-*) ;;
2249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2251    { (exit 1); exit 1; }; };;
2252 esac
2253 target=$ac_cv_target
2254 ac_save_IFS=$IFS; IFS='-'
2255 set x $ac_cv_target
2256 shift
2257 target_cpu=$1
2258 target_vendor=$2
2259 shift; shift
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2262 target_os=$*
2263 IFS=$ac_save_IFS
2264 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2265
2266
2267 # The aliases save the names the user supplied, while $host etc.
2268 # will get canonicalized.
2269 test -n "$target_alias" &&
2270   test "$program_prefix$program_suffix$program_transform_name" = \
2271     NONENONEs,x,x, &&
2272   program_prefix=${target_alias}-
2273 target_alias=${target_alias-$host_alias}
2274
2275 . ${srcdir}/configure.host
2276
2277 am__api_version='1.11'
2278
2279 # Find a good install program.  We prefer a C program (faster),
2280 # so one script is as good as another.  But avoid the broken or
2281 # incompatible versions:
2282 # SysV /etc/install, /usr/sbin/install
2283 # SunOS /usr/etc/install
2284 # IRIX /sbin/install
2285 # AIX /bin/install
2286 # AmigaOS /C/install, which installs bootblocks on floppy discs
2287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2290 # OS/2's system install, which has a completely different semantic
2291 # ./install, which can be erroneously created by make from ./install.sh.
2292 # Reject install programs that cannot install multiple files.
2293 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2294 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2295 if test -z "$INSTALL"; then
2296 if test "${ac_cv_path_install+set}" = set; then
2297   $as_echo_n "(cached) " >&6
2298 else
2299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   # Account for people who put trailing slashes in PATH elements.
2305 case $as_dir/ in
2306   ./ | .// | /cC/* | \
2307   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2308   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2309   /usr/ucb/* ) ;;
2310   *)
2311     # OSF1 and SCO ODT 3.0 have their own names for install.
2312     # Don't use installbsd from OSF since it installs stuff as root
2313     # by default.
2314     for ac_prog in ginstall scoinst install; do
2315       for ac_exec_ext in '' $ac_executable_extensions; do
2316         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2317           if test $ac_prog = install &&
2318             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319             # AIX install.  It has an incompatible calling convention.
2320             :
2321           elif test $ac_prog = install &&
2322             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323             # program-specific install script used by HP pwplus--don't use.
2324             :
2325           else
2326             rm -rf conftest.one conftest.two conftest.dir
2327             echo one > conftest.one
2328             echo two > conftest.two
2329             mkdir conftest.dir
2330             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2331               test -s conftest.one && test -s conftest.two &&
2332               test -s conftest.dir/conftest.one &&
2333               test -s conftest.dir/conftest.two
2334             then
2335               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2336               break 3
2337             fi
2338           fi
2339         fi
2340       done
2341     done
2342     ;;
2343 esac
2344
2345 done
2346 IFS=$as_save_IFS
2347
2348 rm -rf conftest.one conftest.two conftest.dir
2349
2350 fi
2351   if test "${ac_cv_path_install+set}" = set; then
2352     INSTALL=$ac_cv_path_install
2353   else
2354     # As a last resort, use the slow shell script.  Don't cache a
2355     # value for INSTALL within a source directory, because that will
2356     # break other packages using the cache if that directory is
2357     # removed, or if the value is a relative name.
2358     INSTALL=$ac_install_sh
2359   fi
2360 fi
2361 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2362 $as_echo "$INSTALL" >&6; }
2363
2364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2365 # It thinks the first close brace ends the variable substitution.
2366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367
2368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369
2370 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371
2372 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2373 $as_echo_n "checking whether build environment is sane... " >&6; }
2374 # Just in case
2375 sleep 1
2376 echo timestamp > conftest.file
2377 # Reject unsafe characters in $srcdir or the absolute working directory
2378 # name.  Accept space and tab only in the latter.
2379 am_lf='
2380 '
2381 case `pwd` in
2382   *[\\\"\#\$\&\'\`$am_lf]*)
2383     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2384 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2385    { (exit 1); exit 1; }; };;
2386 esac
2387 case $srcdir in
2388   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2389     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2390 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2391    { (exit 1); exit 1; }; };;
2392 esac
2393
2394 # Do `set' in a subshell so we don't clobber the current shell's
2395 # arguments.  Must try -L first in case configure is actually a
2396 # symlink; some systems play weird games with the mod time of symlinks
2397 # (eg FreeBSD returns the mod time of the symlink's containing
2398 # directory).
2399 if (
2400    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2401    if test "$*" = "X"; then
2402       # -L didn't work.
2403       set X `ls -t "$srcdir/configure" conftest.file`
2404    fi
2405    rm -f conftest.file
2406    if test "$*" != "X $srcdir/configure conftest.file" \
2407       && test "$*" != "X conftest.file $srcdir/configure"; then
2408
2409       # If neither matched, then we have a broken ls.  This can happen
2410       # if, for instance, CONFIG_SHELL is bash and it inherits a
2411       # broken ls alias from the environment.  This has actually
2412       # happened.  Such a system could not be considered "sane".
2413       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2414 alias in your environment" >&5
2415 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2416 alias in your environment" >&2;}
2417    { (exit 1); exit 1; }; }
2418    fi
2419
2420    test "$2" = conftest.file
2421    )
2422 then
2423    # Ok.
2424    :
2425 else
2426    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2427 Check your system clock" >&5
2428 $as_echo "$as_me: error: newly created file is older than distributed files!
2429 Check your system clock" >&2;}
2430    { (exit 1); exit 1; }; }
2431 fi
2432 { $as_echo "$as_me:$LINENO: result: yes" >&5
2433 $as_echo "yes" >&6; }
2434 test "$program_prefix" != NONE &&
2435   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436 # Use a double $ so make ignores it.
2437 test "$program_suffix" != NONE &&
2438   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439 # Double any \ or $.
2440 # By default was `s,x,x', remove it if useless.
2441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2443
2444 # expand $ac_aux_dir to an absolute path
2445 am_aux_dir=`cd $ac_aux_dir && pwd`
2446
2447 if test x"${MISSING+set}" != xset; then
2448   case $am_aux_dir in
2449   *\ * | *\     *)
2450     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2451   *)
2452     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2453   esac
2454 fi
2455 # Use eval to expand $SHELL
2456 if eval "$MISSING --run true"; then
2457   am_missing_run="$MISSING --run "
2458 else
2459   am_missing_run=
2460   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 fi
2463
2464 if test x"${install_sh}" != xset; then
2465   case $am_aux_dir in
2466   *\ * | *\     *)
2467     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2468   *)
2469     install_sh="\${SHELL} $am_aux_dir/install-sh"
2470   esac
2471 fi
2472
2473 # Installed binaries are usually stripped using `strip' when the user
2474 # run `make install-strip'.  However `strip' might not be the right
2475 # tool to use in cross-compilation environments, therefore Automake
2476 # will honor the `STRIP' environment variable to overrule this program.
2477 if test "$cross_compiling" != no; then
2478   if test -n "$ac_tool_prefix"; then
2479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}strip; ac_word=$2
2481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if test "${ac_cv_prog_STRIP+set}" = set; then
2484   $as_echo_n "(cached) " >&6
2485 else
2486   if test -n "$STRIP"; then
2487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 STRIP=$ac_cv_prog_STRIP
2507 if test -n "$STRIP"; then
2508   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2509 $as_echo "$STRIP" >&6; }
2510 else
2511   { $as_echo "$as_me:$LINENO: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_STRIP"; then
2518   ac_ct_STRIP=$STRIP
2519   # Extract the first word of "strip", so it can be a program name with args.
2520 set dummy strip; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2524   $as_echo_n "(cached) " >&6
2525 else
2526   if test -n "$ac_ct_STRIP"; then
2527   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532   IFS=$as_save_IFS
2533   test -z "$as_dir" && as_dir=.
2534   for ac_exec_ext in '' $ac_executable_extensions; do
2535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536     ac_cv_prog_ac_ct_STRIP="strip"
2537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538     break 2
2539   fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2547 if test -n "$ac_ct_STRIP"; then
2548   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2549 $as_echo "$ac_ct_STRIP" >&6; }
2550 else
2551   { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555   if test "x$ac_ct_STRIP" = x; then
2556     STRIP=":"
2557   else
2558     case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564     STRIP=$ac_ct_STRIP
2565   fi
2566 else
2567   STRIP="$ac_cv_prog_STRIP"
2568 fi
2569
2570 fi
2571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2572
2573 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2575 if test -z "$MKDIR_P"; then
2576   if test "${ac_cv_path_mkdir+set}" = set; then
2577   $as_echo_n "(cached) " >&6
2578 else
2579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_prog in mkdir gmkdir; do
2585          for ac_exec_ext in '' $ac_executable_extensions; do
2586            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2587            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2588              'mkdir (GNU coreutils) '* | \
2589              'mkdir (coreutils) '* | \
2590              'mkdir (fileutils) '4.1*)
2591                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2592                break 3;;
2593            esac
2594          done
2595        done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600
2601   if test "${ac_cv_path_mkdir+set}" = set; then
2602     MKDIR_P="$ac_cv_path_mkdir -p"
2603   else
2604     # As a last resort, use the slow shell script.  Don't cache a
2605     # value for MKDIR_P within a source directory, because that will
2606     # break other packages using the cache if that directory is
2607     # removed, or if the value is a relative name.
2608     test -d ./--version && rmdir ./--version
2609     MKDIR_P="$ac_install_sh -d"
2610   fi
2611 fi
2612 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2613 $as_echo "$MKDIR_P" >&6; }
2614
2615 mkdir_p="$MKDIR_P"
2616 case $mkdir_p in
2617   [\\/$]* | ?:[\\/]*) ;;
2618   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2619 esac
2620
2621 for ac_prog in gawk mawk nawk awk
2622 do
2623   # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test -n "$AWK"; then
2631   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_AWK="$ac_prog"
2641     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 AWK=$ac_cv_prog_AWK
2651 if test -n "$AWK"; then
2652   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2654 else
2655   { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660   test -n "$AWK" && break
2661 done
2662
2663 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2665 set x ${MAKE-make}
2666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2668   $as_echo_n "(cached) " >&6
2669 else
2670   cat >conftest.make <<\_ACEOF
2671 SHELL = /bin/sh
2672 all:
2673         @echo '@@@%%%=$(MAKE)=@@@%%%'
2674 _ACEOF
2675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2677   *@@@%%%=?*=@@@%%%*)
2678     eval ac_cv_prog_make_${ac_make}_set=yes;;
2679   *)
2680     eval ac_cv_prog_make_${ac_make}_set=no;;
2681 esac
2682 rm -f conftest.make
2683 fi
2684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2685   { $as_echo "$as_me:$LINENO: result: yes" >&5
2686 $as_echo "yes" >&6; }
2687   SET_MAKE=
2688 else
2689   { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691   SET_MAKE="MAKE=${MAKE-make}"
2692 fi
2693
2694 rm -rf .tst 2>/dev/null
2695 mkdir .tst 2>/dev/null
2696 if test -d .tst; then
2697   am__leading_dot=.
2698 else
2699   am__leading_dot=_
2700 fi
2701 rmdir .tst 2>/dev/null
2702
2703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2704   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2705   # is not polluted with repeated "-I."
2706   am__isrc=' -I$(srcdir)'
2707   # test to see if srcdir already configured
2708   if test -f $srcdir/config.status; then
2709     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2710 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2711    { (exit 1); exit 1; }; }
2712   fi
2713 fi
2714
2715 # test whether we have cygpath
2716 if test -z "$CYGPATH_W"; then
2717   if (cygpath --version) >/dev/null 2>/dev/null; then
2718     CYGPATH_W='cygpath -w'
2719   else
2720     CYGPATH_W=echo
2721   fi
2722 fi
2723
2724
2725 # Define the identity of the package.
2726  PACKAGE='libffi'
2727  VERSION='3.0.10rc2'
2728
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE "$PACKAGE"
2732 _ACEOF
2733
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define VERSION "$VERSION"
2737 _ACEOF
2738
2739 # Some tools Automake needs.
2740
2741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2742
2743
2744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2745
2746
2747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2748
2749
2750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2751
2752
2753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2754
2755 # We need awk for the "check" target.  The system "awk" is bad on
2756 # some platforms.
2757 # Always define AMTAR for backward compatibility.
2758
2759 AMTAR=${AMTAR-"${am_missing_run}tar"}
2760
2761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2762
2763
2764
2765
2766
2767
2768 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2769 # We must force CC to /not/ be precious variables; otherwise
2770 # the wrong, non-multilib-adjusted value will be used in multilibs.
2771 # As a side effect, we have to subst CFLAGS ourselves.
2772 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
2773 # defaults of its own if none are provided.
2774
2775
2776
2777 save_CFLAGS=$CFLAGS
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if test -n "$CC"; then
2792   ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799   for ac_exec_ext in '' $ac_executable_extensions; do
2800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816   { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_CC"; then
2823   ac_ct_CC=$CC
2824   # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$ac_ct_CC"; then
2832   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_ac_ct_CC="gcc"
2842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856   { $as_echo "$as_me:$LINENO: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860   if test "x$ac_ct_CC" = x; then
2861     CC=""
2862   else
2863     case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869     CC=$ac_ct_CC
2870   fi
2871 else
2872   CC="$ac_cv_prog_CC"
2873 fi
2874
2875 if test -z "$CC"; then
2876           if test -n "$ac_tool_prefix"; then
2877     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882   $as_echo_n "(cached) " >&6
2883 else
2884   if test -n "$CC"; then
2885   ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     ac_cv_prog_CC="${ac_tool_prefix}cc"
2895     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909   { $as_echo "$as_me:$LINENO: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914   fi
2915 fi
2916 if test -z "$CC"; then
2917   # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922   $as_echo_n "(cached) " >&6
2923 else
2924   if test -n "$CC"; then
2925   ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927   ac_prog_rejected=no
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933   for ac_exec_ext in '' $ac_executable_extensions; do
2934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936        ac_prog_rejected=yes
2937        continue
2938      fi
2939     ac_cv_prog_CC="cc"
2940     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 if test $ac_prog_rejected = yes; then
2948   # We found a bogon in the path, so make sure we never use it.
2949   set dummy $ac_cv_prog_CC
2950   shift
2951   if test $# != 0; then
2952     # We chose a different compiler from the bogus one.
2953     # However, it has the same basename, so the bogon will be chosen
2954     # first if we set CC to just the basename; use the full file name.
2955     shift
2956     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957   fi
2958 fi
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966   { $as_echo "$as_me:$LINENO: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$CC"; then
2973   if test -n "$ac_tool_prefix"; then
2974   for ac_prog in cl.exe
2975   do
2976     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then
2981   $as_echo_n "(cached) " >&6
2982 else
2983   if test -n "$CC"; then
2984   ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008   { $as_echo "$as_me:$LINENO: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013     test -n "$CC" && break
3014   done
3015 fi
3016 if test -z "$CC"; then
3017   ac_ct_CC=$CC
3018   for ac_prog in cl.exe
3019 do
3020   # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if test -n "$ac_ct_CC"; then
3028   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035   for ac_exec_ext in '' $ac_executable_extensions; do
3036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037     ac_cv_prog_ac_ct_CC="$ac_prog"
3038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052   { $as_echo "$as_me:$LINENO: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057   test -n "$ac_ct_CC" && break
3058 done
3059
3060   if test "x$ac_ct_CC" = x; then
3061     CC=""
3062   else
3063     case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069     CC=$ac_ct_CC
3070   fi
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&5
3080 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details." >&2;}
3082    { (exit 1); exit 1; }; }; }
3083
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 { (ac_try="$ac_compiler --version >&5"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095   (eval "$ac_compiler --version >&5") 2>&5
3096   ac_status=$?
3097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }
3099 { (ac_try="$ac_compiler -v >&5"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3105 $as_echo "$ac_try_echo") >&5
3106   (eval "$ac_compiler -v >&5") 2>&5
3107   ac_status=$?
3108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }
3110 { (ac_try="$ac_compiler -V >&5"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3116 $as_echo "$ac_try_echo") >&5
3117   (eval "$ac_compiler -V >&5") 2>&5
3118   ac_status=$?
3119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }
3121
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3141 # of exeext.
3142 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3145
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148
3149 ac_rmfiles=
3150 for ac_file in $ac_files
3151 do
3152   case $ac_file in
3153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155   esac
3156 done
3157 rm -f $ac_rmfiles
3158
3159 if { (ac_try="$ac_link_default"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166   (eval "$ac_link_default") 2>&5
3167   ac_status=$?
3168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; then
3170   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3174 # Autoconf.
3175 for ac_file in $ac_files ''
3176 do
3177   test -f "$ac_file" || continue
3178   case $ac_file in
3179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3180         ;;
3181     [ab].out )
3182         # We found the default executable, but exeext='' is most
3183         # certainly right.
3184         break;;
3185     *.* )
3186         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187         then :; else
3188            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189         fi
3190         # We set ac_cv_exeext here because the later test for it is not
3191         # safe: cross compilers may not add the suffix if given an `-o'
3192         # argument, so we may need to know it at that point already.
3193         # Even if this section looks crufty: it has the advantage of
3194         # actually working.
3195         break;;
3196     * )
3197         break;;
3198   esac
3199 done
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
3202 else
3203   ac_file=''
3204 fi
3205
3206 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 if test -z "$ac_file"; then
3209   $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&5
3216 $as_echo "$as_me: error: C compiler cannot create executables
3217 See \`config.log' for more details." >&2;}
3218    { (exit 77); exit 77; }; }; }
3219 fi
3220
3221 ac_exeext=$ac_cv_exeext
3222
3223 # Check that the compiler produces executables we can run.  If not, either
3224 # the compiler is broken, or we cross compile.
3225 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3228 # If not cross compiling, check that we can run a simple program.
3229 if test "$cross_compiling" != yes; then
3230   if { ac_try='./$ac_file'
3231   { (case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237   (eval "$ac_try") 2>&5
3238   ac_status=$?
3239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241     cross_compiling=no
3242   else
3243     if test "$cross_compiling" = maybe; then
3244         cross_compiling=yes
3245     else
3246         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: cannot run C compiled programs.
3252 If you meant to cross compile, use \`--host'.
3253 See \`config.log' for more details." >&2;}
3254    { (exit 1); exit 1; }; }; }
3255     fi
3256   fi
3257 fi
3258 { $as_echo "$as_me:$LINENO: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260
3261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3262 ac_clean_files=$ac_clean_files_save
3263 # Check that the compiler produces executables we can run.  If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3269
3270 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3271 $as_echo_n "checking for suffix of executables... " >&6; }
3272 if { (ac_try="$ac_link"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279   (eval "$ac_link") 2>&5
3280   ac_status=$?
3281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; then
3283   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3284 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3285 # work properly (i.e., refer to `conftest.exe'), while it won't with
3286 # `rm'.
3287 for ac_file in conftest.exe conftest conftest.*; do
3288   test -f "$ac_file" || continue
3289   case $ac_file in
3290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292           break;;
3293     * ) break;;
3294   esac
3295 done
3296 else
3297   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details." >&5
3301 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details." >&2;}
3303    { (exit 1); exit 1; }; }; }
3304 fi
3305
3306 rm -f conftest$ac_cv_exeext
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3308 $as_echo "$ac_cv_exeext" >&6; }
3309
3310 rm -f conftest.$ac_ext
3311 EXEEXT=$ac_cv_exeext
3312 ac_exeext=$EXEEXT
3313 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if test "${ac_cv_objext+set}" = set; then
3316   $as_echo_n "(cached) " >&6
3317 else
3318   cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.o conftest.obj
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341   (eval "$ac_compile") 2>&5
3342   ac_status=$?
3343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; then
3345   for ac_file in conftest.o conftest.obj conftest.*; do
3346   test -f "$ac_file" || continue;
3347   case $ac_file in
3348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350        break;;
3351   esac
3352 done
3353 else
3354   $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details." >&5
3361 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362 See \`config.log' for more details." >&2;}
3363    { (exit 1); exit 1; }; }; }
3364 fi
3365
3366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367 fi
3368 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369 $as_echo "$ac_cv_objext" >&6; }
3370 OBJEXT=$ac_cv_objext
3371 ac_objext=$OBJEXT
3372 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375   $as_echo_n "(cached) " >&6
3376 else
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387 #ifndef __GNUC__
3388        choke me
3389 #endif
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } && {
3410          test -z "$ac_c_werror_flag" ||
3411          test ! -s conftest.err
3412        } && test -s conftest.$ac_objext; then
3413   ac_compiler_gnu=yes
3414 else
3415   $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418         ac_compiler_gnu=no
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3423
3424 fi
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3426 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3427 if test $ac_compiler_gnu = yes; then
3428   GCC=yes
3429 else
3430   GCC=
3431 fi
3432 ac_test_CFLAGS=${CFLAGS+set}
3433 ac_save_CFLAGS=$CFLAGS
3434 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3436 if test "${ac_cv_prog_cc_g+set}" = set; then
3437   $as_echo_n "(cached) " >&6
3438 else
3439   ac_save_c_werror_flag=$ac_c_werror_flag
3440    ac_c_werror_flag=yes
3441    ac_cv_prog_cc_g=no
3442    CFLAGS="-g"
3443    cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h.  */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466   (eval "$ac_compile") 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } && {
3473          test -z "$ac_c_werror_flag" ||
3474          test ! -s conftest.err
3475        } && test -s conftest.$ac_objext; then
3476   ac_cv_prog_cc_g=yes
3477 else
3478   $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481         CFLAGS=""
3482       cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505   (eval "$ac_compile") 2>conftest.er1
3506   ac_status=$?
3507   grep -v '^ *+' conftest.er1 >conftest.err
3508   rm -f conftest.er1
3509   cat conftest.err >&5
3510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } && {
3512          test -z "$ac_c_werror_flag" ||
3513          test ! -s conftest.err
3514        } && test -s conftest.$ac_objext; then
3515   :
3516 else
3517   $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520         ac_c_werror_flag=$ac_save_c_werror_flag
3521          CFLAGS="-g"
3522          cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3544 $as_echo "$ac_try_echo") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } && {
3552          test -z "$ac_c_werror_flag" ||
3553          test ! -s conftest.err
3554        } && test -s conftest.$ac_objext; then
3555   ac_cv_prog_cc_g=yes
3556 else
3557   $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560
3561 fi
3562
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 fi
3565
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570    ac_c_werror_flag=$ac_save_c_werror_flag
3571 fi
3572 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575   CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577   if test "$GCC" = yes; then
3578     CFLAGS="-g -O2"
3579   else
3580     CFLAGS="-g"
3581   fi
3582 else
3583   if test "$GCC" = yes; then
3584     CFLAGS="-O2"
3585   else
3586     CFLAGS=
3587   fi
3588 fi
3589 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #include <stdarg.h>
3603 #include <stdio.h>
3604 #include <sys/types.h>
3605 #include <sys/stat.h>
3606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3607 struct buf { int x; };
3608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609 static char *e (p, i)
3610      char **p;
3611      int i;
3612 {
3613   return p[i];
3614 }
3615 static char *f (char * (*g) (char **, int), char **p, ...)
3616 {
3617   char *s;
3618   va_list v;
3619   va_start (v,p);
3620   s = g (p, va_arg (v,int));
3621   va_end (v);
3622   return s;
3623 }
3624
3625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3626    function prototypes and stuff, but not '\xHH' hex character constants.
3627    These don't provoke an error unfortunately, instead are silently treated
3628    as 'x'.  The following induces an error, until -std is added to get
3629    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3630    array size at least.  It's necessary to write '\x00'==0 to get something
3631    that's true only with -std.  */
3632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633
3634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3635    inside strings and character constants.  */
3636 #define FOO(x) 'x'
3637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643 int argc;
3644 char **argv;
3645 int
3646 main ()
3647 {
3648 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655 do
3656   CC="$ac_save_CC $ac_arg"
3657   rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665   (eval "$ac_compile") 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } && {
3672          test -z "$ac_c_werror_flag" ||
3673          test ! -s conftest.err
3674        } && test -s conftest.$ac_objext; then
3675   ac_cv_prog_cc_c89=$ac_arg
3676 else
3677   $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680
3681 fi
3682
3683 rm -f core conftest.err conftest.$ac_objext
3684   test "x$ac_cv_prog_cc_c89" != "xno" && break
3685 done
3686 rm -f conftest.$ac_ext
3687 CC=$ac_save_CC
3688
3689 fi
3690 # AC_CACHE_VAL
3691 case "x$ac_cv_prog_cc_c89" in
3692   x)
3693     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;;
3695   xno)
3696     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3697 $as_echo "unsupported" >&6; } ;;
3698   *)
3699     CC="$CC $ac_cv_prog_cc_c89"
3700     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702 esac
3703
3704
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3711
3712 ac_config_commands="$ac_config_commands depfiles"
3713
3714
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3717 am__doit:
3718         @echo this is the am__doit target
3719 .PHONY: am__doit
3720 END
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3724 am__include="#"
3725 am__quote=
3726 _am_result=none
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from `make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3732   am__include=include
3733   am__quote=
3734   _am_result=GNU
3735   ;;
3736 esac
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739    echo '.include "confinc"' > confmf
3740    case `$am_make -s -f confmf 2> /dev/null` in #(
3741    *the\ am__doit\ target*)
3742      am__include=.include
3743      am__quote="\""
3744      _am_result=BSD
3745      ;;
3746    esac
3747 fi
3748
3749
3750 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3753
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then
3756   enableval=$enable_dependency_tracking;
3757 fi
3758
3759 if test "x$enable_dependency_tracking" != xno; then
3760   am_depcomp="$ac_aux_dir/depcomp"
3761   AMDEPBACKSLASH='\'
3762 fi
3763  if test "x$enable_dependency_tracking" != xno; then
3764   AMDEP_TRUE=
3765   AMDEP_FALSE='#'
3766 else
3767   AMDEP_TRUE='#'
3768   AMDEP_FALSE=
3769 fi
3770
3771
3772
3773 depcc="$CC"   am_compiler_list=
3774
3775 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3778   $as_echo_n "(cached) " >&6
3779 else
3780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781   # We make a subdir and do the tests there.  Otherwise we can end up
3782   # making bogus files that we don't know about and never remove.  For
3783   # instance it was reported that on HP-UX the gcc test will end up
3784   # making a dummy file named `D' -- because `-MD' means `put the output
3785   # in D'.
3786   mkdir conftest.dir
3787   # Copy depcomp to subdir because otherwise we won't find it if we're
3788   # using a relative directory.
3789   cp "$am_depcomp" conftest.dir
3790   cd conftest.dir
3791   # We will build objects and dependencies in a subdirectory because
3792   # it helps to detect inapplicable dependency modes.  For instance
3793   # both Tru64's cc and ICC support -MD to output dependencies as a
3794   # side effect of compilation, but ICC will put the dependencies in
3795   # the current directory while Tru64 will put them in the object
3796   # directory.
3797   mkdir sub
3798
3799   am_cv_CC_dependencies_compiler_type=none
3800   if test "$am_compiler_list" = ""; then
3801      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802   fi
3803   am__universal=false
3804   case " $depcc " in #(
3805      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3806      esac
3807
3808   for depmode in $am_compiler_list; do
3809     # Setup a source with many dependencies, because some compilers
3810     # like to wrap large dependency lists on column 80 (with \), and
3811     # we should not choose a depcomp mode which is confused by this.
3812     #
3813     # We need to recreate these files for each test, as the compiler may
3814     # overwrite some of them when testing with obscure command lines.
3815     # This happens at least with the AIX C compiler.
3816     : > sub/conftest.c
3817     for i in 1 2 3 4 5 6; do
3818       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820       # Solaris 8's {/usr,}/bin/sh.
3821       touch sub/conftst$i.h
3822     done
3823     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826     # mode.  It turns out that the SunPro C++ compiler does not properly
3827     # handle `-M -o', and we need to detect this.  Also, some Intel
3828     # versions had trouble with output in subdirs
3829     am__obj=sub/conftest.${OBJEXT-o}
3830     am__minus_obj="-o $am__obj"
3831     case $depmode in
3832     gcc)
3833       # This depmode causes a compiler race in universal mode.
3834       test "$am__universal" = false || continue
3835       ;;
3836     nosideeffect)
3837       # after this tag, mechanisms are not by side-effect, so they'll
3838       # only be used when explicitly requested
3839       if test "x$enable_dependency_tracking" = xyes; then
3840         continue
3841       else
3842         break
3843       fi
3844       ;;
3845     msvisualcpp | msvcmsys)
3846       # This compiler won't grok `-c -o', but also, the minuso test has
3847       # not run yet.  These depmodes are late enough in the game, and
3848       # so weak that their functioning should not be impacted.
3849       am__obj=conftest.${OBJEXT-o}
3850       am__minus_obj=
3851       ;;
3852     none) break ;;
3853     esac
3854     if depmode=$depmode \
3855        source=sub/conftest.c object=$am__obj \
3856        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858          >/dev/null 2>conftest.err &&
3859        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863       # icc doesn't choke on unknown options, it will just issue warnings
3864       # or remarks (even with -Werror).  So we grep stderr for any message
3865       # that says an option was ignored or not supported.
3866       # When given -MP, icc 7.0 and 7.1 complain thusly:
3867       #   icc: Command line warning: ignoring option '-M'; no argument required
3868       # The diagnosis changed in icc 8.0:
3869       #   icc: Command line remark: option '-MP' not supported
3870       if (grep 'ignoring option' conftest.err ||
3871           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872         am_cv_CC_dependencies_compiler_type=$depmode
3873         break
3874       fi
3875     fi
3876   done
3877
3878   cd ..
3879   rm -rf conftest.dir
3880 else
3881   am_cv_CC_dependencies_compiler_type=none
3882 fi
3883
3884 fi
3885 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3886 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3887 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3888
3889  if
3890   test "x$enable_dependency_tracking" != xno \
3891   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3892   am__fastdepCC_TRUE=
3893   am__fastdepCC_FALSE='#'
3894 else
3895   am__fastdepCC_TRUE='#'
3896   am__fastdepCC_FALSE=
3897 fi
3898
3899
3900 CFLAGS=$save_CFLAGS
3901
3902
3903
3904
3905
3906 # By default we simply use the C compiler to build assembly code.
3907
3908 test "${CCAS+set}" = set || CCAS=$CC
3909 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3910
3911
3912
3913 depcc="$CCAS"   am_compiler_list=
3914
3915 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921   # We make a subdir and do the tests there.  Otherwise we can end up
3922   # making bogus files that we don't know about and never remove.  For
3923   # instance it was reported that on HP-UX the gcc test will end up
3924   # making a dummy file named `D' -- because `-MD' means `put the output
3925   # in D'.
3926   mkdir conftest.dir
3927   # Copy depcomp to subdir because otherwise we won't find it if we're
3928   # using a relative directory.
3929   cp "$am_depcomp" conftest.dir
3930   cd conftest.dir
3931   # We will build objects and dependencies in a subdirectory because
3932   # it helps to detect inapplicable dependency modes.  For instance
3933   # both Tru64's cc and ICC support -MD to output dependencies as a
3934   # side effect of compilation, but ICC will put the dependencies in
3935   # the current directory while Tru64 will put them in the object
3936   # directory.
3937   mkdir sub
3938
3939   am_cv_CCAS_dependencies_compiler_type=none
3940   if test "$am_compiler_list" = ""; then
3941      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942   fi
3943   am__universal=false
3944
3945
3946   for depmode in $am_compiler_list; do
3947     # Setup a source with many dependencies, because some compilers
3948     # like to wrap large dependency lists on column 80 (with \), and
3949     # we should not choose a depcomp mode which is confused by this.
3950     #
3951     # We need to recreate these files for each test, as the compiler may
3952     # overwrite some of them when testing with obscure command lines.
3953     # This happens at least with the AIX C compiler.
3954     : > sub/conftest.c
3955     for i in 1 2 3 4 5 6; do
3956       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3957       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3958       # Solaris 8's {/usr,}/bin/sh.
3959       touch sub/conftst$i.h
3960     done
3961     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3962
3963     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3964     # mode.  It turns out that the SunPro C++ compiler does not properly
3965     # handle `-M -o', and we need to detect this.  Also, some Intel
3966     # versions had trouble with output in subdirs
3967     am__obj=sub/conftest.${OBJEXT-o}
3968     am__minus_obj="-o $am__obj"
3969     case $depmode in
3970     gcc)
3971       # This depmode causes a compiler race in universal mode.
3972       test "$am__universal" = false || continue
3973       ;;
3974     nosideeffect)
3975       # after this tag, mechanisms are not by side-effect, so they'll
3976       # only be used when explicitly requested
3977       if test "x$enable_dependency_tracking" = xyes; then
3978         continue
3979       else
3980         break
3981       fi
3982       ;;
3983     msvisualcpp | msvcmsys)
3984       # This compiler won't grok `-c -o', but also, the minuso test has
3985       # not run yet.  These depmodes are late enough in the game, and
3986       # so weak that their functioning should not be impacted.
3987       am__obj=conftest.${OBJEXT-o}
3988       am__minus_obj=
3989       ;;
3990     none) break ;;
3991     esac
3992     if depmode=$depmode \
3993        source=sub/conftest.c object=$am__obj \
3994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3996          >/dev/null 2>conftest.err &&
3997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001       # icc doesn't choke on unknown options, it will just issue warnings
4002       # or remarks (even with -Werror).  So we grep stderr for any message
4003       # that says an option was ignored or not supported.
4004       # When given -MP, icc 7.0 and 7.1 complain thusly:
4005       #   icc: Command line warning: ignoring option '-M'; no argument required
4006       # The diagnosis changed in icc 8.0:
4007       #   icc: Command line remark: option '-MP' not supported
4008       if (grep 'ignoring option' conftest.err ||
4009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010         am_cv_CCAS_dependencies_compiler_type=$depmode
4011         break
4012       fi
4013     fi
4014   done
4015
4016   cd ..
4017   rm -rf conftest.dir
4018 else
4019   am_cv_CCAS_dependencies_compiler_type=none
4020 fi
4021
4022 fi
4023 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4024 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4025 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4026
4027  if
4028   test "x$enable_dependency_tracking" != xno \
4029   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4030   am__fastdepCCAS_TRUE=
4031   am__fastdepCCAS_FALSE='#'
4032 else
4033   am__fastdepCCAS_TRUE='#'
4034   am__fastdepCCAS_FALSE=
4035 fi
4036
4037
4038 if test "x$CC" != xcc; then
4039   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4040 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4041 else
4042   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4043 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4044 fi
4045 set dummy $CC; ac_cc=`$as_echo "$2" |
4046                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4047 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4048   $as_echo_n "(cached) " >&6
4049 else
4050   cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 # Make sure it works both with $CC and with simple cc.
4066 # We do the test twice because some compilers refuse to overwrite an
4067 # existing .o file with -o, though they will create one.
4068 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4069 rm -f conftest2.*
4070 if { (case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076   (eval "$ac_try") 2>&5
4077   ac_status=$?
4078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } &&
4080    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086   (eval "$ac_try") 2>&5
4087   ac_status=$?
4088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); };
4090 then
4091   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4092   if test "x$CC" != xcc; then
4093     # Test first that cc exists at all.
4094     if { ac_try='cc -c conftest.$ac_ext >&5'
4095   { (case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101   (eval "$ac_try") 2>&5
4102   ac_status=$?
4103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4106       rm -f conftest2.*
4107       if { (case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113   (eval "$ac_try") 2>&5
4114   ac_status=$?
4115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123   (eval "$ac_try") 2>&5
4124   ac_status=$?
4125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); };
4127       then
4128         # cc works too.
4129         :
4130       else
4131         # cc exists but doesn't like -o.
4132         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4133       fi
4134     fi
4135   fi
4136 else
4137   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4138 fi
4139 rm -f core conftest*
4140
4141 fi
4142 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4143   { $as_echo "$as_me:$LINENO: result: yes" >&5
4144 $as_echo "yes" >&6; }
4145 else
4146   { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4148
4149 cat >>confdefs.h <<\_ACEOF
4150 #define NO_MINUS_C_MINUS_O 1
4151 _ACEOF
4152
4153 fi
4154
4155 # FIXME: we rely on the cache variable name because
4156 # there is no other way.
4157 set dummy $CC
4158 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4159 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4160 if test "$am_t" != yes; then
4161    # Losing compiler, so override with the script.
4162    # FIXME: It is wrong to rewrite CC.
4163    # But if we don't then we get into trouble of one sort or another.
4164    # A longer-term fix would be to have automake use am__CC in this case,
4165    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166    CC="$am_aux_dir/compile $CC"
4167 fi
4168
4169
4170 case `pwd` in
4171   *\ * | *\     *)
4172     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4173 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4174 esac
4175
4176
4177
4178 macro_version='2.2.6b'
4179 macro_revision='1.3017'
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193 ltmain="$ac_aux_dir/ltmain.sh"
4194
4195 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4197 if test "${ac_cv_path_SED+set}" = set; then
4198   $as_echo_n "(cached) " >&6
4199 else
4200             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4201      for ac_i in 1 2 3 4 5 6 7; do
4202        ac_script="$ac_script$as_nl$ac_script"
4203      done
4204      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4205      $as_unset ac_script || ac_script=
4206      if test -z "$SED"; then
4207   ac_path_SED_found=false
4208   # Loop through the user's path and test for each of PROGNAME-LIST
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_prog in sed gsed; do
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4217       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4218 # Check for GNU ac_path_SED and select it if it is found.
4219   # Check for GNU $ac_path_SED
4220 case `"$ac_path_SED" --version 2>&1` in
4221 *GNU*)
4222   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4223 *)
4224   ac_count=0
4225   $as_echo_n 0123456789 >"conftest.in"
4226   while :
4227   do
4228     cat "conftest.in" "conftest.in" >"conftest.tmp"
4229     mv "conftest.tmp" "conftest.in"
4230     cp "conftest.in" "conftest.nl"
4231     $as_echo '' >> "conftest.nl"
4232     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234     ac_count=`expr $ac_count + 1`
4235     if test $ac_count -gt ${ac_path_SED_max-0}; then
4236       # Best one so far, save it but keep looking for a better one
4237       ac_cv_path_SED="$ac_path_SED"
4238       ac_path_SED_max=$ac_count
4239     fi
4240     # 10*(2^10) chars as input seems more than enough
4241     test $ac_count -gt 10 && break
4242   done
4243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4245
4246       $ac_path_SED_found && break 3
4247     done
4248   done
4249 done
4250 IFS=$as_save_IFS
4251   if test -z "$ac_cv_path_SED"; then
4252     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4253 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4254    { (exit 1); exit 1; }; }
4255   fi
4256 else
4257   ac_cv_path_SED=$SED
4258 fi
4259
4260 fi
4261 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4262 $as_echo "$ac_cv_path_SED" >&6; }
4263  SED="$ac_cv_path_SED"
4264   rm -f conftest.sed
4265
4266 test -z "$SED" && SED=sed
4267 Xsed="$SED -e 1s/^X//"
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4280 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281 if test "${ac_cv_path_GREP+set}" = set; then
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -z "$GREP"; then
4285   ac_path_GREP_found=false
4286   # Loop through the user's path and test for each of PROGNAME-LIST
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_prog in grep ggrep; do
4293     for ac_exec_ext in '' $ac_executable_extensions; do
4294       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4296 # Check for GNU ac_path_GREP and select it if it is found.
4297   # Check for GNU $ac_path_GREP
4298 case `"$ac_path_GREP" --version 2>&1` in
4299 *GNU*)
4300   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 *)
4302   ac_count=0
4303   $as_echo_n 0123456789 >"conftest.in"
4304   while :
4305   do
4306     cat "conftest.in" "conftest.in" >"conftest.tmp"
4307     mv "conftest.tmp" "conftest.in"
4308     cp "conftest.in" "conftest.nl"
4309     $as_echo 'GREP' >> "conftest.nl"
4310     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312     ac_count=`expr $ac_count + 1`
4313     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314       # Best one so far, save it but keep looking for a better one
4315       ac_cv_path_GREP="$ac_path_GREP"
4316       ac_path_GREP_max=$ac_count
4317     fi
4318     # 10*(2^10) chars as input seems more than enough
4319     test $ac_count -gt 10 && break
4320   done
4321   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4323
4324       $ac_path_GREP_found && break 3
4325     done
4326   done
4327 done
4328 IFS=$as_save_IFS
4329   if test -z "$ac_cv_path_GREP"; then
4330     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332    { (exit 1); exit 1; }; }
4333   fi
4334 else
4335   ac_cv_path_GREP=$GREP
4336 fi
4337
4338 fi
4339 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4340 $as_echo "$ac_cv_path_GREP" >&6; }
4341  GREP="$ac_cv_path_GREP"
4342
4343
4344 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4345 $as_echo_n "checking for egrep... " >&6; }
4346 if test "${ac_cv_path_EGREP+set}" = set; then
4347   $as_echo_n "(cached) " >&6
4348 else
4349   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350    then ac_cv_path_EGREP="$GREP -E"
4351    else
4352      if test -z "$EGREP"; then
4353   ac_path_EGREP_found=false
4354   # Loop through the user's path and test for each of PROGNAME-LIST
4355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_prog in egrep; do
4361     for ac_exec_ext in '' $ac_executable_extensions; do
4362       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364 # Check for GNU ac_path_EGREP and select it if it is found.
4365   # Check for GNU $ac_path_EGREP
4366 case `"$ac_path_EGREP" --version 2>&1` in
4367 *GNU*)
4368   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4369 *)
4370   ac_count=0
4371   $as_echo_n 0123456789 >"conftest.in"
4372   while :
4373   do
4374     cat "conftest.in" "conftest.in" >"conftest.tmp"
4375     mv "conftest.tmp" "conftest.in"
4376     cp "conftest.in" "conftest.nl"
4377     $as_echo 'EGREP' >> "conftest.nl"
4378     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380     ac_count=`expr $ac_count + 1`
4381     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382       # Best one so far, save it but keep looking for a better one
4383       ac_cv_path_EGREP="$ac_path_EGREP"
4384       ac_path_EGREP_max=$ac_count
4385     fi
4386     # 10*(2^10) chars as input seems more than enough
4387     test $ac_count -gt 10 && break
4388   done
4389   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390 esac
4391
4392       $ac_path_EGREP_found && break 3
4393     done
4394   done
4395 done
4396 IFS=$as_save_IFS
4397   if test -z "$ac_cv_path_EGREP"; then
4398     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4399 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4400    { (exit 1); exit 1; }; }
4401   fi
4402 else
4403   ac_cv_path_EGREP=$EGREP
4404 fi
4405
4406    fi
4407 fi
4408 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4409 $as_echo "$ac_cv_path_EGREP" >&6; }
4410  EGREP="$ac_cv_path_EGREP"
4411
4412
4413 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4414 $as_echo_n "checking for fgrep... " >&6; }
4415 if test "${ac_cv_path_FGREP+set}" = set; then
4416   $as_echo_n "(cached) " >&6
4417 else
4418   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4419    then ac_cv_path_FGREP="$GREP -F"
4420    else
4421      if test -z "$FGREP"; then
4422   ac_path_FGREP_found=false
4423   # Loop through the user's path and test for each of PROGNAME-LIST
4424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_prog in fgrep; do
4430     for ac_exec_ext in '' $ac_executable_extensions; do
4431       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4432       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4433 # Check for GNU ac_path_FGREP and select it if it is found.
4434   # Check for GNU $ac_path_FGREP
4435 case `"$ac_path_FGREP" --version 2>&1` in
4436 *GNU*)
4437   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4438 *)
4439   ac_count=0
4440   $as_echo_n 0123456789 >"conftest.in"
4441   while :
4442   do
4443     cat "conftest.in" "conftest.in" >"conftest.tmp"
4444     mv "conftest.tmp" "conftest.in"
4445     cp "conftest.in" "conftest.nl"
4446     $as_echo 'FGREP' >> "conftest.nl"
4447     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449     ac_count=`expr $ac_count + 1`
4450     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4451       # Best one so far, save it but keep looking for a better one
4452       ac_cv_path_FGREP="$ac_path_FGREP"
4453       ac_path_FGREP_max=$ac_count
4454     fi
4455     # 10*(2^10) chars as input seems more than enough
4456     test $ac_count -gt 10 && break
4457   done
4458   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 esac
4460
4461       $ac_path_FGREP_found && break 3
4462     done
4463   done
4464 done
4465 IFS=$as_save_IFS
4466   if test -z "$ac_cv_path_FGREP"; then
4467     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4468 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4469    { (exit 1); exit 1; }; }
4470   fi
4471 else
4472   ac_cv_path_FGREP=$FGREP
4473 fi
4474
4475    fi
4476 fi
4477 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4478 $as_echo "$ac_cv_path_FGREP" >&6; }
4479  FGREP="$ac_cv_path_FGREP"
4480
4481
4482 test -z "$GREP" && GREP=grep
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 # Check whether --with-gnu-ld was given.
4503 if test "${with_gnu_ld+set}" = set; then
4504   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4505 else
4506   with_gnu_ld=no
4507 fi
4508
4509 ac_prog=ld
4510 if test "$GCC" = yes; then
4511   # Check if gcc -print-prog-name=ld gives a path.
4512   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4513 $as_echo_n "checking for ld used by $CC... " >&6; }
4514   case $host in
4515   *-*-mingw*)
4516     # gcc leaves a trailing carriage return which upsets mingw
4517     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4518   *)
4519     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4520   esac
4521   case $ac_prog in
4522     # Accept absolute paths.
4523     [\\/]* | ?:[\\/]*)
4524       re_direlt='/[^/][^/]*/\.\./'
4525       # Canonicalize the pathname of ld
4526       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4527       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4528         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4529       done
4530       test -z "$LD" && LD="$ac_prog"
4531       ;;
4532   "")
4533     # If it fails, then pretend we aren't using GCC.
4534     ac_prog=ld
4535     ;;
4536   *)
4537     # If it is relative, then search for the first ld in PATH.
4538     with_gnu_ld=unknown
4539     ;;
4540   esac
4541 elif test "$with_gnu_ld" = yes; then
4542   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4543 $as_echo_n "checking for GNU ld... " >&6; }
4544 else
4545   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4546 $as_echo_n "checking for non-GNU ld... " >&6; }
4547 fi
4548 if test "${lt_cv_path_LD+set}" = set; then
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -z "$LD"; then
4552   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553   for ac_dir in $PATH; do
4554     IFS="$lt_save_ifs"
4555     test -z "$ac_dir" && ac_dir=.
4556     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4557       lt_cv_path_LD="$ac_dir/$ac_prog"
4558       # Check to see if the program is GNU ld.  I'd rather use --version,
4559       # but apparently some variants of GNU ld only accept -v.
4560       # Break only if it was the GNU/non-GNU ld that we prefer.
4561       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4562       *GNU* | *'with BFD'*)
4563         test "$with_gnu_ld" != no && break
4564         ;;
4565       *)
4566         test "$with_gnu_ld" != yes && break
4567         ;;
4568       esac
4569     fi
4570   done
4571   IFS="$lt_save_ifs"
4572 else
4573   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4574 fi
4575 fi
4576
4577 LD="$lt_cv_path_LD"
4578 if test -n "$LD"; then
4579   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4580 $as_echo "$LD" >&6; }
4581 else
4582   { $as_echo "$as_me:$LINENO: result: no" >&5
4583 $as_echo "no" >&6; }
4584 fi
4585 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4586 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4587    { (exit 1); exit 1; }; }
4588 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4591   $as_echo_n "(cached) " >&6
4592 else
4593   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596   lt_cv_prog_gnu_ld=yes
4597   ;;
4598 *)
4599   lt_cv_prog_gnu_ld=no
4600   ;;
4601 esac
4602 fi
4603 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4616 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4617 if test "${lt_cv_path_NM+set}" = set; then
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -n "$NM"; then
4621   # Let the user override the test.
4622   lt_cv_path_NM="$NM"
4623 else
4624   lt_nm_to_check="${ac_tool_prefix}nm"
4625   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4626     lt_nm_to_check="$lt_nm_to_check nm"
4627   fi
4628   for lt_tmp_nm in $lt_nm_to_check; do
4629     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4630     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4631       IFS="$lt_save_ifs"
4632       test -z "$ac_dir" && ac_dir=.
4633       tmp_nm="$ac_dir/$lt_tmp_nm"
4634       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4635         # Check to see if the nm accepts a BSD-compat flag.
4636         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4637         #   nm: unknown option "B" ignored
4638         # Tru64's nm complains that /dev/null is an invalid object file
4639         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4640         */dev/null* | *'Invalid file or object type'*)
4641           lt_cv_path_NM="$tmp_nm -B"
4642           break
4643           ;;
4644         *)
4645           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4646           */dev/null*)
4647             lt_cv_path_NM="$tmp_nm -p"
4648             break
4649             ;;
4650           *)
4651             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4652             continue # so that we can try to find one that supports BSD flags
4653             ;;
4654           esac
4655           ;;
4656         esac
4657       fi
4658     done
4659     IFS="$lt_save_ifs"
4660   done
4661   : ${lt_cv_path_NM=no}
4662 fi
4663 fi
4664 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4665 $as_echo "$lt_cv_path_NM" >&6; }
4666 if test "$lt_cv_path_NM" != "no"; then
4667   NM="$lt_cv_path_NM"
4668 else
4669   # Didn't find any BSD compatible name lister, look for dumpbin.
4670   if test -n "$ac_tool_prefix"; then
4671   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4672   do
4673     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4678   $as_echo_n "(cached) " >&6
4679 else
4680   if test -n "$DUMPBIN"; then
4681   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4691     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 DUMPBIN=$ac_cv_prog_DUMPBIN
4701 if test -n "$DUMPBIN"; then
4702   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4703 $as_echo "$DUMPBIN" >&6; }
4704 else
4705   { $as_echo "$as_me:$LINENO: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709
4710     test -n "$DUMPBIN" && break
4711   done
4712 fi
4713 if test -z "$DUMPBIN"; then
4714   ac_ct_DUMPBIN=$DUMPBIN
4715   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4716 do
4717   # Extract the first word of "$ac_prog", so it can be a program name with args.
4718 set dummy $ac_prog; ac_word=$2
4719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4722   $as_echo_n "(cached) " >&6
4723 else
4724   if test -n "$ac_ct_DUMPBIN"; then
4725   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742 fi
4743 fi
4744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4745 if test -n "$ac_ct_DUMPBIN"; then
4746   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4747 $as_echo "$ac_ct_DUMPBIN" >&6; }
4748 else
4749   { $as_echo "$as_me:$LINENO: result: no" >&5
4750 $as_echo "no" >&6; }
4751 fi
4752
4753
4754   test -n "$ac_ct_DUMPBIN" && break
4755 done
4756
4757   if test "x$ac_ct_DUMPBIN" = x; then
4758     DUMPBIN=":"
4759   else
4760     case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4765 esac
4766     DUMPBIN=$ac_ct_DUMPBIN
4767   fi
4768 fi
4769
4770
4771   if test "$DUMPBIN" != ":"; then
4772     NM="$DUMPBIN"
4773   fi
4774 fi
4775 test -z "$NM" && NM=nm
4776
4777
4778
4779
4780
4781
4782 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4784 if test "${lt_cv_nm_interface+set}" = set; then
4785   $as_echo_n "(cached) " >&6
4786 else
4787   lt_cv_nm_interface="BSD nm"
4788   echo "int some_variable = 0;" > conftest.$ac_ext
4789   (eval echo "\"\$as_me:4789: $ac_compile\"" >&5)
4790   (eval "$ac_compile" 2>conftest.err)
4791   cat conftest.err >&5
4792   (eval echo "\"\$as_me:4792: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4793   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4794   cat conftest.err >&5
4795   (eval echo "\"\$as_me:4795: output\"" >&5)
4796   cat conftest.out >&5
4797   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4798     lt_cv_nm_interface="MS dumpbin"
4799   fi
4800   rm -f conftest*
4801 fi
4802 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4803 $as_echo "$lt_cv_nm_interface" >&6; }
4804
4805 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4806 $as_echo_n "checking whether ln -s works... " >&6; }
4807 LN_S=$as_ln_s
4808 if test "$LN_S" = "ln -s"; then
4809   { $as_echo "$as_me:$LINENO: result: yes" >&5
4810 $as_echo "yes" >&6; }
4811 else
4812   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4813 $as_echo "no, using $LN_S" >&6; }
4814 fi
4815
4816 # find the maximum length of command line arguments
4817 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4820   $as_echo_n "(cached) " >&6
4821 else
4822     i=0
4823   teststring="ABCD"
4824
4825   case $build_os in
4826   msdosdjgpp*)
4827     # On DJGPP, this test can blow up pretty badly due to problems in libc
4828     # (any single argument exceeding 2000 bytes causes a buffer overrun
4829     # during glob expansion).  Even if it were fixed, the result of this
4830     # check would be larger than it should be.
4831     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4832     ;;
4833
4834   gnu*)
4835     # Under GNU Hurd, this test is not required because there is
4836     # no limit to the length of command line arguments.
4837     # Libtool will interpret -1 as no limit whatsoever
4838     lt_cv_sys_max_cmd_len=-1;
4839     ;;
4840
4841   cygwin* | mingw* | cegcc*)
4842     # On Win9x/ME, this test blows up -- it succeeds, but takes
4843     # about 5 minutes as the teststring grows exponentially.
4844     # Worse, since 9x/ME are not pre-emptively multitasking,
4845     # you end up with a "frozen" computer, even though with patience
4846     # the test eventually succeeds (with a max line length of 256k).
4847     # Instead, let's just punt: use the minimum linelength reported by
4848     # all of the supported platforms: 8192 (on NT/2K/XP).
4849     lt_cv_sys_max_cmd_len=8192;
4850     ;;
4851
4852   amigaos*)
4853     # On AmigaOS with pdksh, this test takes hours, literally.
4854     # So we just punt and use a minimum line length of 8192.
4855     lt_cv_sys_max_cmd_len=8192;
4856     ;;
4857
4858   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4859     # This has been around since 386BSD, at least.  Likely further.
4860     if test -x /sbin/sysctl; then
4861       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4862     elif test -x /usr/sbin/sysctl; then
4863       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4864     else
4865       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4866     fi
4867     # And add a safety zone
4868     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870     ;;
4871
4872   interix*)
4873     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4874     lt_cv_sys_max_cmd_len=196608
4875     ;;
4876
4877   osf*)
4878     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4879     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4880     # nice to cause kernel panics so lets avoid the loop below.
4881     # First set a reasonable default.
4882     lt_cv_sys_max_cmd_len=16384
4883     #
4884     if test -x /sbin/sysconfig; then
4885       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4886         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4887       esac
4888     fi
4889     ;;
4890   sco3.2v5*)
4891     lt_cv_sys_max_cmd_len=102400
4892     ;;
4893   sysv5* | sco5v6* | sysv4.2uw2*)
4894     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4895     if test -n "$kargmax"; then
4896       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4897     else
4898       lt_cv_sys_max_cmd_len=32768
4899     fi
4900     ;;
4901   *)
4902     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4903     if test -n "$lt_cv_sys_max_cmd_len"; then
4904       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4906     else
4907       # Make teststring a little bigger before we do anything with it.
4908       # a 1K string should be a reasonable start.
4909       for i in 1 2 3 4 5 6 7 8 ; do
4910         teststring=$teststring$teststring
4911       done
4912       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4913       # If test is not a shell built-in, we'll probably end up computing a
4914       # maximum length that is only half of the actual maximum length, but
4915       # we can't tell.
4916       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4917                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4918               test $i != 17 # 1/2 MB should be enough
4919       do
4920         i=`expr $i + 1`
4921         teststring=$teststring$teststring
4922       done
4923       # Only check the string length outside the loop.
4924       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4925       teststring=
4926       # Add a significant safety factor because C++ compilers can tack on
4927       # massive amounts of additional arguments before passing them to the
4928       # linker.  It appears as though 1/2 is a usable value.
4929       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4930     fi
4931     ;;
4932   esac
4933
4934 fi
4935
4936 if test -n $lt_cv_sys_max_cmd_len ; then
4937   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4939 else
4940   { $as_echo "$as_me:$LINENO: result: none" >&5
4941 $as_echo "none" >&6; }
4942 fi
4943 max_cmd_len=$lt_cv_sys_max_cmd_len
4944
4945
4946
4947
4948
4949
4950 : ${CP="cp -f"}
4951 : ${MV="mv -f"}
4952 : ${RM="rm -f"}
4953
4954 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4955 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4956 # Try some XSI features
4957 xsi_shell=no
4958 ( _lt_dummy="a/b/c"
4959   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4960       = c,a/b,, \
4961     && eval 'test $(( 1 + 1 )) -eq 2 \
4962     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4963   && xsi_shell=yes
4964 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4965 $as_echo "$xsi_shell" >&6; }
4966
4967
4968 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4969 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4970 lt_shell_append=no
4971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4972     >/dev/null 2>&1 \
4973   && lt_shell_append=yes
4974 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4975 $as_echo "$lt_shell_append" >&6; }
4976
4977
4978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4979   lt_unset=unset
4980 else
4981   lt_unset=false
4982 fi
4983
4984
4985
4986
4987
4988 # test EBCDIC or ASCII
4989 case `echo X|tr X '\101'` in
4990  A) # ASCII based system
4991     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4992   lt_SP2NL='tr \040 \012'
4993   lt_NL2SP='tr \015\012 \040\040'
4994   ;;
4995  *) # EBCDIC based system
4996   lt_SP2NL='tr \100 \n'
4997   lt_NL2SP='tr \r\n \100\100'
4998   ;;
4999 esac
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5011 if test "${lt_cv_ld_reload_flag+set}" = set; then
5012   $as_echo_n "(cached) " >&6
5013 else
5014   lt_cv_ld_reload_flag='-r'
5015 fi
5016 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5018 reload_flag=$lt_cv_ld_reload_flag
5019 case $reload_flag in
5020 "" | " "*) ;;
5021 *) reload_flag=" $reload_flag" ;;
5022 esac
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5024 case $host_os in
5025   darwin*)
5026     if test "$GCC" = yes; then
5027       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5028     else
5029       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030     fi
5031     ;;
5032 esac
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 if test -n "$ac_tool_prefix"; then
5043   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5048   $as_echo_n "(cached) " >&6
5049 else
5050   if test -n "$OBJDUMP"; then
5051   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5074 else
5075   { $as_echo "$as_me:$LINENO: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079
5080 fi
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082   ac_ct_OBJDUMP=$OBJDUMP
5083   # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5088   $as_echo_n "(cached) " >&6
5089 else
5090   if test -n "$ac_ct_OBJDUMP"; then
5091   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098   for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5114 else
5115   { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119   if test "x$ac_ct_OBJDUMP" = x; then
5120     OBJDUMP="false"
5121   else
5122     case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128     OBJDUMP=$ac_ct_OBJDUMP
5129   fi
5130 else
5131   OBJDUMP="$ac_cv_prog_OBJDUMP"
5132 fi
5133
5134 test -z "$OBJDUMP" && OBJDUMP=objdump
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147   $as_echo_n "(cached) " >&6
5148 else
5149   lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given extended regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5162
5163 case $host_os in
5164 aix[4-9]*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 beos*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 bsdi[45]*)
5173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174   lt_cv_file_magic_cmd='/usr/bin/file -L'
5175   lt_cv_file_magic_test_file=/shlib/libc.so
5176   ;;
5177
5178 cygwin*)
5179   # func_win32_libid is a shell function defined in ltmain.sh
5180   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181   lt_cv_file_magic_cmd='func_win32_libid'
5182   ;;
5183
5184 mingw* | pw32*)
5185   # Base MSYS/MinGW do not provide the 'file' command needed by
5186   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187   # unless we find 'file', for example because we are cross-compiling.
5188   if ( file / ) >/dev/null 2>&1; then
5189     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190     lt_cv_file_magic_cmd='func_win32_libid'
5191   else
5192     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5193     lt_cv_file_magic_cmd='$OBJDUMP -f'
5194   fi
5195   ;;
5196
5197 cegcc)
5198   # use the weaker test based on 'objdump'. See mingw*.
5199   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5200   lt_cv_file_magic_cmd='$OBJDUMP -f'
5201   ;;
5202
5203 darwin* | rhapsody*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 freebsd* | dragonfly*)
5208   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5209     case $host_cpu in
5210     i*86 )
5211       # Not sure whether the presence of OpenBSD here was a mistake.
5212       # Let's accept both of them until this is cleared up.
5213       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214       lt_cv_file_magic_cmd=/usr/bin/file
5215       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5216       ;;
5217     esac
5218   else
5219     lt_cv_deplibs_check_method=pass_all
5220   fi
5221   ;;
5222
5223 gnu*)
5224   lt_cv_deplibs_check_method=pass_all
5225   ;;
5226
5227 hpux10.20* | hpux11*)
5228   lt_cv_file_magic_cmd=/usr/bin/file
5229   case $host_cpu in
5230   ia64*)
5231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5233     ;;
5234   hppa*64*)
5235     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]'
5236     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5237     ;;
5238   *)
5239     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5240     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5241     ;;
5242   esac
5243   ;;
5244
5245 interix[3-9]*)
5246   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5248   ;;
5249
5250 irix5* | irix6* | nonstopux*)
5251   case $LD in
5252   *-32|*"-32 ") libmagic=32-bit;;
5253   *-n32|*"-n32 ") libmagic=N32;;
5254   *-64|*"-64 ") libmagic=64-bit;;
5255   *) libmagic=never-match;;
5256   esac
5257   lt_cv_deplibs_check_method=pass_all
5258   ;;
5259
5260 # This must be Linux ELF.
5261 linux* | k*bsd*-gnu)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5264
5265 netbsd*)
5266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268   else
5269     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270   fi
5271   ;;
5272
5273 newos6*)
5274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275   lt_cv_file_magic_cmd=/usr/bin/file
5276   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5277   ;;
5278
5279 *nto* | *qnx*)
5280   lt_cv_deplibs_check_method=pass_all
5281   ;;
5282
5283 openbsd*)
5284   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5286   else
5287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288   fi
5289   ;;
5290
5291 osf3* | osf4* | osf5*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5294
5295 rdos*)
5296   lt_cv_deplibs_check_method=pass_all
5297   ;;
5298
5299 solaris*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5306
5307 sysv4 | sysv4.3*)
5308   case $host_vendor in
5309   motorola)
5310     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]'
5311     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5312     ;;
5313   ncr)
5314     lt_cv_deplibs_check_method=pass_all
5315     ;;
5316   sequent)
5317     lt_cv_file_magic_cmd='/bin/file'
5318     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5319     ;;
5320   sni)
5321     lt_cv_file_magic_cmd='/bin/file'
5322     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5323     lt_cv_file_magic_test_file=/lib/libc.so
5324     ;;
5325   siemens)
5326     lt_cv_deplibs_check_method=pass_all
5327     ;;
5328   pc)
5329     lt_cv_deplibs_check_method=pass_all
5330     ;;
5331   esac
5332   ;;
5333
5334 tpf*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337 esac
5338
5339 fi
5340 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5342 file_magic_cmd=$lt_cv_file_magic_cmd
5343 deplibs_check_method=$lt_cv_deplibs_check_method
5344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 if test -n "$ac_tool_prefix"; then
5358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}ar; ac_word=$2
5360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if test "${ac_cv_prog_AR+set}" = set; then
5363   $as_echo_n "(cached) " >&6
5364 else
5365   if test -n "$AR"; then
5366   ac_cv_prog_AR="$AR" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373   for ac_exec_ext in '' $ac_executable_extensions; do
5374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375     ac_cv_prog_AR="${ac_tool_prefix}ar"
5376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380 done
5381 IFS=$as_save_IFS
5382
5383 fi
5384 fi
5385 AR=$ac_cv_prog_AR
5386 if test -n "$AR"; then
5387   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5388 $as_echo "$AR" >&6; }
5389 else
5390   { $as_echo "$as_me:$LINENO: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393
5394
5395 fi
5396 if test -z "$ac_cv_prog_AR"; then
5397   ac_ct_AR=$AR
5398   # Extract the first word of "ar", so it can be a program name with args.
5399 set dummy ar; ac_word=$2
5400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5403   $as_echo_n "(cached) " >&6
5404 else
5405   if test -n "$ac_ct_AR"; then
5406   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411   IFS=$as_save_IFS
5412   test -z "$as_dir" && as_dir=.
5413   for ac_exec_ext in '' $ac_executable_extensions; do
5414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415     ac_cv_prog_ac_ct_AR="ar"
5416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417     break 2
5418   fi
5419 done
5420 done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5426 if test -n "$ac_ct_AR"; then
5427   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5428 $as_echo "$ac_ct_AR" >&6; }
5429 else
5430   { $as_echo "$as_me:$LINENO: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434   if test "x$ac_ct_AR" = x; then
5435     AR="false"
5436   else
5437     case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443     AR=$ac_ct_AR
5444   fi
5445 else
5446   AR="$ac_cv_prog_AR"
5447 fi
5448
5449 test -z "$AR" && AR=ar
5450 test -z "$AR_FLAGS" && AR_FLAGS=cru
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 if test -n "$ac_tool_prefix"; then
5463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}strip; ac_word=$2
5465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if test "${ac_cv_prog_STRIP+set}" = set; then
5468   $as_echo_n "(cached) " >&6
5469 else
5470   if test -n "$STRIP"; then
5471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5481     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 STRIP=$ac_cv_prog_STRIP
5491 if test -n "$STRIP"; then
5492   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5493 $as_echo "$STRIP" >&6; }
5494 else
5495   { $as_echo "$as_me:$LINENO: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499
5500 fi
5501 if test -z "$ac_cv_prog_STRIP"; then
5502   ac_ct_STRIP=$STRIP
5503   # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -n "$ac_ct_STRIP"; then
5511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_prog_ac_ct_STRIP="strip"
5521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5533 $as_echo "$ac_ct_STRIP" >&6; }
5534 else
5535   { $as_echo "$as_me:$LINENO: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539   if test "x$ac_ct_STRIP" = x; then
5540     STRIP=":"
5541   else
5542     case $cross_compiling:$ac_tool_warned in
5543 yes:)
5544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5547 esac
5548     STRIP=$ac_ct_STRIP
5549   fi
5550 else
5551   STRIP="$ac_cv_prog_STRIP"
5552 fi
5553
5554 test -z "$STRIP" && STRIP=:
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_prog_RANLIB+set}" = set; then
5567   $as_echo_n "(cached) " >&6
5568 else
5569   if test -n "$RANLIB"; then
5570   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 RANLIB=$ac_cv_prog_RANLIB
5590 if test -n "$RANLIB"; then
5591   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5592 $as_echo "$RANLIB" >&6; }
5593 else
5594   { $as_echo "$as_me:$LINENO: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 fi
5600 if test -z "$ac_cv_prog_RANLIB"; then
5601   ac_ct_RANLIB=$RANLIB
5602   # Extract the first word of "ranlib", so it can be a program name with args.
5603 set dummy ranlib; ac_word=$2
5604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -n "$ac_ct_RANLIB"; then
5610   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_ac_ct_RANLIB="ranlib"
5620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5630 if test -n "$ac_ct_RANLIB"; then
5631   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5632 $as_echo "$ac_ct_RANLIB" >&6; }
5633 else
5634   { $as_echo "$as_me:$LINENO: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638   if test "x$ac_ct_RANLIB" = x; then
5639     RANLIB=":"
5640   else
5641     case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647     RANLIB=$ac_ct_RANLIB
5648   fi
5649 else
5650   RANLIB="$ac_cv_prog_RANLIB"
5651 fi
5652
5653 test -z "$RANLIB" && RANLIB=:
5654
5655
5656
5657
5658
5659
5660 # Determine commands to create old-style static archives.
5661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5662 old_postinstall_cmds='chmod 644 $oldlib'
5663 old_postuninstall_cmds=
5664
5665 if test -n "$RANLIB"; then
5666   case $host_os in
5667   openbsd*)
5668     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5669     ;;
5670   *)
5671     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5672     ;;
5673   esac
5674   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5675 fi
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
5707
5708
5709
5710 # If no C compiler was specified, use CC.
5711 LTCC=${LTCC-"$CC"}
5712
5713 # If no C compiler flags were specified, use CFLAGS.
5714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5715
5716 # Allow CC to be a program name with arguments.
5717 compiler=$CC
5718
5719
5720 # Check for command to grab the raw symbol name followed by C symbol from nm.
5721 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5724   $as_echo_n "(cached) " >&6
5725 else
5726
5727 # These are sane defaults that work on at least a few old systems.
5728 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5729
5730 # Character class describing NM global symbol codes.
5731 symcode='[BCDEGRST]'
5732
5733 # Regexp to match symbols that can be accessed directly from C.
5734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5735
5736 # Define system-specific variables.
5737 case $host_os in
5738 aix*)
5739   symcode='[BCDT]'
5740   ;;
5741 cygwin* | mingw* | pw32* | cegcc*)
5742   symcode='[ABCDGISTW]'
5743   ;;
5744 hpux*)
5745   if test "$host_cpu" = ia64; then
5746     symcode='[ABCDEGRST]'
5747   fi
5748   ;;
5749 irix* | nonstopux*)
5750   symcode='[BCDEGRST]'
5751   ;;
5752 osf*)
5753   symcode='[BCDEGQRST]'
5754   ;;
5755 solaris*)
5756   symcode='[BDRT]'
5757   ;;
5758 sco3.2v5*)
5759   symcode='[DT]'
5760   ;;
5761 sysv4.2uw2*)
5762   symcode='[DT]'
5763   ;;
5764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5765   symcode='[ABDT]'
5766   ;;
5767 sysv4)
5768   symcode='[DFNSTU]'
5769   ;;
5770 esac
5771
5772 # If we're using GNU nm, then use its standard symbol codes.
5773 case `$NM -V 2>&1` in
5774 *GNU* | *'with BFD'*)
5775   symcode='[ABCDGIRSTW]' ;;
5776 esac
5777
5778 # Transform an extracted symbol line into a proper C declaration.
5779 # Some systems (esp. on ia64) link data and code symbols differently,
5780 # so use this general approach.
5781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5782
5783 # Transform an extracted symbol line into symbol name and symbol address
5784 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5785 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'"
5786
5787 # Handle CRLF in mingw tool chain
5788 opt_cr=
5789 case $build_os in
5790 mingw*)
5791   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5792   ;;
5793 esac
5794
5795 # Try without a prefix underscore, then with it.
5796 for ac_symprfx in "" "_"; do
5797
5798   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5799   symxfrm="\\1 $ac_symprfx\\2 \\2"
5800
5801   # Write the raw and C identifiers.
5802   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5803     # Fake it for dumpbin and say T for any non-static function
5804     # and D for any global variable.
5805     # Also find C++ and __fastcall symbols from MSVC++,
5806     # which start with @ or ?.
5807     lt_cv_sys_global_symbol_pipe="$AWK '"\
5808 "     {last_section=section; section=\$ 3};"\
5809 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5810 "     \$ 0!~/External *\|/{next};"\
5811 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5812 "     {if(hide[section]) next};"\
5813 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5814 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5815 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5816 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5817 "     ' prfx=^$ac_symprfx"
5818   else
5819     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5820   fi
5821
5822   # Check to see that the pipe works correctly.
5823   pipe_works=no
5824
5825   rm -f conftest*
5826   cat > conftest.$ac_ext <<_LT_EOF
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5830 char nm_test_var;
5831 void nm_test_func(void);
5832 void nm_test_func(void){}
5833 #ifdef __cplusplus
5834 }
5835 #endif
5836 int main(){nm_test_var='a';nm_test_func();return(0);}
5837 _LT_EOF
5838
5839   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840   (eval $ac_compile) 2>&5
5841   ac_status=$?
5842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; then
5844     # Now try to grab the symbols.
5845     nlist=conftest.nm
5846     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5847   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5848   ac_status=$?
5849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } && test -s "$nlist"; then
5851       # Try sorting and uniquifying the output.
5852       if sort "$nlist" | uniq > "$nlist"T; then
5853         mv -f "$nlist"T "$nlist"
5854       else
5855         rm -f "$nlist"T
5856       fi
5857
5858       # Make sure that we snagged all the symbols we need.
5859       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5860         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5861           cat <<_LT_EOF > conftest.$ac_ext
5862 #ifdef __cplusplus
5863 extern "C" {
5864 #endif
5865
5866 _LT_EOF
5867           # Now generate the symbol file.
5868           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5869
5870           cat <<_LT_EOF >> conftest.$ac_ext
5871
5872 /* The mapping between symbol names and symbols.  */
5873 const struct {
5874   const char *name;
5875   void       *address;
5876 }
5877 lt__PROGRAM__LTX_preloaded_symbols[] =
5878 {
5879   { "@PROGRAM@", (void *) 0 },
5880 _LT_EOF
5881           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5882           cat <<\_LT_EOF >> conftest.$ac_ext
5883   {0, (void *) 0}
5884 };
5885
5886 /* This works around a problem in FreeBSD linker */
5887 #ifdef FREEBSD_WORKAROUND
5888 static const void *lt_preloaded_setup() {
5889   return lt__PROGRAM__LTX_preloaded_symbols;
5890 }
5891 #endif
5892
5893 #ifdef __cplusplus
5894 }
5895 #endif
5896 _LT_EOF
5897           # Now try linking the two files.
5898           mv conftest.$ac_objext conftstm.$ac_objext
5899           lt_save_LIBS="$LIBS"
5900           lt_save_CFLAGS="$CFLAGS"
5901           LIBS="conftstm.$ac_objext"
5902           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5903           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904   (eval $ac_link) 2>&5
5905   ac_status=$?
5906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5908             pipe_works=yes
5909           fi
5910           LIBS="$lt_save_LIBS"
5911           CFLAGS="$lt_save_CFLAGS"
5912         else
5913           echo "cannot find nm_test_func in $nlist" >&5
5914         fi
5915       else
5916         echo "cannot find nm_test_var in $nlist" >&5
5917       fi
5918     else
5919       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5920     fi
5921   else
5922     echo "$progname: failed program was:" >&5
5923     cat conftest.$ac_ext >&5
5924   fi
5925   rm -rf conftest* conftst*
5926
5927   # Do not use the global_symbol_pipe unless it works.
5928   if test "$pipe_works" = yes; then
5929     break
5930   else
5931     lt_cv_sys_global_symbol_pipe=
5932   fi
5933 done
5934
5935 fi
5936
5937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5938   lt_cv_sys_global_symbol_to_cdecl=
5939 fi
5940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5941   { $as_echo "$as_me:$LINENO: result: failed" >&5
5942 $as_echo "failed" >&6; }
5943 else
5944   { $as_echo "$as_me:$LINENO: result: ok" >&5
5945 $as_echo "ok" >&6; }
5946 fi
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 # Check whether --enable-libtool-lock was given.
5971 if test "${enable_libtool_lock+set}" = set; then
5972   enableval=$enable_libtool_lock;
5973 fi
5974
5975 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5976
5977 # Some flags need to be propagated to the compiler or linker for good
5978 # libtool support.
5979 case $host in
5980 ia64-*-hpux*)
5981   # Find out which ABI we are using.
5982   echo 'int i;' > conftest.$ac_ext
5983   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984   (eval $ac_compile) 2>&5
5985   ac_status=$?
5986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; then
5988     case `/usr/bin/file conftest.$ac_objext` in
5989       *ELF-32*)
5990         HPUX_IA64_MODE="32"
5991         ;;
5992       *ELF-64*)
5993         HPUX_IA64_MODE="64"
5994         ;;
5995     esac
5996   fi
5997   rm -rf conftest*
5998   ;;
5999 *-*-irix6*)
6000   # Find out which ABI we are using.
6001   echo '#line 6001 "configure"' > conftest.$ac_ext
6002   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003   (eval $ac_compile) 2>&5
6004   ac_status=$?
6005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; then
6007     if test "$lt_cv_prog_gnu_ld" = yes; then
6008       case `/usr/bin/file conftest.$ac_objext` in
6009         *32-bit*)
6010           LD="${LD-ld} -melf32bsmip"
6011           ;;
6012         *N32*)
6013           LD="${LD-ld} -melf32bmipn32"
6014           ;;
6015         *64-bit*)
6016           LD="${LD-ld} -melf64bmip"
6017         ;;
6018       esac
6019     else
6020       case `/usr/bin/file conftest.$ac_objext` in
6021         *32-bit*)
6022           LD="${LD-ld} -32"
6023           ;;
6024         *N32*)
6025           LD="${LD-ld} -n32"
6026           ;;
6027         *64-bit*)
6028           LD="${LD-ld} -64"
6029           ;;
6030       esac
6031     fi
6032   fi
6033   rm -rf conftest*
6034   ;;
6035
6036 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6037 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6038   # Find out which ABI we are using.
6039   echo 'int i;' > conftest.$ac_ext
6040   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041   (eval $ac_compile) 2>&5
6042   ac_status=$?
6043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; then
6045     case `/usr/bin/file conftest.o` in
6046       *32-bit*)
6047         case $host in
6048           x86_64-*kfreebsd*-gnu)
6049             LD="${LD-ld} -m elf_i386_fbsd"
6050             ;;
6051           x86_64-*linux*)
6052             LD="${LD-ld} -m elf_i386"
6053             ;;
6054           ppc64-*linux*|powerpc64-*linux*)
6055             LD="${LD-ld} -m elf32ppclinux"
6056             ;;
6057           s390x-*linux*)
6058             LD="${LD-ld} -m elf_s390"
6059             ;;
6060           sparc64-*linux*)
6061             LD="${LD-ld} -m elf32_sparc"
6062             ;;
6063         esac
6064         ;;
6065       *64-bit*)
6066         case $host in
6067           x86_64-*kfreebsd*-gnu)
6068             LD="${LD-ld} -m elf_x86_64_fbsd"
6069             ;;
6070           x86_64-*linux*)
6071             LD="${LD-ld} -m elf_x86_64"
6072             ;;
6073           ppc*-*linux*|powerpc*-*linux*)
6074             LD="${LD-ld} -m elf64ppc"
6075             ;;
6076           s390*-*linux*|s390*-*tpf*)
6077             LD="${LD-ld} -m elf64_s390"
6078             ;;
6079           sparc*-*linux*)
6080             LD="${LD-ld} -m elf64_sparc"
6081             ;;
6082         esac
6083         ;;
6084     esac
6085   fi
6086   rm -rf conftest*
6087   ;;
6088
6089 *-*-sco3.2v5*)
6090   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6091   SAVE_CFLAGS="$CFLAGS"
6092   CFLAGS="$CFLAGS -belf"
6093   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6095 if test "${lt_cv_cc_needs_belf+set}" = set; then
6096   $as_echo_n "(cached) " >&6
6097 else
6098   ac_ext=c
6099 ac_cpp='$CPP $CPPFLAGS'
6100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6103
6104      cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110
6111 int
6112 main ()
6113 {
6114
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (ac_try="$ac_link"
6121 case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127   (eval "$ac_link") 2>conftest.er1
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
6131   cat conftest.err >&5
6132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } && {
6134          test -z "$ac_c_werror_flag" ||
6135          test ! -s conftest.err
6136        } && test -s conftest$ac_exeext && {
6137          test "$cross_compiling" = yes ||
6138          $as_test_x conftest$ac_exeext
6139        }; then
6140   lt_cv_cc_needs_belf=yes
6141 else
6142   $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145         lt_cv_cc_needs_belf=no
6146 fi
6147
6148 rm -rf conftest.dSYM
6149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6150       conftest$ac_exeext conftest.$ac_ext
6151      ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157 fi
6158 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6159 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6160   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6161     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6162     CFLAGS="$SAVE_CFLAGS"
6163   fi
6164   ;;
6165 sparc*-*solaris*)
6166   # Find out which ABI we are using.
6167   echo 'int i;' > conftest.$ac_ext
6168   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169   (eval $ac_compile) 2>&5
6170   ac_status=$?
6171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; then
6173     case `/usr/bin/file conftest.o` in
6174     *64-bit*)
6175       case $lt_cv_prog_gnu_ld in
6176       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6177       *)
6178         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6179           LD="${LD-ld} -64"
6180         fi
6181         ;;
6182       esac
6183       ;;
6184     esac
6185   fi
6186   rm -rf conftest*
6187   ;;
6188 esac
6189
6190 need_locks="$enable_libtool_lock"
6191
6192
6193   case $host_os in
6194     rhapsody* | darwin*)
6195     if test -n "$ac_tool_prefix"; then
6196   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6201   $as_echo_n "(cached) " >&6
6202 else
6203   if test -n "$DSYMUTIL"; then
6204   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211   for ac_exec_ext in '' $ac_executable_extensions; do
6212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6224 if test -n "$DSYMUTIL"; then
6225   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6226 $as_echo "$DSYMUTIL" >&6; }
6227 else
6228   { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_DSYMUTIL"; then
6235   ac_ct_DSYMUTIL=$DSYMUTIL
6236   # Extract the first word of "dsymutil", so it can be a program name with args.
6237 set dummy dsymutil; ac_word=$2
6238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6241   $as_echo_n "(cached) " >&6
6242 else
6243   if test -n "$ac_ct_DSYMUTIL"; then
6244   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6264 if test -n "$ac_ct_DSYMUTIL"; then
6265   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6266 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6267 else
6268   { $as_echo "$as_me:$LINENO: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272   if test "x$ac_ct_DSYMUTIL" = x; then
6273     DSYMUTIL=":"
6274   else
6275     case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     DSYMUTIL=$ac_ct_DSYMUTIL
6282   fi
6283 else
6284   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6285 fi
6286
6287     if test -n "$ac_tool_prefix"; then
6288   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$NMEDIT"; then
6296   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 NMEDIT=$ac_cv_prog_NMEDIT
6316 if test -n "$NMEDIT"; then
6317   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6318 $as_echo "$NMEDIT" >&6; }
6319 else
6320   { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 if test -z "$ac_cv_prog_NMEDIT"; then
6327   ac_ct_NMEDIT=$NMEDIT
6328   # Extract the first word of "nmedit", so it can be a program name with args.
6329 set dummy nmedit; ac_word=$2
6330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$ac_ct_NMEDIT"; then
6336   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6356 if test -n "$ac_ct_NMEDIT"; then
6357   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6358 $as_echo "$ac_ct_NMEDIT" >&6; }
6359 else
6360   { $as_echo "$as_me:$LINENO: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364   if test "x$ac_ct_NMEDIT" = x; then
6365     NMEDIT=":"
6366   else
6367     case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373     NMEDIT=$ac_ct_NMEDIT
6374   fi
6375 else
6376   NMEDIT="$ac_cv_prog_NMEDIT"
6377 fi
6378
6379     if test -n "$ac_tool_prefix"; then
6380   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_LIPO+set}" = set; then
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$LIPO"; then
6388   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395   for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 LIPO=$ac_cv_prog_LIPO
6408 if test -n "$LIPO"; then
6409   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6410 $as_echo "$LIPO" >&6; }
6411 else
6412   { $as_echo "$as_me:$LINENO: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416
6417 fi
6418 if test -z "$ac_cv_prog_LIPO"; then
6419   ac_ct_LIPO=$LIPO
6420   # Extract the first word of "lipo", so it can be a program name with args.
6421 set dummy lipo; ac_word=$2
6422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$ac_ct_LIPO"; then
6428   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435   for ac_exec_ext in '' $ac_executable_extensions; do
6436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437     ac_cv_prog_ac_ct_LIPO="lipo"
6438     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6448 if test -n "$ac_ct_LIPO"; then
6449   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6450 $as_echo "$ac_ct_LIPO" >&6; }
6451 else
6452   { $as_echo "$as_me:$LINENO: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456   if test "x$ac_ct_LIPO" = x; then
6457     LIPO=":"
6458   else
6459     case $cross_compiling:$ac_tool_warned in
6460 yes:)
6461 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6464 esac
6465     LIPO=$ac_ct_LIPO
6466   fi
6467 else
6468   LIPO="$ac_cv_prog_LIPO"
6469 fi
6470
6471     if test -n "$ac_tool_prefix"; then
6472   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}otool; ac_word=$2
6474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_OTOOL+set}" = set; then
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$OTOOL"; then
6480   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487   for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 OTOOL=$ac_cv_prog_OTOOL
6500 if test -n "$OTOOL"; then
6501   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6502 $as_echo "$OTOOL" >&6; }
6503 else
6504   { $as_echo "$as_me:$LINENO: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 fi
6510 if test -z "$ac_cv_prog_OTOOL"; then
6511   ac_ct_OTOOL=$OTOOL
6512   # Extract the first word of "otool", so it can be a program name with args.
6513 set dummy otool; ac_word=$2
6514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$ac_ct_OTOOL"; then
6520   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527   for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_ac_ct_OTOOL="otool"
6530     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6540 if test -n "$ac_ct_OTOOL"; then
6541   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6542 $as_echo "$ac_ct_OTOOL" >&6; }
6543 else
6544   { $as_echo "$as_me:$LINENO: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$ac_ct_OTOOL" = x; then
6549     OTOOL=":"
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     OTOOL=$ac_ct_OTOOL
6558   fi
6559 else
6560   OTOOL="$ac_cv_prog_OTOOL"
6561 fi
6562
6563     if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$OTOOL64"; then
6572   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 OTOOL64=$ac_cv_prog_OTOOL64
6592 if test -n "$OTOOL64"; then
6593   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6594 $as_echo "$OTOOL64" >&6; }
6595 else
6596   { $as_echo "$as_me:$LINENO: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_OTOOL64"; then
6603   ac_ct_OTOOL64=$OTOOL64
6604   # Extract the first word of "otool64", so it can be a program name with args.
6605 set dummy otool64; ac_word=$2
6606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$ac_ct_OTOOL64"; then
6612   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_OTOOL64="otool64"
6622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6632 if test -n "$ac_ct_OTOOL64"; then
6633   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6634 $as_echo "$ac_ct_OTOOL64" >&6; }
6635 else
6636   { $as_echo "$as_me:$LINENO: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_OTOOL64" = x; then
6641     OTOOL64=":"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6648 esac
6649     OTOOL64=$ac_ct_OTOOL64
6650   fi
6651 else
6652   OTOOL64="$ac_cv_prog_OTOOL64"
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6682 $as_echo_n "checking for -single_module linker flag... " >&6; }
6683 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6684   $as_echo_n "(cached) " >&6
6685 else
6686   lt_cv_apple_cc_single_mod=no
6687       if test -z "${LT_MULTI_MODULE}"; then
6688         # By default we will add the -single_module flag. You can override
6689         # by either setting the environment variable LT_MULTI_MODULE
6690         # non-empty at configure time, or by adding -multi_module to the
6691         # link flags.
6692         rm -rf libconftest.dylib*
6693         echo "int foo(void){return 1;}" > conftest.c
6694         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6695 -dynamiclib -Wl,-single_module conftest.c" >&5
6696         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6697           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6698         _lt_result=$?
6699         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6700           lt_cv_apple_cc_single_mod=yes
6701         else
6702           cat conftest.err >&5
6703         fi
6704         rm -rf libconftest.dylib*
6705         rm -f conftest.*
6706       fi
6707 fi
6708 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6709 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6710     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6711 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6712 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6713   $as_echo_n "(cached) " >&6
6714 else
6715   lt_cv_ld_exported_symbols_list=no
6716       save_LDFLAGS=$LDFLAGS
6717       echo "_main" > conftest.sym
6718       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6719       cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725
6726 int
6727 main ()
6728 {
6729
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (ac_try="$ac_link"
6736 case "(($ac_try" in
6737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738   *) ac_try_echo=$ac_try;;
6739 esac
6740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741 $as_echo "$ac_try_echo") >&5
6742   (eval "$ac_link") 2>conftest.er1
6743   ac_status=$?
6744   grep -v '^ *+' conftest.er1 >conftest.err
6745   rm -f conftest.er1
6746   cat conftest.err >&5
6747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); } && {
6749          test -z "$ac_c_werror_flag" ||
6750          test ! -s conftest.err
6751        } && test -s conftest$ac_exeext && {
6752          test "$cross_compiling" = yes ||
6753          $as_test_x conftest$ac_exeext
6754        }; then
6755   lt_cv_ld_exported_symbols_list=yes
6756 else
6757   $as_echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6759
6760         lt_cv_ld_exported_symbols_list=no
6761 fi
6762
6763 rm -rf conftest.dSYM
6764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6765       conftest$ac_exeext conftest.$ac_ext
6766         LDFLAGS="$save_LDFLAGS"
6767
6768 fi
6769 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6771     case $host_os in
6772     rhapsody* | darwin1.[012])
6773       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6774     darwin1.*)
6775       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776     darwin*) # darwin 5.x on
6777       # if running on 10.5 or later, the deployment target defaults
6778       # to the OS version, if on x86, and 10.4, the deployment
6779       # target defaults to 10.4. Don't you love it?
6780       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6781         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6782           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6783         10.[012]*)
6784           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6785         10.*)
6786           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6787       esac
6788     ;;
6789   esac
6790     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6791       _lt_dar_single_mod='$single_module'
6792     fi
6793     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6794       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6795     else
6796       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6797     fi
6798     if test "$DSYMUTIL" != ":"; then
6799       _lt_dsymutil='~$DSYMUTIL $lib || :'
6800     else
6801       _lt_dsymutil=
6802     fi
6803     ;;
6804   esac
6805
6806 ac_ext=c
6807 ac_cpp='$CPP $CPPFLAGS'
6808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6813 # On Suns, sometimes $CPP names a directory.
6814 if test -n "$CPP" && test -d "$CPP"; then
6815   CPP=
6816 fi
6817 if test -z "$CPP"; then
6818   if test "${ac_cv_prog_CPP+set}" = set; then
6819   $as_echo_n "(cached) " >&6
6820 else
6821       # Double quotes because CPP needs to be expanded
6822     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6823     do
6824       ac_preproc_ok=false
6825 for ac_c_preproc_warn_flag in '' yes
6826 do
6827   # Use a header file that comes with gcc, so configuring glibc
6828   # with a fresh cross-compiler works.
6829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830   # <limits.h> exists even on freestanding compilers.
6831   # On the NeXT, cc -E runs the code through the compiler's parser,
6832   # not just through cpp. "Syntax error" is here to catch this case.
6833   cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 #ifdef __STDC__
6840 # include <limits.h>
6841 #else
6842 # include <assert.h>
6843 #endif
6844                      Syntax error
6845 _ACEOF
6846 if { (ac_try="$ac_cpp conftest.$ac_ext"
6847 case "(($ac_try" in
6848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849   *) ac_try_echo=$ac_try;;
6850 esac
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6854   ac_status=$?
6855   grep -v '^ *+' conftest.er1 >conftest.err
6856   rm -f conftest.er1
6857   cat conftest.err >&5
6858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } >/dev/null && {
6860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6861          test ! -s conftest.err
6862        }; then
6863   :
6864 else
6865   $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868   # Broken: fails on valid input.
6869 continue
6870 fi
6871
6872 rm -f conftest.err conftest.$ac_ext
6873
6874   # OK, works on sane cases.  Now check whether nonexistent headers
6875   # can be detected and how.
6876   cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882 #include <ac_nonexistent.h>
6883 _ACEOF
6884 if { (ac_try="$ac_cpp conftest.$ac_ext"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } >/dev/null && {
6898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6899          test ! -s conftest.err
6900        }; then
6901   # Broken: success on invalid input.
6902 continue
6903 else
6904   $as_echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907   # Passes both tests.
6908 ac_preproc_ok=:
6909 break
6910 fi
6911
6912 rm -f conftest.err conftest.$ac_ext
6913
6914 done
6915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916 rm -f conftest.err conftest.$ac_ext
6917 if $ac_preproc_ok; then
6918   break
6919 fi
6920
6921     done
6922     ac_cv_prog_CPP=$CPP
6923
6924 fi
6925   CPP=$ac_cv_prog_CPP
6926 else
6927   ac_cv_prog_CPP=$CPP
6928 fi
6929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6930 $as_echo "$CPP" >&6; }
6931 ac_preproc_ok=false
6932 for ac_c_preproc_warn_flag in '' yes
6933 do
6934   # Use a header file that comes with gcc, so configuring glibc
6935   # with a fresh cross-compiler works.
6936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937   # <limits.h> exists even on freestanding compilers.
6938   # On the NeXT, cc -E runs the code through the compiler's parser,
6939   # not just through cpp. "Syntax error" is here to catch this case.
6940   cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 #ifdef __STDC__
6947 # include <limits.h>
6948 #else
6949 # include <assert.h>
6950 #endif
6951                      Syntax error
6952 _ACEOF
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6954 case "(($ac_try" in
6955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956   *) ac_try_echo=$ac_try;;
6957 esac
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } >/dev/null && {
6967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968          test ! -s conftest.err
6969        }; then
6970   :
6971 else
6972   $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975   # Broken: fails on valid input.
6976 continue
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_ext
6980
6981   # OK, works on sane cases.  Now check whether nonexistent headers
6982   # can be detected and how.
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <ac_nonexistent.h>
6990 _ACEOF
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } >/dev/null && {
7005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7006          test ! -s conftest.err
7007        }; then
7008   # Broken: success on invalid input.
7009 continue
7010 else
7011   $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014   # Passes both tests.
7015 ac_preproc_ok=:
7016 break
7017 fi
7018
7019 rm -f conftest.err conftest.$ac_ext
7020
7021 done
7022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7023 rm -f conftest.err conftest.$ac_ext
7024 if $ac_preproc_ok; then
7025   :
7026 else
7027   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7030 See \`config.log' for more details." >&5
7031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7032 See \`config.log' for more details." >&2;}
7033    { (exit 1); exit 1; }; }; }
7034 fi
7035
7036 ac_ext=c
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041
7042
7043 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7044 $as_echo_n "checking for ANSI C header files... " >&6; }
7045 if test "${ac_cv_header_stdc+set}" = set; then
7046   $as_echo_n "(cached) " >&6
7047 else
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #include <stdlib.h>
7055 #include <stdarg.h>
7056 #include <string.h>
7057 #include <float.h>
7058
7059 int
7060 main ()
7061 {
7062
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071   *) ac_try_echo=$ac_try;;
7072 esac
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075   (eval "$ac_compile") 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } && {
7082          test -z "$ac_c_werror_flag" ||
7083          test ! -s conftest.err
7084        } && test -s conftest.$ac_objext; then
7085   ac_cv_header_stdc=yes
7086 else
7087   $as_echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090         ac_cv_header_stdc=no
7091 fi
7092
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094
7095 if test $ac_cv_header_stdc = yes; then
7096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7097   cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103 #include <string.h>
7104
7105 _ACEOF
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107   $EGREP "memchr" >/dev/null 2>&1; then
7108   :
7109 else
7110   ac_cv_header_stdc=no
7111 fi
7112 rm -f conftest*
7113
7114 fi
7115
7116 if test $ac_cv_header_stdc = yes; then
7117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <stdlib.h>
7125
7126 _ACEOF
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128   $EGREP "free" >/dev/null 2>&1; then
7129   :
7130 else
7131   ac_cv_header_stdc=no
7132 fi
7133 rm -f conftest*
7134
7135 fi
7136
7137 if test $ac_cv_header_stdc = yes; then
7138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7139   if test "$cross_compiling" = yes; then
7140   :
7141 else
7142   cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 #include <ctype.h>
7149 #include <stdlib.h>
7150 #if ((' ' & 0x0FF) == 0x020)
7151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7153 #else
7154 # define ISLOWER(c) \
7155                    (('a' <= (c) && (c) <= 'i') \
7156                      || ('j' <= (c) && (c) <= 'r') \
7157                      || ('s' <= (c) && (c) <= 'z'))
7158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7159 #endif
7160
7161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7162 int
7163 main ()
7164 {
7165   int i;
7166   for (i = 0; i < 256; i++)
7167     if (XOR (islower (i), ISLOWER (i))
7168         || toupper (i) != TOUPPER (i))
7169       return 2;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest$ac_exeext
7174 if { (ac_try="$ac_link"
7175 case "(($ac_try" in
7176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177   *) ac_try_echo=$ac_try;;
7178 esac
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181   (eval "$ac_link") 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185   { (case "(($ac_try" in
7186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187   *) ac_try_echo=$ac_try;;
7188 esac
7189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191   (eval "$ac_try") 2>&5
7192   ac_status=$?
7193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; }; then
7195   :
7196 else
7197   $as_echo "$as_me: program exited with status $ac_status" >&5
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 ( exit $ac_status )
7202 ac_cv_header_stdc=no
7203 fi
7204 rm -rf conftest.dSYM
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7206 fi
7207
7208
7209 fi
7210 fi
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7212 $as_echo "$ac_cv_header_stdc" >&6; }
7213 if test $ac_cv_header_stdc = yes; then
7214
7215 cat >>confdefs.h <<\_ACEOF
7216 #define STDC_HEADERS 1
7217 _ACEOF
7218
7219 fi
7220
7221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7232                   inttypes.h stdint.h unistd.h
7233 do
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7236 $as_echo_n "checking for $ac_header... " >&6; }
7237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7238   $as_echo_n "(cached) " >&6
7239 else
7240   cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246 $ac_includes_default
7247
7248 #include <$ac_header>
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254   *) ac_try_echo=$ac_try;;
7255 esac
7256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258   (eval "$ac_compile") 2>conftest.er1
7259   ac_status=$?
7260   grep -v '^ *+' conftest.er1 >conftest.err
7261   rm -f conftest.er1
7262   cat conftest.err >&5
7263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } && {
7265          test -z "$ac_c_werror_flag" ||
7266          test ! -s conftest.err
7267        } && test -s conftest.$ac_objext; then
7268   eval "$as_ac_Header=yes"
7269 else
7270   $as_echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273         eval "$as_ac_Header=no"
7274 fi
7275
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 fi
7278 ac_res=`eval 'as_val=${'$as_ac_Header'}
7279                  $as_echo "$as_val"'`
7280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7281 $as_echo "$ac_res" >&6; }
7282 as_val=`eval 'as_val=${'$as_ac_Header'}
7283                  $as_echo "$as_val"'`
7284    if test "x$as_val" = x""yes; then
7285   cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287 _ACEOF
7288
7289 fi
7290
7291 done
7292
7293
7294
7295 for ac_header in dlfcn.h
7296 do
7297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 $as_echo_n "checking for $ac_header... " >&6; }
7300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7301   $as_echo_n "(cached) " >&6
7302 else
7303   cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 $ac_includes_default
7310
7311 #include <$ac_header>
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7315 case "(($ac_try" in
7316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317   *) ac_try_echo=$ac_try;;
7318 esac
7319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7320 $as_echo "$ac_try_echo") >&5
7321   (eval "$ac_compile") 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } && {
7328          test -z "$ac_c_werror_flag" ||
7329          test ! -s conftest.err
7330        } && test -s conftest.$ac_objext; then
7331   eval "$as_ac_Header=yes"
7332 else
7333   $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336         eval "$as_ac_Header=no"
7337 fi
7338
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 ac_res=`eval 'as_val=${'$as_ac_Header'}
7342                  $as_echo "$as_val"'`
7343                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7344 $as_echo "$ac_res" >&6; }
7345 as_val=`eval 'as_val=${'$as_ac_Header'}
7346                  $as_echo "$as_val"'`
7347    if test "x$as_val" = x""yes; then
7348   cat >>confdefs.h <<_ACEOF
7349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7350 _ACEOF
7351
7352 fi
7353
7354 done
7355
7356
7357
7358 # Set options
7359
7360
7361
7362         enable_dlopen=no
7363
7364
7365   enable_win32_dll=no
7366
7367
7368             # Check whether --enable-shared was given.
7369 if test "${enable_shared+set}" = set; then
7370   enableval=$enable_shared; p=${PACKAGE-default}
7371     case $enableval in
7372     yes) enable_shared=yes ;;
7373     no) enable_shared=no ;;
7374     *)
7375       enable_shared=no
7376       # Look at the argument we got.  We use all the common list separators.
7377       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378       for pkg in $enableval; do
7379         IFS="$lt_save_ifs"
7380         if test "X$pkg" = "X$p"; then
7381           enable_shared=yes
7382         fi
7383       done
7384       IFS="$lt_save_ifs"
7385       ;;
7386     esac
7387 else
7388   enable_shared=yes
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399   # Check whether --enable-static was given.
7400 if test "${enable_static+set}" = set; then
7401   enableval=$enable_static; p=${PACKAGE-default}
7402     case $enableval in
7403     yes) enable_static=yes ;;
7404     no) enable_static=no ;;
7405     *)
7406      enable_static=no
7407       # Look at the argument we got.  We use all the common list separators.
7408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409       for pkg in $enableval; do
7410         IFS="$lt_save_ifs"
7411         if test "X$pkg" = "X$p"; then
7412           enable_static=yes
7413         fi
7414       done
7415       IFS="$lt_save_ifs"
7416       ;;
7417     esac
7418 else
7419   enable_static=yes
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 # Check whether --with-pic was given.
7432 if test "${with_pic+set}" = set; then
7433   withval=$with_pic; pic_mode="$withval"
7434 else
7435   pic_mode=default
7436 fi
7437
7438
7439 test -z "$pic_mode" && pic_mode=default
7440
7441
7442
7443
7444
7445
7446
7447   # Check whether --enable-fast-install was given.
7448 if test "${enable_fast_install+set}" = set; then
7449   enableval=$enable_fast_install; p=${PACKAGE-default}
7450     case $enableval in
7451     yes) enable_fast_install=yes ;;
7452     no) enable_fast_install=no ;;
7453     *)
7454       enable_fast_install=no
7455       # Look at the argument we got.  We use all the common list separators.
7456       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457       for pkg in $enableval; do
7458         IFS="$lt_save_ifs"
7459         if test "X$pkg" = "X$p"; then
7460           enable_fast_install=yes
7461         fi
7462       done
7463       IFS="$lt_save_ifs"
7464       ;;
7465     esac
7466 else
7467   enable_fast_install=yes
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 # This can be used to rebuild libtool when needed
7481 LIBTOOL_DEPS="$ltmain"
7482
7483 # Always use our own libtool.
7484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510 test -z "$LN_S" && LN_S="ln -s"
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525 if test -n "${ZSH_VERSION+set}" ; then
7526    setopt NO_GLOB_SUBST
7527 fi
7528
7529 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7530 $as_echo_n "checking for objdir... " >&6; }
7531 if test "${lt_cv_objdir+set}" = set; then
7532   $as_echo_n "(cached) " >&6
7533 else
7534   rm -f .libs 2>/dev/null
7535 mkdir .libs 2>/dev/null
7536 if test -d .libs; then
7537   lt_cv_objdir=.libs
7538 else
7539   # MS-DOS does not allow filenames that begin with a dot.
7540   lt_cv_objdir=_libs
7541 fi
7542 rmdir .libs 2>/dev/null
7543 fi
7544 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7545 $as_echo "$lt_cv_objdir" >&6; }
7546 objdir=$lt_cv_objdir
7547
7548
7549
7550
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define LT_OBJDIR "$lt_cv_objdir/"
7554 _ACEOF
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 case $host_os in
7573 aix3*)
7574   # AIX sometimes has problems with the GCC collect2 program.  For some
7575   # reason, if we set the COLLECT_NAMES environment variable, the problems
7576   # vanish in a puff of smoke.
7577   if test "X${COLLECT_NAMES+set}" != Xset; then
7578     COLLECT_NAMES=
7579     export COLLECT_NAMES
7580   fi
7581   ;;
7582 esac
7583
7584 # Sed substitution that helps us do robust quoting.  It backslashifies
7585 # metacharacters that are still active within double-quoted strings.
7586 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7587
7588 # Same as above, but do not quote variable references.
7589 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7590
7591 # Sed substitution to delay expansion of an escaped shell variable in a
7592 # double_quote_subst'ed string.
7593 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7594
7595 # Sed substitution to delay expansion of an escaped single quote.
7596 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7597
7598 # Sed substitution to avoid accidental globbing in evaled expressions
7599 no_glob_subst='s/\*/\\\*/g'
7600
7601 # Global variables:
7602 ofile=libtool
7603 can_build_shared=yes
7604
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7607 libext=a
7608
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7610
7611 old_CC="$CC"
7612 old_CFLAGS="$CFLAGS"
7613
7614 # Set sane defaults for various variables
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$LD" && LD=ld
7619 test -z "$ac_objext" && ac_objext=o
7620
7621 for cc_temp in $compiler""; do
7622   case $cc_temp in
7623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7625     \-*) ;;
7626     *) break;;
7627   esac
7628 done
7629 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7630
7631
7632 # Only perform the check for file, if the check method requires it
7633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7634 case $deplibs_check_method in
7635 file_magic*)
7636   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7639 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7640   $as_echo_n "(cached) " >&6
7641 else
7642   case $MAGIC_CMD in
7643 [\\/*] |  ?:[\\/]*)
7644   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7645   ;;
7646 *)
7647   lt_save_MAGIC_CMD="$MAGIC_CMD"
7648   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650   for ac_dir in $ac_dummy; do
7651     IFS="$lt_save_ifs"
7652     test -z "$ac_dir" && ac_dir=.
7653     if test -f $ac_dir/${ac_tool_prefix}file; then
7654       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655       if test -n "$file_magic_test_file"; then
7656         case $deplibs_check_method in
7657         "file_magic "*)
7658           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661             $EGREP "$file_magic_regex" > /dev/null; then
7662             :
7663           else
7664             cat <<_LT_EOF 1>&2
7665
7666 *** Warning: the command libtool uses to detect shared libraries,
7667 *** $file_magic_cmd, produces output that libtool cannot recognize.
7668 *** The result is that libtool may fail to recognize shared libraries
7669 *** as such.  This will affect the creation of libtool libraries that
7670 *** depend on shared libraries, but programs linked with such libtool
7671 *** libraries will work regardless of this problem.  Nevertheless, you
7672 *** may want to report the problem to your system manager and/or to
7673 *** bug-libtool@gnu.org
7674
7675 _LT_EOF
7676           fi ;;
7677         esac
7678       fi
7679       break
7680     fi
7681   done
7682   IFS="$lt_save_ifs"
7683   MAGIC_CMD="$lt_save_MAGIC_CMD"
7684   ;;
7685 esac
7686 fi
7687
7688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689 if test -n "$MAGIC_CMD"; then
7690   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7691 $as_echo "$MAGIC_CMD" >&6; }
7692 else
7693   { $as_echo "$as_me:$LINENO: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698
7699
7700
7701 if test -z "$lt_cv_path_MAGIC_CMD"; then
7702   if test -n "$ac_tool_prefix"; then
7703     { $as_echo "$as_me:$LINENO: checking for file" >&5
7704 $as_echo_n "checking for file... " >&6; }
7705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7706   $as_echo_n "(cached) " >&6
7707 else
7708   case $MAGIC_CMD in
7709 [\\/*] |  ?:[\\/]*)
7710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7711   ;;
7712 *)
7713   lt_save_MAGIC_CMD="$MAGIC_CMD"
7714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7715   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7716   for ac_dir in $ac_dummy; do
7717     IFS="$lt_save_ifs"
7718     test -z "$ac_dir" && ac_dir=.
7719     if test -f $ac_dir/file; then
7720       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7721       if test -n "$file_magic_test_file"; then
7722         case $deplibs_check_method in
7723         "file_magic "*)
7724           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7725           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7727             $EGREP "$file_magic_regex" > /dev/null; then
7728             :
7729           else
7730             cat <<_LT_EOF 1>&2
7731
7732 *** Warning: the command libtool uses to detect shared libraries,
7733 *** $file_magic_cmd, produces output that libtool cannot recognize.
7734 *** The result is that libtool may fail to recognize shared libraries
7735 *** as such.  This will affect the creation of libtool libraries that
7736 *** depend on shared libraries, but programs linked with such libtool
7737 *** libraries will work regardless of this problem.  Nevertheless, you
7738 *** may want to report the problem to your system manager and/or to
7739 *** bug-libtool@gnu.org
7740
7741 _LT_EOF
7742           fi ;;
7743         esac
7744       fi
7745       break
7746     fi
7747   done
7748   IFS="$lt_save_ifs"
7749   MAGIC_CMD="$lt_save_MAGIC_CMD"
7750   ;;
7751 esac
7752 fi
7753
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if test -n "$MAGIC_CMD"; then
7756   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7757 $as_echo "$MAGIC_CMD" >&6; }
7758 else
7759   { $as_echo "$as_me:$LINENO: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763
7764   else
7765     MAGIC_CMD=:
7766   fi
7767 fi
7768
7769   fi
7770   ;;
7771 esac
7772
7773 # Use C for the default configuration in the libtool script
7774
7775 lt_save_CC="$CC"
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 # Source file extension for C test sources.
7784 ac_ext=c
7785
7786 # Object file extension for compiled C test sources.
7787 objext=o
7788 objext=$objext
7789
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7792
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7795
7796
7797
7798
7799
7800
7801
7802 # If no C compiler was specified, use CC.
7803 LTCC=${LTCC-"$CC"}
7804
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7807
7808 # Allow CC to be a program name with arguments.
7809 compiler=$CC
7810
7811 # Save the default compiler, since it gets overwritten when the other
7812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7813 compiler_DEFAULT=$CC
7814
7815 # save warnings/boilerplate of simple test code
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_compiler_boilerplate=`cat conftest.err`
7820 $RM conftest*
7821
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_linker_boilerplate=`cat conftest.err`
7826 $RM -r conftest*
7827
7828
7829 ## CAVEAT EMPTOR:
7830 ## There is no encapsulation within the following macros, do not change
7831 ## the running order or otherwise move them around unless you know exactly
7832 ## what you are doing...
7833 if test -n "$compiler"; then
7834
7835 lt_prog_compiler_no_builtin_flag=
7836
7837 if test "$GCC" = yes; then
7838   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7839
7840   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7842 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7843   $as_echo_n "(cached) " >&6
7844 else
7845   lt_cv_prog_compiler_rtti_exceptions=no
7846    ac_outfile=conftest.$ac_objext
7847    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848    lt_compiler_flag="-fno-rtti -fno-exceptions"
7849    # Insert the option either (1) after the last *FLAGS variable, or
7850    # (2) before a word containing "conftest.", or (3) at the end.
7851    # Note that $ac_compile itself does not contain backslashes and begins
7852    # with a dollar sign (not a hyphen), so the echo should work correctly.
7853    # The option is referenced via a variable to avoid confusing sed.
7854    lt_compile=`echo "$ac_compile" | $SED \
7855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857    -e 's:$: $lt_compiler_flag:'`
7858    (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859    (eval "$lt_compile" 2>conftest.err)
7860    ac_status=$?
7861    cat conftest.err >&5
7862    echo "$as_me:7862: \$? = $ac_status" >&5
7863    if (exit $ac_status) && test -s "$ac_outfile"; then
7864      # The compiler can only warn and ignore the option if not recognized
7865      # So say no if there are warnings other than the usual output.
7866      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869        lt_cv_prog_compiler_rtti_exceptions=yes
7870      fi
7871    fi
7872    $RM conftest*
7873
7874 fi
7875 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7877
7878 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7879     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7880 else
7881     :
7882 fi
7883
7884 fi
7885
7886
7887
7888
7889
7890
7891   lt_prog_compiler_wl=
7892 lt_prog_compiler_pic=
7893 lt_prog_compiler_static=
7894
7895 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7896 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7897
7898   if test "$GCC" = yes; then
7899     lt_prog_compiler_wl='-Wl,'
7900     lt_prog_compiler_static='-static'
7901
7902     case $host_os in
7903       aix*)
7904       # All AIX code is PIC.
7905       if test "$host_cpu" = ia64; then
7906         # AIX 5 now supports IA64 processor
7907         lt_prog_compiler_static='-Bstatic'
7908       fi
7909       ;;
7910
7911     amigaos*)
7912       case $host_cpu in
7913       powerpc)
7914             # see comment about AmigaOS4 .so support
7915             lt_prog_compiler_pic='-fPIC'
7916         ;;
7917       m68k)
7918             # FIXME: we need at least 68020 code to build shared libraries, but
7919             # adding the `-m68020' flag to GCC prevents building anything better,
7920             # like `-m68040'.
7921             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7922         ;;
7923       esac
7924       ;;
7925
7926     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7927       # PIC is the default for these OSes.
7928       ;;
7929
7930     mingw* | cygwin* | pw32* | os2* | cegcc*)
7931       # This hack is so that the source file can tell whether it is being
7932       # built for inclusion in a dll (and should export symbols for example).
7933       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7934       # (--disable-auto-import) libraries
7935       lt_prog_compiler_pic='-DDLL_EXPORT'
7936       ;;
7937
7938     darwin* | rhapsody*)
7939       # PIC is the default on this platform
7940       # Common symbols not allowed in MH_DYLIB files
7941       lt_prog_compiler_pic='-fno-common'
7942       ;;
7943
7944     hpux*)
7945       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7946       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7947       # sets the default TLS model and affects inlining.
7948       case $host_cpu in
7949       hppa*64*)
7950         # +Z the default
7951         ;;
7952       *)
7953         lt_prog_compiler_pic='-fPIC'
7954         ;;
7955       esac
7956       ;;
7957
7958     interix[3-9]*)
7959       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7960       # Instead, we relocate shared libraries at runtime.
7961       ;;
7962
7963     msdosdjgpp*)
7964       # Just because we use GCC doesn't mean we suddenly get shared libraries
7965       # on systems that don't support them.
7966       lt_prog_compiler_can_build_shared=no
7967       enable_shared=no
7968       ;;
7969
7970     *nto* | *qnx*)
7971       # QNX uses GNU C++, but need to define -shared option too, otherwise
7972       # it will coredump.
7973       lt_prog_compiler_pic='-fPIC -shared'
7974       ;;
7975
7976     sysv4*MP*)
7977       if test -d /usr/nec; then
7978         lt_prog_compiler_pic=-Kconform_pic
7979       fi
7980       ;;
7981
7982     *)
7983       lt_prog_compiler_pic='-fPIC'
7984       ;;
7985     esac
7986   else
7987     # PORTME Check for flag to pass linker flags through the system compiler.
7988     case $host_os in
7989     aix*)
7990       lt_prog_compiler_wl='-Wl,'
7991       if test "$host_cpu" = ia64; then
7992         # AIX 5 now supports IA64 processor
7993         lt_prog_compiler_static='-Bstatic'
7994       else
7995         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7996       fi
7997       ;;
7998
7999     mingw* | cygwin* | pw32* | os2* | cegcc*)
8000       # This hack is so that the source file can tell whether it is being
8001       # built for inclusion in a dll (and should export symbols for example).
8002       lt_prog_compiler_pic='-DDLL_EXPORT'
8003       ;;
8004
8005     hpux9* | hpux10* | hpux11*)
8006       lt_prog_compiler_wl='-Wl,'
8007       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8008       # not for PA HP-UX.
8009       case $host_cpu in
8010       hppa*64*|ia64*)
8011         # +Z the default
8012         ;;
8013       *)
8014         lt_prog_compiler_pic='+Z'
8015         ;;
8016       esac
8017       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018       lt_prog_compiler_static='${wl}-a ${wl}archive'
8019       ;;
8020
8021     irix5* | irix6* | nonstopux*)
8022       lt_prog_compiler_wl='-Wl,'
8023       # PIC (with -KPIC) is the default.
8024       lt_prog_compiler_static='-non_shared'
8025       ;;
8026
8027     linux* | k*bsd*-gnu)
8028       case $cc_basename in
8029       # old Intel for x86_64 which still supported -KPIC.
8030       ecc*)
8031         lt_prog_compiler_wl='-Wl,'
8032         lt_prog_compiler_pic='-KPIC'
8033         lt_prog_compiler_static='-static'
8034         ;;
8035       # icc used to be incompatible with GCC.
8036       # ICC 10 doesn't accept -KPIC any more.
8037       icc* | ifort*)
8038         lt_prog_compiler_wl='-Wl,'
8039         lt_prog_compiler_pic='-fPIC'
8040         lt_prog_compiler_static='-static'
8041         ;;
8042       # Lahey Fortran 8.1.
8043       lf95*)
8044         lt_prog_compiler_wl='-Wl,'
8045         lt_prog_compiler_pic='--shared'
8046         lt_prog_compiler_static='--static'
8047         ;;
8048       pgcc* | pgf77* | pgf90* | pgf95*)
8049         # Portland Group compilers (*not* the Pentium gcc compiler,
8050         # which looks to be a dead project)
8051         lt_prog_compiler_wl='-Wl,'
8052         lt_prog_compiler_pic='-fpic'
8053         lt_prog_compiler_static='-Bstatic'
8054         ;;
8055       ccc*)
8056         lt_prog_compiler_wl='-Wl,'
8057         # All Alpha code is PIC.
8058         lt_prog_compiler_static='-non_shared'
8059         ;;
8060       xl*)
8061         # IBM XL C 8.0/Fortran 10.1 on PPC
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-qpic'
8064         lt_prog_compiler_static='-qstaticlink'
8065         ;;
8066       *)
8067         case `$CC -V 2>&1 | sed 5q` in
8068         *Sun\ C*)
8069           # Sun C 5.9
8070           lt_prog_compiler_pic='-KPIC'
8071           lt_prog_compiler_static='-Bstatic'
8072           lt_prog_compiler_wl='-Wl,'
8073           ;;
8074         *Sun\ F*)
8075           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8076           lt_prog_compiler_pic='-KPIC'
8077           lt_prog_compiler_static='-Bstatic'
8078           lt_prog_compiler_wl=''
8079           ;;
8080         esac
8081         ;;
8082       esac
8083       ;;
8084
8085     newsos6)
8086       lt_prog_compiler_pic='-KPIC'
8087       lt_prog_compiler_static='-Bstatic'
8088       ;;
8089
8090     *nto* | *qnx*)
8091       # QNX uses GNU C++, but need to define -shared option too, otherwise
8092       # it will coredump.
8093       lt_prog_compiler_pic='-fPIC -shared'
8094       ;;
8095
8096     osf3* | osf4* | osf5*)
8097       lt_prog_compiler_wl='-Wl,'
8098       # All OSF/1 code is PIC.
8099       lt_prog_compiler_static='-non_shared'
8100       ;;
8101
8102     rdos*)
8103       lt_prog_compiler_static='-non_shared'
8104       ;;
8105
8106     solaris*)
8107       lt_prog_compiler_pic='-KPIC'
8108       lt_prog_compiler_static='-Bstatic'
8109       case $cc_basename in
8110       f77* | f90* | f95*)
8111         lt_prog_compiler_wl='-Qoption ld ';;
8112       *)
8113         lt_prog_compiler_wl='-Wl,';;
8114       esac
8115       ;;
8116
8117     sunos4*)
8118       lt_prog_compiler_wl='-Qoption ld '
8119       lt_prog_compiler_pic='-PIC'
8120       lt_prog_compiler_static='-Bstatic'
8121       ;;
8122
8123     sysv4 | sysv4.2uw2* | sysv4.3*)
8124       lt_prog_compiler_wl='-Wl,'
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       ;;
8128
8129     sysv4*MP*)
8130       if test -d /usr/nec ;then
8131         lt_prog_compiler_pic='-Kconform_pic'
8132         lt_prog_compiler_static='-Bstatic'
8133       fi
8134       ;;
8135
8136     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137       lt_prog_compiler_wl='-Wl,'
8138       lt_prog_compiler_pic='-KPIC'
8139       lt_prog_compiler_static='-Bstatic'
8140       ;;
8141
8142     unicos*)
8143       lt_prog_compiler_wl='-Wl,'
8144       lt_prog_compiler_can_build_shared=no
8145       ;;
8146
8147     uts4*)
8148       lt_prog_compiler_pic='-pic'
8149       lt_prog_compiler_static='-Bstatic'
8150       ;;
8151
8152     *)
8153       lt_prog_compiler_can_build_shared=no
8154       ;;
8155     esac
8156   fi
8157
8158 case $host_os in
8159   # For platforms which do not support PIC, -DPIC is meaningless:
8160   *djgpp*)
8161     lt_prog_compiler_pic=
8162     ;;
8163   *)
8164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8165     ;;
8166 esac
8167 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8169
8170
8171
8172
8173
8174
8175 #
8176 # Check to make sure the PIC flag actually works.
8177 #
8178 if test -n "$lt_prog_compiler_pic"; then
8179   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8182   $as_echo_n "(cached) " >&6
8183 else
8184   lt_cv_prog_compiler_pic_works=no
8185    ac_outfile=conftest.$ac_objext
8186    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188    # Insert the option either (1) after the last *FLAGS variable, or
8189    # (2) before a word containing "conftest.", or (3) at the end.
8190    # Note that $ac_compile itself does not contain backslashes and begins
8191    # with a dollar sign (not a hyphen), so the echo should work correctly.
8192    # The option is referenced via a variable to avoid confusing sed.
8193    lt_compile=`echo "$ac_compile" | $SED \
8194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196    -e 's:$: $lt_compiler_flag:'`
8197    (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
8198    (eval "$lt_compile" 2>conftest.err)
8199    ac_status=$?
8200    cat conftest.err >&5
8201    echo "$as_me:8201: \$? = $ac_status" >&5
8202    if (exit $ac_status) && test -s "$ac_outfile"; then
8203      # The compiler can only warn and ignore the option if not recognized
8204      # So say no if there are warnings other than the usual output.
8205      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208        lt_cv_prog_compiler_pic_works=yes
8209      fi
8210    fi
8211    $RM conftest*
8212
8213 fi
8214 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8216
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218     case $lt_prog_compiler_pic in
8219      "" | " "*) ;;
8220      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8221      esac
8222 else
8223     lt_prog_compiler_pic=
8224      lt_prog_compiler_can_build_shared=no
8225 fi
8226
8227 fi
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the static flag actually works.
8236 #
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_prog_compiler_static_works=no
8244    save_LDFLAGS="$LDFLAGS"
8245    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248      # The linker can only warn and ignore the option if not recognized
8249      # So say no if there are warnings
8250      if test -s conftest.err; then
8251        # Append any errors to the config.log.
8252        cat conftest.err 1>&5
8253        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8254        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255        if diff conftest.exp conftest.er2 >/dev/null; then
8256          lt_cv_prog_compiler_static_works=yes
8257        fi
8258      else
8259        lt_cv_prog_compiler_static_works=yes
8260      fi
8261    fi
8262    $RM -r conftest*
8263    LDFLAGS="$save_LDFLAGS"
8264
8265 fi
8266 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8270     :
8271 else
8272     lt_prog_compiler_static=
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8284   $as_echo_n "(cached) " >&6
8285 else
8286   lt_cv_prog_compiler_c_o=no
8287    $RM -r conftest 2>/dev/null
8288    mkdir conftest
8289    cd conftest
8290    mkdir out
8291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293    lt_compiler_flag="-o out/conftest2.$ac_objext"
8294    # Insert the option either (1) after the last *FLAGS variable, or
8295    # (2) before a word containing "conftest.", or (3) at the end.
8296    # Note that $ac_compile itself does not contain backslashes and begins
8297    # with a dollar sign (not a hyphen), so the echo should work correctly.
8298    lt_compile=`echo "$ac_compile" | $SED \
8299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301    -e 's:$: $lt_compiler_flag:'`
8302    (eval echo "\"\$as_me:8302: $lt_compile\"" >&5)
8303    (eval "$lt_compile" 2>out/conftest.err)
8304    ac_status=$?
8305    cat out/conftest.err >&5
8306    echo "$as_me:8306: \$? = $ac_status" >&5
8307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308    then
8309      # The compiler can only warn and ignore the option if not recognized
8310      # So say no if there are warnings
8311      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314        lt_cv_prog_compiler_c_o=yes
8315      fi
8316    fi
8317    chmod u+w . 2>&5
8318    $RM conftest*
8319    # SGI C++ compiler will create directory out/ii_files/ for
8320    # template instantiation
8321    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322    $RM out/* && rmdir out
8323    cd ..
8324    $RM -r conftest
8325    $RM conftest*
8326
8327 fi
8328 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8330
8331
8332
8333
8334
8335
8336   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8339   $as_echo_n "(cached) " >&6
8340 else
8341   lt_cv_prog_compiler_c_o=no
8342    $RM -r conftest 2>/dev/null
8343    mkdir conftest
8344    cd conftest
8345    mkdir out
8346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347
8348    lt_compiler_flag="-o out/conftest2.$ac_objext"
8349    # Insert the option either (1) after the last *FLAGS variable, or
8350    # (2) before a word containing "conftest.", or (3) at the end.
8351    # Note that $ac_compile itself does not contain backslashes and begins
8352    # with a dollar sign (not a hyphen), so the echo should work correctly.
8353    lt_compile=`echo "$ac_compile" | $SED \
8354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356    -e 's:$: $lt_compiler_flag:'`
8357    (eval echo "\"\$as_me:8357: $lt_compile\"" >&5)
8358    (eval "$lt_compile" 2>out/conftest.err)
8359    ac_status=$?
8360    cat out/conftest.err >&5
8361    echo "$as_me:8361: \$? = $ac_status" >&5
8362    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8363    then
8364      # The compiler can only warn and ignore the option if not recognized
8365      # So say no if there are warnings
8366      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8367      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369        lt_cv_prog_compiler_c_o=yes
8370      fi
8371    fi
8372    chmod u+w . 2>&5
8373    $RM conftest*
8374    # SGI C++ compiler will create directory out/ii_files/ for
8375    # template instantiation
8376    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377    $RM out/* && rmdir out
8378    cd ..
8379    $RM -r conftest
8380    $RM conftest*
8381
8382 fi
8383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385
8386
8387
8388
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391   # do not overwrite the value of need_locks provided by the user
8392   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8394   hard_links=yes
8395   $RM conftest*
8396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397   touch conftest.a
8398   ln conftest.a conftest.b 2>&5 || hard_links=no
8399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402   if test "$hard_links" = no; then
8403     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8405     need_locks=warn
8406   fi
8407 else
8408   need_locks=no
8409 fi
8410
8411
8412
8413
8414
8415
8416   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8418
8419   runpath_var=
8420   allow_undefined_flag=
8421   always_export_symbols=no
8422   archive_cmds=
8423   archive_expsym_cmds=
8424   compiler_needs_object=no
8425   enable_shared_with_static_runtimes=no
8426   export_dynamic_flag_spec=
8427   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428   hardcode_automatic=no
8429   hardcode_direct=no
8430   hardcode_direct_absolute=no
8431   hardcode_libdir_flag_spec=
8432   hardcode_libdir_flag_spec_ld=
8433   hardcode_libdir_separator=
8434   hardcode_minus_L=no
8435   hardcode_shlibpath_var=unsupported
8436   inherit_rpath=no
8437   link_all_deplibs=unknown
8438   module_cmds=
8439   module_expsym_cmds=
8440   old_archive_from_new_cmds=
8441   old_archive_from_expsyms_cmds=
8442   thread_safe_flag_spec=
8443   whole_archive_flag_spec=
8444   # include_expsyms should be a list of space-separated symbols to be *always*
8445   # included in the symbol list
8446   include_expsyms=
8447   # exclude_expsyms can be an extended regexp of symbols to exclude
8448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450   # as well as any symbol that contains `d'.
8451   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453   # platforms (ab)use it in PIC code, but their linkers get confused if
8454   # the symbol is explicitly referenced.  Since portable code cannot
8455   # rely on this symbol name, it's probably fine to never include it in
8456   # preloaded symbol tables.
8457   # Exclude shared library initialization/finalization symbols.
8458   extract_expsyms_cmds=
8459
8460   case $host_os in
8461   cygwin* | mingw* | pw32* | cegcc*)
8462     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463     # When not using gcc, we currently assume that we are using
8464     # Microsoft Visual C++.
8465     if test "$GCC" != yes; then
8466       with_gnu_ld=no
8467     fi
8468     ;;
8469   interix*)
8470     # we just hope/assume this is gcc and not c89 (= MSVC++)
8471     with_gnu_ld=yes
8472     ;;
8473   openbsd*)
8474     with_gnu_ld=no
8475     ;;
8476   esac
8477
8478   ld_shlibs=yes
8479   if test "$with_gnu_ld" = yes; then
8480     # If archive_cmds runs LD, not CC, wlarc should be empty
8481     wlarc='${wl}'
8482
8483     # Set some defaults for GNU ld with shared library support. These
8484     # are reset later if shared libraries are not supported. Putting them
8485     # here allows them to be overridden if necessary.
8486     runpath_var=LD_RUN_PATH
8487     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8488     export_dynamic_flag_spec='${wl}--export-dynamic'
8489     # ancient GNU ld didn't support --whole-archive et. al.
8490     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8491       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8492     else
8493       whole_archive_flag_spec=
8494     fi
8495     supports_anon_versioning=no
8496     case `$LD -v 2>&1` in
8497       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8498       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8499       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8500       *\ 2.11.*) ;; # other 2.11 versions
8501       *) supports_anon_versioning=yes ;;
8502     esac
8503
8504     # See if GNU ld supports shared libraries.
8505     case $host_os in
8506     aix[3-9]*)
8507       # On AIX/PPC, the GNU linker is very broken
8508       if test "$host_cpu" != ia64; then
8509         ld_shlibs=no
8510         cat <<_LT_EOF 1>&2
8511
8512 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8513 *** to be unable to reliably create shared libraries on AIX.
8514 *** Therefore, libtool is disabling shared libraries support.  If you
8515 *** really care for shared libraries, you may want to modify your PATH
8516 *** so that a non-GNU linker is found, and then restart.
8517
8518 _LT_EOF
8519       fi
8520       ;;
8521
8522     amigaos*)
8523       case $host_cpu in
8524       powerpc)
8525             # see comment about AmigaOS4 .so support
8526             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527             archive_expsym_cmds=''
8528         ;;
8529       m68k)
8530             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)'
8531             hardcode_libdir_flag_spec='-L$libdir'
8532             hardcode_minus_L=yes
8533         ;;
8534       esac
8535       ;;
8536
8537     beos*)
8538       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8539         allow_undefined_flag=unsupported
8540         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8541         # support --undefined.  This deserves some investigation.  FIXME
8542         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543       else
8544         ld_shlibs=no
8545       fi
8546       ;;
8547
8548     cygwin* | mingw* | pw32* | cegcc*)
8549       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8550       # as there is no search path for DLLs.
8551       hardcode_libdir_flag_spec='-L$libdir'
8552       allow_undefined_flag=unsupported
8553       always_export_symbols=no
8554       enable_shared_with_static_runtimes=yes
8555       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8556
8557       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8558         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559         # If the export-symbols file already is a .def file (1st line
8560         # is EXPORTS), use it as is; otherwise, prepend...
8561         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562           cp $export_symbols $output_objdir/$soname.def;
8563         else
8564           echo EXPORTS > $output_objdir/$soname.def;
8565           cat $export_symbols >> $output_objdir/$soname.def;
8566         fi~
8567         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8568       else
8569         ld_shlibs=no
8570       fi
8571       ;;
8572
8573     interix[3-9]*)
8574       hardcode_direct=no
8575       hardcode_shlibpath_var=no
8576       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8577       export_dynamic_flag_spec='${wl}-E'
8578       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8579       # Instead, shared libraries are loaded at an image base (0x10000000 by
8580       # default) and relocated if they conflict, which is a slow very memory
8581       # consuming and fragmenting process.  To avoid this, we pick a random,
8582       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8583       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8584       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8585       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'
8586       ;;
8587
8588     gnu* | linux* | tpf* | k*bsd*-gnu)
8589       tmp_diet=no
8590       if test "$host_os" = linux-dietlibc; then
8591         case $cc_basename in
8592           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8593         esac
8594       fi
8595       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8596          && test "$tmp_diet" = no
8597       then
8598         tmp_addflag=
8599         tmp_sharedflag='-shared'
8600         case $cc_basename,$host_cpu in
8601         pgcc*)                          # Portland Group C compiler
8602           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'
8603           tmp_addflag=' $pic_flag'
8604           ;;
8605         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8606           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'
8607           tmp_addflag=' $pic_flag -Mnomain' ;;
8608         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8609           tmp_addflag=' -i_dynamic' ;;
8610         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8611           tmp_addflag=' -i_dynamic -nofor_main' ;;
8612         ifc* | ifort*)                  # Intel Fortran compiler
8613           tmp_addflag=' -nofor_main' ;;
8614         lf95*)                          # Lahey Fortran 8.1
8615           whole_archive_flag_spec=
8616           tmp_sharedflag='--shared' ;;
8617         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8618           tmp_sharedflag='-qmkshrobj'
8619           tmp_addflag= ;;
8620         esac
8621         case `$CC -V 2>&1 | sed 5q` in
8622         *Sun\ C*)                       # Sun C 5.9
8623           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'
8624           compiler_needs_object=yes
8625           tmp_sharedflag='-G' ;;
8626         *Sun\ F*)                       # Sun Fortran 8.3
8627           tmp_sharedflag='-G' ;;
8628         esac
8629         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630
8631         if test "x$supports_anon_versioning" = xyes; then
8632           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634             echo "local: *; };" >> $output_objdir/$libname.ver~
8635             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8636         fi
8637
8638         case $cc_basename in
8639         xlf*)
8640           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8641           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8642           hardcode_libdir_flag_spec=
8643           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8644           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8645           if test "x$supports_anon_versioning" = xyes; then
8646             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8647               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8648               echo "local: *; };" >> $output_objdir/$libname.ver~
8649               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8650           fi
8651           ;;
8652         esac
8653       else
8654         ld_shlibs=no
8655       fi
8656       ;;
8657
8658     netbsd*)
8659       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8660         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8661         wlarc=
8662       else
8663         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8665       fi
8666       ;;
8667
8668     solaris*)
8669       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8670         ld_shlibs=no
8671         cat <<_LT_EOF 1>&2
8672
8673 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8674 *** create shared libraries on Solaris systems.  Therefore, libtool
8675 *** is disabling shared libraries support.  We urge you to upgrade GNU
8676 *** binutils to release 2.9.1 or newer.  Another option is to modify
8677 *** your PATH or compiler configuration so that the native linker is
8678 *** used, and then restart.
8679
8680 _LT_EOF
8681       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8682         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8684       else
8685         ld_shlibs=no
8686       fi
8687       ;;
8688
8689     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8690       case `$LD -v 2>&1` in
8691         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8692         ld_shlibs=no
8693         cat <<_LT_EOF 1>&2
8694
8695 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8696 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8697 *** is disabling shared libraries support.  We urge you to upgrade GNU
8698 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8699 *** your PATH or compiler configuration so that the native linker is
8700 *** used, and then restart.
8701
8702 _LT_EOF
8703         ;;
8704         *)
8705           # For security reasons, it is highly recommended that you always
8706           # use absolute paths for naming shared libraries, and exclude the
8707           # DT_RUNPATH tag from executables and libraries.  But doing so
8708           # requires that you compile everything twice, which is a pain.
8709           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713           else
8714             ld_shlibs=no
8715           fi
8716         ;;
8717       esac
8718       ;;
8719
8720     sunos4*)
8721       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8722       wlarc=
8723       hardcode_direct=yes
8724       hardcode_shlibpath_var=no
8725       ;;
8726
8727     *)
8728       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8729         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731       else
8732         ld_shlibs=no
8733       fi
8734       ;;
8735     esac
8736
8737     if test "$ld_shlibs" = no; then
8738       runpath_var=
8739       hardcode_libdir_flag_spec=
8740       export_dynamic_flag_spec=
8741       whole_archive_flag_spec=
8742     fi
8743   else
8744     # PORTME fill in a description of your system's linker (not GNU ld)
8745     case $host_os in
8746     aix3*)
8747       allow_undefined_flag=unsupported
8748       always_export_symbols=yes
8749       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'
8750       # Note: this linker hardcodes the directories in LIBPATH if there
8751       # are no directories specified by -L.
8752       hardcode_minus_L=yes
8753       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8754         # Neither direct hardcoding nor static linking is supported with a
8755         # broken collect2.
8756         hardcode_direct=unsupported
8757       fi
8758       ;;
8759
8760     aix[4-9]*)
8761       if test "$host_cpu" = ia64; then
8762         # On IA64, the linker does run time linking by default, so we don't
8763         # have to do anything special.
8764         aix_use_runtimelinking=no
8765         exp_sym_flag='-Bexport'
8766         no_entry_flag=""
8767       else
8768         # If we're using GNU nm, then we don't want the "-C" option.
8769         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8770         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8771           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'
8772         else
8773           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'
8774         fi
8775         aix_use_runtimelinking=no
8776
8777         # Test if we are trying to use run time linking or normal
8778         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8779         # need to do runtime linking.
8780         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8781           for ld_flag in $LDFLAGS; do
8782           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8783             aix_use_runtimelinking=yes
8784             break
8785           fi
8786           done
8787           ;;
8788         esac
8789
8790         exp_sym_flag='-bexport'
8791         no_entry_flag='-bnoentry'
8792       fi
8793
8794       # When large executables or shared objects are built, AIX ld can
8795       # have problems creating the table of contents.  If linking a library
8796       # or program results in "error TOC overflow" add -mminimal-toc to
8797       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8798       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8799
8800       archive_cmds=''
8801       hardcode_direct=yes
8802       hardcode_direct_absolute=yes
8803       hardcode_libdir_separator=':'
8804       link_all_deplibs=yes
8805       file_list_spec='${wl}-f,'
8806
8807       if test "$GCC" = yes; then
8808         case $host_os in aix4.[012]|aix4.[012].*)
8809         # We only want to do this on AIX 4.2 and lower, the check
8810         # below for broken collect2 doesn't work under 4.3+
8811           collect2name=`${CC} -print-prog-name=collect2`
8812           if test -f "$collect2name" &&
8813            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8814           then
8815           # We have reworked collect2
8816           :
8817           else
8818           # We have old collect2
8819           hardcode_direct=unsupported
8820           # It fails to find uninstalled libraries when the uninstalled
8821           # path is not listed in the libpath.  Setting hardcode_minus_L
8822           # to unsupported forces relinking
8823           hardcode_minus_L=yes
8824           hardcode_libdir_flag_spec='-L$libdir'
8825           hardcode_libdir_separator=
8826           fi
8827           ;;
8828         esac
8829         shared_flag='-shared'
8830         if test "$aix_use_runtimelinking" = yes; then
8831           shared_flag="$shared_flag "'${wl}-G'
8832         fi
8833       else
8834         # not using gcc
8835         if test "$host_cpu" = ia64; then
8836         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8837         # chokes on -Wl,-G. The following line is correct:
8838           shared_flag='-G'
8839         else
8840           if test "$aix_use_runtimelinking" = yes; then
8841             shared_flag='${wl}-G'
8842           else
8843             shared_flag='${wl}-bM:SRE'
8844           fi
8845         fi
8846       fi
8847
8848       export_dynamic_flag_spec='${wl}-bexpall'
8849       # It seems that -bexpall does not export symbols beginning with
8850       # underscore (_), so it is better to generate a list of symbols to export.
8851       always_export_symbols=yes
8852       if test "$aix_use_runtimelinking" = yes; then
8853         # Warning - without using the other runtime loading flags (-brtl),
8854         # -berok will link without error, but may produce a broken library.
8855         allow_undefined_flag='-berok'
8856         # Determine the default libpath from the value encoded in an
8857         # empty executable.
8858         cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 int
8866 main ()
8867 {
8868
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (ac_try="$ac_link"
8875 case "(($ac_try" in
8876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877   *) ac_try_echo=$ac_try;;
8878 esac
8879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8880 $as_echo "$ac_try_echo") >&5
8881   (eval "$ac_link") 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } && {
8888          test -z "$ac_c_werror_flag" ||
8889          test ! -s conftest.err
8890        } && test -s conftest$ac_exeext && {
8891          test "$cross_compiling" = yes ||
8892          $as_test_x conftest$ac_exeext
8893        }; then
8894
8895 lt_aix_libpath_sed='
8896     /Import File Strings/,/^$/ {
8897         /^0/ {
8898             s/^0  *\(.*\)$/\1/
8899             p
8900         }
8901     }'
8902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8903 # Check for a 64-bit object if we didn't find anything.
8904 if test -z "$aix_libpath"; then
8905   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8906 fi
8907 else
8908   $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911
8912 fi
8913
8914 rm -rf conftest.dSYM
8915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8916       conftest$ac_exeext conftest.$ac_ext
8917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8918
8919         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8920         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"
8921       else
8922         if test "$host_cpu" = ia64; then
8923           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8924           allow_undefined_flag="-z nodefs"
8925           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"
8926         else
8927          # Determine the default libpath from the value encoded in an
8928          # empty executable.
8929          cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h.  */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h.  */
8935
8936 int
8937 main ()
8938 {
8939
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (ac_try="$ac_link"
8946 case "(($ac_try" in
8947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948   *) ac_try_echo=$ac_try;;
8949 esac
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952   (eval "$ac_link") 2>conftest.er1
8953   ac_status=$?
8954   grep -v '^ *+' conftest.er1 >conftest.err
8955   rm -f conftest.er1
8956   cat conftest.err >&5
8957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } && {
8959          test -z "$ac_c_werror_flag" ||
8960          test ! -s conftest.err
8961        } && test -s conftest$ac_exeext && {
8962          test "$cross_compiling" = yes ||
8963          $as_test_x conftest$ac_exeext
8964        }; then
8965
8966 lt_aix_libpath_sed='
8967     /Import File Strings/,/^$/ {
8968         /^0/ {
8969             s/^0  *\(.*\)$/\1/
8970             p
8971         }
8972     }'
8973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974 # Check for a 64-bit object if we didn't find anything.
8975 if test -z "$aix_libpath"; then
8976   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8977 fi
8978 else
8979   $as_echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982
8983 fi
8984
8985 rm -rf conftest.dSYM
8986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8987       conftest$ac_exeext conftest.$ac_ext
8988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8989
8990          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991           # Warning - without using the other run time loading flags,
8992           # -berok will link without error, but may produce a broken library.
8993           no_undefined_flag=' ${wl}-bernotok'
8994           allow_undefined_flag=' ${wl}-berok'
8995           # Exported symbols can be pulled into shared objects from archives
8996           whole_archive_flag_spec='$convenience'
8997           archive_cmds_need_lc=yes
8998           # This is similar to how AIX traditionally builds its shared libraries.
8999           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'
9000         fi
9001       fi
9002       ;;
9003
9004     amigaos*)
9005       case $host_cpu in
9006       powerpc)
9007             # see comment about AmigaOS4 .so support
9008             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009             archive_expsym_cmds=''
9010         ;;
9011       m68k)
9012             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)'
9013             hardcode_libdir_flag_spec='-L$libdir'
9014             hardcode_minus_L=yes
9015         ;;
9016       esac
9017       ;;
9018
9019     bsdi[45]*)
9020       export_dynamic_flag_spec=-rdynamic
9021       ;;
9022
9023     cygwin* | mingw* | pw32* | cegcc*)
9024       # When not using gcc, we currently assume that we are using
9025       # Microsoft Visual C++.
9026       # hardcode_libdir_flag_spec is actually meaningless, as there is
9027       # no search path for DLLs.
9028       hardcode_libdir_flag_spec=' '
9029       allow_undefined_flag=unsupported
9030       # Tell ltmain to make .lib files, not .a files.
9031       libext=lib
9032       # Tell ltmain to make .dll files, not .so files.
9033       shrext_cmds=".dll"
9034       # FIXME: Setting linknames here is a bad hack.
9035       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9036       # The linker will automatically build a .lib file if we build a DLL.
9037       old_archive_from_new_cmds='true'
9038       # FIXME: Should let the user specify the lib program.
9039       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9040       fix_srcfile_path='`cygpath -w "$srcfile"`'
9041       enable_shared_with_static_runtimes=yes
9042       ;;
9043
9044     darwin* | rhapsody*)
9045
9046
9047   archive_cmds_need_lc=no
9048   hardcode_direct=no
9049   hardcode_automatic=yes
9050   hardcode_shlibpath_var=unsupported
9051   whole_archive_flag_spec=''
9052   link_all_deplibs=yes
9053   allow_undefined_flag="$_lt_dar_allow_undefined"
9054   case $cc_basename in
9055      ifort*) _lt_dar_can_shared=yes ;;
9056      *) _lt_dar_can_shared=$GCC ;;
9057   esac
9058   if test "$_lt_dar_can_shared" = "yes"; then
9059     output_verbose_link_cmd=echo
9060     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9061     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9062     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}"
9063     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}"
9064
9065   else
9066   ld_shlibs=no
9067   fi
9068
9069       ;;
9070
9071     dgux*)
9072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073       hardcode_libdir_flag_spec='-L$libdir'
9074       hardcode_shlibpath_var=no
9075       ;;
9076
9077     freebsd1*)
9078       ld_shlibs=no
9079       ;;
9080
9081     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9082     # support.  Future versions do this automatically, but an explicit c++rt0.o
9083     # does not break anything, and helps significantly (at the cost of a little
9084     # extra space).
9085     freebsd2.2*)
9086       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9087       hardcode_libdir_flag_spec='-R$libdir'
9088       hardcode_direct=yes
9089       hardcode_shlibpath_var=no
9090       ;;
9091
9092     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9093     freebsd2*)
9094       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9095       hardcode_direct=yes
9096       hardcode_minus_L=yes
9097       hardcode_shlibpath_var=no
9098       ;;
9099
9100     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9101     freebsd* | dragonfly*)
9102       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9103       hardcode_libdir_flag_spec='-R$libdir'
9104       hardcode_direct=yes
9105       hardcode_shlibpath_var=no
9106       ;;
9107
9108     hpux9*)
9109       if test "$GCC" = yes; then
9110         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'
9111       else
9112         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'
9113       fi
9114       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9115       hardcode_libdir_separator=:
9116       hardcode_direct=yes
9117
9118       # hardcode_minus_L: Not really in the search PATH,
9119       # but as the default location of the library.
9120       hardcode_minus_L=yes
9121       export_dynamic_flag_spec='${wl}-E'
9122       ;;
9123
9124     hpux10*)
9125       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9126         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9127       else
9128         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9129       fi
9130       if test "$with_gnu_ld" = no; then
9131         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9132         hardcode_libdir_flag_spec_ld='+b $libdir'
9133         hardcode_libdir_separator=:
9134         hardcode_direct=yes
9135         hardcode_direct_absolute=yes
9136         export_dynamic_flag_spec='${wl}-E'
9137         # hardcode_minus_L: Not really in the search PATH,
9138         # but as the default location of the library.
9139         hardcode_minus_L=yes
9140       fi
9141       ;;
9142
9143     hpux11*)
9144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9145         case $host_cpu in
9146         hppa*64*)
9147           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148           ;;
9149         ia64*)
9150           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9151           ;;
9152         *)
9153           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154           ;;
9155         esac
9156       else
9157         case $host_cpu in
9158         hppa*64*)
9159           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9160           ;;
9161         ia64*)
9162           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         *)
9165           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166           ;;
9167         esac
9168       fi
9169       if test "$with_gnu_ld" = no; then
9170         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171         hardcode_libdir_separator=:
9172
9173         case $host_cpu in
9174         hppa*64*|ia64*)
9175           hardcode_direct=no
9176           hardcode_shlibpath_var=no
9177           ;;
9178         *)
9179           hardcode_direct=yes
9180           hardcode_direct_absolute=yes
9181           export_dynamic_flag_spec='${wl}-E'
9182
9183           # hardcode_minus_L: Not really in the search PATH,
9184           # but as the default location of the library.
9185           hardcode_minus_L=yes
9186           ;;
9187         esac
9188       fi
9189       ;;
9190
9191     irix5* | irix6* | nonstopux*)
9192       if test "$GCC" = yes; then
9193         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'
9194         # Try to use the -exported_symbol ld option, if it does not
9195         # work, assume that -exports_file does not work either and
9196         # implicitly export all symbols.
9197         save_LDFLAGS="$LDFLAGS"
9198         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9199         cat >conftest.$ac_ext <<_ACEOF
9200 int foo(void) {}
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (ac_try="$ac_link"
9204 case "(($ac_try" in
9205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206   *) ac_try_echo=$ac_try;;
9207 esac
9208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9209 $as_echo "$ac_try_echo") >&5
9210   (eval "$ac_link") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } && {
9217          test -z "$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        } && test -s conftest$ac_exeext && {
9220          test "$cross_compiling" = yes ||
9221          $as_test_x conftest$ac_exeext
9222        }; then
9223   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'
9224
9225 else
9226   $as_echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229
9230 fi
9231
9232 rm -rf conftest.dSYM
9233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9234       conftest$ac_exeext conftest.$ac_ext
9235         LDFLAGS="$save_LDFLAGS"
9236       else
9237         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'
9238         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'
9239       fi
9240       archive_cmds_need_lc='no'
9241       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242       hardcode_libdir_separator=:
9243       inherit_rpath=yes
9244       link_all_deplibs=yes
9245       ;;
9246
9247     netbsd*)
9248       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9249         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9250       else
9251         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9252       fi
9253       hardcode_libdir_flag_spec='-R$libdir'
9254       hardcode_direct=yes
9255       hardcode_shlibpath_var=no
9256       ;;
9257
9258     newsos6)
9259       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260       hardcode_direct=yes
9261       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262       hardcode_libdir_separator=:
9263       hardcode_shlibpath_var=no
9264       ;;
9265
9266     *nto* | *qnx*)
9267       ;;
9268
9269     openbsd*)
9270       if test -f /usr/libexec/ld.so; then
9271         hardcode_direct=yes
9272         hardcode_shlibpath_var=no
9273         hardcode_direct_absolute=yes
9274         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9275           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9276           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9277           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9278           export_dynamic_flag_spec='${wl}-E'
9279         else
9280           case $host_os in
9281            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9282              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283              hardcode_libdir_flag_spec='-R$libdir'
9284              ;;
9285            *)
9286              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9287              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9288              ;;
9289           esac
9290         fi
9291       else
9292         ld_shlibs=no
9293       fi
9294       ;;
9295
9296     os2*)
9297       hardcode_libdir_flag_spec='-L$libdir'
9298       hardcode_minus_L=yes
9299       allow_undefined_flag=unsupported
9300       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'
9301       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9302       ;;
9303
9304     osf3*)
9305       if test "$GCC" = yes; then
9306         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307         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'
9308       else
9309         allow_undefined_flag=' -expect_unresolved \*'
9310         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'
9311       fi
9312       archive_cmds_need_lc='no'
9313       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314       hardcode_libdir_separator=:
9315       ;;
9316
9317     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9318       if test "$GCC" = yes; then
9319         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9320         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'
9321         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322       else
9323         allow_undefined_flag=' -expect_unresolved \*'
9324         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'
9325         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~
9326         $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'
9327
9328         # Both c and cxx compiler support -rpath directly
9329         hardcode_libdir_flag_spec='-rpath $libdir'
9330       fi
9331       archive_cmds_need_lc='no'
9332       hardcode_libdir_separator=:
9333       ;;
9334
9335     solaris*)
9336       no_undefined_flag=' -z defs'
9337       if test "$GCC" = yes; then
9338         wlarc='${wl}'
9339         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9340         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9342       else
9343         case `$CC -V 2>&1` in
9344         *"Compilers 5.0"*)
9345           wlarc=''
9346           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9348           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9349           ;;
9350         *)
9351           wlarc='${wl}'
9352           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9353           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9354           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9355           ;;
9356         esac
9357       fi
9358       hardcode_libdir_flag_spec='-R$libdir'
9359       hardcode_shlibpath_var=no
9360       case $host_os in
9361       solaris2.[0-5] | solaris2.[0-5].*) ;;
9362       *)
9363         # The compiler driver will combine and reorder linker options,
9364         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9365         # but is careful enough not to reorder.
9366         # Supported since Solaris 2.6 (maybe 2.5.1?)
9367         if test "$GCC" = yes; then
9368           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9369         else
9370           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9371         fi
9372         ;;
9373       esac
9374       link_all_deplibs=yes
9375       ;;
9376
9377     sunos4*)
9378       if test "x$host_vendor" = xsequent; then
9379         # Use $CC to link under sequent, because it throws in some extra .o
9380         # files that make .init and .fini sections work.
9381         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9382       else
9383         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9384       fi
9385       hardcode_libdir_flag_spec='-L$libdir'
9386       hardcode_direct=yes
9387       hardcode_minus_L=yes
9388       hardcode_shlibpath_var=no
9389       ;;
9390
9391     sysv4)
9392       case $host_vendor in
9393         sni)
9394           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395           hardcode_direct=yes # is this really true???
9396         ;;
9397         siemens)
9398           ## LD is ld it makes a PLAMLIB
9399           ## CC just makes a GrossModule.
9400           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9401           reload_cmds='$CC -r -o $output$reload_objs'
9402           hardcode_direct=no
9403         ;;
9404         motorola)
9405           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9407         ;;
9408       esac
9409       runpath_var='LD_RUN_PATH'
9410       hardcode_shlibpath_var=no
9411       ;;
9412
9413     sysv4.3*)
9414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415       hardcode_shlibpath_var=no
9416       export_dynamic_flag_spec='-Bexport'
9417       ;;
9418
9419     sysv4*MP*)
9420       if test -d /usr/nec; then
9421         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422         hardcode_shlibpath_var=no
9423         runpath_var=LD_RUN_PATH
9424         hardcode_runpath_var=yes
9425         ld_shlibs=yes
9426       fi
9427       ;;
9428
9429     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9430       no_undefined_flag='${wl}-z,text'
9431       archive_cmds_need_lc=no
9432       hardcode_shlibpath_var=no
9433       runpath_var='LD_RUN_PATH'
9434
9435       if test "$GCC" = yes; then
9436         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438       else
9439         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441       fi
9442       ;;
9443
9444     sysv5* | sco3.2v5* | sco5v6*)
9445       # Note: We can NOT use -z defs as we might desire, because we do not
9446       # link with -lc, and that would cause any symbols used from libc to
9447       # always be unresolved, which means just about no library would
9448       # ever link correctly.  If we're not using GNU ld we use -z text
9449       # though, which does catch some bad symbols but isn't as heavy-handed
9450       # as -z defs.
9451       no_undefined_flag='${wl}-z,text'
9452       allow_undefined_flag='${wl}-z,nodefs'
9453       archive_cmds_need_lc=no
9454       hardcode_shlibpath_var=no
9455       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9456       hardcode_libdir_separator=':'
9457       link_all_deplibs=yes
9458       export_dynamic_flag_spec='${wl}-Bexport'
9459       runpath_var='LD_RUN_PATH'
9460
9461       if test "$GCC" = yes; then
9462         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464       else
9465         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467       fi
9468       ;;
9469
9470     uts4*)
9471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472       hardcode_libdir_flag_spec='-L$libdir'
9473       hardcode_shlibpath_var=no
9474       ;;
9475
9476     *)
9477       ld_shlibs=no
9478       ;;
9479     esac
9480
9481     if test x$host_vendor = xsni; then
9482       case $host in
9483       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9484         export_dynamic_flag_spec='${wl}-Blargedynsym'
9485         ;;
9486       esac
9487     fi
9488   fi
9489
9490 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9491 $as_echo "$ld_shlibs" >&6; }
9492 test "$ld_shlibs" = no && can_build_shared=no
9493
9494 with_gnu_ld=$with_gnu_ld
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510 #
9511 # Do we need to explicitly link libc?
9512 #
9513 case "x$archive_cmds_need_lc" in
9514 x|xyes)
9515   # Assume -lc should be added
9516   archive_cmds_need_lc=yes
9517
9518   if test "$enable_shared" = yes && test "$GCC" = yes; then
9519     case $archive_cmds in
9520     *'~'*)
9521       # FIXME: we may have to deal with multi-command sequences.
9522       ;;
9523     '$CC '*)
9524       # Test whether the compiler implicitly links with -lc since on some
9525       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9526       # to ld, don't add -lc before -lgcc.
9527       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9528 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9529       $RM conftest*
9530       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531
9532       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533   (eval $ac_compile) 2>&5
9534   ac_status=$?
9535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } 2>conftest.err; then
9537         soname=conftest
9538         lib=conftest
9539         libobjs=conftest.$ac_objext
9540         deplibs=
9541         wl=$lt_prog_compiler_wl
9542         pic_flag=$lt_prog_compiler_pic
9543         compiler_flags=-v
9544         linker_flags=-v
9545         verstring=
9546         output_objdir=.
9547         libname=conftest
9548         lt_save_allow_undefined_flag=$allow_undefined_flag
9549         allow_undefined_flag=
9550         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9551   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9552   ac_status=$?
9553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }
9555         then
9556           archive_cmds_need_lc=no
9557         else
9558           archive_cmds_need_lc=yes
9559         fi
9560         allow_undefined_flag=$lt_save_allow_undefined_flag
9561       else
9562         cat conftest.err 1>&5
9563       fi
9564       $RM conftest*
9565       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9566 $as_echo "$archive_cmds_need_lc" >&6; }
9567       ;;
9568     esac
9569   fi
9570   ;;
9571 esac
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
9722
9723
9724
9725
9726
9727
9728
9729   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9731
9732 if test "$GCC" = yes; then
9733   case $host_os in
9734     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9735     *) lt_awk_arg="/^libraries:/" ;;
9736   esac
9737   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9738   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9739     # if the path contains ";" then we assume it to be the separator
9740     # otherwise default to the standard path separator (i.e. ":") - it is
9741     # assumed that no part of a normal pathname contains ";" but that should
9742     # okay in the real world where ";" in dirpaths is itself problematic.
9743     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9744   else
9745     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9746   fi
9747   # Ok, now we have the path, separated by spaces, we can step through it
9748   # and add multilib dir if necessary.
9749   lt_tmp_lt_search_path_spec=
9750   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9751   for lt_sys_path in $lt_search_path_spec; do
9752     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9753       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9754     else
9755       test -d "$lt_sys_path" && \
9756         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9757     fi
9758   done
9759   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9760 BEGIN {RS=" "; FS="/|\n";} {
9761   lt_foo="";
9762   lt_count=0;
9763   for (lt_i = NF; lt_i > 0; lt_i--) {
9764     if ($lt_i != "" && $lt_i != ".") {
9765       if ($lt_i == "..") {
9766         lt_count++;
9767       } else {
9768         if (lt_count == 0) {
9769           lt_foo="/" $lt_i lt_foo;
9770         } else {
9771           lt_count--;
9772         }
9773       }
9774     }
9775   }
9776   if (lt_foo != "") { lt_freq[lt_foo]++; }
9777   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9778 }'`
9779   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9780 else
9781   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9782 fi
9783 library_names_spec=
9784 libname_spec='lib$name'
9785 soname_spec=
9786 shrext_cmds=".so"
9787 postinstall_cmds=
9788 postuninstall_cmds=
9789 finish_cmds=
9790 finish_eval=
9791 shlibpath_var=
9792 shlibpath_overrides_runpath=unknown
9793 version_type=none
9794 dynamic_linker="$host_os ld.so"
9795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9796 need_lib_prefix=unknown
9797 hardcode_into_libs=no
9798
9799 # when you set need_version to no, make sure it does not cause -set_version
9800 # flags to be left without arguments
9801 need_version=unknown
9802
9803 case $host_os in
9804 aix3*)
9805   version_type=linux
9806   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9807   shlibpath_var=LIBPATH
9808
9809   # AIX 3 has no versioning support, so we append a major version to the name.
9810   soname_spec='${libname}${release}${shared_ext}$major'
9811   ;;
9812
9813 aix[4-9]*)
9814   version_type=linux
9815   need_lib_prefix=no
9816   need_version=no
9817   hardcode_into_libs=yes
9818   if test "$host_cpu" = ia64; then
9819     # AIX 5 supports IA64
9820     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9821     shlibpath_var=LD_LIBRARY_PATH
9822   else
9823     # With GCC up to 2.95.x, collect2 would create an import file
9824     # for dependence libraries.  The import file would start with
9825     # the line `#! .'.  This would cause the generated library to
9826     # depend on `.', always an invalid library.  This was fixed in
9827     # development snapshots of GCC prior to 3.0.
9828     case $host_os in
9829       aix4 | aix4.[01] | aix4.[01].*)
9830       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9831            echo ' yes '
9832            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9833         :
9834       else
9835         can_build_shared=no
9836       fi
9837       ;;
9838     esac
9839     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9840     # soname into executable. Probably we can add versioning support to
9841     # collect2, so additional links can be useful in future.
9842     if test "$aix_use_runtimelinking" = yes; then
9843       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9844       # instead of lib<name>.a to let people know that these are not
9845       # typical AIX shared libraries.
9846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847     else
9848       # We preserve .a as extension for shared libraries through AIX4.2
9849       # and later when we are not doing run time linking.
9850       library_names_spec='${libname}${release}.a $libname.a'
9851       soname_spec='${libname}${release}${shared_ext}$major'
9852     fi
9853     shlibpath_var=LIBPATH
9854   fi
9855   ;;
9856
9857 amigaos*)
9858   case $host_cpu in
9859   powerpc)
9860     # Since July 2007 AmigaOS4 officially supports .so libraries.
9861     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863     ;;
9864   m68k)
9865     library_names_spec='$libname.ixlibrary $libname.a'
9866     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9867     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'
9868     ;;
9869   esac
9870   ;;
9871
9872 beos*)
9873   library_names_spec='${libname}${shared_ext}'
9874   dynamic_linker="$host_os ld.so"
9875   shlibpath_var=LIBRARY_PATH
9876   ;;
9877
9878 bsdi[45]*)
9879   version_type=linux
9880   need_version=no
9881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882   soname_spec='${libname}${release}${shared_ext}$major'
9883   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9884   shlibpath_var=LD_LIBRARY_PATH
9885   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9886   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9887   # the default ld.so.conf also contains /usr/contrib/lib and
9888   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9889   # libtool to hard-code these into programs
9890   ;;
9891
9892 cygwin* | mingw* | pw32* | cegcc*)
9893   version_type=windows
9894   shrext_cmds=".dll"
9895   need_version=no
9896   need_lib_prefix=no
9897
9898   case $GCC,$host_os in
9899   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9900     library_names_spec='$libname.dll.a'
9901     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9902     postinstall_cmds='base_file=`basename \${file}`~
9903       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9904       dldir=$destdir/`dirname \$dlpath`~
9905       test -d \$dldir || mkdir -p \$dldir~
9906       $install_prog $dir/$dlname \$dldir/$dlname~
9907       chmod a+x \$dldir/$dlname~
9908       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9909         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9910       fi'
9911     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9912       dlpath=$dir/\$dldll~
9913        $RM \$dlpath'
9914     shlibpath_overrides_runpath=yes
9915
9916     case $host_os in
9917     cygwin*)
9918       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9919       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9920       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9921       ;;
9922     mingw* | cegcc*)
9923       # MinGW DLLs use traditional 'lib' prefix
9924       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9926       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9927         # It is most probably a Windows format PATH printed by
9928         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9929         # path with ; separators, and with drive letters. We can handle the
9930         # drive letters (cygwin fileutils understands them), so leave them,
9931         # especially as we might pass files found there to a mingw objdump,
9932         # which wouldn't understand a cygwinified path. Ahh.
9933         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9934       else
9935         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9936       fi
9937       ;;
9938     pw32*)
9939       # pw32 DLLs use 'pw' prefix rather than 'lib'
9940       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941       ;;
9942     esac
9943     ;;
9944
9945   *)
9946     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9947     ;;
9948   esac
9949   dynamic_linker='Win32 ld.exe'
9950   # FIXME: first we should search . and the directory the executable is in
9951   shlibpath_var=PATH
9952   ;;
9953
9954 darwin* | rhapsody*)
9955   dynamic_linker="$host_os dyld"
9956   version_type=darwin
9957   need_lib_prefix=no
9958   need_version=no
9959   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9960   soname_spec='${libname}${release}${major}$shared_ext'
9961   shlibpath_overrides_runpath=yes
9962   shlibpath_var=DYLD_LIBRARY_PATH
9963   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9964
9965   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9966   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9967   ;;
9968
9969 dgux*)
9970   version_type=linux
9971   need_lib_prefix=no
9972   need_version=no
9973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9974   soname_spec='${libname}${release}${shared_ext}$major'
9975   shlibpath_var=LD_LIBRARY_PATH
9976   ;;
9977
9978 freebsd1*)
9979   dynamic_linker=no
9980   ;;
9981
9982 freebsd* | dragonfly*)
9983   # DragonFly does not have aout.  When/if they implement a new
9984   # versioning mechanism, adjust this.
9985   if test -x /usr/bin/objformat; then
9986     objformat=`/usr/bin/objformat`
9987   else
9988     case $host_os in
9989     freebsd[123]*) objformat=aout ;;
9990     *) objformat=elf ;;
9991     esac
9992   fi
9993   version_type=freebsd-$objformat
9994   case $version_type in
9995     freebsd-elf*)
9996       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9997       need_version=no
9998       need_lib_prefix=no
9999       ;;
10000     freebsd-*)
10001       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10002       need_version=yes
10003       ;;
10004   esac
10005   shlibpath_var=LD_LIBRARY_PATH
10006   case $host_os in
10007   freebsd2*)
10008     shlibpath_overrides_runpath=yes
10009     ;;
10010   freebsd3.[01]* | freebsdelf3.[01]*)
10011     shlibpath_overrides_runpath=yes
10012     hardcode_into_libs=yes
10013     ;;
10014   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10015   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10016     shlibpath_overrides_runpath=no
10017     hardcode_into_libs=yes
10018     ;;
10019   *) # from 4.6 on, and DragonFly
10020     shlibpath_overrides_runpath=yes
10021     hardcode_into_libs=yes
10022     ;;
10023   esac
10024   ;;
10025
10026 gnu*)
10027   version_type=linux
10028   need_lib_prefix=no
10029   need_version=no
10030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10031   soname_spec='${libname}${release}${shared_ext}$major'
10032   shlibpath_var=LD_LIBRARY_PATH
10033   hardcode_into_libs=yes
10034   ;;
10035
10036 hpux9* | hpux10* | hpux11*)
10037   # Give a soname corresponding to the major version so that dld.sl refuses to
10038   # link against other versions.
10039   version_type=sunos
10040   need_lib_prefix=no
10041   need_version=no
10042   case $host_cpu in
10043   ia64*)
10044     shrext_cmds='.so'
10045     hardcode_into_libs=yes
10046     dynamic_linker="$host_os dld.so"
10047     shlibpath_var=LD_LIBRARY_PATH
10048     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050     soname_spec='${libname}${release}${shared_ext}$major'
10051     if test "X$HPUX_IA64_MODE" = X32; then
10052       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10053     else
10054       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10055     fi
10056     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10057     ;;
10058   hppa*64*)
10059     shrext_cmds='.sl'
10060     hardcode_into_libs=yes
10061     dynamic_linker="$host_os dld.sl"
10062     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10063     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065     soname_spec='${libname}${release}${shared_ext}$major'
10066     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10067     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10068     ;;
10069   *)
10070     shrext_cmds='.sl'
10071     dynamic_linker="$host_os dld.sl"
10072     shlibpath_var=SHLIB_PATH
10073     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075     soname_spec='${libname}${release}${shared_ext}$major'
10076     ;;
10077   esac
10078   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10079   postinstall_cmds='chmod 555 $lib'
10080   ;;
10081
10082 interix[3-9]*)
10083   version_type=linux
10084   need_lib_prefix=no
10085   need_version=no
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089   shlibpath_var=LD_LIBRARY_PATH
10090   shlibpath_overrides_runpath=no
10091   hardcode_into_libs=yes
10092   ;;
10093
10094 irix5* | irix6* | nonstopux*)
10095   case $host_os in
10096     nonstopux*) version_type=nonstopux ;;
10097     *)
10098         if test "$lt_cv_prog_gnu_ld" = yes; then
10099                 version_type=linux
10100         else
10101                 version_type=irix
10102         fi ;;
10103   esac
10104   need_lib_prefix=no
10105   need_version=no
10106   soname_spec='${libname}${release}${shared_ext}$major'
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10108   case $host_os in
10109   irix5* | nonstopux*)
10110     libsuff= shlibsuff=
10111     ;;
10112   *)
10113     case $LD in # libtool.m4 will add one of these switches to LD
10114     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115       libsuff= shlibsuff= libmagic=32-bit;;
10116     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117       libsuff=32 shlibsuff=N32 libmagic=N32;;
10118     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120     *) libsuff= shlibsuff= libmagic=never-match;;
10121     esac
10122     ;;
10123   esac
10124   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125   shlibpath_overrides_runpath=no
10126   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128   hardcode_into_libs=yes
10129   ;;
10130
10131 # No shared lib support for Linux oldld, aout, or coff.
10132 linux*oldld* | linux*aout* | linux*coff*)
10133   dynamic_linker=no
10134   ;;
10135
10136 # This must be Linux ELF.
10137 linux* | k*bsd*-gnu)
10138   version_type=linux
10139   need_lib_prefix=no
10140   need_version=no
10141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142   soname_spec='${libname}${release}${shared_ext}$major'
10143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=no
10146   # Some binutils ld are patched to set DT_RUNPATH
10147   save_LDFLAGS=$LDFLAGS
10148   save_libdir=$libdir
10149   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10150        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10151   cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157
10158 int
10159 main ()
10160 {
10161
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170   *) ac_try_echo=$ac_try;;
10171 esac
10172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10173 $as_echo "$ac_try_echo") >&5
10174   (eval "$ac_link") 2>conftest.er1
10175   ac_status=$?
10176   grep -v '^ *+' conftest.er1 >conftest.err
10177   rm -f conftest.er1
10178   cat conftest.err >&5
10179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); } && {
10181          test -z "$ac_c_werror_flag" ||
10182          test ! -s conftest.err
10183        } && test -s conftest$ac_exeext && {
10184          test "$cross_compiling" = yes ||
10185          $as_test_x conftest$ac_exeext
10186        }; then
10187   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10188   shlibpath_overrides_runpath=yes
10189 fi
10190
10191 else
10192   $as_echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195
10196 fi
10197
10198 rm -rf conftest.dSYM
10199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200       conftest$ac_exeext conftest.$ac_ext
10201   LDFLAGS=$save_LDFLAGS
10202   libdir=$save_libdir
10203
10204   # This implies no fast_install, which is unacceptable.
10205   # Some rework will be needed to allow for fast_install
10206   # before this can be enabled.
10207   hardcode_into_libs=yes
10208
10209   # Add ABI-specific directories to the system library path.
10210   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10211
10212   # Append ld.so.conf contents to the search path
10213   if test -f /etc/ld.so.conf; then
10214     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' ' '`
10215     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10216   fi
10217
10218   # We used to test for /lib/ld.so.1 and disable shared libraries on
10219   # powerpc, because MkLinux only supported shared libraries with the
10220   # GNU dynamic linker.  Since this was broken with cross compilers,
10221   # most powerpc-linux boxes support dynamic linking these days and
10222   # people can always --disable-shared, the test was removed, and we
10223   # assume the GNU/Linux dynamic linker is in use.
10224   dynamic_linker='GNU/Linux ld.so'
10225   ;;
10226
10227 netbsd*)
10228   version_type=sunos
10229   need_lib_prefix=no
10230   need_version=no
10231   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10233     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10234     dynamic_linker='NetBSD (a.out) ld.so'
10235   else
10236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10237     soname_spec='${libname}${release}${shared_ext}$major'
10238     dynamic_linker='NetBSD ld.elf_so'
10239   fi
10240   shlibpath_var=LD_LIBRARY_PATH
10241   shlibpath_overrides_runpath=yes
10242   hardcode_into_libs=yes
10243   ;;
10244
10245 newsos6)
10246   version_type=linux
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   shlibpath_overrides_runpath=yes
10250   ;;
10251
10252 *nto* | *qnx*)
10253   version_type=qnx
10254   need_lib_prefix=no
10255   need_version=no
10256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257   soname_spec='${libname}${release}${shared_ext}$major'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   shlibpath_overrides_runpath=no
10260   hardcode_into_libs=yes
10261   dynamic_linker='ldqnx.so'
10262   ;;
10263
10264 openbsd*)
10265   version_type=sunos
10266   sys_lib_dlsearch_path_spec="/usr/lib"
10267   need_lib_prefix=no
10268   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10269   case $host_os in
10270     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10271     *)                          need_version=no  ;;
10272   esac
10273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10274   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275   shlibpath_var=LD_LIBRARY_PATH
10276   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10277     case $host_os in
10278       openbsd2.[89] | openbsd2.[89].*)
10279         shlibpath_overrides_runpath=no
10280         ;;
10281       *)
10282         shlibpath_overrides_runpath=yes
10283         ;;
10284       esac
10285   else
10286     shlibpath_overrides_runpath=yes
10287   fi
10288   ;;
10289
10290 os2*)
10291   libname_spec='$name'
10292   shrext_cmds=".dll"
10293   need_lib_prefix=no
10294   library_names_spec='$libname${shared_ext} $libname.a'
10295   dynamic_linker='OS/2 ld.exe'
10296   shlibpath_var=LIBPATH
10297   ;;
10298
10299 osf3* | osf4* | osf5*)
10300   version_type=osf
10301   need_lib_prefix=no
10302   need_version=no
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10307   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10308   ;;
10309
10310 rdos*)
10311   dynamic_linker=no
10312   ;;
10313
10314 solaris*)
10315   version_type=linux
10316   need_lib_prefix=no
10317   need_version=no
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   shlibpath_overrides_runpath=yes
10322   hardcode_into_libs=yes
10323   # ldd complains unless libraries are executable
10324   postinstall_cmds='chmod +x $lib'
10325   ;;
10326
10327 sunos4*)
10328   version_type=sunos
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10330   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   shlibpath_overrides_runpath=yes
10333   if test "$with_gnu_ld" = yes; then
10334     need_lib_prefix=no
10335   fi
10336   need_version=yes
10337   ;;
10338
10339 sysv4 | sysv4.3*)
10340   version_type=linux
10341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342   soname_spec='${libname}${release}${shared_ext}$major'
10343   shlibpath_var=LD_LIBRARY_PATH
10344   case $host_vendor in
10345     sni)
10346       shlibpath_overrides_runpath=no
10347       need_lib_prefix=no
10348       runpath_var=LD_RUN_PATH
10349       ;;
10350     siemens)
10351       need_lib_prefix=no
10352       ;;
10353     motorola)
10354       need_lib_prefix=no
10355       need_version=no
10356       shlibpath_overrides_runpath=no
10357       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10358       ;;
10359   esac
10360   ;;
10361
10362 sysv4*MP*)
10363   if test -d /usr/nec ;then
10364     version_type=linux
10365     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10366     soname_spec='$libname${shared_ext}.$major'
10367     shlibpath_var=LD_LIBRARY_PATH
10368   fi
10369   ;;
10370
10371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10372   version_type=freebsd-elf
10373   need_lib_prefix=no
10374   need_version=no
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10376   soname_spec='${libname}${release}${shared_ext}$major'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=yes
10379   hardcode_into_libs=yes
10380   if test "$with_gnu_ld" = yes; then
10381     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10382   else
10383     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10384     case $host_os in
10385       sco3.2v5*)
10386         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10387         ;;
10388     esac
10389   fi
10390   sys_lib_dlsearch_path_spec='/usr/lib'
10391   ;;
10392
10393 tpf*)
10394   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10395   version_type=linux
10396   need_lib_prefix=no
10397   need_version=no
10398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399   shlibpath_var=LD_LIBRARY_PATH
10400   shlibpath_overrides_runpath=no
10401   hardcode_into_libs=yes
10402   ;;
10403
10404 uts4*)
10405   version_type=linux
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   shlibpath_var=LD_LIBRARY_PATH
10409   ;;
10410
10411 *)
10412   dynamic_linker=no
10413   ;;
10414 esac
10415 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10416 $as_echo "$dynamic_linker" >&6; }
10417 test "$dynamic_linker" = no && can_build_shared=no
10418
10419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10420 if test "$GCC" = yes; then
10421   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10422 fi
10423
10424 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10425   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10426 fi
10427 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10428   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10429 fi
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
10510
10511
10512
10513
10514
10515
10516
10517   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10518 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10519 hardcode_action=
10520 if test -n "$hardcode_libdir_flag_spec" ||
10521    test -n "$runpath_var" ||
10522    test "X$hardcode_automatic" = "Xyes" ; then
10523
10524   # We can hardcode non-existent directories.
10525   if test "$hardcode_direct" != no &&
10526      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10527      # have to relink, otherwise we might link with an installed library
10528      # when we should be linking with a yet-to-be-installed one
10529      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10530      test "$hardcode_minus_L" != no; then
10531     # Linking always hardcodes the temporary library directory.
10532     hardcode_action=relink
10533   else
10534     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10535     hardcode_action=immediate
10536   fi
10537 else
10538   # We cannot hardcode anything, or else we can only hardcode existing
10539   # directories.
10540   hardcode_action=unsupported
10541 fi
10542 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10543 $as_echo "$hardcode_action" >&6; }
10544
10545 if test "$hardcode_action" = relink ||
10546    test "$inherit_rpath" = yes; then
10547   # Fast installation is not supported
10548   enable_fast_install=no
10549 elif test "$shlibpath_overrides_runpath" = yes ||
10550      test "$enable_shared" = no; then
10551   # Fast installation is not necessary
10552   enable_fast_install=needless
10553 fi
10554
10555
10556
10557
10558
10559
10560   if test "x$enable_dlopen" != xyes; then
10561   enable_dlopen=unknown
10562   enable_dlopen_self=unknown
10563   enable_dlopen_self_static=unknown
10564 else
10565   lt_cv_dlopen=no
10566   lt_cv_dlopen_libs=
10567
10568   case $host_os in
10569   beos*)
10570     lt_cv_dlopen="load_add_on"
10571     lt_cv_dlopen_libs=
10572     lt_cv_dlopen_self=yes
10573     ;;
10574
10575   mingw* | pw32* | cegcc*)
10576     lt_cv_dlopen="LoadLibrary"
10577     lt_cv_dlopen_libs=
10578     ;;
10579
10580   cygwin*)
10581     lt_cv_dlopen="dlopen"
10582     lt_cv_dlopen_libs=
10583     ;;
10584
10585   darwin*)
10586   # if libdl is installed we need to link against it
10587     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10590   $as_echo_n "(cached) " >&6
10591 else
10592   ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-ldl  $LIBS"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600
10601 /* Override any GCC internal prototype to avoid an error.
10602    Use char because int might match the return type of a GCC
10603    builtin and then its argument prototype would still apply.  */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 char dlopen ();
10608 int
10609 main ()
10610 {
10611 return dlopen ();
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10623 $as_echo "$ac_try_echo") >&5
10624   (eval "$ac_link") 2>conftest.er1
10625   ac_status=$?
10626   grep -v '^ *+' conftest.er1 >conftest.err
10627   rm -f conftest.er1
10628   cat conftest.err >&5
10629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); } && {
10631          test -z "$ac_c_werror_flag" ||
10632          test ! -s conftest.err
10633        } && test -s conftest$ac_exeext && {
10634          test "$cross_compiling" = yes ||
10635          $as_test_x conftest$ac_exeext
10636        }; then
10637   ac_cv_lib_dl_dlopen=yes
10638 else
10639   $as_echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642         ac_cv_lib_dl_dlopen=no
10643 fi
10644
10645 rm -rf conftest.dSYM
10646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10647       conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10649 fi
10650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10654 else
10655
10656     lt_cv_dlopen="dyld"
10657     lt_cv_dlopen_libs=
10658     lt_cv_dlopen_self=yes
10659
10660 fi
10661
10662     ;;
10663
10664   *)
10665     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10666 $as_echo_n "checking for shl_load... " >&6; }
10667 if test "${ac_cv_func_shl_load+set}" = set; then
10668   $as_echo_n "(cached) " >&6
10669 else
10670   cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10678 #define shl_load innocuous_shl_load
10679
10680 /* System header to define __stub macros and hopefully few prototypes,
10681     which can conflict with char shl_load (); below.
10682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10683     <limits.h> exists even on freestanding compilers.  */
10684
10685 #ifdef __STDC__
10686 # include <limits.h>
10687 #else
10688 # include <assert.h>
10689 #endif
10690
10691 #undef shl_load
10692
10693 /* Override any GCC internal prototype to avoid an error.
10694    Use char because int might match the return type of a GCC
10695    builtin and then its argument prototype would still apply.  */
10696 #ifdef __cplusplus
10697 extern "C"
10698 #endif
10699 char shl_load ();
10700 /* The GNU C library defines this for functions which it implements
10701     to always fail with ENOSYS.  Some functions are actually named
10702     something starting with __ and the normal name is an alias.  */
10703 #if defined __stub_shl_load || defined __stub___shl_load
10704 choke me
10705 #endif
10706
10707 int
10708 main ()
10709 {
10710 return shl_load ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest$ac_exeext && {
10733          test "$cross_compiling" = yes ||
10734          $as_test_x conftest$ac_exeext
10735        }; then
10736   ac_cv_func_shl_load=yes
10737 else
10738   $as_echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_cv_func_shl_load=no
10742 fi
10743
10744 rm -rf conftest.dSYM
10745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10746       conftest$ac_exeext conftest.$ac_ext
10747 fi
10748 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10749 $as_echo "$ac_cv_func_shl_load" >&6; }
10750 if test "x$ac_cv_func_shl_load" = x""yes; then
10751   lt_cv_dlopen="shl_load"
10752 else
10753   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10754 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10756   $as_echo_n "(cached) " >&6
10757 else
10758   ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-ldld  $LIBS"
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766
10767 /* Override any GCC internal prototype to avoid an error.
10768    Use char because int might match the return type of a GCC
10769    builtin and then its argument prototype would still apply.  */
10770 #ifdef __cplusplus
10771 extern "C"
10772 #endif
10773 char shl_load ();
10774 int
10775 main ()
10776 {
10777 return shl_load ();
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790   (eval "$ac_link") 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } && {
10797          test -z "$ac_c_werror_flag" ||
10798          test ! -s conftest.err
10799        } && test -s conftest$ac_exeext && {
10800          test "$cross_compiling" = yes ||
10801          $as_test_x conftest$ac_exeext
10802        }; then
10803   ac_cv_lib_dld_shl_load=yes
10804 else
10805   $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808         ac_cv_lib_dld_shl_load=no
10809 fi
10810
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813       conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10817 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10818 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10819   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10820 else
10821   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10822 $as_echo_n "checking for dlopen... " >&6; }
10823 if test "${ac_cv_func_dlopen+set}" = set; then
10824   $as_echo_n "(cached) " >&6
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10834 #define dlopen innocuous_dlopen
10835
10836 /* System header to define __stub macros and hopefully few prototypes,
10837     which can conflict with char dlopen (); below.
10838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10839     <limits.h> exists even on freestanding compilers.  */
10840
10841 #ifdef __STDC__
10842 # include <limits.h>
10843 #else
10844 # include <assert.h>
10845 #endif
10846
10847 #undef dlopen
10848
10849 /* Override any GCC internal prototype to avoid an error.
10850    Use char because int might match the return type of a GCC
10851    builtin and then its argument prototype would still apply.  */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 char dlopen ();
10856 /* The GNU C library defines this for functions which it implements
10857     to always fail with ENOSYS.  Some functions are actually named
10858     something starting with __ and the normal name is an alias.  */
10859 #if defined __stub_dlopen || defined __stub___dlopen
10860 choke me
10861 #endif
10862
10863 int
10864 main ()
10865 {
10866 return dlopen ();
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879   (eval "$ac_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } && {
10886          test -z "$ac_c_werror_flag" ||
10887          test ! -s conftest.err
10888        } && test -s conftest$ac_exeext && {
10889          test "$cross_compiling" = yes ||
10890          $as_test_x conftest$ac_exeext
10891        }; then
10892   ac_cv_func_dlopen=yes
10893 else
10894   $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_cv_func_dlopen=no
10898 fi
10899
10900 rm -rf conftest.dSYM
10901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902       conftest$ac_exeext conftest.$ac_ext
10903 fi
10904 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10905 $as_echo "$ac_cv_func_dlopen" >&6; }
10906 if test "x$ac_cv_func_dlopen" = x""yes; then
10907   lt_cv_dlopen="dlopen"
10908 else
10909   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10910 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10912   $as_echo_n "(cached) " >&6
10913 else
10914   ac_check_lib_save_LIBS=$LIBS
10915 LIBS="-ldl  $LIBS"
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h.  */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h.  */
10922
10923 /* Override any GCC internal prototype to avoid an error.
10924    Use char because int might match the return type of a GCC
10925    builtin and then its argument prototype would still apply.  */
10926 #ifdef __cplusplus
10927 extern "C"
10928 #endif
10929 char dlopen ();
10930 int
10931 main ()
10932 {
10933 return dlopen ();
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (ac_try="$ac_link"
10940 case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10945 $as_echo "$ac_try_echo") >&5
10946   (eval "$ac_link") 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } && {
10953          test -z "$ac_c_werror_flag" ||
10954          test ! -s conftest.err
10955        } && test -s conftest$ac_exeext && {
10956          test "$cross_compiling" = yes ||
10957          $as_test_x conftest$ac_exeext
10958        }; then
10959   ac_cv_lib_dl_dlopen=yes
10960 else
10961   $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964         ac_cv_lib_dl_dlopen=no
10965 fi
10966
10967 rm -rf conftest.dSYM
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969       conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10971 fi
10972 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10974 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10975   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10976 else
10977   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10978 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10980   $as_echo_n "(cached) " >&6
10981 else
10982   ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lsvld  $LIBS"
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990
10991 /* Override any GCC internal prototype to avoid an error.
10992    Use char because int might match the return type of a GCC
10993    builtin and then its argument prototype would still apply.  */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 char dlopen ();
10998 int
10999 main ()
11000 {
11001 return dlopen ();
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11013 $as_echo "$ac_try_echo") >&5
11014   (eval "$ac_link") 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } && {
11021          test -z "$ac_c_werror_flag" ||
11022          test ! -s conftest.err
11023        } && test -s conftest$ac_exeext && {
11024          test "$cross_compiling" = yes ||
11025          $as_test_x conftest$ac_exeext
11026        }; then
11027   ac_cv_lib_svld_dlopen=yes
11028 else
11029   $as_echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032         ac_cv_lib_svld_dlopen=no
11033 fi
11034
11035 rm -rf conftest.dSYM
11036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11037       conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11041 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11042 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11044 else
11045   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11046 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11047 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11048   $as_echo_n "(cached) " >&6
11049 else
11050   ac_check_lib_save_LIBS=$LIBS
11051 LIBS="-ldld  $LIBS"
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058
11059 /* Override any GCC internal prototype to avoid an error.
11060    Use char because int might match the return type of a GCC
11061    builtin and then its argument prototype would still apply.  */
11062 #ifdef __cplusplus
11063 extern "C"
11064 #endif
11065 char dld_link ();
11066 int
11067 main ()
11068 {
11069 return dld_link ();
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11081 $as_echo "$ac_try_echo") >&5
11082   (eval "$ac_link") 2>conftest.er1
11083   ac_status=$?
11084   grep -v '^ *+' conftest.er1 >conftest.err
11085   rm -f conftest.er1
11086   cat conftest.err >&5
11087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } && {
11089          test -z "$ac_c_werror_flag" ||
11090          test ! -s conftest.err
11091        } && test -s conftest$ac_exeext && {
11092          test "$cross_compiling" = yes ||
11093          $as_test_x conftest$ac_exeext
11094        }; then
11095   ac_cv_lib_dld_dld_link=yes
11096 else
11097   $as_echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100         ac_cv_lib_dld_dld_link=no
11101 fi
11102
11103 rm -rf conftest.dSYM
11104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105       conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11109 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11110 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11111   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11112 fi
11113
11114
11115 fi
11116
11117
11118 fi
11119
11120
11121 fi
11122
11123
11124 fi
11125
11126
11127 fi
11128
11129     ;;
11130   esac
11131
11132   if test "x$lt_cv_dlopen" != xno; then
11133     enable_dlopen=yes
11134   else
11135     enable_dlopen=no
11136   fi
11137
11138   case $lt_cv_dlopen in
11139   dlopen)
11140     save_CPPFLAGS="$CPPFLAGS"
11141     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11142
11143     save_LDFLAGS="$LDFLAGS"
11144     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11145
11146     save_LIBS="$LIBS"
11147     LIBS="$lt_cv_dlopen_libs $LIBS"
11148
11149     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11150 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11151 if test "${lt_cv_dlopen_self+set}" = set; then
11152   $as_echo_n "(cached) " >&6
11153 else
11154           if test "$cross_compiling" = yes; then :
11155   lt_cv_dlopen_self=cross
11156 else
11157   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11158   lt_status=$lt_dlunknown
11159   cat > conftest.$ac_ext <<_LT_EOF
11160 #line 11160 "configure"
11161 #include "confdefs.h"
11162
11163 #if HAVE_DLFCN_H
11164 #include <dlfcn.h>
11165 #endif
11166
11167 #include <stdio.h>
11168
11169 #ifdef RTLD_GLOBAL
11170 #  define LT_DLGLOBAL           RTLD_GLOBAL
11171 #else
11172 #  ifdef DL_GLOBAL
11173 #    define LT_DLGLOBAL         DL_GLOBAL
11174 #  else
11175 #    define LT_DLGLOBAL         0
11176 #  endif
11177 #endif
11178
11179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11180    find out it does not work in some platform. */
11181 #ifndef LT_DLLAZY_OR_NOW
11182 #  ifdef RTLD_LAZY
11183 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11184 #  else
11185 #    ifdef DL_LAZY
11186 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11187 #    else
11188 #      ifdef RTLD_NOW
11189 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11190 #      else
11191 #        ifdef DL_NOW
11192 #          define LT_DLLAZY_OR_NOW      DL_NOW
11193 #        else
11194 #          define LT_DLLAZY_OR_NOW      0
11195 #        endif
11196 #      endif
11197 #    endif
11198 #  endif
11199 #endif
11200
11201 void fnord() { int i=42;}
11202 int main ()
11203 {
11204   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11205   int status = $lt_dlunknown;
11206
11207   if (self)
11208     {
11209       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11210       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11211       /* dlclose (self); */
11212     }
11213   else
11214     puts (dlerror ());
11215
11216   return status;
11217 }
11218 _LT_EOF
11219   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220   (eval $ac_link) 2>&5
11221   ac_status=$?
11222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11224     (./conftest; exit; ) >&5 2>/dev/null
11225     lt_status=$?
11226     case x$lt_status in
11227       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11228       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11229       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11230     esac
11231   else :
11232     # compilation failed
11233     lt_cv_dlopen_self=no
11234   fi
11235 fi
11236 rm -fr conftest*
11237
11238
11239 fi
11240 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11241 $as_echo "$lt_cv_dlopen_self" >&6; }
11242
11243     if test "x$lt_cv_dlopen_self" = xyes; then
11244       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11245       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11246 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11247 if test "${lt_cv_dlopen_self_static+set}" = set; then
11248   $as_echo_n "(cached) " >&6
11249 else
11250           if test "$cross_compiling" = yes; then :
11251   lt_cv_dlopen_self_static=cross
11252 else
11253   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11254   lt_status=$lt_dlunknown
11255   cat > conftest.$ac_ext <<_LT_EOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11258
11259 #if HAVE_DLFCN_H
11260 #include <dlfcn.h>
11261 #endif
11262
11263 #include <stdio.h>
11264
11265 #ifdef RTLD_GLOBAL
11266 #  define LT_DLGLOBAL           RTLD_GLOBAL
11267 #else
11268 #  ifdef DL_GLOBAL
11269 #    define LT_DLGLOBAL         DL_GLOBAL
11270 #  else
11271 #    define LT_DLGLOBAL         0
11272 #  endif
11273 #endif
11274
11275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11276    find out it does not work in some platform. */
11277 #ifndef LT_DLLAZY_OR_NOW
11278 #  ifdef RTLD_LAZY
11279 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11280 #  else
11281 #    ifdef DL_LAZY
11282 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11283 #    else
11284 #      ifdef RTLD_NOW
11285 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11286 #      else
11287 #        ifdef DL_NOW
11288 #          define LT_DLLAZY_OR_NOW      DL_NOW
11289 #        else
11290 #          define LT_DLLAZY_OR_NOW      0
11291 #        endif
11292 #      endif
11293 #    endif
11294 #  endif
11295 #endif
11296
11297 void fnord() { int i=42;}
11298 int main ()
11299 {
11300   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11301   int status = $lt_dlunknown;
11302
11303   if (self)
11304     {
11305       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11306       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11307       /* dlclose (self); */
11308     }
11309   else
11310     puts (dlerror ());
11311
11312   return status;
11313 }
11314 _LT_EOF
11315   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316   (eval $ac_link) 2>&5
11317   ac_status=$?
11318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11320     (./conftest; exit; ) >&5 2>/dev/null
11321     lt_status=$?
11322     case x$lt_status in
11323       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11324       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11325       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11326     esac
11327   else :
11328     # compilation failed
11329     lt_cv_dlopen_self_static=no
11330   fi
11331 fi
11332 rm -fr conftest*
11333
11334
11335 fi
11336 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11337 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11338     fi
11339
11340     CPPFLAGS="$save_CPPFLAGS"
11341     LDFLAGS="$save_LDFLAGS"
11342     LIBS="$save_LIBS"
11343     ;;
11344   esac
11345
11346   case $lt_cv_dlopen_self in
11347   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11348   *) enable_dlopen_self=unknown ;;
11349   esac
11350
11351   case $lt_cv_dlopen_self_static in
11352   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11353   *) enable_dlopen_self_static=unknown ;;
11354   esac
11355 fi
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373 striplib=
11374 old_striplib=
11375 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11376 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11377 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11378   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11379   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11380   { $as_echo "$as_me:$LINENO: result: yes" >&5
11381 $as_echo "yes" >&6; }
11382 else
11383 # FIXME - insert some real tests, host_os isn't really good enough
11384   case $host_os in
11385   darwin*)
11386     if test -n "$STRIP" ; then
11387       striplib="$STRIP -x"
11388       old_striplib="$STRIP -S"
11389       { $as_echo "$as_me:$LINENO: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391     else
11392       { $as_echo "$as_me:$LINENO: result: no" >&5
11393 $as_echo "no" >&6; }
11394     fi
11395     ;;
11396   *)
11397     { $as_echo "$as_me:$LINENO: result: no" >&5
11398 $as_echo "no" >&6; }
11399     ;;
11400   esac
11401 fi
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414   # Report which library types will actually be built
11415   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11416 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11417   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11418 $as_echo "$can_build_shared" >&6; }
11419
11420   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11421 $as_echo_n "checking whether to build shared libraries... " >&6; }
11422   test "$can_build_shared" = "no" && enable_shared=no
11423
11424   # On AIX, shared libraries and static libraries use the same namespace, and
11425   # are all built from PIC.
11426   case $host_os in
11427   aix3*)
11428     test "$enable_shared" = yes && enable_static=no
11429     if test -n "$RANLIB"; then
11430       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11431       postinstall_cmds='$RANLIB $lib'
11432     fi
11433     ;;
11434
11435   aix[4-9]*)
11436     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11437       test "$enable_shared" = yes && enable_static=no
11438     fi
11439     ;;
11440   esac
11441   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11442 $as_echo "$enable_shared" >&6; }
11443
11444   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11445 $as_echo_n "checking whether to build static libraries... " >&6; }
11446   # Make sure either enable_shared or enable_static is yes.
11447   test "$enable_shared" = yes || enable_static=yes
11448   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11449 $as_echo "$enable_static" >&6; }
11450
11451
11452
11453
11454 fi
11455 ac_ext=c
11456 ac_cpp='$CPP $CPPFLAGS'
11457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11460
11461 CC="$lt_save_CC"
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475         ac_config_commands="$ac_config_commands libtool"
11476
11477
11478
11479
11480 # Only expand once:
11481
11482
11483
11484
11485
11486 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11487 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11488     # Check whether --enable-maintainer-mode was given.
11489 if test "${enable_maintainer_mode+set}" = set; then
11490   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11491 else
11492   USE_MAINTAINER_MODE=no
11493 fi
11494
11495   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11496 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11497    if test $USE_MAINTAINER_MODE = yes; then
11498   MAINTAINER_MODE_TRUE=
11499   MAINTAINER_MODE_FALSE='#'
11500 else
11501   MAINTAINER_MODE_TRUE='#'
11502   MAINTAINER_MODE_FALSE=
11503 fi
11504
11505   MAINT=$MAINTAINER_MODE_TRUE
11506
11507
11508
11509
11510 for ac_header in sys/mman.h
11511 do
11512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 $as_echo_n "checking for $ac_header... " >&6; }
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517   $as_echo_n "(cached) " >&6
11518 fi
11519 ac_res=`eval 'as_val=${'$as_ac_Header'}
11520                  $as_echo "$as_val"'`
11521                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11522 $as_echo "$ac_res" >&6; }
11523 else
11524   # Is the header compilable?
11525 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 $as_echo_n "checking $ac_header usability... " >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 $ac_includes_default
11534 #include <$ac_header>
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540   *) ac_try_echo=$ac_try;;
11541 esac
11542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11543 $as_echo "$ac_try_echo") >&5
11544   (eval "$ac_compile") 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } && {
11551          test -z "$ac_c_werror_flag" ||
11552          test ! -s conftest.err
11553        } && test -s conftest.$ac_objext; then
11554   ac_header_compiler=yes
11555 else
11556   $as_echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559         ac_header_compiler=no
11560 fi
11561
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564 $as_echo "$ac_header_compiler" >&6; }
11565
11566 # Is the header present?
11567 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568 $as_echo_n "checking $ac_header presence... " >&6; }
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 #include <$ac_header>
11576 _ACEOF
11577 if { (ac_try="$ac_cpp conftest.$ac_ext"
11578 case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11583 $as_echo "$ac_try_echo") >&5
11584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
11588   cat conftest.err >&5
11589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); } >/dev/null && {
11591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11592          test ! -s conftest.err
11593        }; then
11594   ac_header_preproc=yes
11595 else
11596   $as_echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599   ac_header_preproc=no
11600 fi
11601
11602 rm -f conftest.err conftest.$ac_ext
11603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604 $as_echo "$ac_header_preproc" >&6; }
11605
11606 # So?  What about this header?
11607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608   yes:no: )
11609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613     ac_header_preproc=yes
11614     ;;
11615   no:yes:* )
11616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11619 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11623 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11624     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628     ( cat <<\_ASBOX
11629 ## ------------------------------------------- ##
11630 ## Report this to http://gcc.gnu.org/bugs.html ##
11631 ## ------------------------------------------- ##
11632 _ASBOX
11633      ) | sed "s/^/$as_me: WARNING:     /" >&2
11634     ;;
11635 esac
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639   $as_echo_n "(cached) " >&6
11640 else
11641   eval "$as_ac_Header=\$ac_header_preproc"
11642 fi
11643 ac_res=`eval 'as_val=${'$as_ac_Header'}
11644                  $as_echo "$as_val"'`
11645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11647
11648 fi
11649 as_val=`eval 'as_val=${'$as_ac_Header'}
11650                  $as_echo "$as_val"'`
11651    if test "x$as_val" = x""yes; then
11652   cat >>confdefs.h <<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654 _ACEOF
11655
11656 fi
11657
11658 done
11659
11660
11661 for ac_func in mmap
11662 do
11663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 $as_echo_n "checking for $ac_func... " >&6; }
11666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11667   $as_echo_n "(cached) " >&6
11668 else
11669   cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h.  */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h.  */
11675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11677 #define $ac_func innocuous_$ac_func
11678
11679 /* System header to define __stub macros and hopefully few prototypes,
11680     which can conflict with char $ac_func (); below.
11681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11682     <limits.h> exists even on freestanding compilers.  */
11683
11684 #ifdef __STDC__
11685 # include <limits.h>
11686 #else
11687 # include <assert.h>
11688 #endif
11689
11690 #undef $ac_func
11691
11692 /* Override any GCC internal prototype to avoid an error.
11693    Use char because int might match the return type of a GCC
11694    builtin and then its argument prototype would still apply.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char $ac_func ();
11699 /* The GNU C library defines this for functions which it implements
11700     to always fail with ENOSYS.  Some functions are actually named
11701     something starting with __ and the normal name is an alias.  */
11702 #if defined __stub_$ac_func || defined __stub___$ac_func
11703 choke me
11704 #endif
11705
11706 int
11707 main ()
11708 {
11709 return $ac_func ();
11710   ;
11711   return 0;
11712 }
11713 _ACEOF
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (ac_try="$ac_link"
11716 case "(($ac_try" in
11717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718   *) ac_try_echo=$ac_try;;
11719 esac
11720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11721 $as_echo "$ac_try_echo") >&5
11722   (eval "$ac_link") 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } && {
11729          test -z "$ac_c_werror_flag" ||
11730          test ! -s conftest.err
11731        } && test -s conftest$ac_exeext && {
11732          test "$cross_compiling" = yes ||
11733          $as_test_x conftest$ac_exeext
11734        }; then
11735   eval "$as_ac_var=yes"
11736 else
11737   $as_echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740         eval "$as_ac_var=no"
11741 fi
11742
11743 rm -rf conftest.dSYM
11744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11745       conftest$ac_exeext conftest.$ac_ext
11746 fi
11747 ac_res=`eval 'as_val=${'$as_ac_var'}
11748                  $as_echo "$as_val"'`
11749                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11750 $as_echo "$ac_res" >&6; }
11751 as_val=`eval 'as_val=${'$as_ac_var'}
11752                  $as_echo "$as_val"'`
11753    if test "x$as_val" = x""yes; then
11754   cat >>confdefs.h <<_ACEOF
11755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11757
11758 fi
11759 done
11760
11761
11762 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11763   { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11764 $as_echo_n "checking for sys/mman.h... " >&6; }
11765 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11766   $as_echo_n "(cached) " >&6
11767 fi
11768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11769 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11770 else
11771   # Is the header compilable?
11772 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11773 $as_echo_n "checking sys/mman.h usability... " >&6; }
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h.  */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h.  */
11780 $ac_includes_default
11781 #include <sys/mman.h>
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (ac_try="$ac_compile"
11785 case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11790 $as_echo "$ac_try_echo") >&5
11791   (eval "$ac_compile") 2>conftest.er1
11792   ac_status=$?
11793   grep -v '^ *+' conftest.er1 >conftest.err
11794   rm -f conftest.er1
11795   cat conftest.err >&5
11796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } && {
11798          test -z "$ac_c_werror_flag" ||
11799          test ! -s conftest.err
11800        } && test -s conftest.$ac_objext; then
11801   ac_header_compiler=yes
11802 else
11803   $as_echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806         ac_header_compiler=no
11807 fi
11808
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 $as_echo "$ac_header_compiler" >&6; }
11812
11813 # Is the header present?
11814 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11815 $as_echo_n "checking sys/mman.h presence... " >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 #include <sys/mman.h>
11823 _ACEOF
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } >/dev/null && {
11838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11839          test ! -s conftest.err
11840        }; then
11841   ac_header_preproc=yes
11842 else
11843   $as_echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846   ac_header_preproc=no
11847 fi
11848
11849 rm -f conftest.err conftest.$ac_ext
11850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 $as_echo "$ac_header_preproc" >&6; }
11852
11853 # So?  What about this header?
11854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11855   yes:no: )
11856     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11857 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11859 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11860     ac_header_preproc=yes
11861     ;;
11862   no:yes:* )
11863     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11864 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11865     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
11866 $as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
11867     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11868 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11869     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
11870 $as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11871     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11872 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11873     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11874 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11875     ( cat <<\_ASBOX
11876 ## ------------------------------------------- ##
11877 ## Report this to http://gcc.gnu.org/bugs.html ##
11878 ## ------------------------------------------- ##
11879 _ASBOX
11880      ) | sed "s/^/$as_me: WARNING:     /" >&2
11881     ;;
11882 esac
11883 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11884 $as_echo_n "checking for sys/mman.h... " >&6; }
11885 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11886   $as_echo_n "(cached) " >&6
11887 else
11888   ac_cv_header_sys_mman_h=$ac_header_preproc
11889 fi
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11891 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11892
11893 fi
11894 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11895   libffi_header_sys_mman_h=yes
11896 else
11897   libffi_header_sys_mman_h=no
11898 fi
11899
11900
11901 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11902 $as_echo_n "checking for mmap... " >&6; }
11903 if test "${ac_cv_func_mmap+set}" = set; then
11904   $as_echo_n "(cached) " >&6
11905 else
11906   cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11914 #define mmap innocuous_mmap
11915
11916 /* System header to define __stub macros and hopefully few prototypes,
11917     which can conflict with char mmap (); below.
11918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919     <limits.h> exists even on freestanding compilers.  */
11920
11921 #ifdef __STDC__
11922 # include <limits.h>
11923 #else
11924 # include <assert.h>
11925 #endif
11926
11927 #undef mmap
11928
11929 /* Override any GCC internal prototype to avoid an error.
11930    Use char because int might match the return type of a GCC
11931    builtin and then its argument prototype would still apply.  */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 char mmap ();
11936 /* The GNU C library defines this for functions which it implements
11937     to always fail with ENOSYS.  Some functions are actually named
11938     something starting with __ and the normal name is an alias.  */
11939 #if defined __stub_mmap || defined __stub___mmap
11940 choke me
11941 #endif
11942
11943 int
11944 main ()
11945 {
11946 return mmap ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955   *) ac_try_echo=$ac_try;;
11956 esac
11957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11958 $as_echo "$ac_try_echo") >&5
11959   (eval "$ac_link") 2>conftest.er1
11960   ac_status=$?
11961   grep -v '^ *+' conftest.er1 >conftest.err
11962   rm -f conftest.er1
11963   cat conftest.err >&5
11964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } && {
11966          test -z "$ac_c_werror_flag" ||
11967          test ! -s conftest.err
11968        } && test -s conftest$ac_exeext && {
11969          test "$cross_compiling" = yes ||
11970          $as_test_x conftest$ac_exeext
11971        }; then
11972   ac_cv_func_mmap=yes
11973 else
11974   $as_echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977         ac_cv_func_mmap=no
11978 fi
11979
11980 rm -rf conftest.dSYM
11981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11982       conftest$ac_exeext conftest.$ac_ext
11983 fi
11984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11985 $as_echo "$ac_cv_func_mmap" >&6; }
11986 if test "x$ac_cv_func_mmap" = x""yes; then
11987   libffi_func_mmap=yes
11988 else
11989   libffi_func_mmap=no
11990 fi
11991
11992 if test "$libffi_header_sys_mman_h" != yes \
11993  || test "$libffi_func_mmap" != yes; then
11994    ac_cv_func_mmap_file=no
11995    ac_cv_func_mmap_dev_zero=no
11996    ac_cv_func_mmap_anon=no
11997 else
11998    { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11999 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
12000 if test "${ac_cv_func_mmap_file+set}" = set; then
12001   $as_echo_n "(cached) " >&6
12002 else
12003   # Add a system to this blacklist if
12004    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
12005    # memory area containing the same data that you'd get if you applied
12006    # read() to the same fd.  The only system known to have a problem here
12007    # is VMS, where text files have record structure.
12008    case "$host_os" in
12009      vms* | ultrix*)
12010         ac_cv_func_mmap_file=no ;;
12011      *)
12012         ac_cv_func_mmap_file=yes;;
12013    esac
12014 fi
12015 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12016 $as_echo "$ac_cv_func_mmap_file" >&6; }
12017    { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12018 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12019 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12020   $as_echo_n "(cached) " >&6
12021 else
12022   # Add a system to this blacklist if it has mmap() but /dev/zero
12023    # does not exist, or if mmapping /dev/zero does not give anonymous
12024    # zeroed pages with both the following properties:
12025    # 1. If you map N consecutive pages in with one call, and then
12026    #    unmap any subset of those pages, the pages that were not
12027    #    explicitly unmapped remain accessible.
12028    # 2. If you map two adjacent blocks of memory and then unmap them
12029    #    both at once, they must both go away.
12030    # Systems known to be in this category are Windows (all variants),
12031    # VMS, and Darwin.
12032    case "$host_os" in
12033      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12034         ac_cv_func_mmap_dev_zero=no ;;
12035      *)
12036         ac_cv_func_mmap_dev_zero=yes;;
12037    esac
12038 fi
12039 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12040 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12041
12042    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12043    { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12044 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12045 if test "${ac_cv_decl_map_anon+set}" = set; then
12046   $as_echo_n "(cached) " >&6
12047 else
12048   cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054 #include <sys/types.h>
12055 #include <sys/mman.h>
12056 #include <unistd.h>
12057
12058 #ifndef MAP_ANONYMOUS
12059 #define MAP_ANONYMOUS MAP_ANON
12060 #endif
12061
12062 int
12063 main ()
12064 {
12065 int n = MAP_ANONYMOUS;
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074   *) ac_try_echo=$ac_try;;
12075 esac
12076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077 $as_echo "$ac_try_echo") >&5
12078   (eval "$ac_compile") 2>conftest.er1
12079   ac_status=$?
12080   grep -v '^ *+' conftest.er1 >conftest.err
12081   rm -f conftest.er1
12082   cat conftest.err >&5
12083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } && {
12085          test -z "$ac_c_werror_flag" ||
12086          test ! -s conftest.err
12087        } && test -s conftest.$ac_objext; then
12088   ac_cv_decl_map_anon=yes
12089 else
12090   $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093         ac_cv_decl_map_anon=no
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 fi
12098 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12099 $as_echo "$ac_cv_decl_map_anon" >&6; }
12100
12101    if test $ac_cv_decl_map_anon = no; then
12102      ac_cv_func_mmap_anon=no
12103    else
12104      { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12105 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12106 if test "${ac_cv_func_mmap_anon+set}" = set; then
12107   $as_echo_n "(cached) " >&6
12108 else
12109   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12110    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12111    # doesn't give anonymous zeroed pages with the same properties listed
12112    # above for use of /dev/zero.
12113    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12114    case "$host_os" in
12115      vms* | cygwin* | pe | mingw* | sco* | udk* )
12116         ac_cv_func_mmap_anon=no ;;
12117      *)
12118         ac_cv_func_mmap_anon=yes;;
12119    esac
12120 fi
12121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12122 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12123    fi
12124 fi
12125
12126 if test $ac_cv_func_mmap_file = yes; then
12127
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_MMAP_FILE 1
12130 _ACEOF
12131
12132 fi
12133 if test $ac_cv_func_mmap_dev_zero = yes; then
12134
12135 cat >>confdefs.h <<\_ACEOF
12136 #define HAVE_MMAP_DEV_ZERO 1
12137 _ACEOF
12138
12139 fi
12140 if test $ac_cv_func_mmap_anon = yes; then
12141
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_MMAP_ANON 1
12144 _ACEOF
12145
12146 fi
12147
12148
12149  if test -d $srcdir/testsuite; then
12150   TESTSUBDIR_TRUE=
12151   TESTSUBDIR_FALSE='#'
12152 else
12153   TESTSUBDIR_TRUE='#'
12154   TESTSUBDIR_FALSE=
12155 fi
12156
12157
12158 TARGETDIR="unknown"
12159 case "$host" in
12160   alpha*-*-*)
12161         TARGET=ALPHA; TARGETDIR=alpha;
12162         # Support 128-bit long double, changeable via command-line switch.
12163         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12164         ;;
12165
12166   arm*-*-*)
12167         TARGET=ARM; TARGETDIR=arm
12168         ;;
12169
12170   amd64-*-freebsd* | amd64-*-openbsd*)
12171         TARGET=X86_64; TARGETDIR=x86
12172         ;;
12173
12174   amd64-*-freebsd*)
12175         TARGET=X86_64; TARGETDIR=x86
12176         ;;
12177
12178   avr32*-*-*)
12179         TARGET=AVR32; TARGETDIR=avr32
12180         ;;
12181
12182   cris-*-*)
12183         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12184         ;;
12185
12186   frv-*-*)
12187         TARGET=FRV; TARGETDIR=frv
12188         ;;
12189
12190   hppa*-*-linux* | parisc*-*-linux*)
12191         TARGET=PA_LINUX; TARGETDIR=pa
12192         ;;
12193   hppa*64-*-hpux*)
12194         TARGET=PA64_HPUX; TARGETDIR=pa
12195         ;;
12196   hppa*-*-hpux*)
12197         TARGET=PA_HPUX; TARGETDIR=pa
12198         ;;
12199
12200   i?86-*-freebsd* | i?86-*-openbsd*)
12201         TARGET=X86_FREEBSD; TARGETDIR=x86
12202         ;;
12203   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
12204         TARGET=X86_WIN32; TARGETDIR=x86
12205         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12206         # We must also check with_cross_host to decide if this is a native
12207         # or cross-build and select where to install dlls appropriately.
12208         if test -n "$with_cross_host" &&
12209            test x"$with_cross_host" != x"no"; then
12210           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12211         else
12212           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12213         fi
12214         ;;
12215   i?86-*-darwin*)
12216         TARGET=X86_DARWIN; TARGETDIR=x86
12217         ;;
12218   i?86-*-solaris2.1[0-9]*)
12219         TARGET=X86_64; TARGETDIR=x86
12220         ;;
12221   i?86-*-*)
12222         TARGET=X86; TARGETDIR=x86
12223         ;;
12224
12225   ia64*-*-*)
12226         TARGET=IA64; TARGETDIR=ia64
12227         ;;
12228
12229   m32r*-*-*)
12230         TARGET=M32R; TARGETDIR=m32r
12231         ;;
12232
12233   m68k-*-*)
12234         TARGET=M68K; TARGETDIR=m68k
12235         ;;
12236
12237   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12238         TARGET=MIPS; TARGETDIR=mips
12239         ;;
12240   mips*-*-linux*)
12241         # Support 128-bit long double for NewABI.
12242         HAVE_LONG_DOUBLE='defined(__mips64)'
12243         TARGET=MIPS; TARGETDIR=mips
12244         ;;
12245
12246   powerpc*-*-linux* | powerpc-*-sysv*)
12247         TARGET=POWERPC; TARGETDIR=powerpc
12248         ;;
12249   powerpc-*-beos*)
12250         TARGET=POWERPC; TARGETDIR=powerpc
12251         ;;
12252   powerpc-*-darwin*)
12253         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12254         ;;
12255   powerpc-*-aix* | rs6000-*-aix*)
12256         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12257         ;;
12258   powerpc-*-freebsd*)
12259         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12260         ;;
12261  powerpc64-*-freebsd*)
12262         TARGET=POWERPC; TARGETDIR=powerpc
12263         ;;
12264   powerpc*-*-rtems*)
12265         TARGET=POWERPC; TARGETDIR=powerpc
12266         ;;
12267
12268   s390-*-* | s390x-*-*)
12269         TARGET=S390; TARGETDIR=s390
12270         ;;
12271
12272   sh-*-* | sh[34]*-*-*)
12273         TARGET=SH; TARGETDIR=sh
12274         ;;
12275   sh64-*-* | sh5*-*-*)
12276         TARGET=SH64; TARGETDIR=sh64
12277         ;;
12278
12279   sparc*-*-*)
12280         TARGET=SPARC; TARGETDIR=sparc
12281         ;;
12282
12283   x86_64-*-darwin*)
12284         TARGET=X86_DARWIN; TARGETDIR=x86
12285         ;;
12286
12287   x86_64-*-cygwin* | x86_64-*-mingw*)
12288         TARGET=X86_WIN64; TARGETDIR=x86
12289         ;;
12290
12291   x86_64-*-*)
12292         TARGET=X86_64; TARGETDIR=x86
12293         ;;
12294 esac
12295
12296
12297
12298
12299 if test $TARGETDIR = unknown; then
12300   { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12301 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12302    { (exit 1); exit 1; }; }
12303 fi
12304
12305  if test x$TARGET = xMIPS; then
12306   MIPS_TRUE=
12307   MIPS_FALSE='#'
12308 else
12309   MIPS_TRUE='#'
12310   MIPS_FALSE=
12311 fi
12312
12313  if test x$TARGET = xSPARC; then
12314   SPARC_TRUE=
12315   SPARC_FALSE='#'
12316 else
12317   SPARC_TRUE='#'
12318   SPARC_FALSE=
12319 fi
12320
12321  if test x$TARGET = xX86; then
12322   X86_TRUE=
12323   X86_FALSE='#'
12324 else
12325   X86_TRUE='#'
12326   X86_FALSE=
12327 fi
12328
12329  if test x$TARGET = xX86_FREEBSD; then
12330   X86_FREEBSD_TRUE=
12331   X86_FREEBSD_FALSE='#'
12332 else
12333   X86_FREEBSD_TRUE='#'
12334   X86_FREEBSD_FALSE=
12335 fi
12336
12337  if test x$TARGET = xX86_WIN32; then
12338   X86_WIN32_TRUE=
12339   X86_WIN32_FALSE='#'
12340 else
12341   X86_WIN32_TRUE='#'
12342   X86_WIN32_FALSE=
12343 fi
12344
12345  if test x$TARGET = xX86_WIN64; then
12346   X86_WIN64_TRUE=
12347   X86_WIN64_FALSE='#'
12348 else
12349   X86_WIN64_TRUE='#'
12350   X86_WIN64_FALSE=
12351 fi
12352
12353  if test x$TARGET = xX86_DARWIN; then
12354   X86_DARWIN_TRUE=
12355   X86_DARWIN_FALSE='#'
12356 else
12357   X86_DARWIN_TRUE='#'
12358   X86_DARWIN_FALSE=
12359 fi
12360
12361  if test x$TARGET = xALPHA; then
12362   ALPHA_TRUE=
12363   ALPHA_FALSE='#'
12364 else
12365   ALPHA_TRUE='#'
12366   ALPHA_FALSE=
12367 fi
12368
12369  if test x$TARGET = xIA64; then
12370   IA64_TRUE=
12371   IA64_FALSE='#'
12372 else
12373   IA64_TRUE='#'
12374   IA64_FALSE=
12375 fi
12376
12377  if test x$TARGET = xM32R; then
12378   M32R_TRUE=
12379   M32R_FALSE='#'
12380 else
12381   M32R_TRUE='#'
12382   M32R_FALSE=
12383 fi
12384
12385  if test x$TARGET = xM68K; then
12386   M68K_TRUE=
12387   M68K_FALSE='#'
12388 else
12389   M68K_TRUE='#'
12390   M68K_FALSE=
12391 fi
12392
12393  if test x$TARGET = xMOXIE; then
12394   MOXIE_TRUE=
12395   MOXIE_FALSE='#'
12396 else
12397   MOXIE_TRUE='#'
12398   MOXIE_FALSE=
12399 fi
12400
12401  if test x$TARGET = xPOWERPC; then
12402   POWERPC_TRUE=
12403   POWERPC_FALSE='#'
12404 else
12405   POWERPC_TRUE='#'
12406   POWERPC_FALSE=
12407 fi
12408
12409  if test x$TARGET = xPOWERPC_AIX; then
12410   POWERPC_AIX_TRUE=
12411   POWERPC_AIX_FALSE='#'
12412 else
12413   POWERPC_AIX_TRUE='#'
12414   POWERPC_AIX_FALSE=
12415 fi
12416
12417  if test x$TARGET = xPOWERPC_DARWIN; then
12418   POWERPC_DARWIN_TRUE=
12419   POWERPC_DARWIN_FALSE='#'
12420 else
12421   POWERPC_DARWIN_TRUE='#'
12422   POWERPC_DARWIN_FALSE=
12423 fi
12424
12425  if test x$TARGET = xPOWERPC_FREEBSD; then
12426   POWERPC_FREEBSD_TRUE=
12427   POWERPC_FREEBSD_FALSE='#'
12428 else
12429   POWERPC_FREEBSD_TRUE='#'
12430   POWERPC_FREEBSD_FALSE=
12431 fi
12432
12433  if test x$TARGET = xARM; then
12434   ARM_TRUE=
12435   ARM_FALSE='#'
12436 else
12437   ARM_TRUE='#'
12438   ARM_FALSE=
12439 fi
12440
12441  if test x$TARGET = xAVR32; then
12442   AVR32_TRUE=
12443   AVR32_FALSE='#'
12444 else
12445   AVR32_TRUE='#'
12446   AVR32_FALSE=
12447 fi
12448
12449  if test x$TARGET = xLIBFFI_CRIS; then
12450   LIBFFI_CRIS_TRUE=
12451   LIBFFI_CRIS_FALSE='#'
12452 else
12453   LIBFFI_CRIS_TRUE='#'
12454   LIBFFI_CRIS_FALSE=
12455 fi
12456
12457  if test x$TARGET = xFRV; then
12458   FRV_TRUE=
12459   FRV_FALSE='#'
12460 else
12461   FRV_TRUE='#'
12462   FRV_FALSE=
12463 fi
12464
12465  if test x$TARGET = xS390; then
12466   S390_TRUE=
12467   S390_FALSE='#'
12468 else
12469   S390_TRUE='#'
12470   S390_FALSE=
12471 fi
12472
12473  if test x$TARGET = xX86_64; then
12474   X86_64_TRUE=
12475   X86_64_FALSE='#'
12476 else
12477   X86_64_TRUE='#'
12478   X86_64_FALSE=
12479 fi
12480
12481  if test x$TARGET = xSH; then
12482   SH_TRUE=
12483   SH_FALSE='#'
12484 else
12485   SH_TRUE='#'
12486   SH_FALSE=
12487 fi
12488
12489  if test x$TARGET = xSH64; then
12490   SH64_TRUE=
12491   SH64_FALSE='#'
12492 else
12493   SH64_TRUE='#'
12494   SH64_FALSE=
12495 fi
12496
12497  if test x$TARGET = xPA_LINUX; then
12498   PA_LINUX_TRUE=
12499   PA_LINUX_FALSE='#'
12500 else
12501   PA_LINUX_TRUE='#'
12502   PA_LINUX_FALSE=
12503 fi
12504
12505  if test x$TARGET = xPA_HPUX; then
12506   PA_HPUX_TRUE=
12507   PA_HPUX_FALSE='#'
12508 else
12509   PA_HPUX_TRUE='#'
12510   PA_HPUX_FALSE=
12511 fi
12512
12513  if test x$TARGET = xPA64_HPUX; then
12514   PA64_HPUX_TRUE=
12515   PA64_HPUX_FALSE='#'
12516 else
12517   PA64_HPUX_TRUE='#'
12518   PA64_HPUX_FALSE=
12519 fi
12520
12521
12522 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12523 $as_echo_n "checking for ANSI C header files... " >&6; }
12524 if test "${ac_cv_header_stdc+set}" = set; then
12525   $as_echo_n "(cached) " >&6
12526 else
12527   cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 #include <stdlib.h>
12534 #include <stdarg.h>
12535 #include <string.h>
12536 #include <float.h>
12537
12538 int
12539 main ()
12540 {
12541
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (ac_try="$ac_compile"
12548 case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553 $as_echo "$ac_try_echo") >&5
12554   (eval "$ac_compile") 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } && {
12561          test -z "$ac_c_werror_flag" ||
12562          test ! -s conftest.err
12563        } && test -s conftest.$ac_objext; then
12564   ac_cv_header_stdc=yes
12565 else
12566   $as_echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569         ac_cv_header_stdc=no
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573
12574 if test $ac_cv_header_stdc = yes; then
12575   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12576   cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 #include <string.h>
12583
12584 _ACEOF
12585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12586   $EGREP "memchr" >/dev/null 2>&1; then
12587   :
12588 else
12589   ac_cv_header_stdc=no
12590 fi
12591 rm -f conftest*
12592
12593 fi
12594
12595 if test $ac_cv_header_stdc = yes; then
12596   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12597   cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603 #include <stdlib.h>
12604
12605 _ACEOF
12606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12607   $EGREP "free" >/dev/null 2>&1; then
12608   :
12609 else
12610   ac_cv_header_stdc=no
12611 fi
12612 rm -f conftest*
12613
12614 fi
12615
12616 if test $ac_cv_header_stdc = yes; then
12617   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12618   if test "$cross_compiling" = yes; then
12619   :
12620 else
12621   cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 #include <ctype.h>
12628 #include <stdlib.h>
12629 #if ((' ' & 0x0FF) == 0x020)
12630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12632 #else
12633 # define ISLOWER(c) \
12634                    (('a' <= (c) && (c) <= 'i') \
12635                      || ('j' <= (c) && (c) <= 'r') \
12636                      || ('s' <= (c) && (c) <= 'z'))
12637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12638 #endif
12639
12640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12641 int
12642 main ()
12643 {
12644   int i;
12645   for (i = 0; i < 256; i++)
12646     if (XOR (islower (i), ISLOWER (i))
12647         || toupper (i) != TOUPPER (i))
12648       return 2;
12649   return 0;
12650 }
12651 _ACEOF
12652 rm -f conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656   *) ac_try_echo=$ac_try;;
12657 esac
12658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12659 $as_echo "$ac_try_echo") >&5
12660   (eval "$ac_link") 2>&5
12661   ac_status=$?
12662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12664   { (case "(($ac_try" in
12665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666   *) ac_try_echo=$ac_try;;
12667 esac
12668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12669 $as_echo "$ac_try_echo") >&5
12670   (eval "$ac_try") 2>&5
12671   ac_status=$?
12672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; }; then
12674   :
12675 else
12676   $as_echo "$as_me: program exited with status $ac_status" >&5
12677 $as_echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ( exit $ac_status )
12681 ac_cv_header_stdc=no
12682 fi
12683 rm -rf conftest.dSYM
12684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12685 fi
12686
12687
12688 fi
12689 fi
12690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12691 $as_echo "$ac_cv_header_stdc" >&6; }
12692 if test $ac_cv_header_stdc = yes; then
12693
12694 cat >>confdefs.h <<\_ACEOF
12695 #define STDC_HEADERS 1
12696 _ACEOF
12697
12698 fi
12699
12700
12701 for ac_func in memcpy
12702 do
12703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12704 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12705 $as_echo_n "checking for $ac_func... " >&6; }
12706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12707   $as_echo_n "(cached) " >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h.  */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h.  */
12715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12717 #define $ac_func innocuous_$ac_func
12718
12719 /* System header to define __stub macros and hopefully few prototypes,
12720     which can conflict with char $ac_func (); below.
12721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12722     <limits.h> exists even on freestanding compilers.  */
12723
12724 #ifdef __STDC__
12725 # include <limits.h>
12726 #else
12727 # include <assert.h>
12728 #endif
12729
12730 #undef $ac_func
12731
12732 /* Override any GCC internal prototype to avoid an error.
12733    Use char because int might match the return type of a GCC
12734    builtin and then its argument prototype would still apply.  */
12735 #ifdef __cplusplus
12736 extern "C"
12737 #endif
12738 char $ac_func ();
12739 /* The GNU C library defines this for functions which it implements
12740     to always fail with ENOSYS.  Some functions are actually named
12741     something starting with __ and the normal name is an alias.  */
12742 #if defined __stub_$ac_func || defined __stub___$ac_func
12743 choke me
12744 #endif
12745
12746 int
12747 main ()
12748 {
12749 return $ac_func ();
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (ac_try="$ac_link"
12756 case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12761 $as_echo "$ac_try_echo") >&5
12762   (eval "$ac_link") 2>conftest.er1
12763   ac_status=$?
12764   grep -v '^ *+' conftest.er1 >conftest.err
12765   rm -f conftest.er1
12766   cat conftest.err >&5
12767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } && {
12769          test -z "$ac_c_werror_flag" ||
12770          test ! -s conftest.err
12771        } && test -s conftest$ac_exeext && {
12772          test "$cross_compiling" = yes ||
12773          $as_test_x conftest$ac_exeext
12774        }; then
12775   eval "$as_ac_var=yes"
12776 else
12777   $as_echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780         eval "$as_ac_var=no"
12781 fi
12782
12783 rm -rf conftest.dSYM
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785       conftest$ac_exeext conftest.$ac_ext
12786 fi
12787 ac_res=`eval 'as_val=${'$as_ac_var'}
12788                  $as_echo "$as_val"'`
12789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12791 as_val=`eval 'as_val=${'$as_ac_var'}
12792                  $as_echo "$as_val"'`
12793    if test "x$as_val" = x""yes; then
12794   cat >>confdefs.h <<_ACEOF
12795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12796 _ACEOF
12797
12798 fi
12799 done
12800
12801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12802 # for constant arguments.  Useless!
12803 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12804 $as_echo_n "checking for working alloca.h... " >&6; }
12805 if test "${ac_cv_working_alloca_h+set}" = set; then
12806   $as_echo_n "(cached) " >&6
12807 else
12808   cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814 #include <alloca.h>
12815 int
12816 main ()
12817 {
12818 char *p = (char *) alloca (2 * sizeof (int));
12819                           if (p) return 0;
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (ac_try="$ac_link"
12826 case "(($ac_try" in
12827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828   *) ac_try_echo=$ac_try;;
12829 esac
12830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12831 $as_echo "$ac_try_echo") >&5
12832   (eval "$ac_link") 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } && {
12839          test -z "$ac_c_werror_flag" ||
12840          test ! -s conftest.err
12841        } && test -s conftest$ac_exeext && {
12842          test "$cross_compiling" = yes ||
12843          $as_test_x conftest$ac_exeext
12844        }; then
12845   ac_cv_working_alloca_h=yes
12846 else
12847   $as_echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12849
12850         ac_cv_working_alloca_h=no
12851 fi
12852
12853 rm -rf conftest.dSYM
12854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12855       conftest$ac_exeext conftest.$ac_ext
12856 fi
12857 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12858 $as_echo "$ac_cv_working_alloca_h" >&6; }
12859 if test $ac_cv_working_alloca_h = yes; then
12860
12861 cat >>confdefs.h <<\_ACEOF
12862 #define HAVE_ALLOCA_H 1
12863 _ACEOF
12864
12865 fi
12866
12867 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12868 $as_echo_n "checking for alloca... " >&6; }
12869 if test "${ac_cv_func_alloca_works+set}" = set; then
12870   $as_echo_n "(cached) " >&6
12871 else
12872   cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 #ifdef __GNUC__
12879 # define alloca __builtin_alloca
12880 #else
12881 # ifdef _MSC_VER
12882 #  include <malloc.h>
12883 #  define alloca _alloca
12884 # else
12885 #  ifdef HAVE_ALLOCA_H
12886 #   include <alloca.h>
12887 #  else
12888 #   ifdef _AIX
12889  #pragma alloca
12890 #   else
12891 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12892 char *alloca ();
12893 #    endif
12894 #   endif
12895 #  endif
12896 # endif
12897 #endif
12898
12899 int
12900 main ()
12901 {
12902 char *p = (char *) alloca (1);
12903                                     if (p) return 0;
12904   ;
12905   return 0;
12906 }
12907 _ACEOF
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12915 $as_echo "$ac_try_echo") >&5
12916   (eval "$ac_link") 2>conftest.er1
12917   ac_status=$?
12918   grep -v '^ *+' conftest.er1 >conftest.err
12919   rm -f conftest.er1
12920   cat conftest.err >&5
12921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } && {
12923          test -z "$ac_c_werror_flag" ||
12924          test ! -s conftest.err
12925        } && test -s conftest$ac_exeext && {
12926          test "$cross_compiling" = yes ||
12927          $as_test_x conftest$ac_exeext
12928        }; then
12929   ac_cv_func_alloca_works=yes
12930 else
12931   $as_echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934         ac_cv_func_alloca_works=no
12935 fi
12936
12937 rm -rf conftest.dSYM
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939       conftest$ac_exeext conftest.$ac_ext
12940 fi
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12942 $as_echo "$ac_cv_func_alloca_works" >&6; }
12943
12944 if test $ac_cv_func_alloca_works = yes; then
12945
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_ALLOCA 1
12948 _ACEOF
12949
12950 else
12951   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12952 # that cause trouble.  Some versions do not even contain alloca or
12953 # contain a buggy version.  If you still want to use their alloca,
12954 # use ar to extract alloca.o from them instead of compiling alloca.c.
12955
12956 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define C_ALLOCA 1
12960 _ACEOF
12961
12962
12963 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12964 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12965 if test "${ac_cv_os_cray+set}" = set; then
12966   $as_echo_n "(cached) " >&6
12967 else
12968   cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974 #if defined CRAY && ! defined CRAY2
12975 webecray
12976 #else
12977 wenotbecray
12978 #endif
12979
12980 _ACEOF
12981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12982   $EGREP "webecray" >/dev/null 2>&1; then
12983   ac_cv_os_cray=yes
12984 else
12985   ac_cv_os_cray=no
12986 fi
12987 rm -f conftest*
12988
12989 fi
12990 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12991 $as_echo "$ac_cv_os_cray" >&6; }
12992 if test $ac_cv_os_cray = yes; then
12993   for ac_func in _getb67 GETB67 getb67; do
12994     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12995 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12996 $as_echo_n "checking for $ac_func... " >&6; }
12997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12998   $as_echo_n "(cached) " >&6
12999 else
13000   cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13008 #define $ac_func innocuous_$ac_func
13009
13010 /* System header to define __stub macros and hopefully few prototypes,
13011     which can conflict with char $ac_func (); below.
13012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013     <limits.h> exists even on freestanding compilers.  */
13014
13015 #ifdef __STDC__
13016 # include <limits.h>
13017 #else
13018 # include <assert.h>
13019 #endif
13020
13021 #undef $ac_func
13022
13023 /* Override any GCC internal prototype to avoid an error.
13024    Use char because int might match the return type of a GCC
13025    builtin and then its argument prototype would still apply.  */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 char $ac_func ();
13030 /* The GNU C library defines this for functions which it implements
13031     to always fail with ENOSYS.  Some functions are actually named
13032     something starting with __ and the normal name is an alias.  */
13033 #if defined __stub_$ac_func || defined __stub___$ac_func
13034 choke me
13035 #endif
13036
13037 int
13038 main ()
13039 {
13040 return $ac_func ();
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13052 $as_echo "$ac_try_echo") >&5
13053   (eval "$ac_link") 2>conftest.er1
13054   ac_status=$?
13055   grep -v '^ *+' conftest.er1 >conftest.err
13056   rm -f conftest.er1
13057   cat conftest.err >&5
13058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } && {
13060          test -z "$ac_c_werror_flag" ||
13061          test ! -s conftest.err
13062        } && test -s conftest$ac_exeext && {
13063          test "$cross_compiling" = yes ||
13064          $as_test_x conftest$ac_exeext
13065        }; then
13066   eval "$as_ac_var=yes"
13067 else
13068   $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071         eval "$as_ac_var=no"
13072 fi
13073
13074 rm -rf conftest.dSYM
13075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13076       conftest$ac_exeext conftest.$ac_ext
13077 fi
13078 ac_res=`eval 'as_val=${'$as_ac_var'}
13079                  $as_echo "$as_val"'`
13080                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13081 $as_echo "$ac_res" >&6; }
13082 as_val=`eval 'as_val=${'$as_ac_var'}
13083                  $as_echo "$as_val"'`
13084    if test "x$as_val" = x""yes; then
13085
13086 cat >>confdefs.h <<_ACEOF
13087 #define CRAY_STACKSEG_END $ac_func
13088 _ACEOF
13089
13090     break
13091 fi
13092
13093   done
13094 fi
13095
13096 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13097 $as_echo_n "checking stack direction for C alloca... " >&6; }
13098 if test "${ac_cv_c_stack_direction+set}" = set; then
13099   $as_echo_n "(cached) " >&6
13100 else
13101   if test "$cross_compiling" = yes; then
13102   ac_cv_c_stack_direction=0
13103 else
13104   cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110 $ac_includes_default
13111 int
13112 find_stack_direction ()
13113 {
13114   static char *addr = 0;
13115   auto char dummy;
13116   if (addr == 0)
13117     {
13118       addr = &dummy;
13119       return find_stack_direction ();
13120     }
13121   else
13122     return (&dummy > addr) ? 1 : -1;
13123 }
13124
13125 int
13126 main ()
13127 {
13128   return find_stack_direction () < 0;
13129 }
13130 _ACEOF
13131 rm -f conftest$ac_exeext
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13138 $as_echo "$ac_try_echo") >&5
13139   (eval "$ac_link") 2>&5
13140   ac_status=$?
13141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13143   { (case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13148 $as_echo "$ac_try_echo") >&5
13149   (eval "$ac_try") 2>&5
13150   ac_status=$?
13151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; }; then
13153   ac_cv_c_stack_direction=1
13154 else
13155   $as_echo "$as_me: program exited with status $ac_status" >&5
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159 ( exit $ac_status )
13160 ac_cv_c_stack_direction=-1
13161 fi
13162 rm -rf conftest.dSYM
13163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13164 fi
13165
13166
13167 fi
13168 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13169 $as_echo "$ac_cv_c_stack_direction" >&6; }
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define STACK_DIRECTION $ac_cv_c_stack_direction
13173 _ACEOF
13174
13175
13176 fi
13177
13178
13179 # The cast to long int works around a bug in the HP C Compiler
13180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13182 # This bug is HP SR number 8606223364.
13183 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13184 $as_echo_n "checking size of double... " >&6; }
13185 if test "${ac_cv_sizeof_double+set}" = set; then
13186   $as_echo_n "(cached) " >&6
13187 else
13188   if test "$cross_compiling" = yes; then
13189   # Depending upon the size, compute the lo and hi bounds.
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h.  */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h.  */
13196 $ac_includes_default
13197 int
13198 main ()
13199 {
13200 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13201 test_array [0] = 0
13202
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (ac_try="$ac_compile"
13209 case "(($ac_try" in
13210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211   *) ac_try_echo=$ac_try;;
13212 esac
13213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13214 $as_echo "$ac_try_echo") >&5
13215   (eval "$ac_compile") 2>conftest.er1
13216   ac_status=$?
13217   grep -v '^ *+' conftest.er1 >conftest.err
13218   rm -f conftest.er1
13219   cat conftest.err >&5
13220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } && {
13222          test -z "$ac_c_werror_flag" ||
13223          test ! -s conftest.err
13224        } && test -s conftest.$ac_objext; then
13225   ac_lo=0 ac_mid=0
13226   while :; do
13227     cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233 $ac_includes_default
13234 int
13235 main ()
13236 {
13237 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13238 test_array [0] = 0
13239
13240   ;
13241   return 0;
13242 }
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13251 $as_echo "$ac_try_echo") >&5
13252   (eval "$ac_compile") 2>conftest.er1
13253   ac_status=$?
13254   grep -v '^ *+' conftest.er1 >conftest.err
13255   rm -f conftest.er1
13256   cat conftest.err >&5
13257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } && {
13259          test -z "$ac_c_werror_flag" ||
13260          test ! -s conftest.err
13261        } && test -s conftest.$ac_objext; then
13262   ac_hi=$ac_mid; break
13263 else
13264   $as_echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267         ac_lo=`expr $ac_mid + 1`
13268                         if test $ac_lo -le $ac_mid; then
13269                           ac_lo= ac_hi=
13270                           break
13271                         fi
13272                         ac_mid=`expr 2 '*' $ac_mid + 1`
13273 fi
13274
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276   done
13277 else
13278   $as_echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281         cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 $ac_includes_default
13288 int
13289 main ()
13290 {
13291 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13292 test_array [0] = 0
13293
13294   ;
13295   return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306   (eval "$ac_compile") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } && {
13313          test -z "$ac_c_werror_flag" ||
13314          test ! -s conftest.err
13315        } && test -s conftest.$ac_objext; then
13316   ac_hi=-1 ac_mid=-1
13317   while :; do
13318     cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324 $ac_includes_default
13325 int
13326 main ()
13327 {
13328 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13329 test_array [0] = 0
13330
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13342 $as_echo "$ac_try_echo") >&5
13343   (eval "$ac_compile") 2>conftest.er1
13344   ac_status=$?
13345   grep -v '^ *+' conftest.er1 >conftest.err
13346   rm -f conftest.er1
13347   cat conftest.err >&5
13348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } && {
13350          test -z "$ac_c_werror_flag" ||
13351          test ! -s conftest.err
13352        } && test -s conftest.$ac_objext; then
13353   ac_lo=$ac_mid; break
13354 else
13355   $as_echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358         ac_hi=`expr '(' $ac_mid ')' - 1`
13359                         if test $ac_mid -le $ac_hi; then
13360                           ac_lo= ac_hi=
13361                           break
13362                         fi
13363                         ac_mid=`expr 2 '*' $ac_mid`
13364 fi
13365
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367   done
13368 else
13369   $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372         ac_lo= ac_hi=
13373 fi
13374
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 fi
13377
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 # Binary search between lo and hi bounds.
13380 while test "x$ac_lo" != "x$ac_hi"; do
13381   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13382   cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 $ac_includes_default
13389 int
13390 main ()
13391 {
13392 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13393 test_array [0] = 0
13394
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 rm -f conftest.$ac_objext
13400 if { (ac_try="$ac_compile"
13401 case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407   (eval "$ac_compile") 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } && {
13414          test -z "$ac_c_werror_flag" ||
13415          test ! -s conftest.err
13416        } && test -s conftest.$ac_objext; then
13417   ac_hi=$ac_mid
13418 else
13419   $as_echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422         ac_lo=`expr '(' $ac_mid ')' + 1`
13423 fi
13424
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 done
13427 case $ac_lo in
13428 ?*) ac_cv_sizeof_double=$ac_lo;;
13429 '') if test "$ac_cv_type_double" = yes; then
13430      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13432 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13433 See \`config.log' for more details." >&5
13434 $as_echo "$as_me: error: cannot compute sizeof (double)
13435 See \`config.log' for more details." >&2;}
13436    { (exit 77); exit 77; }; }; }
13437    else
13438      ac_cv_sizeof_double=0
13439    fi ;;
13440 esac
13441 else
13442   cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448 $ac_includes_default
13449 static long int longval () { return (long int) (sizeof (double)); }
13450 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13451 #include <stdio.h>
13452 #include <stdlib.h>
13453 int
13454 main ()
13455 {
13456
13457   FILE *f = fopen ("conftest.val", "w");
13458   if (! f)
13459     return 1;
13460   if (((long int) (sizeof (double))) < 0)
13461     {
13462       long int i = longval ();
13463       if (i != ((long int) (sizeof (double))))
13464         return 1;
13465       fprintf (f, "%ld", i);
13466     }
13467   else
13468     {
13469       unsigned long int i = ulongval ();
13470       if (i != ((long int) (sizeof (double))))
13471         return 1;
13472       fprintf (f, "%lu", i);
13473     }
13474   /* Do not output a trailing newline, as this causes \r\n confusion
13475      on some platforms.  */
13476   return ferror (f) || fclose (f) != 0;
13477
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 rm -f conftest$ac_exeext
13483 if { (ac_try="$ac_link"
13484 case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13489 $as_echo "$ac_try_echo") >&5
13490   (eval "$ac_link") 2>&5
13491   ac_status=$?
13492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13494   { (case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13499 $as_echo "$ac_try_echo") >&5
13500   (eval "$ac_try") 2>&5
13501   ac_status=$?
13502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; }; then
13504   ac_cv_sizeof_double=`cat conftest.val`
13505 else
13506   $as_echo "$as_me: program exited with status $ac_status" >&5
13507 $as_echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13509
13510 ( exit $ac_status )
13511 if test "$ac_cv_type_double" = yes; then
13512      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13514 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13515 See \`config.log' for more details." >&5
13516 $as_echo "$as_me: error: cannot compute sizeof (double)
13517 See \`config.log' for more details." >&2;}
13518    { (exit 77); exit 77; }; }; }
13519    else
13520      ac_cv_sizeof_double=0
13521    fi
13522 fi
13523 rm -rf conftest.dSYM
13524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13525 fi
13526 rm -f conftest.val
13527 fi
13528 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13529 $as_echo "$ac_cv_sizeof_double" >&6; }
13530
13531
13532
13533 cat >>confdefs.h <<_ACEOF
13534 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13535 _ACEOF
13536
13537
13538 # The cast to long int works around a bug in the HP C Compiler
13539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13541 # This bug is HP SR number 8606223364.
13542 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13543 $as_echo_n "checking size of long double... " >&6; }
13544 if test "${ac_cv_sizeof_long_double+set}" = set; then
13545   $as_echo_n "(cached) " >&6
13546 else
13547   if test "$cross_compiling" = yes; then
13548   # Depending upon the size, compute the lo and hi bounds.
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 $ac_includes_default
13556 int
13557 main ()
13558 {
13559 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13560 test_array [0] = 0
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573 $as_echo "$ac_try_echo") >&5
13574   (eval "$ac_compile") 2>conftest.er1
13575   ac_status=$?
13576   grep -v '^ *+' conftest.er1 >conftest.err
13577   rm -f conftest.er1
13578   cat conftest.err >&5
13579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } && {
13581          test -z "$ac_c_werror_flag" ||
13582          test ! -s conftest.err
13583        } && test -s conftest.$ac_objext; then
13584   ac_lo=0 ac_mid=0
13585   while :; do
13586     cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592 $ac_includes_default
13593 int
13594 main ()
13595 {
13596 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13597 test_array [0] = 0
13598
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (ac_try="$ac_compile"
13605 case "(($ac_try" in
13606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607   *) ac_try_echo=$ac_try;;
13608 esac
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611   (eval "$ac_compile") 2>conftest.er1
13612   ac_status=$?
13613   grep -v '^ *+' conftest.er1 >conftest.err
13614   rm -f conftest.er1
13615   cat conftest.err >&5
13616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); } && {
13618          test -z "$ac_c_werror_flag" ||
13619          test ! -s conftest.err
13620        } && test -s conftest.$ac_objext; then
13621   ac_hi=$ac_mid; break
13622 else
13623   $as_echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626         ac_lo=`expr $ac_mid + 1`
13627                         if test $ac_lo -le $ac_mid; then
13628                           ac_lo= ac_hi=
13629                           break
13630                         fi
13631                         ac_mid=`expr 2 '*' $ac_mid + 1`
13632 fi
13633
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635   done
13636 else
13637   $as_echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640         cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646 $ac_includes_default
13647 int
13648 main ()
13649 {
13650 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13651 test_array [0] = 0
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (ac_try="$ac_compile"
13659 case "(($ac_try" in
13660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661   *) ac_try_echo=$ac_try;;
13662 esac
13663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664 $as_echo "$ac_try_echo") >&5
13665   (eval "$ac_compile") 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } && {
13672          test -z "$ac_c_werror_flag" ||
13673          test ! -s conftest.err
13674        } && test -s conftest.$ac_objext; then
13675   ac_hi=-1 ac_mid=-1
13676   while :; do
13677     cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683 $ac_includes_default
13684 int
13685 main ()
13686 {
13687 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13688 test_array [0] = 0
13689
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698   *) ac_try_echo=$ac_try;;
13699 esac
13700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13701 $as_echo "$ac_try_echo") >&5
13702   (eval "$ac_compile") 2>conftest.er1
13703   ac_status=$?
13704   grep -v '^ *+' conftest.er1 >conftest.err
13705   rm -f conftest.er1
13706   cat conftest.err >&5
13707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); } && {
13709          test -z "$ac_c_werror_flag" ||
13710          test ! -s conftest.err
13711        } && test -s conftest.$ac_objext; then
13712   ac_lo=$ac_mid; break
13713 else
13714   $as_echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717         ac_hi=`expr '(' $ac_mid ')' - 1`
13718                         if test $ac_mid -le $ac_hi; then
13719                           ac_lo= ac_hi=
13720                           break
13721                         fi
13722                         ac_mid=`expr 2 '*' $ac_mid`
13723 fi
13724
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726   done
13727 else
13728   $as_echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         ac_lo= ac_hi=
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736
13737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738 # Binary search between lo and hi bounds.
13739 while test "x$ac_lo" != "x$ac_hi"; do
13740   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13741   cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 $ac_includes_default
13748 int
13749 main ()
13750 {
13751 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13752 test_array [0] = 0
13753
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext
13759 if { (ac_try="$ac_compile"
13760 case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13765 $as_echo "$ac_try_echo") >&5
13766   (eval "$ac_compile") 2>conftest.er1
13767   ac_status=$?
13768   grep -v '^ *+' conftest.er1 >conftest.err
13769   rm -f conftest.er1
13770   cat conftest.err >&5
13771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } && {
13773          test -z "$ac_c_werror_flag" ||
13774          test ! -s conftest.err
13775        } && test -s conftest.$ac_objext; then
13776   ac_hi=$ac_mid
13777 else
13778   $as_echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781         ac_lo=`expr '(' $ac_mid ')' + 1`
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 done
13786 case $ac_lo in
13787 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13788 '') if test "$ac_cv_type_long_double" = yes; then
13789      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13791 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13792 See \`config.log' for more details." >&5
13793 $as_echo "$as_me: error: cannot compute sizeof (long double)
13794 See \`config.log' for more details." >&2;}
13795    { (exit 77); exit 77; }; }; }
13796    else
13797      ac_cv_sizeof_long_double=0
13798    fi ;;
13799 esac
13800 else
13801   cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807 $ac_includes_default
13808 static long int longval () { return (long int) (sizeof (long double)); }
13809 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13810 #include <stdio.h>
13811 #include <stdlib.h>
13812 int
13813 main ()
13814 {
13815
13816   FILE *f = fopen ("conftest.val", "w");
13817   if (! f)
13818     return 1;
13819   if (((long int) (sizeof (long double))) < 0)
13820     {
13821       long int i = longval ();
13822       if (i != ((long int) (sizeof (long double))))
13823         return 1;
13824       fprintf (f, "%ld", i);
13825     }
13826   else
13827     {
13828       unsigned long int i = ulongval ();
13829       if (i != ((long int) (sizeof (long double))))
13830         return 1;
13831       fprintf (f, "%lu", i);
13832     }
13833   /* Do not output a trailing newline, as this causes \r\n confusion
13834      on some platforms.  */
13835   return ferror (f) || fclose (f) != 0;
13836
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13848 $as_echo "$ac_try_echo") >&5
13849   (eval "$ac_link") 2>&5
13850   ac_status=$?
13851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13858 $as_echo "$ac_try_echo") >&5
13859   (eval "$ac_try") 2>&5
13860   ac_status=$?
13861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863   ac_cv_sizeof_long_double=`cat conftest.val`
13864 else
13865   $as_echo "$as_me: program exited with status $ac_status" >&5
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ( exit $ac_status )
13870 if test "$ac_cv_type_long_double" = yes; then
13871      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13873 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13874 See \`config.log' for more details." >&5
13875 $as_echo "$as_me: error: cannot compute sizeof (long double)
13876 See \`config.log' for more details." >&2;}
13877    { (exit 77); exit 77; }; }; }
13878    else
13879      ac_cv_sizeof_long_double=0
13880    fi
13881 fi
13882 rm -rf conftest.dSYM
13883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13884 fi
13885 rm -f conftest.val
13886 fi
13887 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13888 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13889
13890
13891
13892 cat >>confdefs.h <<_ACEOF
13893 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13894 _ACEOF
13895
13896
13897
13898 # Also AC_SUBST this variable for ffi.h.
13899 if test -z "$HAVE_LONG_DOUBLE"; then
13900   HAVE_LONG_DOUBLE=0
13901   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13902     if test $ac_cv_sizeof_long_double != 0; then
13903       HAVE_LONG_DOUBLE=1
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define HAVE_LONG_DOUBLE 1
13907 _ACEOF
13908
13909     fi
13910   fi
13911 fi
13912
13913
13914
13915  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13916 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13917 if test "${ac_cv_c_bigendian+set}" = set; then
13918   $as_echo_n "(cached) " >&6
13919 else
13920   ac_cv_c_bigendian=unknown
13921     # See if we're dealing with a universal compiler.
13922     cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 #ifndef __APPLE_CC__
13929                not a universal capable compiler
13930              #endif
13931              typedef int dummy;
13932
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942   (eval "$ac_compile") 2>conftest.er1
13943   ac_status=$?
13944   grep -v '^ *+' conftest.er1 >conftest.err
13945   rm -f conftest.er1
13946   cat conftest.err >&5
13947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } && {
13949          test -z "$ac_c_werror_flag" ||
13950          test ! -s conftest.err
13951        } && test -s conftest.$ac_objext; then
13952
13953         # Check for potential -arch flags.  It is not universal unless
13954         # there are some -arch flags.  Note that *ppc* also matches
13955         # ppc64.  This check is also rather less than ideal.
13956         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13957           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13958         esac
13959 else
13960   $as_echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963
13964 fi
13965
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967     if test $ac_cv_c_bigendian = unknown; then
13968       # See if sys/param.h defines the BYTE_ORDER macro.
13969       cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975 #include <sys/types.h>
13976              #include <sys/param.h>
13977
13978 int
13979 main ()
13980 {
13981 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13982                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13983                      && LITTLE_ENDIAN)
13984               bogus endian macros
13985              #endif
13986
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 rm -f conftest.$ac_objext
13992 if { (ac_try="$ac_compile"
13993 case "(($ac_try" in
13994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995   *) ac_try_echo=$ac_try;;
13996 esac
13997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13998 $as_echo "$ac_try_echo") >&5
13999   (eval "$ac_compile") 2>conftest.er1
14000   ac_status=$?
14001   grep -v '^ *+' conftest.er1 >conftest.err
14002   rm -f conftest.er1
14003   cat conftest.err >&5
14004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } && {
14006          test -z "$ac_c_werror_flag" ||
14007          test ! -s conftest.err
14008        } && test -s conftest.$ac_objext; then
14009   # It does; now see whether it defined to BIG_ENDIAN or not.
14010          cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016 #include <sys/types.h>
14017                 #include <sys/param.h>
14018
14019 int
14020 main ()
14021 {
14022 #if BYTE_ORDER != BIG_ENDIAN
14023                  not big endian
14024                 #endif
14025
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14037 $as_echo "$ac_try_echo") >&5
14038   (eval "$ac_compile") 2>conftest.er1
14039   ac_status=$?
14040   grep -v '^ *+' conftest.er1 >conftest.err
14041   rm -f conftest.er1
14042   cat conftest.err >&5
14043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); } && {
14045          test -z "$ac_c_werror_flag" ||
14046          test ! -s conftest.err
14047        } && test -s conftest.$ac_objext; then
14048   ac_cv_c_bigendian=yes
14049 else
14050   $as_echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053         ac_cv_c_bigendian=no
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 else
14058   $as_echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
14062 fi
14063
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065     fi
14066     if test $ac_cv_c_bigendian = unknown; then
14067       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14068       cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074 #include <limits.h>
14075
14076 int
14077 main ()
14078 {
14079 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14080               bogus endian macros
14081              #endif
14082
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 rm -f conftest.$ac_objext
14088 if { (ac_try="$ac_compile"
14089 case "(($ac_try" in
14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091   *) ac_try_echo=$ac_try;;
14092 esac
14093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14094 $as_echo "$ac_try_echo") >&5
14095   (eval "$ac_compile") 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } && {
14102          test -z "$ac_c_werror_flag" ||
14103          test ! -s conftest.err
14104        } && test -s conftest.$ac_objext; then
14105   # It does; now see whether it defined to _BIG_ENDIAN or not.
14106          cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112 #include <limits.h>
14113
14114 int
14115 main ()
14116 {
14117 #ifndef _BIG_ENDIAN
14118                  not big endian
14119                 #endif
14120
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (ac_try="$ac_compile"
14127 case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14132 $as_echo "$ac_try_echo") >&5
14133   (eval "$ac_compile") 2>conftest.er1
14134   ac_status=$?
14135   grep -v '^ *+' conftest.er1 >conftest.err
14136   rm -f conftest.er1
14137   cat conftest.err >&5
14138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); } && {
14140          test -z "$ac_c_werror_flag" ||
14141          test ! -s conftest.err
14142        } && test -s conftest.$ac_objext; then
14143   ac_cv_c_bigendian=yes
14144 else
14145   $as_echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14147
14148         ac_cv_c_bigendian=no
14149 fi
14150
14151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 else
14153   $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156
14157 fi
14158
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160     fi
14161     if test $ac_cv_c_bigendian = unknown; then
14162       # Compile a test program.
14163       if test "$cross_compiling" = yes; then
14164   # Try to guess by grepping values from an object file.
14165          cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 short int ascii_mm[] =
14172                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14173                 short int ascii_ii[] =
14174                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14175                 int use_ascii (int i) {
14176                   return ascii_mm[i] + ascii_ii[i];
14177                 }
14178                 short int ebcdic_ii[] =
14179                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14180                 short int ebcdic_mm[] =
14181                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14182                 int use_ebcdic (int i) {
14183                   return ebcdic_mm[i] + ebcdic_ii[i];
14184                 }
14185                 extern int foo;
14186
14187 int
14188 main ()
14189 {
14190 return use_ascii (foo) == use_ebcdic (foo);
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
14197 case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14202 $as_echo "$ac_try_echo") >&5
14203   (eval "$ac_compile") 2>conftest.er1
14204   ac_status=$?
14205   grep -v '^ *+' conftest.er1 >conftest.err
14206   rm -f conftest.er1
14207   cat conftest.err >&5
14208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); } && {
14210          test -z "$ac_c_werror_flag" ||
14211          test ! -s conftest.err
14212        } && test -s conftest.$ac_objext; then
14213   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14214               ac_cv_c_bigendian=yes
14215             fi
14216             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14217               if test "$ac_cv_c_bigendian" = unknown; then
14218                 ac_cv_c_bigendian=no
14219               else
14220                 # finding both strings is unlikely to happen, but who knows?
14221                 ac_cv_c_bigendian=unknown
14222               fi
14223             fi
14224 else
14225   $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 else
14233   cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 $ac_includes_default
14240 int
14241 main ()
14242 {
14243
14244              /* Are we little or big endian?  From Harbison&Steele.  */
14245              union
14246              {
14247                long int l;
14248                char c[sizeof (long int)];
14249              } u;
14250              u.l = 1;
14251              return u.c[sizeof (long int) - 1] == 1;
14252
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest$ac_exeext
14258 if { (ac_try="$ac_link"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14264 $as_echo "$ac_try_echo") >&5
14265   (eval "$ac_link") 2>&5
14266   ac_status=$?
14267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14269   { (case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14274 $as_echo "$ac_try_echo") >&5
14275   (eval "$ac_try") 2>&5
14276   ac_status=$?
14277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279   ac_cv_c_bigendian=no
14280 else
14281   $as_echo "$as_me: program exited with status $ac_status" >&5
14282 $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 ( exit $ac_status )
14286 ac_cv_c_bigendian=yes
14287 fi
14288 rm -rf conftest.dSYM
14289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14290 fi
14291
14292
14293     fi
14294 fi
14295 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14296 $as_echo "$ac_cv_c_bigendian" >&6; }
14297  case $ac_cv_c_bigendian in #(
14298    yes)
14299      cat >>confdefs.h <<\_ACEOF
14300 #define WORDS_BIGENDIAN 1
14301 _ACEOF
14302 ;; #(
14303    no)
14304       ;; #(
14305    universal)
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define AC_APPLE_UNIVERSAL_BUILD 1
14309 _ACEOF
14310
14311      ;; #(
14312    *)
14313      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14314  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14315 $as_echo "$as_me: error: unknown endianness
14316  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14317    { (exit 1); exit 1; }; } ;;
14318  esac
14319
14320
14321 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14322 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14323 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14324   $as_echo_n "(cached) " >&6
14325 else
14326
14327     libffi_cv_as_cfi_pseudo_op=unknown
14328     cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334 asm (".cfi_startproc\n\t.cfi_endproc");
14335 int
14336 main ()
14337 {
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14350 $as_echo "$ac_try_echo") >&5
14351   (eval "$ac_compile") 2>conftest.er1
14352   ac_status=$?
14353   grep -v '^ *+' conftest.er1 >conftest.err
14354   rm -f conftest.er1
14355   cat conftest.err >&5
14356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); } && {
14358          test -z "$ac_c_werror_flag" ||
14359          test ! -s conftest.err
14360        } && test -s conftest.$ac_objext; then
14361   libffi_cv_as_cfi_pseudo_op=yes
14362 else
14363   $as_echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14365
14366         libffi_cv_as_cfi_pseudo_op=no
14367 fi
14368
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370
14371 fi
14372 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14373 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14374 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14375
14376 cat >>confdefs.h <<\_ACEOF
14377 #define HAVE_AS_CFI_PSEUDO_OP 1
14378 _ACEOF
14379
14380 fi
14381
14382 if test x$TARGET = xSPARC; then
14383     { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14384 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14385 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14386   $as_echo_n "(cached) " >&6
14387 else
14388
14389         save_CFLAGS="$CFLAGS"
14390         save_LDFLAGS="$LDFLAGS"
14391         CFLAGS="$CFLAGS -fpic"
14392         LDFLAGS="$LDFLAGS -shared"
14393         cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h.  */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h.  */
14399 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14400 int
14401 main ()
14402 {
14403
14404   ;
14405   return 0;
14406 }
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416   (eval "$ac_link") 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && {
14423          test -z "$ac_c_werror_flag" ||
14424          test ! -s conftest.err
14425        } && test -s conftest$ac_exeext && {
14426          test "$cross_compiling" = yes ||
14427          $as_test_x conftest$ac_exeext
14428        }; then
14429   libffi_cv_as_sparc_ua_pcrel=yes
14430 else
14431   $as_echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434         libffi_cv_as_sparc_ua_pcrel=no
14435 fi
14436
14437 rm -rf conftest.dSYM
14438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14439       conftest$ac_exeext conftest.$ac_ext
14440         CFLAGS="$save_CFLAGS"
14441         LDFLAGS="$save_LDFLAGS"
14442 fi
14443 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14444 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14445     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14446
14447 cat >>confdefs.h <<\_ACEOF
14448 #define HAVE_AS_SPARC_UA_PCREL 1
14449 _ACEOF
14450
14451     fi
14452
14453     { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14454 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14455 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14456   $as_echo_n "(cached) " >&6
14457 else
14458
14459        libffi_cv_as_register_pseudo_op=unknown
14460        # Check if we have .register
14461        cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h.  */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h.  */
14467 asm (".register %g2, #scratch");
14468 int
14469 main ()
14470 {
14471
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484   (eval "$ac_compile") 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } && {
14491          test -z "$ac_c_werror_flag" ||
14492          test ! -s conftest.err
14493        } && test -s conftest.$ac_objext; then
14494   libffi_cv_as_register_pseudo_op=yes
14495 else
14496   $as_echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499         libffi_cv_as_register_pseudo_op=no
14500 fi
14501
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503
14504 fi
14505 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14506 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14507     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14508
14509 cat >>confdefs.h <<\_ACEOF
14510 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14511 _ACEOF
14512
14513     fi
14514 fi
14515
14516 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14517     { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14518 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14519 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14520   $as_echo_n "(cached) " >&6
14521 else
14522
14523         libffi_cv_as_x86_pcrel=no
14524         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14525         if $CC $CFLAGS -c conftest.s > /dev/null; then
14526            libffi_cv_as_x86_pcrel=yes
14527         fi
14528
14529 fi
14530 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14531 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14532     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14533
14534 cat >>confdefs.h <<\_ACEOF
14535 #define HAVE_AS_X86_PCREL 1
14536 _ACEOF
14537
14538     fi
14539
14540     { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14541 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14542 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14543   $as_echo_n "(cached) " >&6
14544 else
14545
14546        libffi_cv_as_ascii_pseudo_op=unknown
14547        # Check if we have .ascii
14548        cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h.  */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h.  */
14554 asm (".ascii \\"string\\"");
14555 int
14556 main ()
14557 {
14558
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567   *) ac_try_echo=$ac_try;;
14568 esac
14569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14570 $as_echo "$ac_try_echo") >&5
14571   (eval "$ac_compile") 2>conftest.er1
14572   ac_status=$?
14573   grep -v '^ *+' conftest.er1 >conftest.err
14574   rm -f conftest.er1
14575   cat conftest.err >&5
14576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } && {
14578          test -z "$ac_c_werror_flag" ||
14579          test ! -s conftest.err
14580        } && test -s conftest.$ac_objext; then
14581   libffi_cv_as_ascii_pseudo_op=yes
14582 else
14583   $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586         libffi_cv_as_ascii_pseudo_op=no
14587 fi
14588
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590
14591 fi
14592 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14593 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14594     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14595
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_AS_ASCII_PSEUDO_OP 1
14598 _ACEOF
14599
14600     fi
14601
14602     { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14603 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14604 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14605   $as_echo_n "(cached) " >&6
14606 else
14607
14608        libffi_cv_as_string_pseudo_op=unknown
14609        # Check if we have .string
14610        cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h.  */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h.  */
14616 asm (".string \\"string\\"");
14617 int
14618 main ()
14619 {
14620
14621   ;
14622   return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633   (eval "$ac_compile") 2>conftest.er1
14634   ac_status=$?
14635   grep -v '^ *+' conftest.er1 >conftest.err
14636   rm -f conftest.er1
14637   cat conftest.err >&5
14638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } && {
14640          test -z "$ac_c_werror_flag" ||
14641          test ! -s conftest.err
14642        } && test -s conftest.$ac_objext; then
14643   libffi_cv_as_string_pseudo_op=yes
14644 else
14645   $as_echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648         libffi_cv_as_string_pseudo_op=no
14649 fi
14650
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652
14653 fi
14654 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14655 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14656     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14657
14658 cat >>confdefs.h <<\_ACEOF
14659 #define HAVE_AS_STRING_PSEUDO_OP 1
14660 _ACEOF
14661
14662     fi
14663 fi
14664
14665 if test x$TARGET = xX86_WIN64; then
14666     { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
14667 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14668 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
14669   $as_echo_n "(cached) " >&6
14670 else
14671   lt_cv_sys_symbol_underscore=no
14672   cat > conftest.$ac_ext <<_LT_EOF
14673 void nm_test_func(){}
14674 int main(){nm_test_func;return 0;}
14675 _LT_EOF
14676   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14677   (eval $ac_compile) 2>&5
14678   ac_status=$?
14679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; then
14681     # Now try to grab the symbols.
14682     ac_nlist=conftest.nm
14683     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
14684   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14685   ac_status=$?
14686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } && test -s "$ac_nlist"; then
14688       # See whether the symbols have a leading underscore.
14689       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14690         lt_cv_sys_symbol_underscore=yes
14691       else
14692         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14693           :
14694         else
14695           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14696         fi
14697       fi
14698     else
14699       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14700     fi
14701   else
14702     echo "configure: failed program was:" >&5
14703     cat conftest.c >&5
14704   fi
14705   rm -rf conftest*
14706
14707 fi
14708 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
14709 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14710   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14711
14712
14713     if test "x$sys_symbol_underscore" = xyes; then
14714
14715 cat >>confdefs.h <<\_ACEOF
14716 #define SYMBOL_UNDERSCORE 1
14717 _ACEOF
14718
14719     fi
14720 fi
14721
14722
14723 FFI_EXEC_TRAMPOLINE_TABLE=0
14724 case "$target" in
14725      *arm*-apple-darwin*)
14726        FFI_EXEC_TRAMPOLINE_TABLE=1
14727
14728 cat >>confdefs.h <<\_ACEOF
14729 #define FFI_EXEC_TRAMPOLINE_TABLE 1
14730 _ACEOF
14731
14732      ;;
14733      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14734
14735 cat >>confdefs.h <<\_ACEOF
14736 #define FFI_MMAP_EXEC_WRIT 1
14737 _ACEOF
14738
14739      ;;
14740 esac
14741  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14742   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14743   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14744 else
14745   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14746   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14747 fi
14748
14749
14750
14751 if test x$TARGET = xX86_64; then
14752     { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14753 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14754 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14755   $as_echo_n "(cached) " >&6
14756 else
14757
14758         libffi_cv_as_x86_64_unwind_section_type=yes
14759         echo '.section .eh_frame,"a",@unwind' > conftest.s
14760         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14761             libffi_cv_as_x86_64_unwind_section_type=no
14762         fi
14763
14764 fi
14765 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14766 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14767     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14768
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14771 _ACEOF
14772
14773     fi
14774 fi
14775
14776 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14777 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14778 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14779   $as_echo_n "(cached) " >&6
14780 else
14781
14782         libffi_cv_ro_eh_frame=no
14783         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14784         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14785             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14786                 libffi_cv_ro_eh_frame=yes
14787             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14788                  | grep -v '#write' > /dev/null; then
14789                 libffi_cv_ro_eh_frame=yes
14790             fi
14791         fi
14792         rm -f conftest.*
14793
14794 fi
14795 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14796 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14797 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_RO_EH_FRAME 1
14801 _ACEOF
14802
14803
14804 cat >>confdefs.h <<\_ACEOF
14805 #define EH_FRAME_FLAGS "a"
14806 _ACEOF
14807
14808 else
14809
14810 cat >>confdefs.h <<\_ACEOF
14811 #define EH_FRAME_FLAGS "aw"
14812 _ACEOF
14813
14814 fi
14815
14816 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14817 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14818 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14819   $as_echo_n "(cached) " >&6
14820 else
14821
14822         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14823         libffi_cv_hidden_visibility_attribute=no
14824         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14831                 libffi_cv_hidden_visibility_attribute=yes
14832             fi
14833         fi
14834         rm -f conftest.*
14835
14836 fi
14837 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14838 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14839 if test $libffi_cv_hidden_visibility_attribute = yes; then
14840
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14843 _ACEOF
14844
14845 fi
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855 # Check whether --enable-debug was given.
14856 if test "${enable_debug+set}" = set; then
14857   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14858
14859 cat >>confdefs.h <<\_ACEOF
14860 #define FFI_DEBUG 1
14861 _ACEOF
14862
14863   fi
14864 fi
14865
14866  if test "$enable_debug" = "yes"; then
14867   FFI_DEBUG_TRUE=
14868   FFI_DEBUG_FALSE='#'
14869 else
14870   FFI_DEBUG_TRUE='#'
14871   FFI_DEBUG_FALSE=
14872 fi
14873
14874
14875 # Check whether --enable-structs was given.
14876 if test "${enable_structs+set}" = set; then
14877   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14878
14879 cat >>confdefs.h <<\_ACEOF
14880 #define FFI_NO_STRUCTS 1
14881 _ACEOF
14882
14883   fi
14884 fi
14885
14886
14887 # Check whether --enable-raw-api was given.
14888 if test "${enable_raw_api+set}" = set; then
14889   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14890
14891 cat >>confdefs.h <<\_ACEOF
14892 #define FFI_NO_RAW_API 1
14893 _ACEOF
14894
14895   fi
14896 fi
14897
14898
14899 # Check whether --enable-purify-safety was given.
14900 if test "${enable_purify_safety+set}" = set; then
14901   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14902
14903 cat >>confdefs.h <<\_ACEOF
14904 #define USING_PURIFY 1
14905 _ACEOF
14906
14907   fi
14908 fi
14909
14910
14911 if test -n "$with_cross_host" &&
14912    test x"$with_cross_host" != x"no"; then
14913   toolexecdir='$(exec_prefix)/$(target_alias)'
14914   toolexeclibdir='$(toolexecdir)/lib'
14915 else
14916   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14917   toolexeclibdir='$(libdir)'
14918 fi
14919 multi_os_directory=`$CC -print-multi-os-directory`
14920 case $multi_os_directory in
14921   .) ;; # Avoid trailing /.
14922   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14923 esac
14924
14925
14926
14927 if test "${multilib}" = "yes"; then
14928   multilib_arg="--enable-multilib"
14929 else
14930   multilib_arg=
14931 fi
14932
14933 ac_config_commands="$ac_config_commands include"
14934
14935 ac_config_commands="$ac_config_commands src"
14936
14937
14938 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14939
14940
14941 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14942
14943
14944 cat >confcache <<\_ACEOF
14945 # This file is a shell script that caches the results of configure
14946 # tests run on this system so they can be shared between configure
14947 # scripts and configure runs, see configure's option --config-cache.
14948 # It is not useful on other systems.  If it contains results you don't
14949 # want to keep, you may remove or edit it.
14950 #
14951 # config.status only pays attention to the cache file if you give it
14952 # the --recheck option to rerun configure.
14953 #
14954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14956 # following values.
14957
14958 _ACEOF
14959
14960 # The following way of writing the cache mishandles newlines in values,
14961 # but we know of no workaround that is simple, portable, and efficient.
14962 # So, we kill variables containing newlines.
14963 # Ultrix sh set writes to stderr and can't be redirected directly,
14964 # and sets the high bit in the cache file unless we assign to the vars.
14965 (
14966   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14967     eval ac_val=\$$ac_var
14968     case $ac_val in #(
14969     *${as_nl}*)
14970       case $ac_var in #(
14971       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14973       esac
14974       case $ac_var in #(
14975       _ | IFS | as_nl) ;; #(
14976       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14977       *) $as_unset $ac_var ;;
14978       esac ;;
14979     esac
14980   done
14981
14982   (set) 2>&1 |
14983     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14984     *${as_nl}ac_space=\ *)
14985       # `set' does not quote correctly, so add quotes (double-quote
14986       # substitution turns \\\\ into \\, and sed turns \\ into \).
14987       sed -n \
14988         "s/'/'\\\\''/g;
14989           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14990       ;; #(
14991     *)
14992       # `set' quotes correctly as required by POSIX, so do not add quotes.
14993       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14994       ;;
14995     esac |
14996     sort
14997 ) |
14998   sed '
14999      /^ac_cv_env_/b end
15000      t clear
15001      :clear
15002      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15003      t end
15004      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15005      :end' >>confcache
15006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15007   if test -w "$cache_file"; then
15008     test "x$cache_file" != "x/dev/null" &&
15009       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15010 $as_echo "$as_me: updating cache $cache_file" >&6;}
15011     cat confcache >$cache_file
15012   else
15013     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15015   fi
15016 fi
15017 rm -f confcache
15018
15019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15020 # Let make expand exec_prefix.
15021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15022
15023 DEFS=-DHAVE_CONFIG_H
15024
15025 ac_libobjs=
15026 ac_ltlibobjs=
15027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15028   # 1. Remove the extension, and $U if already installed.
15029   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15030   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15031   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15032   #    will be set to the directory where LIBOBJS objects are built.
15033   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15034   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15035 done
15036 LIBOBJS=$ac_libobjs
15037
15038 LTLIBOBJS=$ac_ltlibobjs
15039
15040
15041  if test -n "$EXEEXT"; then
15042   am__EXEEXT_TRUE=
15043   am__EXEEXT_FALSE='#'
15044 else
15045   am__EXEEXT_TRUE='#'
15046   am__EXEEXT_FALSE=
15047 fi
15048
15049 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15050   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15051 Usually this means the macro was only invoked conditionally." >&5
15052 $as_echo "$as_me: error: conditional \"AMDEP\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15057   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15058 Usually this means the macro was only invoked conditionally." >&5
15059 $as_echo "$as_me: error: conditional \"am__fastdepCC\" 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 "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15064   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
15065 Usually this means the macro was only invoked conditionally." >&5
15066 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" 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 "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15071   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15072 Usually this means the macro was only invoked conditionally." >&5
15073 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" 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 "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15078   { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15079 Usually this means the macro was only invoked conditionally." >&5
15080 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" 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 "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15085   { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
15086 Usually this means the macro was only invoked conditionally." >&5
15087 $as_echo "$as_me: error: conditional \"MIPS\" 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 "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15092   { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15093 Usually this means the macro was only invoked conditionally." >&5
15094 $as_echo "$as_me: error: conditional \"SPARC\" 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 "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15099   { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15100 Usually this means the macro was only invoked conditionally." >&5
15101 $as_echo "$as_me: error: conditional \"X86\" 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 "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15106   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15107 Usually this means the macro was only invoked conditionally." >&5
15108 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" 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 "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15113   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." >&5
15115 $as_echo "$as_me: error: conditional \"X86_WIN32\" 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 "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15120   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15121 Usually this means the macro was only invoked conditionally." >&5
15122 $as_echo "$as_me: error: conditional \"X86_WIN64\" 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 "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15127   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15128 Usually this means the macro was only invoked conditionally." >&5
15129 $as_echo "$as_me: error: conditional \"X86_DARWIN\" 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 "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15134   { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15135 Usually this means the macro was only invoked conditionally." >&5
15136 $as_echo "$as_me: error: conditional \"ALPHA\" 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 "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15141   { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15142 Usually this means the macro was only invoked conditionally." >&5
15143 $as_echo "$as_me: error: conditional \"IA64\" 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 "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15148   { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15149 Usually this means the macro was only invoked conditionally." >&5
15150 $as_echo "$as_me: error: conditional \"M32R\" 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 "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15155   { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15156 Usually this means the macro was only invoked conditionally." >&5
15157 $as_echo "$as_me: error: conditional \"M68K\" 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 "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15162   { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15163 Usually this means the macro was only invoked conditionally." >&5
15164 $as_echo "$as_me: error: conditional \"MOXIE\" 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 "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15169   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15170 Usually this means the macro was only invoked conditionally." >&5
15171 $as_echo "$as_me: error: conditional \"POWERPC\" 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 "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15176   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15177 Usually this means the macro was only invoked conditionally." >&5
15178 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15179 Usually this means the macro was only invoked conditionally." >&2;}
15180    { (exit 1); exit 1; }; }
15181 fi
15182 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15183   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15184 Usually this means the macro was only invoked conditionally." >&5
15185 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15186 Usually this means the macro was only invoked conditionally." >&2;}
15187    { (exit 1); exit 1; }; }
15188 fi
15189 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15190   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15191 Usually this means the macro was only invoked conditionally." >&5
15192 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15193 Usually this means the macro was only invoked conditionally." >&2;}
15194    { (exit 1); exit 1; }; }
15195 fi
15196 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15197   { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15198 Usually this means the macro was only invoked conditionally." >&5
15199 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15200 Usually this means the macro was only invoked conditionally." >&2;}
15201    { (exit 1); exit 1; }; }
15202 fi
15203 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15204   { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15205 Usually this means the macro was only invoked conditionally." >&5
15206 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15207 Usually this means the macro was only invoked conditionally." >&2;}
15208    { (exit 1); exit 1; }; }
15209 fi
15210 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15211   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15212 Usually this means the macro was only invoked conditionally." >&5
15213 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15214 Usually this means the macro was only invoked conditionally." >&2;}
15215    { (exit 1); exit 1; }; }
15216 fi
15217 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15218   { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15219 Usually this means the macro was only invoked conditionally." >&5
15220 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15221 Usually this means the macro was only invoked conditionally." >&2;}
15222    { (exit 1); exit 1; }; }
15223 fi
15224 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15225   { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15226 Usually this means the macro was only invoked conditionally." >&5
15227 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15228 Usually this means the macro was only invoked conditionally." >&2;}
15229    { (exit 1); exit 1; }; }
15230 fi
15231 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15232   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15233 Usually this means the macro was only invoked conditionally." >&5
15234 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15235 Usually this means the macro was only invoked conditionally." >&2;}
15236    { (exit 1); exit 1; }; }
15237 fi
15238 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15239   { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15240 Usually this means the macro was only invoked conditionally." >&5
15241 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15242 Usually this means the macro was only invoked conditionally." >&2;}
15243    { (exit 1); exit 1; }; }
15244 fi
15245 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15246   { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15247 Usually this means the macro was only invoked conditionally." >&5
15248 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15249 Usually this means the macro was only invoked conditionally." >&2;}
15250    { (exit 1); exit 1; }; }
15251 fi
15252 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15253   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15254 Usually this means the macro was only invoked conditionally." >&5
15255 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15256 Usually this means the macro was only invoked conditionally." >&2;}
15257    { (exit 1); exit 1; }; }
15258 fi
15259 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15260   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15261 Usually this means the macro was only invoked conditionally." >&5
15262 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15263 Usually this means the macro was only invoked conditionally." >&2;}
15264    { (exit 1); exit 1; }; }
15265 fi
15266 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15267   { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15268 Usually this means the macro was only invoked conditionally." >&5
15269 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15270 Usually this means the macro was only invoked conditionally." >&2;}
15271    { (exit 1); exit 1; }; }
15272 fi
15273
15274 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15275   { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15276 Usually this means the macro was only invoked conditionally." >&5
15277 $as_echo "$as_me: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15278 Usually this means the macro was only invoked conditionally." >&2;}
15279    { (exit 1); exit 1; }; }
15280 fi
15281 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15282   { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_DEBUG\" was never defined.
15283 Usually this means the macro was only invoked conditionally." >&5
15284 $as_echo "$as_me: error: conditional \"FFI_DEBUG\" was never defined.
15285 Usually this means the macro was only invoked conditionally." >&2;}
15286    { (exit 1); exit 1; }; }
15287 fi
15288
15289 : ${CONFIG_STATUS=./config.status}
15290 ac_write_fail=0
15291 ac_clean_files_save=$ac_clean_files
15292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15293 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15294 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15295 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 #! $SHELL
15297 # Generated by $as_me.
15298 # Run this file to recreate the current configuration.
15299 # Compiler output produced by configure, useful for debugging
15300 # configure, is in config.log if it exists.
15301
15302 debug=false
15303 ac_cs_recheck=false
15304 ac_cs_silent=false
15305 SHELL=\${CONFIG_SHELL-$SHELL}
15306 _ACEOF
15307
15308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 ## --------------------- ##
15310 ## M4sh Initialization.  ##
15311 ## --------------------- ##
15312
15313 # Be more Bourne compatible
15314 DUALCASE=1; export DUALCASE # for MKS sh
15315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15316   emulate sh
15317   NULLCMD=:
15318   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15319   # is contrary to our usage.  Disable this feature.
15320   alias -g '${1+"$@"}'='"$@"'
15321   setopt NO_GLOB_SUBST
15322 else
15323   case `(set -o) 2>/dev/null` in
15324   *posix*) set -o posix ;;
15325 esac
15326
15327 fi
15328
15329
15330
15331
15332 # PATH needs CR
15333 # Avoid depending upon Character Ranges.
15334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15337 as_cr_digits='0123456789'
15338 as_cr_alnum=$as_cr_Letters$as_cr_digits
15339
15340 as_nl='
15341 '
15342 export as_nl
15343 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15344 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15346 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15347 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15348   as_echo='printf %s\n'
15349   as_echo_n='printf %s'
15350 else
15351   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15352     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15353     as_echo_n='/usr/ucb/echo -n'
15354   else
15355     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15356     as_echo_n_body='eval
15357       arg=$1;
15358       case $arg in
15359       *"$as_nl"*)
15360         expr "X$arg" : "X\\(.*\\)$as_nl";
15361         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15362       esac;
15363       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15364     '
15365     export as_echo_n_body
15366     as_echo_n='sh -c $as_echo_n_body as_echo'
15367   fi
15368   export as_echo_body
15369   as_echo='sh -c $as_echo_body as_echo'
15370 fi
15371
15372 # The user is always right.
15373 if test "${PATH_SEPARATOR+set}" != set; then
15374   PATH_SEPARATOR=:
15375   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15376     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15377       PATH_SEPARATOR=';'
15378   }
15379 fi
15380
15381 # Support unset when possible.
15382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15383   as_unset=unset
15384 else
15385   as_unset=false
15386 fi
15387
15388
15389 # IFS
15390 # We need space, tab and new line, in precisely that order.  Quoting is
15391 # there to prevent editors from complaining about space-tab.
15392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15393 # splitting by setting IFS to empty value.)
15394 IFS=" ""        $as_nl"
15395
15396 # Find who we are.  Look in the path if we contain no directory separator.
15397 case $0 in
15398   *[\\/]* ) as_myself=$0 ;;
15399   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15401 do
15402   IFS=$as_save_IFS
15403   test -z "$as_dir" && as_dir=.
15404   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15405 done
15406 IFS=$as_save_IFS
15407
15408      ;;
15409 esac
15410 # We did not find ourselves, most probably we were run as `sh COMMAND'
15411 # in which case we are not to be found in the path.
15412 if test "x$as_myself" = x; then
15413   as_myself=$0
15414 fi
15415 if test ! -f "$as_myself"; then
15416   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15417   { (exit 1); exit 1; }
15418 fi
15419
15420 # Work around bugs in pre-3.0 UWIN ksh.
15421 for as_var in ENV MAIL MAILPATH
15422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15423 done
15424 PS1='$ '
15425 PS2='> '
15426 PS4='+ '
15427
15428 # NLS nuisances.
15429 LC_ALL=C
15430 export LC_ALL
15431 LANGUAGE=C
15432 export LANGUAGE
15433
15434 # Required to use basename.
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 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15443   as_basename=basename
15444 else
15445   as_basename=false
15446 fi
15447
15448
15449 # Name of the executable.
15450 as_me=`$as_basename -- "$0" ||
15451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15452          X"$0" : 'X\(//\)$' \| \
15453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15454 $as_echo X/"$0" |
15455     sed '/^.*\/\([^/][^/]*\)\/*$/{
15456             s//\1/
15457             q
15458           }
15459           /^X\/\(\/\/\)$/{
15460             s//\1/
15461             q
15462           }
15463           /^X\/\(\/\).*/{
15464             s//\1/
15465             q
15466           }
15467           s/.*/./; q'`
15468
15469 # CDPATH.
15470 $as_unset CDPATH
15471
15472
15473
15474   as_lineno_1=$LINENO
15475   as_lineno_2=$LINENO
15476   test "x$as_lineno_1" != "x$as_lineno_2" &&
15477   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15478
15479   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15480   # uniformly replaced by the line number.  The first 'sed' inserts a
15481   # line-number line after each line using $LINENO; the second 'sed'
15482   # does the real work.  The second script uses 'N' to pair each
15483   # line-number line with the line containing $LINENO, and appends
15484   # trailing '-' during substitution so that $LINENO is not a special
15485   # case at line end.
15486   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15487   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15488   # E. McMahon (1931-1989) for sed's syntax.  :-)
15489   sed -n '
15490     p
15491     /[$]LINENO/=
15492   ' <$as_myself |
15493     sed '
15494       s/[$]LINENO.*/&-/
15495       t lineno
15496       b
15497       :lineno
15498       N
15499       :loop
15500       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15501       t loop
15502       s/-\n.*//
15503     ' >$as_me.lineno &&
15504   chmod +x "$as_me.lineno" ||
15505     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15506    { (exit 1); exit 1; }; }
15507
15508   # Don't try to exec as it changes $[0], causing all sort of problems
15509   # (the dirname of $[0] is not the place where we might find the
15510   # original and so on.  Autoconf is especially sensitive to this).
15511   . "./$as_me.lineno"
15512   # Exit status is that of the last command.
15513   exit
15514 }
15515
15516
15517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15518   as_dirname=dirname
15519 else
15520   as_dirname=false
15521 fi
15522
15523 ECHO_C= ECHO_N= ECHO_T=
15524 case `echo -n x` in
15525 -n*)
15526   case `echo 'x\c'` in
15527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15528   *)   ECHO_C='\c';;
15529   esac;;
15530 *)
15531   ECHO_N='-n';;
15532 esac
15533 if expr a : '\(a\)' >/dev/null 2>&1 &&
15534    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15535   as_expr=expr
15536 else
15537   as_expr=false
15538 fi
15539
15540 rm -f conf$$ conf$$.exe conf$$.file
15541 if test -d conf$$.dir; then
15542   rm -f conf$$.dir/conf$$.file
15543 else
15544   rm -f conf$$.dir
15545   mkdir conf$$.dir 2>/dev/null
15546 fi
15547 if (echo >conf$$.file) 2>/dev/null; then
15548   if ln -s conf$$.file conf$$ 2>/dev/null; then
15549     as_ln_s='ln -s'
15550     # ... but there are two gotchas:
15551     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15552     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15553     # In both cases, we have to default to `cp -p'.
15554     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15555       as_ln_s='cp -p'
15556   elif ln conf$$.file conf$$ 2>/dev/null; then
15557     as_ln_s=ln
15558   else
15559     as_ln_s='cp -p'
15560   fi
15561 else
15562   as_ln_s='cp -p'
15563 fi
15564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15565 rmdir conf$$.dir 2>/dev/null
15566
15567 if mkdir -p . 2>/dev/null; then
15568   as_mkdir_p=:
15569 else
15570   test -d ./-p && rmdir ./-p
15571   as_mkdir_p=false
15572 fi
15573
15574 if test -x / >/dev/null 2>&1; then
15575   as_test_x='test -x'
15576 else
15577   if ls -dL / >/dev/null 2>&1; then
15578     as_ls_L_option=L
15579   else
15580     as_ls_L_option=
15581   fi
15582   as_test_x='
15583     eval sh -c '\''
15584       if test -d "$1"; then
15585         test -d "$1/.";
15586       else
15587         case $1 in
15588         -*)set "./$1";;
15589         esac;
15590         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15591         ???[sx]*):;;*)false;;esac;fi
15592     '\'' sh
15593   '
15594 fi
15595 as_executable_p=$as_test_x
15596
15597 # Sed expression to map a string onto a valid CPP name.
15598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15599
15600 # Sed expression to map a string onto a valid variable name.
15601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15602
15603
15604 exec 6>&1
15605
15606 # Save the log message, to keep $[0] and so on meaningful, and to
15607 # report actual input values of CONFIG_FILES etc. instead of their
15608 # values after options handling.
15609 ac_log="
15610 This file was extended by libffi $as_me 3.0.10rc2, which was
15611 generated by GNU Autoconf 2.63.  Invocation command line was
15612
15613   CONFIG_FILES    = $CONFIG_FILES
15614   CONFIG_HEADERS  = $CONFIG_HEADERS
15615   CONFIG_LINKS    = $CONFIG_LINKS
15616   CONFIG_COMMANDS = $CONFIG_COMMANDS
15617   $ $0 $@
15618
15619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15620 "
15621
15622 _ACEOF
15623
15624 case $ac_config_files in *"
15625 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15626 esac
15627
15628 case $ac_config_headers in *"
15629 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15630 esac
15631
15632
15633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15634 # Files that config.status was made for.
15635 config_files="$ac_config_files"
15636 config_headers="$ac_config_headers"
15637 config_links="$ac_config_links"
15638 config_commands="$ac_config_commands"
15639
15640 _ACEOF
15641
15642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15643 ac_cs_usage="\
15644 \`$as_me' instantiates files from templates according to the
15645 current configuration.
15646
15647 Usage: $0 [OPTION]... [FILE]...
15648
15649   -h, --help       print this help, then exit
15650   -V, --version    print version number and configuration settings, then exit
15651   -q, --quiet, --silent
15652                    do not print progress messages
15653   -d, --debug      don't remove temporary files
15654       --recheck    update $as_me by reconfiguring in the same conditions
15655       --file=FILE[:TEMPLATE]
15656                    instantiate the configuration file FILE
15657       --header=FILE[:TEMPLATE]
15658                    instantiate the configuration header FILE
15659
15660 Configuration files:
15661 $config_files
15662
15663 Configuration headers:
15664 $config_headers
15665
15666 Configuration links:
15667 $config_links
15668
15669 Configuration commands:
15670 $config_commands
15671
15672 Report bugs to <bug-autoconf@gnu.org>."
15673
15674 _ACEOF
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 ac_cs_version="\\
15677 libffi config.status 3.0.10rc2
15678 configured by $0, generated by GNU Autoconf 2.63,
15679   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15680
15681 Copyright (C) 2008 Free Software Foundation, Inc.
15682 This config.status script is free software; the Free Software Foundation
15683 gives unlimited permission to copy, distribute and modify it."
15684
15685 ac_pwd='$ac_pwd'
15686 srcdir='$srcdir'
15687 INSTALL='$INSTALL'
15688 MKDIR_P='$MKDIR_P'
15689 AWK='$AWK'
15690 test -n "\$AWK" || AWK=awk
15691 _ACEOF
15692
15693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15694 # The default lists apply if the user does not specify any file.
15695 ac_need_defaults=:
15696 while test $# != 0
15697 do
15698   case $1 in
15699   --*=*)
15700     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15701     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15702     ac_shift=:
15703     ;;
15704   *)
15705     ac_option=$1
15706     ac_optarg=$2
15707     ac_shift=shift
15708     ;;
15709   esac
15710
15711   case $ac_option in
15712   # Handling of the options.
15713   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15714     ac_cs_recheck=: ;;
15715   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15716     $as_echo "$ac_cs_version"; exit ;;
15717   --debug | --debu | --deb | --de | --d | -d )
15718     debug=: ;;
15719   --file | --fil | --fi | --f )
15720     $ac_shift
15721     case $ac_optarg in
15722     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15723     esac
15724     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15725     ac_need_defaults=false;;
15726   --header | --heade | --head | --hea )
15727     $ac_shift
15728     case $ac_optarg in
15729     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15730     esac
15731     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15732     ac_need_defaults=false;;
15733   --he | --h)
15734     # Conflict between --help and --header
15735     { $as_echo "$as_me: error: ambiguous option: $1
15736 Try \`$0 --help' for more information." >&2
15737    { (exit 1); exit 1; }; };;
15738   --help | --hel | -h )
15739     $as_echo "$ac_cs_usage"; exit ;;
15740   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15741   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15742     ac_cs_silent=: ;;
15743
15744   # This is an error.
15745   -*) { $as_echo "$as_me: error: unrecognized option: $1
15746 Try \`$0 --help' for more information." >&2
15747    { (exit 1); exit 1; }; } ;;
15748
15749   *) ac_config_targets="$ac_config_targets $1"
15750      ac_need_defaults=false ;;
15751
15752   esac
15753   shift
15754 done
15755
15756 ac_configure_extra_args=
15757
15758 if $ac_cs_silent; then
15759   exec 6>/dev/null
15760   ac_configure_extra_args="$ac_configure_extra_args --silent"
15761 fi
15762
15763 _ACEOF
15764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15765 if \$ac_cs_recheck; then
15766   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15767   shift
15768   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15769   CONFIG_SHELL='$SHELL'
15770   export CONFIG_SHELL
15771   exec "\$@"
15772 fi
15773
15774 _ACEOF
15775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15776 exec 5>>config.log
15777 {
15778   echo
15779   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15780 ## Running $as_me. ##
15781 _ASBOX
15782   $as_echo "$ac_log"
15783 } >&5
15784
15785 _ACEOF
15786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15787 #
15788 # INIT-COMMANDS
15789 #
15790 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15791
15792
15793 # The HP-UX ksh and POSIX shell print the target directory to stdout
15794 # if CDPATH is set.
15795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15796
15797 sed_quote_subst='$sed_quote_subst'
15798 double_quote_subst='$double_quote_subst'
15799 delay_variable_subst='$delay_variable_subst'
15800 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15801 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15802 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15803 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15804 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15805 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15806 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15807 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15808 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15809 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15810 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15811 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15812 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15813 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15814 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15815 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15816 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15817 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15818 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15819 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15820 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15821 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15822 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15823 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15824 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15825 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15826 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15827 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15828 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15829 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15830 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15831 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15832 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15833 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15834 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15835 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15836 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15838 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15839 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15840 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15841 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15842 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15843 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15844 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"`'
15845 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"`'
15846 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15847 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15848 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15849 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15850 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15851 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15852 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15853 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15854 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15855 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15856 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15857 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15858 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15859 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15860 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15861 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15862 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15863 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15864 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15865 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15866 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15867 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15868 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15869 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15872 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15873 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15874 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15875 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15876 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15877 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15878 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15879 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15880 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15881 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15882 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15883 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15884 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15885 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15886 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15887 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15888 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15889 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15890 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15891 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15892 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15893 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15894 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15895 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15896 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15897 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15898 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15899 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15900 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15901 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15902 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15903 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15904 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15905 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15906 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15907 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15908 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15909 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15910 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15911 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15912 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15913 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15914 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15915 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15916 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15917 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15918
15919 LTCC='$LTCC'
15920 LTCFLAGS='$LTCFLAGS'
15921 compiler='$compiler_DEFAULT'
15922
15923 # Quote evaled strings.
15924 for var in SED \
15925 GREP \
15926 EGREP \
15927 FGREP \
15928 LD \
15929 NM \
15930 LN_S \
15931 lt_SP2NL \
15932 lt_NL2SP \
15933 reload_flag \
15934 OBJDUMP \
15935 deplibs_check_method \
15936 file_magic_cmd \
15937 AR \
15938 AR_FLAGS \
15939 STRIP \
15940 RANLIB \
15941 CC \
15942 CFLAGS \
15943 compiler \
15944 lt_cv_sys_global_symbol_pipe \
15945 lt_cv_sys_global_symbol_to_cdecl \
15946 lt_cv_sys_global_symbol_to_c_name_address \
15947 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15948 SHELL \
15949 ECHO \
15950 lt_prog_compiler_no_builtin_flag \
15951 lt_prog_compiler_wl \
15952 lt_prog_compiler_pic \
15953 lt_prog_compiler_static \
15954 lt_cv_prog_compiler_c_o \
15955 need_locks \
15956 DSYMUTIL \
15957 NMEDIT \
15958 LIPO \
15959 OTOOL \
15960 OTOOL64 \
15961 shrext_cmds \
15962 export_dynamic_flag_spec \
15963 whole_archive_flag_spec \
15964 compiler_needs_object \
15965 with_gnu_ld \
15966 allow_undefined_flag \
15967 no_undefined_flag \
15968 hardcode_libdir_flag_spec \
15969 hardcode_libdir_flag_spec_ld \
15970 hardcode_libdir_separator \
15971 fix_srcfile_path \
15972 exclude_expsyms \
15973 include_expsyms \
15974 file_list_spec \
15975 variables_saved_for_relink \
15976 libname_spec \
15977 library_names_spec \
15978 soname_spec \
15979 finish_eval \
15980 old_striplib \
15981 striplib; do
15982     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15983     *[\\\\\\\`\\"\\\$]*)
15984       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15985       ;;
15986     *)
15987       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15988       ;;
15989     esac
15990 done
15991
15992 # Double-quote double-evaled strings.
15993 for var in reload_cmds \
15994 old_postinstall_cmds \
15995 old_postuninstall_cmds \
15996 old_archive_cmds \
15997 extract_expsyms_cmds \
15998 old_archive_from_new_cmds \
15999 old_archive_from_expsyms_cmds \
16000 archive_cmds \
16001 archive_expsym_cmds \
16002 module_cmds \
16003 module_expsym_cmds \
16004 export_symbols_cmds \
16005 prelink_cmds \
16006 postinstall_cmds \
16007 postuninstall_cmds \
16008 finish_cmds \
16009 sys_lib_search_path_spec \
16010 sys_lib_dlsearch_path_spec; do
16011     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16012     *[\\\\\\\`\\"\\\$]*)
16013       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16014       ;;
16015     *)
16016       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16017       ;;
16018     esac
16019 done
16020
16021 # Fix-up fallback echo if it was mangled by the above quoting rules.
16022 case \$lt_ECHO in
16023 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16024   ;;
16025 esac
16026
16027 ac_aux_dir='$ac_aux_dir'
16028 xsi_shell='$xsi_shell'
16029 lt_shell_append='$lt_shell_append'
16030
16031 # See if we are running on zsh, and set the options which allow our
16032 # commands through without removal of \ escapes INIT.
16033 if test -n "\${ZSH_VERSION+set}" ; then
16034    setopt NO_GLOB_SUBST
16035 fi
16036
16037
16038     PACKAGE='$PACKAGE'
16039     VERSION='$VERSION'
16040     TIMESTAMP='$TIMESTAMP'
16041     RM='$RM'
16042     ofile='$ofile'
16043
16044
16045
16046 TARGETDIR="$TARGETDIR"
16047
16048 _ACEOF
16049
16050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16051
16052 # Handling of arguments.
16053 for ac_config_target in $ac_config_targets
16054 do
16055   case $ac_config_target in
16056     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16057     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16058     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16059     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16060     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16061     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16062     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16063     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16064     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16065     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16066     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16067     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16068
16069   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16070 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16071    { (exit 1); exit 1; }; };;
16072   esac
16073 done
16074
16075
16076 # If the user did not use the arguments to specify the items to instantiate,
16077 # then the envvar interface is used.  Set only those that are not.
16078 # We use the long form for the default assignment because of an extremely
16079 # bizarre bug on SunOS 4.1.3.
16080 if $ac_need_defaults; then
16081   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16082   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16083   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16084   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16085 fi
16086
16087 # Have a temporary directory for convenience.  Make it in the build tree
16088 # simply because there is no reason against having it here, and in addition,
16089 # creating and moving files from /tmp can sometimes cause problems.
16090 # Hook for its removal unless debugging.
16091 # Note that there is a small window in which the directory will not be cleaned:
16092 # after its creation but before its name has been assigned to `$tmp'.
16093 $debug ||
16094 {
16095   tmp=
16096   trap 'exit_status=$?
16097   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16098 ' 0
16099   trap '{ (exit 1); exit 1; }' 1 2 13 15
16100 }
16101 # Create a (secure) tmp directory for tmp files.
16102
16103 {
16104   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16105   test -n "$tmp" && test -d "$tmp"
16106 }  ||
16107 {
16108   tmp=./conf$$-$RANDOM
16109   (umask 077 && mkdir "$tmp")
16110 } ||
16111 {
16112    $as_echo "$as_me: cannot create a temporary directory in ." >&2
16113    { (exit 1); exit 1; }
16114 }
16115
16116 # Set up the scripts for CONFIG_FILES section.
16117 # No need to generate them if there are no CONFIG_FILES.
16118 # This happens for instance with `./config.status config.h'.
16119 if test -n "$CONFIG_FILES"; then
16120
16121
16122 ac_cr='\r'
16123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16125   ac_cs_awk_cr='\\r'
16126 else
16127   ac_cs_awk_cr=$ac_cr
16128 fi
16129
16130 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16131 _ACEOF
16132
16133
16134 {
16135   echo "cat >conf$$subs.awk <<_ACEOF" &&
16136   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16137   echo "_ACEOF"
16138 } >conf$$subs.sh ||
16139   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16140 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16141    { (exit 1); exit 1; }; }
16142 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16143 ac_delim='%!_!# '
16144 for ac_last_try in false false false false false :; do
16145   . ./conf$$subs.sh ||
16146     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16147 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16148    { (exit 1); exit 1; }; }
16149
16150   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16151   if test $ac_delim_n = $ac_delim_num; then
16152     break
16153   elif $ac_last_try; then
16154     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16155 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16156    { (exit 1); exit 1; }; }
16157   else
16158     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16159   fi
16160 done
16161 rm -f conf$$subs.sh
16162
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16165 _ACEOF
16166 sed -n '
16167 h
16168 s/^/S["/; s/!.*/"]=/
16169 p
16170 g
16171 s/^[^!]*!//
16172 :repl
16173 t repl
16174 s/'"$ac_delim"'$//
16175 t delim
16176 :nl
16177 h
16178 s/\(.\{148\}\).*/\1/
16179 t more1
16180 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16181 p
16182 n
16183 b repl
16184 :more1
16185 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16186 p
16187 g
16188 s/.\{148\}//
16189 t nl
16190 :delim
16191 h
16192 s/\(.\{148\}\).*/\1/
16193 t more2
16194 s/["\\]/\\&/g; s/^/"/; s/$/"/
16195 p
16196 b
16197 :more2
16198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16199 p
16200 g
16201 s/.\{148\}//
16202 t delim
16203 ' <conf$$subs.awk | sed '
16204 /^[^""]/{
16205   N
16206   s/\n//
16207 }
16208 ' >>$CONFIG_STATUS || ac_write_fail=1
16209 rm -f conf$$subs.awk
16210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16211 _ACAWK
16212 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16213   for (key in S) S_is_set[key] = 1
16214   FS = "\a"
16215
16216 }
16217 {
16218   line = $ 0
16219   nfields = split(line, field, "@")
16220   substed = 0
16221   len = length(field[1])
16222   for (i = 2; i < nfields; i++) {
16223     key = field[i]
16224     keylen = length(key)
16225     if (S_is_set[key]) {
16226       value = S[key]
16227       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16228       len += length(value) + length(field[++i])
16229       substed = 1
16230     } else
16231       len += 1 + keylen
16232   }
16233
16234   print line
16235 }
16236
16237 _ACAWK
16238 _ACEOF
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16240 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16241   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16242 else
16243   cat
16244 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16245   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16246 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16247    { (exit 1); exit 1; }; }
16248 _ACEOF
16249
16250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16252 # trailing colons and then remove the whole line if VPATH becomes empty
16253 # (actually we leave an empty line to preserve line numbers).
16254 if test "x$srcdir" = x.; then
16255   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16256 s/:*\$(srcdir):*/:/
16257 s/:*\${srcdir}:*/:/
16258 s/:*@srcdir@:*/:/
16259 s/^\([^=]*=[     ]*\):*/\1/
16260 s/:*$//
16261 s/^[^=]*=[       ]*$//
16262 }'
16263 fi
16264
16265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266 fi # test -n "$CONFIG_FILES"
16267
16268 # Set up the scripts for CONFIG_HEADERS section.
16269 # No need to generate them if there are no CONFIG_HEADERS.
16270 # This happens for instance with `./config.status Makefile'.
16271 if test -n "$CONFIG_HEADERS"; then
16272 cat >"$tmp/defines.awk" <<\_ACAWK ||
16273 BEGIN {
16274 _ACEOF
16275
16276 # Transform confdefs.h into an awk script `defines.awk', embedded as
16277 # here-document in config.status, that substitutes the proper values into
16278 # config.h.in to produce config.h.
16279
16280 # Create a delimiter string that does not exist in confdefs.h, to ease
16281 # handling of long lines.
16282 ac_delim='%!_!# '
16283 for ac_last_try in false false :; do
16284   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16285   if test -z "$ac_t"; then
16286     break
16287   elif $ac_last_try; then
16288     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16289 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16290    { (exit 1); exit 1; }; }
16291   else
16292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16293   fi
16294 done
16295
16296 # For the awk script, D is an array of macro values keyed by name,
16297 # likewise P contains macro parameters if any.  Preserve backslash
16298 # newline sequences.
16299
16300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16301 sed -n '
16302 s/.\{148\}/&'"$ac_delim"'/g
16303 t rset
16304 :rset
16305 s/^[     ]*#[    ]*define[       ][      ]*/ /
16306 t def
16307 d
16308 :def
16309 s/\\$//
16310 t bsnl
16311 s/["\\]/\\&/g
16312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16313 D["\1"]=" \3"/p
16314 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16315 d
16316 :bsnl
16317 s/["\\]/\\&/g
16318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16319 D["\1"]=" \3\\\\\\n"\\/p
16320 t cont
16321 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16322 t cont
16323 d
16324 :cont
16325 n
16326 s/.\{148\}/&'"$ac_delim"'/g
16327 t clear
16328 :clear
16329 s/\\$//
16330 t bsnlc
16331 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16332 d
16333 :bsnlc
16334 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16335 b cont
16336 ' <confdefs.h | sed '
16337 s/'"$ac_delim"'/"\\\
16338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16339
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341   for (key in D) D_is_set[key] = 1
16342   FS = "\a"
16343 }
16344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16345   line = \$ 0
16346   split(line, arg, " ")
16347   if (arg[1] == "#") {
16348     defundef = arg[2]
16349     mac1 = arg[3]
16350   } else {
16351     defundef = substr(arg[1], 2)
16352     mac1 = arg[2]
16353   }
16354   split(mac1, mac2, "(") #)
16355   macro = mac2[1]
16356   prefix = substr(line, 1, index(line, defundef) - 1)
16357   if (D_is_set[macro]) {
16358     # Preserve the white space surrounding the "#".
16359     print prefix "define", macro P[macro] D[macro]
16360     next
16361   } else {
16362     # Replace #undef with comments.  This is necessary, for example,
16363     # in the case of _POSIX_SOURCE, which is predefined and required
16364     # on some systems where configure will not decide to define it.
16365     if (defundef == "undef") {
16366       print "/*", prefix defundef, macro, "*/"
16367       next
16368     }
16369   }
16370 }
16371 { print }
16372 _ACAWK
16373 _ACEOF
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16376 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16377    { (exit 1); exit 1; }; }
16378 fi # test -n "$CONFIG_HEADERS"
16379
16380
16381 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16382 shift
16383 for ac_tag
16384 do
16385   case $ac_tag in
16386   :[FHLC]) ac_mode=$ac_tag; continue;;
16387   esac
16388   case $ac_mode$ac_tag in
16389   :[FHL]*:*);;
16390   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16391 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16392    { (exit 1); exit 1; }; };;
16393   :[FH]-) ac_tag=-:-;;
16394   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16395   esac
16396   ac_save_IFS=$IFS
16397   IFS=:
16398   set x $ac_tag
16399   IFS=$ac_save_IFS
16400   shift
16401   ac_file=$1
16402   shift
16403
16404   case $ac_mode in
16405   :L) ac_source=$1;;
16406   :[FH])
16407     ac_file_inputs=
16408     for ac_f
16409     do
16410       case $ac_f in
16411       -) ac_f="$tmp/stdin";;
16412       *) # Look for the file first in the build tree, then in the source tree
16413          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16414          # because $ac_f cannot contain `:'.
16415          test -f "$ac_f" ||
16416            case $ac_f in
16417            [\\/$]*) false;;
16418            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16419            esac ||
16420            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16421 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16422    { (exit 1); exit 1; }; };;
16423       esac
16424       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16425       ac_file_inputs="$ac_file_inputs '$ac_f'"
16426     done
16427
16428     # Let's still pretend it is `configure' which instantiates (i.e., don't
16429     # use $as_me), people would be surprised to read:
16430     #    /* config.h.  Generated by config.status.  */
16431     configure_input='Generated from '`
16432           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16433         `' by configure.'
16434     if test x"$ac_file" != x-; then
16435       configure_input="$ac_file.  $configure_input"
16436       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16437 $as_echo "$as_me: creating $ac_file" >&6;}
16438     fi
16439     # Neutralize special characters interpreted by sed in replacement strings.
16440     case $configure_input in #(
16441     *\&* | *\|* | *\\* )
16442        ac_sed_conf_input=`$as_echo "$configure_input" |
16443        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16444     *) ac_sed_conf_input=$configure_input;;
16445     esac
16446
16447     case $ac_tag in
16448     *:-:* | *:-) cat >"$tmp/stdin" \
16449       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16451    { (exit 1); exit 1; }; } ;;
16452     esac
16453     ;;
16454   esac
16455
16456   ac_dir=`$as_dirname -- "$ac_file" ||
16457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16458          X"$ac_file" : 'X\(//\)[^/]' \| \
16459          X"$ac_file" : 'X\(//\)$' \| \
16460          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16461 $as_echo X"$ac_file" |
16462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16463             s//\1/
16464             q
16465           }
16466           /^X\(\/\/\)[^/].*/{
16467             s//\1/
16468             q
16469           }
16470           /^X\(\/\/\)$/{
16471             s//\1/
16472             q
16473           }
16474           /^X\(\/\).*/{
16475             s//\1/
16476             q
16477           }
16478           s/.*/./; q'`
16479   { as_dir="$ac_dir"
16480   case $as_dir in #(
16481   -*) as_dir=./$as_dir;;
16482   esac
16483   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16484     as_dirs=
16485     while :; do
16486       case $as_dir in #(
16487       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16488       *) as_qdir=$as_dir;;
16489       esac
16490       as_dirs="'$as_qdir' $as_dirs"
16491       as_dir=`$as_dirname -- "$as_dir" ||
16492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16493          X"$as_dir" : 'X\(//\)[^/]' \| \
16494          X"$as_dir" : 'X\(//\)$' \| \
16495          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16496 $as_echo X"$as_dir" |
16497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16498             s//\1/
16499             q
16500           }
16501           /^X\(\/\/\)[^/].*/{
16502             s//\1/
16503             q
16504           }
16505           /^X\(\/\/\)$/{
16506             s//\1/
16507             q
16508           }
16509           /^X\(\/\).*/{
16510             s//\1/
16511             q
16512           }
16513           s/.*/./; q'`
16514       test -d "$as_dir" && break
16515     done
16516     test -z "$as_dirs" || eval "mkdir $as_dirs"
16517   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16518 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16519    { (exit 1); exit 1; }; }; }
16520   ac_builddir=.
16521
16522 case "$ac_dir" in
16523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16524 *)
16525   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16526   # A ".." for each directory in $ac_dir_suffix.
16527   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16528   case $ac_top_builddir_sub in
16529   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16530   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16531   esac ;;
16532 esac
16533 ac_abs_top_builddir=$ac_pwd
16534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16535 # for backward compatibility:
16536 ac_top_builddir=$ac_top_build_prefix
16537
16538 case $srcdir in
16539   .)  # We are building in place.
16540     ac_srcdir=.
16541     ac_top_srcdir=$ac_top_builddir_sub
16542     ac_abs_top_srcdir=$ac_pwd ;;
16543   [\\/]* | ?:[\\/]* )  # Absolute name.
16544     ac_srcdir=$srcdir$ac_dir_suffix;
16545     ac_top_srcdir=$srcdir
16546     ac_abs_top_srcdir=$srcdir ;;
16547   *) # Relative name.
16548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16549     ac_top_srcdir=$ac_top_build_prefix$srcdir
16550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16551 esac
16552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16553
16554
16555   case $ac_mode in
16556   :F)
16557   #
16558   # CONFIG_FILE
16559   #
16560
16561   case $INSTALL in
16562   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16563   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16564   esac
16565   ac_MKDIR_P=$MKDIR_P
16566   case $MKDIR_P in
16567   [\\/$]* | ?:[\\/]* ) ;;
16568   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16569   esac
16570 _ACEOF
16571
16572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16573 # If the template does not know about datarootdir, expand it.
16574 # FIXME: This hack should be removed a few years after 2.60.
16575 ac_datarootdir_hack=; ac_datarootdir_seen=
16576
16577 ac_sed_dataroot='
16578 /datarootdir/ {
16579   p
16580   q
16581 }
16582 /@datadir@/p
16583 /@docdir@/p
16584 /@infodir@/p
16585 /@localedir@/p
16586 /@mandir@/p
16587 '
16588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16589 *datarootdir*) ac_datarootdir_seen=yes;;
16590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16591   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16593 _ACEOF
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595   ac_datarootdir_hack='
16596   s&@datadir@&$datadir&g
16597   s&@docdir@&$docdir&g
16598   s&@infodir@&$infodir&g
16599   s&@localedir@&$localedir&g
16600   s&@mandir@&$mandir&g
16601     s&\\\${datarootdir}&$datarootdir&g' ;;
16602 esac
16603 _ACEOF
16604
16605 # Neutralize VPATH when `$srcdir' = `.'.
16606 # Shell code in configure.ac might set extrasub.
16607 # FIXME: do we really want to maintain this feature?
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 ac_sed_extra="$ac_vpsub
16610 $extrasub
16611 _ACEOF
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16613 :t
16614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16615 s|@configure_input@|$ac_sed_conf_input|;t t
16616 s&@top_builddir@&$ac_top_builddir_sub&;t t
16617 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16618 s&@srcdir@&$ac_srcdir&;t t
16619 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16620 s&@top_srcdir@&$ac_top_srcdir&;t t
16621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16622 s&@builddir@&$ac_builddir&;t t
16623 s&@abs_builddir@&$ac_abs_builddir&;t t
16624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16625 s&@INSTALL@&$ac_INSTALL&;t t
16626 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16627 $ac_datarootdir_hack
16628 "
16629 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16630   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16631 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16632    { (exit 1); exit 1; }; }
16633
16634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16635   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16636   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16637   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16638 which seems to be undefined.  Please make sure it is defined." >&5
16639 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16640 which seems to be undefined.  Please make sure it is defined." >&2;}
16641
16642   rm -f "$tmp/stdin"
16643   case $ac_file in
16644   -) cat "$tmp/out" && rm -f "$tmp/out";;
16645   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16646   esac \
16647   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16648 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16649    { (exit 1); exit 1; }; }
16650  ;;
16651   :H)
16652   #
16653   # CONFIG_HEADER
16654   #
16655   if test x"$ac_file" != x-; then
16656     {
16657       $as_echo "/* $configure_input  */" \
16658       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16659     } >"$tmp/config.h" \
16660       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16661 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16662    { (exit 1); exit 1; }; }
16663     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16664       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16665 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16666     else
16667       rm -f "$ac_file"
16668       mv "$tmp/config.h" "$ac_file" \
16669         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16670 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16671    { (exit 1); exit 1; }; }
16672     fi
16673   else
16674     $as_echo "/* $configure_input  */" \
16675       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16676       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16677 $as_echo "$as_me: error: could not create -" >&2;}
16678    { (exit 1); exit 1; }; }
16679   fi
16680 # Compute "$ac_file"'s index in $config_headers.
16681 _am_arg="$ac_file"
16682 _am_stamp_count=1
16683 for _am_header in $config_headers :; do
16684   case $_am_header in
16685     $_am_arg | $_am_arg:* )
16686       break ;;
16687     * )
16688       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16689   esac
16690 done
16691 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16692 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16693          X"$_am_arg" : 'X\(//\)[^/]' \| \
16694          X"$_am_arg" : 'X\(//\)$' \| \
16695          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16696 $as_echo X"$_am_arg" |
16697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16698             s//\1/
16699             q
16700           }
16701           /^X\(\/\/\)[^/].*/{
16702             s//\1/
16703             q
16704           }
16705           /^X\(\/\/\)$/{
16706             s//\1/
16707             q
16708           }
16709           /^X\(\/\).*/{
16710             s//\1/
16711             q
16712           }
16713           s/.*/./; q'`/stamp-h$_am_stamp_count
16714  ;;
16715   :L)
16716   #
16717   # CONFIG_LINK
16718   #
16719
16720   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16721     :
16722   else
16723     # Prefer the file from the source tree if names are identical.
16724     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16725       ac_source=$srcdir/$ac_source
16726     fi
16727
16728     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16729 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16730
16731     if test ! -r "$ac_source"; then
16732       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16733 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16734    { (exit 1); exit 1; }; }
16735     fi
16736     rm -f "$ac_file"
16737
16738     # Try a relative symlink, then a hard link, then a copy.
16739     case $srcdir in
16740     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16741         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16742     esac
16743     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16744       ln "$ac_source" "$ac_file" 2>/dev/null ||
16745       cp -p "$ac_source" "$ac_file" ||
16746       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16747 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16748    { (exit 1); exit 1; }; }
16749   fi
16750  ;;
16751   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16752 $as_echo "$as_me: executing $ac_file commands" >&6;}
16753  ;;
16754   esac
16755
16756
16757   case $ac_file$ac_mode in
16758     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16759   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16760   # are listed without --file.  Let's play safe and only enable the eval
16761   # if we detect the quoting.
16762   case $CONFIG_FILES in
16763   *\'*) eval set x "$CONFIG_FILES" ;;
16764   *)   set x $CONFIG_FILES ;;
16765   esac
16766   shift
16767   for mf
16768   do
16769     # Strip MF so we end up with the name of the file.
16770     mf=`echo "$mf" | sed -e 's/:.*$//'`
16771     # Check whether this is an Automake generated Makefile or not.
16772     # We used to match only the files named `Makefile.in', but
16773     # some people rename them; so instead we look at the file content.
16774     # Grep'ing the first line is not enough: some people post-process
16775     # each Makefile.in and add a new line on top of each file to say so.
16776     # Grep'ing the whole file is not good either: AIX grep has a line
16777     # limit of 2048, but all sed's we know have understand at least 4000.
16778     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16779       dirpart=`$as_dirname -- "$mf" ||
16780 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16781          X"$mf" : 'X\(//\)[^/]' \| \
16782          X"$mf" : 'X\(//\)$' \| \
16783          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16784 $as_echo X"$mf" |
16785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16786             s//\1/
16787             q
16788           }
16789           /^X\(\/\/\)[^/].*/{
16790             s//\1/
16791             q
16792           }
16793           /^X\(\/\/\)$/{
16794             s//\1/
16795             q
16796           }
16797           /^X\(\/\).*/{
16798             s//\1/
16799             q
16800           }
16801           s/.*/./; q'`
16802     else
16803       continue
16804     fi
16805     # Extract the definition of DEPDIR, am__include, and am__quote
16806     # from the Makefile without running `make'.
16807     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16808     test -z "$DEPDIR" && continue
16809     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16810     test -z "am__include" && continue
16811     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16812     # When using ansi2knr, U may be empty or an underscore; expand it
16813     U=`sed -n 's/^U = //p' < "$mf"`
16814     # Find all dependency output files, they are included files with
16815     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16816     # simplest approach to changing $(DEPDIR) to its actual value in the
16817     # expansion.
16818     for file in `sed -n "
16819       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16820          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16821       # Make sure the directory exists.
16822       test -f "$dirpart/$file" && continue
16823       fdir=`$as_dirname -- "$file" ||
16824 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16825          X"$file" : 'X\(//\)[^/]' \| \
16826          X"$file" : 'X\(//\)$' \| \
16827          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16828 $as_echo X"$file" |
16829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16830             s//\1/
16831             q
16832           }
16833           /^X\(\/\/\)[^/].*/{
16834             s//\1/
16835             q
16836           }
16837           /^X\(\/\/\)$/{
16838             s//\1/
16839             q
16840           }
16841           /^X\(\/\).*/{
16842             s//\1/
16843             q
16844           }
16845           s/.*/./; q'`
16846       { as_dir=$dirpart/$fdir
16847   case $as_dir in #(
16848   -*) as_dir=./$as_dir;;
16849   esac
16850   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16851     as_dirs=
16852     while :; do
16853       case $as_dir in #(
16854       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16855       *) as_qdir=$as_dir;;
16856       esac
16857       as_dirs="'$as_qdir' $as_dirs"
16858       as_dir=`$as_dirname -- "$as_dir" ||
16859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860          X"$as_dir" : 'X\(//\)[^/]' \| \
16861          X"$as_dir" : 'X\(//\)$' \| \
16862          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$as_dir" |
16864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16865             s//\1/
16866             q
16867           }
16868           /^X\(\/\/\)[^/].*/{
16869             s//\1/
16870             q
16871           }
16872           /^X\(\/\/\)$/{
16873             s//\1/
16874             q
16875           }
16876           /^X\(\/\).*/{
16877             s//\1/
16878             q
16879           }
16880           s/.*/./; q'`
16881       test -d "$as_dir" && break
16882     done
16883     test -z "$as_dirs" || eval "mkdir $as_dirs"
16884   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16885 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16886    { (exit 1); exit 1; }; }; }
16887       # echo "creating $dirpart/$file"
16888       echo '# dummy' > "$dirpart/$file"
16889     done
16890   done
16891 }
16892  ;;
16893     "libtool":C)
16894
16895     # See if we are running on zsh, and set the options which allow our
16896     # commands through without removal of \ escapes.
16897     if test -n "${ZSH_VERSION+set}" ; then
16898       setopt NO_GLOB_SUBST
16899     fi
16900
16901     cfgfile="${ofile}T"
16902     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16903     $RM "$cfgfile"
16904
16905     cat <<_LT_EOF >> "$cfgfile"
16906 #! $SHELL
16907
16908 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16909 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16910 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16911 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16912 #
16913 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16914 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16915 #   Written by Gordon Matzigkeit, 1996
16916 #
16917 #   This file is part of GNU Libtool.
16918 #
16919 # GNU Libtool is free software; you can redistribute it and/or
16920 # modify it under the terms of the GNU General Public License as
16921 # published by the Free Software Foundation; either version 2 of
16922 # the License, or (at your option) any later version.
16923 #
16924 # As a special exception to the GNU General Public License,
16925 # if you distribute this file as part of a program or library that
16926 # is built using GNU Libtool, you may include this file under the
16927 # same distribution terms that you use for the rest of that program.
16928 #
16929 # GNU Libtool is distributed in the hope that it will be useful,
16930 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16931 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16932 # GNU General Public License for more details.
16933 #
16934 # You should have received a copy of the GNU General Public License
16935 # along with GNU Libtool; see the file COPYING.  If not, a copy
16936 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16937 # obtained by writing to the Free Software Foundation, Inc.,
16938 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16939
16940
16941 # The names of the tagged configurations supported by this script.
16942 available_tags=""
16943
16944 # ### BEGIN LIBTOOL CONFIG
16945
16946 # Which release of libtool.m4 was used?
16947 macro_version=$macro_version
16948 macro_revision=$macro_revision
16949
16950 # Whether or not to build shared libraries.
16951 build_libtool_libs=$enable_shared
16952
16953 # Whether or not to build static libraries.
16954 build_old_libs=$enable_static
16955
16956 # What type of objects to build.
16957 pic_mode=$pic_mode
16958
16959 # Whether or not to optimize for fast installation.
16960 fast_install=$enable_fast_install
16961
16962 # The host system.
16963 host_alias=$host_alias
16964 host=$host
16965 host_os=$host_os
16966
16967 # The build system.
16968 build_alias=$build_alias
16969 build=$build
16970 build_os=$build_os
16971
16972 # A sed program that does not truncate output.
16973 SED=$lt_SED
16974
16975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16976 Xsed="\$SED -e 1s/^X//"
16977
16978 # A grep program that handles long lines.
16979 GREP=$lt_GREP
16980
16981 # An ERE matcher.
16982 EGREP=$lt_EGREP
16983
16984 # A literal string matcher.
16985 FGREP=$lt_FGREP
16986
16987 # A BSD- or MS-compatible name lister.
16988 NM=$lt_NM
16989
16990 # Whether we need soft or hard links.
16991 LN_S=$lt_LN_S
16992
16993 # What is the maximum length of a command?
16994 max_cmd_len=$max_cmd_len
16995
16996 # Object file suffix (normally "o").
16997 objext=$ac_objext
16998
16999 # Executable file suffix (normally "").
17000 exeext=$exeext
17001
17002 # whether the shell understands "unset".
17003 lt_unset=$lt_unset
17004
17005 # turn spaces into newlines.
17006 SP2NL=$lt_lt_SP2NL
17007
17008 # turn newlines into spaces.
17009 NL2SP=$lt_lt_NL2SP
17010
17011 # How to create reloadable object files.
17012 reload_flag=$lt_reload_flag
17013 reload_cmds=$lt_reload_cmds
17014
17015 # An object symbol dumper.
17016 OBJDUMP=$lt_OBJDUMP
17017
17018 # Method to check whether dependent libraries are shared objects.
17019 deplibs_check_method=$lt_deplibs_check_method
17020
17021 # Command to use when deplibs_check_method == "file_magic".
17022 file_magic_cmd=$lt_file_magic_cmd
17023
17024 # The archiver.
17025 AR=$lt_AR
17026 AR_FLAGS=$lt_AR_FLAGS
17027
17028 # A symbol stripping program.
17029 STRIP=$lt_STRIP
17030
17031 # Commands used to install an old-style archive.
17032 RANLIB=$lt_RANLIB
17033 old_postinstall_cmds=$lt_old_postinstall_cmds
17034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17035
17036 # A C compiler.
17037 LTCC=$lt_CC
17038
17039 # LTCC compiler flags.
17040 LTCFLAGS=$lt_CFLAGS
17041
17042 # Take the output of nm and produce a listing of raw symbols and C names.
17043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17044
17045 # Transform the output of nm in a proper C declaration.
17046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17047
17048 # Transform the output of nm in a C name address pair.
17049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17050
17051 # Transform the output of nm in a C name address pair when lib prefix is needed.
17052 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17053
17054 # The name of the directory that contains temporary libtool files.
17055 objdir=$objdir
17056
17057 # Shell to use when invoking shell scripts.
17058 SHELL=$lt_SHELL
17059
17060 # An echo program that does not interpret backslashes.
17061 ECHO=$lt_ECHO
17062
17063 # Used to examine libraries when file_magic_cmd begins with "file".
17064 MAGIC_CMD=$MAGIC_CMD
17065
17066 # Must we lock files when doing compilation?
17067 need_locks=$lt_need_locks
17068
17069 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17070 DSYMUTIL=$lt_DSYMUTIL
17071
17072 # Tool to change global to local symbols on Mac OS X.
17073 NMEDIT=$lt_NMEDIT
17074
17075 # Tool to manipulate fat objects and archives on Mac OS X.
17076 LIPO=$lt_LIPO
17077
17078 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17079 OTOOL=$lt_OTOOL
17080
17081 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17082 OTOOL64=$lt_OTOOL64
17083
17084 # Old archive suffix (normally "a").
17085 libext=$libext
17086
17087 # Shared library suffix (normally ".so").
17088 shrext_cmds=$lt_shrext_cmds
17089
17090 # The commands to extract the exported symbol list from a shared archive.
17091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17092
17093 # Variables whose values should be saved in libtool wrapper scripts and
17094 # restored at link time.
17095 variables_saved_for_relink=$lt_variables_saved_for_relink
17096
17097 # Do we need the "lib" prefix for modules?
17098 need_lib_prefix=$need_lib_prefix
17099
17100 # Do we need a version for libraries?
17101 need_version=$need_version
17102
17103 # Library versioning type.
17104 version_type=$version_type
17105
17106 # Shared library runtime path variable.
17107 runpath_var=$runpath_var
17108
17109 # Shared library path variable.
17110 shlibpath_var=$shlibpath_var
17111
17112 # Is shlibpath searched before the hard-coded library search path?
17113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17114
17115 # Format of library name prefix.
17116 libname_spec=$lt_libname_spec
17117
17118 # List of archive names.  First name is the real one, the rest are links.
17119 # The last name is the one that the linker finds with -lNAME
17120 library_names_spec=$lt_library_names_spec
17121
17122 # The coded name of the library, if different from the real name.
17123 soname_spec=$lt_soname_spec
17124
17125 # Command to use after installation of a shared archive.
17126 postinstall_cmds=$lt_postinstall_cmds
17127
17128 # Command to use after uninstallation of a shared archive.
17129 postuninstall_cmds=$lt_postuninstall_cmds
17130
17131 # Commands used to finish a libtool library installation in a directory.
17132 finish_cmds=$lt_finish_cmds
17133
17134 # As "finish_cmds", except a single script fragment to be evaled but
17135 # not shown.
17136 finish_eval=$lt_finish_eval
17137
17138 # Whether we should hardcode library paths into libraries.
17139 hardcode_into_libs=$hardcode_into_libs
17140
17141 # Compile-time system search path for libraries.
17142 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17143
17144 # Run-time system search path for libraries.
17145 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17146
17147 # Whether dlopen is supported.
17148 dlopen_support=$enable_dlopen
17149
17150 # Whether dlopen of programs is supported.
17151 dlopen_self=$enable_dlopen_self
17152
17153 # Whether dlopen of statically linked programs is supported.
17154 dlopen_self_static=$enable_dlopen_self_static
17155
17156 # Commands to strip libraries.
17157 old_striplib=$lt_old_striplib
17158 striplib=$lt_striplib
17159
17160
17161 # The linker used to build libraries.
17162 LD=$lt_LD
17163
17164 # Commands used to build an old-style archive.
17165 old_archive_cmds=$lt_old_archive_cmds
17166
17167 # A language specific compiler.
17168 CC=$lt_compiler
17169
17170 # Is the compiler the GNU compiler?
17171 with_gcc=$GCC
17172
17173 # Compiler flag to turn off builtin functions.
17174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17175
17176 # How to pass a linker flag through the compiler.
17177 wl=$lt_lt_prog_compiler_wl
17178
17179 # Additional compiler flags for building library objects.
17180 pic_flag=$lt_lt_prog_compiler_pic
17181
17182 # Compiler flag to prevent dynamic linking.
17183 link_static_flag=$lt_lt_prog_compiler_static
17184
17185 # Does compiler simultaneously support -c and -o options?
17186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17187
17188 # Whether or not to add -lc for building shared libraries.
17189 build_libtool_need_lc=$archive_cmds_need_lc
17190
17191 # Whether or not to disallow shared libs when runtime libs are static.
17192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17193
17194 # Compiler flag to allow reflexive dlopens.
17195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17196
17197 # Compiler flag to generate shared objects directly from archives.
17198 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17199
17200 # Whether the compiler copes with passing no objects directly.
17201 compiler_needs_object=$lt_compiler_needs_object
17202
17203 # Create an old-style archive from a shared archive.
17204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17205
17206 # Create a temporary old-style archive to link instead of a shared archive.
17207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17208
17209 # Commands used to build a shared archive.
17210 archive_cmds=$lt_archive_cmds
17211 archive_expsym_cmds=$lt_archive_expsym_cmds
17212
17213 # Commands used to build a loadable module if different from building
17214 # a shared archive.
17215 module_cmds=$lt_module_cmds
17216 module_expsym_cmds=$lt_module_expsym_cmds
17217
17218 # Whether we are building with GNU ld or not.
17219 with_gnu_ld=$lt_with_gnu_ld
17220
17221 # Flag that allows shared libraries with undefined symbols to be built.
17222 allow_undefined_flag=$lt_allow_undefined_flag
17223
17224 # Flag that enforces no undefined symbols.
17225 no_undefined_flag=$lt_no_undefined_flag
17226
17227 # Flag to hardcode \$libdir into a binary during linking.
17228 # This must work even if \$libdir does not exist
17229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17230
17231 # If ld is used when linking, flag to hardcode \$libdir into a binary
17232 # during linking.  This must work even if \$libdir does not exist.
17233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17234
17235 # Whether we need a single "-rpath" flag with a separated argument.
17236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17237
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary.
17240 hardcode_direct=$hardcode_direct
17241
17242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17243 # DIR into the resulting binary and the resulting library dependency is
17244 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17245 # library is relocated.
17246 hardcode_direct_absolute=$hardcode_direct_absolute
17247
17248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_minus_L=$hardcode_minus_L
17251
17252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17253 # into the resulting binary.
17254 hardcode_shlibpath_var=$hardcode_shlibpath_var
17255
17256 # Set to "yes" if building a shared library automatically hardcodes DIR
17257 # into the library and all subsequent libraries and executables linked
17258 # against it.
17259 hardcode_automatic=$hardcode_automatic
17260
17261 # Set to yes if linker adds runtime paths of dependent libraries
17262 # to runtime path list.
17263 inherit_rpath=$inherit_rpath
17264
17265 # Whether libtool must link a program against all its dependency libraries.
17266 link_all_deplibs=$link_all_deplibs
17267
17268 # Fix the shell variable \$srcfile for the compiler.
17269 fix_srcfile_path=$lt_fix_srcfile_path
17270
17271 # Set to "yes" if exported symbols are required.
17272 always_export_symbols=$always_export_symbols
17273
17274 # The commands to list exported symbols.
17275 export_symbols_cmds=$lt_export_symbols_cmds
17276
17277 # Symbols that should not be listed in the preloaded symbols.
17278 exclude_expsyms=$lt_exclude_expsyms
17279
17280 # Symbols that must always be exported.
17281 include_expsyms=$lt_include_expsyms
17282
17283 # Commands necessary for linking programs (against libraries) with templates.
17284 prelink_cmds=$lt_prelink_cmds
17285
17286 # Specify filename containing input files.
17287 file_list_spec=$lt_file_list_spec
17288
17289 # How to hardcode a shared library path into an executable.
17290 hardcode_action=$hardcode_action
17291
17292 # ### END LIBTOOL CONFIG
17293
17294 _LT_EOF
17295
17296   case $host_os in
17297   aix3*)
17298     cat <<\_LT_EOF >> "$cfgfile"
17299 # AIX sometimes has problems with the GCC collect2 program.  For some
17300 # reason, if we set the COLLECT_NAMES environment variable, the problems
17301 # vanish in a puff of smoke.
17302 if test "X${COLLECT_NAMES+set}" != Xset; then
17303   COLLECT_NAMES=
17304   export COLLECT_NAMES
17305 fi
17306 _LT_EOF
17307     ;;
17308   esac
17309
17310
17311 ltmain="$ac_aux_dir/ltmain.sh"
17312
17313
17314   # We use sed instead of cat because bash on DJGPP gets confused if
17315   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17316   # text mode, it properly converts lines to CR/LF.  This bash problem
17317   # is reportedly fixed, but why not run on old versions too?
17318   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17319     || (rm -f "$cfgfile"; exit 1)
17320
17321   case $xsi_shell in
17322   yes)
17323     cat << \_LT_EOF >> "$cfgfile"
17324
17325 # func_dirname file append nondir_replacement
17326 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17327 # otherwise set result to NONDIR_REPLACEMENT.
17328 func_dirname ()
17329 {
17330   case ${1} in
17331     */*) func_dirname_result="${1%/*}${2}" ;;
17332     *  ) func_dirname_result="${3}" ;;
17333   esac
17334 }
17335
17336 # func_basename file
17337 func_basename ()
17338 {
17339   func_basename_result="${1##*/}"
17340 }
17341
17342 # func_dirname_and_basename file append nondir_replacement
17343 # perform func_basename and func_dirname in a single function
17344 # call:
17345 #   dirname:  Compute the dirname of FILE.  If nonempty,
17346 #             add APPEND to the result, otherwise set result
17347 #             to NONDIR_REPLACEMENT.
17348 #             value returned in "$func_dirname_result"
17349 #   basename: Compute filename of FILE.
17350 #             value retuned in "$func_basename_result"
17351 # Implementation must be kept synchronized with func_dirname
17352 # and func_basename. For efficiency, we do not delegate to
17353 # those functions but instead duplicate the functionality here.
17354 func_dirname_and_basename ()
17355 {
17356   case ${1} in
17357     */*) func_dirname_result="${1%/*}${2}" ;;
17358     *  ) func_dirname_result="${3}" ;;
17359   esac
17360   func_basename_result="${1##*/}"
17361 }
17362
17363 # func_stripname prefix suffix name
17364 # strip PREFIX and SUFFIX off of NAME.
17365 # PREFIX and SUFFIX must not contain globbing or regex special
17366 # characters, hashes, percent signs, but SUFFIX may contain a leading
17367 # dot (in which case that matches only a dot).
17368 func_stripname ()
17369 {
17370   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17371   # positional parameters, so assign one to ordinary parameter first.
17372   func_stripname_result=${3}
17373   func_stripname_result=${func_stripname_result#"${1}"}
17374   func_stripname_result=${func_stripname_result%"${2}"}
17375 }
17376
17377 # func_opt_split
17378 func_opt_split ()
17379 {
17380   func_opt_split_opt=${1%%=*}
17381   func_opt_split_arg=${1#*=}
17382 }
17383
17384 # func_lo2o object
17385 func_lo2o ()
17386 {
17387   case ${1} in
17388     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17389     *)    func_lo2o_result=${1} ;;
17390   esac
17391 }
17392
17393 # func_xform libobj-or-source
17394 func_xform ()
17395 {
17396   func_xform_result=${1%.*}.lo
17397 }
17398
17399 # func_arith arithmetic-term...
17400 func_arith ()
17401 {
17402   func_arith_result=$(( $* ))
17403 }
17404
17405 # func_len string
17406 # STRING may not start with a hyphen.
17407 func_len ()
17408 {
17409   func_len_result=${#1}
17410 }
17411
17412 _LT_EOF
17413     ;;
17414   *) # Bourne compatible functions.
17415     cat << \_LT_EOF >> "$cfgfile"
17416
17417 # func_dirname file append nondir_replacement
17418 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17419 # otherwise set result to NONDIR_REPLACEMENT.
17420 func_dirname ()
17421 {
17422   # Extract subdirectory from the argument.
17423   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17424   if test "X$func_dirname_result" = "X${1}"; then
17425     func_dirname_result="${3}"
17426   else
17427     func_dirname_result="$func_dirname_result${2}"
17428   fi
17429 }
17430
17431 # func_basename file
17432 func_basename ()
17433 {
17434   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17435 }
17436
17437
17438 # func_stripname prefix suffix name
17439 # strip PREFIX and SUFFIX off of NAME.
17440 # PREFIX and SUFFIX must not contain globbing or regex special
17441 # characters, hashes, percent signs, but SUFFIX may contain a leading
17442 # dot (in which case that matches only a dot).
17443 # func_strip_suffix prefix name
17444 func_stripname ()
17445 {
17446   case ${2} in
17447     .*) func_stripname_result=`$ECHO "X${3}" \
17448            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17449     *)  func_stripname_result=`$ECHO "X${3}" \
17450            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17451   esac
17452 }
17453
17454 # sed scripts:
17455 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17456 my_sed_long_arg='1s/^-[^=]*=//'
17457
17458 # func_opt_split
17459 func_opt_split ()
17460 {
17461   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17462   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17463 }
17464
17465 # func_lo2o object
17466 func_lo2o ()
17467 {
17468   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17469 }
17470
17471 # func_xform libobj-or-source
17472 func_xform ()
17473 {
17474   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17475 }
17476
17477 # func_arith arithmetic-term...
17478 func_arith ()
17479 {
17480   func_arith_result=`expr "$@"`
17481 }
17482
17483 # func_len string
17484 # STRING may not start with a hyphen.
17485 func_len ()
17486 {
17487   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17488 }
17489
17490 _LT_EOF
17491 esac
17492
17493 case $lt_shell_append in
17494   yes)
17495     cat << \_LT_EOF >> "$cfgfile"
17496
17497 # func_append var value
17498 # Append VALUE to the end of shell variable VAR.
17499 func_append ()
17500 {
17501   eval "$1+=\$2"
17502 }
17503 _LT_EOF
17504     ;;
17505   *)
17506     cat << \_LT_EOF >> "$cfgfile"
17507
17508 # func_append var value
17509 # Append VALUE to the end of shell variable VAR.
17510 func_append ()
17511 {
17512   eval "$1=\$$1\$2"
17513 }
17514
17515 _LT_EOF
17516     ;;
17517   esac
17518
17519
17520   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17521     || (rm -f "$cfgfile"; exit 1)
17522
17523   mv -f "$cfgfile" "$ofile" ||
17524     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17525   chmod +x "$ofile"
17526
17527  ;;
17528     "include":C) test -d include || mkdir include ;;
17529     "src":C)
17530 test -d src || mkdir src
17531 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17532  ;;
17533
17534   esac
17535 done # for ac_tag
17536
17537
17538 { (exit 0); exit 0; }
17539 _ACEOF
17540 chmod +x $CONFIG_STATUS
17541 ac_clean_files=$ac_clean_files_save
17542
17543 test $ac_write_fail = 0 ||
17544   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17545 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17546    { (exit 1); exit 1; }; }
17547
17548
17549 # configure is writing to config.log, and then calls config.status.
17550 # config.status does its own redirection, appending to config.log.
17551 # Unfortunately, on DOS this fails, as config.log is still kept open
17552 # by configure, so config.status won't be able to write to it; its
17553 # output is simply discarded.  So we exec the FD to /dev/null,
17554 # effectively closing config.log, so it can be properly (re)opened and
17555 # appended to by config.status.  When coming back to configure, we
17556 # need to make the FD available again.
17557 if test "$no_create" != yes; then
17558   ac_cs_success=:
17559   ac_config_status_args=
17560   test "$silent" = yes &&
17561     ac_config_status_args="$ac_config_status_args --quiet"
17562   exec 5>/dev/null
17563   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17564   exec 5>>config.log
17565   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17566   # would make configure fail if this is the last instruction.
17567   $ac_cs_success || { (exit 1); exit 1; }
17568 fi
17569 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17570   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17571 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17572 fi
17573