Final updates before 3.0.9
[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.9.
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.9'
749 PACKAGE_STRING='libffi 3.0.9'
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 TARGETDIR
795 TARGET
796 HAVE_LONG_DOUBLE
797 ALLOCA
798 PA64_HPUX_FALSE
799 PA64_HPUX_TRUE
800 PA_HPUX_FALSE
801 PA_HPUX_TRUE
802 PA_LINUX_FALSE
803 PA_LINUX_TRUE
804 SH64_FALSE
805 SH64_TRUE
806 SH_FALSE
807 SH_TRUE
808 X86_64_FALSE
809 X86_64_TRUE
810 S390_FALSE
811 S390_TRUE
812 FRV_FALSE
813 FRV_TRUE
814 LIBFFI_CRIS_FALSE
815 LIBFFI_CRIS_TRUE
816 AVR32_FALSE
817 AVR32_TRUE
818 ARM_FALSE
819 ARM_TRUE
820 POWERPC_FREEBSD_FALSE
821 POWERPC_FREEBSD_TRUE
822 POWERPC_DARWIN_FALSE
823 POWERPC_DARWIN_TRUE
824 POWERPC_AIX_FALSE
825 POWERPC_AIX_TRUE
826 POWERPC_FALSE
827 POWERPC_TRUE
828 M68K_FALSE
829 M68K_TRUE
830 M32R_FALSE
831 M32R_TRUE
832 IA64_FALSE
833 IA64_TRUE
834 ALPHA_FALSE
835 ALPHA_TRUE
836 X86_DARWIN_FALSE
837 X86_DARWIN_TRUE
838 X86_WIN64_FALSE
839 X86_WIN64_TRUE
840 X86_WIN32_FALSE
841 X86_WIN32_TRUE
842 X86_FREEBSD_FALSE
843 X86_FREEBSD_TRUE
844 X86_FALSE
845 X86_TRUE
846 SPARC_FALSE
847 SPARC_TRUE
848 MIPS_FALSE
849 MIPS_TRUE
850 AM_LTLDFLAGS
851 AM_RUNTESTFLAGS
852 TESTSUBDIR_FALSE
853 TESTSUBDIR_TRUE
854 MAINT
855 MAINTAINER_MODE_FALSE
856 MAINTAINER_MODE_TRUE
857 CPP
858 OTOOL64
859 OTOOL
860 LIPO
861 NMEDIT
862 DSYMUTIL
863 lt_ECHO
864 RANLIB
865 AR
866 OBJDUMP
867 LN_S
868 NM
869 ac_ct_DUMPBIN
870 DUMPBIN
871 LD
872 FGREP
873 EGREP
874 GREP
875 SED
876 LIBTOOL
877 am__fastdepCCAS_FALSE
878 am__fastdepCCAS_TRUE
879 CCASDEPMODE
880 CCASFLAGS
881 CCAS
882 am__fastdepCC_FALSE
883 am__fastdepCC_TRUE
884 CCDEPMODE
885 AMDEPBACKSLASH
886 AMDEP_FALSE
887 AMDEP_TRUE
888 am__quote
889 am__include
890 DEPDIR
891 OBJEXT
892 EXEEXT
893 ac_ct_CC
894 CPPFLAGS
895 LDFLAGS
896 CFLAGS
897 CC
898 am__untar
899 am__tar
900 AMTAR
901 am__leading_dot
902 SET_MAKE
903 AWK
904 mkdir_p
905 MKDIR_P
906 INSTALL_STRIP_PROGRAM
907 STRIP
908 install_sh
909 MAKEINFO
910 AUTOHEADER
911 AUTOMAKE
912 AUTOCONF
913 ACLOCAL
914 VERSION
915 PACKAGE
916 CYGPATH_W
917 am__isrc
918 INSTALL_DATA
919 INSTALL_SCRIPT
920 INSTALL_PROGRAM
921 target_os
922 target_vendor
923 target_cpu
924 target
925 host_os
926 host_vendor
927 host_cpu
928 host
929 build_os
930 build_vendor
931 build_cpu
932 build
933 target_alias
934 host_alias
935 build_alias
936 LIBS
937 ECHO_T
938 ECHO_N
939 ECHO_C
940 DEFS
941 mandir
942 localedir
943 libdir
944 psdir
945 pdfdir
946 dvidir
947 htmldir
948 infodir
949 docdir
950 oldincludedir
951 includedir
952 localstatedir
953 sharedstatedir
954 sysconfdir
955 datadir
956 datarootdir
957 libexecdir
958 sbindir
959 bindir
960 program_transform_name
961 prefix
962 exec_prefix
963 PACKAGE_BUGREPORT
964 PACKAGE_STRING
965 PACKAGE_VERSION
966 PACKAGE_TARNAME
967 PACKAGE_NAME
968 PATH_SEPARATOR
969 SHELL'
970 ac_subst_files=''
971 ac_user_opts='
972 enable_option_checking
973 enable_dependency_tracking
974 enable_shared
975 enable_static
976 with_pic
977 enable_fast_install
978 with_gnu_ld
979 enable_libtool_lock
980 enable_maintainer_mode
981 enable_debug
982 enable_structs
983 enable_raw_api
984 enable_purify_safety
985 '
986       ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 CCAS
990 CCASFLAGS
991 CPP
992 CPPFLAGS'
993
994
995 # Initialize some variables set by options.
996 ac_init_help=
997 ac_init_version=false
998 ac_unrecognized_opts=
999 ac_unrecognized_sep=
1000 # The variables have the same names as the options, with
1001 # dashes changed to underlines.
1002 cache_file=/dev/null
1003 exec_prefix=NONE
1004 no_create=
1005 no_recursion=
1006 prefix=NONE
1007 program_prefix=NONE
1008 program_suffix=NONE
1009 program_transform_name=s,x,x,
1010 silent=
1011 site=
1012 srcdir=
1013 verbose=
1014 x_includes=NONE
1015 x_libraries=NONE
1016
1017 # Installation directory options.
1018 # These are left unexpanded so users can "make install exec_prefix=/foo"
1019 # and all the variables that are supposed to be based on exec_prefix
1020 # by default will actually change.
1021 # Use braces instead of parens because sh, perl, etc. also accept them.
1022 # (The list follows the same order as the GNU Coding Standards.)
1023 bindir='${exec_prefix}/bin'
1024 sbindir='${exec_prefix}/sbin'
1025 libexecdir='${exec_prefix}/libexec'
1026 datarootdir='${prefix}/share'
1027 datadir='${datarootdir}'
1028 sysconfdir='${prefix}/etc'
1029 sharedstatedir='${prefix}/com'
1030 localstatedir='${prefix}/var'
1031 includedir='${prefix}/include'
1032 oldincludedir='/usr/include'
1033 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1034 infodir='${datarootdir}/info'
1035 htmldir='${docdir}'
1036 dvidir='${docdir}'
1037 pdfdir='${docdir}'
1038 psdir='${docdir}'
1039 libdir='${exec_prefix}/lib'
1040 localedir='${datarootdir}/locale'
1041 mandir='${datarootdir}/man'
1042
1043 ac_prev=
1044 ac_dashdash=
1045 for ac_option
1046 do
1047   # If the previous option needs an argument, assign it.
1048   if test -n "$ac_prev"; then
1049     eval $ac_prev=\$ac_option
1050     ac_prev=
1051     continue
1052   fi
1053
1054   case $ac_option in
1055   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056   *)    ac_optarg=yes ;;
1057   esac
1058
1059   # Accept the important Cygnus configure options, so we can diagnose typos.
1060
1061   case $ac_dashdash$ac_option in
1062   --)
1063     ac_dashdash=yes ;;
1064
1065   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066     ac_prev=bindir ;;
1067   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068     bindir=$ac_optarg ;;
1069
1070   -build | --build | --buil | --bui | --bu)
1071     ac_prev=build_alias ;;
1072   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073     build_alias=$ac_optarg ;;
1074
1075   -cache-file | --cache-file | --cache-fil | --cache-fi \
1076   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077     ac_prev=cache_file ;;
1078   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080     cache_file=$ac_optarg ;;
1081
1082   --config-cache | -C)
1083     cache_file=config.cache ;;
1084
1085   -datadir | --datadir | --datadi | --datad)
1086     ac_prev=datadir ;;
1087   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088     datadir=$ac_optarg ;;
1089
1090   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091   | --dataroo | --dataro | --datar)
1092     ac_prev=datarootdir ;;
1093   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095     datarootdir=$ac_optarg ;;
1096
1097   -disable-* | --disable-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "enable_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval enable_$ac_useropt=no ;;
1113
1114   -docdir | --docdir | --docdi | --doc | --do)
1115     ac_prev=docdir ;;
1116   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117     docdir=$ac_optarg ;;
1118
1119   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120     ac_prev=dvidir ;;
1121   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122     dvidir=$ac_optarg ;;
1123
1124   -enable-* | --enable-*)
1125     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126     # Reject names that are not valid shell variable names.
1127     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1129    { (exit 1); exit 1; }; }
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval enable_$ac_useropt=\$ac_optarg ;;
1140
1141   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143   | --exec | --exe | --ex)
1144     ac_prev=exec_prefix ;;
1145   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147   | --exec=* | --exe=* | --ex=*)
1148     exec_prefix=$ac_optarg ;;
1149
1150   -gas | --gas | --ga | --g)
1151     # Obsolete; use --with-gas.
1152     with_gas=yes ;;
1153
1154   -help | --help | --hel | --he | -h)
1155     ac_init_help=long ;;
1156   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157     ac_init_help=recursive ;;
1158   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159     ac_init_help=short ;;
1160
1161   -host | --host | --hos | --ho)
1162     ac_prev=host_alias ;;
1163   -host=* | --host=* | --hos=* | --ho=*)
1164     host_alias=$ac_optarg ;;
1165
1166   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1167     ac_prev=htmldir ;;
1168   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1169   | --ht=*)
1170     htmldir=$ac_optarg ;;
1171
1172   -includedir | --includedir | --includedi | --included | --include \
1173   | --includ | --inclu | --incl | --inc)
1174     ac_prev=includedir ;;
1175   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176   | --includ=* | --inclu=* | --incl=* | --inc=*)
1177     includedir=$ac_optarg ;;
1178
1179   -infodir | --infodir | --infodi | --infod | --info | --inf)
1180     ac_prev=infodir ;;
1181   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1182     infodir=$ac_optarg ;;
1183
1184   -libdir | --libdir | --libdi | --libd)
1185     ac_prev=libdir ;;
1186   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1187     libdir=$ac_optarg ;;
1188
1189   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190   | --libexe | --libex | --libe)
1191     ac_prev=libexecdir ;;
1192   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193   | --libexe=* | --libex=* | --libe=*)
1194     libexecdir=$ac_optarg ;;
1195
1196   -localedir | --localedir | --localedi | --localed | --locale)
1197     ac_prev=localedir ;;
1198   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199     localedir=$ac_optarg ;;
1200
1201   -localstatedir | --localstatedir | --localstatedi | --localstated \
1202   | --localstate | --localstat | --localsta | --localst | --locals)
1203     ac_prev=localstatedir ;;
1204   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1205   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1206     localstatedir=$ac_optarg ;;
1207
1208   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1209     ac_prev=mandir ;;
1210   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1211     mandir=$ac_optarg ;;
1212
1213   -nfp | --nfp | --nf)
1214     # Obsolete; use --without-fp.
1215     with_fp=no ;;
1216
1217   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1218   | --no-cr | --no-c | -n)
1219     no_create=yes ;;
1220
1221   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1223     no_recursion=yes ;;
1224
1225   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227   | --oldin | --oldi | --old | --ol | --o)
1228     ac_prev=oldincludedir ;;
1229   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1232     oldincludedir=$ac_optarg ;;
1233
1234   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1235     ac_prev=prefix ;;
1236   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1237     prefix=$ac_optarg ;;
1238
1239   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240   | --program-pre | --program-pr | --program-p)
1241     ac_prev=program_prefix ;;
1242   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1244     program_prefix=$ac_optarg ;;
1245
1246   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247   | --program-suf | --program-su | --program-s)
1248     ac_prev=program_suffix ;;
1249   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1251     program_suffix=$ac_optarg ;;
1252
1253   -program-transform-name | --program-transform-name \
1254   | --program-transform-nam | --program-transform-na \
1255   | --program-transform-n | --program-transform- \
1256   | --program-transform | --program-transfor \
1257   | --program-transfo | --program-transf \
1258   | --program-trans | --program-tran \
1259   | --progr-tra | --program-tr | --program-t)
1260     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1269
1270   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1271     ac_prev=pdfdir ;;
1272   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273     pdfdir=$ac_optarg ;;
1274
1275   -psdir | --psdir | --psdi | --psd | --ps)
1276     ac_prev=psdir ;;
1277   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1278     psdir=$ac_optarg ;;
1279
1280   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281   | -silent | --silent | --silen | --sile | --sil)
1282     silent=yes ;;
1283
1284   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285     ac_prev=sbindir ;;
1286   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287   | --sbi=* | --sb=*)
1288     sbindir=$ac_optarg ;;
1289
1290   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292   | --sharedst | --shareds | --shared | --share | --shar \
1293   | --sha | --sh)
1294     ac_prev=sharedstatedir ;;
1295   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298   | --sha=* | --sh=*)
1299     sharedstatedir=$ac_optarg ;;
1300
1301   -site | --site | --sit)
1302     ac_prev=site ;;
1303   -site=* | --site=* | --sit=*)
1304     site=$ac_optarg ;;
1305
1306   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307     ac_prev=srcdir ;;
1308   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309     srcdir=$ac_optarg ;;
1310
1311   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312   | --syscon | --sysco | --sysc | --sys | --sy)
1313     ac_prev=sysconfdir ;;
1314   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316     sysconfdir=$ac_optarg ;;
1317
1318   -target | --target | --targe | --targ | --tar | --ta | --t)
1319     ac_prev=target_alias ;;
1320   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321     target_alias=$ac_optarg ;;
1322
1323   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324     verbose=yes ;;
1325
1326   -version | --version | --versio | --versi | --vers | -V)
1327     ac_init_version=: ;;
1328
1329   -with-* | --with-*)
1330     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1334    { (exit 1); exit 1; }; }
1335     ac_useropt_orig=$ac_useropt
1336     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337     case $ac_user_opts in
1338       *"
1339 "with_$ac_useropt"
1340 "*) ;;
1341       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342          ac_unrecognized_sep=', ';;
1343     esac
1344     eval with_$ac_useropt=\$ac_optarg ;;
1345
1346   -without-* | --without-*)
1347     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348     # Reject names that are not valid shell variable names.
1349     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1351    { (exit 1); exit 1; }; }
1352     ac_useropt_orig=$ac_useropt
1353     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354     case $ac_user_opts in
1355       *"
1356 "with_$ac_useropt"
1357 "*) ;;
1358       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1359          ac_unrecognized_sep=', ';;
1360     esac
1361     eval with_$ac_useropt=no ;;
1362
1363   --x)
1364     # Obsolete; use --with-x.
1365     with_x=yes ;;
1366
1367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1368   | --x-incl | --x-inc | --x-in | --x-i)
1369     ac_prev=x_includes ;;
1370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1372     x_includes=$ac_optarg ;;
1373
1374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1376     ac_prev=x_libraries ;;
1377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1379     x_libraries=$ac_optarg ;;
1380
1381   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1382 Try \`$0 --help' for more information." >&2
1383    { (exit 1); exit 1; }; }
1384     ;;
1385
1386   *=*)
1387     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1388     # Reject names that are not valid shell variable names.
1389     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1390       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1391    { (exit 1); exit 1; }; }
1392     eval $ac_envvar=\$ac_optarg
1393     export $ac_envvar ;;
1394
1395   *)
1396     # FIXME: should be removed in autoconf 3.0.
1397     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1398     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1400     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1401     ;;
1402
1403   esac
1404 done
1405
1406 if test -n "$ac_prev"; then
1407   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1408   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1409    { (exit 1); exit 1; }; }
1410 fi
1411
1412 if test -n "$ac_unrecognized_opts"; then
1413   case $enable_option_checking in
1414     no) ;;
1415     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1416    { (exit 1); exit 1; }; } ;;
1417     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418   esac
1419 fi
1420
1421 # Check all directory arguments for consistency.
1422 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423                 datadir sysconfdir sharedstatedir localstatedir includedir \
1424                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425                 libdir localedir mandir
1426 do
1427   eval ac_val=\$$ac_var
1428   # Remove trailing slashes.
1429   case $ac_val in
1430     */ )
1431       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432       eval $ac_var=\$ac_val;;
1433   esac
1434   # Be sure to have absolute directory names.
1435   case $ac_val in
1436     [\\/$]* | ?:[\\/]* )  continue;;
1437     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438   esac
1439   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1440    { (exit 1); exit 1; }; }
1441 done
1442
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1449
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452   if test "x$build_alias" = x; then
1453     cross_compiling=maybe
1454     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455     If a cross compiler is detected then cross compile mode will be used." >&2
1456   elif test "x$build_alias" != "x$host_alias"; then
1457     cross_compiling=yes
1458   fi
1459 fi
1460
1461 ac_tool_prefix=
1462 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463
1464 test "$silent" = yes && exec 6>/dev/null
1465
1466
1467 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di=`ls -di .` &&
1469 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1471    { (exit 1); exit 1; }; }
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1474    { (exit 1); exit 1; }; }
1475
1476
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479   ac_srcdir_defaulted=yes
1480   # Try the directory containing this script, then the parent directory.
1481   ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483          X"$as_myself" : 'X\(//\)[^/]' \| \
1484          X"$as_myself" : 'X\(//\)$' \| \
1485          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\/\)[^/].*/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\).*/{
1500             s//\1/
1501             q
1502           }
1503           s/.*/./; q'`
1504   srcdir=$ac_confdir
1505   if test ! -r "$srcdir/$ac_unique_file"; then
1506     srcdir=..
1507   fi
1508 else
1509   ac_srcdir_defaulted=no
1510 fi
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1514    { (exit 1); exit 1; }; }
1515 fi
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 ac_abs_confdir=`(
1518         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1519    { (exit 1); exit 1; }; }
1520         pwd)`
1521 # When building in place, set srcdir=.
1522 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523   srcdir=.
1524 fi
1525 # Remove unnecessary trailing slashes from srcdir.
1526 # Double slashes in file names in object file debugging info
1527 # mess up M-x gdb in Emacs.
1528 case $srcdir in
1529 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 esac
1531 for ac_var in $ac_precious_vars; do
1532   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1533   eval ac_env_${ac_var}_value=\$${ac_var}
1534   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1535   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1536 done
1537
1538 #
1539 # Report the --help message.
1540 #
1541 if test "$ac_init_help" = "long"; then
1542   # Omit some internal or obsolete options to make the list less imposing.
1543   # This message is too long to be a string in the A/UX 3.1 sh.
1544   cat <<_ACEOF
1545 \`configure' configures libffi 3.0.9 to adapt to many kinds of systems.
1546
1547 Usage: $0 [OPTION]... [VAR=VALUE]...
1548
1549 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1550 VAR=VALUE.  See below for descriptions of some of the useful variables.
1551
1552 Defaults for the options are specified in brackets.
1553
1554 Configuration:
1555   -h, --help              display this help and exit
1556       --help=short        display options specific to this package
1557       --help=recursive    display the short help of all the included packages
1558   -V, --version           display version information and exit
1559   -q, --quiet, --silent   do not print \`checking...' messages
1560       --cache-file=FILE   cache test results in FILE [disabled]
1561   -C, --config-cache      alias for \`--cache-file=config.cache'
1562   -n, --no-create         do not create output files
1563       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1564
1565 Installation directories:
1566   --prefix=PREFIX         install architecture-independent files in PREFIX
1567                           [$ac_default_prefix]
1568   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1569                           [PREFIX]
1570
1571 By default, \`make install' will install all the files in
1572 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1573 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1574 for instance \`--prefix=\$HOME'.
1575
1576 For better control, use the options below.
1577
1578 Fine tuning of the installation directories:
1579   --bindir=DIR            user executables [EPREFIX/bin]
1580   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1581   --libexecdir=DIR        program executables [EPREFIX/libexec]
1582   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1583   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1584   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1585   --libdir=DIR            object code libraries [EPREFIX/lib]
1586   --includedir=DIR        C header files [PREFIX/include]
1587   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1588   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1589   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1590   --infodir=DIR           info documentation [DATAROOTDIR/info]
1591   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1592   --mandir=DIR            man documentation [DATAROOTDIR/man]
1593   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1594   --htmldir=DIR           html documentation [DOCDIR]
1595   --dvidir=DIR            dvi documentation [DOCDIR]
1596   --pdfdir=DIR            pdf documentation [DOCDIR]
1597   --psdir=DIR             ps documentation [DOCDIR]
1598 _ACEOF
1599
1600   cat <<\_ACEOF
1601
1602 Program names:
1603   --program-prefix=PREFIX            prepend PREFIX to installed program names
1604   --program-suffix=SUFFIX            append SUFFIX to installed program names
1605   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1606
1607 System types:
1608   --build=BUILD     configure for building on BUILD [guessed]
1609   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1610   --target=TARGET   configure for building compilers for TARGET [HOST]
1611 _ACEOF
1612 fi
1613
1614 if test -n "$ac_init_help"; then
1615   case $ac_init_help in
1616      short | recursive ) echo "Configuration of libffi 3.0.9:";;
1617    esac
1618   cat <<\_ACEOF
1619
1620 Optional Features:
1621   --disable-option-checking  ignore unrecognized --enable/--with options
1622   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1623   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1624   --disable-dependency-tracking  speeds up one-time build
1625   --enable-dependency-tracking   do not reject slow dependency extractors
1626   --enable-shared[=PKGS]  build shared libraries [default=yes]
1627   --enable-static[=PKGS]  build static libraries [default=yes]
1628   --enable-fast-install[=PKGS]
1629                           optimize for fast installation [default=yes]
1630   --disable-libtool-lock  avoid locking (might break parallel builds)
1631   --enable-maintainer-mode  enable make rules and dependencies not useful
1632                           (and sometimes confusing) to the casual installer
1633   --enable-debug          debugging mode
1634   --disable-structs       omit code for struct support
1635   --disable-raw-api       make the raw api unavailable
1636   --enable-purify-safety  purify-safe mode
1637
1638 Optional Packages:
1639   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1640   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1641   --with-pic              try to use only PIC/non-PIC objects [default=use
1642                           both]
1643   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1644
1645 Some influential environment variables:
1646   CC          C compiler command
1647   CFLAGS      C compiler flags
1648   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1649               nonstandard directory <lib dir>
1650   LIBS        libraries to pass to the linker, e.g. -l<library>
1651   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1652               you have headers in a nonstandard directory <include dir>
1653   CCAS        assembler compiler command (defaults to CC)
1654   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1655   CPP         C preprocessor
1656
1657 Use these variables to override the choices made by `configure' or to help
1658 it to find libraries and programs with nonstandard names/locations.
1659
1660 Report bugs to <http://gcc.gnu.org/bugs.html>.
1661 _ACEOF
1662 ac_status=$?
1663 fi
1664
1665 if test "$ac_init_help" = "recursive"; then
1666   # If there are subdirs, report their specific --help.
1667   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668     test -d "$ac_dir" ||
1669       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670       continue
1671     ac_builddir=.
1672
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677   # A ".." for each directory in $ac_dir_suffix.
1678   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679   case $ac_top_builddir_sub in
1680   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682   esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1688
1689 case $srcdir in
1690   .)  # We are building in place.
1691     ac_srcdir=.
1692     ac_top_srcdir=$ac_top_builddir_sub
1693     ac_abs_top_srcdir=$ac_pwd ;;
1694   [\\/]* | ?:[\\/]* )  # Absolute name.
1695     ac_srcdir=$srcdir$ac_dir_suffix;
1696     ac_top_srcdir=$srcdir
1697     ac_abs_top_srcdir=$srcdir ;;
1698   *) # Relative name.
1699     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700     ac_top_srcdir=$ac_top_build_prefix$srcdir
1701     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705     cd "$ac_dir" || { ac_status=$?; continue; }
1706     # Check for guested configure.
1707     if test -f "$ac_srcdir/configure.gnu"; then
1708       echo &&
1709       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710     elif test -f "$ac_srcdir/configure"; then
1711       echo &&
1712       $SHELL "$ac_srcdir/configure" --help=recursive
1713     else
1714       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715     fi || ac_status=$?
1716     cd "$ac_pwd" || { ac_status=$?; break; }
1717   done
1718 fi
1719
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722   cat <<\_ACEOF
1723 libffi configure 3.0.9
1724 generated by GNU Autoconf 2.63
1725
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731   exit
1732 fi
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1736
1737 It was created by libffi $as_me 3.0.9, which was
1738 generated by GNU Autoconf 2.63.  Invocation command line was
1739
1740   $ $0 $@
1741
1742 _ACEOF
1743 exec 5>>config.log
1744 {
1745 cat <<_ASUNAME
1746 ## --------- ##
1747 ## Platform. ##
1748 ## --------- ##
1749
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
1759 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
1767 _ASUNAME
1768
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772   IFS=$as_save_IFS
1773   test -z "$as_dir" && as_dir=.
1774   $as_echo "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1777
1778 } >&5
1779
1780 cat >&5 <<_ACEOF
1781
1782
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1786
1787 _ACEOF
1788
1789
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1800 do
1801   for ac_arg
1802   do
1803     case $ac_arg in
1804     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806     | -silent | --silent | --silen | --sile | --sil)
1807       continue ;;
1808     *\'*)
1809       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810     esac
1811     case $ac_pass in
1812     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813     2)
1814       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815       if test $ac_must_keep_next = true; then
1816         ac_must_keep_next=false # Got value, back to normal.
1817       else
1818         case $ac_arg in
1819           *=* | --config-cache | -C | -disable-* | --disable-* \
1820           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822           | -with-* | --with-* | -without-* | --without-* | --x)
1823             case "$ac_configure_args0 " in
1824               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825             esac
1826             ;;
1827           -* ) ac_must_keep_next=true ;;
1828         esac
1829       fi
1830       ac_configure_args="$ac_configure_args '$ac_arg'"
1831       ;;
1832     esac
1833   done
1834 done
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log.  We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844   # Save into config.log some information that might help in debugging.
1845   {
1846     echo
1847
1848     cat <<\_ASBOX
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1852 _ASBOX
1853     echo
1854     # The following way of writing the cache mishandles newlines in values,
1855 (
1856   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857     eval ac_val=\$$ac_var
1858     case $ac_val in #(
1859     *${as_nl}*)
1860       case $ac_var in #(
1861       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863       esac
1864       case $ac_var in #(
1865       _ | IFS | as_nl) ;; #(
1866       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867       *) $as_unset $ac_var ;;
1868       esac ;;
1869     esac
1870   done
1871   (set) 2>&1 |
1872     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873     *${as_nl}ac_space=\ *)
1874       sed -n \
1875         "s/'\''/'\''\\\\'\'''\''/g;
1876           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877       ;; #(
1878     *)
1879       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880       ;;
1881     esac |
1882     sort
1883 )
1884     echo
1885
1886     cat <<\_ASBOX
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1890 _ASBOX
1891     echo
1892     for ac_var in $ac_subst_vars
1893     do
1894       eval ac_val=\$$ac_var
1895       case $ac_val in
1896       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897       esac
1898       $as_echo "$ac_var='\''$ac_val'\''"
1899     done | sort
1900     echo
1901
1902     if test -n "$ac_subst_files"; then
1903       cat <<\_ASBOX
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1907 _ASBOX
1908       echo
1909       for ac_var in $ac_subst_files
1910       do
1911         eval ac_val=\$$ac_var
1912         case $ac_val in
1913         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914         esac
1915         $as_echo "$ac_var='\''$ac_val'\''"
1916       done | sort
1917       echo
1918     fi
1919
1920     if test -s confdefs.h; then
1921       cat <<\_ASBOX
1922 ## ----------- ##
1923 ## confdefs.h. ##
1924 ## ----------- ##
1925 _ASBOX
1926       echo
1927       cat confdefs.h
1928       echo
1929     fi
1930     test "$ac_signal" != 0 &&
1931       $as_echo "$as_me: caught signal $ac_signal"
1932     $as_echo "$as_me: exit $exit_status"
1933   } >&5
1934   rm -f core *.core core.conftest.* &&
1935     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936     exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 # Predefined preprocessor variables.
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 _ACEOF
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 ac_site_file1=NONE
1976 ac_site_file2=NONE
1977 if test -n "$CONFIG_SITE"; then
1978   ac_site_file1=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE; then
1980   ac_site_file1=$prefix/share/config.site
1981   ac_site_file2=$prefix/etc/config.site
1982 else
1983   ac_site_file1=$ac_default_prefix/share/config.site
1984   ac_site_file2=$ac_default_prefix/etc/config.site
1985 fi
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987 do
1988   test "x$ac_site_file" = xNONE && continue
1989   if test -r "$ac_site_file"; then
1990     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992     sed 's/^/| /' "$ac_site_file" >&5
1993     . "$ac_site_file"
1994   fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998   # Some versions of bash will fail to source /dev/null (special
1999   # files actually), so we avoid doing that.
2000   if test -f "$cache_file"; then
2001     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2003     case $cache_file in
2004       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005       *)                      . "./$cache_file";;
2006     esac
2007   fi
2008 else
2009   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2011   >$cache_file
2012 fi
2013
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019   eval ac_new_set=\$ac_env_${ac_var}_set
2020   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021   eval ac_new_val=\$ac_env_${ac_var}_value
2022   case $ac_old_set,$ac_new_set in
2023     set,)
2024       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026       ac_cache_corrupted=: ;;
2027     ,set)
2028       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030       ac_cache_corrupted=: ;;
2031     ,);;
2032     *)
2033       if test "x$ac_old_val" != "x$ac_new_val"; then
2034         # differences in whitespace do not lead to failure.
2035         ac_old_val_w=`echo x $ac_old_val`
2036         ac_new_val_w=`echo x $ac_new_val`
2037         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040           ac_cache_corrupted=:
2041         else
2042           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044           eval $ac_var=\$ac_old_val
2045         fi
2046         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2047 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050       fi;;
2051   esac
2052   # Pass precious variables to config.status.
2053   if test "$ac_new_set" = set; then
2054     case $ac_new_val in
2055     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056     *) ac_arg=$ac_var=$ac_new_val ;;
2057     esac
2058     case " $ac_configure_args " in
2059       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061     esac
2062   fi
2063 done
2064 if $ac_cache_corrupted; then
2065   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071    { (exit 1); exit 1; }; }
2072 fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098 ac_ext=c
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
2104
2105 ac_config_headers="$ac_config_headers fficonfig.h"
2106
2107
2108 ac_aux_dir=
2109 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2110   if test -f "$ac_dir/install-sh"; then
2111     ac_aux_dir=$ac_dir
2112     ac_install_sh="$ac_aux_dir/install-sh -c"
2113     break
2114   elif test -f "$ac_dir/install.sh"; then
2115     ac_aux_dir=$ac_dir
2116     ac_install_sh="$ac_aux_dir/install.sh -c"
2117     break
2118   elif test -f "$ac_dir/shtool"; then
2119     ac_aux_dir=$ac_dir
2120     ac_install_sh="$ac_aux_dir/shtool install -c"
2121     break
2122   fi
2123 done
2124 if test -z "$ac_aux_dir"; then
2125   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2126 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2127    { (exit 1); exit 1; }; }
2128 fi
2129
2130 # These three variables are undocumented and unsupported,
2131 # and are intended to be withdrawn in a future Autoconf release.
2132 # They can cause serious problems if a builder's source tree is in a directory
2133 # whose full name contains unusual characters.
2134 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2135 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2136 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2137
2138
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2146 $as_echo_n "checking build system type... " >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148   $as_echo_n "(cached) " >&6
2149 else
2150   ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156    { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161
2162 fi
2163 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 $as_echo "$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2166 *-*-*) ;;
2167 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2169    { (exit 1); exit 1; }; };;
2170 esac
2171 build=$ac_cv_build
2172 ac_save_IFS=$IFS; IFS='-'
2173 set x $ac_cv_build
2174 shift
2175 build_cpu=$1
2176 build_vendor=$2
2177 shift; shift
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2180 build_os=$*
2181 IFS=$ac_save_IFS
2182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2183
2184
2185 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2186 $as_echo_n "checking host system type... " >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188   $as_echo_n "(cached) " >&6
2189 else
2190   if test "x$host_alias" = x; then
2191   ac_cv_host=$ac_cv_build
2192 else
2193   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196    { (exit 1); exit 1; }; }
2197 fi
2198
2199 fi
2200 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 $as_echo "$ac_cv_host" >&6; }
2202 case $ac_cv_host in
2203 *-*-*) ;;
2204 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2206    { (exit 1); exit 1; }; };;
2207 esac
2208 host=$ac_cv_host
2209 ac_save_IFS=$IFS; IFS='-'
2210 set x $ac_cv_host
2211 shift
2212 host_cpu=$1
2213 host_vendor=$2
2214 shift; shift
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2217 host_os=$*
2218 IFS=$ac_save_IFS
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2223 $as_echo_n "checking target system type... " >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225   $as_echo_n "(cached) " >&6
2226 else
2227   if test "x$target_alias" = x; then
2228   ac_cv_target=$ac_cv_host
2229 else
2230   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233    { (exit 1); exit 1; }; }
2234 fi
2235
2236 fi
2237 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 $as_echo "$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2240 *-*-*) ;;
2241 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2243    { (exit 1); exit 1; }; };;
2244 esac
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2247 set x $ac_cv_target
2248 shift
2249 target_cpu=$1
2250 target_vendor=$2
2251 shift; shift
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2254 target_os=$*
2255 IFS=$ac_save_IFS
2256 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2257
2258
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262   test "$program_prefix$program_suffix$program_transform_name" = \
2263     NONENONEs,x,x, &&
2264   program_prefix=${target_alias}-
2265 target_alias=${target_alias-$host_alias}
2266
2267 . ${srcdir}/configure.host
2268
2269 am__api_version='1.11'
2270
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 # Reject install programs that cannot install multiple files.
2285 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289   $as_echo_n "(cached) " >&6
2290 else
2291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   # Account for people who put trailing slashes in PATH elements.
2297 case $as_dir/ in
2298   ./ | .// | /cC/* | \
2299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2301   /usr/ucb/* ) ;;
2302   *)
2303     # OSF1 and SCO ODT 3.0 have their own names for install.
2304     # Don't use installbsd from OSF since it installs stuff as root
2305     # by default.
2306     for ac_prog in ginstall scoinst install; do
2307       for ac_exec_ext in '' $ac_executable_extensions; do
2308         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309           if test $ac_prog = install &&
2310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311             # AIX install.  It has an incompatible calling convention.
2312             :
2313           elif test $ac_prog = install &&
2314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315             # program-specific install script used by HP pwplus--don't use.
2316             :
2317           else
2318             rm -rf conftest.one conftest.two conftest.dir
2319             echo one > conftest.one
2320             echo two > conftest.two
2321             mkdir conftest.dir
2322             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2323               test -s conftest.one && test -s conftest.two &&
2324               test -s conftest.dir/conftest.one &&
2325               test -s conftest.dir/conftest.two
2326             then
2327               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328               break 3
2329             fi
2330           fi
2331         fi
2332       done
2333     done
2334     ;;
2335 esac
2336
2337 done
2338 IFS=$as_save_IFS
2339
2340 rm -rf conftest.one conftest.two conftest.dir
2341
2342 fi
2343   if test "${ac_cv_path_install+set}" = set; then
2344     INSTALL=$ac_cv_path_install
2345   else
2346     # As a last resort, use the slow shell script.  Don't cache a
2347     # value for INSTALL within a source directory, because that will
2348     # break other packages using the cache if that directory is
2349     # removed, or if the value is a relative name.
2350     INSTALL=$ac_install_sh
2351   fi
2352 fi
2353 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2354 $as_echo "$INSTALL" >&6; }
2355
2356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357 # It thinks the first close brace ends the variable substitution.
2358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2359
2360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2361
2362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2363
2364 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2365 $as_echo_n "checking whether build environment is sane... " >&6; }
2366 # Just in case
2367 sleep 1
2368 echo timestamp > conftest.file
2369 # Reject unsafe characters in $srcdir or the absolute working directory
2370 # name.  Accept space and tab only in the latter.
2371 am_lf='
2372 '
2373 case `pwd` in
2374   *[\\\"\#\$\&\'\`$am_lf]*)
2375     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2376 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2377    { (exit 1); exit 1; }; };;
2378 esac
2379 case $srcdir in
2380   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2381     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2382 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2383    { (exit 1); exit 1; }; };;
2384 esac
2385
2386 # Do `set' in a subshell so we don't clobber the current shell's
2387 # arguments.  Must try -L first in case configure is actually a
2388 # symlink; some systems play weird games with the mod time of symlinks
2389 # (eg FreeBSD returns the mod time of the symlink's containing
2390 # directory).
2391 if (
2392    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2393    if test "$*" = "X"; then
2394       # -L didn't work.
2395       set X `ls -t "$srcdir/configure" conftest.file`
2396    fi
2397    rm -f conftest.file
2398    if test "$*" != "X $srcdir/configure conftest.file" \
2399       && test "$*" != "X conftest.file $srcdir/configure"; then
2400
2401       # If neither matched, then we have a broken ls.  This can happen
2402       # if, for instance, CONFIG_SHELL is bash and it inherits a
2403       # broken ls alias from the environment.  This has actually
2404       # happened.  Such a system could not be considered "sane".
2405       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2406 alias in your environment" >&5
2407 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2408 alias in your environment" >&2;}
2409    { (exit 1); exit 1; }; }
2410    fi
2411
2412    test "$2" = conftest.file
2413    )
2414 then
2415    # Ok.
2416    :
2417 else
2418    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2419 Check your system clock" >&5
2420 $as_echo "$as_me: error: newly created file is older than distributed files!
2421 Check your system clock" >&2;}
2422    { (exit 1); exit 1; }; }
2423 fi
2424 { $as_echo "$as_me:$LINENO: result: yes" >&5
2425 $as_echo "yes" >&6; }
2426 test "$program_prefix" != NONE &&
2427   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428 # Use a double $ so make ignores it.
2429 test "$program_suffix" != NONE &&
2430   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431 # Double any \ or $.
2432 # By default was `s,x,x', remove it if useless.
2433 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2435
2436 # expand $ac_aux_dir to an absolute path
2437 am_aux_dir=`cd $ac_aux_dir && pwd`
2438
2439 if test x"${MISSING+set}" != xset; then
2440   case $am_aux_dir in
2441   *\ * | *\     *)
2442     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2443   *)
2444     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2445   esac
2446 fi
2447 # Use eval to expand $SHELL
2448 if eval "$MISSING --run true"; then
2449   am_missing_run="$MISSING --run "
2450 else
2451   am_missing_run=
2452   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2453 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2454 fi
2455
2456 if test x"${install_sh}" != xset; then
2457   case $am_aux_dir in
2458   *\ * | *\     *)
2459     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2460   *)
2461     install_sh="\${SHELL} $am_aux_dir/install-sh"
2462   esac
2463 fi
2464
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'.  However `strip' might not be the right
2467 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2469 if test "$cross_compiling" != no; then
2470   if test -n "$ac_tool_prefix"; then
2471   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}strip; ac_word=$2
2473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_prog_STRIP+set}" = set; then
2476   $as_echo_n "(cached) " >&6
2477 else
2478   if test -n "$STRIP"; then
2479   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 STRIP=$ac_cv_prog_STRIP
2499 if test -n "$STRIP"; then
2500   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501 $as_echo "$STRIP" >&6; }
2502 else
2503   { $as_echo "$as_me:$LINENO: result: no" >&5
2504 $as_echo "no" >&6; }
2505 fi
2506
2507
2508 fi
2509 if test -z "$ac_cv_prog_STRIP"; then
2510   ac_ct_STRIP=$STRIP
2511   # Extract the first word of "strip", so it can be a program name with args.
2512 set dummy strip; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516   $as_echo_n "(cached) " >&6
2517 else
2518   if test -n "$ac_ct_STRIP"; then
2519   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528     ac_cv_prog_ac_ct_STRIP="strip"
2529     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539 if test -n "$ac_ct_STRIP"; then
2540   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541 $as_echo "$ac_ct_STRIP" >&6; }
2542 else
2543   { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2545 fi
2546
2547   if test "x$ac_ct_STRIP" = x; then
2548     STRIP=":"
2549   else
2550     case $cross_compiling:$ac_tool_warned in
2551 yes:)
2552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554 ac_tool_warned=yes ;;
2555 esac
2556     STRIP=$ac_ct_STRIP
2557   fi
2558 else
2559   STRIP="$ac_cv_prog_STRIP"
2560 fi
2561
2562 fi
2563 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2564
2565 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2566 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2567 if test -z "$MKDIR_P"; then
2568   if test "${ac_cv_path_mkdir+set}" = set; then
2569   $as_echo_n "(cached) " >&6
2570 else
2571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_prog in mkdir gmkdir; do
2577          for ac_exec_ext in '' $ac_executable_extensions; do
2578            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2579            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2580              'mkdir (GNU coreutils) '* | \
2581              'mkdir (coreutils) '* | \
2582              'mkdir (fileutils) '4.1*)
2583                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2584                break 3;;
2585            esac
2586          done
2587        done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592
2593   if test "${ac_cv_path_mkdir+set}" = set; then
2594     MKDIR_P="$ac_cv_path_mkdir -p"
2595   else
2596     # As a last resort, use the slow shell script.  Don't cache a
2597     # value for MKDIR_P within a source directory, because that will
2598     # break other packages using the cache if that directory is
2599     # removed, or if the value is a relative name.
2600     test -d ./--version && rmdir ./--version
2601     MKDIR_P="$ac_install_sh -d"
2602   fi
2603 fi
2604 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2605 $as_echo "$MKDIR_P" >&6; }
2606
2607 mkdir_p="$MKDIR_P"
2608 case $mkdir_p in
2609   [\\/$]* | ?:[\\/]*) ;;
2610   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2611 esac
2612
2613 for ac_prog in gawk mawk nawk awk
2614 do
2615   # Extract the first word of "$ac_prog", so it can be a program name with args.
2616 set dummy $ac_prog; ac_word=$2
2617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if test "${ac_cv_prog_AWK+set}" = set; then
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test -n "$AWK"; then
2623   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630   for ac_exec_ext in '' $ac_executable_extensions; do
2631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632     ac_cv_prog_AWK="$ac_prog"
2633     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637 done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 AWK=$ac_cv_prog_AWK
2643 if test -n "$AWK"; then
2644   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2645 $as_echo "$AWK" >&6; }
2646 else
2647   { $as_echo "$as_me:$LINENO: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652   test -n "$AWK" && break
2653 done
2654
2655 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2656 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2657 set x ${MAKE-make}
2658 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2659 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2660   $as_echo_n "(cached) " >&6
2661 else
2662   cat >conftest.make <<\_ACEOF
2663 SHELL = /bin/sh
2664 all:
2665         @echo '@@@%%%=$(MAKE)=@@@%%%'
2666 _ACEOF
2667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2668 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2669   *@@@%%%=?*=@@@%%%*)
2670     eval ac_cv_prog_make_${ac_make}_set=yes;;
2671   *)
2672     eval ac_cv_prog_make_${ac_make}_set=no;;
2673 esac
2674 rm -f conftest.make
2675 fi
2676 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2677   { $as_echo "$as_me:$LINENO: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679   SET_MAKE=
2680 else
2681   { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683   SET_MAKE="MAKE=${MAKE-make}"
2684 fi
2685
2686 rm -rf .tst 2>/dev/null
2687 mkdir .tst 2>/dev/null
2688 if test -d .tst; then
2689   am__leading_dot=.
2690 else
2691   am__leading_dot=_
2692 fi
2693 rmdir .tst 2>/dev/null
2694
2695 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2696   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2697   # is not polluted with repeated "-I."
2698   am__isrc=' -I$(srcdir)'
2699   # test to see if srcdir already configured
2700   if test -f $srcdir/config.status; then
2701     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2702 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2703    { (exit 1); exit 1; }; }
2704   fi
2705 fi
2706
2707 # test whether we have cygpath
2708 if test -z "$CYGPATH_W"; then
2709   if (cygpath --version) >/dev/null 2>/dev/null; then
2710     CYGPATH_W='cygpath -w'
2711   else
2712     CYGPATH_W=echo
2713   fi
2714 fi
2715
2716
2717 # Define the identity of the package.
2718  PACKAGE='libffi'
2719  VERSION='3.0.9'
2720
2721
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE "$PACKAGE"
2724 _ACEOF
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define VERSION "$VERSION"
2729 _ACEOF
2730
2731 # Some tools Automake needs.
2732
2733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2734
2735
2736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2737
2738
2739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2740
2741
2742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2743
2744
2745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2746
2747 # We need awk for the "check" target.  The system "awk" is bad on
2748 # some platforms.
2749 # Always define AMTAR for backward compatibility.
2750
2751 AMTAR=${AMTAR-"${am_missing_run}tar"}
2752
2753 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2754
2755
2756
2757
2758
2759
2760 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2761 # We must force CC to /not/ be precious variables; otherwise
2762 # the wrong, non-multilib-adjusted value will be used in multilibs.
2763 # As a side effect, we have to subst CFLAGS ourselves.
2764
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$CC"; then
2781   ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805   { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$ac_cv_prog_CC"; then
2812   ac_ct_CC=$CC
2813   # Extract the first word of "gcc", so it can be a program name with args.
2814 set dummy gcc; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$ac_ct_CC"; then
2821   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_ac_ct_CC="gcc"
2831     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2844 else
2845   { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849   if test "x$ac_ct_CC" = x; then
2850     CC=""
2851   else
2852     case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858     CC=$ac_ct_CC
2859   fi
2860 else
2861   CC="$ac_cv_prog_CC"
2862 fi
2863
2864 if test -z "$CC"; then
2865           if test -n "$ac_tool_prefix"; then
2866     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}cc; ac_word=$2
2868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_CC+set}" = set; then
2871   $as_echo_n "(cached) " >&6
2872 else
2873   if test -n "$CC"; then
2874   ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879   IFS=$as_save_IFS
2880   test -z "$as_dir" && as_dir=.
2881   for ac_exec_ext in '' $ac_executable_extensions; do
2882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883     ac_cv_prog_CC="${ac_tool_prefix}cc"
2884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885     break 2
2886   fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2897 else
2898   { $as_echo "$as_me:$LINENO: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902
2903   fi
2904 fi
2905 if test -z "$CC"; then
2906   # Extract the first word of "cc", so it can be a program name with args.
2907 set dummy cc; ac_word=$2
2908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911   $as_echo_n "(cached) " >&6
2912 else
2913   if test -n "$CC"; then
2914   ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916   ac_prog_rejected=no
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920   IFS=$as_save_IFS
2921   test -z "$as_dir" && as_dir=.
2922   for ac_exec_ext in '' $ac_executable_extensions; do
2923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2925        ac_prog_rejected=yes
2926        continue
2927      fi
2928     ac_cv_prog_CC="cc"
2929     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 if test $ac_prog_rejected = yes; then
2937   # We found a bogon in the path, so make sure we never use it.
2938   set dummy $ac_cv_prog_CC
2939   shift
2940   if test $# != 0; then
2941     # We chose a different compiler from the bogus one.
2942     # However, it has the same basename, so the bogon will be chosen
2943     # first if we set CC to just the basename; use the full file name.
2944     shift
2945     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946   fi
2947 fi
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955   { $as_echo "$as_me:$LINENO: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 fi
2961 if test -z "$CC"; then
2962   if test -n "$ac_tool_prefix"; then
2963   for ac_prog in cl.exe
2964   do
2965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then
2970   $as_echo_n "(cached) " >&6
2971 else
2972   if test -n "$CC"; then
2973   ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   for ac_exec_ext in '' $ac_executable_extensions; do
2981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997   { $as_echo "$as_me:$LINENO: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002     test -n "$CC" && break
3003   done
3004 fi
3005 if test -z "$CC"; then
3006   ac_ct_CC=$CC
3007   for ac_prog in cl.exe
3008 do
3009   # Extract the first word of "$ac_prog", so it can be a program name with args.
3010 set dummy $ac_prog; ac_word=$2
3011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014   $as_echo_n "(cached) " >&6
3015 else
3016   if test -n "$ac_ct_CC"; then
3017   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024   for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     ac_cv_prog_ac_ct_CC="$ac_prog"
3027     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028     break 2
3029   fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039 $as_echo "$ac_ct_CC" >&6; }
3040 else
3041   { $as_echo "$as_me:$LINENO: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046   test -n "$ac_ct_CC" && break
3047 done
3048
3049   if test "x$ac_ct_CC" = x; then
3050     CC=""
3051   else
3052     case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058     CC=$ac_ct_CC
3059   fi
3060 fi
3061
3062 fi
3063
3064
3065 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3068 See \`config.log' for more details." >&5
3069 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." >&2;}
3071    { (exit 1); exit 1; }; }; }
3072
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3075 set X $ac_compile
3076 ac_compiler=$2
3077 { (ac_try="$ac_compiler --version >&5"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084   (eval "$ac_compiler --version >&5") 2>&5
3085   ac_status=$?
3086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }
3088 { (ac_try="$ac_compiler -v >&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 -v >&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
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3130 # of exeext.
3131 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3132 $as_echo_n "checking for C compiler default output file name... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3137
3138 ac_rmfiles=
3139 for ac_file in $ac_files
3140 do
3141   case $ac_file in
3142     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3144   esac
3145 done
3146 rm -f $ac_rmfiles
3147
3148 if { (ac_try="$ac_link_default"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155   (eval "$ac_link_default") 2>&5
3156   ac_status=$?
3157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; then
3159   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3163 # Autoconf.
3164 for ac_file in $ac_files ''
3165 do
3166   test -f "$ac_file" || continue
3167   case $ac_file in
3168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3169         ;;
3170     [ab].out )
3171         # We found the default executable, but exeext='' is most
3172         # certainly right.
3173         break;;
3174     *.* )
3175         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3176         then :; else
3177            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178         fi
3179         # We set ac_cv_exeext here because the later test for it is not
3180         # safe: cross compilers may not add the suffix if given an `-o'
3181         # argument, so we may need to know it at that point already.
3182         # Even if this section looks crufty: it has the advantage of
3183         # actually working.
3184         break;;
3185     * )
3186         break;;
3187   esac
3188 done
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3190
3191 else
3192   ac_file=''
3193 fi
3194
3195 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 if test -z "$ac_file"; then
3198   $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3204 See \`config.log' for more details." >&5
3205 $as_echo "$as_me: error: C compiler cannot create executables
3206 See \`config.log' for more details." >&2;}
3207    { (exit 77); exit 77; }; }; }
3208 fi
3209
3210 ac_exeext=$ac_cv_exeext
3211
3212 # Check that the compiler produces executables we can run.  If not, either
3213 # the compiler is broken, or we cross compile.
3214 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3215 $as_echo_n "checking whether the C compiler works... " >&6; }
3216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3217 # If not cross compiling, check that we can run a simple program.
3218 if test "$cross_compiling" != yes; then
3219   if { ac_try='./$ac_file'
3220   { (case "(($ac_try" in
3221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222   *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225 $as_echo "$ac_try_echo") >&5
3226   (eval "$ac_try") 2>&5
3227   ac_status=$?
3228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; }; then
3230     cross_compiling=no
3231   else
3232     if test "$cross_compiling" = maybe; then
3233         cross_compiling=yes
3234     else
3235         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3238 If you meant to cross compile, use \`--host'.
3239 See \`config.log' for more details." >&5
3240 $as_echo "$as_me: error: cannot run C compiled programs.
3241 If you meant to cross compile, use \`--host'.
3242 See \`config.log' for more details." >&2;}
3243    { (exit 1); exit 1; }; }; }
3244     fi
3245   fi
3246 fi
3247 { $as_echo "$as_me:$LINENO: result: yes" >&5
3248 $as_echo "yes" >&6; }
3249
3250 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3251 ac_clean_files=$ac_clean_files_save
3252 # Check that the compiler produces executables we can run.  If not, either
3253 # the compiler is broken, or we cross compile.
3254 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3255 $as_echo_n "checking whether we are cross compiling... " >&6; }
3256 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3257 $as_echo "$cross_compiling" >&6; }
3258
3259 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3260 $as_echo_n "checking for suffix of executables... " >&6; }
3261 if { (ac_try="$ac_link"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268   (eval "$ac_link") 2>&5
3269   ac_status=$?
3270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }; then
3272   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3273 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3274 # work properly (i.e., refer to `conftest.exe'), while it won't with
3275 # `rm'.
3276 for ac_file in conftest.exe conftest conftest.*; do
3277   test -f "$ac_file" || continue
3278   case $ac_file in
3279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281           break;;
3282     * ) break;;
3283   esac
3284 done
3285 else
3286   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3289 See \`config.log' for more details." >&5
3290 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details." >&2;}
3292    { (exit 1); exit 1; }; }; }
3293 fi
3294
3295 rm -f conftest$ac_cv_exeext
3296 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3297 $as_echo "$ac_cv_exeext" >&6; }
3298
3299 rm -f conftest.$ac_ext
3300 EXEEXT=$ac_cv_exeext
3301 ac_exeext=$EXEEXT
3302 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3303 $as_echo_n "checking for suffix of object files... " >&6; }
3304 if test "${ac_cv_objext+set}" = set; then
3305   $as_echo_n "(cached) " >&6
3306 else
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313
3314 int
3315 main ()
3316 {
3317
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.o conftest.obj
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329 $as_echo "$ac_try_echo") >&5
3330   (eval "$ac_compile") 2>&5
3331   ac_status=$?
3332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; then
3334   for ac_file in conftest.o conftest.obj conftest.*; do
3335   test -f "$ac_file" || continue;
3336   case $ac_file in
3337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3339        break;;
3340   esac
3341 done
3342 else
3343   $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3349 See \`config.log' for more details." >&5
3350 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details." >&2;}
3352    { (exit 1); exit 1; }; }; }
3353 fi
3354
3355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 fi
3357 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3358 $as_echo "$ac_cv_objext" >&6; }
3359 OBJEXT=$ac_cv_objext
3360 ac_objext=$OBJEXT
3361 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364   $as_echo_n "(cached) " >&6
3365 else
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377        choke me
3378 #endif
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392   (eval "$ac_compile") 2>conftest.er1
3393   ac_status=$?
3394   grep -v '^ *+' conftest.er1 >conftest.err
3395   rm -f conftest.er1
3396   cat conftest.err >&5
3397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } && {
3399          test -z "$ac_c_werror_flag" ||
3400          test ! -s conftest.err
3401        } && test -s conftest.$ac_objext; then
3402   ac_compiler_gnu=yes
3403 else
3404   $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407         ac_compiler_gnu=no
3408 fi
3409
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3412
3413 fi
3414 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3416 if test $ac_compiler_gnu = yes; then
3417   GCC=yes
3418 else
3419   GCC=
3420 fi
3421 ac_test_CFLAGS=${CFLAGS+set}
3422 ac_save_CFLAGS=$CFLAGS
3423 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3425 if test "${ac_cv_prog_cc_g+set}" = set; then
3426   $as_echo_n "(cached) " >&6
3427 else
3428   ac_save_c_werror_flag=$ac_c_werror_flag
3429    ac_c_werror_flag=yes
3430    ac_cv_prog_cc_g=no
3431    CFLAGS="-g"
3432    cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454 $as_echo "$ac_try_echo") >&5
3455   (eval "$ac_compile") 2>conftest.er1
3456   ac_status=$?
3457   grep -v '^ *+' conftest.er1 >conftest.err
3458   rm -f conftest.er1
3459   cat conftest.err >&5
3460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } && {
3462          test -z "$ac_c_werror_flag" ||
3463          test ! -s conftest.err
3464        } && test -s conftest.$ac_objext; then
3465   ac_cv_prog_cc_g=yes
3466 else
3467   $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470         CFLAGS=""
3471       cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477
3478 int
3479 main ()
3480 {
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494   (eval "$ac_compile") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } && {
3501          test -z "$ac_c_werror_flag" ||
3502          test ! -s conftest.err
3503        } && test -s conftest.$ac_objext; then
3504   :
3505 else
3506   $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509         ac_c_werror_flag=$ac_save_c_werror_flag
3510          CFLAGS="-g"
3511          cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3528 case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534   (eval "$ac_compile") 2>conftest.er1
3535   ac_status=$?
3536   grep -v '^ *+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } && {
3541          test -z "$ac_c_werror_flag" ||
3542          test ! -s conftest.err
3543        } && test -s conftest.$ac_objext; then
3544   ac_cv_prog_cc_g=yes
3545 else
3546   $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549
3550 fi
3551
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559    ac_c_werror_flag=$ac_save_c_werror_flag
3560 fi
3561 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564   CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566   if test "$GCC" = yes; then
3567     CFLAGS="-g -O2"
3568   else
3569     CFLAGS="-g"
3570   fi
3571 else
3572   if test "$GCC" = yes; then
3573     CFLAGS="-O2"
3574   else
3575     CFLAGS=
3576   fi
3577 fi
3578 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if test "${ac_cv_prog_cc_c89+set}" = set; then
3581   $as_echo_n "(cached) " >&6
3582 else
3583   ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 #include <stdarg.h>
3592 #include <stdio.h>
3593 #include <sys/types.h>
3594 #include <sys/stat.h>
3595 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3596 struct buf { int x; };
3597 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3598 static char *e (p, i)
3599      char **p;
3600      int i;
3601 {
3602   return p[i];
3603 }
3604 static char *f (char * (*g) (char **, int), char **p, ...)
3605 {
3606   char *s;
3607   va_list v;
3608   va_start (v,p);
3609   s = g (p, va_arg (v,int));
3610   va_end (v);
3611   return s;
3612 }
3613
3614 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3615    function prototypes and stuff, but not '\xHH' hex character constants.
3616    These don't provoke an error unfortunately, instead are silently treated
3617    as 'x'.  The following induces an error, until -std is added to get
3618    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3619    array size at least.  It's necessary to write '\x00'==0 to get something
3620    that's true only with -std.  */
3621 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3622
3623 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3624    inside strings and character constants.  */
3625 #define FOO(x) 'x'
3626 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3627
3628 int test (int i, double x);
3629 struct s1 {int (*f) (int a);};
3630 struct s2 {int (*f) (double a);};
3631 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3632 int argc;
3633 char **argv;
3634 int
3635 main ()
3636 {
3637 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3643         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644 do
3645   CC="$ac_save_CC $ac_arg"
3646   rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654   (eval "$ac_compile") 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } && {
3661          test -z "$ac_c_werror_flag" ||
3662          test ! -s conftest.err
3663        } && test -s conftest.$ac_objext; then
3664   ac_cv_prog_cc_c89=$ac_arg
3665 else
3666   $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669
3670 fi
3671
3672 rm -f core conftest.err conftest.$ac_objext
3673   test "x$ac_cv_prog_cc_c89" != "xno" && break
3674 done
3675 rm -f conftest.$ac_ext
3676 CC=$ac_save_CC
3677
3678 fi
3679 # AC_CACHE_VAL
3680 case "x$ac_cv_prog_cc_c89" in
3681   x)
3682     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3683 $as_echo "none needed" >&6; } ;;
3684   xno)
3685     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3686 $as_echo "unsupported" >&6; } ;;
3687   *)
3688     CC="$CC $ac_cv_prog_cc_c89"
3689     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3690 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3691 esac
3692
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 DEPDIR="${am__leading_dot}deps"
3700
3701 ac_config_commands="$ac_config_commands depfiles"
3702
3703
3704 am_make=${MAKE-make}
3705 cat > confinc << 'END'
3706 am__doit:
3707         @echo this is the am__doit target
3708 .PHONY: am__doit
3709 END
3710 # If we don't find an include directive, just comment out the code.
3711 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3712 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3713 am__include="#"
3714 am__quote=
3715 _am_result=none
3716 # First try GNU make style include.
3717 echo "include confinc" > confmf
3718 # Ignore all kinds of additional output from `make'.
3719 case `$am_make -s -f confmf 2> /dev/null` in #(
3720 *the\ am__doit\ target*)
3721   am__include=include
3722   am__quote=
3723   _am_result=GNU
3724   ;;
3725 esac
3726 # Now try BSD make style include.
3727 if test "$am__include" = "#"; then
3728    echo '.include "confinc"' > confmf
3729    case `$am_make -s -f confmf 2> /dev/null` in #(
3730    *the\ am__doit\ target*)
3731      am__include=.include
3732      am__quote="\""
3733      _am_result=BSD
3734      ;;
3735    esac
3736 fi
3737
3738
3739 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3740 $as_echo "$_am_result" >&6; }
3741 rm -f confinc confmf
3742
3743 # Check whether --enable-dependency-tracking was given.
3744 if test "${enable_dependency_tracking+set}" = set; then
3745   enableval=$enable_dependency_tracking;
3746 fi
3747
3748 if test "x$enable_dependency_tracking" != xno; then
3749   am_depcomp="$ac_aux_dir/depcomp"
3750   AMDEPBACKSLASH='\'
3751 fi
3752  if test "x$enable_dependency_tracking" != xno; then
3753   AMDEP_TRUE=
3754   AMDEP_FALSE='#'
3755 else
3756   AMDEP_TRUE='#'
3757   AMDEP_FALSE=
3758 fi
3759
3760
3761
3762 depcc="$CC"   am_compiler_list=
3763
3764 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3765 $as_echo_n "checking dependency style of $depcc... " >&6; }
3766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3767   $as_echo_n "(cached) " >&6
3768 else
3769   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3770   # We make a subdir and do the tests there.  Otherwise we can end up
3771   # making bogus files that we don't know about and never remove.  For
3772   # instance it was reported that on HP-UX the gcc test will end up
3773   # making a dummy file named `D' -- because `-MD' means `put the output
3774   # in D'.
3775   mkdir conftest.dir
3776   # Copy depcomp to subdir because otherwise we won't find it if we're
3777   # using a relative directory.
3778   cp "$am_depcomp" conftest.dir
3779   cd conftest.dir
3780   # We will build objects and dependencies in a subdirectory because
3781   # it helps to detect inapplicable dependency modes.  For instance
3782   # both Tru64's cc and ICC support -MD to output dependencies as a
3783   # side effect of compilation, but ICC will put the dependencies in
3784   # the current directory while Tru64 will put them in the object
3785   # directory.
3786   mkdir sub
3787
3788   am_cv_CC_dependencies_compiler_type=none
3789   if test "$am_compiler_list" = ""; then
3790      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3791   fi
3792   am__universal=false
3793   case " $depcc " in #(
3794      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3795      esac
3796
3797   for depmode in $am_compiler_list; do
3798     # Setup a source with many dependencies, because some compilers
3799     # like to wrap large dependency lists on column 80 (with \), and
3800     # we should not choose a depcomp mode which is confused by this.
3801     #
3802     # We need to recreate these files for each test, as the compiler may
3803     # overwrite some of them when testing with obscure command lines.
3804     # This happens at least with the AIX C compiler.
3805     : > sub/conftest.c
3806     for i in 1 2 3 4 5 6; do
3807       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3808       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3809       # Solaris 8's {/usr,}/bin/sh.
3810       touch sub/conftst$i.h
3811     done
3812     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3813
3814     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3815     # mode.  It turns out that the SunPro C++ compiler does not properly
3816     # handle `-M -o', and we need to detect this.  Also, some Intel
3817     # versions had trouble with output in subdirs
3818     am__obj=sub/conftest.${OBJEXT-o}
3819     am__minus_obj="-o $am__obj"
3820     case $depmode in
3821     gcc)
3822       # This depmode causes a compiler race in universal mode.
3823       test "$am__universal" = false || continue
3824       ;;
3825     nosideeffect)
3826       # after this tag, mechanisms are not by side-effect, so they'll
3827       # only be used when explicitly requested
3828       if test "x$enable_dependency_tracking" = xyes; then
3829         continue
3830       else
3831         break
3832       fi
3833       ;;
3834     msvisualcpp | msvcmsys)
3835       # This compiler won't grok `-c -o', but also, the minuso test has
3836       # not run yet.  These depmodes are late enough in the game, and
3837       # so weak that their functioning should not be impacted.
3838       am__obj=conftest.${OBJEXT-o}
3839       am__minus_obj=
3840       ;;
3841     none) break ;;
3842     esac
3843     if depmode=$depmode \
3844        source=sub/conftest.c object=$am__obj \
3845        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3846        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3847          >/dev/null 2>conftest.err &&
3848        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3849        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3850        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3851        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3852       # icc doesn't choke on unknown options, it will just issue warnings
3853       # or remarks (even with -Werror).  So we grep stderr for any message
3854       # that says an option was ignored or not supported.
3855       # When given -MP, icc 7.0 and 7.1 complain thusly:
3856       #   icc: Command line warning: ignoring option '-M'; no argument required
3857       # The diagnosis changed in icc 8.0:
3858       #   icc: Command line remark: option '-MP' not supported
3859       if (grep 'ignoring option' conftest.err ||
3860           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3861         am_cv_CC_dependencies_compiler_type=$depmode
3862         break
3863       fi
3864     fi
3865   done
3866
3867   cd ..
3868   rm -rf conftest.dir
3869 else
3870   am_cv_CC_dependencies_compiler_type=none
3871 fi
3872
3873 fi
3874 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3875 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3877
3878  if
3879   test "x$enable_dependency_tracking" != xno \
3880   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3881   am__fastdepCC_TRUE=
3882   am__fastdepCC_FALSE='#'
3883 else
3884   am__fastdepCC_TRUE='#'
3885   am__fastdepCC_FALSE=
3886 fi
3887
3888
3889
3890
3891
3892
3893
3894 # By default we simply use the C compiler to build assembly code.
3895
3896 test "${CCAS+set}" = set || CCAS=$CC
3897 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3898
3899
3900
3901 depcc="$CCAS"   am_compiler_list=
3902
3903 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3904 $as_echo_n "checking dependency style of $depcc... " >&6; }
3905 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3906   $as_echo_n "(cached) " >&6
3907 else
3908   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3909   # We make a subdir and do the tests there.  Otherwise we can end up
3910   # making bogus files that we don't know about and never remove.  For
3911   # instance it was reported that on HP-UX the gcc test will end up
3912   # making a dummy file named `D' -- because `-MD' means `put the output
3913   # in D'.
3914   mkdir conftest.dir
3915   # Copy depcomp to subdir because otherwise we won't find it if we're
3916   # using a relative directory.
3917   cp "$am_depcomp" conftest.dir
3918   cd conftest.dir
3919   # We will build objects and dependencies in a subdirectory because
3920   # it helps to detect inapplicable dependency modes.  For instance
3921   # both Tru64's cc and ICC support -MD to output dependencies as a
3922   # side effect of compilation, but ICC will put the dependencies in
3923   # the current directory while Tru64 will put them in the object
3924   # directory.
3925   mkdir sub
3926
3927   am_cv_CCAS_dependencies_compiler_type=none
3928   if test "$am_compiler_list" = ""; then
3929      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3930   fi
3931   am__universal=false
3932
3933
3934   for depmode in $am_compiler_list; do
3935     # Setup a source with many dependencies, because some compilers
3936     # like to wrap large dependency lists on column 80 (with \), and
3937     # we should not choose a depcomp mode which is confused by this.
3938     #
3939     # We need to recreate these files for each test, as the compiler may
3940     # overwrite some of them when testing with obscure command lines.
3941     # This happens at least with the AIX C compiler.
3942     : > sub/conftest.c
3943     for i in 1 2 3 4 5 6; do
3944       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3945       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3946       # Solaris 8's {/usr,}/bin/sh.
3947       touch sub/conftst$i.h
3948     done
3949     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3950
3951     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3952     # mode.  It turns out that the SunPro C++ compiler does not properly
3953     # handle `-M -o', and we need to detect this.  Also, some Intel
3954     # versions had trouble with output in subdirs
3955     am__obj=sub/conftest.${OBJEXT-o}
3956     am__minus_obj="-o $am__obj"
3957     case $depmode in
3958     gcc)
3959       # This depmode causes a compiler race in universal mode.
3960       test "$am__universal" = false || continue
3961       ;;
3962     nosideeffect)
3963       # after this tag, mechanisms are not by side-effect, so they'll
3964       # only be used when explicitly requested
3965       if test "x$enable_dependency_tracking" = xyes; then
3966         continue
3967       else
3968         break
3969       fi
3970       ;;
3971     msvisualcpp | msvcmsys)
3972       # This compiler won't grok `-c -o', but also, the minuso test has
3973       # not run yet.  These depmodes are late enough in the game, and
3974       # so weak that their functioning should not be impacted.
3975       am__obj=conftest.${OBJEXT-o}
3976       am__minus_obj=
3977       ;;
3978     none) break ;;
3979     esac
3980     if depmode=$depmode \
3981        source=sub/conftest.c object=$am__obj \
3982        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3983        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3984          >/dev/null 2>conftest.err &&
3985        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3986        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3987        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3988        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3989       # icc doesn't choke on unknown options, it will just issue warnings
3990       # or remarks (even with -Werror).  So we grep stderr for any message
3991       # that says an option was ignored or not supported.
3992       # When given -MP, icc 7.0 and 7.1 complain thusly:
3993       #   icc: Command line warning: ignoring option '-M'; no argument required
3994       # The diagnosis changed in icc 8.0:
3995       #   icc: Command line remark: option '-MP' not supported
3996       if (grep 'ignoring option' conftest.err ||
3997           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3998         am_cv_CCAS_dependencies_compiler_type=$depmode
3999         break
4000       fi
4001     fi
4002   done
4003
4004   cd ..
4005   rm -rf conftest.dir
4006 else
4007   am_cv_CCAS_dependencies_compiler_type=none
4008 fi
4009
4010 fi
4011 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4012 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4013 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4014
4015  if
4016   test "x$enable_dependency_tracking" != xno \
4017   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4018   am__fastdepCCAS_TRUE=
4019   am__fastdepCCAS_FALSE='#'
4020 else
4021   am__fastdepCCAS_TRUE='#'
4022   am__fastdepCCAS_FALSE=
4023 fi
4024
4025
4026 if test "x$CC" != xcc; then
4027   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4028 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4029 else
4030   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4031 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4032 fi
4033 set dummy $CC; ac_cc=`$as_echo "$2" |
4034                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4035 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4036   $as_echo_n "(cached) " >&6
4037 else
4038   cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 # Make sure it works both with $CC and with simple cc.
4054 # We do the test twice because some compilers refuse to overwrite an
4055 # existing .o file with -o, though they will create one.
4056 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4057 rm -f conftest2.*
4058 if { (case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063 $as_echo "$ac_try_echo") >&5
4064   (eval "$ac_try") 2>&5
4065   ac_status=$?
4066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } &&
4068    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074   (eval "$ac_try") 2>&5
4075   ac_status=$?
4076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); };
4078 then
4079   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4080   if test "x$CC" != xcc; then
4081     # Test first that cc exists at all.
4082     if { ac_try='cc -c conftest.$ac_ext >&5'
4083   { (case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089   (eval "$ac_try") 2>&5
4090   ac_status=$?
4091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; }; then
4093       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4094       rm -f conftest2.*
4095       if { (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); } &&
4105          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111   (eval "$ac_try") 2>&5
4112   ac_status=$?
4113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); };
4115       then
4116         # cc works too.
4117         :
4118       else
4119         # cc exists but doesn't like -o.
4120         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4121       fi
4122     fi
4123   fi
4124 else
4125   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4126 fi
4127 rm -f core conftest*
4128
4129 fi
4130 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4131   { $as_echo "$as_me:$LINENO: result: yes" >&5
4132 $as_echo "yes" >&6; }
4133 else
4134   { $as_echo "$as_me:$LINENO: result: no" >&5
4135 $as_echo "no" >&6; }
4136
4137 cat >>confdefs.h <<\_ACEOF
4138 #define NO_MINUS_C_MINUS_O 1
4139 _ACEOF
4140
4141 fi
4142
4143 # FIXME: we rely on the cache variable name because
4144 # there is no other way.
4145 set dummy $CC
4146 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4147 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4148 if test "$am_t" != yes; then
4149    # Losing compiler, so override with the script.
4150    # FIXME: It is wrong to rewrite CC.
4151    # But if we don't then we get into trouble of one sort or another.
4152    # A longer-term fix would be to have automake use am__CC in this case,
4153    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4154    CC="$am_aux_dir/compile $CC"
4155 fi
4156
4157
4158 case `pwd` in
4159   *\ * | *\     *)
4160     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4161 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4162 esac
4163
4164
4165
4166 macro_version='2.2.6'
4167 macro_revision='1.3012'
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181 ltmain="$ac_aux_dir/ltmain.sh"
4182
4183 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4185 if test "${ac_cv_path_SED+set}" = set; then
4186   $as_echo_n "(cached) " >&6
4187 else
4188             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4189      for ac_i in 1 2 3 4 5 6 7; do
4190        ac_script="$ac_script$as_nl$ac_script"
4191      done
4192      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4193      $as_unset ac_script || ac_script=
4194      if test -z "$SED"; then
4195   ac_path_SED_found=false
4196   # Loop through the user's path and test for each of PROGNAME-LIST
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202   for ac_prog in sed gsed; do
4203     for ac_exec_ext in '' $ac_executable_extensions; do
4204       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4205       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4206 # Check for GNU ac_path_SED and select it if it is found.
4207   # Check for GNU $ac_path_SED
4208 case `"$ac_path_SED" --version 2>&1` in
4209 *GNU*)
4210   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4211 *)
4212   ac_count=0
4213   $as_echo_n 0123456789 >"conftest.in"
4214   while :
4215   do
4216     cat "conftest.in" "conftest.in" >"conftest.tmp"
4217     mv "conftest.tmp" "conftest.in"
4218     cp "conftest.in" "conftest.nl"
4219     $as_echo '' >> "conftest.nl"
4220     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222     ac_count=`expr $ac_count + 1`
4223     if test $ac_count -gt ${ac_path_SED_max-0}; then
4224       # Best one so far, save it but keep looking for a better one
4225       ac_cv_path_SED="$ac_path_SED"
4226       ac_path_SED_max=$ac_count
4227     fi
4228     # 10*(2^10) chars as input seems more than enough
4229     test $ac_count -gt 10 && break
4230   done
4231   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4233
4234       $ac_path_SED_found && break 3
4235     done
4236   done
4237 done
4238 IFS=$as_save_IFS
4239   if test -z "$ac_cv_path_SED"; then
4240     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4241 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4242    { (exit 1); exit 1; }; }
4243   fi
4244 else
4245   ac_cv_path_SED=$SED
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4250 $as_echo "$ac_cv_path_SED" >&6; }
4251  SED="$ac_cv_path_SED"
4252   rm -f conftest.sed
4253
4254 test -z "$SED" && SED=sed
4255 Xsed="$SED -e 1s/^X//"
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4268 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4269 if test "${ac_cv_path_GREP+set}" = set; then
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -z "$GREP"; then
4273   ac_path_GREP_found=false
4274   # Loop through the user's path and test for each of PROGNAME-LIST
4275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280   for ac_prog in grep ggrep; do
4281     for ac_exec_ext in '' $ac_executable_extensions; do
4282       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4283       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4284 # Check for GNU ac_path_GREP and select it if it is found.
4285   # Check for GNU $ac_path_GREP
4286 case `"$ac_path_GREP" --version 2>&1` in
4287 *GNU*)
4288   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4289 *)
4290   ac_count=0
4291   $as_echo_n 0123456789 >"conftest.in"
4292   while :
4293   do
4294     cat "conftest.in" "conftest.in" >"conftest.tmp"
4295     mv "conftest.tmp" "conftest.in"
4296     cp "conftest.in" "conftest.nl"
4297     $as_echo 'GREP' >> "conftest.nl"
4298     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300     ac_count=`expr $ac_count + 1`
4301     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4302       # Best one so far, save it but keep looking for a better one
4303       ac_cv_path_GREP="$ac_path_GREP"
4304       ac_path_GREP_max=$ac_count
4305     fi
4306     # 10*(2^10) chars as input seems more than enough
4307     test $ac_count -gt 10 && break
4308   done
4309   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310 esac
4311
4312       $ac_path_GREP_found && break 3
4313     done
4314   done
4315 done
4316 IFS=$as_save_IFS
4317   if test -z "$ac_cv_path_GREP"; then
4318     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4319 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4320    { (exit 1); exit 1; }; }
4321   fi
4322 else
4323   ac_cv_path_GREP=$GREP
4324 fi
4325
4326 fi
4327 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4328 $as_echo "$ac_cv_path_GREP" >&6; }
4329  GREP="$ac_cv_path_GREP"
4330
4331
4332 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4333 $as_echo_n "checking for egrep... " >&6; }
4334 if test "${ac_cv_path_EGREP+set}" = set; then
4335   $as_echo_n "(cached) " >&6
4336 else
4337   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4338    then ac_cv_path_EGREP="$GREP -E"
4339    else
4340      if test -z "$EGREP"; then
4341   ac_path_EGREP_found=false
4342   # Loop through the user's path and test for each of PROGNAME-LIST
4343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348   for ac_prog in egrep; do
4349     for ac_exec_ext in '' $ac_executable_extensions; do
4350       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4351       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4352 # Check for GNU ac_path_EGREP and select it if it is found.
4353   # Check for GNU $ac_path_EGREP
4354 case `"$ac_path_EGREP" --version 2>&1` in
4355 *GNU*)
4356   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4357 *)
4358   ac_count=0
4359   $as_echo_n 0123456789 >"conftest.in"
4360   while :
4361   do
4362     cat "conftest.in" "conftest.in" >"conftest.tmp"
4363     mv "conftest.tmp" "conftest.in"
4364     cp "conftest.in" "conftest.nl"
4365     $as_echo 'EGREP' >> "conftest.nl"
4366     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368     ac_count=`expr $ac_count + 1`
4369     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4370       # Best one so far, save it but keep looking for a better one
4371       ac_cv_path_EGREP="$ac_path_EGREP"
4372       ac_path_EGREP_max=$ac_count
4373     fi
4374     # 10*(2^10) chars as input seems more than enough
4375     test $ac_count -gt 10 && break
4376   done
4377   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378 esac
4379
4380       $ac_path_EGREP_found && break 3
4381     done
4382   done
4383 done
4384 IFS=$as_save_IFS
4385   if test -z "$ac_cv_path_EGREP"; then
4386     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4387 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4388    { (exit 1); exit 1; }; }
4389   fi
4390 else
4391   ac_cv_path_EGREP=$EGREP
4392 fi
4393
4394    fi
4395 fi
4396 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4397 $as_echo "$ac_cv_path_EGREP" >&6; }
4398  EGREP="$ac_cv_path_EGREP"
4399
4400
4401 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4402 $as_echo_n "checking for fgrep... " >&6; }
4403 if test "${ac_cv_path_FGREP+set}" = set; then
4404   $as_echo_n "(cached) " >&6
4405 else
4406   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4407    then ac_cv_path_FGREP="$GREP -F"
4408    else
4409      if test -z "$FGREP"; then
4410   ac_path_FGREP_found=false
4411   # Loop through the user's path and test for each of PROGNAME-LIST
4412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417   for ac_prog in fgrep; do
4418     for ac_exec_ext in '' $ac_executable_extensions; do
4419       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4420       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4421 # Check for GNU ac_path_FGREP and select it if it is found.
4422   # Check for GNU $ac_path_FGREP
4423 case `"$ac_path_FGREP" --version 2>&1` in
4424 *GNU*)
4425   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4426 *)
4427   ac_count=0
4428   $as_echo_n 0123456789 >"conftest.in"
4429   while :
4430   do
4431     cat "conftest.in" "conftest.in" >"conftest.tmp"
4432     mv "conftest.tmp" "conftest.in"
4433     cp "conftest.in" "conftest.nl"
4434     $as_echo 'FGREP' >> "conftest.nl"
4435     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437     ac_count=`expr $ac_count + 1`
4438     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4439       # Best one so far, save it but keep looking for a better one
4440       ac_cv_path_FGREP="$ac_path_FGREP"
4441       ac_path_FGREP_max=$ac_count
4442     fi
4443     # 10*(2^10) chars as input seems more than enough
4444     test $ac_count -gt 10 && break
4445   done
4446   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4447 esac
4448
4449       $ac_path_FGREP_found && break 3
4450     done
4451   done
4452 done
4453 IFS=$as_save_IFS
4454   if test -z "$ac_cv_path_FGREP"; then
4455     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4456 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4457    { (exit 1); exit 1; }; }
4458   fi
4459 else
4460   ac_cv_path_FGREP=$FGREP
4461 fi
4462
4463    fi
4464 fi
4465 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4466 $as_echo "$ac_cv_path_FGREP" >&6; }
4467  FGREP="$ac_cv_path_FGREP"
4468
4469
4470 test -z "$GREP" && GREP=grep
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490 # Check whether --with-gnu-ld was given.
4491 if test "${with_gnu_ld+set}" = set; then
4492   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4493 else
4494   with_gnu_ld=no
4495 fi
4496
4497 ac_prog=ld
4498 if test "$GCC" = yes; then
4499   # Check if gcc -print-prog-name=ld gives a path.
4500   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4501 $as_echo_n "checking for ld used by $CC... " >&6; }
4502   case $host in
4503   *-*-mingw*)
4504     # gcc leaves a trailing carriage return which upsets mingw
4505     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4506   *)
4507     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4508   esac
4509   case $ac_prog in
4510     # Accept absolute paths.
4511     [\\/]* | ?:[\\/]*)
4512       re_direlt='/[^/][^/]*/\.\./'
4513       # Canonicalize the pathname of ld
4514       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4515       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4516         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4517       done
4518       test -z "$LD" && LD="$ac_prog"
4519       ;;
4520   "")
4521     # If it fails, then pretend we aren't using GCC.
4522     ac_prog=ld
4523     ;;
4524   *)
4525     # If it is relative, then search for the first ld in PATH.
4526     with_gnu_ld=unknown
4527     ;;
4528   esac
4529 elif test "$with_gnu_ld" = yes; then
4530   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4531 $as_echo_n "checking for GNU ld... " >&6; }
4532 else
4533   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4534 $as_echo_n "checking for non-GNU ld... " >&6; }
4535 fi
4536 if test "${lt_cv_path_LD+set}" = set; then
4537   $as_echo_n "(cached) " >&6
4538 else
4539   if test -z "$LD"; then
4540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4541   for ac_dir in $PATH; do
4542     IFS="$lt_save_ifs"
4543     test -z "$ac_dir" && ac_dir=.
4544     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4545       lt_cv_path_LD="$ac_dir/$ac_prog"
4546       # Check to see if the program is GNU ld.  I'd rather use --version,
4547       # but apparently some variants of GNU ld only accept -v.
4548       # Break only if it was the GNU/non-GNU ld that we prefer.
4549       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4550       *GNU* | *'with BFD'*)
4551         test "$with_gnu_ld" != no && break
4552         ;;
4553       *)
4554         test "$with_gnu_ld" != yes && break
4555         ;;
4556       esac
4557     fi
4558   done
4559   IFS="$lt_save_ifs"
4560 else
4561   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4562 fi
4563 fi
4564
4565 LD="$lt_cv_path_LD"
4566 if test -n "$LD"; then
4567   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4568 $as_echo "$LD" >&6; }
4569 else
4570   { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4574 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4575    { (exit 1); exit 1; }; }
4576 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4578 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4579   $as_echo_n "(cached) " >&6
4580 else
4581   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4582 case `$LD -v 2>&1 </dev/null` in
4583 *GNU* | *'with BFD'*)
4584   lt_cv_prog_gnu_ld=yes
4585   ;;
4586 *)
4587   lt_cv_prog_gnu_ld=no
4588   ;;
4589 esac
4590 fi
4591 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4593 with_gnu_ld=$lt_cv_prog_gnu_ld
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4605 if test "${lt_cv_path_NM+set}" = set; then
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if test -n "$NM"; then
4609   # Let the user override the test.
4610   lt_cv_path_NM="$NM"
4611 else
4612   lt_nm_to_check="${ac_tool_prefix}nm"
4613   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614     lt_nm_to_check="$lt_nm_to_check nm"
4615   fi
4616   for lt_tmp_nm in $lt_nm_to_check; do
4617     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4619       IFS="$lt_save_ifs"
4620       test -z "$ac_dir" && ac_dir=.
4621       tmp_nm="$ac_dir/$lt_tmp_nm"
4622       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623         # Check to see if the nm accepts a BSD-compat flag.
4624         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625         #   nm: unknown option "B" ignored
4626         # Tru64's nm complains that /dev/null is an invalid object file
4627         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628         */dev/null* | *'Invalid file or object type'*)
4629           lt_cv_path_NM="$tmp_nm -B"
4630           break
4631           ;;
4632         *)
4633           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634           */dev/null*)
4635             lt_cv_path_NM="$tmp_nm -p"
4636             break
4637             ;;
4638           *)
4639             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640             continue # so that we can try to find one that supports BSD flags
4641             ;;
4642           esac
4643           ;;
4644         esac
4645       fi
4646     done
4647     IFS="$lt_save_ifs"
4648   done
4649   : ${lt_cv_path_NM=no}
4650 fi
4651 fi
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4653 $as_echo "$lt_cv_path_NM" >&6; }
4654 if test "$lt_cv_path_NM" != "no"; then
4655   NM="$lt_cv_path_NM"
4656 else
4657   # Didn't find any BSD compatible name lister, look for dumpbin.
4658   if test -n "$ac_tool_prefix"; then
4659   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4660   do
4661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4666   $as_echo_n "(cached) " >&6
4667 else
4668   if test -n "$DUMPBIN"; then
4669   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4679     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 DUMPBIN=$ac_cv_prog_DUMPBIN
4689 if test -n "$DUMPBIN"; then
4690   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4691 $as_echo "$DUMPBIN" >&6; }
4692 else
4693   { $as_echo "$as_me:$LINENO: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697
4698     test -n "$DUMPBIN" && break
4699   done
4700 fi
4701 if test -z "$DUMPBIN"; then
4702   ac_ct_DUMPBIN=$DUMPBIN
4703   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4704 do
4705   # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4710   $as_echo_n "(cached) " >&6
4711 else
4712   if test -n "$ac_ct_DUMPBIN"; then
4713   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720   for ac_exec_ext in '' $ac_executable_extensions; do
4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4723     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724     break 2
4725   fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi
4731 fi
4732 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4733 if test -n "$ac_ct_DUMPBIN"; then
4734   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4735 $as_echo "$ac_ct_DUMPBIN" >&6; }
4736 else
4737   { $as_echo "$as_me:$LINENO: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4740
4741
4742   test -n "$ac_ct_DUMPBIN" && break
4743 done
4744
4745   if test "x$ac_ct_DUMPBIN" = x; then
4746     DUMPBIN=":"
4747   else
4748     case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4753 esac
4754     DUMPBIN=$ac_ct_DUMPBIN
4755   fi
4756 fi
4757
4758
4759   if test "$DUMPBIN" != ":"; then
4760     NM="$DUMPBIN"
4761   fi
4762 fi
4763 test -z "$NM" && NM=nm
4764
4765
4766
4767
4768
4769
4770 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4771 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4772 if test "${lt_cv_nm_interface+set}" = set; then
4773   $as_echo_n "(cached) " >&6
4774 else
4775   lt_cv_nm_interface="BSD nm"
4776   echo "int some_variable = 0;" > conftest.$ac_ext
4777   (eval echo "\"\$as_me:4777: $ac_compile\"" >&5)
4778   (eval "$ac_compile" 2>conftest.err)
4779   cat conftest.err >&5
4780   (eval echo "\"\$as_me:4780: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4781   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4782   cat conftest.err >&5
4783   (eval echo "\"\$as_me:4783: output\"" >&5)
4784   cat conftest.out >&5
4785   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4786     lt_cv_nm_interface="MS dumpbin"
4787   fi
4788   rm -f conftest*
4789 fi
4790 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4791 $as_echo "$lt_cv_nm_interface" >&6; }
4792
4793 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4794 $as_echo_n "checking whether ln -s works... " >&6; }
4795 LN_S=$as_ln_s
4796 if test "$LN_S" = "ln -s"; then
4797   { $as_echo "$as_me:$LINENO: result: yes" >&5
4798 $as_echo "yes" >&6; }
4799 else
4800   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4801 $as_echo "no, using $LN_S" >&6; }
4802 fi
4803
4804 # find the maximum length of command line arguments
4805 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4806 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4807 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4808   $as_echo_n "(cached) " >&6
4809 else
4810     i=0
4811   teststring="ABCD"
4812
4813   case $build_os in
4814   msdosdjgpp*)
4815     # On DJGPP, this test can blow up pretty badly due to problems in libc
4816     # (any single argument exceeding 2000 bytes causes a buffer overrun
4817     # during glob expansion).  Even if it were fixed, the result of this
4818     # check would be larger than it should be.
4819     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4820     ;;
4821
4822   gnu*)
4823     # Under GNU Hurd, this test is not required because there is
4824     # no limit to the length of command line arguments.
4825     # Libtool will interpret -1 as no limit whatsoever
4826     lt_cv_sys_max_cmd_len=-1;
4827     ;;
4828
4829   cygwin* | mingw* | cegcc*)
4830     # On Win9x/ME, this test blows up -- it succeeds, but takes
4831     # about 5 minutes as the teststring grows exponentially.
4832     # Worse, since 9x/ME are not pre-emptively multitasking,
4833     # you end up with a "frozen" computer, even though with patience
4834     # the test eventually succeeds (with a max line length of 256k).
4835     # Instead, let's just punt: use the minimum linelength reported by
4836     # all of the supported platforms: 8192 (on NT/2K/XP).
4837     lt_cv_sys_max_cmd_len=8192;
4838     ;;
4839
4840   amigaos*)
4841     # On AmigaOS with pdksh, this test takes hours, literally.
4842     # So we just punt and use a minimum line length of 8192.
4843     lt_cv_sys_max_cmd_len=8192;
4844     ;;
4845
4846   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4847     # This has been around since 386BSD, at least.  Likely further.
4848     if test -x /sbin/sysctl; then
4849       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4850     elif test -x /usr/sbin/sysctl; then
4851       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4852     else
4853       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4854     fi
4855     # And add a safety zone
4856     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4857     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4858     ;;
4859
4860   interix*)
4861     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4862     lt_cv_sys_max_cmd_len=196608
4863     ;;
4864
4865   osf*)
4866     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868     # nice to cause kernel panics so lets avoid the loop below.
4869     # First set a reasonable default.
4870     lt_cv_sys_max_cmd_len=16384
4871     #
4872     if test -x /sbin/sysconfig; then
4873       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4875       esac
4876     fi
4877     ;;
4878   sco3.2v5*)
4879     lt_cv_sys_max_cmd_len=102400
4880     ;;
4881   sysv5* | sco5v6* | sysv4.2uw2*)
4882     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883     if test -n "$kargmax"; then
4884       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4885     else
4886       lt_cv_sys_max_cmd_len=32768
4887     fi
4888     ;;
4889   *)
4890     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891     if test -n "$lt_cv_sys_max_cmd_len"; then
4892       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894     else
4895       # Make teststring a little bigger before we do anything with it.
4896       # a 1K string should be a reasonable start.
4897       for i in 1 2 3 4 5 6 7 8 ; do
4898         teststring=$teststring$teststring
4899       done
4900       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901       # If test is not a shell built-in, we'll probably end up computing a
4902       # maximum length that is only half of the actual maximum length, but
4903       # we can't tell.
4904       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4905                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4906               test $i != 17 # 1/2 MB should be enough
4907       do
4908         i=`expr $i + 1`
4909         teststring=$teststring$teststring
4910       done
4911       # Only check the string length outside the loop.
4912       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4913       teststring=
4914       # Add a significant safety factor because C++ compilers can tack on
4915       # massive amounts of additional arguments before passing them to the
4916       # linker.  It appears as though 1/2 is a usable value.
4917       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4918     fi
4919     ;;
4920   esac
4921
4922 fi
4923
4924 if test -n $lt_cv_sys_max_cmd_len ; then
4925   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4926 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4927 else
4928   { $as_echo "$as_me:$LINENO: result: none" >&5
4929 $as_echo "none" >&6; }
4930 fi
4931 max_cmd_len=$lt_cv_sys_max_cmd_len
4932
4933
4934
4935
4936
4937
4938 : ${CP="cp -f"}
4939 : ${MV="mv -f"}
4940 : ${RM="rm -f"}
4941
4942 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4943 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4944 # Try some XSI features
4945 xsi_shell=no
4946 ( _lt_dummy="a/b/c"
4947   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4948       = c,a/b,, \
4949     && eval 'test $(( 1 + 1 )) -eq 2 \
4950     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4951   && xsi_shell=yes
4952 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4953 $as_echo "$xsi_shell" >&6; }
4954
4955
4956 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4957 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4958 lt_shell_append=no
4959 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4960     >/dev/null 2>&1 \
4961   && lt_shell_append=yes
4962 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4963 $as_echo "$lt_shell_append" >&6; }
4964
4965
4966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4967   lt_unset=unset
4968 else
4969   lt_unset=false
4970 fi
4971
4972
4973
4974
4975
4976 # test EBCDIC or ASCII
4977 case `echo X|tr X '\101'` in
4978  A) # ASCII based system
4979     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4980   lt_SP2NL='tr \040 \012'
4981   lt_NL2SP='tr \015\012 \040\040'
4982   ;;
4983  *) # EBCDIC based system
4984   lt_SP2NL='tr \100 \n'
4985   lt_NL2SP='tr \r\n \100\100'
4986   ;;
4987 esac
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4998 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4999 if test "${lt_cv_ld_reload_flag+set}" = set; then
5000   $as_echo_n "(cached) " >&6
5001 else
5002   lt_cv_ld_reload_flag='-r'
5003 fi
5004 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5005 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5006 reload_flag=$lt_cv_ld_reload_flag
5007 case $reload_flag in
5008 "" | " "*) ;;
5009 *) reload_flag=" $reload_flag" ;;
5010 esac
5011 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5012 case $host_os in
5013   darwin*)
5014     if test "$GCC" = yes; then
5015       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5016     else
5017       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5018     fi
5019     ;;
5020 esac
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 if test -n "$ac_tool_prefix"; then
5031   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5036   $as_echo_n "(cached) " >&6
5037 else
5038   if test -n "$OBJDUMP"; then
5039   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046   for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5049     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 OBJDUMP=$ac_cv_prog_OBJDUMP
5059 if test -n "$OBJDUMP"; then
5060   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5061 $as_echo "$OBJDUMP" >&6; }
5062 else
5063   { $as_echo "$as_me:$LINENO: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 fi
5069 if test -z "$ac_cv_prog_OBJDUMP"; then
5070   ac_ct_OBJDUMP=$OBJDUMP
5071   # Extract the first word of "objdump", so it can be a program name with args.
5072 set dummy objdump; ac_word=$2
5073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5076   $as_echo_n "(cached) " >&6
5077 else
5078   if test -n "$ac_ct_OBJDUMP"; then
5079   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086   for ac_exec_ext in '' $ac_executable_extensions; do
5087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5099 if test -n "$ac_ct_OBJDUMP"; then
5100   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5101 $as_echo "$ac_ct_OBJDUMP" >&6; }
5102 else
5103   { $as_echo "$as_me:$LINENO: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107   if test "x$ac_ct_OBJDUMP" = x; then
5108     OBJDUMP="false"
5109   else
5110     case $cross_compiling:$ac_tool_warned in
5111 yes:)
5112 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116     OBJDUMP=$ac_ct_OBJDUMP
5117   fi
5118 else
5119   OBJDUMP="$ac_cv_prog_OBJDUMP"
5120 fi
5121
5122 test -z "$OBJDUMP" && OBJDUMP=objdump
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5133 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5134 if test "${lt_cv_deplibs_check_method+set}" = set; then
5135   $as_echo_n "(cached) " >&6
5136 else
5137   lt_cv_file_magic_cmd='$MAGIC_CMD'
5138 lt_cv_file_magic_test_file=
5139 lt_cv_deplibs_check_method='unknown'
5140 # Need to set the preceding variable on all platforms that support
5141 # interlibrary dependencies.
5142 # 'none' -- dependencies not supported.
5143 # `unknown' -- same as none, but documents that we really don't know.
5144 # 'pass_all' -- all dependencies passed with no checks.
5145 # 'test_compile' -- check by making test program.
5146 # 'file_magic [[regex]]' -- check by looking for files in library path
5147 # which responds to the $file_magic_cmd with a given extended regex.
5148 # If you have `file' or equivalent on your system and you're not sure
5149 # whether `pass_all' will *always* work, you probably want this one.
5150
5151 case $host_os in
5152 aix[4-9]*)
5153   lt_cv_deplibs_check_method=pass_all
5154   ;;
5155
5156 beos*)
5157   lt_cv_deplibs_check_method=pass_all
5158   ;;
5159
5160 bsdi[45]*)
5161   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5162   lt_cv_file_magic_cmd='/usr/bin/file -L'
5163   lt_cv_file_magic_test_file=/shlib/libc.so
5164   ;;
5165
5166 cygwin*)
5167   # func_win32_libid is a shell function defined in ltmain.sh
5168   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5169   lt_cv_file_magic_cmd='func_win32_libid'
5170   ;;
5171
5172 mingw* | pw32*)
5173   # Base MSYS/MinGW do not provide the 'file' command needed by
5174   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5175   # unless we find 'file', for example because we are cross-compiling.
5176   if ( file / ) >/dev/null 2>&1; then
5177     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178     lt_cv_file_magic_cmd='func_win32_libid'
5179   else
5180     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5181     lt_cv_file_magic_cmd='$OBJDUMP -f'
5182   fi
5183   ;;
5184
5185 cegcc)
5186   # use the weaker test based on 'objdump'. See mingw*.
5187   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5188   lt_cv_file_magic_cmd='$OBJDUMP -f'
5189   ;;
5190
5191 darwin* | rhapsody*)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 freebsd* | dragonfly*)
5196   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197     case $host_cpu in
5198     i*86 )
5199       # Not sure whether the presence of OpenBSD here was a mistake.
5200       # Let's accept both of them until this is cleared up.
5201       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5202       lt_cv_file_magic_cmd=/usr/bin/file
5203       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5204       ;;
5205     esac
5206   else
5207     lt_cv_deplibs_check_method=pass_all
5208   fi
5209   ;;
5210
5211 gnu*)
5212   lt_cv_deplibs_check_method=pass_all
5213   ;;
5214
5215 hpux10.20* | hpux11*)
5216   lt_cv_file_magic_cmd=/usr/bin/file
5217   case $host_cpu in
5218   ia64*)
5219     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5220     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5221     ;;
5222   hppa*64*)
5223     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]'
5224     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5225     ;;
5226   *)
5227     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5228     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5229     ;;
5230   esac
5231   ;;
5232
5233 interix[3-9]*)
5234   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5235   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5236   ;;
5237
5238 irix5* | irix6* | nonstopux*)
5239   case $LD in
5240   *-32|*"-32 ") libmagic=32-bit;;
5241   *-n32|*"-n32 ") libmagic=N32;;
5242   *-64|*"-64 ") libmagic=64-bit;;
5243   *) libmagic=never-match;;
5244   esac
5245   lt_cv_deplibs_check_method=pass_all
5246   ;;
5247
5248 # This must be Linux ELF.
5249 linux* | k*bsd*-gnu)
5250   lt_cv_deplibs_check_method=pass_all
5251   ;;
5252
5253 netbsd*)
5254   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5255     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5256   else
5257     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5258   fi
5259   ;;
5260
5261 newos6*)
5262   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5263   lt_cv_file_magic_cmd=/usr/bin/file
5264   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5265   ;;
5266
5267 *nto* | *qnx*)
5268   lt_cv_deplibs_check_method=pass_all
5269   ;;
5270
5271 openbsd*)
5272   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5273     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5274   else
5275     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5276   fi
5277   ;;
5278
5279 osf3* | osf4* | osf5*)
5280   lt_cv_deplibs_check_method=pass_all
5281   ;;
5282
5283 rdos*)
5284   lt_cv_deplibs_check_method=pass_all
5285   ;;
5286
5287 solaris*)
5288   lt_cv_deplibs_check_method=pass_all
5289   ;;
5290
5291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5294
5295 sysv4 | sysv4.3*)
5296   case $host_vendor in
5297   motorola)
5298     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]'
5299     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5300     ;;
5301   ncr)
5302     lt_cv_deplibs_check_method=pass_all
5303     ;;
5304   sequent)
5305     lt_cv_file_magic_cmd='/bin/file'
5306     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5307     ;;
5308   sni)
5309     lt_cv_file_magic_cmd='/bin/file'
5310     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5311     lt_cv_file_magic_test_file=/lib/libc.so
5312     ;;
5313   siemens)
5314     lt_cv_deplibs_check_method=pass_all
5315     ;;
5316   pc)
5317     lt_cv_deplibs_check_method=pass_all
5318     ;;
5319   esac
5320   ;;
5321
5322 tpf*)
5323   lt_cv_deplibs_check_method=pass_all
5324   ;;
5325 esac
5326
5327 fi
5328 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5329 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5330 file_magic_cmd=$lt_cv_file_magic_cmd
5331 deplibs_check_method=$lt_cv_deplibs_check_method
5332 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345 if test -n "$ac_tool_prefix"; then
5346   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}ar; ac_word=$2
5348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_AR+set}" = set; then
5351   $as_echo_n "(cached) " >&6
5352 else
5353   if test -n "$AR"; then
5354   ac_cv_prog_AR="$AR" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361   for ac_exec_ext in '' $ac_executable_extensions; do
5362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363     ac_cv_prog_AR="${ac_tool_prefix}ar"
5364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368 done
5369 IFS=$as_save_IFS
5370
5371 fi
5372 fi
5373 AR=$ac_cv_prog_AR
5374 if test -n "$AR"; then
5375   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5376 $as_echo "$AR" >&6; }
5377 else
5378   { $as_echo "$as_me:$LINENO: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383 fi
5384 if test -z "$ac_cv_prog_AR"; then
5385   ac_ct_AR=$AR
5386   # Extract the first word of "ar", so it can be a program name with args.
5387 set dummy ar; ac_word=$2
5388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test -n "$ac_ct_AR"; then
5394   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_prog_ac_ct_AR="ar"
5404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5414 if test -n "$ac_ct_AR"; then
5415   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5416 $as_echo "$ac_ct_AR" >&6; }
5417 else
5418   { $as_echo "$as_me:$LINENO: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422   if test "x$ac_ct_AR" = x; then
5423     AR="false"
5424   else
5425     case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431     AR=$ac_ct_AR
5432   fi
5433 else
5434   AR="$ac_cv_prog_AR"
5435 fi
5436
5437 test -z "$AR" && AR=ar
5438 test -z "$AR_FLAGS" && AR_FLAGS=cru
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 if test -n "$ac_tool_prefix"; then
5451   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5452 set dummy ${ac_tool_prefix}strip; ac_word=$2
5453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if test "${ac_cv_prog_STRIP+set}" = set; then
5456   $as_echo_n "(cached) " >&6
5457 else
5458   if test -n "$STRIP"; then
5459   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466   for ac_exec_ext in '' $ac_executable_extensions; do
5467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5469     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 STRIP=$ac_cv_prog_STRIP
5479 if test -n "$STRIP"; then
5480   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5481 $as_echo "$STRIP" >&6; }
5482 else
5483   { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 fi
5489 if test -z "$ac_cv_prog_STRIP"; then
5490   ac_ct_STRIP=$STRIP
5491   # Extract the first word of "strip", so it can be a program name with args.
5492 set dummy strip; ac_word=$2
5493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5496   $as_echo_n "(cached) " >&6
5497 else
5498   if test -n "$ac_ct_STRIP"; then
5499   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506   for ac_exec_ext in '' $ac_executable_extensions; do
5507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508     ac_cv_prog_ac_ct_STRIP="strip"
5509     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5519 if test -n "$ac_ct_STRIP"; then
5520   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5521 $as_echo "$ac_ct_STRIP" >&6; }
5522 else
5523   { $as_echo "$as_me:$LINENO: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527   if test "x$ac_ct_STRIP" = x; then
5528     STRIP=":"
5529   else
5530     case $cross_compiling:$ac_tool_warned in
5531 yes:)
5532 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536     STRIP=$ac_ct_STRIP
5537   fi
5538 else
5539   STRIP="$ac_cv_prog_STRIP"
5540 fi
5541
5542 test -z "$STRIP" && STRIP=:
5543
5544
5545
5546
5547
5548
5549 if test -n "$ac_tool_prefix"; then
5550   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5551 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_prog_RANLIB+set}" = set; then
5555   $as_echo_n "(cached) " >&6
5556 else
5557   if test -n "$RANLIB"; then
5558   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_exec_ext in '' $ac_executable_extensions; do
5566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5568     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575 fi
5576 fi
5577 RANLIB=$ac_cv_prog_RANLIB
5578 if test -n "$RANLIB"; then
5579   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5580 $as_echo "$RANLIB" >&6; }
5581 else
5582   { $as_echo "$as_me:$LINENO: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585
5586
5587 fi
5588 if test -z "$ac_cv_prog_RANLIB"; then
5589   ac_ct_RANLIB=$RANLIB
5590   # Extract the first word of "ranlib", so it can be a program name with args.
5591 set dummy ranlib; ac_word=$2
5592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5595   $as_echo_n "(cached) " >&6
5596 else
5597   if test -n "$ac_ct_RANLIB"; then
5598   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605   for ac_exec_ext in '' $ac_executable_extensions; do
5606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607     ac_cv_prog_ac_ct_RANLIB="ranlib"
5608     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5618 if test -n "$ac_ct_RANLIB"; then
5619   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5620 $as_echo "$ac_ct_RANLIB" >&6; }
5621 else
5622   { $as_echo "$as_me:$LINENO: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626   if test "x$ac_ct_RANLIB" = x; then
5627     RANLIB=":"
5628   else
5629     case $cross_compiling:$ac_tool_warned in
5630 yes:)
5631 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5633 ac_tool_warned=yes ;;
5634 esac
5635     RANLIB=$ac_ct_RANLIB
5636   fi
5637 else
5638   RANLIB="$ac_cv_prog_RANLIB"
5639 fi
5640
5641 test -z "$RANLIB" && RANLIB=:
5642
5643
5644
5645
5646
5647
5648 # Determine commands to create old-style static archives.
5649 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5650 old_postinstall_cmds='chmod 644 $oldlib'
5651 old_postuninstall_cmds=
5652
5653 if test -n "$RANLIB"; then
5654   case $host_os in
5655   openbsd*)
5656     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5657     ;;
5658   *)
5659     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5660     ;;
5661   esac
5662   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5663 fi
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 # If no C compiler was specified, use CC.
5699 LTCC=${LTCC-"$CC"}
5700
5701 # If no C compiler flags were specified, use CFLAGS.
5702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5703
5704 # Allow CC to be a program name with arguments.
5705 compiler=$CC
5706
5707
5708 # Check for command to grab the raw symbol name followed by C symbol from nm.
5709 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5710 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5711 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5712   $as_echo_n "(cached) " >&6
5713 else
5714
5715 # These are sane defaults that work on at least a few old systems.
5716 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5717
5718 # Character class describing NM global symbol codes.
5719 symcode='[BCDEGRST]'
5720
5721 # Regexp to match symbols that can be accessed directly from C.
5722 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5723
5724 # Define system-specific variables.
5725 case $host_os in
5726 aix*)
5727   symcode='[BCDT]'
5728   ;;
5729 cygwin* | mingw* | pw32* | cegcc*)
5730   symcode='[ABCDGISTW]'
5731   ;;
5732 hpux*)
5733   if test "$host_cpu" = ia64; then
5734     symcode='[ABCDEGRST]'
5735   fi
5736   ;;
5737 irix* | nonstopux*)
5738   symcode='[BCDEGRST]'
5739   ;;
5740 osf*)
5741   symcode='[BCDEGQRST]'
5742   ;;
5743 solaris*)
5744   symcode='[BDRT]'
5745   ;;
5746 sco3.2v5*)
5747   symcode='[DT]'
5748   ;;
5749 sysv4.2uw2*)
5750   symcode='[DT]'
5751   ;;
5752 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5753   symcode='[ABDT]'
5754   ;;
5755 sysv4)
5756   symcode='[DFNSTU]'
5757   ;;
5758 esac
5759
5760 # If we're using GNU nm, then use its standard symbol codes.
5761 case `$NM -V 2>&1` in
5762 *GNU* | *'with BFD'*)
5763   symcode='[ABCDGIRSTW]' ;;
5764 esac
5765
5766 # Transform an extracted symbol line into a proper C declaration.
5767 # Some systems (esp. on ia64) link data and code symbols differently,
5768 # so use this general approach.
5769 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5770
5771 # Transform an extracted symbol line into symbol name and symbol address
5772 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5773 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'"
5774
5775 # Handle CRLF in mingw tool chain
5776 opt_cr=
5777 case $build_os in
5778 mingw*)
5779   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5780   ;;
5781 esac
5782
5783 # Try without a prefix underscore, then with it.
5784 for ac_symprfx in "" "_"; do
5785
5786   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5787   symxfrm="\\1 $ac_symprfx\\2 \\2"
5788
5789   # Write the raw and C identifiers.
5790   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5791     # Fake it for dumpbin and say T for any non-static function
5792     # and D for any global variable.
5793     # Also find C++ and __fastcall symbols from MSVC++,
5794     # which start with @ or ?.
5795     lt_cv_sys_global_symbol_pipe="$AWK '"\
5796 "     {last_section=section; section=\$ 3};"\
5797 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5798 "     \$ 0!~/External *\|/{next};"\
5799 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5800 "     {if(hide[section]) next};"\
5801 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5802 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5803 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5804 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5805 "     ' prfx=^$ac_symprfx"
5806   else
5807     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5808   fi
5809
5810   # Check to see that the pipe works correctly.
5811   pipe_works=no
5812
5813   rm -f conftest*
5814   cat > conftest.$ac_ext <<_LT_EOF
5815 #ifdef __cplusplus
5816 extern "C" {
5817 #endif
5818 char nm_test_var;
5819 void nm_test_func(void);
5820 void nm_test_func(void){}
5821 #ifdef __cplusplus
5822 }
5823 #endif
5824 int main(){nm_test_var='a';nm_test_func();return(0);}
5825 _LT_EOF
5826
5827   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828   (eval $ac_compile) 2>&5
5829   ac_status=$?
5830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; then
5832     # Now try to grab the symbols.
5833     nlist=conftest.nm
5834     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5835   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5836   ac_status=$?
5837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } && test -s "$nlist"; then
5839       # Try sorting and uniquifying the output.
5840       if sort "$nlist" | uniq > "$nlist"T; then
5841         mv -f "$nlist"T "$nlist"
5842       else
5843         rm -f "$nlist"T
5844       fi
5845
5846       # Make sure that we snagged all the symbols we need.
5847       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5848         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5849           cat <<_LT_EOF > conftest.$ac_ext
5850 #ifdef __cplusplus
5851 extern "C" {
5852 #endif
5853
5854 _LT_EOF
5855           # Now generate the symbol file.
5856           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5857
5858           cat <<_LT_EOF >> conftest.$ac_ext
5859
5860 /* The mapping between symbol names and symbols.  */
5861 const struct {
5862   const char *name;
5863   void       *address;
5864 }
5865 lt__PROGRAM__LTX_preloaded_symbols[] =
5866 {
5867   { "@PROGRAM@", (void *) 0 },
5868 _LT_EOF
5869           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5870           cat <<\_LT_EOF >> conftest.$ac_ext
5871   {0, (void *) 0}
5872 };
5873
5874 /* This works around a problem in FreeBSD linker */
5875 #ifdef FREEBSD_WORKAROUND
5876 static const void *lt_preloaded_setup() {
5877   return lt__PROGRAM__LTX_preloaded_symbols;
5878 }
5879 #endif
5880
5881 #ifdef __cplusplus
5882 }
5883 #endif
5884 _LT_EOF
5885           # Now try linking the two files.
5886           mv conftest.$ac_objext conftstm.$ac_objext
5887           lt_save_LIBS="$LIBS"
5888           lt_save_CFLAGS="$CFLAGS"
5889           LIBS="conftstm.$ac_objext"
5890           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5891           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892   (eval $ac_link) 2>&5
5893   ac_status=$?
5894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5896             pipe_works=yes
5897           fi
5898           LIBS="$lt_save_LIBS"
5899           CFLAGS="$lt_save_CFLAGS"
5900         else
5901           echo "cannot find nm_test_func in $nlist" >&5
5902         fi
5903       else
5904         echo "cannot find nm_test_var in $nlist" >&5
5905       fi
5906     else
5907       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5908     fi
5909   else
5910     echo "$progname: failed program was:" >&5
5911     cat conftest.$ac_ext >&5
5912   fi
5913   rm -rf conftest* conftst*
5914
5915   # Do not use the global_symbol_pipe unless it works.
5916   if test "$pipe_works" = yes; then
5917     break
5918   else
5919     lt_cv_sys_global_symbol_pipe=
5920   fi
5921 done
5922
5923 fi
5924
5925 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5926   lt_cv_sys_global_symbol_to_cdecl=
5927 fi
5928 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5929   { $as_echo "$as_me:$LINENO: result: failed" >&5
5930 $as_echo "failed" >&6; }
5931 else
5932   { $as_echo "$as_me:$LINENO: result: ok" >&5
5933 $as_echo "ok" >&6; }
5934 fi
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 # Check whether --enable-libtool-lock was given.
5959 if test "${enable_libtool_lock+set}" = set; then
5960   enableval=$enable_libtool_lock;
5961 fi
5962
5963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5964
5965 # Some flags need to be propagated to the compiler or linker for good
5966 # libtool support.
5967 case $host in
5968 ia64-*-hpux*)
5969   # Find out which ABI we are using.
5970   echo 'int i;' > conftest.$ac_ext
5971   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972   (eval $ac_compile) 2>&5
5973   ac_status=$?
5974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; then
5976     case `/usr/bin/file conftest.$ac_objext` in
5977       *ELF-32*)
5978         HPUX_IA64_MODE="32"
5979         ;;
5980       *ELF-64*)
5981         HPUX_IA64_MODE="64"
5982         ;;
5983     esac
5984   fi
5985   rm -rf conftest*
5986   ;;
5987 *-*-irix6*)
5988   # Find out which ABI we are using.
5989   echo '#line 5989 "configure"' > conftest.$ac_ext
5990   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991   (eval $ac_compile) 2>&5
5992   ac_status=$?
5993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; then
5995     if test "$lt_cv_prog_gnu_ld" = yes; then
5996       case `/usr/bin/file conftest.$ac_objext` in
5997         *32-bit*)
5998           LD="${LD-ld} -melf32bsmip"
5999           ;;
6000         *N32*)
6001           LD="${LD-ld} -melf32bmipn32"
6002           ;;
6003         *64-bit*)
6004           LD="${LD-ld} -melf64bmip"
6005         ;;
6006       esac
6007     else
6008       case `/usr/bin/file conftest.$ac_objext` in
6009         *32-bit*)
6010           LD="${LD-ld} -32"
6011           ;;
6012         *N32*)
6013           LD="${LD-ld} -n32"
6014           ;;
6015         *64-bit*)
6016           LD="${LD-ld} -64"
6017           ;;
6018       esac
6019     fi
6020   fi
6021   rm -rf conftest*
6022   ;;
6023
6024 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6025 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6026   # Find out which ABI we are using.
6027   echo 'int i;' > conftest.$ac_ext
6028   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029   (eval $ac_compile) 2>&5
6030   ac_status=$?
6031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; then
6033     case `/usr/bin/file conftest.o` in
6034       *32-bit*)
6035         case $host in
6036           x86_64-*kfreebsd*-gnu)
6037             LD="${LD-ld} -m elf_i386_fbsd"
6038             ;;
6039           x86_64-*linux*)
6040             LD="${LD-ld} -m elf_i386"
6041             ;;
6042           ppc64-*linux*|powerpc64-*linux*)
6043             LD="${LD-ld} -m elf32ppclinux"
6044             ;;
6045           s390x-*linux*)
6046             LD="${LD-ld} -m elf_s390"
6047             ;;
6048           sparc64-*linux*)
6049             LD="${LD-ld} -m elf32_sparc"
6050             ;;
6051         esac
6052         ;;
6053       *64-bit*)
6054         case $host in
6055           x86_64-*kfreebsd*-gnu)
6056             LD="${LD-ld} -m elf_x86_64_fbsd"
6057             ;;
6058           x86_64-*linux*)
6059             LD="${LD-ld} -m elf_x86_64"
6060             ;;
6061           ppc*-*linux*|powerpc*-*linux*)
6062             LD="${LD-ld} -m elf64ppc"
6063             ;;
6064           s390*-*linux*|s390*-*tpf*)
6065             LD="${LD-ld} -m elf64_s390"
6066             ;;
6067           sparc*-*linux*)
6068             LD="${LD-ld} -m elf64_sparc"
6069             ;;
6070         esac
6071         ;;
6072     esac
6073   fi
6074   rm -rf conftest*
6075   ;;
6076
6077 *-*-sco3.2v5*)
6078   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6079   SAVE_CFLAGS="$CFLAGS"
6080   CFLAGS="$CFLAGS -belf"
6081   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6082 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6083 if test "${lt_cv_cc_needs_belf+set}" = set; then
6084   $as_echo_n "(cached) " >&6
6085 else
6086   ac_ext=c
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092      cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098
6099 int
6100 main ()
6101 {
6102
6103   ;
6104   return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (ac_try="$ac_link"
6109 case "(($ac_try" in
6110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111   *) ac_try_echo=$ac_try;;
6112 esac
6113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6114 $as_echo "$ac_try_echo") >&5
6115   (eval "$ac_link") 2>conftest.er1
6116   ac_status=$?
6117   grep -v '^ *+' conftest.er1 >conftest.err
6118   rm -f conftest.er1
6119   cat conftest.err >&5
6120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); } && {
6122          test -z "$ac_c_werror_flag" ||
6123          test ! -s conftest.err
6124        } && test -s conftest$ac_exeext && {
6125          test "$cross_compiling" = yes ||
6126          $as_test_x conftest$ac_exeext
6127        }; then
6128   lt_cv_cc_needs_belf=yes
6129 else
6130   $as_echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133         lt_cv_cc_needs_belf=no
6134 fi
6135
6136 rm -rf conftest.dSYM
6137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6138       conftest$ac_exeext conftest.$ac_ext
6139      ac_ext=c
6140 ac_cpp='$CPP $CPPFLAGS'
6141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144
6145 fi
6146 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6147 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6148   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6149     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6150     CFLAGS="$SAVE_CFLAGS"
6151   fi
6152   ;;
6153 sparc*-*solaris*)
6154   # Find out which ABI we are using.
6155   echo 'int i;' > conftest.$ac_ext
6156   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157   (eval $ac_compile) 2>&5
6158   ac_status=$?
6159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; then
6161     case `/usr/bin/file conftest.o` in
6162     *64-bit*)
6163       case $lt_cv_prog_gnu_ld in
6164       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6165       *)
6166         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6167           LD="${LD-ld} -64"
6168         fi
6169         ;;
6170       esac
6171       ;;
6172     esac
6173   fi
6174   rm -rf conftest*
6175   ;;
6176 esac
6177
6178 need_locks="$enable_libtool_lock"
6179
6180
6181   case $host_os in
6182     rhapsody* | darwin*)
6183     if test -n "$ac_tool_prefix"; then
6184   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6189   $as_echo_n "(cached) " >&6
6190 else
6191   if test -n "$DSYMUTIL"; then
6192   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199   for ac_exec_ext in '' $ac_executable_extensions; do
6200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6212 if test -n "$DSYMUTIL"; then
6213   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6214 $as_echo "$DSYMUTIL" >&6; }
6215 else
6216   { $as_echo "$as_me:$LINENO: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_DSYMUTIL"; then
6223   ac_ct_DSYMUTIL=$DSYMUTIL
6224   # Extract the first word of "dsymutil", so it can be a program name with args.
6225 set dummy dsymutil; ac_word=$2
6226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6229   $as_echo_n "(cached) " >&6
6230 else
6231   if test -n "$ac_ct_DSYMUTIL"; then
6232   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239   for ac_exec_ext in '' $ac_executable_extensions; do
6240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6252 if test -n "$ac_ct_DSYMUTIL"; then
6253   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6254 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6255 else
6256   { $as_echo "$as_me:$LINENO: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260   if test "x$ac_ct_DSYMUTIL" = x; then
6261     DSYMUTIL=":"
6262   else
6263     case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269     DSYMUTIL=$ac_ct_DSYMUTIL
6270   fi
6271 else
6272   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6273 fi
6274
6275     if test -n "$ac_tool_prefix"; then
6276   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6281   $as_echo_n "(cached) " >&6
6282 else
6283   if test -n "$NMEDIT"; then
6284   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289   IFS=$as_save_IFS
6290   test -z "$as_dir" && as_dir=.
6291   for ac_exec_ext in '' $ac_executable_extensions; do
6292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6294     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295     break 2
6296   fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 NMEDIT=$ac_cv_prog_NMEDIT
6304 if test -n "$NMEDIT"; then
6305   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6306 $as_echo "$NMEDIT" >&6; }
6307 else
6308   { $as_echo "$as_me:$LINENO: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312
6313 fi
6314 if test -z "$ac_cv_prog_NMEDIT"; then
6315   ac_ct_NMEDIT=$NMEDIT
6316   # Extract the first word of "nmedit", so it can be a program name with args.
6317 set dummy nmedit; ac_word=$2
6318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6321   $as_echo_n "(cached) " >&6
6322 else
6323   if test -n "$ac_ct_NMEDIT"; then
6324   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331   for ac_exec_ext in '' $ac_executable_extensions; do
6332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6334     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6344 if test -n "$ac_ct_NMEDIT"; then
6345   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6346 $as_echo "$ac_ct_NMEDIT" >&6; }
6347 else
6348   { $as_echo "$as_me:$LINENO: result: no" >&5
6349 $as_echo "no" >&6; }
6350 fi
6351
6352   if test "x$ac_ct_NMEDIT" = x; then
6353     NMEDIT=":"
6354   else
6355     case $cross_compiling:$ac_tool_warned in
6356 yes:)
6357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359 ac_tool_warned=yes ;;
6360 esac
6361     NMEDIT=$ac_ct_NMEDIT
6362   fi
6363 else
6364   NMEDIT="$ac_cv_prog_NMEDIT"
6365 fi
6366
6367     if test -n "$ac_tool_prefix"; then
6368   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_LIPO+set}" = set; then
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test -n "$LIPO"; then
6376   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383   for ac_exec_ext in '' $ac_executable_extensions; do
6384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 LIPO=$ac_cv_prog_LIPO
6396 if test -n "$LIPO"; then
6397   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6398 $as_echo "$LIPO" >&6; }
6399 else
6400   { $as_echo "$as_me:$LINENO: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404
6405 fi
6406 if test -z "$ac_cv_prog_LIPO"; then
6407   ac_ct_LIPO=$LIPO
6408   # Extract the first word of "lipo", so it can be a program name with args.
6409 set dummy lipo; ac_word=$2
6410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6413   $as_echo_n "(cached) " >&6
6414 else
6415   if test -n "$ac_ct_LIPO"; then
6416   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423   for ac_exec_ext in '' $ac_executable_extensions; do
6424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425     ac_cv_prog_ac_ct_LIPO="lipo"
6426     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6436 if test -n "$ac_ct_LIPO"; then
6437   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6438 $as_echo "$ac_ct_LIPO" >&6; }
6439 else
6440   { $as_echo "$as_me:$LINENO: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444   if test "x$ac_ct_LIPO" = x; then
6445     LIPO=":"
6446   else
6447     case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6452 esac
6453     LIPO=$ac_ct_LIPO
6454   fi
6455 else
6456   LIPO="$ac_cv_prog_LIPO"
6457 fi
6458
6459     if test -n "$ac_tool_prefix"; then
6460   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}otool; ac_word=$2
6462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if test "${ac_cv_prog_OTOOL+set}" = set; then
6465   $as_echo_n "(cached) " >&6
6466 else
6467   if test -n "$OTOOL"; then
6468   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6478     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 OTOOL=$ac_cv_prog_OTOOL
6488 if test -n "$OTOOL"; then
6489   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6490 $as_echo "$OTOOL" >&6; }
6491 else
6492   { $as_echo "$as_me:$LINENO: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_OTOOL"; then
6499   ac_ct_OTOOL=$OTOOL
6500   # Extract the first word of "otool", so it can be a program name with args.
6501 set dummy otool; ac_word=$2
6502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6505   $as_echo_n "(cached) " >&6
6506 else
6507   if test -n "$ac_ct_OTOOL"; then
6508   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515   for ac_exec_ext in '' $ac_executable_extensions; do
6516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517     ac_cv_prog_ac_ct_OTOOL="otool"
6518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6528 if test -n "$ac_ct_OTOOL"; then
6529   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6530 $as_echo "$ac_ct_OTOOL" >&6; }
6531 else
6532   { $as_echo "$as_me:$LINENO: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536   if test "x$ac_ct_OTOOL" = x; then
6537     OTOOL=":"
6538   else
6539     case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545     OTOOL=$ac_ct_OTOOL
6546   fi
6547 else
6548   OTOOL="$ac_cv_prog_OTOOL"
6549 fi
6550
6551     if test -n "$ac_tool_prefix"; then
6552   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6553 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6557   $as_echo_n "(cached) " >&6
6558 else
6559   if test -n "$OTOOL64"; then
6560   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 OTOOL64=$ac_cv_prog_OTOOL64
6580 if test -n "$OTOOL64"; then
6581   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6582 $as_echo "$OTOOL64" >&6; }
6583 else
6584   { $as_echo "$as_me:$LINENO: result: no" >&5
6585 $as_echo "no" >&6; }
6586 fi
6587
6588
6589 fi
6590 if test -z "$ac_cv_prog_OTOOL64"; then
6591   ac_ct_OTOOL64=$OTOOL64
6592   # Extract the first word of "otool64", so it can be a program name with args.
6593 set dummy otool64; ac_word=$2
6594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6597   $as_echo_n "(cached) " >&6
6598 else
6599   if test -n "$ac_ct_OTOOL64"; then
6600   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605   IFS=$as_save_IFS
6606   test -z "$as_dir" && as_dir=.
6607   for ac_exec_ext in '' $ac_executable_extensions; do
6608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609     ac_cv_prog_ac_ct_OTOOL64="otool64"
6610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611     break 2
6612   fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 fi
6618 fi
6619 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6620 if test -n "$ac_ct_OTOOL64"; then
6621   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6622 $as_echo "$ac_ct_OTOOL64" >&6; }
6623 else
6624   { $as_echo "$as_me:$LINENO: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627
6628   if test "x$ac_ct_OTOOL64" = x; then
6629     OTOOL64=":"
6630   else
6631     case $cross_compiling:$ac_tool_warned in
6632 yes:)
6633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6635 ac_tool_warned=yes ;;
6636 esac
6637     OTOOL64=$ac_ct_OTOOL64
6638   fi
6639 else
6640   OTOOL64="$ac_cv_prog_OTOOL64"
6641 fi
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6670 $as_echo_n "checking for -single_module linker flag... " >&6; }
6671 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6672   $as_echo_n "(cached) " >&6
6673 else
6674   lt_cv_apple_cc_single_mod=no
6675       if test -z "${LT_MULTI_MODULE}"; then
6676         # By default we will add the -single_module flag. You can override
6677         # by either setting the environment variable LT_MULTI_MODULE
6678         # non-empty at configure time, or by adding -multi_module to the
6679         # link flags.
6680         rm -rf libconftest.dylib*
6681         echo "int foo(void){return 1;}" > conftest.c
6682         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6683 -dynamiclib -Wl,-single_module conftest.c" >&5
6684         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6685           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6686         _lt_result=$?
6687         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6688           lt_cv_apple_cc_single_mod=yes
6689         else
6690           cat conftest.err >&5
6691         fi
6692         rm -rf libconftest.dylib*
6693         rm -f conftest.*
6694       fi
6695 fi
6696 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6697 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6698     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6699 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6700 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6701   $as_echo_n "(cached) " >&6
6702 else
6703   lt_cv_ld_exported_symbols_list=no
6704       save_LDFLAGS=$LDFLAGS
6705       echo "_main" > conftest.sym
6706       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6707       cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713
6714 int
6715 main ()
6716 {
6717
6718   ;
6719   return 0;
6720 }
6721 _ACEOF
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6724 case "(($ac_try" in
6725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726   *) ac_try_echo=$ac_try;;
6727 esac
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730   (eval "$ac_link") 2>conftest.er1
6731   ac_status=$?
6732   grep -v '^ *+' conftest.er1 >conftest.err
6733   rm -f conftest.er1
6734   cat conftest.err >&5
6735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } && {
6737          test -z "$ac_c_werror_flag" ||
6738          test ! -s conftest.err
6739        } && test -s conftest$ac_exeext && {
6740          test "$cross_compiling" = yes ||
6741          $as_test_x conftest$ac_exeext
6742        }; then
6743   lt_cv_ld_exported_symbols_list=yes
6744 else
6745   $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748         lt_cv_ld_exported_symbols_list=no
6749 fi
6750
6751 rm -rf conftest.dSYM
6752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6753       conftest$ac_exeext conftest.$ac_ext
6754         LDFLAGS="$save_LDFLAGS"
6755
6756 fi
6757 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6758 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6759     case $host_os in
6760     rhapsody* | darwin1.[012])
6761       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6762     darwin1.*)
6763       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6764     darwin*) # darwin 5.x on
6765       # if running on 10.5 or later, the deployment target defaults
6766       # to the OS version, if on x86, and 10.4, the deployment
6767       # target defaults to 10.4. Don't you love it?
6768       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6769         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6770           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6771         10.[012]*)
6772           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6773         10.*)
6774           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6775       esac
6776     ;;
6777   esac
6778     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6779       _lt_dar_single_mod='$single_module'
6780     fi
6781     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6782       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6783     else
6784       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6785     fi
6786     if test "$DSYMUTIL" != ":"; then
6787       _lt_dsymutil='~$DSYMUTIL $lib || :'
6788     else
6789       _lt_dsymutil=
6790     fi
6791     ;;
6792   esac
6793
6794 ac_ext=c
6795 ac_cpp='$CPP $CPPFLAGS'
6796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6801 # On Suns, sometimes $CPP names a directory.
6802 if test -n "$CPP" && test -d "$CPP"; then
6803   CPP=
6804 fi
6805 if test -z "$CPP"; then
6806   if test "${ac_cv_prog_CPP+set}" = set; then
6807   $as_echo_n "(cached) " >&6
6808 else
6809       # Double quotes because CPP needs to be expanded
6810     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6811     do
6812       ac_preproc_ok=false
6813 for ac_c_preproc_warn_flag in '' yes
6814 do
6815   # Use a header file that comes with gcc, so configuring glibc
6816   # with a fresh cross-compiler works.
6817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6818   # <limits.h> exists even on freestanding compilers.
6819   # On the NeXT, cc -E runs the code through the compiler's parser,
6820   # not just through cpp. "Syntax error" is here to catch this case.
6821   cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 #ifdef __STDC__
6828 # include <limits.h>
6829 #else
6830 # include <assert.h>
6831 #endif
6832                      Syntax error
6833 _ACEOF
6834 if { (ac_try="$ac_cpp conftest.$ac_ext"
6835 case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6842   ac_status=$?
6843   grep -v '^ *+' conftest.er1 >conftest.err
6844   rm -f conftest.er1
6845   cat conftest.err >&5
6846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); } >/dev/null && {
6848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6849          test ! -s conftest.err
6850        }; then
6851   :
6852 else
6853   $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856   # Broken: fails on valid input.
6857 continue
6858 fi
6859
6860 rm -f conftest.err conftest.$ac_ext
6861
6862   # OK, works on sane cases.  Now check whether nonexistent headers
6863   # can be detected and how.
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #include <ac_nonexistent.h>
6871 _ACEOF
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6873 case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6880   ac_status=$?
6881   grep -v '^ *+' conftest.er1 >conftest.err
6882   rm -f conftest.er1
6883   cat conftest.err >&5
6884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } >/dev/null && {
6886          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6887          test ! -s conftest.err
6888        }; then
6889   # Broken: success on invalid input.
6890 continue
6891 else
6892   $as_echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895   # Passes both tests.
6896 ac_preproc_ok=:
6897 break
6898 fi
6899
6900 rm -f conftest.err conftest.$ac_ext
6901
6902 done
6903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6904 rm -f conftest.err conftest.$ac_ext
6905 if $ac_preproc_ok; then
6906   break
6907 fi
6908
6909     done
6910     ac_cv_prog_CPP=$CPP
6911
6912 fi
6913   CPP=$ac_cv_prog_CPP
6914 else
6915   ac_cv_prog_CPP=$CPP
6916 fi
6917 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6918 $as_echo "$CPP" >&6; }
6919 ac_preproc_ok=false
6920 for ac_c_preproc_warn_flag in '' yes
6921 do
6922   # Use a header file that comes with gcc, so configuring glibc
6923   # with a fresh cross-compiler works.
6924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6925   # <limits.h> exists even on freestanding compilers.
6926   # On the NeXT, cc -E runs the code through the compiler's parser,
6927   # not just through cpp. "Syntax error" is here to catch this case.
6928   cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 #ifdef __STDC__
6935 # include <limits.h>
6936 #else
6937 # include <assert.h>
6938 #endif
6939                      Syntax error
6940 _ACEOF
6941 if { (ac_try="$ac_cpp conftest.$ac_ext"
6942 case "(($ac_try" in
6943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944   *) ac_try_echo=$ac_try;;
6945 esac
6946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6947 $as_echo "$ac_try_echo") >&5
6948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } >/dev/null && {
6955          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6956          test ! -s conftest.err
6957        }; then
6958   :
6959 else
6960   $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963   # Broken: fails on valid input.
6964 continue
6965 fi
6966
6967 rm -f conftest.err conftest.$ac_ext
6968
6969   # OK, works on sane cases.  Now check whether nonexistent headers
6970   # can be detected and how.
6971   cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h.  */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h.  */
6977 #include <ac_nonexistent.h>
6978 _ACEOF
6979 if { (ac_try="$ac_cpp conftest.$ac_ext"
6980 case "(($ac_try" in
6981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982   *) ac_try_echo=$ac_try;;
6983 esac
6984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6985 $as_echo "$ac_try_echo") >&5
6986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } >/dev/null && {
6993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6994          test ! -s conftest.err
6995        }; then
6996   # Broken: success on invalid input.
6997 continue
6998 else
6999   $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002   # Passes both tests.
7003 ac_preproc_ok=:
7004 break
7005 fi
7006
7007 rm -f conftest.err conftest.$ac_ext
7008
7009 done
7010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7011 rm -f conftest.err conftest.$ac_ext
7012 if $ac_preproc_ok; then
7013   :
7014 else
7015   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7017 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7018 See \`config.log' for more details." >&5
7019 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7020 See \`config.log' for more details." >&2;}
7021    { (exit 1); exit 1; }; }; }
7022 fi
7023
7024 ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029
7030
7031 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7032 $as_echo_n "checking for ANSI C header files... " >&6; }
7033 if test "${ac_cv_header_stdc+set}" = set; then
7034   $as_echo_n "(cached) " >&6
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <stdlib.h>
7043 #include <stdarg.h>
7044 #include <string.h>
7045 #include <float.h>
7046
7047 int
7048 main ()
7049 {
7050
7051   ;
7052   return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (ac_try="$ac_compile"
7057 case "(($ac_try" in
7058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059   *) ac_try_echo=$ac_try;;
7060 esac
7061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7062 $as_echo "$ac_try_echo") >&5
7063   (eval "$ac_compile") 2>conftest.er1
7064   ac_status=$?
7065   grep -v '^ *+' conftest.er1 >conftest.err
7066   rm -f conftest.er1
7067   cat conftest.err >&5
7068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } && {
7070          test -z "$ac_c_werror_flag" ||
7071          test ! -s conftest.err
7072        } && test -s conftest.$ac_objext; then
7073   ac_cv_header_stdc=yes
7074 else
7075   $as_echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078         ac_cv_header_stdc=no
7079 fi
7080
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082
7083 if test $ac_cv_header_stdc = yes; then
7084   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #include <string.h>
7092
7093 _ACEOF
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095   $EGREP "memchr" >/dev/null 2>&1; then
7096   :
7097 else
7098   ac_cv_header_stdc=no
7099 fi
7100 rm -f conftest*
7101
7102 fi
7103
7104 if test $ac_cv_header_stdc = yes; then
7105   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7106   cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 #include <stdlib.h>
7113
7114 _ACEOF
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116   $EGREP "free" >/dev/null 2>&1; then
7117   :
7118 else
7119   ac_cv_header_stdc=no
7120 fi
7121 rm -f conftest*
7122
7123 fi
7124
7125 if test $ac_cv_header_stdc = yes; then
7126   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7127   if test "$cross_compiling" = yes; then
7128   :
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 #include <ctype.h>
7137 #include <stdlib.h>
7138 #if ((' ' & 0x0FF) == 0x020)
7139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7141 #else
7142 # define ISLOWER(c) \
7143                    (('a' <= (c) && (c) <= 'i') \
7144                      || ('j' <= (c) && (c) <= 'r') \
7145                      || ('s' <= (c) && (c) <= 'z'))
7146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7147 #endif
7148
7149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7150 int
7151 main ()
7152 {
7153   int i;
7154   for (i = 0; i < 256; i++)
7155     if (XOR (islower (i), ISLOWER (i))
7156         || toupper (i) != TOUPPER (i))
7157       return 2;
7158   return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest$ac_exeext
7162 if { (ac_try="$ac_link"
7163 case "(($ac_try" in
7164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165   *) ac_try_echo=$ac_try;;
7166 esac
7167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7168 $as_echo "$ac_try_echo") >&5
7169   (eval "$ac_link") 2>&5
7170   ac_status=$?
7171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7173   { (case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179   (eval "$ac_try") 2>&5
7180   ac_status=$?
7181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; }; then
7183   :
7184 else
7185   $as_echo "$as_me: program exited with status $ac_status" >&5
7186 $as_echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7188
7189 ( exit $ac_status )
7190 ac_cv_header_stdc=no
7191 fi
7192 rm -rf conftest.dSYM
7193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7194 fi
7195
7196
7197 fi
7198 fi
7199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7200 $as_echo "$ac_cv_header_stdc" >&6; }
7201 if test $ac_cv_header_stdc = yes; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define STDC_HEADERS 1
7205 _ACEOF
7206
7207 fi
7208
7209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7220                   inttypes.h stdint.h unistd.h
7221 do
7222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7224 $as_echo_n "checking for $ac_header... " >&6; }
7225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7226   $as_echo_n "(cached) " >&6
7227 else
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 $ac_includes_default
7235
7236 #include <$ac_header>
7237 _ACEOF
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7240 case "(($ac_try" in
7241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242   *) ac_try_echo=$ac_try;;
7243 esac
7244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7245 $as_echo "$ac_try_echo") >&5
7246   (eval "$ac_compile") 2>conftest.er1
7247   ac_status=$?
7248   grep -v '^ *+' conftest.er1 >conftest.err
7249   rm -f conftest.er1
7250   cat conftest.err >&5
7251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } && {
7253          test -z "$ac_c_werror_flag" ||
7254          test ! -s conftest.err
7255        } && test -s conftest.$ac_objext; then
7256   eval "$as_ac_Header=yes"
7257 else
7258   $as_echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261         eval "$as_ac_Header=no"
7262 fi
7263
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 fi
7266 ac_res=`eval 'as_val=${'$as_ac_Header'}
7267                  $as_echo "$as_val"'`
7268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7269 $as_echo "$ac_res" >&6; }
7270 as_val=`eval 'as_val=${'$as_ac_Header'}
7271                  $as_echo "$as_val"'`
7272    if test "x$as_val" = x""yes; then
7273   cat >>confdefs.h <<_ACEOF
7274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275 _ACEOF
7276
7277 fi
7278
7279 done
7280
7281
7282
7283 for ac_header in dlfcn.h
7284 do
7285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7287 $as_echo_n "checking for $ac_header... " >&6; }
7288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7289   $as_echo_n "(cached) " >&6
7290 else
7291   cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h.  */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h.  */
7297 $ac_includes_default
7298
7299 #include <$ac_header>
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7303 case "(($ac_try" in
7304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305   *) ac_try_echo=$ac_try;;
7306 esac
7307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308 $as_echo "$ac_try_echo") >&5
7309   (eval "$ac_compile") 2>conftest.er1
7310   ac_status=$?
7311   grep -v '^ *+' conftest.er1 >conftest.err
7312   rm -f conftest.er1
7313   cat conftest.err >&5
7314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } && {
7316          test -z "$ac_c_werror_flag" ||
7317          test ! -s conftest.err
7318        } && test -s conftest.$ac_objext; then
7319   eval "$as_ac_Header=yes"
7320 else
7321   $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324         eval "$as_ac_Header=no"
7325 fi
7326
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 fi
7329 ac_res=`eval 'as_val=${'$as_ac_Header'}
7330                  $as_echo "$as_val"'`
7331                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7332 $as_echo "$ac_res" >&6; }
7333 as_val=`eval 'as_val=${'$as_ac_Header'}
7334                  $as_echo "$as_val"'`
7335    if test "x$as_val" = x""yes; then
7336   cat >>confdefs.h <<_ACEOF
7337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7338 _ACEOF
7339
7340 fi
7341
7342 done
7343
7344
7345
7346 # Set options
7347
7348
7349
7350         enable_dlopen=no
7351
7352
7353   enable_win32_dll=no
7354
7355
7356             # Check whether --enable-shared was given.
7357 if test "${enable_shared+set}" = set; then
7358   enableval=$enable_shared; p=${PACKAGE-default}
7359     case $enableval in
7360     yes) enable_shared=yes ;;
7361     no) enable_shared=no ;;
7362     *)
7363       enable_shared=no
7364       # Look at the argument we got.  We use all the common list separators.
7365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366       for pkg in $enableval; do
7367         IFS="$lt_save_ifs"
7368         if test "X$pkg" = "X$p"; then
7369           enable_shared=yes
7370         fi
7371       done
7372       IFS="$lt_save_ifs"
7373       ;;
7374     esac
7375 else
7376   enable_shared=yes
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387   # Check whether --enable-static was given.
7388 if test "${enable_static+set}" = set; then
7389   enableval=$enable_static; p=${PACKAGE-default}
7390     case $enableval in
7391     yes) enable_static=yes ;;
7392     no) enable_static=no ;;
7393     *)
7394      enable_static=no
7395       # Look at the argument we got.  We use all the common list separators.
7396       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397       for pkg in $enableval; do
7398         IFS="$lt_save_ifs"
7399         if test "X$pkg" = "X$p"; then
7400           enable_static=yes
7401         fi
7402       done
7403       IFS="$lt_save_ifs"
7404       ;;
7405     esac
7406 else
7407   enable_static=yes
7408 fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419 # Check whether --with-pic was given.
7420 if test "${with_pic+set}" = set; then
7421   withval=$with_pic; pic_mode="$withval"
7422 else
7423   pic_mode=default
7424 fi
7425
7426
7427 test -z "$pic_mode" && pic_mode=default
7428
7429
7430
7431
7432
7433
7434
7435   # Check whether --enable-fast-install was given.
7436 if test "${enable_fast_install+set}" = set; then
7437   enableval=$enable_fast_install; p=${PACKAGE-default}
7438     case $enableval in
7439     yes) enable_fast_install=yes ;;
7440     no) enable_fast_install=no ;;
7441     *)
7442       enable_fast_install=no
7443       # Look at the argument we got.  We use all the common list separators.
7444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445       for pkg in $enableval; do
7446         IFS="$lt_save_ifs"
7447         if test "X$pkg" = "X$p"; then
7448           enable_fast_install=yes
7449         fi
7450       done
7451       IFS="$lt_save_ifs"
7452       ;;
7453     esac
7454 else
7455   enable_fast_install=yes
7456 fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468 # This can be used to rebuild libtool when needed
7469 LIBTOOL_DEPS="$ltmain"
7470
7471 # Always use our own libtool.
7472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 test -z "$LN_S" && LN_S="ln -s"
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 if test -n "${ZSH_VERSION+set}" ; then
7514    setopt NO_GLOB_SUBST
7515 fi
7516
7517 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7518 $as_echo_n "checking for objdir... " >&6; }
7519 if test "${lt_cv_objdir+set}" = set; then
7520   $as_echo_n "(cached) " >&6
7521 else
7522   rm -f .libs 2>/dev/null
7523 mkdir .libs 2>/dev/null
7524 if test -d .libs; then
7525   lt_cv_objdir=.libs
7526 else
7527   # MS-DOS does not allow filenames that begin with a dot.
7528   lt_cv_objdir=_libs
7529 fi
7530 rmdir .libs 2>/dev/null
7531 fi
7532 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7533 $as_echo "$lt_cv_objdir" >&6; }
7534 objdir=$lt_cv_objdir
7535
7536
7537
7538
7539
7540 cat >>confdefs.h <<_ACEOF
7541 #define LT_OBJDIR "$lt_cv_objdir/"
7542 _ACEOF
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 case $host_os in
7561 aix3*)
7562   # AIX sometimes has problems with the GCC collect2 program.  For some
7563   # reason, if we set the COLLECT_NAMES environment variable, the problems
7564   # vanish in a puff of smoke.
7565   if test "X${COLLECT_NAMES+set}" != Xset; then
7566     COLLECT_NAMES=
7567     export COLLECT_NAMES
7568   fi
7569   ;;
7570 esac
7571
7572 # Sed substitution that helps us do robust quoting.  It backslashifies
7573 # metacharacters that are still active within double-quoted strings.
7574 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7575
7576 # Same as above, but do not quote variable references.
7577 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7578
7579 # Sed substitution to delay expansion of an escaped shell variable in a
7580 # double_quote_subst'ed string.
7581 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7582
7583 # Sed substitution to delay expansion of an escaped single quote.
7584 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7585
7586 # Sed substitution to avoid accidental globbing in evaled expressions
7587 no_glob_subst='s/\*/\\\*/g'
7588
7589 # Global variables:
7590 ofile=libtool
7591 can_build_shared=yes
7592
7593 # All known linkers require a `.a' archive for static linking (except MSVC,
7594 # which needs '.lib').
7595 libext=a
7596
7597 with_gnu_ld="$lt_cv_prog_gnu_ld"
7598
7599 old_CC="$CC"
7600 old_CFLAGS="$CFLAGS"
7601
7602 # Set sane defaults for various variables
7603 test -z "$CC" && CC=cc
7604 test -z "$LTCC" && LTCC=$CC
7605 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7606 test -z "$LD" && LD=ld
7607 test -z "$ac_objext" && ac_objext=o
7608
7609 for cc_temp in $compiler""; do
7610   case $cc_temp in
7611     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7613     \-*) ;;
7614     *) break;;
7615   esac
7616 done
7617 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7618
7619
7620 # Only perform the check for file, if the check method requires it
7621 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7622 case $deplibs_check_method in
7623 file_magic*)
7624   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7625     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7626 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7628   $as_echo_n "(cached) " >&6
7629 else
7630   case $MAGIC_CMD in
7631 [\\/*] |  ?:[\\/]*)
7632   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7633   ;;
7634 *)
7635   lt_save_MAGIC_CMD="$MAGIC_CMD"
7636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7637   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7638   for ac_dir in $ac_dummy; do
7639     IFS="$lt_save_ifs"
7640     test -z "$ac_dir" && ac_dir=.
7641     if test -f $ac_dir/${ac_tool_prefix}file; then
7642       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7643       if test -n "$file_magic_test_file"; then
7644         case $deplibs_check_method in
7645         "file_magic "*)
7646           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7647           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7649             $EGREP "$file_magic_regex" > /dev/null; then
7650             :
7651           else
7652             cat <<_LT_EOF 1>&2
7653
7654 *** Warning: the command libtool uses to detect shared libraries,
7655 *** $file_magic_cmd, produces output that libtool cannot recognize.
7656 *** The result is that libtool may fail to recognize shared libraries
7657 *** as such.  This will affect the creation of libtool libraries that
7658 *** depend on shared libraries, but programs linked with such libtool
7659 *** libraries will work regardless of this problem.  Nevertheless, you
7660 *** may want to report the problem to your system manager and/or to
7661 *** bug-libtool@gnu.org
7662
7663 _LT_EOF
7664           fi ;;
7665         esac
7666       fi
7667       break
7668     fi
7669   done
7670   IFS="$lt_save_ifs"
7671   MAGIC_CMD="$lt_save_MAGIC_CMD"
7672   ;;
7673 esac
7674 fi
7675
7676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677 if test -n "$MAGIC_CMD"; then
7678   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7679 $as_echo "$MAGIC_CMD" >&6; }
7680 else
7681   { $as_echo "$as_me:$LINENO: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685
7686
7687
7688
7689 if test -z "$lt_cv_path_MAGIC_CMD"; then
7690   if test -n "$ac_tool_prefix"; then
7691     { $as_echo "$as_me:$LINENO: checking for file" >&5
7692 $as_echo_n "checking for file... " >&6; }
7693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7694   $as_echo_n "(cached) " >&6
7695 else
7696   case $MAGIC_CMD in
7697 [\\/*] |  ?:[\\/]*)
7698   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7699   ;;
7700 *)
7701   lt_save_MAGIC_CMD="$MAGIC_CMD"
7702   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7704   for ac_dir in $ac_dummy; do
7705     IFS="$lt_save_ifs"
7706     test -z "$ac_dir" && ac_dir=.
7707     if test -f $ac_dir/file; then
7708       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7709       if test -n "$file_magic_test_file"; then
7710         case $deplibs_check_method in
7711         "file_magic "*)
7712           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7713           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7715             $EGREP "$file_magic_regex" > /dev/null; then
7716             :
7717           else
7718             cat <<_LT_EOF 1>&2
7719
7720 *** Warning: the command libtool uses to detect shared libraries,
7721 *** $file_magic_cmd, produces output that libtool cannot recognize.
7722 *** The result is that libtool may fail to recognize shared libraries
7723 *** as such.  This will affect the creation of libtool libraries that
7724 *** depend on shared libraries, but programs linked with such libtool
7725 *** libraries will work regardless of this problem.  Nevertheless, you
7726 *** may want to report the problem to your system manager and/or to
7727 *** bug-libtool@gnu.org
7728
7729 _LT_EOF
7730           fi ;;
7731         esac
7732       fi
7733       break
7734     fi
7735   done
7736   IFS="$lt_save_ifs"
7737   MAGIC_CMD="$lt_save_MAGIC_CMD"
7738   ;;
7739 esac
7740 fi
7741
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if test -n "$MAGIC_CMD"; then
7744   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7745 $as_echo "$MAGIC_CMD" >&6; }
7746 else
7747   { $as_echo "$as_me:$LINENO: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752   else
7753     MAGIC_CMD=:
7754   fi
7755 fi
7756
7757   fi
7758   ;;
7759 esac
7760
7761 # Use C for the default configuration in the libtool script
7762
7763 lt_save_CC="$CC"
7764 ac_ext=c
7765 ac_cpp='$CPP $CPPFLAGS'
7766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7769
7770
7771 # Source file extension for C test sources.
7772 ac_ext=c
7773
7774 # Object file extension for compiled C test sources.
7775 objext=o
7776 objext=$objext
7777
7778 # Code to be used in simple compile tests
7779 lt_simple_compile_test_code="int some_variable = 0;"
7780
7781 # Code to be used in simple link tests
7782 lt_simple_link_test_code='int main(){return(0);}'
7783
7784
7785
7786
7787
7788
7789
7790 # If no C compiler was specified, use CC.
7791 LTCC=${LTCC-"$CC"}
7792
7793 # If no C compiler flags were specified, use CFLAGS.
7794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7795
7796 # Allow CC to be a program name with arguments.
7797 compiler=$CC
7798
7799 # Save the default compiler, since it gets overwritten when the other
7800 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7801 compiler_DEFAULT=$CC
7802
7803 # save warnings/boilerplate of simple test code
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807 _lt_compiler_boilerplate=`cat conftest.err`
7808 $RM conftest*
7809
7810 ac_outfile=conftest.$ac_objext
7811 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7813 _lt_linker_boilerplate=`cat conftest.err`
7814 $RM -r conftest*
7815
7816
7817 if test -n "$compiler"; then
7818
7819 lt_prog_compiler_no_builtin_flag=
7820
7821 if test "$GCC" = yes; then
7822   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7823
7824   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7825 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7826 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7827   $as_echo_n "(cached) " >&6
7828 else
7829   lt_cv_prog_compiler_rtti_exceptions=no
7830    ac_outfile=conftest.$ac_objext
7831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832    lt_compiler_flag="-fno-rtti -fno-exceptions"
7833    # Insert the option either (1) after the last *FLAGS variable, or
7834    # (2) before a word containing "conftest.", or (3) at the end.
7835    # Note that $ac_compile itself does not contain backslashes and begins
7836    # with a dollar sign (not a hyphen), so the echo should work correctly.
7837    # The option is referenced via a variable to avoid confusing sed.
7838    lt_compile=`echo "$ac_compile" | $SED \
7839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841    -e 's:$: $lt_compiler_flag:'`
7842    (eval echo "\"\$as_me:7842: $lt_compile\"" >&5)
7843    (eval "$lt_compile" 2>conftest.err)
7844    ac_status=$?
7845    cat conftest.err >&5
7846    echo "$as_me:7846: \$? = $ac_status" >&5
7847    if (exit $ac_status) && test -s "$ac_outfile"; then
7848      # The compiler can only warn and ignore the option if not recognized
7849      # So say no if there are warnings other than the usual output.
7850      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7851      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853        lt_cv_prog_compiler_rtti_exceptions=yes
7854      fi
7855    fi
7856    $RM conftest*
7857
7858 fi
7859 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7860 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7861
7862 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7863     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7864 else
7865     :
7866 fi
7867
7868 fi
7869
7870
7871
7872
7873
7874
7875   lt_prog_compiler_wl=
7876 lt_prog_compiler_pic=
7877 lt_prog_compiler_static=
7878
7879 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7880 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7881
7882   if test "$GCC" = yes; then
7883     lt_prog_compiler_wl='-Wl,'
7884     lt_prog_compiler_static='-static'
7885
7886     case $host_os in
7887       aix*)
7888       # All AIX code is PIC.
7889       if test "$host_cpu" = ia64; then
7890         # AIX 5 now supports IA64 processor
7891         lt_prog_compiler_static='-Bstatic'
7892       fi
7893       ;;
7894
7895     amigaos*)
7896       case $host_cpu in
7897       powerpc)
7898             # see comment about AmigaOS4 .so support
7899             lt_prog_compiler_pic='-fPIC'
7900         ;;
7901       m68k)
7902             # FIXME: we need at least 68020 code to build shared libraries, but
7903             # adding the `-m68020' flag to GCC prevents building anything better,
7904             # like `-m68040'.
7905             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7906         ;;
7907       esac
7908       ;;
7909
7910     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7911       # PIC is the default for these OSes.
7912       ;;
7913
7914     mingw* | cygwin* | pw32* | os2* | cegcc*)
7915       # This hack is so that the source file can tell whether it is being
7916       # built for inclusion in a dll (and should export symbols for example).
7917       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7918       # (--disable-auto-import) libraries
7919       lt_prog_compiler_pic='-DDLL_EXPORT'
7920       ;;
7921
7922     darwin* | rhapsody*)
7923       # PIC is the default on this platform
7924       # Common symbols not allowed in MH_DYLIB files
7925       lt_prog_compiler_pic='-fno-common'
7926       ;;
7927
7928     hpux*)
7929       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7930       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7931       # sets the default TLS model and affects inlining.
7932       case $host_cpu in
7933       hppa*64*)
7934         # +Z the default
7935         ;;
7936       *)
7937         lt_prog_compiler_pic='-fPIC'
7938         ;;
7939       esac
7940       ;;
7941
7942     interix[3-9]*)
7943       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7944       # Instead, we relocate shared libraries at runtime.
7945       ;;
7946
7947     msdosdjgpp*)
7948       # Just because we use GCC doesn't mean we suddenly get shared libraries
7949       # on systems that don't support them.
7950       lt_prog_compiler_can_build_shared=no
7951       enable_shared=no
7952       ;;
7953
7954     *nto* | *qnx*)
7955       # QNX uses GNU C++, but need to define -shared option too, otherwise
7956       # it will coredump.
7957       lt_prog_compiler_pic='-fPIC -shared'
7958       ;;
7959
7960     sysv4*MP*)
7961       if test -d /usr/nec; then
7962         lt_prog_compiler_pic=-Kconform_pic
7963       fi
7964       ;;
7965
7966     *)
7967       lt_prog_compiler_pic='-fPIC'
7968       ;;
7969     esac
7970   else
7971     # PORTME Check for flag to pass linker flags through the system compiler.
7972     case $host_os in
7973     aix*)
7974       lt_prog_compiler_wl='-Wl,'
7975       if test "$host_cpu" = ia64; then
7976         # AIX 5 now supports IA64 processor
7977         lt_prog_compiler_static='-Bstatic'
7978       else
7979         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7980       fi
7981       ;;
7982
7983     mingw* | cygwin* | pw32* | os2* | cegcc*)
7984       # This hack is so that the source file can tell whether it is being
7985       # built for inclusion in a dll (and should export symbols for example).
7986       lt_prog_compiler_pic='-DDLL_EXPORT'
7987       ;;
7988
7989     hpux9* | hpux10* | hpux11*)
7990       lt_prog_compiler_wl='-Wl,'
7991       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7992       # not for PA HP-UX.
7993       case $host_cpu in
7994       hppa*64*|ia64*)
7995         # +Z the default
7996         ;;
7997       *)
7998         lt_prog_compiler_pic='+Z'
7999         ;;
8000       esac
8001       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8002       lt_prog_compiler_static='${wl}-a ${wl}archive'
8003       ;;
8004
8005     irix5* | irix6* | nonstopux*)
8006       lt_prog_compiler_wl='-Wl,'
8007       # PIC (with -KPIC) is the default.
8008       lt_prog_compiler_static='-non_shared'
8009       ;;
8010
8011     linux* | k*bsd*-gnu)
8012       case $cc_basename in
8013       # old Intel for x86_64 which still supported -KPIC.
8014       ecc*)
8015         lt_prog_compiler_wl='-Wl,'
8016         lt_prog_compiler_pic='-KPIC'
8017         lt_prog_compiler_static='-static'
8018         ;;
8019       # icc used to be incompatible with GCC.
8020       # ICC 10 doesn't accept -KPIC any more.
8021       icc* | ifort*)
8022         lt_prog_compiler_wl='-Wl,'
8023         lt_prog_compiler_pic='-fPIC'
8024         lt_prog_compiler_static='-static'
8025         ;;
8026       # Lahey Fortran 8.1.
8027       lf95*)
8028         lt_prog_compiler_wl='-Wl,'
8029         lt_prog_compiler_pic='--shared'
8030         lt_prog_compiler_static='--static'
8031         ;;
8032       pgcc* | pgf77* | pgf90* | pgf95*)
8033         # Portland Group compilers (*not* the Pentium gcc compiler,
8034         # which looks to be a dead project)
8035         lt_prog_compiler_wl='-Wl,'
8036         lt_prog_compiler_pic='-fpic'
8037         lt_prog_compiler_static='-Bstatic'
8038         ;;
8039       ccc*)
8040         lt_prog_compiler_wl='-Wl,'
8041         # All Alpha code is PIC.
8042         lt_prog_compiler_static='-non_shared'
8043         ;;
8044       xl*)
8045         # IBM XL C 8.0/Fortran 10.1 on PPC
8046         lt_prog_compiler_wl='-Wl,'
8047         lt_prog_compiler_pic='-qpic'
8048         lt_prog_compiler_static='-qstaticlink'
8049         ;;
8050       *)
8051         case `$CC -V 2>&1 | sed 5q` in
8052         *Sun\ C*)
8053           # Sun C 5.9
8054           lt_prog_compiler_pic='-KPIC'
8055           lt_prog_compiler_static='-Bstatic'
8056           lt_prog_compiler_wl='-Wl,'
8057           ;;
8058         *Sun\ F*)
8059           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8060           lt_prog_compiler_pic='-KPIC'
8061           lt_prog_compiler_static='-Bstatic'
8062           lt_prog_compiler_wl=''
8063           ;;
8064         esac
8065         ;;
8066       esac
8067       ;;
8068
8069     newsos6)
8070       lt_prog_compiler_pic='-KPIC'
8071       lt_prog_compiler_static='-Bstatic'
8072       ;;
8073
8074     *nto* | *qnx*)
8075       # QNX uses GNU C++, but need to define -shared option too, otherwise
8076       # it will coredump.
8077       lt_prog_compiler_pic='-fPIC -shared'
8078       ;;
8079
8080     osf3* | osf4* | osf5*)
8081       lt_prog_compiler_wl='-Wl,'
8082       # All OSF/1 code is PIC.
8083       lt_prog_compiler_static='-non_shared'
8084       ;;
8085
8086     rdos*)
8087       lt_prog_compiler_static='-non_shared'
8088       ;;
8089
8090     solaris*)
8091       lt_prog_compiler_pic='-KPIC'
8092       lt_prog_compiler_static='-Bstatic'
8093       case $cc_basename in
8094       f77* | f90* | f95*)
8095         lt_prog_compiler_wl='-Qoption ld ';;
8096       *)
8097         lt_prog_compiler_wl='-Wl,';;
8098       esac
8099       ;;
8100
8101     sunos4*)
8102       lt_prog_compiler_wl='-Qoption ld '
8103       lt_prog_compiler_pic='-PIC'
8104       lt_prog_compiler_static='-Bstatic'
8105       ;;
8106
8107     sysv4 | sysv4.2uw2* | sysv4.3*)
8108       lt_prog_compiler_wl='-Wl,'
8109       lt_prog_compiler_pic='-KPIC'
8110       lt_prog_compiler_static='-Bstatic'
8111       ;;
8112
8113     sysv4*MP*)
8114       if test -d /usr/nec ;then
8115         lt_prog_compiler_pic='-Kconform_pic'
8116         lt_prog_compiler_static='-Bstatic'
8117       fi
8118       ;;
8119
8120     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8121       lt_prog_compiler_wl='-Wl,'
8122       lt_prog_compiler_pic='-KPIC'
8123       lt_prog_compiler_static='-Bstatic'
8124       ;;
8125
8126     unicos*)
8127       lt_prog_compiler_wl='-Wl,'
8128       lt_prog_compiler_can_build_shared=no
8129       ;;
8130
8131     uts4*)
8132       lt_prog_compiler_pic='-pic'
8133       lt_prog_compiler_static='-Bstatic'
8134       ;;
8135
8136     *)
8137       lt_prog_compiler_can_build_shared=no
8138       ;;
8139     esac
8140   fi
8141
8142 case $host_os in
8143   # For platforms which do not support PIC, -DPIC is meaningless:
8144   *djgpp*)
8145     lt_prog_compiler_pic=
8146     ;;
8147   *)
8148     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8149     ;;
8150 esac
8151 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8152 $as_echo "$lt_prog_compiler_pic" >&6; }
8153
8154
8155
8156
8157
8158
8159 #
8160 # Check to make sure the PIC flag actually works.
8161 #
8162 if test -n "$lt_prog_compiler_pic"; then
8163   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8164 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8165 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8166   $as_echo_n "(cached) " >&6
8167 else
8168   lt_cv_prog_compiler_pic_works=no
8169    ac_outfile=conftest.$ac_objext
8170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8172    # Insert the option either (1) after the last *FLAGS variable, or
8173    # (2) before a word containing "conftest.", or (3) at the end.
8174    # Note that $ac_compile itself does not contain backslashes and begins
8175    # with a dollar sign (not a hyphen), so the echo should work correctly.
8176    # The option is referenced via a variable to avoid confusing sed.
8177    lt_compile=`echo "$ac_compile" | $SED \
8178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180    -e 's:$: $lt_compiler_flag:'`
8181    (eval echo "\"\$as_me:8181: $lt_compile\"" >&5)
8182    (eval "$lt_compile" 2>conftest.err)
8183    ac_status=$?
8184    cat conftest.err >&5
8185    echo "$as_me:8185: \$? = $ac_status" >&5
8186    if (exit $ac_status) && test -s "$ac_outfile"; then
8187      # The compiler can only warn and ignore the option if not recognized
8188      # So say no if there are warnings other than the usual output.
8189      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8190      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8192        lt_cv_prog_compiler_pic_works=yes
8193      fi
8194    fi
8195    $RM conftest*
8196
8197 fi
8198 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8199 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8200
8201 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8202     case $lt_prog_compiler_pic in
8203      "" | " "*) ;;
8204      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8205      esac
8206 else
8207     lt_prog_compiler_pic=
8208      lt_prog_compiler_can_build_shared=no
8209 fi
8210
8211 fi
8212
8213
8214
8215
8216
8217
8218 #
8219 # Check to make sure the static flag actually works.
8220 #
8221 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8222 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8223 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8224 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8225   $as_echo_n "(cached) " >&6
8226 else
8227   lt_cv_prog_compiler_static_works=no
8228    save_LDFLAGS="$LDFLAGS"
8229    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8230    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8231    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8232      # The linker can only warn and ignore the option if not recognized
8233      # So say no if there are warnings
8234      if test -s conftest.err; then
8235        # Append any errors to the config.log.
8236        cat conftest.err 1>&5
8237        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8238        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239        if diff conftest.exp conftest.er2 >/dev/null; then
8240          lt_cv_prog_compiler_static_works=yes
8241        fi
8242      else
8243        lt_cv_prog_compiler_static_works=yes
8244      fi
8245    fi
8246    $RM -r conftest*
8247    LDFLAGS="$save_LDFLAGS"
8248
8249 fi
8250 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8251 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8252
8253 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8254     :
8255 else
8256     lt_prog_compiler_static=
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8267 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8268   $as_echo_n "(cached) " >&6
8269 else
8270   lt_cv_prog_compiler_c_o=no
8271    $RM -r conftest 2>/dev/null
8272    mkdir conftest
8273    cd conftest
8274    mkdir out
8275    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276
8277    lt_compiler_flag="-o out/conftest2.$ac_objext"
8278    # Insert the option either (1) after the last *FLAGS variable, or
8279    # (2) before a word containing "conftest.", or (3) at the end.
8280    # Note that $ac_compile itself does not contain backslashes and begins
8281    # with a dollar sign (not a hyphen), so the echo should work correctly.
8282    lt_compile=`echo "$ac_compile" | $SED \
8283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285    -e 's:$: $lt_compiler_flag:'`
8286    (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
8287    (eval "$lt_compile" 2>out/conftest.err)
8288    ac_status=$?
8289    cat out/conftest.err >&5
8290    echo "$as_me:8290: \$? = $ac_status" >&5
8291    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8292    then
8293      # The compiler can only warn and ignore the option if not recognized
8294      # So say no if there are warnings
8295      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8296      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8297      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8298        lt_cv_prog_compiler_c_o=yes
8299      fi
8300    fi
8301    chmod u+w . 2>&5
8302    $RM conftest*
8303    # SGI C++ compiler will create directory out/ii_files/ for
8304    # template instantiation
8305    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8306    $RM out/* && rmdir out
8307    cd ..
8308    $RM -r conftest
8309    $RM conftest*
8310
8311 fi
8312 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8313 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8314
8315
8316
8317
8318
8319
8320   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8323   $as_echo_n "(cached) " >&6
8324 else
8325   lt_cv_prog_compiler_c_o=no
8326    $RM -r conftest 2>/dev/null
8327    mkdir conftest
8328    cd conftest
8329    mkdir out
8330    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331
8332    lt_compiler_flag="-o out/conftest2.$ac_objext"
8333    # Insert the option either (1) after the last *FLAGS variable, or
8334    # (2) before a word containing "conftest.", or (3) at the end.
8335    # Note that $ac_compile itself does not contain backslashes and begins
8336    # with a dollar sign (not a hyphen), so the echo should work correctly.
8337    lt_compile=`echo "$ac_compile" | $SED \
8338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340    -e 's:$: $lt_compiler_flag:'`
8341    (eval echo "\"\$as_me:8341: $lt_compile\"" >&5)
8342    (eval "$lt_compile" 2>out/conftest.err)
8343    ac_status=$?
8344    cat out/conftest.err >&5
8345    echo "$as_me:8345: \$? = $ac_status" >&5
8346    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8347    then
8348      # The compiler can only warn and ignore the option if not recognized
8349      # So say no if there are warnings
8350      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8351      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353        lt_cv_prog_compiler_c_o=yes
8354      fi
8355    fi
8356    chmod u+w . 2>&5
8357    $RM conftest*
8358    # SGI C++ compiler will create directory out/ii_files/ for
8359    # template instantiation
8360    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361    $RM out/* && rmdir out
8362    cd ..
8363    $RM -r conftest
8364    $RM conftest*
8365
8366 fi
8367 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369
8370
8371
8372
8373 hard_links="nottested"
8374 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8375   # do not overwrite the value of need_locks provided by the user
8376   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8377 $as_echo_n "checking if we can lock with hard links... " >&6; }
8378   hard_links=yes
8379   $RM conftest*
8380   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8381   touch conftest.a
8382   ln conftest.a conftest.b 2>&5 || hard_links=no
8383   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8384   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8385 $as_echo "$hard_links" >&6; }
8386   if test "$hard_links" = no; then
8387     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8388 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8389     need_locks=warn
8390   fi
8391 else
8392   need_locks=no
8393 fi
8394
8395
8396
8397
8398
8399
8400   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8401 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8402
8403   runpath_var=
8404   allow_undefined_flag=
8405   always_export_symbols=no
8406   archive_cmds=
8407   archive_expsym_cmds=
8408   compiler_needs_object=no
8409   enable_shared_with_static_runtimes=no
8410   export_dynamic_flag_spec=
8411   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8412   hardcode_automatic=no
8413   hardcode_direct=no
8414   hardcode_direct_absolute=no
8415   hardcode_libdir_flag_spec=
8416   hardcode_libdir_flag_spec_ld=
8417   hardcode_libdir_separator=
8418   hardcode_minus_L=no
8419   hardcode_shlibpath_var=unsupported
8420   inherit_rpath=no
8421   link_all_deplibs=unknown
8422   module_cmds=
8423   module_expsym_cmds=
8424   old_archive_from_new_cmds=
8425   old_archive_from_expsyms_cmds=
8426   thread_safe_flag_spec=
8427   whole_archive_flag_spec=
8428   # include_expsyms should be a list of space-separated symbols to be *always*
8429   # included in the symbol list
8430   include_expsyms=
8431   # exclude_expsyms can be an extended regexp of symbols to exclude
8432   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8433   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8434   # as well as any symbol that contains `d'.
8435   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8436   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8437   # platforms (ab)use it in PIC code, but their linkers get confused if
8438   # the symbol is explicitly referenced.  Since portable code cannot
8439   # rely on this symbol name, it's probably fine to never include it in
8440   # preloaded symbol tables.
8441   # Exclude shared library initialization/finalization symbols.
8442   extract_expsyms_cmds=
8443
8444   case $host_os in
8445   cygwin* | mingw* | pw32* | cegcc*)
8446     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8447     # When not using gcc, we currently assume that we are using
8448     # Microsoft Visual C++.
8449     if test "$GCC" != yes; then
8450       with_gnu_ld=no
8451     fi
8452     ;;
8453   interix*)
8454     # we just hope/assume this is gcc and not c89 (= MSVC++)
8455     with_gnu_ld=yes
8456     ;;
8457   openbsd*)
8458     with_gnu_ld=no
8459     ;;
8460   esac
8461
8462   ld_shlibs=yes
8463   if test "$with_gnu_ld" = yes; then
8464     # If archive_cmds runs LD, not CC, wlarc should be empty
8465     wlarc='${wl}'
8466
8467     # Set some defaults for GNU ld with shared library support. These
8468     # are reset later if shared libraries are not supported. Putting them
8469     # here allows them to be overridden if necessary.
8470     runpath_var=LD_RUN_PATH
8471     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8472     export_dynamic_flag_spec='${wl}--export-dynamic'
8473     # ancient GNU ld didn't support --whole-archive et. al.
8474     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8475       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8476     else
8477       whole_archive_flag_spec=
8478     fi
8479     supports_anon_versioning=no
8480     case `$LD -v 2>&1` in
8481       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8482       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8483       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8484       *\ 2.11.*) ;; # other 2.11 versions
8485       *) supports_anon_versioning=yes ;;
8486     esac
8487
8488     # See if GNU ld supports shared libraries.
8489     case $host_os in
8490     aix[3-9]*)
8491       # On AIX/PPC, the GNU linker is very broken
8492       if test "$host_cpu" != ia64; then
8493         ld_shlibs=no
8494         cat <<_LT_EOF 1>&2
8495
8496 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8497 *** to be unable to reliably create shared libraries on AIX.
8498 *** Therefore, libtool is disabling shared libraries support.  If you
8499 *** really care for shared libraries, you may want to modify your PATH
8500 *** so that a non-GNU linker is found, and then restart.
8501
8502 _LT_EOF
8503       fi
8504       ;;
8505
8506     amigaos*)
8507       case $host_cpu in
8508       powerpc)
8509             # see comment about AmigaOS4 .so support
8510             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511             archive_expsym_cmds=''
8512         ;;
8513       m68k)
8514             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)'
8515             hardcode_libdir_flag_spec='-L$libdir'
8516             hardcode_minus_L=yes
8517         ;;
8518       esac
8519       ;;
8520
8521     beos*)
8522       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8523         allow_undefined_flag=unsupported
8524         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8525         # support --undefined.  This deserves some investigation.  FIXME
8526         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527       else
8528         ld_shlibs=no
8529       fi
8530       ;;
8531
8532     cygwin* | mingw* | pw32* | cegcc*)
8533       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8534       # as there is no search path for DLLs.
8535       hardcode_libdir_flag_spec='-L$libdir'
8536       allow_undefined_flag=unsupported
8537       always_export_symbols=no
8538       enable_shared_with_static_runtimes=yes
8539       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8540
8541       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8542         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8543         # If the export-symbols file already is a .def file (1st line
8544         # is EXPORTS), use it as is; otherwise, prepend...
8545         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8546           cp $export_symbols $output_objdir/$soname.def;
8547         else
8548           echo EXPORTS > $output_objdir/$soname.def;
8549           cat $export_symbols >> $output_objdir/$soname.def;
8550         fi~
8551         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8552       else
8553         ld_shlibs=no
8554       fi
8555       ;;
8556
8557     interix[3-9]*)
8558       hardcode_direct=no
8559       hardcode_shlibpath_var=no
8560       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8561       export_dynamic_flag_spec='${wl}-E'
8562       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8563       # Instead, shared libraries are loaded at an image base (0x10000000 by
8564       # default) and relocated if they conflict, which is a slow very memory
8565       # consuming and fragmenting process.  To avoid this, we pick a random,
8566       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8567       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8568       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8569       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'
8570       ;;
8571
8572     gnu* | linux* | tpf* | k*bsd*-gnu)
8573       tmp_diet=no
8574       if test "$host_os" = linux-dietlibc; then
8575         case $cc_basename in
8576           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8577         esac
8578       fi
8579       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8580          && test "$tmp_diet" = no
8581       then
8582         tmp_addflag=
8583         tmp_sharedflag='-shared'
8584         case $cc_basename,$host_cpu in
8585         pgcc*)                          # Portland Group C compiler
8586           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'
8587           tmp_addflag=' $pic_flag'
8588           ;;
8589         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8590           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'
8591           tmp_addflag=' $pic_flag -Mnomain' ;;
8592         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8593           tmp_addflag=' -i_dynamic' ;;
8594         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8595           tmp_addflag=' -i_dynamic -nofor_main' ;;
8596         ifc* | ifort*)                  # Intel Fortran compiler
8597           tmp_addflag=' -nofor_main' ;;
8598         lf95*)                          # Lahey Fortran 8.1
8599           whole_archive_flag_spec=
8600           tmp_sharedflag='--shared' ;;
8601         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8602           tmp_sharedflag='-qmkshrobj'
8603           tmp_addflag= ;;
8604         esac
8605         case `$CC -V 2>&1 | sed 5q` in
8606         *Sun\ C*)                       # Sun C 5.9
8607           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'
8608           compiler_needs_object=yes
8609           tmp_sharedflag='-G' ;;
8610         *Sun\ F*)                       # Sun Fortran 8.3
8611           tmp_sharedflag='-G' ;;
8612         esac
8613         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614
8615         if test "x$supports_anon_versioning" = xyes; then
8616           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618             echo "local: *; };" >> $output_objdir/$libname.ver~
8619             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8620         fi
8621
8622         case $cc_basename in
8623         xlf*)
8624           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8625           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8626           hardcode_libdir_flag_spec=
8627           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8628           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8629           if test "x$supports_anon_versioning" = xyes; then
8630             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8631               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8632               echo "local: *; };" >> $output_objdir/$libname.ver~
8633               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8634           fi
8635           ;;
8636         esac
8637       else
8638         ld_shlibs=no
8639       fi
8640       ;;
8641
8642     netbsd*)
8643       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8644         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8645         wlarc=
8646       else
8647         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8649       fi
8650       ;;
8651
8652     solaris*)
8653       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8654         ld_shlibs=no
8655         cat <<_LT_EOF 1>&2
8656
8657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8658 *** create shared libraries on Solaris systems.  Therefore, libtool
8659 *** is disabling shared libraries support.  We urge you to upgrade GNU
8660 *** binutils to release 2.9.1 or newer.  Another option is to modify
8661 *** your PATH or compiler configuration so that the native linker is
8662 *** used, and then restart.
8663
8664 _LT_EOF
8665       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8666         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668       else
8669         ld_shlibs=no
8670       fi
8671       ;;
8672
8673     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8674       case `$LD -v 2>&1` in
8675         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8676         ld_shlibs=no
8677         cat <<_LT_EOF 1>&2
8678
8679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8680 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8681 *** is disabling shared libraries support.  We urge you to upgrade GNU
8682 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8683 *** your PATH or compiler configuration so that the native linker is
8684 *** used, and then restart.
8685
8686 _LT_EOF
8687         ;;
8688         *)
8689           # For security reasons, it is highly recommended that you always
8690           # use absolute paths for naming shared libraries, and exclude the
8691           # DT_RUNPATH tag from executables and libraries.  But doing so
8692           # requires that you compile everything twice, which is a pain.
8693           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697           else
8698             ld_shlibs=no
8699           fi
8700         ;;
8701       esac
8702       ;;
8703
8704     sunos4*)
8705       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8706       wlarc=
8707       hardcode_direct=yes
8708       hardcode_shlibpath_var=no
8709       ;;
8710
8711     *)
8712       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715       else
8716         ld_shlibs=no
8717       fi
8718       ;;
8719     esac
8720
8721     if test "$ld_shlibs" = no; then
8722       runpath_var=
8723       hardcode_libdir_flag_spec=
8724       export_dynamic_flag_spec=
8725       whole_archive_flag_spec=
8726     fi
8727   else
8728     # PORTME fill in a description of your system's linker (not GNU ld)
8729     case $host_os in
8730     aix3*)
8731       allow_undefined_flag=unsupported
8732       always_export_symbols=yes
8733       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'
8734       # Note: this linker hardcodes the directories in LIBPATH if there
8735       # are no directories specified by -L.
8736       hardcode_minus_L=yes
8737       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8738         # Neither direct hardcoding nor static linking is supported with a
8739         # broken collect2.
8740         hardcode_direct=unsupported
8741       fi
8742       ;;
8743
8744     aix[4-9]*)
8745       if test "$host_cpu" = ia64; then
8746         # On IA64, the linker does run time linking by default, so we don't
8747         # have to do anything special.
8748         aix_use_runtimelinking=no
8749         exp_sym_flag='-Bexport'
8750         no_entry_flag=""
8751       else
8752         # If we're using GNU nm, then we don't want the "-C" option.
8753         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8754         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8755           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'
8756         else
8757           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'
8758         fi
8759         aix_use_runtimelinking=no
8760
8761         # Test if we are trying to use run time linking or normal
8762         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763         # need to do runtime linking.
8764         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8765           for ld_flag in $LDFLAGS; do
8766           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8767             aix_use_runtimelinking=yes
8768             break
8769           fi
8770           done
8771           ;;
8772         esac
8773
8774         exp_sym_flag='-bexport'
8775         no_entry_flag='-bnoentry'
8776       fi
8777
8778       # When large executables or shared objects are built, AIX ld can
8779       # have problems creating the table of contents.  If linking a library
8780       # or program results in "error TOC overflow" add -mminimal-toc to
8781       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8782       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8783
8784       archive_cmds=''
8785       hardcode_direct=yes
8786       hardcode_direct_absolute=yes
8787       hardcode_libdir_separator=':'
8788       link_all_deplibs=yes
8789       file_list_spec='${wl}-f,'
8790
8791       if test "$GCC" = yes; then
8792         case $host_os in aix4.[012]|aix4.[012].*)
8793         # We only want to do this on AIX 4.2 and lower, the check
8794         # below for broken collect2 doesn't work under 4.3+
8795           collect2name=`${CC} -print-prog-name=collect2`
8796           if test -f "$collect2name" &&
8797            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8798           then
8799           # We have reworked collect2
8800           :
8801           else
8802           # We have old collect2
8803           hardcode_direct=unsupported
8804           # It fails to find uninstalled libraries when the uninstalled
8805           # path is not listed in the libpath.  Setting hardcode_minus_L
8806           # to unsupported forces relinking
8807           hardcode_minus_L=yes
8808           hardcode_libdir_flag_spec='-L$libdir'
8809           hardcode_libdir_separator=
8810           fi
8811           ;;
8812         esac
8813         shared_flag='-shared'
8814         if test "$aix_use_runtimelinking" = yes; then
8815           shared_flag="$shared_flag "'${wl}-G'
8816         fi
8817       else
8818         # not using gcc
8819         if test "$host_cpu" = ia64; then
8820         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8821         # chokes on -Wl,-G. The following line is correct:
8822           shared_flag='-G'
8823         else
8824           if test "$aix_use_runtimelinking" = yes; then
8825             shared_flag='${wl}-G'
8826           else
8827             shared_flag='${wl}-bM:SRE'
8828           fi
8829         fi
8830       fi
8831
8832       export_dynamic_flag_spec='${wl}-bexpall'
8833       # It seems that -bexpall does not export symbols beginning with
8834       # underscore (_), so it is better to generate a list of symbols to export.
8835       always_export_symbols=yes
8836       if test "$aix_use_runtimelinking" = yes; then
8837         # Warning - without using the other runtime loading flags (-brtl),
8838         # -berok will link without error, but may produce a broken library.
8839         allow_undefined_flag='-berok'
8840         # Determine the default libpath from the value encoded in an
8841         # empty executable.
8842         cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h.  */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h.  */
8848
8849 int
8850 main ()
8851 {
8852
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (ac_try="$ac_link"
8859 case "(($ac_try" in
8860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861   *) ac_try_echo=$ac_try;;
8862 esac
8863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8864 $as_echo "$ac_try_echo") >&5
8865   (eval "$ac_link") 2>conftest.er1
8866   ac_status=$?
8867   grep -v '^ *+' conftest.er1 >conftest.err
8868   rm -f conftest.er1
8869   cat conftest.err >&5
8870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); } && {
8872          test -z "$ac_c_werror_flag" ||
8873          test ! -s conftest.err
8874        } && test -s conftest$ac_exeext && {
8875          test "$cross_compiling" = yes ||
8876          $as_test_x conftest$ac_exeext
8877        }; then
8878
8879 lt_aix_libpath_sed='
8880     /Import File Strings/,/^$/ {
8881         /^0/ {
8882             s/^0  *\(.*\)$/\1/
8883             p
8884         }
8885     }'
8886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 # Check for a 64-bit object if we didn't find anything.
8888 if test -z "$aix_libpath"; then
8889   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8890 fi
8891 else
8892   $as_echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895
8896 fi
8897
8898 rm -rf conftest.dSYM
8899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8900       conftest$ac_exeext conftest.$ac_ext
8901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8902
8903         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8904         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"
8905       else
8906         if test "$host_cpu" = ia64; then
8907           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8908           allow_undefined_flag="-z nodefs"
8909           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"
8910         else
8911          # Determine the default libpath from the value encoded in an
8912          # empty executable.
8913          cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h.  */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h.  */
8919
8920 int
8921 main ()
8922 {
8923
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8935 $as_echo "$ac_try_echo") >&5
8936   (eval "$ac_link") 2>conftest.er1
8937   ac_status=$?
8938   grep -v '^ *+' conftest.er1 >conftest.err
8939   rm -f conftest.er1
8940   cat conftest.err >&5
8941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } && {
8943          test -z "$ac_c_werror_flag" ||
8944          test ! -s conftest.err
8945        } && test -s conftest$ac_exeext && {
8946          test "$cross_compiling" = yes ||
8947          $as_test_x conftest$ac_exeext
8948        }; then
8949
8950 lt_aix_libpath_sed='
8951     /Import File Strings/,/^$/ {
8952         /^0/ {
8953             s/^0  *\(.*\)$/\1/
8954             p
8955         }
8956     }'
8957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8958 # Check for a 64-bit object if we didn't find anything.
8959 if test -z "$aix_libpath"; then
8960   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8961 fi
8962 else
8963   $as_echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966
8967 fi
8968
8969 rm -rf conftest.dSYM
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971       conftest$ac_exeext conftest.$ac_ext
8972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8973
8974          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8975           # Warning - without using the other run time loading flags,
8976           # -berok will link without error, but may produce a broken library.
8977           no_undefined_flag=' ${wl}-bernotok'
8978           allow_undefined_flag=' ${wl}-berok'
8979           # Exported symbols can be pulled into shared objects from archives
8980           whole_archive_flag_spec='$convenience'
8981           archive_cmds_need_lc=yes
8982           # This is similar to how AIX traditionally builds its shared libraries.
8983           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'
8984         fi
8985       fi
8986       ;;
8987
8988     amigaos*)
8989       case $host_cpu in
8990       powerpc)
8991             # see comment about AmigaOS4 .so support
8992             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993             archive_expsym_cmds=''
8994         ;;
8995       m68k)
8996             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)'
8997             hardcode_libdir_flag_spec='-L$libdir'
8998             hardcode_minus_L=yes
8999         ;;
9000       esac
9001       ;;
9002
9003     bsdi[45]*)
9004       export_dynamic_flag_spec=-rdynamic
9005       ;;
9006
9007     cygwin* | mingw* | pw32* | cegcc*)
9008       # When not using gcc, we currently assume that we are using
9009       # Microsoft Visual C++.
9010       # hardcode_libdir_flag_spec is actually meaningless, as there is
9011       # no search path for DLLs.
9012       hardcode_libdir_flag_spec=' '
9013       allow_undefined_flag=unsupported
9014       # Tell ltmain to make .lib files, not .a files.
9015       libext=lib
9016       # Tell ltmain to make .dll files, not .so files.
9017       shrext_cmds=".dll"
9018       # FIXME: Setting linknames here is a bad hack.
9019       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9020       # The linker will automatically build a .lib file if we build a DLL.
9021       old_archive_from_new_cmds='true'
9022       # FIXME: Should let the user specify the lib program.
9023       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9024       fix_srcfile_path='`cygpath -w "$srcfile"`'
9025       enable_shared_with_static_runtimes=yes
9026       ;;
9027
9028     darwin* | rhapsody*)
9029
9030
9031   archive_cmds_need_lc=no
9032   hardcode_direct=no
9033   hardcode_automatic=yes
9034   hardcode_shlibpath_var=unsupported
9035   whole_archive_flag_spec=''
9036   link_all_deplibs=yes
9037   allow_undefined_flag="$_lt_dar_allow_undefined"
9038   case $cc_basename in
9039      ifort*) _lt_dar_can_shared=yes ;;
9040      *) _lt_dar_can_shared=$GCC ;;
9041   esac
9042   if test "$_lt_dar_can_shared" = "yes"; then
9043     output_verbose_link_cmd=echo
9044     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9045     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9046     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}"
9047     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}"
9048
9049   else
9050   ld_shlibs=no
9051   fi
9052
9053       ;;
9054
9055     dgux*)
9056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057       hardcode_libdir_flag_spec='-L$libdir'
9058       hardcode_shlibpath_var=no
9059       ;;
9060
9061     freebsd1*)
9062       ld_shlibs=no
9063       ;;
9064
9065     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9066     # support.  Future versions do this automatically, but an explicit c++rt0.o
9067     # does not break anything, and helps significantly (at the cost of a little
9068     # extra space).
9069     freebsd2.2*)
9070       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9071       hardcode_libdir_flag_spec='-R$libdir'
9072       hardcode_direct=yes
9073       hardcode_shlibpath_var=no
9074       ;;
9075
9076     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9077     freebsd2*)
9078       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9079       hardcode_direct=yes
9080       hardcode_minus_L=yes
9081       hardcode_shlibpath_var=no
9082       ;;
9083
9084     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9085     freebsd* | dragonfly*)
9086       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9087       hardcode_libdir_flag_spec='-R$libdir'
9088       hardcode_direct=yes
9089       hardcode_shlibpath_var=no
9090       ;;
9091
9092     hpux9*)
9093       if test "$GCC" = yes; then
9094         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'
9095       else
9096         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'
9097       fi
9098       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9099       hardcode_libdir_separator=:
9100       hardcode_direct=yes
9101
9102       # hardcode_minus_L: Not really in the search PATH,
9103       # but as the default location of the library.
9104       hardcode_minus_L=yes
9105       export_dynamic_flag_spec='${wl}-E'
9106       ;;
9107
9108     hpux10*)
9109       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9110         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9111       else
9112         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9113       fi
9114       if test "$with_gnu_ld" = no; then
9115         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9116         hardcode_libdir_flag_spec_ld='+b $libdir'
9117         hardcode_libdir_separator=:
9118         hardcode_direct=yes
9119         hardcode_direct_absolute=yes
9120         export_dynamic_flag_spec='${wl}-E'
9121         # hardcode_minus_L: Not really in the search PATH,
9122         # but as the default location of the library.
9123         hardcode_minus_L=yes
9124       fi
9125       ;;
9126
9127     hpux11*)
9128       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9129         case $host_cpu in
9130         hppa*64*)
9131           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9132           ;;
9133         ia64*)
9134           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9135           ;;
9136         *)
9137           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9138           ;;
9139         esac
9140       else
9141         case $host_cpu in
9142         hppa*64*)
9143           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9144           ;;
9145         ia64*)
9146           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9147           ;;
9148         *)
9149           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9150           ;;
9151         esac
9152       fi
9153       if test "$with_gnu_ld" = no; then
9154         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9155         hardcode_libdir_separator=:
9156
9157         case $host_cpu in
9158         hppa*64*|ia64*)
9159           hardcode_direct=no
9160           hardcode_shlibpath_var=no
9161           ;;
9162         *)
9163           hardcode_direct=yes
9164           hardcode_direct_absolute=yes
9165           export_dynamic_flag_spec='${wl}-E'
9166
9167           # hardcode_minus_L: Not really in the search PATH,
9168           # but as the default location of the library.
9169           hardcode_minus_L=yes
9170           ;;
9171         esac
9172       fi
9173       ;;
9174
9175     irix5* | irix6* | nonstopux*)
9176       if test "$GCC" = yes; then
9177         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'
9178         # Try to use the -exported_symbol ld option, if it does not
9179         # work, assume that -exports_file does not work either and
9180         # implicitly export all symbols.
9181         save_LDFLAGS="$LDFLAGS"
9182         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9183         cat >conftest.$ac_ext <<_ACEOF
9184 int foo(void) {}
9185 _ACEOF
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (ac_try="$ac_link"
9188 case "(($ac_try" in
9189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190   *) ac_try_echo=$ac_try;;
9191 esac
9192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9193 $as_echo "$ac_try_echo") >&5
9194   (eval "$ac_link") 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } && {
9201          test -z "$ac_c_werror_flag" ||
9202          test ! -s conftest.err
9203        } && test -s conftest$ac_exeext && {
9204          test "$cross_compiling" = yes ||
9205          $as_test_x conftest$ac_exeext
9206        }; then
9207   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'
9208
9209 else
9210   $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213
9214 fi
9215
9216 rm -rf conftest.dSYM
9217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9218       conftest$ac_exeext conftest.$ac_ext
9219         LDFLAGS="$save_LDFLAGS"
9220       else
9221         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'
9222         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'
9223       fi
9224       archive_cmds_need_lc='no'
9225       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9226       hardcode_libdir_separator=:
9227       inherit_rpath=yes
9228       link_all_deplibs=yes
9229       ;;
9230
9231     netbsd*)
9232       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9233         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9234       else
9235         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9236       fi
9237       hardcode_libdir_flag_spec='-R$libdir'
9238       hardcode_direct=yes
9239       hardcode_shlibpath_var=no
9240       ;;
9241
9242     newsos6)
9243       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244       hardcode_direct=yes
9245       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246       hardcode_libdir_separator=:
9247       hardcode_shlibpath_var=no
9248       ;;
9249
9250     *nto* | *qnx*)
9251       ;;
9252
9253     openbsd*)
9254       if test -f /usr/libexec/ld.so; then
9255         hardcode_direct=yes
9256         hardcode_shlibpath_var=no
9257         hardcode_direct_absolute=yes
9258         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9259           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9260           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9261           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262           export_dynamic_flag_spec='${wl}-E'
9263         else
9264           case $host_os in
9265            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9266              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267              hardcode_libdir_flag_spec='-R$libdir'
9268              ;;
9269            *)
9270              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272              ;;
9273           esac
9274         fi
9275       else
9276         ld_shlibs=no
9277       fi
9278       ;;
9279
9280     os2*)
9281       hardcode_libdir_flag_spec='-L$libdir'
9282       hardcode_minus_L=yes
9283       allow_undefined_flag=unsupported
9284       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'
9285       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9286       ;;
9287
9288     osf3*)
9289       if test "$GCC" = yes; then
9290         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291         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'
9292       else
9293         allow_undefined_flag=' -expect_unresolved \*'
9294         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'
9295       fi
9296       archive_cmds_need_lc='no'
9297       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298       hardcode_libdir_separator=:
9299       ;;
9300
9301     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9302       if test "$GCC" = yes; then
9303         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9304         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'
9305         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306       else
9307         allow_undefined_flag=' -expect_unresolved \*'
9308         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'
9309         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~
9310         $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'
9311
9312         # Both c and cxx compiler support -rpath directly
9313         hardcode_libdir_flag_spec='-rpath $libdir'
9314       fi
9315       archive_cmds_need_lc='no'
9316       hardcode_libdir_separator=:
9317       ;;
9318
9319     solaris*)
9320       no_undefined_flag=' -z defs'
9321       if test "$GCC" = yes; then
9322         wlarc='${wl}'
9323         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9326       else
9327         case `$CC -V 2>&1` in
9328         *"Compilers 5.0"*)
9329           wlarc=''
9330           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9332           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9333           ;;
9334         *)
9335           wlarc='${wl}'
9336           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9338           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9339           ;;
9340         esac
9341       fi
9342       hardcode_libdir_flag_spec='-R$libdir'
9343       hardcode_shlibpath_var=no
9344       case $host_os in
9345       solaris2.[0-5] | solaris2.[0-5].*) ;;
9346       *)
9347         # The compiler driver will combine and reorder linker options,
9348         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9349         # but is careful enough not to reorder.
9350         # Supported since Solaris 2.6 (maybe 2.5.1?)
9351         if test "$GCC" = yes; then
9352           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9353         else
9354           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9355         fi
9356         ;;
9357       esac
9358       link_all_deplibs=yes
9359       ;;
9360
9361     sunos4*)
9362       if test "x$host_vendor" = xsequent; then
9363         # Use $CC to link under sequent, because it throws in some extra .o
9364         # files that make .init and .fini sections work.
9365         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9366       else
9367         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9368       fi
9369       hardcode_libdir_flag_spec='-L$libdir'
9370       hardcode_direct=yes
9371       hardcode_minus_L=yes
9372       hardcode_shlibpath_var=no
9373       ;;
9374
9375     sysv4)
9376       case $host_vendor in
9377         sni)
9378           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379           hardcode_direct=yes # is this really true???
9380         ;;
9381         siemens)
9382           ## LD is ld it makes a PLAMLIB
9383           ## CC just makes a GrossModule.
9384           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9385           reload_cmds='$CC -r -o $output$reload_objs'
9386           hardcode_direct=no
9387         ;;
9388         motorola)
9389           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9391         ;;
9392       esac
9393       runpath_var='LD_RUN_PATH'
9394       hardcode_shlibpath_var=no
9395       ;;
9396
9397     sysv4.3*)
9398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399       hardcode_shlibpath_var=no
9400       export_dynamic_flag_spec='-Bexport'
9401       ;;
9402
9403     sysv4*MP*)
9404       if test -d /usr/nec; then
9405         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406         hardcode_shlibpath_var=no
9407         runpath_var=LD_RUN_PATH
9408         hardcode_runpath_var=yes
9409         ld_shlibs=yes
9410       fi
9411       ;;
9412
9413     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9414       no_undefined_flag='${wl}-z,text'
9415       archive_cmds_need_lc=no
9416       hardcode_shlibpath_var=no
9417       runpath_var='LD_RUN_PATH'
9418
9419       if test "$GCC" = yes; then
9420         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422       else
9423         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425       fi
9426       ;;
9427
9428     sysv5* | sco3.2v5* | sco5v6*)
9429       # Note: We can NOT use -z defs as we might desire, because we do not
9430       # link with -lc, and that would cause any symbols used from libc to
9431       # always be unresolved, which means just about no library would
9432       # ever link correctly.  If we're not using GNU ld we use -z text
9433       # though, which does catch some bad symbols but isn't as heavy-handed
9434       # as -z defs.
9435       no_undefined_flag='${wl}-z,text'
9436       allow_undefined_flag='${wl}-z,nodefs'
9437       archive_cmds_need_lc=no
9438       hardcode_shlibpath_var=no
9439       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9440       hardcode_libdir_separator=':'
9441       link_all_deplibs=yes
9442       export_dynamic_flag_spec='${wl}-Bexport'
9443       runpath_var='LD_RUN_PATH'
9444
9445       if test "$GCC" = yes; then
9446         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448       else
9449         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451       fi
9452       ;;
9453
9454     uts4*)
9455       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456       hardcode_libdir_flag_spec='-L$libdir'
9457       hardcode_shlibpath_var=no
9458       ;;
9459
9460     *)
9461       ld_shlibs=no
9462       ;;
9463     esac
9464
9465     if test x$host_vendor = xsni; then
9466       case $host in
9467       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9468         export_dynamic_flag_spec='${wl}-Blargedynsym'
9469         ;;
9470       esac
9471     fi
9472   fi
9473
9474 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9475 $as_echo "$ld_shlibs" >&6; }
9476 test "$ld_shlibs" = no && can_build_shared=no
9477
9478 with_gnu_ld=$with_gnu_ld
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494 #
9495 # Do we need to explicitly link libc?
9496 #
9497 case "x$archive_cmds_need_lc" in
9498 x|xyes)
9499   # Assume -lc should be added
9500   archive_cmds_need_lc=yes
9501
9502   if test "$enable_shared" = yes && test "$GCC" = yes; then
9503     case $archive_cmds in
9504     *'~'*)
9505       # FIXME: we may have to deal with multi-command sequences.
9506       ;;
9507     '$CC '*)
9508       # Test whether the compiler implicitly links with -lc since on some
9509       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9510       # to ld, don't add -lc before -lgcc.
9511       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9512 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9513       $RM conftest*
9514       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9515
9516       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517   (eval $ac_compile) 2>&5
9518   ac_status=$?
9519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } 2>conftest.err; then
9521         soname=conftest
9522         lib=conftest
9523         libobjs=conftest.$ac_objext
9524         deplibs=
9525         wl=$lt_prog_compiler_wl
9526         pic_flag=$lt_prog_compiler_pic
9527         compiler_flags=-v
9528         linker_flags=-v
9529         verstring=
9530         output_objdir=.
9531         libname=conftest
9532         lt_save_allow_undefined_flag=$allow_undefined_flag
9533         allow_undefined_flag=
9534         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9535   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9536   ac_status=$?
9537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }
9539         then
9540           archive_cmds_need_lc=no
9541         else
9542           archive_cmds_need_lc=yes
9543         fi
9544         allow_undefined_flag=$lt_save_allow_undefined_flag
9545       else
9546         cat conftest.err 1>&5
9547       fi
9548       $RM conftest*
9549       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9550 $as_echo "$archive_cmds_need_lc" >&6; }
9551       ;;
9552     esac
9553   fi
9554   ;;
9555 esac
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9714 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9715
9716 if test "$GCC" = yes; then
9717   case $host_os in
9718     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9719     *) lt_awk_arg="/^libraries:/" ;;
9720   esac
9721   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9722   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9723     # if the path contains ";" then we assume it to be the separator
9724     # otherwise default to the standard path separator (i.e. ":") - it is
9725     # assumed that no part of a normal pathname contains ";" but that should
9726     # okay in the real world where ";" in dirpaths is itself problematic.
9727     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9728   else
9729     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9730   fi
9731   # Ok, now we have the path, separated by spaces, we can step through it
9732   # and add multilib dir if necessary.
9733   lt_tmp_lt_search_path_spec=
9734   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9735   for lt_sys_path in $lt_search_path_spec; do
9736     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9737       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9738     else
9739       test -d "$lt_sys_path" && \
9740         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9741     fi
9742   done
9743   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9744 BEGIN {RS=" "; FS="/|\n";} {
9745   lt_foo="";
9746   lt_count=0;
9747   for (lt_i = NF; lt_i > 0; lt_i--) {
9748     if ($lt_i != "" && $lt_i != ".") {
9749       if ($lt_i == "..") {
9750         lt_count++;
9751       } else {
9752         if (lt_count == 0) {
9753           lt_foo="/" $lt_i lt_foo;
9754         } else {
9755           lt_count--;
9756         }
9757       }
9758     }
9759   }
9760   if (lt_foo != "") { lt_freq[lt_foo]++; }
9761   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9762 }'`
9763   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9764 else
9765   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9766 fi
9767 library_names_spec=
9768 libname_spec='lib$name'
9769 soname_spec=
9770 shrext_cmds=".so"
9771 postinstall_cmds=
9772 postuninstall_cmds=
9773 finish_cmds=
9774 finish_eval=
9775 shlibpath_var=
9776 shlibpath_overrides_runpath=unknown
9777 version_type=none
9778 dynamic_linker="$host_os ld.so"
9779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9780 need_lib_prefix=unknown
9781 hardcode_into_libs=no
9782
9783 # when you set need_version to no, make sure it does not cause -set_version
9784 # flags to be left without arguments
9785 need_version=unknown
9786
9787 case $host_os in
9788 aix3*)
9789   version_type=linux
9790   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9791   shlibpath_var=LIBPATH
9792
9793   # AIX 3 has no versioning support, so we append a major version to the name.
9794   soname_spec='${libname}${release}${shared_ext}$major'
9795   ;;
9796
9797 aix[4-9]*)
9798   version_type=linux
9799   need_lib_prefix=no
9800   need_version=no
9801   hardcode_into_libs=yes
9802   if test "$host_cpu" = ia64; then
9803     # AIX 5 supports IA64
9804     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9805     shlibpath_var=LD_LIBRARY_PATH
9806   else
9807     # With GCC up to 2.95.x, collect2 would create an import file
9808     # for dependence libraries.  The import file would start with
9809     # the line `#! .'.  This would cause the generated library to
9810     # depend on `.', always an invalid library.  This was fixed in
9811     # development snapshots of GCC prior to 3.0.
9812     case $host_os in
9813       aix4 | aix4.[01] | aix4.[01].*)
9814       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9815            echo ' yes '
9816            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9817         :
9818       else
9819         can_build_shared=no
9820       fi
9821       ;;
9822     esac
9823     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9824     # soname into executable. Probably we can add versioning support to
9825     # collect2, so additional links can be useful in future.
9826     if test "$aix_use_runtimelinking" = yes; then
9827       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9828       # instead of lib<name>.a to let people know that these are not
9829       # typical AIX shared libraries.
9830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831     else
9832       # We preserve .a as extension for shared libraries through AIX4.2
9833       # and later when we are not doing run time linking.
9834       library_names_spec='${libname}${release}.a $libname.a'
9835       soname_spec='${libname}${release}${shared_ext}$major'
9836     fi
9837     shlibpath_var=LIBPATH
9838   fi
9839   ;;
9840
9841 amigaos*)
9842   case $host_cpu in
9843   powerpc)
9844     # Since July 2007 AmigaOS4 officially supports .so libraries.
9845     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847     ;;
9848   m68k)
9849     library_names_spec='$libname.ixlibrary $libname.a'
9850     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9851     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'
9852     ;;
9853   esac
9854   ;;
9855
9856 beos*)
9857   library_names_spec='${libname}${shared_ext}'
9858   dynamic_linker="$host_os ld.so"
9859   shlibpath_var=LIBRARY_PATH
9860   ;;
9861
9862 bsdi[45]*)
9863   version_type=linux
9864   need_version=no
9865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866   soname_spec='${libname}${release}${shared_ext}$major'
9867   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9868   shlibpath_var=LD_LIBRARY_PATH
9869   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9870   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9871   # the default ld.so.conf also contains /usr/contrib/lib and
9872   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9873   # libtool to hard-code these into programs
9874   ;;
9875
9876 cygwin* | mingw* | pw32* | cegcc*)
9877   version_type=windows
9878   shrext_cmds=".dll"
9879   need_version=no
9880   need_lib_prefix=no
9881
9882   case $GCC,$host_os in
9883   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9884     library_names_spec='$libname.dll.a'
9885     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9886     postinstall_cmds='base_file=`basename \${file}`~
9887       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9888       dldir=$destdir/`dirname \$dlpath`~
9889       test -d \$dldir || mkdir -p \$dldir~
9890       $install_prog $dir/$dlname \$dldir/$dlname~
9891       chmod a+x \$dldir/$dlname~
9892       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9893         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9894       fi'
9895     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9896       dlpath=$dir/\$dldll~
9897        $RM \$dlpath'
9898     shlibpath_overrides_runpath=yes
9899
9900     case $host_os in
9901     cygwin*)
9902       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9903       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9905       ;;
9906     mingw* | cegcc*)
9907       # MinGW DLLs use traditional 'lib' prefix
9908       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9910       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9911         # It is most probably a Windows format PATH printed by
9912         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9913         # path with ; separators, and with drive letters. We can handle the
9914         # drive letters (cygwin fileutils understands them), so leave them,
9915         # especially as we might pass files found there to a mingw objdump,
9916         # which wouldn't understand a cygwinified path. Ahh.
9917         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9918       else
9919         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9920       fi
9921       ;;
9922     pw32*)
9923       # pw32 DLLs use 'pw' prefix rather than 'lib'
9924       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925       ;;
9926     esac
9927     ;;
9928
9929   *)
9930     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9931     ;;
9932   esac
9933   dynamic_linker='Win32 ld.exe'
9934   # FIXME: first we should search . and the directory the executable is in
9935   shlibpath_var=PATH
9936   ;;
9937
9938 darwin* | rhapsody*)
9939   dynamic_linker="$host_os dyld"
9940   version_type=darwin
9941   need_lib_prefix=no
9942   need_version=no
9943   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9944   soname_spec='${libname}${release}${major}$shared_ext'
9945   shlibpath_overrides_runpath=yes
9946   shlibpath_var=DYLD_LIBRARY_PATH
9947   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9948
9949   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9950   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9951   ;;
9952
9953 dgux*)
9954   version_type=linux
9955   need_lib_prefix=no
9956   need_version=no
9957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9958   soname_spec='${libname}${release}${shared_ext}$major'
9959   shlibpath_var=LD_LIBRARY_PATH
9960   ;;
9961
9962 freebsd1*)
9963   dynamic_linker=no
9964   ;;
9965
9966 freebsd* | dragonfly*)
9967   # DragonFly does not have aout.  When/if they implement a new
9968   # versioning mechanism, adjust this.
9969   if test -x /usr/bin/objformat; then
9970     objformat=`/usr/bin/objformat`
9971   else
9972     case $host_os in
9973     freebsd[123]*) objformat=aout ;;
9974     *) objformat=elf ;;
9975     esac
9976   fi
9977   version_type=freebsd-$objformat
9978   case $version_type in
9979     freebsd-elf*)
9980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9981       need_version=no
9982       need_lib_prefix=no
9983       ;;
9984     freebsd-*)
9985       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9986       need_version=yes
9987       ;;
9988   esac
9989   shlibpath_var=LD_LIBRARY_PATH
9990   case $host_os in
9991   freebsd2*)
9992     shlibpath_overrides_runpath=yes
9993     ;;
9994   freebsd3.[01]* | freebsdelf3.[01]*)
9995     shlibpath_overrides_runpath=yes
9996     hardcode_into_libs=yes
9997     ;;
9998   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000     shlibpath_overrides_runpath=no
10001     hardcode_into_libs=yes
10002     ;;
10003   *) # from 4.6 on, and DragonFly
10004     shlibpath_overrides_runpath=yes
10005     hardcode_into_libs=yes
10006     ;;
10007   esac
10008   ;;
10009
10010 gnu*)
10011   version_type=linux
10012   need_lib_prefix=no
10013   need_version=no
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   hardcode_into_libs=yes
10018   ;;
10019
10020 hpux9* | hpux10* | hpux11*)
10021   # Give a soname corresponding to the major version so that dld.sl refuses to
10022   # link against other versions.
10023   version_type=sunos
10024   need_lib_prefix=no
10025   need_version=no
10026   case $host_cpu in
10027   ia64*)
10028     shrext_cmds='.so'
10029     hardcode_into_libs=yes
10030     dynamic_linker="$host_os dld.so"
10031     shlibpath_var=LD_LIBRARY_PATH
10032     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034     soname_spec='${libname}${release}${shared_ext}$major'
10035     if test "X$HPUX_IA64_MODE" = X32; then
10036       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10037     else
10038       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10039     fi
10040     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10041     ;;
10042   hppa*64*)
10043     shrext_cmds='.sl'
10044     hardcode_into_libs=yes
10045     dynamic_linker="$host_os dld.sl"
10046     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049     soname_spec='${libname}${release}${shared_ext}$major'
10050     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052     ;;
10053   *)
10054     shrext_cmds='.sl'
10055     dynamic_linker="$host_os dld.sl"
10056     shlibpath_var=SHLIB_PATH
10057     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059     soname_spec='${libname}${release}${shared_ext}$major'
10060     ;;
10061   esac
10062   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10063   postinstall_cmds='chmod 555 $lib'
10064   ;;
10065
10066 interix[3-9]*)
10067   version_type=linux
10068   need_lib_prefix=no
10069   need_version=no
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071   soname_spec='${libname}${release}${shared_ext}$major'
10072   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10073   shlibpath_var=LD_LIBRARY_PATH
10074   shlibpath_overrides_runpath=no
10075   hardcode_into_libs=yes
10076   ;;
10077
10078 irix5* | irix6* | nonstopux*)
10079   case $host_os in
10080     nonstopux*) version_type=nonstopux ;;
10081     *)
10082         if test "$lt_cv_prog_gnu_ld" = yes; then
10083                 version_type=linux
10084         else
10085                 version_type=irix
10086         fi ;;
10087   esac
10088   need_lib_prefix=no
10089   need_version=no
10090   soname_spec='${libname}${release}${shared_ext}$major'
10091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10092   case $host_os in
10093   irix5* | nonstopux*)
10094     libsuff= shlibsuff=
10095     ;;
10096   *)
10097     case $LD in # libtool.m4 will add one of these switches to LD
10098     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10099       libsuff= shlibsuff= libmagic=32-bit;;
10100     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10101       libsuff=32 shlibsuff=N32 libmagic=N32;;
10102     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10103       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10104     *) libsuff= shlibsuff= libmagic=never-match;;
10105     esac
10106     ;;
10107   esac
10108   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10109   shlibpath_overrides_runpath=no
10110   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10111   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10112   hardcode_into_libs=yes
10113   ;;
10114
10115 # No shared lib support for Linux oldld, aout, or coff.
10116 linux*oldld* | linux*aout* | linux*coff*)
10117   dynamic_linker=no
10118   ;;
10119
10120 # This must be Linux ELF.
10121 linux* | k*bsd*-gnu)
10122   version_type=linux
10123   need_lib_prefix=no
10124   need_version=no
10125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126   soname_spec='${libname}${release}${shared_ext}$major'
10127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10128   shlibpath_var=LD_LIBRARY_PATH
10129   shlibpath_overrides_runpath=no
10130   # Some binutils ld are patched to set DT_RUNPATH
10131   save_LDFLAGS=$LDFLAGS
10132   save_libdir=$libdir
10133   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10134        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10135   cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141
10142 int
10143 main ()
10144 {
10145
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158   (eval "$ac_link") 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } && {
10165          test -z "$ac_c_werror_flag" ||
10166          test ! -s conftest.err
10167        } && test -s conftest$ac_exeext && {
10168          test "$cross_compiling" = yes ||
10169          $as_test_x conftest$ac_exeext
10170        }; then
10171   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10172   shlibpath_overrides_runpath=yes
10173 fi
10174
10175 else
10176   $as_echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179
10180 fi
10181
10182 rm -rf conftest.dSYM
10183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10184       conftest$ac_exeext conftest.$ac_ext
10185   LDFLAGS=$save_LDFLAGS
10186   libdir=$save_libdir
10187
10188   # This implies no fast_install, which is unacceptable.
10189   # Some rework will be needed to allow for fast_install
10190   # before this can be enabled.
10191   hardcode_into_libs=yes
10192
10193   # Add ABI-specific directories to the system library path.
10194   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10195
10196   # Append ld.so.conf contents to the search path
10197   if test -f /etc/ld.so.conf; then
10198     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' ' '`
10199     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10200   fi
10201
10202   # We used to test for /lib/ld.so.1 and disable shared libraries on
10203   # powerpc, because MkLinux only supported shared libraries with the
10204   # GNU dynamic linker.  Since this was broken with cross compilers,
10205   # most powerpc-linux boxes support dynamic linking these days and
10206   # people can always --disable-shared, the test was removed, and we
10207   # assume the GNU/Linux dynamic linker is in use.
10208   dynamic_linker='GNU/Linux ld.so'
10209   ;;
10210
10211 netbsd*)
10212   version_type=sunos
10213   need_lib_prefix=no
10214   need_version=no
10215   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10217     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10218     dynamic_linker='NetBSD (a.out) ld.so'
10219   else
10220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10221     soname_spec='${libname}${release}${shared_ext}$major'
10222     dynamic_linker='NetBSD ld.elf_so'
10223   fi
10224   shlibpath_var=LD_LIBRARY_PATH
10225   shlibpath_overrides_runpath=yes
10226   hardcode_into_libs=yes
10227   ;;
10228
10229 newsos6)
10230   version_type=linux
10231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=yes
10234   ;;
10235
10236 *nto* | *qnx*)
10237   version_type=qnx
10238   need_lib_prefix=no
10239   need_version=no
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   shlibpath_var=LD_LIBRARY_PATH
10243   shlibpath_overrides_runpath=no
10244   hardcode_into_libs=yes
10245   dynamic_linker='ldqnx.so'
10246   ;;
10247
10248 openbsd*)
10249   version_type=sunos
10250   sys_lib_dlsearch_path_spec="/usr/lib"
10251   need_lib_prefix=no
10252   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10253   case $host_os in
10254     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10255     *)                          need_version=no  ;;
10256   esac
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259   shlibpath_var=LD_LIBRARY_PATH
10260   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10261     case $host_os in
10262       openbsd2.[89] | openbsd2.[89].*)
10263         shlibpath_overrides_runpath=no
10264         ;;
10265       *)
10266         shlibpath_overrides_runpath=yes
10267         ;;
10268       esac
10269   else
10270     shlibpath_overrides_runpath=yes
10271   fi
10272   ;;
10273
10274 os2*)
10275   libname_spec='$name'
10276   shrext_cmds=".dll"
10277   need_lib_prefix=no
10278   library_names_spec='$libname${shared_ext} $libname.a'
10279   dynamic_linker='OS/2 ld.exe'
10280   shlibpath_var=LIBPATH
10281   ;;
10282
10283 osf3* | osf4* | osf5*)
10284   version_type=osf
10285   need_lib_prefix=no
10286   need_version=no
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10291   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10292   ;;
10293
10294 rdos*)
10295   dynamic_linker=no
10296   ;;
10297
10298 solaris*)
10299   version_type=linux
10300   need_lib_prefix=no
10301   need_version=no
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=yes
10306   hardcode_into_libs=yes
10307   # ldd complains unless libraries are executable
10308   postinstall_cmds='chmod +x $lib'
10309   ;;
10310
10311 sunos4*)
10312   version_type=sunos
10313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10314   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10315   shlibpath_var=LD_LIBRARY_PATH
10316   shlibpath_overrides_runpath=yes
10317   if test "$with_gnu_ld" = yes; then
10318     need_lib_prefix=no
10319   fi
10320   need_version=yes
10321   ;;
10322
10323 sysv4 | sysv4.3*)
10324   version_type=linux
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   case $host_vendor in
10329     sni)
10330       shlibpath_overrides_runpath=no
10331       need_lib_prefix=no
10332       runpath_var=LD_RUN_PATH
10333       ;;
10334     siemens)
10335       need_lib_prefix=no
10336       ;;
10337     motorola)
10338       need_lib_prefix=no
10339       need_version=no
10340       shlibpath_overrides_runpath=no
10341       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10342       ;;
10343   esac
10344   ;;
10345
10346 sysv4*MP*)
10347   if test -d /usr/nec ;then
10348     version_type=linux
10349     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10350     soname_spec='$libname${shared_ext}.$major'
10351     shlibpath_var=LD_LIBRARY_PATH
10352   fi
10353   ;;
10354
10355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10356   version_type=freebsd-elf
10357   need_lib_prefix=no
10358   need_version=no
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=yes
10363   hardcode_into_libs=yes
10364   if test "$with_gnu_ld" = yes; then
10365     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10366   else
10367     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10368     case $host_os in
10369       sco3.2v5*)
10370         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10371         ;;
10372     esac
10373   fi
10374   sys_lib_dlsearch_path_spec='/usr/lib'
10375   ;;
10376
10377 tpf*)
10378   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10379   version_type=linux
10380   need_lib_prefix=no
10381   need_version=no
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383   shlibpath_var=LD_LIBRARY_PATH
10384   shlibpath_overrides_runpath=no
10385   hardcode_into_libs=yes
10386   ;;
10387
10388 uts4*)
10389   version_type=linux
10390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391   soname_spec='${libname}${release}${shared_ext}$major'
10392   shlibpath_var=LD_LIBRARY_PATH
10393   ;;
10394
10395 *)
10396   dynamic_linker=no
10397   ;;
10398 esac
10399 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10400 $as_echo "$dynamic_linker" >&6; }
10401 test "$dynamic_linker" = no && can_build_shared=no
10402
10403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10404 if test "$GCC" = yes; then
10405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10406 fi
10407
10408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10409   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10410 fi
10411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10412   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10413 fi
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10502 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10503 hardcode_action=
10504 if test -n "$hardcode_libdir_flag_spec" ||
10505    test -n "$runpath_var" ||
10506    test "X$hardcode_automatic" = "Xyes" ; then
10507
10508   # We can hardcode non-existent directories.
10509   if test "$hardcode_direct" != no &&
10510      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10511      # have to relink, otherwise we might link with an installed library
10512      # when we should be linking with a yet-to-be-installed one
10513      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10514      test "$hardcode_minus_L" != no; then
10515     # Linking always hardcodes the temporary library directory.
10516     hardcode_action=relink
10517   else
10518     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10519     hardcode_action=immediate
10520   fi
10521 else
10522   # We cannot hardcode anything, or else we can only hardcode existing
10523   # directories.
10524   hardcode_action=unsupported
10525 fi
10526 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10527 $as_echo "$hardcode_action" >&6; }
10528
10529 if test "$hardcode_action" = relink ||
10530    test "$inherit_rpath" = yes; then
10531   # Fast installation is not supported
10532   enable_fast_install=no
10533 elif test "$shlibpath_overrides_runpath" = yes ||
10534      test "$enable_shared" = no; then
10535   # Fast installation is not necessary
10536   enable_fast_install=needless
10537 fi
10538
10539
10540
10541
10542
10543
10544   if test "x$enable_dlopen" != xyes; then
10545   enable_dlopen=unknown
10546   enable_dlopen_self=unknown
10547   enable_dlopen_self_static=unknown
10548 else
10549   lt_cv_dlopen=no
10550   lt_cv_dlopen_libs=
10551
10552   case $host_os in
10553   beos*)
10554     lt_cv_dlopen="load_add_on"
10555     lt_cv_dlopen_libs=
10556     lt_cv_dlopen_self=yes
10557     ;;
10558
10559   mingw* | pw32* | cegcc*)
10560     lt_cv_dlopen="LoadLibrary"
10561     lt_cv_dlopen_libs=
10562     ;;
10563
10564   cygwin*)
10565     lt_cv_dlopen="dlopen"
10566     lt_cv_dlopen_libs=
10567     ;;
10568
10569   darwin*)
10570   # if libdl is installed we need to link against it
10571     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10572 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10574   $as_echo_n "(cached) " >&6
10575 else
10576   ac_check_lib_save_LIBS=$LIBS
10577 LIBS="-ldl  $LIBS"
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584
10585 /* Override any GCC internal prototype to avoid an error.
10586    Use char because int might match the return type of a GCC
10587    builtin and then its argument prototype would still apply.  */
10588 #ifdef __cplusplus
10589 extern "C"
10590 #endif
10591 char dlopen ();
10592 int
10593 main ()
10594 {
10595 return dlopen ();
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608   (eval "$ac_link") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } && {
10615          test -z "$ac_c_werror_flag" ||
10616          test ! -s conftest.err
10617        } && test -s conftest$ac_exeext && {
10618          test "$cross_compiling" = yes ||
10619          $as_test_x conftest$ac_exeext
10620        }; then
10621   ac_cv_lib_dl_dlopen=yes
10622 else
10623   $as_echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626         ac_cv_lib_dl_dlopen=no
10627 fi
10628
10629 rm -rf conftest.dSYM
10630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10631       conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10633 fi
10634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10635 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10636 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10637   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10638 else
10639
10640     lt_cv_dlopen="dyld"
10641     lt_cv_dlopen_libs=
10642     lt_cv_dlopen_self=yes
10643
10644 fi
10645
10646     ;;
10647
10648   *)
10649     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10650 $as_echo_n "checking for shl_load... " >&6; }
10651 if test "${ac_cv_func_shl_load+set}" = set; then
10652   $as_echo_n "(cached) " >&6
10653 else
10654   cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10662 #define shl_load innocuous_shl_load
10663
10664 /* System header to define __stub macros and hopefully few prototypes,
10665     which can conflict with char shl_load (); below.
10666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10667     <limits.h> exists even on freestanding compilers.  */
10668
10669 #ifdef __STDC__
10670 # include <limits.h>
10671 #else
10672 # include <assert.h>
10673 #endif
10674
10675 #undef shl_load
10676
10677 /* Override any GCC internal prototype to avoid an error.
10678    Use char because int might match the return type of a GCC
10679    builtin and then its argument prototype would still apply.  */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char shl_load ();
10684 /* The GNU C library defines this for functions which it implements
10685     to always fail with ENOSYS.  Some functions are actually named
10686     something starting with __ and the normal name is an alias.  */
10687 #if defined __stub_shl_load || defined __stub___shl_load
10688 choke me
10689 #endif
10690
10691 int
10692 main ()
10693 {
10694 return shl_load ();
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (ac_try="$ac_link"
10701 case "(($ac_try" in
10702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703   *) ac_try_echo=$ac_try;;
10704 esac
10705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10706 $as_echo "$ac_try_echo") >&5
10707   (eval "$ac_link") 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } && {
10714          test -z "$ac_c_werror_flag" ||
10715          test ! -s conftest.err
10716        } && test -s conftest$ac_exeext && {
10717          test "$cross_compiling" = yes ||
10718          $as_test_x conftest$ac_exeext
10719        }; then
10720   ac_cv_func_shl_load=yes
10721 else
10722   $as_echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725         ac_cv_func_shl_load=no
10726 fi
10727
10728 rm -rf conftest.dSYM
10729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10730       conftest$ac_exeext conftest.$ac_ext
10731 fi
10732 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10733 $as_echo "$ac_cv_func_shl_load" >&6; }
10734 if test "x$ac_cv_func_shl_load" = x""yes; then
10735   lt_cv_dlopen="shl_load"
10736 else
10737   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10738 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10740   $as_echo_n "(cached) " >&6
10741 else
10742   ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-ldld  $LIBS"
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char shl_load ();
10758 int
10759 main ()
10760 {
10761 return shl_load ();
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (ac_try="$ac_link"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774   (eval "$ac_link") 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } && {
10781          test -z "$ac_c_werror_flag" ||
10782          test ! -s conftest.err
10783        } && test -s conftest$ac_exeext && {
10784          test "$cross_compiling" = yes ||
10785          $as_test_x conftest$ac_exeext
10786        }; then
10787   ac_cv_lib_dld_shl_load=yes
10788 else
10789   $as_echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792         ac_cv_lib_dld_shl_load=no
10793 fi
10794
10795 rm -rf conftest.dSYM
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797       conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10799 fi
10800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10802 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10803   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10804 else
10805   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10806 $as_echo_n "checking for dlopen... " >&6; }
10807 if test "${ac_cv_func_dlopen+set}" = set; then
10808   $as_echo_n "(cached) " >&6
10809 else
10810   cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10816 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10818 #define dlopen innocuous_dlopen
10819
10820 /* System header to define __stub macros and hopefully few prototypes,
10821     which can conflict with char dlopen (); below.
10822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10823     <limits.h> exists even on freestanding compilers.  */
10824
10825 #ifdef __STDC__
10826 # include <limits.h>
10827 #else
10828 # include <assert.h>
10829 #endif
10830
10831 #undef dlopen
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834    Use char because int might match the return type of a GCC
10835    builtin and then its argument prototype would still apply.  */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char dlopen ();
10840 /* The GNU C library defines this for functions which it implements
10841     to always fail with ENOSYS.  Some functions are actually named
10842     something starting with __ and the normal name is an alias.  */
10843 #if defined __stub_dlopen || defined __stub___dlopen
10844 choke me
10845 #endif
10846
10847 int
10848 main ()
10849 {
10850 return dlopen ();
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863   (eval "$ac_link") 2>conftest.er1
10864   ac_status=$?
10865   grep -v '^ *+' conftest.er1 >conftest.err
10866   rm -f conftest.er1
10867   cat conftest.err >&5
10868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } && {
10870          test -z "$ac_c_werror_flag" ||
10871          test ! -s conftest.err
10872        } && test -s conftest$ac_exeext && {
10873          test "$cross_compiling" = yes ||
10874          $as_test_x conftest$ac_exeext
10875        }; then
10876   ac_cv_func_dlopen=yes
10877 else
10878   $as_echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881         ac_cv_func_dlopen=no
10882 fi
10883
10884 rm -rf conftest.dSYM
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886       conftest$ac_exeext conftest.$ac_ext
10887 fi
10888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10889 $as_echo "$ac_cv_func_dlopen" >&6; }
10890 if test "x$ac_cv_func_dlopen" = x""yes; then
10891   lt_cv_dlopen="dlopen"
10892 else
10893   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10896   $as_echo_n "(cached) " >&6
10897 else
10898   ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-ldl  $LIBS"
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906
10907 /* Override any GCC internal prototype to avoid an error.
10908    Use char because int might match the return type of a GCC
10909    builtin and then its argument prototype would still apply.  */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char dlopen ();
10914 int
10915 main ()
10916 {
10917 return dlopen ();
10918   ;
10919   return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (ac_try="$ac_link"
10924 case "(($ac_try" in
10925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926   *) ac_try_echo=$ac_try;;
10927 esac
10928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10929 $as_echo "$ac_try_echo") >&5
10930   (eval "$ac_link") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } && {
10937          test -z "$ac_c_werror_flag" ||
10938          test ! -s conftest.err
10939        } && test -s conftest$ac_exeext && {
10940          test "$cross_compiling" = yes ||
10941          $as_test_x conftest$ac_exeext
10942        }; then
10943   ac_cv_lib_dl_dlopen=yes
10944 else
10945   $as_echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948         ac_cv_lib_dl_dlopen=no
10949 fi
10950
10951 rm -rf conftest.dSYM
10952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10953       conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10955 fi
10956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10958 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10959   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 else
10961   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10962 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10963 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10964   $as_echo_n "(cached) " >&6
10965 else
10966   ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-lsvld  $LIBS"
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976    Use char because int might match the return type of a GCC
10977    builtin and then its argument prototype would still apply.  */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char dlopen ();
10982 int
10983 main ()
10984 {
10985 return dlopen ();
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998   (eval "$ac_link") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest$ac_exeext && {
11008          test "$cross_compiling" = yes ||
11009          $as_test_x conftest$ac_exeext
11010        }; then
11011   ac_cv_lib_svld_dlopen=yes
11012 else
11013   $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016         ac_cv_lib_svld_dlopen=no
11017 fi
11018
11019 rm -rf conftest.dSYM
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021       conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11023 fi
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11026 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11028 else
11029   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11031 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11032   $as_echo_n "(cached) " >&6
11033 else
11034   ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-ldld  $LIBS"
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h.  */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h.  */
11042
11043 /* Override any GCC internal prototype to avoid an error.
11044    Use char because int might match the return type of a GCC
11045    builtin and then its argument prototype would still apply.  */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char dld_link ();
11050 int
11051 main ()
11052 {
11053 return dld_link ();
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066   (eval "$ac_link") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } && {
11073          test -z "$ac_c_werror_flag" ||
11074          test ! -s conftest.err
11075        } && test -s conftest$ac_exeext && {
11076          test "$cross_compiling" = yes ||
11077          $as_test_x conftest$ac_exeext
11078        }; then
11079   ac_cv_lib_dld_dld_link=yes
11080 else
11081   $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084         ac_cv_lib_dld_dld_link=no
11085 fi
11086
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089       conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11093 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11094 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11095   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11096 fi
11097
11098
11099 fi
11100
11101
11102 fi
11103
11104
11105 fi
11106
11107
11108 fi
11109
11110
11111 fi
11112
11113     ;;
11114   esac
11115
11116   if test "x$lt_cv_dlopen" != xno; then
11117     enable_dlopen=yes
11118   else
11119     enable_dlopen=no
11120   fi
11121
11122   case $lt_cv_dlopen in
11123   dlopen)
11124     save_CPPFLAGS="$CPPFLAGS"
11125     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11126
11127     save_LDFLAGS="$LDFLAGS"
11128     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11129
11130     save_LIBS="$LIBS"
11131     LIBS="$lt_cv_dlopen_libs $LIBS"
11132
11133     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11134 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11135 if test "${lt_cv_dlopen_self+set}" = set; then
11136   $as_echo_n "(cached) " >&6
11137 else
11138           if test "$cross_compiling" = yes; then :
11139   lt_cv_dlopen_self=cross
11140 else
11141   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11142   lt_status=$lt_dlunknown
11143   cat > conftest.$ac_ext <<_LT_EOF
11144 #line 11144 "configure"
11145 #include "confdefs.h"
11146
11147 #if HAVE_DLFCN_H
11148 #include <dlfcn.h>
11149 #endif
11150
11151 #include <stdio.h>
11152
11153 #ifdef RTLD_GLOBAL
11154 #  define LT_DLGLOBAL           RTLD_GLOBAL
11155 #else
11156 #  ifdef DL_GLOBAL
11157 #    define LT_DLGLOBAL         DL_GLOBAL
11158 #  else
11159 #    define LT_DLGLOBAL         0
11160 #  endif
11161 #endif
11162
11163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11164    find out it does not work in some platform. */
11165 #ifndef LT_DLLAZY_OR_NOW
11166 #  ifdef RTLD_LAZY
11167 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11168 #  else
11169 #    ifdef DL_LAZY
11170 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11171 #    else
11172 #      ifdef RTLD_NOW
11173 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11174 #      else
11175 #        ifdef DL_NOW
11176 #          define LT_DLLAZY_OR_NOW      DL_NOW
11177 #        else
11178 #          define LT_DLLAZY_OR_NOW      0
11179 #        endif
11180 #      endif
11181 #    endif
11182 #  endif
11183 #endif
11184
11185 void fnord() { int i=42;}
11186 int main ()
11187 {
11188   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189   int status = $lt_dlunknown;
11190
11191   if (self)
11192     {
11193       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11194       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11195       /* dlclose (self); */
11196     }
11197   else
11198     puts (dlerror ());
11199
11200   return status;
11201 }
11202 _LT_EOF
11203   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204   (eval $ac_link) 2>&5
11205   ac_status=$?
11206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11208     (./conftest; exit; ) >&5 2>/dev/null
11209     lt_status=$?
11210     case x$lt_status in
11211       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11212       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11213       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11214     esac
11215   else :
11216     # compilation failed
11217     lt_cv_dlopen_self=no
11218   fi
11219 fi
11220 rm -fr conftest*
11221
11222
11223 fi
11224 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11225 $as_echo "$lt_cv_dlopen_self" >&6; }
11226
11227     if test "x$lt_cv_dlopen_self" = xyes; then
11228       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11229       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11230 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11231 if test "${lt_cv_dlopen_self_static+set}" = set; then
11232   $as_echo_n "(cached) " >&6
11233 else
11234           if test "$cross_compiling" = yes; then :
11235   lt_cv_dlopen_self_static=cross
11236 else
11237   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11238   lt_status=$lt_dlunknown
11239   cat > conftest.$ac_ext <<_LT_EOF
11240 #line 11240 "configure"
11241 #include "confdefs.h"
11242
11243 #if HAVE_DLFCN_H
11244 #include <dlfcn.h>
11245 #endif
11246
11247 #include <stdio.h>
11248
11249 #ifdef RTLD_GLOBAL
11250 #  define LT_DLGLOBAL           RTLD_GLOBAL
11251 #else
11252 #  ifdef DL_GLOBAL
11253 #    define LT_DLGLOBAL         DL_GLOBAL
11254 #  else
11255 #    define LT_DLGLOBAL         0
11256 #  endif
11257 #endif
11258
11259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11260    find out it does not work in some platform. */
11261 #ifndef LT_DLLAZY_OR_NOW
11262 #  ifdef RTLD_LAZY
11263 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11264 #  else
11265 #    ifdef DL_LAZY
11266 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11267 #    else
11268 #      ifdef RTLD_NOW
11269 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11270 #      else
11271 #        ifdef DL_NOW
11272 #          define LT_DLLAZY_OR_NOW      DL_NOW
11273 #        else
11274 #          define LT_DLLAZY_OR_NOW      0
11275 #        endif
11276 #      endif
11277 #    endif
11278 #  endif
11279 #endif
11280
11281 void fnord() { int i=42;}
11282 int main ()
11283 {
11284   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11285   int status = $lt_dlunknown;
11286
11287   if (self)
11288     {
11289       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11290       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11291       /* dlclose (self); */
11292     }
11293   else
11294     puts (dlerror ());
11295
11296   return status;
11297 }
11298 _LT_EOF
11299   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300   (eval $ac_link) 2>&5
11301   ac_status=$?
11302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11304     (./conftest; exit; ) >&5 2>/dev/null
11305     lt_status=$?
11306     case x$lt_status in
11307       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11308       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11309       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11310     esac
11311   else :
11312     # compilation failed
11313     lt_cv_dlopen_self_static=no
11314   fi
11315 fi
11316 rm -fr conftest*
11317
11318
11319 fi
11320 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11321 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11322     fi
11323
11324     CPPFLAGS="$save_CPPFLAGS"
11325     LDFLAGS="$save_LDFLAGS"
11326     LIBS="$save_LIBS"
11327     ;;
11328   esac
11329
11330   case $lt_cv_dlopen_self in
11331   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11332   *) enable_dlopen_self=unknown ;;
11333   esac
11334
11335   case $lt_cv_dlopen_self_static in
11336   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11337   *) enable_dlopen_self_static=unknown ;;
11338   esac
11339 fi
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357 striplib=
11358 old_striplib=
11359 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11360 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11361 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11362   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11363   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11364   { $as_echo "$as_me:$LINENO: result: yes" >&5
11365 $as_echo "yes" >&6; }
11366 else
11367 # FIXME - insert some real tests, host_os isn't really good enough
11368   case $host_os in
11369   darwin*)
11370     if test -n "$STRIP" ; then
11371       striplib="$STRIP -x"
11372       old_striplib="$STRIP -S"
11373       { $as_echo "$as_me:$LINENO: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375     else
11376       { $as_echo "$as_me:$LINENO: result: no" >&5
11377 $as_echo "no" >&6; }
11378     fi
11379     ;;
11380   *)
11381     { $as_echo "$as_me:$LINENO: result: no" >&5
11382 $as_echo "no" >&6; }
11383     ;;
11384   esac
11385 fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398   # Report which library types will actually be built
11399   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11400 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11401   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11402 $as_echo "$can_build_shared" >&6; }
11403
11404   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11405 $as_echo_n "checking whether to build shared libraries... " >&6; }
11406   test "$can_build_shared" = "no" && enable_shared=no
11407
11408   # On AIX, shared libraries and static libraries use the same namespace, and
11409   # are all built from PIC.
11410   case $host_os in
11411   aix3*)
11412     test "$enable_shared" = yes && enable_static=no
11413     if test -n "$RANLIB"; then
11414       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11415       postinstall_cmds='$RANLIB $lib'
11416     fi
11417     ;;
11418
11419   aix[4-9]*)
11420     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11421       test "$enable_shared" = yes && enable_static=no
11422     fi
11423     ;;
11424   esac
11425   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11426 $as_echo "$enable_shared" >&6; }
11427
11428   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11429 $as_echo_n "checking whether to build static libraries... " >&6; }
11430   # Make sure either enable_shared or enable_static is yes.
11431   test "$enable_shared" = yes || enable_static=yes
11432   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11433 $as_echo "$enable_static" >&6; }
11434
11435
11436
11437
11438 fi
11439 ac_ext=c
11440 ac_cpp='$CPP $CPPFLAGS'
11441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444
11445 CC="$lt_save_CC"
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459         ac_config_commands="$ac_config_commands libtool"
11460
11461
11462
11463
11464 # Only expand once:
11465
11466
11467
11468
11469
11470 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11471 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11472     # Check whether --enable-maintainer-mode was given.
11473 if test "${enable_maintainer_mode+set}" = set; then
11474   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11475 else
11476   USE_MAINTAINER_MODE=no
11477 fi
11478
11479   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11480 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11481    if test $USE_MAINTAINER_MODE = yes; then
11482   MAINTAINER_MODE_TRUE=
11483   MAINTAINER_MODE_FALSE='#'
11484 else
11485   MAINTAINER_MODE_TRUE='#'
11486   MAINTAINER_MODE_FALSE=
11487 fi
11488
11489   MAINT=$MAINTAINER_MODE_TRUE
11490
11491
11492
11493
11494 for ac_header in sys/mman.h
11495 do
11496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 $as_echo_n "checking for $ac_header... " >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501   $as_echo_n "(cached) " >&6
11502 fi
11503 ac_res=`eval 'as_val=${'$as_ac_Header'}
11504                  $as_echo "$as_val"'`
11505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11507 else
11508   # Is the header compilable?
11509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 $as_echo_n "checking $ac_header usability... " >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 $ac_includes_default
11518 #include <$ac_header>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528   (eval "$ac_compile") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } && {
11535          test -z "$ac_c_werror_flag" ||
11536          test ! -s conftest.err
11537        } && test -s conftest.$ac_objext; then
11538   ac_header_compiler=yes
11539 else
11540   $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543         ac_header_compiler=no
11544 fi
11545
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 $as_echo "$ac_header_compiler" >&6; }
11549
11550 # Is the header present?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 $as_echo_n "checking $ac_header presence... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 #include <$ac_header>
11560 _ACEOF
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564   *) ac_try_echo=$ac_try;;
11565 esac
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } >/dev/null && {
11575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11576          test ! -s conftest.err
11577        }; then
11578   ac_header_preproc=yes
11579 else
11580   $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583   ac_header_preproc=no
11584 fi
11585
11586 rm -f conftest.err conftest.$ac_ext
11587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 $as_echo "$ac_header_preproc" >&6; }
11589
11590 # So?  What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11592   yes:no: )
11593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597     ac_header_preproc=yes
11598     ;;
11599   no:yes:* )
11600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11603 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11607 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11612     ( cat <<\_ASBOX
11613 ## ------------------------------------------- ##
11614 ## Report this to http://gcc.gnu.org/bugs.html ##
11615 ## ------------------------------------------- ##
11616 _ASBOX
11617      ) | sed "s/^/$as_me: WARNING:     /" >&2
11618     ;;
11619 esac
11620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 $as_echo_n "checking for $ac_header... " >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623   $as_echo_n "(cached) " >&6
11624 else
11625   eval "$as_ac_Header=\$ac_header_preproc"
11626 fi
11627 ac_res=`eval 'as_val=${'$as_ac_Header'}
11628                  $as_echo "$as_val"'`
11629                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11630 $as_echo "$ac_res" >&6; }
11631
11632 fi
11633 as_val=`eval 'as_val=${'$as_ac_Header'}
11634                  $as_echo "$as_val"'`
11635    if test "x$as_val" = x""yes; then
11636   cat >>confdefs.h <<_ACEOF
11637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 _ACEOF
11639
11640 fi
11641
11642 done
11643
11644
11645 for ac_func in mmap
11646 do
11647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 $as_echo_n "checking for $ac_func... " >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651   $as_echo_n "(cached) " >&6
11652 else
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11661 #define $ac_func innocuous_$ac_func
11662
11663 /* System header to define __stub macros and hopefully few prototypes,
11664     which can conflict with char $ac_func (); below.
11665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666     <limits.h> exists even on freestanding compilers.  */
11667
11668 #ifdef __STDC__
11669 # include <limits.h>
11670 #else
11671 # include <assert.h>
11672 #endif
11673
11674 #undef $ac_func
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char $ac_func ();
11683 /* The GNU C library defines this for functions which it implements
11684     to always fail with ENOSYS.  Some functions are actually named
11685     something starting with __ and the normal name is an alias.  */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 choke me
11688 #endif
11689
11690 int
11691 main ()
11692 {
11693 return $ac_func ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 $as_echo "$ac_try_echo") >&5
11706   (eval "$ac_link") 2>conftest.er1
11707   ac_status=$?
11708   grep -v '^ *+' conftest.er1 >conftest.err
11709   rm -f conftest.er1
11710   cat conftest.err >&5
11711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } && {
11713          test -z "$ac_c_werror_flag" ||
11714          test ! -s conftest.err
11715        } && test -s conftest$ac_exeext && {
11716          test "$cross_compiling" = yes ||
11717          $as_test_x conftest$ac_exeext
11718        }; then
11719   eval "$as_ac_var=yes"
11720 else
11721   $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724         eval "$as_ac_var=no"
11725 fi
11726
11727 rm -rf conftest.dSYM
11728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 ac_res=`eval 'as_val=${'$as_ac_var'}
11732                  $as_echo "$as_val"'`
11733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11734 $as_echo "$ac_res" >&6; }
11735 as_val=`eval 'as_val=${'$as_ac_var'}
11736                  $as_echo "$as_val"'`
11737    if test "x$as_val" = x""yes; then
11738   cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 _ACEOF
11741
11742 fi
11743 done
11744
11745
11746 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11747   { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11748 $as_echo_n "checking for sys/mman.h... " >&6; }
11749 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11750   $as_echo_n "(cached) " >&6
11751 fi
11752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11753 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11754 else
11755   # Is the header compilable?
11756 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11757 $as_echo_n "checking sys/mman.h usability... " >&6; }
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 $ac_includes_default
11765 #include <sys/mman.h>
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774 $as_echo "$ac_try_echo") >&5
11775   (eval "$ac_compile") 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } && {
11782          test -z "$ac_c_werror_flag" ||
11783          test ! -s conftest.err
11784        } && test -s conftest.$ac_objext; then
11785   ac_header_compiler=yes
11786 else
11787   $as_echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790         ac_header_compiler=no
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 $as_echo "$ac_header_compiler" >&6; }
11796
11797 # Is the header present?
11798 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11799 $as_echo_n "checking sys/mman.h presence... " >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <sys/mman.h>
11807 _ACEOF
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11814 $as_echo "$ac_try_echo") >&5
11815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } >/dev/null && {
11822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11823          test ! -s conftest.err
11824        }; then
11825   ac_header_preproc=yes
11826 else
11827   $as_echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830   ac_header_preproc=no
11831 fi
11832
11833 rm -f conftest.err conftest.$ac_ext
11834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11835 $as_echo "$ac_header_preproc" >&6; }
11836
11837 # So?  What about this header?
11838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11839   yes:no: )
11840     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11841 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11842     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11843 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11844     ac_header_preproc=yes
11845     ;;
11846   no:yes:* )
11847     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11848 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11849     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
11850 $as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
11851     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11852 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11853     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
11854 $as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11855     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11856 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11857     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11858 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11859     ( cat <<\_ASBOX
11860 ## ------------------------------------------- ##
11861 ## Report this to http://gcc.gnu.org/bugs.html ##
11862 ## ------------------------------------------- ##
11863 _ASBOX
11864      ) | sed "s/^/$as_me: WARNING:     /" >&2
11865     ;;
11866 esac
11867 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11868 $as_echo_n "checking for sys/mman.h... " >&6; }
11869 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11870   $as_echo_n "(cached) " >&6
11871 else
11872   ac_cv_header_sys_mman_h=$ac_header_preproc
11873 fi
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11875 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11876
11877 fi
11878 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11879   libffi_header_sys_mman_h=yes
11880 else
11881   libffi_header_sys_mman_h=no
11882 fi
11883
11884
11885 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11886 $as_echo_n "checking for mmap... " >&6; }
11887 if test "${ac_cv_func_mmap+set}" = set; then
11888   $as_echo_n "(cached) " >&6
11889 else
11890   cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11898 #define mmap innocuous_mmap
11899
11900 /* System header to define __stub macros and hopefully few prototypes,
11901     which can conflict with char mmap (); below.
11902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903     <limits.h> exists even on freestanding compilers.  */
11904
11905 #ifdef __STDC__
11906 # include <limits.h>
11907 #else
11908 # include <assert.h>
11909 #endif
11910
11911 #undef mmap
11912
11913 /* Override any GCC internal prototype to avoid an error.
11914    Use char because int might match the return type of a GCC
11915    builtin and then its argument prototype would still apply.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 char mmap ();
11920 /* The GNU C library defines this for functions which it implements
11921     to always fail with ENOSYS.  Some functions are actually named
11922     something starting with __ and the normal name is an alias.  */
11923 #if defined __stub_mmap || defined __stub___mmap
11924 choke me
11925 #endif
11926
11927 int
11928 main ()
11929 {
11930 return mmap ();
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (ac_try="$ac_link"
11937 case "(($ac_try" in
11938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939   *) ac_try_echo=$ac_try;;
11940 esac
11941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942 $as_echo "$ac_try_echo") >&5
11943   (eval "$ac_link") 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } && {
11950          test -z "$ac_c_werror_flag" ||
11951          test ! -s conftest.err
11952        } && test -s conftest$ac_exeext && {
11953          test "$cross_compiling" = yes ||
11954          $as_test_x conftest$ac_exeext
11955        }; then
11956   ac_cv_func_mmap=yes
11957 else
11958   $as_echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961         ac_cv_func_mmap=no
11962 fi
11963
11964 rm -rf conftest.dSYM
11965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11966       conftest$ac_exeext conftest.$ac_ext
11967 fi
11968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11969 $as_echo "$ac_cv_func_mmap" >&6; }
11970 if test "x$ac_cv_func_mmap" = x""yes; then
11971   libffi_func_mmap=yes
11972 else
11973   libffi_func_mmap=no
11974 fi
11975
11976 if test "$libffi_header_sys_mman_h" != yes \
11977  || test "$libffi_func_mmap" != yes; then
11978    ac_cv_func_mmap_file=no
11979    ac_cv_func_mmap_dev_zero=no
11980    ac_cv_func_mmap_anon=no
11981 else
11982    { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11983 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11984 if test "${ac_cv_func_mmap_file+set}" = set; then
11985   $as_echo_n "(cached) " >&6
11986 else
11987   # Add a system to this blacklist if
11988    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11989    # memory area containing the same data that you'd get if you applied
11990    # read() to the same fd.  The only system known to have a problem here
11991    # is VMS, where text files have record structure.
11992    case "$host_os" in
11993      vms* | ultrix*)
11994         ac_cv_func_mmap_file=no ;;
11995      *)
11996         ac_cv_func_mmap_file=yes;;
11997    esac
11998 fi
11999 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12000 $as_echo "$ac_cv_func_mmap_file" >&6; }
12001    { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12002 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12003 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12004   $as_echo_n "(cached) " >&6
12005 else
12006   # Add a system to this blacklist if it has mmap() but /dev/zero
12007    # does not exist, or if mmapping /dev/zero does not give anonymous
12008    # zeroed pages with both the following properties:
12009    # 1. If you map N consecutive pages in with one call, and then
12010    #    unmap any subset of those pages, the pages that were not
12011    #    explicitly unmapped remain accessible.
12012    # 2. If you map two adjacent blocks of memory and then unmap them
12013    #    both at once, they must both go away.
12014    # Systems known to be in this category are Windows (all variants),
12015    # VMS, and Darwin.
12016    case "$host_os" in
12017      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12018         ac_cv_func_mmap_dev_zero=no ;;
12019      *)
12020         ac_cv_func_mmap_dev_zero=yes;;
12021    esac
12022 fi
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12024 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12025
12026    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12027    { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12028 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12029 if test "${ac_cv_decl_map_anon+set}" = set; then
12030   $as_echo_n "(cached) " >&6
12031 else
12032   cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 #include <sys/types.h>
12039 #include <sys/mman.h>
12040 #include <unistd.h>
12041
12042 #ifndef MAP_ANONYMOUS
12043 #define MAP_ANONYMOUS MAP_ANON
12044 #endif
12045
12046 int
12047 main ()
12048 {
12049 int n = MAP_ANONYMOUS;
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext
12055 if { (ac_try="$ac_compile"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062   (eval "$ac_compile") 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } && {
12069          test -z "$ac_c_werror_flag" ||
12070          test ! -s conftest.err
12071        } && test -s conftest.$ac_objext; then
12072   ac_cv_decl_map_anon=yes
12073 else
12074   $as_echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077         ac_cv_decl_map_anon=no
12078 fi
12079
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 fi
12082 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12083 $as_echo "$ac_cv_decl_map_anon" >&6; }
12084
12085    if test $ac_cv_decl_map_anon = no; then
12086      ac_cv_func_mmap_anon=no
12087    else
12088      { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12089 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12090 if test "${ac_cv_func_mmap_anon+set}" = set; then
12091   $as_echo_n "(cached) " >&6
12092 else
12093   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12094    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12095    # doesn't give anonymous zeroed pages with the same properties listed
12096    # above for use of /dev/zero.
12097    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12098    case "$host_os" in
12099      vms* | cygwin* | pe | mingw* | sco* | udk* )
12100         ac_cv_func_mmap_anon=no ;;
12101      *)
12102         ac_cv_func_mmap_anon=yes;;
12103    esac
12104 fi
12105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12106 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12107    fi
12108 fi
12109
12110 if test $ac_cv_func_mmap_file = yes; then
12111
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_MMAP_FILE 1
12114 _ACEOF
12115
12116 fi
12117 if test $ac_cv_func_mmap_dev_zero = yes; then
12118
12119 cat >>confdefs.h <<\_ACEOF
12120 #define HAVE_MMAP_DEV_ZERO 1
12121 _ACEOF
12122
12123 fi
12124 if test $ac_cv_func_mmap_anon = yes; then
12125
12126 cat >>confdefs.h <<\_ACEOF
12127 #define HAVE_MMAP_ANON 1
12128 _ACEOF
12129
12130 fi
12131
12132
12133  if test -d $srcdir/testsuite; then
12134   TESTSUBDIR_TRUE=
12135   TESTSUBDIR_FALSE='#'
12136 else
12137   TESTSUBDIR_TRUE='#'
12138   TESTSUBDIR_FALSE=
12139 fi
12140
12141
12142 TARGETDIR="unknown"
12143 case "$host" in
12144   alpha*-*-*)
12145         TARGET=ALPHA; TARGETDIR=alpha;
12146         # Support 128-bit long double, changable via command-line switch.
12147         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12148         ;;
12149
12150   arm*-*-*)
12151         TARGET=ARM; TARGETDIR=arm
12152         ;;
12153
12154   amd64-*-freebsd* | amd64-*-openbsd*)
12155         TARGET=X86_64; TARGETDIR=x86
12156         ;;
12157
12158   avr32*-*-*)
12159         TARGET=AVR32; TARGETDIR=avr32
12160         ;;
12161
12162   cris-*-*)
12163         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12164         ;;
12165
12166   frv-*-*)
12167         TARGET=FRV; TARGETDIR=frv
12168         ;;
12169
12170   hppa*-*-linux* | parisc*-*-linux*)
12171         TARGET=PA_LINUX; TARGETDIR=pa
12172         ;;
12173   hppa*64-*-hpux*)
12174         TARGET=PA64_HPUX; TARGETDIR=pa
12175         ;;
12176   hppa*-*-hpux*)
12177         TARGET=PA_HPUX; TARGETDIR=pa
12178         ;;
12179
12180   i?86-*-freebsd* | i?86-*-openbsd*)
12181         TARGET=X86_FREEBSD; TARGETDIR=x86
12182         ;;
12183   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
12184         TARGET=X86_WIN32; TARGETDIR=x86
12185         # All mingw/cygwin/win32 builds require this for sharedlib
12186         AM_LTLDFLAGS="-no-undefined"
12187         ;;
12188   i?86-*-darwin*)
12189         TARGET=X86_DARWIN; TARGETDIR=x86
12190         ;;
12191   i?86-*-solaris2.1[0-9]*)
12192         TARGET=X86_64; TARGETDIR=x86
12193         ;;
12194   i?86-*-*)
12195         TARGET=X86; TARGETDIR=x86
12196         ;;
12197
12198   ia64*-*-*)
12199         TARGET=IA64; TARGETDIR=ia64
12200         ;;
12201
12202   m32r*-*-*)
12203         TARGET=M32R; TARGETDIR=m32r
12204         ;;
12205
12206   m68k-*-*)
12207         TARGET=M68K; TARGETDIR=m68k
12208         ;;
12209
12210   mips-sgi-irix5.* | mips-sgi-irix6.*)
12211         TARGET=MIPS; TARGETDIR=mips
12212         ;;
12213   mips*-*-linux*)
12214         # Support 128-bit long double for NewABI.
12215         HAVE_LONG_DOUBLE='defined(__mips64)'
12216         TARGET=MIPS; TARGETDIR=mips
12217         ;;
12218
12219   powerpc*-*-linux* | powerpc-*-sysv*)
12220         TARGET=POWERPC; TARGETDIR=powerpc
12221         ;;
12222   powerpc-*-beos*)
12223         TARGET=POWERPC; TARGETDIR=powerpc
12224         ;;
12225   powerpc-*-darwin*)
12226         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12227         ;;
12228   powerpc-*-aix* | rs6000-*-aix*)
12229         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12230         ;;
12231   powerpc-*-freebsd*)
12232         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12233         ;;
12234   powerpc*-*-rtems*)
12235         TARGET=POWERPC; TARGETDIR=powerpc
12236         ;;
12237
12238   s390-*-* | s390x-*-*)
12239         TARGET=S390; TARGETDIR=s390
12240         ;;
12241
12242   sh-*-* | sh[34]*-*-*)
12243         TARGET=SH; TARGETDIR=sh
12244         ;;
12245   sh64-*-* | sh5*-*-*)
12246         TARGET=SH64; TARGETDIR=sh64
12247         ;;
12248
12249   sparc*-*-*)
12250         TARGET=SPARC; TARGETDIR=sparc
12251         ;;
12252
12253   x86_64-*-darwin*)
12254         TARGET=X86_DARWIN; TARGETDIR=x86
12255         ;;
12256
12257   x86_64-*-cygwin* | x86_64-*-mingw*)
12258         TARGET=X86_WIN64; TARGETDIR=x86
12259         ;;
12260
12261   x86_64-*-*)
12262         TARGET=X86_64; TARGETDIR=x86
12263         ;;
12264 esac
12265
12266
12267
12268
12269 if test $TARGETDIR = unknown; then
12270   { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12271 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12272    { (exit 1); exit 1; }; }
12273 fi
12274
12275  if test x$TARGET = xMIPS; then
12276   MIPS_TRUE=
12277   MIPS_FALSE='#'
12278 else
12279   MIPS_TRUE='#'
12280   MIPS_FALSE=
12281 fi
12282
12283  if test x$TARGET = xSPARC; then
12284   SPARC_TRUE=
12285   SPARC_FALSE='#'
12286 else
12287   SPARC_TRUE='#'
12288   SPARC_FALSE=
12289 fi
12290
12291  if test x$TARGET = xX86; then
12292   X86_TRUE=
12293   X86_FALSE='#'
12294 else
12295   X86_TRUE='#'
12296   X86_FALSE=
12297 fi
12298
12299  if test x$TARGET = xX86_FREEBSD; then
12300   X86_FREEBSD_TRUE=
12301   X86_FREEBSD_FALSE='#'
12302 else
12303   X86_FREEBSD_TRUE='#'
12304   X86_FREEBSD_FALSE=
12305 fi
12306
12307  if test x$TARGET = xX86_WIN32; then
12308   X86_WIN32_TRUE=
12309   X86_WIN32_FALSE='#'
12310 else
12311   X86_WIN32_TRUE='#'
12312   X86_WIN32_FALSE=
12313 fi
12314
12315  if test x$TARGET = xX86_WIN64; then
12316   X86_WIN64_TRUE=
12317   X86_WIN64_FALSE='#'
12318 else
12319   X86_WIN64_TRUE='#'
12320   X86_WIN64_FALSE=
12321 fi
12322
12323  if test x$TARGET = xX86_DARWIN; then
12324   X86_DARWIN_TRUE=
12325   X86_DARWIN_FALSE='#'
12326 else
12327   X86_DARWIN_TRUE='#'
12328   X86_DARWIN_FALSE=
12329 fi
12330
12331  if test x$TARGET = xALPHA; then
12332   ALPHA_TRUE=
12333   ALPHA_FALSE='#'
12334 else
12335   ALPHA_TRUE='#'
12336   ALPHA_FALSE=
12337 fi
12338
12339  if test x$TARGET = xIA64; then
12340   IA64_TRUE=
12341   IA64_FALSE='#'
12342 else
12343   IA64_TRUE='#'
12344   IA64_FALSE=
12345 fi
12346
12347  if test x$TARGET = xM32R; then
12348   M32R_TRUE=
12349   M32R_FALSE='#'
12350 else
12351   M32R_TRUE='#'
12352   M32R_FALSE=
12353 fi
12354
12355  if test x$TARGET = xM68K; then
12356   M68K_TRUE=
12357   M68K_FALSE='#'
12358 else
12359   M68K_TRUE='#'
12360   M68K_FALSE=
12361 fi
12362
12363  if test x$TARGET = xPOWERPC; then
12364   POWERPC_TRUE=
12365   POWERPC_FALSE='#'
12366 else
12367   POWERPC_TRUE='#'
12368   POWERPC_FALSE=
12369 fi
12370
12371  if test x$TARGET = xPOWERPC_AIX; then
12372   POWERPC_AIX_TRUE=
12373   POWERPC_AIX_FALSE='#'
12374 else
12375   POWERPC_AIX_TRUE='#'
12376   POWERPC_AIX_FALSE=
12377 fi
12378
12379  if test x$TARGET = xPOWERPC_DARWIN; then
12380   POWERPC_DARWIN_TRUE=
12381   POWERPC_DARWIN_FALSE='#'
12382 else
12383   POWERPC_DARWIN_TRUE='#'
12384   POWERPC_DARWIN_FALSE=
12385 fi
12386
12387  if test x$TARGET = xPOWERPC_FREEBSD; then
12388   POWERPC_FREEBSD_TRUE=
12389   POWERPC_FREEBSD_FALSE='#'
12390 else
12391   POWERPC_FREEBSD_TRUE='#'
12392   POWERPC_FREEBSD_FALSE=
12393 fi
12394
12395  if test x$TARGET = xARM; then
12396   ARM_TRUE=
12397   ARM_FALSE='#'
12398 else
12399   ARM_TRUE='#'
12400   ARM_FALSE=
12401 fi
12402
12403  if test x$TARGET = xAVR32; then
12404   AVR32_TRUE=
12405   AVR32_FALSE='#'
12406 else
12407   AVR32_TRUE='#'
12408   AVR32_FALSE=
12409 fi
12410
12411  if test x$TARGET = xLIBFFI_CRIS; then
12412   LIBFFI_CRIS_TRUE=
12413   LIBFFI_CRIS_FALSE='#'
12414 else
12415   LIBFFI_CRIS_TRUE='#'
12416   LIBFFI_CRIS_FALSE=
12417 fi
12418
12419  if test x$TARGET = xFRV; then
12420   FRV_TRUE=
12421   FRV_FALSE='#'
12422 else
12423   FRV_TRUE='#'
12424   FRV_FALSE=
12425 fi
12426
12427  if test x$TARGET = xS390; then
12428   S390_TRUE=
12429   S390_FALSE='#'
12430 else
12431   S390_TRUE='#'
12432   S390_FALSE=
12433 fi
12434
12435  if test x$TARGET = xX86_64; then
12436   X86_64_TRUE=
12437   X86_64_FALSE='#'
12438 else
12439   X86_64_TRUE='#'
12440   X86_64_FALSE=
12441 fi
12442
12443  if test x$TARGET = xSH; then
12444   SH_TRUE=
12445   SH_FALSE='#'
12446 else
12447   SH_TRUE='#'
12448   SH_FALSE=
12449 fi
12450
12451  if test x$TARGET = xSH64; then
12452   SH64_TRUE=
12453   SH64_FALSE='#'
12454 else
12455   SH64_TRUE='#'
12456   SH64_FALSE=
12457 fi
12458
12459  if test x$TARGET = xPA_LINUX; then
12460   PA_LINUX_TRUE=
12461   PA_LINUX_FALSE='#'
12462 else
12463   PA_LINUX_TRUE='#'
12464   PA_LINUX_FALSE=
12465 fi
12466
12467  if test x$TARGET = xPA_HPUX; then
12468   PA_HPUX_TRUE=
12469   PA_HPUX_FALSE='#'
12470 else
12471   PA_HPUX_TRUE='#'
12472   PA_HPUX_FALSE=
12473 fi
12474
12475  if test x$TARGET = xPA64_HPUX; then
12476   PA64_HPUX_TRUE=
12477   PA64_HPUX_FALSE='#'
12478 else
12479   PA64_HPUX_TRUE='#'
12480   PA64_HPUX_FALSE=
12481 fi
12482
12483
12484 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12485 $as_echo_n "checking for ANSI C header files... " >&6; }
12486 if test "${ac_cv_header_stdc+set}" = set; then
12487   $as_echo_n "(cached) " >&6
12488 else
12489   cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 #include <stdlib.h>
12496 #include <stdarg.h>
12497 #include <string.h>
12498 #include <float.h>
12499
12500 int
12501 main ()
12502 {
12503
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (ac_try="$ac_compile"
12510 case "(($ac_try" in
12511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512   *) ac_try_echo=$ac_try;;
12513 esac
12514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12515 $as_echo "$ac_try_echo") >&5
12516   (eval "$ac_compile") 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } && {
12523          test -z "$ac_c_werror_flag" ||
12524          test ! -s conftest.err
12525        } && test -s conftest.$ac_objext; then
12526   ac_cv_header_stdc=yes
12527 else
12528   $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531         ac_cv_header_stdc=no
12532 fi
12533
12534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535
12536 if test $ac_cv_header_stdc = yes; then
12537   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12538   cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h.  */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h.  */
12544 #include <string.h>
12545
12546 _ACEOF
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548   $EGREP "memchr" >/dev/null 2>&1; then
12549   :
12550 else
12551   ac_cv_header_stdc=no
12552 fi
12553 rm -f conftest*
12554
12555 fi
12556
12557 if test $ac_cv_header_stdc = yes; then
12558   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12559   cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 #include <stdlib.h>
12566
12567 _ACEOF
12568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569   $EGREP "free" >/dev/null 2>&1; then
12570   :
12571 else
12572   ac_cv_header_stdc=no
12573 fi
12574 rm -f conftest*
12575
12576 fi
12577
12578 if test $ac_cv_header_stdc = yes; then
12579   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12580   if test "$cross_compiling" = yes; then
12581   :
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 #include <ctype.h>
12590 #include <stdlib.h>
12591 #if ((' ' & 0x0FF) == 0x020)
12592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12594 #else
12595 # define ISLOWER(c) \
12596                    (('a' <= (c) && (c) <= 'i') \
12597                      || ('j' <= (c) && (c) <= 'r') \
12598                      || ('s' <= (c) && (c) <= 'z'))
12599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12600 #endif
12601
12602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12603 int
12604 main ()
12605 {
12606   int i;
12607   for (i = 0; i < 256; i++)
12608     if (XOR (islower (i), ISLOWER (i))
12609         || toupper (i) != TOUPPER (i))
12610       return 2;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621 $as_echo "$ac_try_echo") >&5
12622   (eval "$ac_link") 2>&5
12623   ac_status=$?
12624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12626   { (case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12631 $as_echo "$ac_try_echo") >&5
12632   (eval "$ac_try") 2>&5
12633   ac_status=$?
12634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   :
12637 else
12638   $as_echo "$as_me: program exited with status $ac_status" >&5
12639 $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ( exit $ac_status )
12643 ac_cv_header_stdc=no
12644 fi
12645 rm -rf conftest.dSYM
12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12647 fi
12648
12649
12650 fi
12651 fi
12652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12653 $as_echo "$ac_cv_header_stdc" >&6; }
12654 if test $ac_cv_header_stdc = yes; then
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define STDC_HEADERS 1
12658 _ACEOF
12659
12660 fi
12661
12662
12663 for ac_func in memcpy
12664 do
12665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12667 $as_echo_n "checking for $ac_func... " >&6; }
12668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12669   $as_echo_n "(cached) " >&6
12670 else
12671   cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h.  */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h.  */
12677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12679 #define $ac_func innocuous_$ac_func
12680
12681 /* System header to define __stub macros and hopefully few prototypes,
12682     which can conflict with char $ac_func (); below.
12683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684     <limits.h> exists even on freestanding compilers.  */
12685
12686 #ifdef __STDC__
12687 # include <limits.h>
12688 #else
12689 # include <assert.h>
12690 #endif
12691
12692 #undef $ac_func
12693
12694 /* Override any GCC internal prototype to avoid an error.
12695    Use char because int might match the return type of a GCC
12696    builtin and then its argument prototype would still apply.  */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char $ac_func ();
12701 /* The GNU C library defines this for functions which it implements
12702     to always fail with ENOSYS.  Some functions are actually named
12703     something starting with __ and the normal name is an alias.  */
12704 #if defined __stub_$ac_func || defined __stub___$ac_func
12705 choke me
12706 #endif
12707
12708 int
12709 main ()
12710 {
12711 return $ac_func ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12723 $as_echo "$ac_try_echo") >&5
12724   (eval "$ac_link") 2>conftest.er1
12725   ac_status=$?
12726   grep -v '^ *+' conftest.er1 >conftest.err
12727   rm -f conftest.er1
12728   cat conftest.err >&5
12729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); } && {
12731          test -z "$ac_c_werror_flag" ||
12732          test ! -s conftest.err
12733        } && test -s conftest$ac_exeext && {
12734          test "$cross_compiling" = yes ||
12735          $as_test_x conftest$ac_exeext
12736        }; then
12737   eval "$as_ac_var=yes"
12738 else
12739   $as_echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742         eval "$as_ac_var=no"
12743 fi
12744
12745 rm -rf conftest.dSYM
12746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12747       conftest$ac_exeext conftest.$ac_ext
12748 fi
12749 ac_res=`eval 'as_val=${'$as_ac_var'}
12750                  $as_echo "$as_val"'`
12751                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12752 $as_echo "$ac_res" >&6; }
12753 as_val=`eval 'as_val=${'$as_ac_var'}
12754                  $as_echo "$as_val"'`
12755    if test "x$as_val" = x""yes; then
12756   cat >>confdefs.h <<_ACEOF
12757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12758 _ACEOF
12759
12760 fi
12761 done
12762
12763 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12764 # for constant arguments.  Useless!
12765 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12766 $as_echo_n "checking for working alloca.h... " >&6; }
12767 if test "${ac_cv_working_alloca_h+set}" = set; then
12768   $as_echo_n "(cached) " >&6
12769 else
12770   cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <alloca.h>
12777 int
12778 main ()
12779 {
12780 char *p = (char *) alloca (2 * sizeof (int));
12781                           if (p) return 0;
12782   ;
12783   return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (ac_try="$ac_link"
12788 case "(($ac_try" in
12789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790   *) ac_try_echo=$ac_try;;
12791 esac
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794   (eval "$ac_link") 2>conftest.er1
12795   ac_status=$?
12796   grep -v '^ *+' conftest.er1 >conftest.err
12797   rm -f conftest.er1
12798   cat conftest.err >&5
12799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } && {
12801          test -z "$ac_c_werror_flag" ||
12802          test ! -s conftest.err
12803        } && test -s conftest$ac_exeext && {
12804          test "$cross_compiling" = yes ||
12805          $as_test_x conftest$ac_exeext
12806        }; then
12807   ac_cv_working_alloca_h=yes
12808 else
12809   $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812         ac_cv_working_alloca_h=no
12813 fi
12814
12815 rm -rf conftest.dSYM
12816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12817       conftest$ac_exeext conftest.$ac_ext
12818 fi
12819 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12820 $as_echo "$ac_cv_working_alloca_h" >&6; }
12821 if test $ac_cv_working_alloca_h = yes; then
12822
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_ALLOCA_H 1
12825 _ACEOF
12826
12827 fi
12828
12829 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12830 $as_echo_n "checking for alloca... " >&6; }
12831 if test "${ac_cv_func_alloca_works+set}" = set; then
12832   $as_echo_n "(cached) " >&6
12833 else
12834   cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h.  */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h.  */
12840 #ifdef __GNUC__
12841 # define alloca __builtin_alloca
12842 #else
12843 # ifdef _MSC_VER
12844 #  include <malloc.h>
12845 #  define alloca _alloca
12846 # else
12847 #  ifdef HAVE_ALLOCA_H
12848 #   include <alloca.h>
12849 #  else
12850 #   ifdef _AIX
12851  #pragma alloca
12852 #   else
12853 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12854 char *alloca ();
12855 #    endif
12856 #   endif
12857 #  endif
12858 # endif
12859 #endif
12860
12861 int
12862 main ()
12863 {
12864 char *p = (char *) alloca (1);
12865                                     if (p) return 0;
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12877 $as_echo "$ac_try_echo") >&5
12878   (eval "$ac_link") 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } && {
12885          test -z "$ac_c_werror_flag" ||
12886          test ! -s conftest.err
12887        } && test -s conftest$ac_exeext && {
12888          test "$cross_compiling" = yes ||
12889          $as_test_x conftest$ac_exeext
12890        }; then
12891   ac_cv_func_alloca_works=yes
12892 else
12893   $as_echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896         ac_cv_func_alloca_works=no
12897 fi
12898
12899 rm -rf conftest.dSYM
12900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12901       conftest$ac_exeext conftest.$ac_ext
12902 fi
12903 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12904 $as_echo "$ac_cv_func_alloca_works" >&6; }
12905
12906 if test $ac_cv_func_alloca_works = yes; then
12907
12908 cat >>confdefs.h <<\_ACEOF
12909 #define HAVE_ALLOCA 1
12910 _ACEOF
12911
12912 else
12913   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12914 # that cause trouble.  Some versions do not even contain alloca or
12915 # contain a buggy version.  If you still want to use their alloca,
12916 # use ar to extract alloca.o from them instead of compiling alloca.c.
12917
12918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12919
12920 cat >>confdefs.h <<\_ACEOF
12921 #define C_ALLOCA 1
12922 _ACEOF
12923
12924
12925 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12926 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12927 if test "${ac_cv_os_cray+set}" = set; then
12928   $as_echo_n "(cached) " >&6
12929 else
12930   cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 #if defined CRAY && ! defined CRAY2
12937 webecray
12938 #else
12939 wenotbecray
12940 #endif
12941
12942 _ACEOF
12943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12944   $EGREP "webecray" >/dev/null 2>&1; then
12945   ac_cv_os_cray=yes
12946 else
12947   ac_cv_os_cray=no
12948 fi
12949 rm -f conftest*
12950
12951 fi
12952 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12953 $as_echo "$ac_cv_os_cray" >&6; }
12954 if test $ac_cv_os_cray = yes; then
12955   for ac_func in _getb67 GETB67 getb67; do
12956     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12958 $as_echo_n "checking for $ac_func... " >&6; }
12959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12960   $as_echo_n "(cached) " >&6
12961 else
12962   cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12970 #define $ac_func innocuous_$ac_func
12971
12972 /* System header to define __stub macros and hopefully few prototypes,
12973     which can conflict with char $ac_func (); below.
12974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975     <limits.h> exists even on freestanding compilers.  */
12976
12977 #ifdef __STDC__
12978 # include <limits.h>
12979 #else
12980 # include <assert.h>
12981 #endif
12982
12983 #undef $ac_func
12984
12985 /* Override any GCC internal prototype to avoid an error.
12986    Use char because int might match the return type of a GCC
12987    builtin and then its argument prototype would still apply.  */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char $ac_func ();
12992 /* The GNU C library defines this for functions which it implements
12993     to always fail with ENOSYS.  Some functions are actually named
12994     something starting with __ and the normal name is an alias.  */
12995 #if defined __stub_$ac_func || defined __stub___$ac_func
12996 choke me
12997 #endif
12998
12999 int
13000 main ()
13001 {
13002 return $ac_func ();
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (ac_try="$ac_link"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014 $as_echo "$ac_try_echo") >&5
13015   (eval "$ac_link") 2>conftest.er1
13016   ac_status=$?
13017   grep -v '^ *+' conftest.er1 >conftest.err
13018   rm -f conftest.er1
13019   cat conftest.err >&5
13020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } && {
13022          test -z "$ac_c_werror_flag" ||
13023          test ! -s conftest.err
13024        } && test -s conftest$ac_exeext && {
13025          test "$cross_compiling" = yes ||
13026          $as_test_x conftest$ac_exeext
13027        }; then
13028   eval "$as_ac_var=yes"
13029 else
13030   $as_echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033         eval "$as_ac_var=no"
13034 fi
13035
13036 rm -rf conftest.dSYM
13037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13038       conftest$ac_exeext conftest.$ac_ext
13039 fi
13040 ac_res=`eval 'as_val=${'$as_ac_var'}
13041                  $as_echo "$as_val"'`
13042                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13043 $as_echo "$ac_res" >&6; }
13044 as_val=`eval 'as_val=${'$as_ac_var'}
13045                  $as_echo "$as_val"'`
13046    if test "x$as_val" = x""yes; then
13047
13048 cat >>confdefs.h <<_ACEOF
13049 #define CRAY_STACKSEG_END $ac_func
13050 _ACEOF
13051
13052     break
13053 fi
13054
13055   done
13056 fi
13057
13058 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13059 $as_echo_n "checking stack direction for C alloca... " >&6; }
13060 if test "${ac_cv_c_stack_direction+set}" = set; then
13061   $as_echo_n "(cached) " >&6
13062 else
13063   if test "$cross_compiling" = yes; then
13064   ac_cv_c_stack_direction=0
13065 else
13066   cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 $ac_includes_default
13073 int
13074 find_stack_direction ()
13075 {
13076   static char *addr = 0;
13077   auto char dummy;
13078   if (addr == 0)
13079     {
13080       addr = &dummy;
13081       return find_stack_direction ();
13082     }
13083   else
13084     return (&dummy > addr) ? 1 : -1;
13085 }
13086
13087 int
13088 main ()
13089 {
13090   return find_stack_direction () < 0;
13091 }
13092 _ACEOF
13093 rm -f conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097   *) ac_try_echo=$ac_try;;
13098 esac
13099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13100 $as_echo "$ac_try_echo") >&5
13101   (eval "$ac_link") 2>&5
13102   ac_status=$?
13103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13105   { (case "(($ac_try" in
13106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107   *) ac_try_echo=$ac_try;;
13108 esac
13109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13110 $as_echo "$ac_try_echo") >&5
13111   (eval "$ac_try") 2>&5
13112   ac_status=$?
13113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; }; then
13115   ac_cv_c_stack_direction=1
13116 else
13117   $as_echo "$as_me: program exited with status $ac_status" >&5
13118 $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ( exit $ac_status )
13122 ac_cv_c_stack_direction=-1
13123 fi
13124 rm -rf conftest.dSYM
13125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13126 fi
13127
13128
13129 fi
13130 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13131 $as_echo "$ac_cv_c_stack_direction" >&6; }
13132
13133 cat >>confdefs.h <<_ACEOF
13134 #define STACK_DIRECTION $ac_cv_c_stack_direction
13135 _ACEOF
13136
13137
13138 fi
13139
13140
13141 # The cast to long int works around a bug in the HP C Compiler
13142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13144 # This bug is HP SR number 8606223364.
13145 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13146 $as_echo_n "checking size of double... " >&6; }
13147 if test "${ac_cv_sizeof_double+set}" = set; then
13148   $as_echo_n "(cached) " >&6
13149 else
13150   if test "$cross_compiling" = yes; then
13151   # Depending upon the size, compute the lo and hi bounds.
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h.  */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h.  */
13158 $ac_includes_default
13159 int
13160 main ()
13161 {
13162 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13163 test_array [0] = 0
13164
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext
13170 if { (ac_try="$ac_compile"
13171 case "(($ac_try" in
13172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173   *) ac_try_echo=$ac_try;;
13174 esac
13175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176 $as_echo "$ac_try_echo") >&5
13177   (eval "$ac_compile") 2>conftest.er1
13178   ac_status=$?
13179   grep -v '^ *+' conftest.er1 >conftest.err
13180   rm -f conftest.er1
13181   cat conftest.err >&5
13182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); } && {
13184          test -z "$ac_c_werror_flag" ||
13185          test ! -s conftest.err
13186        } && test -s conftest.$ac_objext; then
13187   ac_lo=0 ac_mid=0
13188   while :; do
13189     cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195 $ac_includes_default
13196 int
13197 main ()
13198 {
13199 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13200 test_array [0] = 0
13201
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213 $as_echo "$ac_try_echo") >&5
13214   (eval "$ac_compile") 2>conftest.er1
13215   ac_status=$?
13216   grep -v '^ *+' conftest.er1 >conftest.err
13217   rm -f conftest.er1
13218   cat conftest.err >&5
13219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } && {
13221          test -z "$ac_c_werror_flag" ||
13222          test ! -s conftest.err
13223        } && test -s conftest.$ac_objext; then
13224   ac_hi=$ac_mid; break
13225 else
13226   $as_echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229         ac_lo=`expr $ac_mid + 1`
13230                         if test $ac_lo -le $ac_mid; then
13231                           ac_lo= ac_hi=
13232                           break
13233                         fi
13234                         ac_mid=`expr 2 '*' $ac_mid + 1`
13235 fi
13236
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238   done
13239 else
13240   $as_echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243         cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249 $ac_includes_default
13250 int
13251 main ()
13252 {
13253 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13254 test_array [0] = 0
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (ac_try="$ac_compile"
13262 case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13267 $as_echo "$ac_try_echo") >&5
13268   (eval "$ac_compile") 2>conftest.er1
13269   ac_status=$?
13270   grep -v '^ *+' conftest.er1 >conftest.err
13271   rm -f conftest.er1
13272   cat conftest.err >&5
13273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } && {
13275          test -z "$ac_c_werror_flag" ||
13276          test ! -s conftest.err
13277        } && test -s conftest.$ac_objext; then
13278   ac_hi=-1 ac_mid=-1
13279   while :; do
13280     cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287 int
13288 main ()
13289 {
13290 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13291 test_array [0] = 0
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (ac_try="$ac_compile"
13299 case "(($ac_try" in
13300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301   *) ac_try_echo=$ac_try;;
13302 esac
13303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13304 $as_echo "$ac_try_echo") >&5
13305   (eval "$ac_compile") 2>conftest.er1
13306   ac_status=$?
13307   grep -v '^ *+' conftest.er1 >conftest.err
13308   rm -f conftest.er1
13309   cat conftest.err >&5
13310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } && {
13312          test -z "$ac_c_werror_flag" ||
13313          test ! -s conftest.err
13314        } && test -s conftest.$ac_objext; then
13315   ac_lo=$ac_mid; break
13316 else
13317   $as_echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320         ac_hi=`expr '(' $ac_mid ')' - 1`
13321                         if test $ac_mid -le $ac_hi; then
13322                           ac_lo= ac_hi=
13323                           break
13324                         fi
13325                         ac_mid=`expr 2 '*' $ac_mid`
13326 fi
13327
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329   done
13330 else
13331   $as_echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334         ac_lo= ac_hi=
13335 fi
13336
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 # Binary search between lo and hi bounds.
13342 while test "x$ac_lo" != "x$ac_hi"; do
13343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13344   cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350 $ac_includes_default
13351 int
13352 main ()
13353 {
13354 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13355 test_array [0] = 0
13356
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13368 $as_echo "$ac_try_echo") >&5
13369   (eval "$ac_compile") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } && {
13376          test -z "$ac_c_werror_flag" ||
13377          test ! -s conftest.err
13378        } && test -s conftest.$ac_objext; then
13379   ac_hi=$ac_mid
13380 else
13381   $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384         ac_lo=`expr '(' $ac_mid ')' + 1`
13385 fi
13386
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 done
13389 case $ac_lo in
13390 ?*) ac_cv_sizeof_double=$ac_lo;;
13391 '') if test "$ac_cv_type_double" = yes; then
13392      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13394 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13395 See \`config.log' for more details." >&5
13396 $as_echo "$as_me: error: cannot compute sizeof (double)
13397 See \`config.log' for more details." >&2;}
13398    { (exit 77); exit 77; }; }; }
13399    else
13400      ac_cv_sizeof_double=0
13401    fi ;;
13402 esac
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 $ac_includes_default
13411 static long int longval () { return (long int) (sizeof (double)); }
13412 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13413 #include <stdio.h>
13414 #include <stdlib.h>
13415 int
13416 main ()
13417 {
13418
13419   FILE *f = fopen ("conftest.val", "w");
13420   if (! f)
13421     return 1;
13422   if (((long int) (sizeof (double))) < 0)
13423     {
13424       long int i = longval ();
13425       if (i != ((long int) (sizeof (double))))
13426         return 1;
13427       fprintf (f, "%ld", i);
13428     }
13429   else
13430     {
13431       unsigned long int i = ulongval ();
13432       if (i != ((long int) (sizeof (double))))
13433         return 1;
13434       fprintf (f, "%lu", i);
13435     }
13436   /* Do not output a trailing newline, as this causes \r\n confusion
13437      on some platforms.  */
13438   return ferror (f) || fclose (f) != 0;
13439
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest$ac_exeext
13445 if { (ac_try="$ac_link"
13446 case "(($ac_try" in
13447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448   *) ac_try_echo=$ac_try;;
13449 esac
13450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13451 $as_echo "$ac_try_echo") >&5
13452   (eval "$ac_link") 2>&5
13453   ac_status=$?
13454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13456   { (case "(($ac_try" in
13457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458   *) ac_try_echo=$ac_try;;
13459 esac
13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13461 $as_echo "$ac_try_echo") >&5
13462   (eval "$ac_try") 2>&5
13463   ac_status=$?
13464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; }; then
13466   ac_cv_sizeof_double=`cat conftest.val`
13467 else
13468   $as_echo "$as_me: program exited with status $ac_status" >&5
13469 $as_echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ( exit $ac_status )
13473 if test "$ac_cv_type_double" = yes; then
13474      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13476 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13477 See \`config.log' for more details." >&5
13478 $as_echo "$as_me: error: cannot compute sizeof (double)
13479 See \`config.log' for more details." >&2;}
13480    { (exit 77); exit 77; }; }; }
13481    else
13482      ac_cv_sizeof_double=0
13483    fi
13484 fi
13485 rm -rf conftest.dSYM
13486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13487 fi
13488 rm -f conftest.val
13489 fi
13490 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13491 $as_echo "$ac_cv_sizeof_double" >&6; }
13492
13493
13494
13495 cat >>confdefs.h <<_ACEOF
13496 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13497 _ACEOF
13498
13499
13500 # The cast to long int works around a bug in the HP C Compiler
13501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13503 # This bug is HP SR number 8606223364.
13504 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13505 $as_echo_n "checking size of long double... " >&6; }
13506 if test "${ac_cv_sizeof_long_double+set}" = set; then
13507   $as_echo_n "(cached) " >&6
13508 else
13509   if test "$cross_compiling" = yes; then
13510   # Depending upon the size, compute the lo and hi bounds.
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 int
13519 main ()
13520 {
13521 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13522 test_array [0] = 0
13523
13524   ;
13525   return 0;
13526 }
13527 _ACEOF
13528 rm -f conftest.$ac_objext
13529 if { (ac_try="$ac_compile"
13530 case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13535 $as_echo "$ac_try_echo") >&5
13536   (eval "$ac_compile") 2>conftest.er1
13537   ac_status=$?
13538   grep -v '^ *+' conftest.er1 >conftest.err
13539   rm -f conftest.er1
13540   cat conftest.err >&5
13541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); } && {
13543          test -z "$ac_c_werror_flag" ||
13544          test ! -s conftest.err
13545        } && test -s conftest.$ac_objext; then
13546   ac_lo=0 ac_mid=0
13547   while :; do
13548     cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554 $ac_includes_default
13555 int
13556 main ()
13557 {
13558 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13559 test_array [0] = 0
13560
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573   (eval "$ac_compile") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } && {
13580          test -z "$ac_c_werror_flag" ||
13581          test ! -s conftest.err
13582        } && test -s conftest.$ac_objext; then
13583   ac_hi=$ac_mid; break
13584 else
13585   $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         ac_lo=`expr $ac_mid + 1`
13589                         if test $ac_lo -le $ac_mid; then
13590                           ac_lo= ac_hi=
13591                           break
13592                         fi
13593                         ac_mid=`expr 2 '*' $ac_mid + 1`
13594 fi
13595
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597   done
13598 else
13599   $as_echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602         cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608 $ac_includes_default
13609 int
13610 main ()
13611 {
13612 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13613 test_array [0] = 0
13614
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext
13620 if { (ac_try="$ac_compile"
13621 case "(($ac_try" in
13622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623   *) ac_try_echo=$ac_try;;
13624 esac
13625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13626 $as_echo "$ac_try_echo") >&5
13627   (eval "$ac_compile") 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } && {
13634          test -z "$ac_c_werror_flag" ||
13635          test ! -s conftest.err
13636        } && test -s conftest.$ac_objext; then
13637   ac_hi=-1 ac_mid=-1
13638   while :; do
13639     cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645 $ac_includes_default
13646 int
13647 main ()
13648 {
13649 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13650 test_array [0] = 0
13651
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (ac_try="$ac_compile"
13658 case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13663 $as_echo "$ac_try_echo") >&5
13664   (eval "$ac_compile") 2>conftest.er1
13665   ac_status=$?
13666   grep -v '^ *+' conftest.er1 >conftest.err
13667   rm -f conftest.er1
13668   cat conftest.err >&5
13669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } && {
13671          test -z "$ac_c_werror_flag" ||
13672          test ! -s conftest.err
13673        } && test -s conftest.$ac_objext; then
13674   ac_lo=$ac_mid; break
13675 else
13676   $as_echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679         ac_hi=`expr '(' $ac_mid ')' - 1`
13680                         if test $ac_mid -le $ac_hi; then
13681                           ac_lo= ac_hi=
13682                           break
13683                         fi
13684                         ac_mid=`expr 2 '*' $ac_mid`
13685 fi
13686
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688   done
13689 else
13690   $as_echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693         ac_lo= ac_hi=
13694 fi
13695
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 fi
13698
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 # Binary search between lo and hi bounds.
13701 while test "x$ac_lo" != "x$ac_hi"; do
13702   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13703   cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 $ac_includes_default
13710 int
13711 main ()
13712 {
13713 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13714 test_array [0] = 0
13715
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724   *) ac_try_echo=$ac_try;;
13725 esac
13726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13727 $as_echo "$ac_try_echo") >&5
13728   (eval "$ac_compile") 2>conftest.er1
13729   ac_status=$?
13730   grep -v '^ *+' conftest.er1 >conftest.err
13731   rm -f conftest.er1
13732   cat conftest.err >&5
13733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } && {
13735          test -z "$ac_c_werror_flag" ||
13736          test ! -s conftest.err
13737        } && test -s conftest.$ac_objext; then
13738   ac_hi=$ac_mid
13739 else
13740   $as_echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743         ac_lo=`expr '(' $ac_mid ')' + 1`
13744 fi
13745
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747 done
13748 case $ac_lo in
13749 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13750 '') if test "$ac_cv_type_long_double" = yes; then
13751      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13753 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13754 See \`config.log' for more details." >&5
13755 $as_echo "$as_me: error: cannot compute sizeof (long double)
13756 See \`config.log' for more details." >&2;}
13757    { (exit 77); exit 77; }; }; }
13758    else
13759      ac_cv_sizeof_long_double=0
13760    fi ;;
13761 esac
13762 else
13763   cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769 $ac_includes_default
13770 static long int longval () { return (long int) (sizeof (long double)); }
13771 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13772 #include <stdio.h>
13773 #include <stdlib.h>
13774 int
13775 main ()
13776 {
13777
13778   FILE *f = fopen ("conftest.val", "w");
13779   if (! f)
13780     return 1;
13781   if (((long int) (sizeof (long double))) < 0)
13782     {
13783       long int i = longval ();
13784       if (i != ((long int) (sizeof (long double))))
13785         return 1;
13786       fprintf (f, "%ld", i);
13787     }
13788   else
13789     {
13790       unsigned long int i = ulongval ();
13791       if (i != ((long int) (sizeof (long double))))
13792         return 1;
13793       fprintf (f, "%lu", i);
13794     }
13795   /* Do not output a trailing newline, as this causes \r\n confusion
13796      on some platforms.  */
13797   return ferror (f) || fclose (f) != 0;
13798
13799   ;
13800   return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest$ac_exeext
13804 if { (ac_try="$ac_link"
13805 case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13810 $as_echo "$ac_try_echo") >&5
13811   (eval "$ac_link") 2>&5
13812   ac_status=$?
13813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13815   { (case "(($ac_try" in
13816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817   *) ac_try_echo=$ac_try;;
13818 esac
13819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820 $as_echo "$ac_try_echo") >&5
13821   (eval "$ac_try") 2>&5
13822   ac_status=$?
13823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   ac_cv_sizeof_long_double=`cat conftest.val`
13826 else
13827   $as_echo "$as_me: program exited with status $ac_status" >&5
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831 ( exit $ac_status )
13832 if test "$ac_cv_type_long_double" = yes; then
13833      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13835 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13836 See \`config.log' for more details." >&5
13837 $as_echo "$as_me: error: cannot compute sizeof (long double)
13838 See \`config.log' for more details." >&2;}
13839    { (exit 77); exit 77; }; }; }
13840    else
13841      ac_cv_sizeof_long_double=0
13842    fi
13843 fi
13844 rm -rf conftest.dSYM
13845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 rm -f conftest.val
13848 fi
13849 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13850 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13851
13852
13853
13854 cat >>confdefs.h <<_ACEOF
13855 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13856 _ACEOF
13857
13858
13859
13860 # Also AC_SUBST this variable for ffi.h.
13861 if test -z "$HAVE_LONG_DOUBLE"; then
13862   HAVE_LONG_DOUBLE=0
13863   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13864     if test $ac_cv_sizeof_long_double != 0; then
13865       HAVE_LONG_DOUBLE=1
13866
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_LONG_DOUBLE 1
13869 _ACEOF
13870
13871     fi
13872   fi
13873 fi
13874
13875
13876
13877  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13878 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13879 if test "${ac_cv_c_bigendian+set}" = set; then
13880   $as_echo_n "(cached) " >&6
13881 else
13882   ac_cv_c_bigendian=unknown
13883     # See if we're dealing with a universal compiler.
13884     cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890 #ifndef __APPLE_CC__
13891                not a universal capable compiler
13892              #endif
13893              typedef int dummy;
13894
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (ac_try="$ac_compile"
13898 case "(($ac_try" in
13899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900   *) ac_try_echo=$ac_try;;
13901 esac
13902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13903 $as_echo "$ac_try_echo") >&5
13904   (eval "$ac_compile") 2>conftest.er1
13905   ac_status=$?
13906   grep -v '^ *+' conftest.er1 >conftest.err
13907   rm -f conftest.er1
13908   cat conftest.err >&5
13909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } && {
13911          test -z "$ac_c_werror_flag" ||
13912          test ! -s conftest.err
13913        } && test -s conftest.$ac_objext; then
13914
13915         # Check for potential -arch flags.  It is not universal unless
13916         # there are some -arch flags.  Note that *ppc* also matches
13917         # ppc64.  This check is also rather less than ideal.
13918         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13919           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13920         esac
13921 else
13922   $as_echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13924
13925
13926 fi
13927
13928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929     if test $ac_cv_c_bigendian = unknown; then
13930       # See if sys/param.h defines the BYTE_ORDER macro.
13931       cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937 #include <sys/types.h>
13938              #include <sys/param.h>
13939
13940 int
13941 main ()
13942 {
13943 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13944                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13945                      && LITTLE_ENDIAN)
13946               bogus endian macros
13947              #endif
13948
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 rm -f conftest.$ac_objext
13954 if { (ac_try="$ac_compile"
13955 case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13960 $as_echo "$ac_try_echo") >&5
13961   (eval "$ac_compile") 2>conftest.er1
13962   ac_status=$?
13963   grep -v '^ *+' conftest.er1 >conftest.err
13964   rm -f conftest.er1
13965   cat conftest.err >&5
13966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } && {
13968          test -z "$ac_c_werror_flag" ||
13969          test ! -s conftest.err
13970        } && test -s conftest.$ac_objext; then
13971   # It does; now see whether it defined to BIG_ENDIAN or not.
13972          cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978 #include <sys/types.h>
13979                 #include <sys/param.h>
13980
13981 int
13982 main ()
13983 {
13984 #if BYTE_ORDER != BIG_ENDIAN
13985                  not big endian
13986                 #endif
13987
13988   ;
13989   return 0;
13990 }
13991 _ACEOF
13992 rm -f conftest.$ac_objext
13993 if { (ac_try="$ac_compile"
13994 case "(($ac_try" in
13995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996   *) ac_try_echo=$ac_try;;
13997 esac
13998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13999 $as_echo "$ac_try_echo") >&5
14000   (eval "$ac_compile") 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } && {
14007          test -z "$ac_c_werror_flag" ||
14008          test ! -s conftest.err
14009        } && test -s conftest.$ac_objext; then
14010   ac_cv_c_bigendian=yes
14011 else
14012   $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015         ac_cv_c_bigendian=no
14016 fi
14017
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 else
14020   $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023
14024 fi
14025
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027     fi
14028     if test $ac_cv_c_bigendian = unknown; then
14029       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14030       cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036 #include <limits.h>
14037
14038 int
14039 main ()
14040 {
14041 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14042               bogus endian macros
14043              #endif
14044
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053   *) ac_try_echo=$ac_try;;
14054 esac
14055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14056 $as_echo "$ac_try_echo") >&5
14057   (eval "$ac_compile") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } && {
14064          test -z "$ac_c_werror_flag" ||
14065          test ! -s conftest.err
14066        } && test -s conftest.$ac_objext; then
14067   # It does; now see whether it defined to _BIG_ENDIAN or not.
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 #ifndef _BIG_ENDIAN
14080                  not big endian
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   ac_cv_c_bigendian=yes
14106 else
14107   $as_echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110         ac_cv_c_bigendian=no
14111 fi
14112
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 else
14115   $as_echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118
14119 fi
14120
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122     fi
14123     if test $ac_cv_c_bigendian = unknown; then
14124       # Compile a test program.
14125       if test "$cross_compiling" = yes; then
14126   # Try to guess by grepping values from an object file.
14127          cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133 short int ascii_mm[] =
14134                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14135                 short int ascii_ii[] =
14136                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14137                 int use_ascii (int i) {
14138                   return ascii_mm[i] + ascii_ii[i];
14139                 }
14140                 short int ebcdic_ii[] =
14141                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14142                 short int ebcdic_mm[] =
14143                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14144                 int use_ebcdic (int i) {
14145                   return ebcdic_mm[i] + ebcdic_ii[i];
14146                 }
14147                 extern int foo;
14148
14149 int
14150 main ()
14151 {
14152 return use_ascii (foo) == use_ebcdic (foo);
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14164 $as_echo "$ac_try_echo") >&5
14165   (eval "$ac_compile") 2>conftest.er1
14166   ac_status=$?
14167   grep -v '^ *+' conftest.er1 >conftest.err
14168   rm -f conftest.er1
14169   cat conftest.err >&5
14170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } && {
14172          test -z "$ac_c_werror_flag" ||
14173          test ! -s conftest.err
14174        } && test -s conftest.$ac_objext; then
14175   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14176               ac_cv_c_bigendian=yes
14177             fi
14178             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14179               if test "$ac_cv_c_bigendian" = unknown; then
14180                 ac_cv_c_bigendian=no
14181               else
14182                 # finding both strings is unlikely to happen, but who knows?
14183                 ac_cv_c_bigendian=unknown
14184               fi
14185             fi
14186 else
14187   $as_echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190
14191 fi
14192
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 else
14195   cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 $ac_includes_default
14202 int
14203 main ()
14204 {
14205
14206              /* Are we little or big endian?  From Harbison&Steele.  */
14207              union
14208              {
14209                long int l;
14210                char c[sizeof (long int)];
14211              } u;
14212              u.l = 1;
14213              return u.c[sizeof (long int) - 1] == 1;
14214
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest$ac_exeext
14220 if { (ac_try="$ac_link"
14221 case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14226 $as_echo "$ac_try_echo") >&5
14227   (eval "$ac_link") 2>&5
14228   ac_status=$?
14229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14236 $as_echo "$ac_try_echo") >&5
14237   (eval "$ac_try") 2>&5
14238   ac_status=$?
14239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }; }; then
14241   ac_cv_c_bigendian=no
14242 else
14243   $as_echo "$as_me: program exited with status $ac_status" >&5
14244 $as_echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 ( exit $ac_status )
14248 ac_cv_c_bigendian=yes
14249 fi
14250 rm -rf conftest.dSYM
14251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14252 fi
14253
14254
14255     fi
14256 fi
14257 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14258 $as_echo "$ac_cv_c_bigendian" >&6; }
14259  case $ac_cv_c_bigendian in #(
14260    yes)
14261      cat >>confdefs.h <<\_ACEOF
14262 #define WORDS_BIGENDIAN 1
14263 _ACEOF
14264 ;; #(
14265    no)
14266       ;; #(
14267    universal)
14268
14269 cat >>confdefs.h <<\_ACEOF
14270 #define AC_APPLE_UNIVERSAL_BUILD 1
14271 _ACEOF
14272
14273      ;; #(
14274    *)
14275      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14276  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14277 $as_echo "$as_me: error: unknown endianness
14278  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14279    { (exit 1); exit 1; }; } ;;
14280  esac
14281
14282
14283 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14284 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14285 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14286   $as_echo_n "(cached) " >&6
14287 else
14288
14289     libffi_cv_as_cfi_pseudo_op=unknown
14290     cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 asm (".cfi_startproc\n\t.cfi_endproc");
14297 int
14298 main ()
14299 {
14300
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14312 $as_echo "$ac_try_echo") >&5
14313   (eval "$ac_compile") 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } && {
14320          test -z "$ac_c_werror_flag" ||
14321          test ! -s conftest.err
14322        } && test -s conftest.$ac_objext; then
14323   libffi_cv_as_cfi_pseudo_op=yes
14324 else
14325   $as_echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328         libffi_cv_as_cfi_pseudo_op=no
14329 fi
14330
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332
14333 fi
14334 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14335 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14336 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14337
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_AS_CFI_PSEUDO_OP 1
14340 _ACEOF
14341
14342 fi
14343
14344 if test x$TARGET = xSPARC; then
14345     { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14346 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14347 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14348   $as_echo_n "(cached) " >&6
14349 else
14350
14351         save_CFLAGS="$CFLAGS"
14352         save_LDFLAGS="$LDFLAGS"
14353         CFLAGS="$CFLAGS -fpic"
14354         LDFLAGS="$LDFLAGS -shared"
14355         cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14362 int
14363 main ()
14364 {
14365
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378   (eval "$ac_link") 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } && {
14385          test -z "$ac_c_werror_flag" ||
14386          test ! -s conftest.err
14387        } && test -s conftest$ac_exeext && {
14388          test "$cross_compiling" = yes ||
14389          $as_test_x conftest$ac_exeext
14390        }; then
14391   libffi_cv_as_sparc_ua_pcrel=yes
14392 else
14393   $as_echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396         libffi_cv_as_sparc_ua_pcrel=no
14397 fi
14398
14399 rm -rf conftest.dSYM
14400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14401       conftest$ac_exeext conftest.$ac_ext
14402         CFLAGS="$save_CFLAGS"
14403         LDFLAGS="$save_LDFLAGS"
14404 fi
14405 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14406 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14407     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_AS_SPARC_UA_PCREL 1
14411 _ACEOF
14412
14413     fi
14414
14415     { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14416 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14417 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14418   $as_echo_n "(cached) " >&6
14419 else
14420
14421        libffi_cv_as_register_pseudo_op=unknown
14422        # Check if we have .register
14423        cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h.  */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h.  */
14429 asm (".register %g2, #scratch");
14430 int
14431 main ()
14432 {
14433
14434   ;
14435   return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (ac_try="$ac_compile"
14440 case "(($ac_try" in
14441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442   *) ac_try_echo=$ac_try;;
14443 esac
14444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14445 $as_echo "$ac_try_echo") >&5
14446   (eval "$ac_compile") 2>conftest.er1
14447   ac_status=$?
14448   grep -v '^ *+' conftest.er1 >conftest.err
14449   rm -f conftest.er1
14450   cat conftest.err >&5
14451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); } && {
14453          test -z "$ac_c_werror_flag" ||
14454          test ! -s conftest.err
14455        } && test -s conftest.$ac_objext; then
14456   libffi_cv_as_register_pseudo_op=yes
14457 else
14458   $as_echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461         libffi_cv_as_register_pseudo_op=no
14462 fi
14463
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465
14466 fi
14467 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14468 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14469     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14470
14471 cat >>confdefs.h <<\_ACEOF
14472 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14473 _ACEOF
14474
14475     fi
14476 fi
14477
14478 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14479     { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14480 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14481 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14482   $as_echo_n "(cached) " >&6
14483 else
14484
14485         libffi_cv_as_x86_pcrel=yes
14486         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14487         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14488             libffi_cv_as_x86_pcrel=no
14489         fi
14490
14491 fi
14492 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14493 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14494     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14495
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_AS_X86_PCREL 1
14498 _ACEOF
14499
14500     fi
14501 fi
14502
14503 case "$target" in
14504      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14505
14506 cat >>confdefs.h <<\_ACEOF
14507 #define FFI_MMAP_EXEC_WRIT 1
14508 _ACEOF
14509
14510      ;;
14511 esac
14512
14513 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14514 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14515 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14516   $as_echo_n "(cached) " >&6
14517 else
14518
14519         libffi_cv_ro_eh_frame=no
14520         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14521         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14522             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14523                 libffi_cv_ro_eh_frame=yes
14524             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14525                  | grep -v '#write' > /dev/null; then
14526                 libffi_cv_ro_eh_frame=yes
14527             fi
14528         fi
14529         rm -f conftest.*
14530
14531 fi
14532 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14533 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14534 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14535
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_RO_EH_FRAME 1
14538 _ACEOF
14539
14540
14541 cat >>confdefs.h <<\_ACEOF
14542 #define EH_FRAME_FLAGS "a"
14543 _ACEOF
14544
14545 else
14546
14547 cat >>confdefs.h <<\_ACEOF
14548 #define EH_FRAME_FLAGS "aw"
14549 _ACEOF
14550
14551 fi
14552
14553 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14554 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14555 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14556   $as_echo_n "(cached) " >&6
14557 else
14558
14559         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14560         libffi_cv_hidden_visibility_attribute=no
14561         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14568                 libffi_cv_hidden_visibility_attribute=yes
14569             fi
14570         fi
14571         rm -f conftest.*
14572
14573 fi
14574 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14575 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14576 if test $libffi_cv_hidden_visibility_attribute = yes; then
14577
14578 cat >>confdefs.h <<\_ACEOF
14579 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14580 _ACEOF
14581
14582 fi
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592 # Check whether --enable-debug was given.
14593 if test "${enable_debug+set}" = set; then
14594   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14595
14596 cat >>confdefs.h <<\_ACEOF
14597 #define FFI_DEBUG 1
14598 _ACEOF
14599
14600   fi
14601 fi
14602
14603
14604 # Check whether --enable-structs was given.
14605 if test "${enable_structs+set}" = set; then
14606   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14607
14608 cat >>confdefs.h <<\_ACEOF
14609 #define FFI_NO_STRUCTS 1
14610 _ACEOF
14611
14612   fi
14613 fi
14614
14615
14616 # Check whether --enable-raw-api was given.
14617 if test "${enable_raw_api+set}" = set; then
14618   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14619
14620 cat >>confdefs.h <<\_ACEOF
14621 #define FFI_NO_RAW_API 1
14622 _ACEOF
14623
14624   fi
14625 fi
14626
14627
14628 # Check whether --enable-purify-safety was given.
14629 if test "${enable_purify_safety+set}" = set; then
14630   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14631
14632 cat >>confdefs.h <<\_ACEOF
14633 #define USING_PURIFY 1
14634 _ACEOF
14635
14636   fi
14637 fi
14638
14639
14640 if test -n "$with_cross_host" &&
14641    test x"$with_cross_host" != x"no"; then
14642   toolexecdir='$(exec_prefix)/$(target_alias)'
14643   toolexeclibdir='$(toolexecdir)/lib'
14644 else
14645   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14646   toolexeclibdir='$(libdir)'
14647 fi
14648 multi_os_directory=`$CC -print-multi-os-directory`
14649 case $multi_os_directory in
14650   .) ;; # Avoid trailing /.
14651   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14652 esac
14653
14654
14655
14656 if test "${multilib}" = "yes"; then
14657   multilib_arg="--enable-multilib"
14658 else
14659   multilib_arg=
14660 fi
14661
14662 ac_config_commands="$ac_config_commands include"
14663
14664 ac_config_commands="$ac_config_commands src"
14665
14666
14667 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14668
14669
14670 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14671
14672
14673 cat >confcache <<\_ACEOF
14674 # This file is a shell script that caches the results of configure
14675 # tests run on this system so they can be shared between configure
14676 # scripts and configure runs, see configure's option --config-cache.
14677 # It is not useful on other systems.  If it contains results you don't
14678 # want to keep, you may remove or edit it.
14679 #
14680 # config.status only pays attention to the cache file if you give it
14681 # the --recheck option to rerun configure.
14682 #
14683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14685 # following values.
14686
14687 _ACEOF
14688
14689 # The following way of writing the cache mishandles newlines in values,
14690 # but we know of no workaround that is simple, portable, and efficient.
14691 # So, we kill variables containing newlines.
14692 # Ultrix sh set writes to stderr and can't be redirected directly,
14693 # and sets the high bit in the cache file unless we assign to the vars.
14694 (
14695   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14696     eval ac_val=\$$ac_var
14697     case $ac_val in #(
14698     *${as_nl}*)
14699       case $ac_var in #(
14700       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14702       esac
14703       case $ac_var in #(
14704       _ | IFS | as_nl) ;; #(
14705       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14706       *) $as_unset $ac_var ;;
14707       esac ;;
14708     esac
14709   done
14710
14711   (set) 2>&1 |
14712     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14713     *${as_nl}ac_space=\ *)
14714       # `set' does not quote correctly, so add quotes (double-quote
14715       # substitution turns \\\\ into \\, and sed turns \\ into \).
14716       sed -n \
14717         "s/'/'\\\\''/g;
14718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14719       ;; #(
14720     *)
14721       # `set' quotes correctly as required by POSIX, so do not add quotes.
14722       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14723       ;;
14724     esac |
14725     sort
14726 ) |
14727   sed '
14728      /^ac_cv_env_/b end
14729      t clear
14730      :clear
14731      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14732      t end
14733      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14734      :end' >>confcache
14735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14736   if test -w "$cache_file"; then
14737     test "x$cache_file" != "x/dev/null" &&
14738       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14739 $as_echo "$as_me: updating cache $cache_file" >&6;}
14740     cat confcache >$cache_file
14741   else
14742     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14744   fi
14745 fi
14746 rm -f confcache
14747
14748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14749 # Let make expand exec_prefix.
14750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14751
14752 DEFS=-DHAVE_CONFIG_H
14753
14754 ac_libobjs=
14755 ac_ltlibobjs=
14756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14757   # 1. Remove the extension, and $U if already installed.
14758   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14759   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14760   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14761   #    will be set to the directory where LIBOBJS objects are built.
14762   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14763   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14764 done
14765 LIBOBJS=$ac_libobjs
14766
14767 LTLIBOBJS=$ac_ltlibobjs
14768
14769
14770  if test -n "$EXEEXT"; then
14771   am__EXEEXT_TRUE=
14772   am__EXEEXT_FALSE='#'
14773 else
14774   am__EXEEXT_TRUE='#'
14775   am__EXEEXT_FALSE=
14776 fi
14777
14778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14779   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14780 Usually this means the macro was only invoked conditionally." >&5
14781 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14782 Usually this means the macro was only invoked conditionally." >&2;}
14783    { (exit 1); exit 1; }; }
14784 fi
14785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14786   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14787 Usually this means the macro was only invoked conditionally." >&5
14788 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14789 Usually this means the macro was only invoked conditionally." >&2;}
14790    { (exit 1); exit 1; }; }
14791 fi
14792 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14793   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14794 Usually this means the macro was only invoked conditionally." >&5
14795 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14796 Usually this means the macro was only invoked conditionally." >&2;}
14797    { (exit 1); exit 1; }; }
14798 fi
14799 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14800   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14801 Usually this means the macro was only invoked conditionally." >&5
14802 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14803 Usually this means the macro was only invoked conditionally." >&2;}
14804    { (exit 1); exit 1; }; }
14805 fi
14806 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14807   { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
14808 Usually this means the macro was only invoked conditionally." >&5
14809 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
14810 Usually this means the macro was only invoked conditionally." >&2;}
14811    { (exit 1); exit 1; }; }
14812 fi
14813 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14814   { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
14815 Usually this means the macro was only invoked conditionally." >&5
14816 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
14817 Usually this means the macro was only invoked conditionally." >&2;}
14818    { (exit 1); exit 1; }; }
14819 fi
14820 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14821   { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
14822 Usually this means the macro was only invoked conditionally." >&5
14823 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
14824 Usually this means the macro was only invoked conditionally." >&2;}
14825    { (exit 1); exit 1; }; }
14826 fi
14827 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14828   { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
14829 Usually this means the macro was only invoked conditionally." >&5
14830 $as_echo "$as_me: error: conditional \"X86\" was never defined.
14831 Usually this means the macro was only invoked conditionally." >&2;}
14832    { (exit 1); exit 1; }; }
14833 fi
14834 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14835   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
14836 Usually this means the macro was only invoked conditionally." >&5
14837 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
14838 Usually this means the macro was only invoked conditionally." >&2;}
14839    { (exit 1); exit 1; }; }
14840 fi
14841 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14842   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
14843 Usually this means the macro was only invoked conditionally." >&5
14844 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
14845 Usually this means the macro was only invoked conditionally." >&2;}
14846    { (exit 1); exit 1; }; }
14847 fi
14848 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14849   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
14850 Usually this means the macro was only invoked conditionally." >&5
14851 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
14852 Usually this means the macro was only invoked conditionally." >&2;}
14853    { (exit 1); exit 1; }; }
14854 fi
14855 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14856   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
14857 Usually this means the macro was only invoked conditionally." >&5
14858 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
14859 Usually this means the macro was only invoked conditionally." >&2;}
14860    { (exit 1); exit 1; }; }
14861 fi
14862 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14863   { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
14864 Usually this means the macro was only invoked conditionally." >&5
14865 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
14866 Usually this means the macro was only invoked conditionally." >&2;}
14867    { (exit 1); exit 1; }; }
14868 fi
14869 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14870   { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
14871 Usually this means the macro was only invoked conditionally." >&5
14872 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
14873 Usually this means the macro was only invoked conditionally." >&2;}
14874    { (exit 1); exit 1; }; }
14875 fi
14876 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14877   { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
14878 Usually this means the macro was only invoked conditionally." >&5
14879 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
14880 Usually this means the macro was only invoked conditionally." >&2;}
14881    { (exit 1); exit 1; }; }
14882 fi
14883 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14884   { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
14885 Usually this means the macro was only invoked conditionally." >&5
14886 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
14887 Usually this means the macro was only invoked conditionally." >&2;}
14888    { (exit 1); exit 1; }; }
14889 fi
14890 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14891   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
14892 Usually this means the macro was only invoked conditionally." >&5
14893 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
14894 Usually this means the macro was only invoked conditionally." >&2;}
14895    { (exit 1); exit 1; }; }
14896 fi
14897 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14898   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
14899 Usually this means the macro was only invoked conditionally." >&5
14900 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
14901 Usually this means the macro was only invoked conditionally." >&2;}
14902    { (exit 1); exit 1; }; }
14903 fi
14904 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14905   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
14906 Usually this means the macro was only invoked conditionally." >&5
14907 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
14908 Usually this means the macro was only invoked conditionally." >&2;}
14909    { (exit 1); exit 1; }; }
14910 fi
14911 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14912   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
14913 Usually this means the macro was only invoked conditionally." >&5
14914 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
14915 Usually this means the macro was only invoked conditionally." >&2;}
14916    { (exit 1); exit 1; }; }
14917 fi
14918 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14919   { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
14920 Usually this means the macro was only invoked conditionally." >&5
14921 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
14922 Usually this means the macro was only invoked conditionally." >&2;}
14923    { (exit 1); exit 1; }; }
14924 fi
14925 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14926   { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
14927 Usually this means the macro was only invoked conditionally." >&5
14928 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
14929 Usually this means the macro was only invoked conditionally." >&2;}
14930    { (exit 1); exit 1; }; }
14931 fi
14932 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14933   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
14934 Usually this means the macro was only invoked conditionally." >&5
14935 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
14936 Usually this means the macro was only invoked conditionally." >&2;}
14937    { (exit 1); exit 1; }; }
14938 fi
14939 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14940   { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
14941 Usually this means the macro was only invoked conditionally." >&5
14942 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
14943 Usually this means the macro was only invoked conditionally." >&2;}
14944    { (exit 1); exit 1; }; }
14945 fi
14946 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14947   { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
14948 Usually this means the macro was only invoked conditionally." >&5
14949 $as_echo "$as_me: error: conditional \"S390\" was never defined.
14950 Usually this means the macro was only invoked conditionally." >&2;}
14951    { (exit 1); exit 1; }; }
14952 fi
14953 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14954   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
14955 Usually this means the macro was only invoked conditionally." >&5
14956 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
14957 Usually this means the macro was only invoked conditionally." >&2;}
14958    { (exit 1); exit 1; }; }
14959 fi
14960 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14961   { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&5
14963 $as_echo "$as_me: error: conditional \"SH\" was never defined.
14964 Usually this means the macro was only invoked conditionally." >&2;}
14965    { (exit 1); exit 1; }; }
14966 fi
14967 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14968   { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&5
14970 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
14971 Usually this means the macro was only invoked conditionally." >&2;}
14972    { (exit 1); exit 1; }; }
14973 fi
14974 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14975   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&5
14977 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
14978 Usually this means the macro was only invoked conditionally." >&2;}
14979    { (exit 1); exit 1; }; }
14980 fi
14981 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14982   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&5
14984 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
14985 Usually this means the macro was only invoked conditionally." >&2;}
14986    { (exit 1); exit 1; }; }
14987 fi
14988 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14989   { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&5
14991 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
14992 Usually this means the macro was only invoked conditionally." >&2;}
14993    { (exit 1); exit 1; }; }
14994 fi
14995
14996
14997 : ${CONFIG_STATUS=./config.status}
14998 ac_write_fail=0
14999 ac_clean_files_save=$ac_clean_files
15000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15001 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15003 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004 #! $SHELL
15005 # Generated by $as_me.
15006 # Run this file to recreate the current configuration.
15007 # Compiler output produced by configure, useful for debugging
15008 # configure, is in config.log if it exists.
15009
15010 debug=false
15011 ac_cs_recheck=false
15012 ac_cs_silent=false
15013 SHELL=\${CONFIG_SHELL-$SHELL}
15014 _ACEOF
15015
15016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15017 ## --------------------- ##
15018 ## M4sh Initialization.  ##
15019 ## --------------------- ##
15020
15021 # Be more Bourne compatible
15022 DUALCASE=1; export DUALCASE # for MKS sh
15023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15024   emulate sh
15025   NULLCMD=:
15026   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15027   # is contrary to our usage.  Disable this feature.
15028   alias -g '${1+"$@"}'='"$@"'
15029   setopt NO_GLOB_SUBST
15030 else
15031   case `(set -o) 2>/dev/null` in
15032   *posix*) set -o posix ;;
15033 esac
15034
15035 fi
15036
15037
15038
15039
15040 # PATH needs CR
15041 # Avoid depending upon Character Ranges.
15042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15045 as_cr_digits='0123456789'
15046 as_cr_alnum=$as_cr_Letters$as_cr_digits
15047
15048 as_nl='
15049 '
15050 export as_nl
15051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15055 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15056   as_echo='printf %s\n'
15057   as_echo_n='printf %s'
15058 else
15059   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15060     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15061     as_echo_n='/usr/ucb/echo -n'
15062   else
15063     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15064     as_echo_n_body='eval
15065       arg=$1;
15066       case $arg in
15067       *"$as_nl"*)
15068         expr "X$arg" : "X\\(.*\\)$as_nl";
15069         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15070       esac;
15071       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15072     '
15073     export as_echo_n_body
15074     as_echo_n='sh -c $as_echo_n_body as_echo'
15075   fi
15076   export as_echo_body
15077   as_echo='sh -c $as_echo_body as_echo'
15078 fi
15079
15080 # The user is always right.
15081 if test "${PATH_SEPARATOR+set}" != set; then
15082   PATH_SEPARATOR=:
15083   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15084     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15085       PATH_SEPARATOR=';'
15086   }
15087 fi
15088
15089 # Support unset when possible.
15090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15091   as_unset=unset
15092 else
15093   as_unset=false
15094 fi
15095
15096
15097 # IFS
15098 # We need space, tab and new line, in precisely that order.  Quoting is
15099 # there to prevent editors from complaining about space-tab.
15100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15101 # splitting by setting IFS to empty value.)
15102 IFS=" ""        $as_nl"
15103
15104 # Find who we are.  Look in the path if we contain no directory separator.
15105 case $0 in
15106   *[\\/]* ) as_myself=$0 ;;
15107   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15108 for as_dir in $PATH
15109 do
15110   IFS=$as_save_IFS
15111   test -z "$as_dir" && as_dir=.
15112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15113 done
15114 IFS=$as_save_IFS
15115
15116      ;;
15117 esac
15118 # We did not find ourselves, most probably we were run as `sh COMMAND'
15119 # in which case we are not to be found in the path.
15120 if test "x$as_myself" = x; then
15121   as_myself=$0
15122 fi
15123 if test ! -f "$as_myself"; then
15124   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15125   { (exit 1); exit 1; }
15126 fi
15127
15128 # Work around bugs in pre-3.0 UWIN ksh.
15129 for as_var in ENV MAIL MAILPATH
15130 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15131 done
15132 PS1='$ '
15133 PS2='> '
15134 PS4='+ '
15135
15136 # NLS nuisances.
15137 LC_ALL=C
15138 export LC_ALL
15139 LANGUAGE=C
15140 export LANGUAGE
15141
15142 # Required to use basename.
15143 if expr a : '\(a\)' >/dev/null 2>&1 &&
15144    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15145   as_expr=expr
15146 else
15147   as_expr=false
15148 fi
15149
15150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15151   as_basename=basename
15152 else
15153   as_basename=false
15154 fi
15155
15156
15157 # Name of the executable.
15158 as_me=`$as_basename -- "$0" ||
15159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15160          X"$0" : 'X\(//\)$' \| \
15161          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15162 $as_echo X/"$0" |
15163     sed '/^.*\/\([^/][^/]*\)\/*$/{
15164             s//\1/
15165             q
15166           }
15167           /^X\/\(\/\/\)$/{
15168             s//\1/
15169             q
15170           }
15171           /^X\/\(\/\).*/{
15172             s//\1/
15173             q
15174           }
15175           s/.*/./; q'`
15176
15177 # CDPATH.
15178 $as_unset CDPATH
15179
15180
15181
15182   as_lineno_1=$LINENO
15183   as_lineno_2=$LINENO
15184   test "x$as_lineno_1" != "x$as_lineno_2" &&
15185   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15186
15187   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15188   # uniformly replaced by the line number.  The first 'sed' inserts a
15189   # line-number line after each line using $LINENO; the second 'sed'
15190   # does the real work.  The second script uses 'N' to pair each
15191   # line-number line with the line containing $LINENO, and appends
15192   # trailing '-' during substitution so that $LINENO is not a special
15193   # case at line end.
15194   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15195   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15196   # E. McMahon (1931-1989) for sed's syntax.  :-)
15197   sed -n '
15198     p
15199     /[$]LINENO/=
15200   ' <$as_myself |
15201     sed '
15202       s/[$]LINENO.*/&-/
15203       t lineno
15204       b
15205       :lineno
15206       N
15207       :loop
15208       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15209       t loop
15210       s/-\n.*//
15211     ' >$as_me.lineno &&
15212   chmod +x "$as_me.lineno" ||
15213     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15214    { (exit 1); exit 1; }; }
15215
15216   # Don't try to exec as it changes $[0], causing all sort of problems
15217   # (the dirname of $[0] is not the place where we might find the
15218   # original and so on.  Autoconf is especially sensitive to this).
15219   . "./$as_me.lineno"
15220   # Exit status is that of the last command.
15221   exit
15222 }
15223
15224
15225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226   as_dirname=dirname
15227 else
15228   as_dirname=false
15229 fi
15230
15231 ECHO_C= ECHO_N= ECHO_T=
15232 case `echo -n x` in
15233 -n*)
15234   case `echo 'x\c'` in
15235   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15236   *)   ECHO_C='\c';;
15237   esac;;
15238 *)
15239   ECHO_N='-n';;
15240 esac
15241 if expr a : '\(a\)' >/dev/null 2>&1 &&
15242    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15243   as_expr=expr
15244 else
15245   as_expr=false
15246 fi
15247
15248 rm -f conf$$ conf$$.exe conf$$.file
15249 if test -d conf$$.dir; then
15250   rm -f conf$$.dir/conf$$.file
15251 else
15252   rm -f conf$$.dir
15253   mkdir conf$$.dir 2>/dev/null
15254 fi
15255 if (echo >conf$$.file) 2>/dev/null; then
15256   if ln -s conf$$.file conf$$ 2>/dev/null; then
15257     as_ln_s='ln -s'
15258     # ... but there are two gotchas:
15259     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15260     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15261     # In both cases, we have to default to `cp -p'.
15262     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15263       as_ln_s='cp -p'
15264   elif ln conf$$.file conf$$ 2>/dev/null; then
15265     as_ln_s=ln
15266   else
15267     as_ln_s='cp -p'
15268   fi
15269 else
15270   as_ln_s='cp -p'
15271 fi
15272 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15273 rmdir conf$$.dir 2>/dev/null
15274
15275 if mkdir -p . 2>/dev/null; then
15276   as_mkdir_p=:
15277 else
15278   test -d ./-p && rmdir ./-p
15279   as_mkdir_p=false
15280 fi
15281
15282 if test -x / >/dev/null 2>&1; then
15283   as_test_x='test -x'
15284 else
15285   if ls -dL / >/dev/null 2>&1; then
15286     as_ls_L_option=L
15287   else
15288     as_ls_L_option=
15289   fi
15290   as_test_x='
15291     eval sh -c '\''
15292       if test -d "$1"; then
15293         test -d "$1/.";
15294       else
15295         case $1 in
15296         -*)set "./$1";;
15297         esac;
15298         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15299         ???[sx]*):;;*)false;;esac;fi
15300     '\'' sh
15301   '
15302 fi
15303 as_executable_p=$as_test_x
15304
15305 # Sed expression to map a string onto a valid CPP name.
15306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15307
15308 # Sed expression to map a string onto a valid variable name.
15309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15310
15311
15312 exec 6>&1
15313
15314 # Save the log message, to keep $[0] and so on meaningful, and to
15315 # report actual input values of CONFIG_FILES etc. instead of their
15316 # values after options handling.
15317 ac_log="
15318 This file was extended by libffi $as_me 3.0.9, which was
15319 generated by GNU Autoconf 2.63.  Invocation command line was
15320
15321   CONFIG_FILES    = $CONFIG_FILES
15322   CONFIG_HEADERS  = $CONFIG_HEADERS
15323   CONFIG_LINKS    = $CONFIG_LINKS
15324   CONFIG_COMMANDS = $CONFIG_COMMANDS
15325   $ $0 $@
15326
15327 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15328 "
15329
15330 _ACEOF
15331
15332 case $ac_config_files in *"
15333 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15334 esac
15335
15336 case $ac_config_headers in *"
15337 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15338 esac
15339
15340
15341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15342 # Files that config.status was made for.
15343 config_files="$ac_config_files"
15344 config_headers="$ac_config_headers"
15345 config_links="$ac_config_links"
15346 config_commands="$ac_config_commands"
15347
15348 _ACEOF
15349
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351 ac_cs_usage="\
15352 \`$as_me' instantiates files from templates according to the
15353 current configuration.
15354
15355 Usage: $0 [OPTION]... [FILE]...
15356
15357   -h, --help       print this help, then exit
15358   -V, --version    print version number and configuration settings, then exit
15359   -q, --quiet, --silent
15360                    do not print progress messages
15361   -d, --debug      don't remove temporary files
15362       --recheck    update $as_me by reconfiguring in the same conditions
15363       --file=FILE[:TEMPLATE]
15364                    instantiate the configuration file FILE
15365       --header=FILE[:TEMPLATE]
15366                    instantiate the configuration header FILE
15367
15368 Configuration files:
15369 $config_files
15370
15371 Configuration headers:
15372 $config_headers
15373
15374 Configuration links:
15375 $config_links
15376
15377 Configuration commands:
15378 $config_commands
15379
15380 Report bugs to <bug-autoconf@gnu.org>."
15381
15382 _ACEOF
15383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15384 ac_cs_version="\\
15385 libffi config.status 3.0.9
15386 configured by $0, generated by GNU Autoconf 2.63,
15387   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15388
15389 Copyright (C) 2008 Free Software Foundation, Inc.
15390 This config.status script is free software; the Free Software Foundation
15391 gives unlimited permission to copy, distribute and modify it."
15392
15393 ac_pwd='$ac_pwd'
15394 srcdir='$srcdir'
15395 INSTALL='$INSTALL'
15396 MKDIR_P='$MKDIR_P'
15397 AWK='$AWK'
15398 test -n "\$AWK" || AWK=awk
15399 _ACEOF
15400
15401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15402 # The default lists apply if the user does not specify any file.
15403 ac_need_defaults=:
15404 while test $# != 0
15405 do
15406   case $1 in
15407   --*=*)
15408     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15409     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15410     ac_shift=:
15411     ;;
15412   *)
15413     ac_option=$1
15414     ac_optarg=$2
15415     ac_shift=shift
15416     ;;
15417   esac
15418
15419   case $ac_option in
15420   # Handling of the options.
15421   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15422     ac_cs_recheck=: ;;
15423   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15424     $as_echo "$ac_cs_version"; exit ;;
15425   --debug | --debu | --deb | --de | --d | -d )
15426     debug=: ;;
15427   --file | --fil | --fi | --f )
15428     $ac_shift
15429     case $ac_optarg in
15430     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15431     esac
15432     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15433     ac_need_defaults=false;;
15434   --header | --heade | --head | --hea )
15435     $ac_shift
15436     case $ac_optarg in
15437     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15438     esac
15439     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15440     ac_need_defaults=false;;
15441   --he | --h)
15442     # Conflict between --help and --header
15443     { $as_echo "$as_me: error: ambiguous option: $1
15444 Try \`$0 --help' for more information." >&2
15445    { (exit 1); exit 1; }; };;
15446   --help | --hel | -h )
15447     $as_echo "$ac_cs_usage"; exit ;;
15448   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15449   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15450     ac_cs_silent=: ;;
15451
15452   # This is an error.
15453   -*) { $as_echo "$as_me: error: unrecognized option: $1
15454 Try \`$0 --help' for more information." >&2
15455    { (exit 1); exit 1; }; } ;;
15456
15457   *) ac_config_targets="$ac_config_targets $1"
15458      ac_need_defaults=false ;;
15459
15460   esac
15461   shift
15462 done
15463
15464 ac_configure_extra_args=
15465
15466 if $ac_cs_silent; then
15467   exec 6>/dev/null
15468   ac_configure_extra_args="$ac_configure_extra_args --silent"
15469 fi
15470
15471 _ACEOF
15472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15473 if \$ac_cs_recheck; then
15474   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15475   shift
15476   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15477   CONFIG_SHELL='$SHELL'
15478   export CONFIG_SHELL
15479   exec "\$@"
15480 fi
15481
15482 _ACEOF
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484 exec 5>>config.log
15485 {
15486   echo
15487   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15488 ## Running $as_me. ##
15489 _ASBOX
15490   $as_echo "$ac_log"
15491 } >&5
15492
15493 _ACEOF
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 #
15496 # INIT-COMMANDS
15497 #
15498 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15499
15500
15501 # The HP-UX ksh and POSIX shell print the target directory to stdout
15502 # if CDPATH is set.
15503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15504
15505 sed_quote_subst='$sed_quote_subst'
15506 double_quote_subst='$double_quote_subst'
15507 delay_variable_subst='$delay_variable_subst'
15508 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15509 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15510 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15511 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15512 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15513 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15514 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15515 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15516 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15517 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15518 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15519 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15520 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15521 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15522 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15523 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15524 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15525 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15526 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15527 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15528 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15529 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15530 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15531 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15532 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15533 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15534 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15535 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15536 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15537 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15538 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15539 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15540 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15541 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15542 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15543 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15544 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15545 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15546 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15547 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15548 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15549 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15550 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15551 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15552 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"`'
15553 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"`'
15554 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15555 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15556 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15557 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15558 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15559 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15560 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15561 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15562 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15563 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15564 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15565 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15566 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15567 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15568 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15569 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15570 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15571 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15572 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15573 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15574 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15575 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15576 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15577 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15578 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15579 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15580 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15581 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15582 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15583 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15584 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15585 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15586 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15587 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15588 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15589 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15590 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15591 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15592 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15593 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15594 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15595 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15596 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15597 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15598 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15599 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15600 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15601 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15602 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15603 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15604 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15605 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15606 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15607 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15608 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15609 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15610 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15611 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15612 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15613 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15614 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15615 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15616 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15617 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15618 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15619 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15620 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15621 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15622 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15623 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15624 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15625 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15626
15627 LTCC='$LTCC'
15628 LTCFLAGS='$LTCFLAGS'
15629 compiler='$compiler_DEFAULT'
15630
15631 # Quote evaled strings.
15632 for var in SED \
15633 GREP \
15634 EGREP \
15635 FGREP \
15636 LD \
15637 NM \
15638 LN_S \
15639 lt_SP2NL \
15640 lt_NL2SP \
15641 reload_flag \
15642 OBJDUMP \
15643 deplibs_check_method \
15644 file_magic_cmd \
15645 AR \
15646 AR_FLAGS \
15647 STRIP \
15648 RANLIB \
15649 CC \
15650 CFLAGS \
15651 compiler \
15652 lt_cv_sys_global_symbol_pipe \
15653 lt_cv_sys_global_symbol_to_cdecl \
15654 lt_cv_sys_global_symbol_to_c_name_address \
15655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15656 SHELL \
15657 ECHO \
15658 lt_prog_compiler_no_builtin_flag \
15659 lt_prog_compiler_wl \
15660 lt_prog_compiler_pic \
15661 lt_prog_compiler_static \
15662 lt_cv_prog_compiler_c_o \
15663 need_locks \
15664 DSYMUTIL \
15665 NMEDIT \
15666 LIPO \
15667 OTOOL \
15668 OTOOL64 \
15669 shrext_cmds \
15670 export_dynamic_flag_spec \
15671 whole_archive_flag_spec \
15672 compiler_needs_object \
15673 with_gnu_ld \
15674 allow_undefined_flag \
15675 no_undefined_flag \
15676 hardcode_libdir_flag_spec \
15677 hardcode_libdir_flag_spec_ld \
15678 hardcode_libdir_separator \
15679 fix_srcfile_path \
15680 exclude_expsyms \
15681 include_expsyms \
15682 file_list_spec \
15683 variables_saved_for_relink \
15684 libname_spec \
15685 library_names_spec \
15686 soname_spec \
15687 finish_eval \
15688 old_striplib \
15689 striplib; do
15690     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15691     *[\\\\\\\`\\"\\\$]*)
15692       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15693       ;;
15694     *)
15695       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15696       ;;
15697     esac
15698 done
15699
15700 # Double-quote double-evaled strings.
15701 for var in reload_cmds \
15702 old_postinstall_cmds \
15703 old_postuninstall_cmds \
15704 old_archive_cmds \
15705 extract_expsyms_cmds \
15706 old_archive_from_new_cmds \
15707 old_archive_from_expsyms_cmds \
15708 archive_cmds \
15709 archive_expsym_cmds \
15710 module_cmds \
15711 module_expsym_cmds \
15712 export_symbols_cmds \
15713 prelink_cmds \
15714 postinstall_cmds \
15715 postuninstall_cmds \
15716 finish_cmds \
15717 sys_lib_search_path_spec \
15718 sys_lib_dlsearch_path_spec; do
15719     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15720     *[\\\\\\\`\\"\\\$]*)
15721       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15722       ;;
15723     *)
15724       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15725       ;;
15726     esac
15727 done
15728
15729 # Fix-up fallback echo if it was mangled by the above quoting rules.
15730 case \$lt_ECHO in
15731 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15732   ;;
15733 esac
15734
15735 ac_aux_dir='$ac_aux_dir'
15736 xsi_shell='$xsi_shell'
15737 lt_shell_append='$lt_shell_append'
15738
15739 # See if we are running on zsh, and set the options which allow our
15740 # commands through without removal of \ escapes INIT.
15741 if test -n "\${ZSH_VERSION+set}" ; then
15742    setopt NO_GLOB_SUBST
15743 fi
15744
15745
15746     PACKAGE='$PACKAGE'
15747     VERSION='$VERSION'
15748     TIMESTAMP='$TIMESTAMP'
15749     RM='$RM'
15750     ofile='$ofile'
15751
15752
15753
15754 TARGETDIR="$TARGETDIR"
15755
15756 _ACEOF
15757
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759
15760 # Handling of arguments.
15761 for ac_config_target in $ac_config_targets
15762 do
15763   case $ac_config_target in
15764     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15765     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15766     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15767     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15768     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15769     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15770     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15771     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15772     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15773     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15774     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15775     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15776
15777   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15778 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15779    { (exit 1); exit 1; }; };;
15780   esac
15781 done
15782
15783
15784 # If the user did not use the arguments to specify the items to instantiate,
15785 # then the envvar interface is used.  Set only those that are not.
15786 # We use the long form for the default assignment because of an extremely
15787 # bizarre bug on SunOS 4.1.3.
15788 if $ac_need_defaults; then
15789   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15790   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15791   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15792   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15793 fi
15794
15795 # Have a temporary directory for convenience.  Make it in the build tree
15796 # simply because there is no reason against having it here, and in addition,
15797 # creating and moving files from /tmp can sometimes cause problems.
15798 # Hook for its removal unless debugging.
15799 # Note that there is a small window in which the directory will not be cleaned:
15800 # after its creation but before its name has been assigned to `$tmp'.
15801 $debug ||
15802 {
15803   tmp=
15804   trap 'exit_status=$?
15805   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15806 ' 0
15807   trap '{ (exit 1); exit 1; }' 1 2 13 15
15808 }
15809 # Create a (secure) tmp directory for tmp files.
15810
15811 {
15812   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15813   test -n "$tmp" && test -d "$tmp"
15814 }  ||
15815 {
15816   tmp=./conf$$-$RANDOM
15817   (umask 077 && mkdir "$tmp")
15818 } ||
15819 {
15820    $as_echo "$as_me: cannot create a temporary directory in ." >&2
15821    { (exit 1); exit 1; }
15822 }
15823
15824 # Set up the scripts for CONFIG_FILES section.
15825 # No need to generate them if there are no CONFIG_FILES.
15826 # This happens for instance with `./config.status config.h'.
15827 if test -n "$CONFIG_FILES"; then
15828
15829
15830 ac_cr='\r'
15831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15833   ac_cs_awk_cr='\\r'
15834 else
15835   ac_cs_awk_cr=$ac_cr
15836 fi
15837
15838 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15839 _ACEOF
15840
15841
15842 {
15843   echo "cat >conf$$subs.awk <<_ACEOF" &&
15844   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15845   echo "_ACEOF"
15846 } >conf$$subs.sh ||
15847   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15848 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15849    { (exit 1); exit 1; }; }
15850 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15851 ac_delim='%!_!# '
15852 for ac_last_try in false false false false false :; do
15853   . ./conf$$subs.sh ||
15854     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15855 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15856    { (exit 1); exit 1; }; }
15857
15858   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15859   if test $ac_delim_n = $ac_delim_num; then
15860     break
15861   elif $ac_last_try; then
15862     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15863 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15864    { (exit 1); exit 1; }; }
15865   else
15866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15867   fi
15868 done
15869 rm -f conf$$subs.sh
15870
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15873 _ACEOF
15874 sed -n '
15875 h
15876 s/^/S["/; s/!.*/"]=/
15877 p
15878 g
15879 s/^[^!]*!//
15880 :repl
15881 t repl
15882 s/'"$ac_delim"'$//
15883 t delim
15884 :nl
15885 h
15886 s/\(.\{148\}\).*/\1/
15887 t more1
15888 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15889 p
15890 n
15891 b repl
15892 :more1
15893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15894 p
15895 g
15896 s/.\{148\}//
15897 t nl
15898 :delim
15899 h
15900 s/\(.\{148\}\).*/\1/
15901 t more2
15902 s/["\\]/\\&/g; s/^/"/; s/$/"/
15903 p
15904 b
15905 :more2
15906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15907 p
15908 g
15909 s/.\{148\}//
15910 t delim
15911 ' <conf$$subs.awk | sed '
15912 /^[^""]/{
15913   N
15914   s/\n//
15915 }
15916 ' >>$CONFIG_STATUS || ac_write_fail=1
15917 rm -f conf$$subs.awk
15918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15919 _ACAWK
15920 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15921   for (key in S) S_is_set[key] = 1
15922   FS = "\a"
15923
15924 }
15925 {
15926   line = $ 0
15927   nfields = split(line, field, "@")
15928   substed = 0
15929   len = length(field[1])
15930   for (i = 2; i < nfields; i++) {
15931     key = field[i]
15932     keylen = length(key)
15933     if (S_is_set[key]) {
15934       value = S[key]
15935       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15936       len += length(value) + length(field[++i])
15937       substed = 1
15938     } else
15939       len += 1 + keylen
15940   }
15941
15942   print line
15943 }
15944
15945 _ACAWK
15946 _ACEOF
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15949   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15950 else
15951   cat
15952 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15953   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15954 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15955    { (exit 1); exit 1; }; }
15956 _ACEOF
15957
15958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15960 # trailing colons and then remove the whole line if VPATH becomes empty
15961 # (actually we leave an empty line to preserve line numbers).
15962 if test "x$srcdir" = x.; then
15963   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15964 s/:*\$(srcdir):*/:/
15965 s/:*\${srcdir}:*/:/
15966 s/:*@srcdir@:*/:/
15967 s/^\([^=]*=[     ]*\):*/\1/
15968 s/:*$//
15969 s/^[^=]*=[       ]*$//
15970 }'
15971 fi
15972
15973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974 fi # test -n "$CONFIG_FILES"
15975
15976 # Set up the scripts for CONFIG_HEADERS section.
15977 # No need to generate them if there are no CONFIG_HEADERS.
15978 # This happens for instance with `./config.status Makefile'.
15979 if test -n "$CONFIG_HEADERS"; then
15980 cat >"$tmp/defines.awk" <<\_ACAWK ||
15981 BEGIN {
15982 _ACEOF
15983
15984 # Transform confdefs.h into an awk script `defines.awk', embedded as
15985 # here-document in config.status, that substitutes the proper values into
15986 # config.h.in to produce config.h.
15987
15988 # Create a delimiter string that does not exist in confdefs.h, to ease
15989 # handling of long lines.
15990 ac_delim='%!_!# '
15991 for ac_last_try in false false :; do
15992   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15993   if test -z "$ac_t"; then
15994     break
15995   elif $ac_last_try; then
15996     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15997 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15998    { (exit 1); exit 1; }; }
15999   else
16000     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16001   fi
16002 done
16003
16004 # For the awk script, D is an array of macro values keyed by name,
16005 # likewise P contains macro parameters if any.  Preserve backslash
16006 # newline sequences.
16007
16008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16009 sed -n '
16010 s/.\{148\}/&'"$ac_delim"'/g
16011 t rset
16012 :rset
16013 s/^[     ]*#[    ]*define[       ][      ]*/ /
16014 t def
16015 d
16016 :def
16017 s/\\$//
16018 t bsnl
16019 s/["\\]/\\&/g
16020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16021 D["\1"]=" \3"/p
16022 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16023 d
16024 :bsnl
16025 s/["\\]/\\&/g
16026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16027 D["\1"]=" \3\\\\\\n"\\/p
16028 t cont
16029 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16030 t cont
16031 d
16032 :cont
16033 n
16034 s/.\{148\}/&'"$ac_delim"'/g
16035 t clear
16036 :clear
16037 s/\\$//
16038 t bsnlc
16039 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16040 d
16041 :bsnlc
16042 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16043 b cont
16044 ' <confdefs.h | sed '
16045 s/'"$ac_delim"'/"\\\
16046 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16047
16048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049   for (key in D) D_is_set[key] = 1
16050   FS = "\a"
16051 }
16052 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16053   line = \$ 0
16054   split(line, arg, " ")
16055   if (arg[1] == "#") {
16056     defundef = arg[2]
16057     mac1 = arg[3]
16058   } else {
16059     defundef = substr(arg[1], 2)
16060     mac1 = arg[2]
16061   }
16062   split(mac1, mac2, "(") #)
16063   macro = mac2[1]
16064   prefix = substr(line, 1, index(line, defundef) - 1)
16065   if (D_is_set[macro]) {
16066     # Preserve the white space surrounding the "#".
16067     print prefix "define", macro P[macro] D[macro]
16068     next
16069   } else {
16070     # Replace #undef with comments.  This is necessary, for example,
16071     # in the case of _POSIX_SOURCE, which is predefined and required
16072     # on some systems where configure will not decide to define it.
16073     if (defundef == "undef") {
16074       print "/*", prefix defundef, macro, "*/"
16075       next
16076     }
16077   }
16078 }
16079 { print }
16080 _ACAWK
16081 _ACEOF
16082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16083   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16084 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16085    { (exit 1); exit 1; }; }
16086 fi # test -n "$CONFIG_HEADERS"
16087
16088
16089 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16090 shift
16091 for ac_tag
16092 do
16093   case $ac_tag in
16094   :[FHLC]) ac_mode=$ac_tag; continue;;
16095   esac
16096   case $ac_mode$ac_tag in
16097   :[FHL]*:*);;
16098   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16099 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16100    { (exit 1); exit 1; }; };;
16101   :[FH]-) ac_tag=-:-;;
16102   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16103   esac
16104   ac_save_IFS=$IFS
16105   IFS=:
16106   set x $ac_tag
16107   IFS=$ac_save_IFS
16108   shift
16109   ac_file=$1
16110   shift
16111
16112   case $ac_mode in
16113   :L) ac_source=$1;;
16114   :[FH])
16115     ac_file_inputs=
16116     for ac_f
16117     do
16118       case $ac_f in
16119       -) ac_f="$tmp/stdin";;
16120       *) # Look for the file first in the build tree, then in the source tree
16121          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16122          # because $ac_f cannot contain `:'.
16123          test -f "$ac_f" ||
16124            case $ac_f in
16125            [\\/$]*) false;;
16126            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16127            esac ||
16128            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16129 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16130    { (exit 1); exit 1; }; };;
16131       esac
16132       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16133       ac_file_inputs="$ac_file_inputs '$ac_f'"
16134     done
16135
16136     # Let's still pretend it is `configure' which instantiates (i.e., don't
16137     # use $as_me), people would be surprised to read:
16138     #    /* config.h.  Generated by config.status.  */
16139     configure_input='Generated from '`
16140           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16141         `' by configure.'
16142     if test x"$ac_file" != x-; then
16143       configure_input="$ac_file.  $configure_input"
16144       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16145 $as_echo "$as_me: creating $ac_file" >&6;}
16146     fi
16147     # Neutralize special characters interpreted by sed in replacement strings.
16148     case $configure_input in #(
16149     *\&* | *\|* | *\\* )
16150        ac_sed_conf_input=`$as_echo "$configure_input" |
16151        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16152     *) ac_sed_conf_input=$configure_input;;
16153     esac
16154
16155     case $ac_tag in
16156     *:-:* | *:-) cat >"$tmp/stdin" \
16157       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16158 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16159    { (exit 1); exit 1; }; } ;;
16160     esac
16161     ;;
16162   esac
16163
16164   ac_dir=`$as_dirname -- "$ac_file" ||
16165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166          X"$ac_file" : 'X\(//\)[^/]' \| \
16167          X"$ac_file" : 'X\(//\)$' \| \
16168          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16169 $as_echo X"$ac_file" |
16170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16171             s//\1/
16172             q
16173           }
16174           /^X\(\/\/\)[^/].*/{
16175             s//\1/
16176             q
16177           }
16178           /^X\(\/\/\)$/{
16179             s//\1/
16180             q
16181           }
16182           /^X\(\/\).*/{
16183             s//\1/
16184             q
16185           }
16186           s/.*/./; q'`
16187   { as_dir="$ac_dir"
16188   case $as_dir in #(
16189   -*) as_dir=./$as_dir;;
16190   esac
16191   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16192     as_dirs=
16193     while :; do
16194       case $as_dir in #(
16195       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16196       *) as_qdir=$as_dir;;
16197       esac
16198       as_dirs="'$as_qdir' $as_dirs"
16199       as_dir=`$as_dirname -- "$as_dir" ||
16200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16201          X"$as_dir" : 'X\(//\)[^/]' \| \
16202          X"$as_dir" : 'X\(//\)$' \| \
16203          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16204 $as_echo X"$as_dir" |
16205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16206             s//\1/
16207             q
16208           }
16209           /^X\(\/\/\)[^/].*/{
16210             s//\1/
16211             q
16212           }
16213           /^X\(\/\/\)$/{
16214             s//\1/
16215             q
16216           }
16217           /^X\(\/\).*/{
16218             s//\1/
16219             q
16220           }
16221           s/.*/./; q'`
16222       test -d "$as_dir" && break
16223     done
16224     test -z "$as_dirs" || eval "mkdir $as_dirs"
16225   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16226 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16227    { (exit 1); exit 1; }; }; }
16228   ac_builddir=.
16229
16230 case "$ac_dir" in
16231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16232 *)
16233   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16234   # A ".." for each directory in $ac_dir_suffix.
16235   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16236   case $ac_top_builddir_sub in
16237   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16238   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16239   esac ;;
16240 esac
16241 ac_abs_top_builddir=$ac_pwd
16242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16243 # for backward compatibility:
16244 ac_top_builddir=$ac_top_build_prefix
16245
16246 case $srcdir in
16247   .)  # We are building in place.
16248     ac_srcdir=.
16249     ac_top_srcdir=$ac_top_builddir_sub
16250     ac_abs_top_srcdir=$ac_pwd ;;
16251   [\\/]* | ?:[\\/]* )  # Absolute name.
16252     ac_srcdir=$srcdir$ac_dir_suffix;
16253     ac_top_srcdir=$srcdir
16254     ac_abs_top_srcdir=$srcdir ;;
16255   *) # Relative name.
16256     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16257     ac_top_srcdir=$ac_top_build_prefix$srcdir
16258     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16259 esac
16260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16261
16262
16263   case $ac_mode in
16264   :F)
16265   #
16266   # CONFIG_FILE
16267   #
16268
16269   case $INSTALL in
16270   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16271   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16272   esac
16273   ac_MKDIR_P=$MKDIR_P
16274   case $MKDIR_P in
16275   [\\/$]* | ?:[\\/]* ) ;;
16276   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16277   esac
16278 _ACEOF
16279
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 # If the template does not know about datarootdir, expand it.
16282 # FIXME: This hack should be removed a few years after 2.60.
16283 ac_datarootdir_hack=; ac_datarootdir_seen=
16284
16285 ac_sed_dataroot='
16286 /datarootdir/ {
16287   p
16288   q
16289 }
16290 /@datadir@/p
16291 /@docdir@/p
16292 /@infodir@/p
16293 /@localedir@/p
16294 /@mandir@/p
16295 '
16296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16297 *datarootdir*) ac_datarootdir_seen=yes;;
16298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16299   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16301 _ACEOF
16302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16303   ac_datarootdir_hack='
16304   s&@datadir@&$datadir&g
16305   s&@docdir@&$docdir&g
16306   s&@infodir@&$infodir&g
16307   s&@localedir@&$localedir&g
16308   s&@mandir@&$mandir&g
16309     s&\\\${datarootdir}&$datarootdir&g' ;;
16310 esac
16311 _ACEOF
16312
16313 # Neutralize VPATH when `$srcdir' = `.'.
16314 # Shell code in configure.ac might set extrasub.
16315 # FIXME: do we really want to maintain this feature?
16316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16317 ac_sed_extra="$ac_vpsub
16318 $extrasub
16319 _ACEOF
16320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16321 :t
16322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16323 s|@configure_input@|$ac_sed_conf_input|;t t
16324 s&@top_builddir@&$ac_top_builddir_sub&;t t
16325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16326 s&@srcdir@&$ac_srcdir&;t t
16327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16328 s&@top_srcdir@&$ac_top_srcdir&;t t
16329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16330 s&@builddir@&$ac_builddir&;t t
16331 s&@abs_builddir@&$ac_abs_builddir&;t t
16332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16333 s&@INSTALL@&$ac_INSTALL&;t t
16334 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16335 $ac_datarootdir_hack
16336 "
16337 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16338   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16339 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16340    { (exit 1); exit 1; }; }
16341
16342 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16343   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16344   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16345   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16346 which seems to be undefined.  Please make sure it is defined." >&5
16347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16348 which seems to be undefined.  Please make sure it is defined." >&2;}
16349
16350   rm -f "$tmp/stdin"
16351   case $ac_file in
16352   -) cat "$tmp/out" && rm -f "$tmp/out";;
16353   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16354   esac \
16355   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16356 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16357    { (exit 1); exit 1; }; }
16358  ;;
16359   :H)
16360   #
16361   # CONFIG_HEADER
16362   #
16363   if test x"$ac_file" != x-; then
16364     {
16365       $as_echo "/* $configure_input  */" \
16366       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16367     } >"$tmp/config.h" \
16368       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16369 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16370    { (exit 1); exit 1; }; }
16371     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16372       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16374     else
16375       rm -f "$ac_file"
16376       mv "$tmp/config.h" "$ac_file" \
16377         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16378 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16379    { (exit 1); exit 1; }; }
16380     fi
16381   else
16382     $as_echo "/* $configure_input  */" \
16383       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16384       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16385 $as_echo "$as_me: error: could not create -" >&2;}
16386    { (exit 1); exit 1; }; }
16387   fi
16388 # Compute "$ac_file"'s index in $config_headers.
16389 _am_arg="$ac_file"
16390 _am_stamp_count=1
16391 for _am_header in $config_headers :; do
16392   case $_am_header in
16393     $_am_arg | $_am_arg:* )
16394       break ;;
16395     * )
16396       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16397   esac
16398 done
16399 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16400 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16401          X"$_am_arg" : 'X\(//\)[^/]' \| \
16402          X"$_am_arg" : 'X\(//\)$' \| \
16403          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16404 $as_echo X"$_am_arg" |
16405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16406             s//\1/
16407             q
16408           }
16409           /^X\(\/\/\)[^/].*/{
16410             s//\1/
16411             q
16412           }
16413           /^X\(\/\/\)$/{
16414             s//\1/
16415             q
16416           }
16417           /^X\(\/\).*/{
16418             s//\1/
16419             q
16420           }
16421           s/.*/./; q'`/stamp-h$_am_stamp_count
16422  ;;
16423   :L)
16424   #
16425   # CONFIG_LINK
16426   #
16427
16428   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16429     :
16430   else
16431     # Prefer the file from the source tree if names are identical.
16432     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16433       ac_source=$srcdir/$ac_source
16434     fi
16435
16436     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16437 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16438
16439     if test ! -r "$ac_source"; then
16440       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16441 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16442    { (exit 1); exit 1; }; }
16443     fi
16444     rm -f "$ac_file"
16445
16446     # Try a relative symlink, then a hard link, then a copy.
16447     case $srcdir in
16448     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16449         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16450     esac
16451     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16452       ln "$ac_source" "$ac_file" 2>/dev/null ||
16453       cp -p "$ac_source" "$ac_file" ||
16454       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16455 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16456    { (exit 1); exit 1; }; }
16457   fi
16458  ;;
16459   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16460 $as_echo "$as_me: executing $ac_file commands" >&6;}
16461  ;;
16462   esac
16463
16464
16465   case $ac_file$ac_mode in
16466     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16467   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16468   # are listed without --file.  Let's play safe and only enable the eval
16469   # if we detect the quoting.
16470   case $CONFIG_FILES in
16471   *\'*) eval set x "$CONFIG_FILES" ;;
16472   *)   set x $CONFIG_FILES ;;
16473   esac
16474   shift
16475   for mf
16476   do
16477     # Strip MF so we end up with the name of the file.
16478     mf=`echo "$mf" | sed -e 's/:.*$//'`
16479     # Check whether this is an Automake generated Makefile or not.
16480     # We used to match only the files named `Makefile.in', but
16481     # some people rename them; so instead we look at the file content.
16482     # Grep'ing the first line is not enough: some people post-process
16483     # each Makefile.in and add a new line on top of each file to say so.
16484     # Grep'ing the whole file is not good either: AIX grep has a line
16485     # limit of 2048, but all sed's we know have understand at least 4000.
16486     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16487       dirpart=`$as_dirname -- "$mf" ||
16488 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489          X"$mf" : 'X\(//\)[^/]' \| \
16490          X"$mf" : 'X\(//\)$' \| \
16491          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16492 $as_echo X"$mf" |
16493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16494             s//\1/
16495             q
16496           }
16497           /^X\(\/\/\)[^/].*/{
16498             s//\1/
16499             q
16500           }
16501           /^X\(\/\/\)$/{
16502             s//\1/
16503             q
16504           }
16505           /^X\(\/\).*/{
16506             s//\1/
16507             q
16508           }
16509           s/.*/./; q'`
16510     else
16511       continue
16512     fi
16513     # Extract the definition of DEPDIR, am__include, and am__quote
16514     # from the Makefile without running `make'.
16515     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16516     test -z "$DEPDIR" && continue
16517     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16518     test -z "am__include" && continue
16519     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16520     # When using ansi2knr, U may be empty or an underscore; expand it
16521     U=`sed -n 's/^U = //p' < "$mf"`
16522     # Find all dependency output files, they are included files with
16523     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16524     # simplest approach to changing $(DEPDIR) to its actual value in the
16525     # expansion.
16526     for file in `sed -n "
16527       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16528          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16529       # Make sure the directory exists.
16530       test -f "$dirpart/$file" && continue
16531       fdir=`$as_dirname -- "$file" ||
16532 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16533          X"$file" : 'X\(//\)[^/]' \| \
16534          X"$file" : 'X\(//\)$' \| \
16535          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16536 $as_echo X"$file" |
16537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16538             s//\1/
16539             q
16540           }
16541           /^X\(\/\/\)[^/].*/{
16542             s//\1/
16543             q
16544           }
16545           /^X\(\/\/\)$/{
16546             s//\1/
16547             q
16548           }
16549           /^X\(\/\).*/{
16550             s//\1/
16551             q
16552           }
16553           s/.*/./; q'`
16554       { as_dir=$dirpart/$fdir
16555   case $as_dir in #(
16556   -*) as_dir=./$as_dir;;
16557   esac
16558   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16559     as_dirs=
16560     while :; do
16561       case $as_dir in #(
16562       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16563       *) as_qdir=$as_dir;;
16564       esac
16565       as_dirs="'$as_qdir' $as_dirs"
16566       as_dir=`$as_dirname -- "$as_dir" ||
16567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16568          X"$as_dir" : 'X\(//\)[^/]' \| \
16569          X"$as_dir" : 'X\(//\)$' \| \
16570          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16571 $as_echo X"$as_dir" |
16572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16573             s//\1/
16574             q
16575           }
16576           /^X\(\/\/\)[^/].*/{
16577             s//\1/
16578             q
16579           }
16580           /^X\(\/\/\)$/{
16581             s//\1/
16582             q
16583           }
16584           /^X\(\/\).*/{
16585             s//\1/
16586             q
16587           }
16588           s/.*/./; q'`
16589       test -d "$as_dir" && break
16590     done
16591     test -z "$as_dirs" || eval "mkdir $as_dirs"
16592   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16593 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16594    { (exit 1); exit 1; }; }; }
16595       # echo "creating $dirpart/$file"
16596       echo '# dummy' > "$dirpart/$file"
16597     done
16598   done
16599 }
16600  ;;
16601     "libtool":C)
16602
16603     # See if we are running on zsh, and set the options which allow our
16604     # commands through without removal of \ escapes.
16605     if test -n "${ZSH_VERSION+set}" ; then
16606       setopt NO_GLOB_SUBST
16607     fi
16608
16609     cfgfile="${ofile}T"
16610     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16611     $RM "$cfgfile"
16612
16613     cat <<_LT_EOF >> "$cfgfile"
16614 #! $SHELL
16615
16616 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16617 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16619 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16620 #
16621 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16622 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16623 #   Written by Gordon Matzigkeit, 1996
16624 #
16625 #   This file is part of GNU Libtool.
16626 #
16627 # GNU Libtool is free software; you can redistribute it and/or
16628 # modify it under the terms of the GNU General Public License as
16629 # published by the Free Software Foundation; either version 2 of
16630 # the License, or (at your option) any later version.
16631 #
16632 # As a special exception to the GNU General Public License,
16633 # if you distribute this file as part of a program or library that
16634 # is built using GNU Libtool, you may include this file under the
16635 # same distribution terms that you use for the rest of that program.
16636 #
16637 # GNU Libtool is distributed in the hope that it will be useful,
16638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16640 # GNU General Public License for more details.
16641 #
16642 # You should have received a copy of the GNU General Public License
16643 # along with GNU Libtool; see the file COPYING.  If not, a copy
16644 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16645 # obtained by writing to the Free Software Foundation, Inc.,
16646 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16647
16648
16649 # The names of the tagged configurations supported by this script.
16650 available_tags=""
16651
16652 # ### BEGIN LIBTOOL CONFIG
16653
16654 # Which release of libtool.m4 was used?
16655 macro_version=$macro_version
16656 macro_revision=$macro_revision
16657
16658 # Whether or not to build shared libraries.
16659 build_libtool_libs=$enable_shared
16660
16661 # Whether or not to build static libraries.
16662 build_old_libs=$enable_static
16663
16664 # What type of objects to build.
16665 pic_mode=$pic_mode
16666
16667 # Whether or not to optimize for fast installation.
16668 fast_install=$enable_fast_install
16669
16670 # The host system.
16671 host_alias=$host_alias
16672 host=$host
16673 host_os=$host_os
16674
16675 # The build system.
16676 build_alias=$build_alias
16677 build=$build
16678 build_os=$build_os
16679
16680 # A sed program that does not truncate output.
16681 SED=$lt_SED
16682
16683 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16684 Xsed="\$SED -e 1s/^X//"
16685
16686 # A grep program that handles long lines.
16687 GREP=$lt_GREP
16688
16689 # An ERE matcher.
16690 EGREP=$lt_EGREP
16691
16692 # A literal string matcher.
16693 FGREP=$lt_FGREP
16694
16695 # A BSD- or MS-compatible name lister.
16696 NM=$lt_NM
16697
16698 # Whether we need soft or hard links.
16699 LN_S=$lt_LN_S
16700
16701 # What is the maximum length of a command?
16702 max_cmd_len=$max_cmd_len
16703
16704 # Object file suffix (normally "o").
16705 objext=$ac_objext
16706
16707 # Executable file suffix (normally "").
16708 exeext=$exeext
16709
16710 # whether the shell understands "unset".
16711 lt_unset=$lt_unset
16712
16713 # turn spaces into newlines.
16714 SP2NL=$lt_lt_SP2NL
16715
16716 # turn newlines into spaces.
16717 NL2SP=$lt_lt_NL2SP
16718
16719 # How to create reloadable object files.
16720 reload_flag=$lt_reload_flag
16721 reload_cmds=$lt_reload_cmds
16722
16723 # An object symbol dumper.
16724 OBJDUMP=$lt_OBJDUMP
16725
16726 # Method to check whether dependent libraries are shared objects.
16727 deplibs_check_method=$lt_deplibs_check_method
16728
16729 # Command to use when deplibs_check_method == "file_magic".
16730 file_magic_cmd=$lt_file_magic_cmd
16731
16732 # The archiver.
16733 AR=$lt_AR
16734 AR_FLAGS=$lt_AR_FLAGS
16735
16736 # A symbol stripping program.
16737 STRIP=$lt_STRIP
16738
16739 # Commands used to install an old-style archive.
16740 RANLIB=$lt_RANLIB
16741 old_postinstall_cmds=$lt_old_postinstall_cmds
16742 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16743
16744 # A C compiler.
16745 LTCC=$lt_CC
16746
16747 # LTCC compiler flags.
16748 LTCFLAGS=$lt_CFLAGS
16749
16750 # Take the output of nm and produce a listing of raw symbols and C names.
16751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16752
16753 # Transform the output of nm in a proper C declaration.
16754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16755
16756 # Transform the output of nm in a C name address pair.
16757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16758
16759 # Transform the output of nm in a C name address pair when lib prefix is needed.
16760 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16761
16762 # The name of the directory that contains temporary libtool files.
16763 objdir=$objdir
16764
16765 # Shell to use when invoking shell scripts.
16766 SHELL=$lt_SHELL
16767
16768 # An echo program that does not interpret backslashes.
16769 ECHO=$lt_ECHO
16770
16771 # Used to examine libraries when file_magic_cmd begins with "file".
16772 MAGIC_CMD=$MAGIC_CMD
16773
16774 # Must we lock files when doing compilation?
16775 need_locks=$lt_need_locks
16776
16777 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16778 DSYMUTIL=$lt_DSYMUTIL
16779
16780 # Tool to change global to local symbols on Mac OS X.
16781 NMEDIT=$lt_NMEDIT
16782
16783 # Tool to manipulate fat objects and archives on Mac OS X.
16784 LIPO=$lt_LIPO
16785
16786 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16787 OTOOL=$lt_OTOOL
16788
16789 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16790 OTOOL64=$lt_OTOOL64
16791
16792 # Old archive suffix (normally "a").
16793 libext=$libext
16794
16795 # Shared library suffix (normally ".so").
16796 shrext_cmds=$lt_shrext_cmds
16797
16798 # The commands to extract the exported symbol list from a shared archive.
16799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16800
16801 # Variables whose values should be saved in libtool wrapper scripts and
16802 # restored at link time.
16803 variables_saved_for_relink=$lt_variables_saved_for_relink
16804
16805 # Do we need the "lib" prefix for modules?
16806 need_lib_prefix=$need_lib_prefix
16807
16808 # Do we need a version for libraries?
16809 need_version=$need_version
16810
16811 # Library versioning type.
16812 version_type=$version_type
16813
16814 # Shared library runtime path variable.
16815 runpath_var=$runpath_var
16816
16817 # Shared library path variable.
16818 shlibpath_var=$shlibpath_var
16819
16820 # Is shlibpath searched before the hard-coded library search path?
16821 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16822
16823 # Format of library name prefix.
16824 libname_spec=$lt_libname_spec
16825
16826 # List of archive names.  First name is the real one, the rest are links.
16827 # The last name is the one that the linker finds with -lNAME
16828 library_names_spec=$lt_library_names_spec
16829
16830 # The coded name of the library, if different from the real name.
16831 soname_spec=$lt_soname_spec
16832
16833 # Command to use after installation of a shared archive.
16834 postinstall_cmds=$lt_postinstall_cmds
16835
16836 # Command to use after uninstallation of a shared archive.
16837 postuninstall_cmds=$lt_postuninstall_cmds
16838
16839 # Commands used to finish a libtool library installation in a directory.
16840 finish_cmds=$lt_finish_cmds
16841
16842 # As "finish_cmds", except a single script fragment to be evaled but
16843 # not shown.
16844 finish_eval=$lt_finish_eval
16845
16846 # Whether we should hardcode library paths into libraries.
16847 hardcode_into_libs=$hardcode_into_libs
16848
16849 # Compile-time system search path for libraries.
16850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16851
16852 # Run-time system search path for libraries.
16853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16854
16855 # Whether dlopen is supported.
16856 dlopen_support=$enable_dlopen
16857
16858 # Whether dlopen of programs is supported.
16859 dlopen_self=$enable_dlopen_self
16860
16861 # Whether dlopen of statically linked programs is supported.
16862 dlopen_self_static=$enable_dlopen_self_static
16863
16864 # Commands to strip libraries.
16865 old_striplib=$lt_old_striplib
16866 striplib=$lt_striplib
16867
16868
16869 # The linker used to build libraries.
16870 LD=$lt_LD
16871
16872 # Commands used to build an old-style archive.
16873 old_archive_cmds=$lt_old_archive_cmds
16874
16875 # A language specific compiler.
16876 CC=$lt_compiler
16877
16878 # Is the compiler the GNU compiler?
16879 with_gcc=$GCC
16880
16881 # Compiler flag to turn off builtin functions.
16882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16883
16884 # How to pass a linker flag through the compiler.
16885 wl=$lt_lt_prog_compiler_wl
16886
16887 # Additional compiler flags for building library objects.
16888 pic_flag=$lt_lt_prog_compiler_pic
16889
16890 # Compiler flag to prevent dynamic linking.
16891 link_static_flag=$lt_lt_prog_compiler_static
16892
16893 # Does compiler simultaneously support -c and -o options?
16894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16895
16896 # Whether or not to add -lc for building shared libraries.
16897 build_libtool_need_lc=$archive_cmds_need_lc
16898
16899 # Whether or not to disallow shared libs when runtime libs are static.
16900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16901
16902 # Compiler flag to allow reflexive dlopens.
16903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16904
16905 # Compiler flag to generate shared objects directly from archives.
16906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16907
16908 # Whether the compiler copes with passing no objects directly.
16909 compiler_needs_object=$lt_compiler_needs_object
16910
16911 # Create an old-style archive from a shared archive.
16912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16913
16914 # Create a temporary old-style archive to link instead of a shared archive.
16915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16916
16917 # Commands used to build a shared archive.
16918 archive_cmds=$lt_archive_cmds
16919 archive_expsym_cmds=$lt_archive_expsym_cmds
16920
16921 # Commands used to build a loadable module if different from building
16922 # a shared archive.
16923 module_cmds=$lt_module_cmds
16924 module_expsym_cmds=$lt_module_expsym_cmds
16925
16926 # Whether we are building with GNU ld or not.
16927 with_gnu_ld=$lt_with_gnu_ld
16928
16929 # Flag that allows shared libraries with undefined symbols to be built.
16930 allow_undefined_flag=$lt_allow_undefined_flag
16931
16932 # Flag that enforces no undefined symbols.
16933 no_undefined_flag=$lt_no_undefined_flag
16934
16935 # Flag to hardcode \$libdir into a binary during linking.
16936 # This must work even if \$libdir does not exist
16937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16938
16939 # If ld is used when linking, flag to hardcode \$libdir into a binary
16940 # during linking.  This must work even if \$libdir does not exist.
16941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16942
16943 # Whether we need a single "-rpath" flag with a separated argument.
16944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16945
16946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16947 # DIR into the resulting binary.
16948 hardcode_direct=$hardcode_direct
16949
16950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16951 # DIR into the resulting binary and the resulting library dependency is
16952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16953 # library is relocated.
16954 hardcode_direct_absolute=$hardcode_direct_absolute
16955
16956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16957 # into the resulting binary.
16958 hardcode_minus_L=$hardcode_minus_L
16959
16960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16961 # into the resulting binary.
16962 hardcode_shlibpath_var=$hardcode_shlibpath_var
16963
16964 # Set to "yes" if building a shared library automatically hardcodes DIR
16965 # into the library and all subsequent libraries and executables linked
16966 # against it.
16967 hardcode_automatic=$hardcode_automatic
16968
16969 # Set to yes if linker adds runtime paths of dependent libraries
16970 # to runtime path list.
16971 inherit_rpath=$inherit_rpath
16972
16973 # Whether libtool must link a program against all its dependency libraries.
16974 link_all_deplibs=$link_all_deplibs
16975
16976 # Fix the shell variable \$srcfile for the compiler.
16977 fix_srcfile_path=$lt_fix_srcfile_path
16978
16979 # Set to "yes" if exported symbols are required.
16980 always_export_symbols=$always_export_symbols
16981
16982 # The commands to list exported symbols.
16983 export_symbols_cmds=$lt_export_symbols_cmds
16984
16985 # Symbols that should not be listed in the preloaded symbols.
16986 exclude_expsyms=$lt_exclude_expsyms
16987
16988 # Symbols that must always be exported.
16989 include_expsyms=$lt_include_expsyms
16990
16991 # Commands necessary for linking programs (against libraries) with templates.
16992 prelink_cmds=$lt_prelink_cmds
16993
16994 # Specify filename containing input files.
16995 file_list_spec=$lt_file_list_spec
16996
16997 # How to hardcode a shared library path into an executable.
16998 hardcode_action=$hardcode_action
16999
17000 # ### END LIBTOOL CONFIG
17001
17002 _LT_EOF
17003
17004   case $host_os in
17005   aix3*)
17006     cat <<\_LT_EOF >> "$cfgfile"
17007 # AIX sometimes has problems with the GCC collect2 program.  For some
17008 # reason, if we set the COLLECT_NAMES environment variable, the problems
17009 # vanish in a puff of smoke.
17010 if test "X${COLLECT_NAMES+set}" != Xset; then
17011   COLLECT_NAMES=
17012   export COLLECT_NAMES
17013 fi
17014 _LT_EOF
17015     ;;
17016   esac
17017
17018
17019 ltmain="$ac_aux_dir/ltmain.sh"
17020
17021
17022   # We use sed instead of cat because bash on DJGPP gets confused if
17023   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17024   # text mode, it properly converts lines to CR/LF.  This bash problem
17025   # is reportedly fixed, but why not run on old versions too?
17026   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17027     || (rm -f "$cfgfile"; exit 1)
17028
17029   case $xsi_shell in
17030   yes)
17031     cat << \_LT_EOF >> "$cfgfile"
17032
17033 # func_dirname file append nondir_replacement
17034 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17035 # otherwise set result to NONDIR_REPLACEMENT.
17036 func_dirname ()
17037 {
17038   case ${1} in
17039     */*) func_dirname_result="${1%/*}${2}" ;;
17040     *  ) func_dirname_result="${3}" ;;
17041   esac
17042 }
17043
17044 # func_basename file
17045 func_basename ()
17046 {
17047   func_basename_result="${1##*/}"
17048 }
17049
17050 # func_dirname_and_basename file append nondir_replacement
17051 # perform func_basename and func_dirname in a single function
17052 # call:
17053 #   dirname:  Compute the dirname of FILE.  If nonempty,
17054 #             add APPEND to the result, otherwise set result
17055 #             to NONDIR_REPLACEMENT.
17056 #             value returned in "$func_dirname_result"
17057 #   basename: Compute filename of FILE.
17058 #             value retuned in "$func_basename_result"
17059 # Implementation must be kept synchronized with func_dirname
17060 # and func_basename. For efficiency, we do not delegate to
17061 # those functions but instead duplicate the functionality here.
17062 func_dirname_and_basename ()
17063 {
17064   case ${1} in
17065     */*) func_dirname_result="${1%/*}${2}" ;;
17066     *  ) func_dirname_result="${3}" ;;
17067   esac
17068   func_basename_result="${1##*/}"
17069 }
17070
17071 # func_stripname prefix suffix name
17072 # strip PREFIX and SUFFIX off of NAME.
17073 # PREFIX and SUFFIX must not contain globbing or regex special
17074 # characters, hashes, percent signs, but SUFFIX may contain a leading
17075 # dot (in which case that matches only a dot).
17076 func_stripname ()
17077 {
17078   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17079   # positional parameters, so assign one to ordinary parameter first.
17080   func_stripname_result=${3}
17081   func_stripname_result=${func_stripname_result#"${1}"}
17082   func_stripname_result=${func_stripname_result%"${2}"}
17083 }
17084
17085 # func_opt_split
17086 func_opt_split ()
17087 {
17088   func_opt_split_opt=${1%%=*}
17089   func_opt_split_arg=${1#*=}
17090 }
17091
17092 # func_lo2o object
17093 func_lo2o ()
17094 {
17095   case ${1} in
17096     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17097     *)    func_lo2o_result=${1} ;;
17098   esac
17099 }
17100
17101 # func_xform libobj-or-source
17102 func_xform ()
17103 {
17104   func_xform_result=${1%.*}.lo
17105 }
17106
17107 # func_arith arithmetic-term...
17108 func_arith ()
17109 {
17110   func_arith_result=$(( $* ))
17111 }
17112
17113 # func_len string
17114 # STRING may not start with a hyphen.
17115 func_len ()
17116 {
17117   func_len_result=${#1}
17118 }
17119
17120 _LT_EOF
17121     ;;
17122   *) # Bourne compatible functions.
17123     cat << \_LT_EOF >> "$cfgfile"
17124
17125 # func_dirname file append nondir_replacement
17126 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17127 # otherwise set result to NONDIR_REPLACEMENT.
17128 func_dirname ()
17129 {
17130   # Extract subdirectory from the argument.
17131   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17132   if test "X$func_dirname_result" = "X${1}"; then
17133     func_dirname_result="${3}"
17134   else
17135     func_dirname_result="$func_dirname_result${2}"
17136   fi
17137 }
17138
17139 # func_basename file
17140 func_basename ()
17141 {
17142   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17143 }
17144
17145
17146 # func_stripname prefix suffix name
17147 # strip PREFIX and SUFFIX off of NAME.
17148 # PREFIX and SUFFIX must not contain globbing or regex special
17149 # characters, hashes, percent signs, but SUFFIX may contain a leading
17150 # dot (in which case that matches only a dot).
17151 # func_strip_suffix prefix name
17152 func_stripname ()
17153 {
17154   case ${2} in
17155     .*) func_stripname_result=`$ECHO "X${3}" \
17156            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17157     *)  func_stripname_result=`$ECHO "X${3}" \
17158            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17159   esac
17160 }
17161
17162 # sed scripts:
17163 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17164 my_sed_long_arg='1s/^-[^=]*=//'
17165
17166 # func_opt_split
17167 func_opt_split ()
17168 {
17169   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17170   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17171 }
17172
17173 # func_lo2o object
17174 func_lo2o ()
17175 {
17176   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17177 }
17178
17179 # func_xform libobj-or-source
17180 func_xform ()
17181 {
17182   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17183 }
17184
17185 # func_arith arithmetic-term...
17186 func_arith ()
17187 {
17188   func_arith_result=`expr "$@"`
17189 }
17190
17191 # func_len string
17192 # STRING may not start with a hyphen.
17193 func_len ()
17194 {
17195   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17196 }
17197
17198 _LT_EOF
17199 esac
17200
17201 case $lt_shell_append in
17202   yes)
17203     cat << \_LT_EOF >> "$cfgfile"
17204
17205 # func_append var value
17206 # Append VALUE to the end of shell variable VAR.
17207 func_append ()
17208 {
17209   eval "$1+=\$2"
17210 }
17211 _LT_EOF
17212     ;;
17213   *)
17214     cat << \_LT_EOF >> "$cfgfile"
17215
17216 # func_append var value
17217 # Append VALUE to the end of shell variable VAR.
17218 func_append ()
17219 {
17220   eval "$1=\$$1\$2"
17221 }
17222
17223 _LT_EOF
17224     ;;
17225   esac
17226
17227
17228   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17229     || (rm -f "$cfgfile"; exit 1)
17230
17231   mv -f "$cfgfile" "$ofile" ||
17232     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17233   chmod +x "$ofile"
17234
17235  ;;
17236     "include":C) test -d include || mkdir include ;;
17237     "src":C)
17238 test -d src || mkdir src
17239 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17240  ;;
17241
17242   esac
17243 done # for ac_tag
17244
17245
17246 { (exit 0); exit 0; }
17247 _ACEOF
17248 chmod +x $CONFIG_STATUS
17249 ac_clean_files=$ac_clean_files_save
17250
17251 test $ac_write_fail = 0 ||
17252   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17253 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17254    { (exit 1); exit 1; }; }
17255
17256
17257 # configure is writing to config.log, and then calls config.status.
17258 # config.status does its own redirection, appending to config.log.
17259 # Unfortunately, on DOS this fails, as config.log is still kept open
17260 # by configure, so config.status won't be able to write to it; its
17261 # output is simply discarded.  So we exec the FD to /dev/null,
17262 # effectively closing config.log, so it can be properly (re)opened and
17263 # appended to by config.status.  When coming back to configure, we
17264 # need to make the FD available again.
17265 if test "$no_create" != yes; then
17266   ac_cs_success=:
17267   ac_config_status_args=
17268   test "$silent" = yes &&
17269     ac_config_status_args="$ac_config_status_args --quiet"
17270   exec 5>/dev/null
17271   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17272   exec 5>>config.log
17273   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17274   # would make configure fail if this is the last instruction.
17275   $ac_cs_success || { (exit 1); exit 1; }
17276 fi
17277 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17278   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17279 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17280 fi
17281