Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / contrib / mpfr / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for MPFR 2.4.1.
4 #
5 #
6 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
7 # Contributed by the Arenaire and Cacao projects, INRIA.
8 #
9 # This file is part of the GNU MPFR Library.
10 #
11 # The GNU MPFR Library is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License as published
13 # by the Free Software Foundation; either version 2.1 of the License, or (at
14 # your option) any later version.
15 #
16 # The GNU MPFR Library is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19 # License for more details.
20 #
21 # You should have received a copy of the GNU Lesser General Public License
22 # along with the GNU MPFR Library; see the file COPYING.LIB.  If not, write to
23 # the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 # MA 02110-1301, USA.
25 #
26 #
27 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
28 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
29 # This configure script is free software; the Free Software Foundation
30 # gives unlimited permission to copy, distribute and modify it.
31 ## --------------------- ##
32 ## M4sh Initialization.  ##
33 ## --------------------- ##
34
35 # Be more Bourne compatible
36 DUALCASE=1; export DUALCASE # for MKS sh
37 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38   emulate sh
39   NULLCMD=:
40   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41   # is contrary to our usage.  Disable this feature.
42   alias -g '${1+"$@"}'='"$@"'
43   setopt NO_GLOB_SUBST
44 else
45   case `(set -o) 2>/dev/null` in
46   *posix*) set -o posix ;;
47 esac
48
49 fi
50
51
52
53
54 # PATH needs CR
55 # Avoid depending upon Character Ranges.
56 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
57 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
58 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59 as_cr_digits='0123456789'
60 as_cr_alnum=$as_cr_Letters$as_cr_digits
61
62 as_nl='
63 '
64 export as_nl
65 # Printing a long string crashes Solaris 7 /usr/bin/printf.
66 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
67 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
68 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
69 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70   as_echo='printf %s\n'
71   as_echo_n='printf %s'
72 else
73   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75     as_echo_n='/usr/ucb/echo -n'
76   else
77     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78     as_echo_n_body='eval
79       arg=$1;
80       case $arg in
81       *"$as_nl"*)
82         expr "X$arg" : "X\\(.*\\)$as_nl";
83         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84       esac;
85       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
86     '
87     export as_echo_n_body
88     as_echo_n='sh -c $as_echo_n_body as_echo'
89   fi
90   export as_echo_body
91   as_echo='sh -c $as_echo_body as_echo'
92 fi
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96   PATH_SEPARATOR=:
97   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99       PATH_SEPARATOR=';'
100   }
101 fi
102
103 # Support unset when possible.
104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
105   as_unset=unset
106 else
107   as_unset=false
108 fi
109
110
111 # IFS
112 # We need space, tab and new line, in precisely that order.  Quoting is
113 # there to prevent editors from complaining about space-tab.
114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
115 # splitting by setting IFS to empty value.)
116 IFS=" ""        $as_nl"
117
118 # Find who we are.  Look in the path if we contain no directory separator.
119 case $0 in
120   *[\\/]* ) as_myself=$0 ;;
121   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
122 for as_dir in $PATH
123 do
124   IFS=$as_save_IFS
125   test -z "$as_dir" && as_dir=.
126   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
127 done
128 IFS=$as_save_IFS
129
130      ;;
131 esac
132 # We did not find ourselves, most probably we were run as `sh COMMAND'
133 # in which case we are not to be found in the path.
134 if test "x$as_myself" = x; then
135   as_myself=$0
136 fi
137 if test ! -f "$as_myself"; then
138   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
139   { (exit 1); exit 1; }
140 fi
141
142 # Work around bugs in pre-3.0 UWIN ksh.
143 for as_var in ENV MAIL MAILPATH
144 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
145 done
146 PS1='$ '
147 PS2='> '
148 PS4='+ '
149
150 # NLS nuisances.
151 LC_ALL=C
152 export LC_ALL
153 LANGUAGE=C
154 export LANGUAGE
155
156 # Required to use basename.
157 if expr a : '\(a\)' >/dev/null 2>&1 &&
158    test "X`expr 00001 : '.*\(...\)'`" = X001; then
159   as_expr=expr
160 else
161   as_expr=false
162 fi
163
164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
165   as_basename=basename
166 else
167   as_basename=false
168 fi
169
170
171 # Name of the executable.
172 as_me=`$as_basename -- "$0" ||
173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
174          X"$0" : 'X\(//\)$' \| \
175          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
176 $as_echo X/"$0" |
177     sed '/^.*\/\([^/][^/]*\)\/*$/{
178             s//\1/
179             q
180           }
181           /^X\/\(\/\/\)$/{
182             s//\1/
183             q
184           }
185           /^X\/\(\/\).*/{
186             s//\1/
187             q
188           }
189           s/.*/./; q'`
190
191 # CDPATH.
192 $as_unset CDPATH
193
194
195 if test "x$CONFIG_SHELL" = x; then
196   if (eval ":") 2>/dev/null; then
197   as_have_required=yes
198 else
199   as_have_required=no
200 fi
201
202   if test $as_have_required = yes &&     (eval ":
203 (as_func_return () {
204   (exit \$1)
205 }
206 as_func_success () {
207   as_func_return 0
208 }
209 as_func_failure () {
210   as_func_return 1
211 }
212 as_func_ret_success () {
213   return 0
214 }
215 as_func_ret_failure () {
216   return 1
217 }
218
219 exitcode=0
220 if as_func_success; then
221   :
222 else
223   exitcode=1
224   echo as_func_success failed.
225 fi
226
227 if as_func_failure; then
228   exitcode=1
229   echo as_func_failure succeeded.
230 fi
231
232 if as_func_ret_success; then
233   :
234 else
235   exitcode=1
236   echo as_func_ret_success failed.
237 fi
238
239 if as_func_ret_failure; then
240   exitcode=1
241   echo as_func_ret_failure succeeded.
242 fi
243
244 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
245   :
246 else
247   exitcode=1
248   echo positional parameters were not saved.
249 fi
250
251 test \$exitcode = 0) || { (exit 1); exit 1; }
252
253 (
254   as_lineno_1=\$LINENO
255   as_lineno_2=\$LINENO
256   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
257   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
258 ") 2> /dev/null; then
259   :
260 else
261   as_candidate_shells=
262     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
264 do
265   IFS=$as_save_IFS
266   test -z "$as_dir" && as_dir=.
267   case $as_dir in
268          /*)
269            for as_base in sh bash ksh sh5; do
270              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
271            done;;
272        esac
273 done
274 IFS=$as_save_IFS
275
276
277       for as_shell in $as_candidate_shells $SHELL; do
278          # Try only shells that exist, to save several forks.
279          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
280                 { ("$as_shell") 2> /dev/null <<\_ASEOF
281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
282   emulate sh
283   NULLCMD=:
284   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
285   # is contrary to our usage.  Disable this feature.
286   alias -g '${1+"$@"}'='"$@"'
287   setopt NO_GLOB_SUBST
288 else
289   case `(set -o) 2>/dev/null` in
290   *posix*) set -o posix ;;
291 esac
292
293 fi
294
295
296 :
297 _ASEOF
298 }; then
299   CONFIG_SHELL=$as_shell
300                as_have_required=yes
301                if { "$as_shell" 2> /dev/null <<\_ASEOF
302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
303   emulate sh
304   NULLCMD=:
305   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
306   # is contrary to our usage.  Disable this feature.
307   alias -g '${1+"$@"}'='"$@"'
308   setopt NO_GLOB_SUBST
309 else
310   case `(set -o) 2>/dev/null` in
311   *posix*) set -o posix ;;
312 esac
313
314 fi
315
316
317 :
318 (as_func_return () {
319   (exit $1)
320 }
321 as_func_success () {
322   as_func_return 0
323 }
324 as_func_failure () {
325   as_func_return 1
326 }
327 as_func_ret_success () {
328   return 0
329 }
330 as_func_ret_failure () {
331   return 1
332 }
333
334 exitcode=0
335 if as_func_success; then
336   :
337 else
338   exitcode=1
339   echo as_func_success failed.
340 fi
341
342 if as_func_failure; then
343   exitcode=1
344   echo as_func_failure succeeded.
345 fi
346
347 if as_func_ret_success; then
348   :
349 else
350   exitcode=1
351   echo as_func_ret_success failed.
352 fi
353
354 if as_func_ret_failure; then
355   exitcode=1
356   echo as_func_ret_failure succeeded.
357 fi
358
359 if ( set x; as_func_ret_success y && test x = "$1" ); then
360   :
361 else
362   exitcode=1
363   echo positional parameters were not saved.
364 fi
365
366 test $exitcode = 0) || { (exit 1); exit 1; }
367
368 (
369   as_lineno_1=$LINENO
370   as_lineno_2=$LINENO
371   test "x$as_lineno_1" != "x$as_lineno_2" &&
372   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
373
374 _ASEOF
375 }; then
376   break
377 fi
378
379 fi
380
381       done
382
383       if test "x$CONFIG_SHELL" != x; then
384   for as_var in BASH_ENV ENV
385         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
386         done
387         export CONFIG_SHELL
388         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
389 fi
390
391
392     if test $as_have_required = no; then
393   echo This script requires a shell more modern than all the
394       echo shells that I found on your system.  Please install a
395       echo modern shell, or manually run the script under such a
396       echo shell if you do have one.
397       { (exit 1); exit 1; }
398 fi
399
400
401 fi
402
403 fi
404
405
406
407 (eval "as_func_return () {
408   (exit \$1)
409 }
410 as_func_success () {
411   as_func_return 0
412 }
413 as_func_failure () {
414   as_func_return 1
415 }
416 as_func_ret_success () {
417   return 0
418 }
419 as_func_ret_failure () {
420   return 1
421 }
422
423 exitcode=0
424 if as_func_success; then
425   :
426 else
427   exitcode=1
428   echo as_func_success failed.
429 fi
430
431 if as_func_failure; then
432   exitcode=1
433   echo as_func_failure succeeded.
434 fi
435
436 if as_func_ret_success; then
437   :
438 else
439   exitcode=1
440   echo as_func_ret_success failed.
441 fi
442
443 if as_func_ret_failure; then
444   exitcode=1
445   echo as_func_ret_failure succeeded.
446 fi
447
448 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
449   :
450 else
451   exitcode=1
452   echo positional parameters were not saved.
453 fi
454
455 test \$exitcode = 0") || {
456   echo No shell found that supports shell functions.
457   echo Please tell bug-autoconf@gnu.org about your system,
458   echo including any error possibly output before this message.
459   echo This can help us improve future autoconf versions.
460   echo Configuration will now proceed without shell functions.
461 }
462
463
464
465   as_lineno_1=$LINENO
466   as_lineno_2=$LINENO
467   test "x$as_lineno_1" != "x$as_lineno_2" &&
468   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
469
470   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
471   # uniformly replaced by the line number.  The first 'sed' inserts a
472   # line-number line after each line using $LINENO; the second 'sed'
473   # does the real work.  The second script uses 'N' to pair each
474   # line-number line with the line containing $LINENO, and appends
475   # trailing '-' during substitution so that $LINENO is not a special
476   # case at line end.
477   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
478   # scripts with optimization help from Paolo Bonzini.  Blame Lee
479   # E. McMahon (1931-1989) for sed's syntax.  :-)
480   sed -n '
481     p
482     /[$]LINENO/=
483   ' <$as_myself |
484     sed '
485       s/[$]LINENO.*/&-/
486       t lineno
487       b
488       :lineno
489       N
490       :loop
491       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492       t loop
493       s/-\n.*//
494     ' >$as_me.lineno &&
495   chmod +x "$as_me.lineno" ||
496     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
497    { (exit 1); exit 1; }; }
498
499   # Don't try to exec as it changes $[0], causing all sort of problems
500   # (the dirname of $[0] is not the place where we might find the
501   # original and so on.  Autoconf is especially sensitive to this).
502   . "./$as_me.lineno"
503   # Exit status is that of the last command.
504   exit
505 }
506
507
508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
509   as_dirname=dirname
510 else
511   as_dirname=false
512 fi
513
514 ECHO_C= ECHO_N= ECHO_T=
515 case `echo -n x` in
516 -n*)
517   case `echo 'x\c'` in
518   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
519   *)   ECHO_C='\c';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524 if expr a : '\(a\)' >/dev/null 2>&1 &&
525    test "X`expr 00001 : '.*\(...\)'`" = X001; then
526   as_expr=expr
527 else
528   as_expr=false
529 fi
530
531 rm -f conf$$ conf$$.exe conf$$.file
532 if test -d conf$$.dir; then
533   rm -f conf$$.dir/conf$$.file
534 else
535   rm -f conf$$.dir
536   mkdir conf$$.dir 2>/dev/null
537 fi
538 if (echo >conf$$.file) 2>/dev/null; then
539   if ln -s conf$$.file conf$$ 2>/dev/null; then
540     as_ln_s='ln -s'
541     # ... but there are two gotchas:
542     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
543     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
544     # In both cases, we have to default to `cp -p'.
545     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
546       as_ln_s='cp -p'
547   elif ln conf$$.file conf$$ 2>/dev/null; then
548     as_ln_s=ln
549   else
550     as_ln_s='cp -p'
551   fi
552 else
553   as_ln_s='cp -p'
554 fi
555 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
556 rmdir conf$$.dir 2>/dev/null
557
558 if mkdir -p . 2>/dev/null; then
559   as_mkdir_p=:
560 else
561   test -d ./-p && rmdir ./-p
562   as_mkdir_p=false
563 fi
564
565 if test -x / >/dev/null 2>&1; then
566   as_test_x='test -x'
567 else
568   if ls -dL / >/dev/null 2>&1; then
569     as_ls_L_option=L
570   else
571     as_ls_L_option=
572   fi
573   as_test_x='
574     eval sh -c '\''
575       if test -d "$1"; then
576         test -d "$1/.";
577       else
578         case $1 in
579         -*)set "./$1";;
580         esac;
581         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
582         ???[sx]*):;;*)false;;esac;fi
583     '\'' sh
584   '
585 fi
586 as_executable_p=$as_test_x
587
588 # Sed expression to map a string onto a valid CPP name.
589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
590
591 # Sed expression to map a string onto a valid variable name.
592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593
594
595
596
597 # Check that we are running under the correct shell.
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600 case X$lt_ECHO in
601 X*--fallback-echo)
602   # Remove one level of quotation (which was required for Make).
603   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
604   ;;
605 esac
606
607 ECHO=${lt_ECHO-echo}
608 if test "X$1" = X--no-reexec; then
609   # Discard the --no-reexec flag, and continue.
610   shift
611 elif test "X$1" = X--fallback-echo; then
612   # Avoid inline document here, it may be left over
613   :
614 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
615   # Yippee, $ECHO works!
616   :
617 else
618   # Restart under the correct shell.
619   exec $SHELL "$0" --no-reexec ${1+"$@"}
620 fi
621
622 if test "X$1" = X--fallback-echo; then
623   # used as fallback echo
624   shift
625   cat <<_LT_EOF
626 $*
627 _LT_EOF
628   exit 0
629 fi
630
631 # The HP-UX ksh and POSIX shell print the target directory to stdout
632 # if CDPATH is set.
633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
634
635 if test -z "$lt_ECHO"; then
636   if test "X${echo_test_string+set}" != Xset; then
637     # find a string as large as possible, as long as the shell can cope with it
638     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
639       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
640       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
641          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
642       then
643         break
644       fi
645     done
646   fi
647
648   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650      test "X$echo_testing_string" = "X$echo_test_string"; then
651     :
652   else
653     # The Solaris, AIX, and Digital Unix default echo programs unquote
654     # backslashes.  This makes it impossible to quote backslashes using
655     #   echo "$something" | sed 's/\\/\\\\/g'
656     #
657     # So, first we look for a working echo in the user's PATH.
658
659     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
660     for dir in $PATH /usr/ucb; do
661       IFS="$lt_save_ifs"
662       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
663          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
664          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
665          test "X$echo_testing_string" = "X$echo_test_string"; then
666         ECHO="$dir/echo"
667         break
668       fi
669     done
670     IFS="$lt_save_ifs"
671
672     if test "X$ECHO" = Xecho; then
673       # We didn't find a better echo, so look for alternatives.
674       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
675          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
676          test "X$echo_testing_string" = "X$echo_test_string"; then
677         # This shell has a builtin print -r that does the trick.
678         ECHO='print -r'
679       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
680            test "X$CONFIG_SHELL" != X/bin/ksh; then
681         # If we have ksh, try running configure again with it.
682         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
683         export ORIGINAL_CONFIG_SHELL
684         CONFIG_SHELL=/bin/ksh
685         export CONFIG_SHELL
686         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
687       else
688         # Try using printf.
689         ECHO='printf %s\n'
690         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
691            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
692            test "X$echo_testing_string" = "X$echo_test_string"; then
693           # Cool, printf works
694           :
695         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
696              test "X$echo_testing_string" = 'X\t' &&
697              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
698              test "X$echo_testing_string" = "X$echo_test_string"; then
699           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
700           export CONFIG_SHELL
701           SHELL="$CONFIG_SHELL"
702           export SHELL
703           ECHO="$CONFIG_SHELL $0 --fallback-echo"
704         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
705              test "X$echo_testing_string" = 'X\t' &&
706              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
707              test "X$echo_testing_string" = "X$echo_test_string"; then
708           ECHO="$CONFIG_SHELL $0 --fallback-echo"
709         else
710           # maybe with a smaller string...
711           prev=:
712
713           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
714             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
715             then
716               break
717             fi
718             prev="$cmd"
719           done
720
721           if test "$prev" != 'sed 50q "$0"'; then
722             echo_test_string=`eval $prev`
723             export echo_test_string
724             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
725           else
726             # Oops.  We lost completely, so just stick with echo.
727             ECHO=echo
728           fi
729         fi
730       fi
731     fi
732   fi
733 fi
734
735 # Copy echo and quote the copy suitably for passing to libtool from
736 # the Makefile, instead of quoting the original, which is used later.
737 lt_ECHO=$ECHO
738 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
739    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
740 fi
741
742
743
744
745 exec 7<&0 </dev/null 6>&1
746
747 # Name of the host.
748 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
749 # so uname gets run too.
750 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
751
752 #
753 # Initializations.
754 #
755 ac_default_prefix=/usr/local
756 ac_clean_files=
757 ac_config_libobj_dir=.
758 LIBOBJS=
759 cross_compiling=no
760 subdirs=
761 MFLAGS=
762 MAKEFLAGS=
763 SHELL=${CONFIG_SHELL-/bin/sh}
764
765 # Identity of this package.
766 PACKAGE_NAME='MPFR'
767 PACKAGE_TARNAME='mpfr'
768 PACKAGE_VERSION='2.4.1'
769 PACKAGE_STRING='MPFR 2.4.1'
770 PACKAGE_BUGREPORT=''
771
772 # Factoring default headers for most tests.
773 ac_includes_default="\
774 #include <stdio.h>
775 #ifdef HAVE_SYS_TYPES_H
776 # include <sys/types.h>
777 #endif
778 #ifdef HAVE_SYS_STAT_H
779 # include <sys/stat.h>
780 #endif
781 #ifdef STDC_HEADERS
782 # include <stdlib.h>
783 # include <stddef.h>
784 #else
785 # ifdef HAVE_STDLIB_H
786 #  include <stdlib.h>
787 # endif
788 #endif
789 #ifdef HAVE_STRING_H
790 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
791 #  include <memory.h>
792 # endif
793 # include <string.h>
794 #endif
795 #ifdef HAVE_STRINGS_H
796 # include <strings.h>
797 #endif
798 #ifdef HAVE_INTTYPES_H
799 # include <inttypes.h>
800 #endif
801 #ifdef HAVE_STDINT_H
802 # include <stdint.h>
803 #endif
804 #ifdef HAVE_UNISTD_H
805 # include <unistd.h>
806 #endif"
807
808 ac_subst_vars='LTLIBOBJS
809 LIBOBJS
810 ALLOCA
811 NMEDIT
812 DSYMUTIL
813 lt_ECHO
814 RANLIB
815 AR
816 LN_S
817 NM
818 ac_ct_DUMPBIN
819 DUMPBIN
820 LD
821 FGREP
822 LIBTOOL
823 OBJDUMP
824 DLLTOOL
825 AS
826 CXXCPP
827 ac_ct_F77
828 FFLAGS
829 F77
830 am__fastdepCXX_FALSE
831 am__fastdepCXX_TRUE
832 CXXDEPMODE
833 ac_ct_CXX
834 CXXFLAGS
835 CXX
836 MPFR_LIBM
837 ANSI2KNR
838 U
839 SED
840 EGREP
841 GREP
842 CPP
843 am__fastdepCC_FALSE
844 am__fastdepCC_TRUE
845 CCDEPMODE
846 AMDEPBACKSLASH
847 AMDEP_FALSE
848 AMDEP_TRUE
849 am__quote
850 am__include
851 DEPDIR
852 OBJEXT
853 EXEEXT
854 ac_ct_CC
855 CPPFLAGS
856 LDFLAGS
857 CFLAGS
858 CC
859 host_os
860 host_vendor
861 host_cpu
862 host
863 build_os
864 build_vendor
865 build_cpu
866 build
867 MAINT
868 MAINTAINER_MODE_FALSE
869 MAINTAINER_MODE_TRUE
870 am__untar
871 am__tar
872 AMTAR
873 am__leading_dot
874 SET_MAKE
875 AWK
876 mkdir_p
877 MKDIR_P
878 INSTALL_STRIP_PROGRAM
879 STRIP
880 install_sh
881 MAKEINFO
882 AUTOHEADER
883 AUTOMAKE
884 AUTOCONF
885 ACLOCAL
886 VERSION
887 PACKAGE
888 CYGPATH_W
889 am__isrc
890 INSTALL_DATA
891 INSTALL_SCRIPT
892 INSTALL_PROGRAM
893 target_alias
894 host_alias
895 build_alias
896 LIBS
897 ECHO_T
898 ECHO_N
899 ECHO_C
900 DEFS
901 mandir
902 localedir
903 libdir
904 psdir
905 pdfdir
906 dvidir
907 htmldir
908 infodir
909 docdir
910 oldincludedir
911 includedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_maintainer_mode
934 with_gmp_include
935 with_gmp_lib
936 with_gmp
937 with_gmp_build
938 with_mulhigh_size
939 enable_assert
940 enable_logging
941 enable_thread_safe
942 enable_warnings
943 enable_tests_timeout
944 enable_dependency_tracking
945 enable_decimal_float
946 enable_shared
947 enable_static
948 with_pic
949 enable_fast_install
950 with_gnu_ld
951 enable_libtool_lock
952 '
953       ac_precious_vars='build_alias
954 host_alias
955 target_alias
956 CC
957 CFLAGS
958 LDFLAGS
959 LIBS
960 CPPFLAGS
961 CPP
962 CXX
963 CXXFLAGS
964 CCC
965 F77
966 FFLAGS
967 CXXCPP'
968
969
970 # Initialize some variables set by options.
971 ac_init_help=
972 ac_init_version=false
973 ac_unrecognized_opts=
974 ac_unrecognized_sep=
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=no ;;
1088
1089   -docdir | --docdir | --docdi | --doc | --do)
1090     ac_prev=docdir ;;
1091   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092     docdir=$ac_optarg ;;
1093
1094   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095     ac_prev=dvidir ;;
1096   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097     dvidir=$ac_optarg ;;
1098
1099   -enable-* | --enable-*)
1100     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1104    { (exit 1); exit 1; }; }
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "enable_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval enable_$ac_useropt=\$ac_optarg ;;
1115
1116   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118   | --exec | --exe | --ex)
1119     ac_prev=exec_prefix ;;
1120   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122   | --exec=* | --exe=* | --ex=*)
1123     exec_prefix=$ac_optarg ;;
1124
1125   -gas | --gas | --ga | --g)
1126     # Obsolete; use --with-gas.
1127     with_gas=yes ;;
1128
1129   -help | --help | --hel | --he | -h)
1130     ac_init_help=long ;;
1131   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132     ac_init_help=recursive ;;
1133   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134     ac_init_help=short ;;
1135
1136   -host | --host | --hos | --ho)
1137     ac_prev=host_alias ;;
1138   -host=* | --host=* | --hos=* | --ho=*)
1139     host_alias=$ac_optarg ;;
1140
1141   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142     ac_prev=htmldir ;;
1143   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144   | --ht=*)
1145     htmldir=$ac_optarg ;;
1146
1147   -includedir | --includedir | --includedi | --included | --include \
1148   | --includ | --inclu | --incl | --inc)
1149     ac_prev=includedir ;;
1150   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151   | --includ=* | --inclu=* | --incl=* | --inc=*)
1152     includedir=$ac_optarg ;;
1153
1154   -infodir | --infodir | --infodi | --infod | --info | --inf)
1155     ac_prev=infodir ;;
1156   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157     infodir=$ac_optarg ;;
1158
1159   -libdir | --libdir | --libdi | --libd)
1160     ac_prev=libdir ;;
1161   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162     libdir=$ac_optarg ;;
1163
1164   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165   | --libexe | --libex | --libe)
1166     ac_prev=libexecdir ;;
1167   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168   | --libexe=* | --libex=* | --libe=*)
1169     libexecdir=$ac_optarg ;;
1170
1171   -localedir | --localedir | --localedi | --localed | --locale)
1172     ac_prev=localedir ;;
1173   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174     localedir=$ac_optarg ;;
1175
1176   -localstatedir | --localstatedir | --localstatedi | --localstated \
1177   | --localstate | --localstat | --localsta | --localst | --locals)
1178     ac_prev=localstatedir ;;
1179   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181     localstatedir=$ac_optarg ;;
1182
1183   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184     ac_prev=mandir ;;
1185   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186     mandir=$ac_optarg ;;
1187
1188   -nfp | --nfp | --nf)
1189     # Obsolete; use --without-fp.
1190     with_fp=no ;;
1191
1192   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193   | --no-cr | --no-c | -n)
1194     no_create=yes ;;
1195
1196   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198     no_recursion=yes ;;
1199
1200   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202   | --oldin | --oldi | --old | --ol | --o)
1203     ac_prev=oldincludedir ;;
1204   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207     oldincludedir=$ac_optarg ;;
1208
1209   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210     ac_prev=prefix ;;
1211   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212     prefix=$ac_optarg ;;
1213
1214   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215   | --program-pre | --program-pr | --program-p)
1216     ac_prev=program_prefix ;;
1217   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219     program_prefix=$ac_optarg ;;
1220
1221   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222   | --program-suf | --program-su | --program-s)
1223     ac_prev=program_suffix ;;
1224   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226     program_suffix=$ac_optarg ;;
1227
1228   -program-transform-name | --program-transform-name \
1229   | --program-transform-nam | --program-transform-na \
1230   | --program-transform-n | --program-transform- \
1231   | --program-transform | --program-transfor \
1232   | --program-transfo | --program-transf \
1233   | --program-trans | --program-tran \
1234   | --progr-tra | --program-tr | --program-t)
1235     ac_prev=program_transform_name ;;
1236   -program-transform-name=* | --program-transform-name=* \
1237   | --program-transform-nam=* | --program-transform-na=* \
1238   | --program-transform-n=* | --program-transform-=* \
1239   | --program-transform=* | --program-transfor=* \
1240   | --program-transfo=* | --program-transf=* \
1241   | --program-trans=* | --program-tran=* \
1242   | --progr-tra=* | --program-tr=* | --program-t=*)
1243     program_transform_name=$ac_optarg ;;
1244
1245   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246     ac_prev=pdfdir ;;
1247   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248     pdfdir=$ac_optarg ;;
1249
1250   -psdir | --psdir | --psdi | --psd | --ps)
1251     ac_prev=psdir ;;
1252   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253     psdir=$ac_optarg ;;
1254
1255   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256   | -silent | --silent | --silen | --sile | --sil)
1257     silent=yes ;;
1258
1259   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260     ac_prev=sbindir ;;
1261   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262   | --sbi=* | --sb=*)
1263     sbindir=$ac_optarg ;;
1264
1265   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267   | --sharedst | --shareds | --shared | --share | --shar \
1268   | --sha | --sh)
1269     ac_prev=sharedstatedir ;;
1270   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273   | --sha=* | --sh=*)
1274     sharedstatedir=$ac_optarg ;;
1275
1276   -site | --site | --sit)
1277     ac_prev=site ;;
1278   -site=* | --site=* | --sit=*)
1279     site=$ac_optarg ;;
1280
1281   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282     ac_prev=srcdir ;;
1283   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284     srcdir=$ac_optarg ;;
1285
1286   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287   | --syscon | --sysco | --sysc | --sys | --sy)
1288     ac_prev=sysconfdir ;;
1289   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291     sysconfdir=$ac_optarg ;;
1292
1293   -target | --target | --targe | --targ | --tar | --ta | --t)
1294     ac_prev=target_alias ;;
1295   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296     target_alias=$ac_optarg ;;
1297
1298   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299     verbose=yes ;;
1300
1301   -version | --version | --versio | --versi | --vers | -V)
1302     ac_init_version=: ;;
1303
1304   -with-* | --with-*)
1305     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306     # Reject names that are not valid shell variable names.
1307     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1309    { (exit 1); exit 1; }; }
1310     ac_useropt_orig=$ac_useropt
1311     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312     case $ac_user_opts in
1313       *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317          ac_unrecognized_sep=', ';;
1318     esac
1319     eval with_$ac_useropt=\$ac_optarg ;;
1320
1321   -without-* | --without-*)
1322     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323     # Reject names that are not valid shell variable names.
1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1326    { (exit 1); exit 1; }; }
1327     ac_useropt_orig=$ac_useropt
1328     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329     case $ac_user_opts in
1330       *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334          ac_unrecognized_sep=', ';;
1335     esac
1336     eval with_$ac_useropt=no ;;
1337
1338   --x)
1339     # Obsolete; use --with-x.
1340     with_x=yes ;;
1341
1342   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343   | --x-incl | --x-inc | --x-in | --x-i)
1344     ac_prev=x_includes ;;
1345   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347     x_includes=$ac_optarg ;;
1348
1349   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351     ac_prev=x_libraries ;;
1352   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354     x_libraries=$ac_optarg ;;
1355
1356   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1357 Try \`$0 --help' for more information." >&2
1358    { (exit 1); exit 1; }; }
1359     ;;
1360
1361   *=*)
1362     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363     # Reject names that are not valid shell variable names.
1364     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1365       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1366    { (exit 1); exit 1; }; }
1367     eval $ac_envvar=\$ac_optarg
1368     export $ac_envvar ;;
1369
1370   *)
1371     # FIXME: should be removed in autoconf 3.0.
1372     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376     ;;
1377
1378   esac
1379 done
1380
1381 if test -n "$ac_prev"; then
1382   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1384    { (exit 1); exit 1; }; }
1385 fi
1386
1387 if test -n "$ac_unrecognized_opts"; then
1388   case $enable_option_checking in
1389     no) ;;
1390     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1391    { (exit 1); exit 1; }; } ;;
1392     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393   esac
1394 fi
1395
1396 # Check all directory arguments for consistency.
1397 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398                 datadir sysconfdir sharedstatedir localstatedir includedir \
1399                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400                 libdir localedir mandir
1401 do
1402   eval ac_val=\$$ac_var
1403   # Remove trailing slashes.
1404   case $ac_val in
1405     */ )
1406       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407       eval $ac_var=\$ac_val;;
1408   esac
1409   # Be sure to have absolute directory names.
1410   case $ac_val in
1411     [\\/$]* | ?:[\\/]* )  continue;;
1412     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413   esac
1414   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1415    { (exit 1); exit 1; }; }
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427   if test "x$build_alias" = x; then
1428     cross_compiling=maybe
1429     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430     If a cross compiler is detected then cross compile mode will be used." >&2
1431   elif test "x$build_alias" != "x$host_alias"; then
1432     cross_compiling=yes
1433   fi
1434 fi
1435
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438
1439 test "$silent" = yes && exec 6>/dev/null
1440
1441
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1446    { (exit 1); exit 1; }; }
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1449    { (exit 1); exit 1; }; }
1450
1451
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454   ac_srcdir_defaulted=yes
1455   # Try the directory containing this script, then the parent directory.
1456   ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458          X"$as_myself" : 'X\(//\)[^/]' \| \
1459          X"$as_myself" : 'X\(//\)$' \| \
1460          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\/\)[^/].*/{
1467             s//\1/
1468             q
1469           }
1470           /^X\(\/\/\)$/{
1471             s//\1/
1472             q
1473           }
1474           /^X\(\/\).*/{
1475             s//\1/
1476             q
1477           }
1478           s/.*/./; q'`
1479   srcdir=$ac_confdir
1480   if test ! -r "$srcdir/$ac_unique_file"; then
1481     srcdir=..
1482   fi
1483 else
1484   ac_srcdir_defaulted=no
1485 fi
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1489    { (exit 1); exit 1; }; }
1490 fi
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1494    { (exit 1); exit 1; }; }
1495         pwd)`
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498   srcdir=.
1499 fi
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1503 case $srcdir in
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 esac
1506 for ac_var in $ac_precious_vars; do
1507   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508   eval ac_env_${ac_var}_value=\$${ac_var}
1509   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511 done
1512
1513 #
1514 # Report the --help message.
1515 #
1516 if test "$ac_init_help" = "long"; then
1517   # Omit some internal or obsolete options to make the list less imposing.
1518   # This message is too long to be a string in the A/UX 3.1 sh.
1519   cat <<_ACEOF
1520 \`configure' configures MPFR 2.4.1 to adapt to many kinds of systems.
1521
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1523
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE.  See below for descriptions of some of the useful variables.
1526
1527 Defaults for the options are specified in brackets.
1528
1529 Configuration:
1530   -h, --help              display this help and exit
1531       --help=short        display options specific to this package
1532       --help=recursive    display the short help of all the included packages
1533   -V, --version           display version information and exit
1534   -q, --quiet, --silent   do not print \`checking...' messages
1535       --cache-file=FILE   cache test results in FILE [disabled]
1536   -C, --config-cache      alias for \`--cache-file=config.cache'
1537   -n, --no-create         do not create output files
1538       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1539
1540 Installation directories:
1541   --prefix=PREFIX         install architecture-independent files in PREFIX
1542                           [$ac_default_prefix]
1543   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1544                           [PREFIX]
1545
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1550
1551 For better control, use the options below.
1552
1553 Fine tuning of the installation directories:
1554   --bindir=DIR            user executables [EPREFIX/bin]
1555   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1556   --libexecdir=DIR        program executables [EPREFIX/libexec]
1557   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1558   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1559   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1560   --libdir=DIR            object code libraries [EPREFIX/lib]
1561   --includedir=DIR        C header files [PREFIX/include]
1562   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1563   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1564   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1565   --infodir=DIR           info documentation [DATAROOTDIR/info]
1566   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1567   --mandir=DIR            man documentation [DATAROOTDIR/man]
1568   --docdir=DIR            documentation root [DATAROOTDIR/doc/mpfr]
1569   --htmldir=DIR           html documentation [DOCDIR]
1570   --dvidir=DIR            dvi documentation [DOCDIR]
1571   --pdfdir=DIR            pdf documentation [DOCDIR]
1572   --psdir=DIR             ps documentation [DOCDIR]
1573 _ACEOF
1574
1575   cat <<\_ACEOF
1576
1577 Program names:
1578   --program-prefix=PREFIX            prepend PREFIX to installed program names
1579   --program-suffix=SUFFIX            append SUFFIX to installed program names
1580   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1581
1582 System types:
1583   --build=BUILD     configure for building on BUILD [guessed]
1584   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1585 _ACEOF
1586 fi
1587
1588 if test -n "$ac_init_help"; then
1589   case $ac_init_help in
1590      short | recursive ) echo "Configuration of MPFR 2.4.1:";;
1591    esac
1592   cat <<\_ACEOF
1593
1594 Optional Features:
1595   --disable-option-checking  ignore unrecognized --enable/--with options
1596   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1597   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1598   --disable-maintainer-mode  disable make rules and dependencies not useful
1599                           (and sometimes confusing) to the casual installer
1600   --enable-assert         enable ASSERT checking [default=no]
1601   --enable-logging        enable MPFR logging (the system must support it)
1602                           [default=no]
1603   --enable-thread-safe    build MPFR as thread safe (the system must support
1604                           it) [default=no]
1605   --enable-warnings       allow MPFR to output warnings to stderr [default=no]
1606   --enable-tests-timeout=NUM    enable timeout (NUM seconds) for test programs
1607                           (NUM <= 9999) [default=no]; if enabled, env variable
1608                           $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1609   --disable-dependency-tracking  speeds up one-time build
1610   --enable-dependency-tracking   do not reject slow dependency extractors
1611   --enable-decimal-float  build conversion functions from/to decimal floats
1612                           [default=no]
1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
1614   --enable-static[=PKGS]  build static libraries [default=yes]
1615   --enable-fast-install[=PKGS]
1616                           optimize for fast installation [default=yes]
1617   --disable-libtool-lock  avoid locking (might break parallel builds)
1618
1619 Optional Packages:
1620   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1621   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1622   --with-gmp-include=DIR  GMP include directory
1623   --with-gmp-lib=DIR      GMP lib directory
1624   --with-gmp=DIR          GMP install directory
1625   --with-gmp-build=DIR    GMP build directory (please read INSTALL file)
1626   --with-mulhigh-size=NUM internal threshold table for mulhigh
1627   --with-pic              try to use only PIC/non-PIC objects [default=use
1628                           both]
1629   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1630
1631 Some influential environment variables:
1632   CC          C compiler command
1633   CFLAGS      C compiler flags
1634   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1635               nonstandard directory <lib dir>
1636   LIBS        libraries to pass to the linker, e.g. -l<library>
1637   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1638               you have headers in a nonstandard directory <include dir>
1639   CPP         C preprocessor
1640   CXX         C++ compiler command
1641   CXXFLAGS    C++ compiler flags
1642   F77         Fortran 77 compiler command
1643   FFLAGS      Fortran 77 compiler flags
1644   CXXCPP      C++ preprocessor
1645
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1648
1649 _ACEOF
1650 ac_status=$?
1651 fi
1652
1653 if test "$ac_init_help" = "recursive"; then
1654   # If there are subdirs, report their specific --help.
1655   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656     test -d "$ac_dir" ||
1657       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658       continue
1659     ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665   # A ".." for each directory in $ac_dir_suffix.
1666   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667   case $ac_top_builddir_sub in
1668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670   esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678   .)  # We are building in place.
1679     ac_srcdir=.
1680     ac_top_srcdir=$ac_top_builddir_sub
1681     ac_abs_top_srcdir=$ac_pwd ;;
1682   [\\/]* | ?:[\\/]* )  # Absolute name.
1683     ac_srcdir=$srcdir$ac_dir_suffix;
1684     ac_top_srcdir=$srcdir
1685     ac_abs_top_srcdir=$srcdir ;;
1686   *) # Relative name.
1687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_build_prefix$srcdir
1689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693     cd "$ac_dir" || { ac_status=$?; continue; }
1694     # Check for guested configure.
1695     if test -f "$ac_srcdir/configure.gnu"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698     elif test -f "$ac_srcdir/configure"; then
1699       echo &&
1700       $SHELL "$ac_srcdir/configure" --help=recursive
1701     else
1702       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703     fi || ac_status=$?
1704     cd "$ac_pwd" || { ac_status=$?; break; }
1705   done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710   cat <<\_ACEOF
1711 MPFR configure 2.4.1
1712 generated by GNU Autoconf 2.63
1713
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718
1719
1720 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1721 Contributed by the Arenaire and Cacao projects, INRIA.
1722
1723 This file is part of the GNU MPFR Library.
1724
1725 The GNU MPFR Library is free software; you can redistribute it and/or modify
1726 it under the terms of the GNU Lesser General Public License as published
1727 by the Free Software Foundation; either version 2.1 of the License, or (at
1728 your option) any later version.
1729
1730 The GNU MPFR Library is distributed in the hope that it will be useful, but
1731 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1732 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1733 License for more details.
1734
1735 You should have received a copy of the GNU Lesser General Public License
1736 along with the GNU MPFR Library; see the file COPYING.LIB.  If not, write to
1737 the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
1738 MA 02110-1301, USA.
1739
1740 _ACEOF
1741   exit
1742 fi
1743 cat >config.log <<_ACEOF
1744 This file contains any messages produced by compilers while
1745 running configure, to aid debugging if configure makes a mistake.
1746
1747 It was created by MPFR $as_me 2.4.1, which was
1748 generated by GNU Autoconf 2.63.  Invocation command line was
1749
1750   $ $0 $@
1751
1752 _ACEOF
1753 exec 5>>config.log
1754 {
1755 cat <<_ASUNAME
1756 ## --------- ##
1757 ## Platform. ##
1758 ## --------- ##
1759
1760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765
1766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1768
1769 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1770 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1773 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1774 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1775 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1776
1777 _ASUNAME
1778
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   $as_echo "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1787
1788 } >&5
1789
1790 cat >&5 <<_ACEOF
1791
1792
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1796
1797 _ACEOF
1798
1799
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1810 do
1811   for ac_arg
1812   do
1813     case $ac_arg in
1814     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816     | -silent | --silent | --silen | --sile | --sil)
1817       continue ;;
1818     *\'*)
1819       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820     esac
1821     case $ac_pass in
1822     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1823     2)
1824       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825       if test $ac_must_keep_next = true; then
1826         ac_must_keep_next=false # Got value, back to normal.
1827       else
1828         case $ac_arg in
1829           *=* | --config-cache | -C | -disable-* | --disable-* \
1830           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832           | -with-* | --with-* | -without-* | --without-* | --x)
1833             case "$ac_configure_args0 " in
1834               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835             esac
1836             ;;
1837           -* ) ac_must_keep_next=true ;;
1838         esac
1839       fi
1840       ac_configure_args="$ac_configure_args '$ac_arg'"
1841       ;;
1842     esac
1843   done
1844 done
1845 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1847
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log.  We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854   # Save into config.log some information that might help in debugging.
1855   {
1856     echo
1857
1858     cat <<\_ASBOX
1859 ## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##
1862 _ASBOX
1863     echo
1864     # The following way of writing the cache mishandles newlines in values,
1865 (
1866   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867     eval ac_val=\$$ac_var
1868     case $ac_val in #(
1869     *${as_nl}*)
1870       case $ac_var in #(
1871       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873       esac
1874       case $ac_var in #(
1875       _ | IFS | as_nl) ;; #(
1876       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877       *) $as_unset $ac_var ;;
1878       esac ;;
1879     esac
1880   done
1881   (set) 2>&1 |
1882     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883     *${as_nl}ac_space=\ *)
1884       sed -n \
1885         "s/'\''/'\''\\\\'\'''\''/g;
1886           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887       ;; #(
1888     *)
1889       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890       ;;
1891     esac |
1892     sort
1893 )
1894     echo
1895
1896     cat <<\_ASBOX
1897 ## ----------------- ##
1898 ## Output variables. ##
1899 ## ----------------- ##
1900 _ASBOX
1901     echo
1902     for ac_var in $ac_subst_vars
1903     do
1904       eval ac_val=\$$ac_var
1905       case $ac_val in
1906       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907       esac
1908       $as_echo "$ac_var='\''$ac_val'\''"
1909     done | sort
1910     echo
1911
1912     if test -n "$ac_subst_files"; then
1913       cat <<\_ASBOX
1914 ## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##
1917 _ASBOX
1918       echo
1919       for ac_var in $ac_subst_files
1920       do
1921         eval ac_val=\$$ac_var
1922         case $ac_val in
1923         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924         esac
1925         $as_echo "$ac_var='\''$ac_val'\''"
1926       done | sort
1927       echo
1928     fi
1929
1930     if test -s confdefs.h; then
1931       cat <<\_ASBOX
1932 ## ----------- ##
1933 ## confdefs.h. ##
1934 ## ----------- ##
1935 _ASBOX
1936       echo
1937       cat confdefs.h
1938       echo
1939     fi
1940     test "$ac_signal" != 0 &&
1941       $as_echo "$as_me: caught signal $ac_signal"
1942     $as_echo "$as_me: exit $exit_status"
1943   } >&5
1944   rm -f core *.core core.conftest.* &&
1945     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946     exit $exit_status
1947 ' 0
1948 for ac_signal in 1 2 13 15; do
1949   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1950 done
1951 ac_signal=0
1952
1953 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1954 rm -f -r conftest* confdefs.h
1955
1956 # Predefined preprocessor variables.
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_NAME "$PACKAGE_NAME"
1960 _ACEOF
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1970 _ACEOF
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 _ACEOF
1976
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980 _ACEOF
1981
1982
1983 # Let the site file select an alternate cache file if it wants to.
1984 # Prefer an explicitly selected file to automatically selected ones.
1985 ac_site_file1=NONE
1986 ac_site_file2=NONE
1987 if test -n "$CONFIG_SITE"; then
1988   ac_site_file1=$CONFIG_SITE
1989 elif test "x$prefix" != xNONE; then
1990   ac_site_file1=$prefix/share/config.site
1991   ac_site_file2=$prefix/etc/config.site
1992 else
1993   ac_site_file1=$ac_default_prefix/share/config.site
1994   ac_site_file2=$ac_default_prefix/etc/config.site
1995 fi
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1997 do
1998   test "x$ac_site_file" = xNONE && continue
1999   if test -r "$ac_site_file"; then
2000     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002     sed 's/^/| /' "$ac_site_file" >&5
2003     . "$ac_site_file"
2004   fi
2005 done
2006
2007 if test -r "$cache_file"; then
2008   # Some versions of bash will fail to source /dev/null (special
2009   # files actually), so we avoid doing that.
2010   if test -f "$cache_file"; then
2011     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013     case $cache_file in
2014       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015       *)                      . "./$cache_file";;
2016     esac
2017   fi
2018 else
2019   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2021   >$cache_file
2022 fi
2023
2024 # Check that the precious variables saved in the cache have kept the same
2025 # value.
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029   eval ac_new_set=\$ac_env_${ac_var}_set
2030   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031   eval ac_new_val=\$ac_env_${ac_var}_value
2032   case $ac_old_set,$ac_new_set in
2033     set,)
2034       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036       ac_cache_corrupted=: ;;
2037     ,set)
2038       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040       ac_cache_corrupted=: ;;
2041     ,);;
2042     *)
2043       if test "x$ac_old_val" != "x$ac_new_val"; then
2044         # differences in whitespace do not lead to failure.
2045         ac_old_val_w=`echo x $ac_old_val`
2046         ac_new_val_w=`echo x $ac_new_val`
2047         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050           ac_cache_corrupted=:
2051         else
2052           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054           eval $ac_var=\$ac_old_val
2055         fi
2056         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2057 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2058         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2060       fi;;
2061   esac
2062   # Pass precious variables to config.status.
2063   if test "$ac_new_set" = set; then
2064     case $ac_new_val in
2065     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066     *) ac_arg=$ac_var=$ac_new_val ;;
2067     esac
2068     case " $ac_configure_args " in
2069       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2070       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2071     esac
2072   fi
2073 done
2074 if $ac_cache_corrupted; then
2075   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2080 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2081    { (exit 1); exit 1; }; }
2082 fi
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
2114
2115 am__api_version='1.10'
2116
2117 ac_aux_dir=
2118 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2119   if test -f "$ac_dir/install-sh"; then
2120     ac_aux_dir=$ac_dir
2121     ac_install_sh="$ac_aux_dir/install-sh -c"
2122     break
2123   elif test -f "$ac_dir/install.sh"; then
2124     ac_aux_dir=$ac_dir
2125     ac_install_sh="$ac_aux_dir/install.sh -c"
2126     break
2127   elif test -f "$ac_dir/shtool"; then
2128     ac_aux_dir=$ac_dir
2129     ac_install_sh="$ac_aux_dir/shtool install -c"
2130     break
2131   fi
2132 done
2133 if test -z "$ac_aux_dir"; then
2134   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2135 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2136    { (exit 1); exit 1; }; }
2137 fi
2138
2139 # These three variables are undocumented and unsupported,
2140 # and are intended to be withdrawn in a future Autoconf release.
2141 # They can cause serious problems if a builder's source tree is in a directory
2142 # whose full name contains unusual characters.
2143 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2144 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2145 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2146
2147
2148 # Find a good install program.  We prefer a C program (faster),
2149 # so one script is as good as another.  But avoid the broken or
2150 # incompatible versions:
2151 # SysV /etc/install, /usr/sbin/install
2152 # SunOS /usr/etc/install
2153 # IRIX /sbin/install
2154 # AIX /bin/install
2155 # AmigaOS /C/install, which installs bootblocks on floppy discs
2156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2159 # OS/2's system install, which has a completely different semantic
2160 # ./install, which can be erroneously created by make from ./install.sh.
2161 # Reject install programs that cannot install multiple files.
2162 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2163 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2164 if test -z "$INSTALL"; then
2165 if test "${ac_cv_path_install+set}" = set; then
2166   $as_echo_n "(cached) " >&6
2167 else
2168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171   IFS=$as_save_IFS
2172   test -z "$as_dir" && as_dir=.
2173   # Account for people who put trailing slashes in PATH elements.
2174 case $as_dir/ in
2175   ./ | .// | /cC/* | \
2176   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2177   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2178   /usr/ucb/* ) ;;
2179   *)
2180     # OSF1 and SCO ODT 3.0 have their own names for install.
2181     # Don't use installbsd from OSF since it installs stuff as root
2182     # by default.
2183     for ac_prog in ginstall scoinst install; do
2184       for ac_exec_ext in '' $ac_executable_extensions; do
2185         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2186           if test $ac_prog = install &&
2187             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188             # AIX install.  It has an incompatible calling convention.
2189             :
2190           elif test $ac_prog = install &&
2191             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2192             # program-specific install script used by HP pwplus--don't use.
2193             :
2194           else
2195             rm -rf conftest.one conftest.two conftest.dir
2196             echo one > conftest.one
2197             echo two > conftest.two
2198             mkdir conftest.dir
2199             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2200               test -s conftest.one && test -s conftest.two &&
2201               test -s conftest.dir/conftest.one &&
2202               test -s conftest.dir/conftest.two
2203             then
2204               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2205               break 3
2206             fi
2207           fi
2208         fi
2209       done
2210     done
2211     ;;
2212 esac
2213
2214 done
2215 IFS=$as_save_IFS
2216
2217 rm -rf conftest.one conftest.two conftest.dir
2218
2219 fi
2220   if test "${ac_cv_path_install+set}" = set; then
2221     INSTALL=$ac_cv_path_install
2222   else
2223     # As a last resort, use the slow shell script.  Don't cache a
2224     # value for INSTALL within a source directory, because that will
2225     # break other packages using the cache if that directory is
2226     # removed, or if the value is a relative name.
2227     INSTALL=$ac_install_sh
2228   fi
2229 fi
2230 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2231 $as_echo "$INSTALL" >&6; }
2232
2233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2234 # It thinks the first close brace ends the variable substitution.
2235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2236
2237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2238
2239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2240
2241 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2242 $as_echo_n "checking whether build environment is sane... " >&6; }
2243 # Just in case
2244 sleep 1
2245 echo timestamp > conftest.file
2246 # Do `set' in a subshell so we don't clobber the current shell's
2247 # arguments.  Must try -L first in case configure is actually a
2248 # symlink; some systems play weird games with the mod time of symlinks
2249 # (eg FreeBSD returns the mod time of the symlink's containing
2250 # directory).
2251 if (
2252    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2253    if test "$*" = "X"; then
2254       # -L didn't work.
2255       set X `ls -t $srcdir/configure conftest.file`
2256    fi
2257    rm -f conftest.file
2258    if test "$*" != "X $srcdir/configure conftest.file" \
2259       && test "$*" != "X conftest.file $srcdir/configure"; then
2260
2261       # If neither matched, then we have a broken ls.  This can happen
2262       # if, for instance, CONFIG_SHELL is bash and it inherits a
2263       # broken ls alias from the environment.  This has actually
2264       # happened.  Such a system could not be considered "sane".
2265       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2266 alias in your environment" >&5
2267 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2268 alias in your environment" >&2;}
2269    { (exit 1); exit 1; }; }
2270    fi
2271
2272    test "$2" = conftest.file
2273    )
2274 then
2275    # Ok.
2276    :
2277 else
2278    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2279 Check your system clock" >&5
2280 $as_echo "$as_me: error: newly created file is older than distributed files!
2281 Check your system clock" >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284 { $as_echo "$as_me:$LINENO: result: yes" >&5
2285 $as_echo "yes" >&6; }
2286 test "$program_prefix" != NONE &&
2287   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2288 # Use a double $ so make ignores it.
2289 test "$program_suffix" != NONE &&
2290   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2291 # Double any \ or $.
2292 # By default was `s,x,x', remove it if useless.
2293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2295
2296 # expand $ac_aux_dir to an absolute path
2297 am_aux_dir=`cd $ac_aux_dir && pwd`
2298
2299 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --run true"; then
2302   am_missing_run="$MISSING --run "
2303 else
2304   am_missing_run=
2305   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307 fi
2308
2309 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2311 if test -z "$MKDIR_P"; then
2312   if test "${ac_cv_path_mkdir+set}" = set; then
2313   $as_echo_n "(cached) " >&6
2314 else
2315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_prog in mkdir gmkdir; do
2321          for ac_exec_ext in '' $ac_executable_extensions; do
2322            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2323            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2324              'mkdir (GNU coreutils) '* | \
2325              'mkdir (coreutils) '* | \
2326              'mkdir (fileutils) '4.1*)
2327                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2328                break 3;;
2329            esac
2330          done
2331        done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336
2337   if test "${ac_cv_path_mkdir+set}" = set; then
2338     MKDIR_P="$ac_cv_path_mkdir -p"
2339   else
2340     # As a last resort, use the slow shell script.  Don't cache a
2341     # value for MKDIR_P within a source directory, because that will
2342     # break other packages using the cache if that directory is
2343     # removed, or if the value is a relative name.
2344     test -d ./--version && rmdir ./--version
2345     MKDIR_P="$ac_install_sh -d"
2346   fi
2347 fi
2348 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2349 $as_echo "$MKDIR_P" >&6; }
2350
2351 mkdir_p="$MKDIR_P"
2352 case $mkdir_p in
2353   [\\/$]* | ?:[\\/]*) ;;
2354   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2355 esac
2356
2357 for ac_prog in gawk mawk nawk awk
2358 do
2359   # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if test "${ac_cv_prog_AWK+set}" = set; then
2364   $as_echo_n "(cached) " >&6
2365 else
2366   if test -n "$AWK"; then
2367   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376     ac_cv_prog_AWK="$ac_prog"
2377     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 AWK=$ac_cv_prog_AWK
2387 if test -n "$AWK"; then
2388   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2389 $as_echo "$AWK" >&6; }
2390 else
2391   { $as_echo "$as_me:$LINENO: result: no" >&5
2392 $as_echo "no" >&6; }
2393 fi
2394
2395
2396   test -n "$AWK" && break
2397 done
2398
2399 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2401 set x ${MAKE-make}
2402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2403 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2404   $as_echo_n "(cached) " >&6
2405 else
2406   cat >conftest.make <<\_ACEOF
2407 SHELL = /bin/sh
2408 all:
2409         @echo '@@@%%%=$(MAKE)=@@@%%%'
2410 _ACEOF
2411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2413   *@@@%%%=?*=@@@%%%*)
2414     eval ac_cv_prog_make_${ac_make}_set=yes;;
2415   *)
2416     eval ac_cv_prog_make_${ac_make}_set=no;;
2417 esac
2418 rm -f conftest.make
2419 fi
2420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2421   { $as_echo "$as_me:$LINENO: result: yes" >&5
2422 $as_echo "yes" >&6; }
2423   SET_MAKE=
2424 else
2425   { $as_echo "$as_me:$LINENO: result: no" >&5
2426 $as_echo "no" >&6; }
2427   SET_MAKE="MAKE=${MAKE-make}"
2428 fi
2429
2430 rm -rf .tst 2>/dev/null
2431 mkdir .tst 2>/dev/null
2432 if test -d .tst; then
2433   am__leading_dot=.
2434 else
2435   am__leading_dot=_
2436 fi
2437 rmdir .tst 2>/dev/null
2438
2439 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2440   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2441   # is not polluted with repeated "-I."
2442   am__isrc=' -I$(srcdir)'
2443   # test to see if srcdir already configured
2444   if test -f $srcdir/config.status; then
2445     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2446 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2447    { (exit 1); exit 1; }; }
2448   fi
2449 fi
2450
2451 # test whether we have cygpath
2452 if test -z "$CYGPATH_W"; then
2453   if (cygpath --version) >/dev/null 2>/dev/null; then
2454     CYGPATH_W='cygpath -w'
2455   else
2456     CYGPATH_W=echo
2457   fi
2458 fi
2459
2460
2461 # Define the identity of the package.
2462  PACKAGE='mpfr'
2463  VERSION='2.4.1'
2464
2465
2466 # Some tools Automake needs.
2467
2468 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2469
2470
2471 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2472
2473
2474 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2475
2476
2477 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2478
2479
2480 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2481
2482 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2483
2484 # Installed binaries are usually stripped using `strip' when the user
2485 # run `make install-strip'.  However `strip' might not be the right
2486 # tool to use in cross-compilation environments, therefore Automake
2487 # will honor the `STRIP' environment variable to overrule this program.
2488 if test "$cross_compiling" != no; then
2489   if test -n "$ac_tool_prefix"; then
2490   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}strip; ac_word=$2
2492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if test "${ac_cv_prog_STRIP+set}" = set; then
2495   $as_echo_n "(cached) " >&6
2496 else
2497   if test -n "$STRIP"; then
2498   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2508     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 STRIP=$ac_cv_prog_STRIP
2518 if test -n "$STRIP"; then
2519   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2520 $as_echo "$STRIP" >&6; }
2521 else
2522   { $as_echo "$as_me:$LINENO: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526
2527 fi
2528 if test -z "$ac_cv_prog_STRIP"; then
2529   ac_ct_STRIP=$STRIP
2530   # Extract the first word of "strip", so it can be a program name with args.
2531 set dummy strip; ac_word=$2
2532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2535   $as_echo_n "(cached) " >&6
2536 else
2537   if test -n "$ac_ct_STRIP"; then
2538   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     ac_cv_prog_ac_ct_STRIP="strip"
2548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2558 if test -n "$ac_ct_STRIP"; then
2559   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2560 $as_echo "$ac_ct_STRIP" >&6; }
2561 else
2562   { $as_echo "$as_me:$LINENO: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566   if test "x$ac_ct_STRIP" = x; then
2567     STRIP=":"
2568   else
2569     case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575     STRIP=$ac_ct_STRIP
2576   fi
2577 else
2578   STRIP="$ac_cv_prog_STRIP"
2579 fi
2580
2581 fi
2582 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2583
2584 # We need awk for the "check" target.  The system "awk" is bad on
2585 # some platforms.
2586 # Always define AMTAR for backward compatibility.
2587
2588 AMTAR=${AMTAR-"${am_missing_run}tar"}
2589
2590 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2591
2592
2593
2594
2595
2596
2597 { $as_echo "$as_me:$LINENO: checking whether to disable maintainer-specific portions of Makefiles" >&5
2598 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2599     # Check whether --enable-maintainer-mode was given.
2600 if test "${enable_maintainer_mode+set}" = set; then
2601   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2602 else
2603   USE_MAINTAINER_MODE=yes
2604 fi
2605
2606   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2607 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2608    if test $USE_MAINTAINER_MODE = yes; then
2609   MAINTAINER_MODE_TRUE=
2610   MAINTAINER_MODE_FALSE='#'
2611 else
2612   MAINTAINER_MODE_TRUE='#'
2613   MAINTAINER_MODE_FALSE=
2614 fi
2615
2616   MAINT=$MAINTAINER_MODE_TRUE
2617
2618
2619
2620
2621
2622
2623 test_CFLAGS=${CFLAGS+set}
2624
2625 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2628 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2629    { (exit 1); exit 1; }; }
2630
2631 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2632 $as_echo_n "checking build system type... " >&6; }
2633 if test "${ac_cv_build+set}" = set; then
2634   $as_echo_n "(cached) " >&6
2635 else
2636   ac_build_alias=$build_alias
2637 test "x$ac_build_alias" = x &&
2638   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639 test "x$ac_build_alias" = x &&
2640   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2641 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2642    { (exit 1); exit 1; }; }
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2645 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2646    { (exit 1); exit 1; }; }
2647
2648 fi
2649 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2650 $as_echo "$ac_cv_build" >&6; }
2651 case $ac_cv_build in
2652 *-*-*) ;;
2653 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2654 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2655    { (exit 1); exit 1; }; };;
2656 esac
2657 build=$ac_cv_build
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_build
2660 shift
2661 build_cpu=$1
2662 build_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 build_os=$*
2667 IFS=$ac_save_IFS
2668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2672 $as_echo_n "checking host system type... " >&6; }
2673 if test "${ac_cv_host+set}" = set; then
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test "x$host_alias" = x; then
2677   ac_cv_host=$ac_cv_build
2678 else
2679   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2681 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684
2685 fi
2686 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2687 $as_echo "$ac_cv_host" >&6; }
2688 case $ac_cv_host in
2689 *-*-*) ;;
2690 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2691 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2692    { (exit 1); exit 1; }; };;
2693 esac
2694 host=$ac_cv_host
2695 ac_save_IFS=$IFS; IFS='-'
2696 set x $ac_cv_host
2697 shift
2698 host_cpu=$1
2699 host_vendor=$2
2700 shift; shift
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2703 host_os=$*
2704 IFS=$ac_save_IFS
2705 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2706
2707
2708
2709
2710 unset gmp_lib_path GMP_CFLAGS GMP_CC
2711
2712 # Check whether --with-gmp_include was given.
2713 if test "${with_gmp_include+set}" = set; then
2714   withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
2715 fi
2716
2717
2718 # Check whether --with-gmp_lib was given.
2719 if test "${with_gmp_lib+set}" = set; then
2720   withval=$with_gmp_lib;
2721    LDFLAGS="$LDFLAGS -L$withval"
2722    gmp_lib_path="$withval"
2723
2724 fi
2725
2726
2727 # Check whether --with-gmp was given.
2728 if test "${with_gmp+set}" = set; then
2729   withval=$with_gmp;
2730    if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
2731       CPPFLAGS="$CPPFLAGS -I$withval/include"
2732       LDFLAGS="$LDFLAGS -L$withval/lib"
2733       gmp_lib_path="$withval/lib"
2734    else
2735       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 { { $as_echo "$as_me:$LINENO: error: Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
2738 See \`config.log' for more details." >&5
2739 $as_echo "$as_me: error: Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
2740 See \`config.log' for more details." >&2;}
2741    { (exit 1); exit 1; }; }; }
2742    fi
2743
2744 fi
2745
2746
2747
2748 # Check whether --with-gmp_build was given.
2749 if test "${with_gmp_build+set}" = set; then
2750   withval=$with_gmp_build;
2751    if test -z "$gmp_lib_path" -a -z "$with_gmp_include" ; then
2752       CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
2753       LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune/"
2754       gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
2755       if test -r $withval/Makefile ; then
2756          GMP_CFLAGS=`grep -w "CFLAGS =" $withval/Makefile | sed 's/CFLAGS = //'`
2757          GMP_CC=`grep -w "CC =" $withval/Makefile | sed 's/CC = //'`
2758       fi
2759       use_gmp_build=yes
2760    else
2761       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { { $as_echo "$as_me:$LINENO: error: Do not use --with-gmp-build and other --with-gmp options simultaneously.
2764 See \`config.log' for more details." >&5
2765 $as_echo "$as_me: error: Do not use --with-gmp-build and other --with-gmp options simultaneously.
2766 See \`config.log' for more details." >&2;}
2767    { (exit 1); exit 1; }; }; }
2768    fi
2769
2770 fi
2771
2772
2773
2774 # Check whether --with-mulhigh_size was given.
2775 if test "${with_mulhigh_size+set}" = set; then
2776   withval=$with_mulhigh_size;
2777 cat >>confdefs.h <<_ACEOF
2778 #define MPFR_MULHIGH_SIZE $withval
2779 _ACEOF
2780
2781 fi
2782
2783
2784 # Check whether --enable-assert was given.
2785 if test "${enable_assert+set}" = set; then
2786   enableval=$enable_assert;  case $enableval in
2787       yes)
2788 cat >>confdefs.h <<\_ACEOF
2789 #define WANT_ASSERT 1
2790 _ACEOF
2791  ;;
2792       no)  ;;
2793       full)
2794 cat >>confdefs.h <<\_ACEOF
2795 #define WANT_ASSERT 2
2796 _ACEOF
2797  ;;
2798       *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-assert: yes, no or full" >&5
2799 $as_echo "$as_me: error: bad value for --enable-assert: yes, no or full" >&2;}
2800    { (exit 1); exit 1; }; } ;;
2801      esac
2802 fi
2803
2804 # Check whether --enable-logging was given.
2805 if test "${enable_logging+set}" = set; then
2806   enableval=$enable_logging;  disable_gcc_format_warning=yes
2807      case $enableval in
2808       yes)
2809 cat >>confdefs.h <<\_ACEOF
2810 #define MPFR_USE_LOGGING 1
2811 _ACEOF
2812  ;;
2813       no)  ;;
2814       *)   { { $as_echo "$as_me:$LINENO: error: bad value for --enable-logging: yes or no" >&5
2815 $as_echo "$as_me: error: bad value for --enable-logging: yes or no" >&2;}
2816    { (exit 1); exit 1; }; } ;;
2817      esac
2818 fi
2819
2820 # Check whether --enable-thread-safe was given.
2821 if test "${enable_thread_safe+set}" = set; then
2822   enableval=$enable_thread_safe;  case $enableval in
2823       yes)
2824 cat >>confdefs.h <<\_ACEOF
2825 #define MPFR_USE_THREAD_SAFE 1
2826 _ACEOF
2827  ;;
2828       no)  ;;
2829       *)   { { $as_echo "$as_me:$LINENO: error: bad value for --enable-thread-safe: yes or no" >&5
2830 $as_echo "$as_me: error: bad value for --enable-thread-safe: yes or no" >&2;}
2831    { (exit 1); exit 1; }; } ;;
2832      esac
2833 fi
2834
2835 # Check whether --enable-warnings was given.
2836 if test "${enable_warnings+set}" = set; then
2837   enableval=$enable_warnings;  case $enableval in
2838       yes)
2839 cat >>confdefs.h <<\_ACEOF
2840 #define MPFR_USE_WARNINGS 1
2841 _ACEOF
2842  ;;
2843       no)  ;;
2844       *)   { { $as_echo "$as_me:$LINENO: error: bad value for --enable-warnings: yes or no" >&5
2845 $as_echo "$as_me: error: bad value for --enable-warnings: yes or no" >&2;}
2846    { (exit 1); exit 1; }; } ;;
2847      esac
2848 fi
2849
2850
2851 # Check whether --enable-tests-timeout was given.
2852 if test "${enable_tests_timeout+set}" = set; then
2853   enableval=$enable_tests_timeout;  case $enableval in
2854       no)   ;;
2855       yes)
2856 cat >>confdefs.h <<\_ACEOF
2857 #define MPFR_TESTS_TIMEOUT 0
2858 _ACEOF
2859  ;;
2860       [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
2861
2862 cat >>confdefs.h <<_ACEOF
2863 #define MPFR_TESTS_TIMEOUT $enableval
2864 _ACEOF
2865  ;;
2866       *)    { { $as_echo "$as_me:$LINENO: error: bad value for --enable-tests-timeout" >&5
2867 $as_echo "$as_me: error: bad value for --enable-tests-timeout" >&2;}
2868    { (exit 1); exit 1; }; } ;;
2869      esac
2870 fi
2871
2872
2873
2874
2875 if test -n "$CFLAGS" || test -n "$CC" ; then
2876  user_redefine_cc=yes
2877 fi
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 if test -n "$ac_tool_prefix"; then
2884   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889   $as_echo_n "(cached) " >&6
2890 else
2891   if test -n "$CC"; then
2892   ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899   for ac_exec_ext in '' $ac_executable_extensions; do
2900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2902     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916   { $as_echo "$as_me:$LINENO: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 fi
2922 if test -z "$ac_cv_prog_CC"; then
2923   ac_ct_CC=$CC
2924   # Extract the first word of "gcc", so it can be a program name with args.
2925 set dummy gcc; ac_word=$2
2926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test -n "$ac_ct_CC"; then
2932   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CC="gcc"
2942     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956   { $as_echo "$as_me:$LINENO: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960   if test "x$ac_ct_CC" = x; then
2961     CC=""
2962   else
2963     case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969     CC=$ac_ct_CC
2970   fi
2971 else
2972   CC="$ac_cv_prog_CC"
2973 fi
2974
2975 if test -z "$CC"; then
2976           if test -n "$ac_tool_prefix"; then
2977     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if test "${ac_cv_prog_CC+set}" = set; then
2982   $as_echo_n "(cached) " >&6
2983 else
2984   if test -n "$CC"; then
2985   ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990   IFS=$as_save_IFS
2991   test -z "$as_dir" && as_dir=.
2992   for ac_exec_ext in '' $ac_executable_extensions; do
2993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994     ac_cv_prog_CC="${ac_tool_prefix}cc"
2995     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009   { $as_echo "$as_me:$LINENO: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013
3014   fi
3015 fi
3016 if test -z "$CC"; then
3017   # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022   $as_echo_n "(cached) " >&6
3023 else
3024   if test -n "$CC"; then
3025   ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027   ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033   for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036        ac_prog_rejected=yes
3037        continue
3038      fi
3039     ac_cv_prog_CC="cc"
3040     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 if test $ac_prog_rejected = yes; then
3048   # We found a bogon in the path, so make sure we never use it.
3049   set dummy $ac_cv_prog_CC
3050   shift
3051   if test $# != 0; then
3052     # We chose a different compiler from the bogus one.
3053     # However, it has the same basename, so the bogon will be chosen
3054     # first if we set CC to just the basename; use the full file name.
3055     shift
3056     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057   fi
3058 fi
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3065 else
3066   { $as_echo "$as_me:$LINENO: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071 fi
3072 if test -z "$CC"; then
3073   if test -n "$ac_tool_prefix"; then
3074   for ac_prog in cl.exe
3075   do
3076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if test -n "$CC"; then
3084   ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091   for ac_exec_ext in '' $ac_executable_extensions; do
3092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108   { $as_echo "$as_me:$LINENO: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113     test -n "$CC" && break
3114   done
3115 fi
3116 if test -z "$CC"; then
3117   ac_ct_CC=$CC
3118   for ac_prog in cl.exe
3119 do
3120   # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125   $as_echo_n "(cached) " >&6
3126 else
3127   if test -n "$ac_ct_CC"; then
3128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   for ac_exec_ext in '' $ac_executable_extensions; do
3136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137     ac_cv_prog_ac_ct_CC="$ac_prog"
3138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3151 else
3152   { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157   test -n "$ac_ct_CC" && break
3158 done
3159
3160   if test "x$ac_ct_CC" = x; then
3161     CC=""
3162   else
3163     case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3168 esac
3169     CC=$ac_ct_CC
3170   fi
3171 fi
3172
3173 fi
3174
3175
3176 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details." >&5
3180 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&2;}
3182    { (exit 1); exit 1; }; }; }
3183
3184 # Provide some information about the compiler.
3185 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3186 set X $ac_compile
3187 ac_compiler=$2
3188 { (ac_try="$ac_compiler --version >&5"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194 $as_echo "$ac_try_echo") >&5
3195   (eval "$ac_compiler --version >&5") 2>&5
3196   ac_status=$?
3197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }
3199 { (ac_try="$ac_compiler -v >&5"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206   (eval "$ac_compiler -v >&5") 2>&5
3207   ac_status=$?
3208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }
3210 { (ac_try="$ac_compiler -V >&5"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
3217   (eval "$ac_compiler -V >&5") 2>&5
3218   ac_status=$?
3219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }
3221
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228
3229 int
3230 main ()
3231 {
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3243 $as_echo_n "checking for C compiler default output file name... " >&6; }
3244 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245
3246 # The possible output files:
3247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248
3249 ac_rmfiles=
3250 for ac_file in $ac_files
3251 do
3252   case $ac_file in
3253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255   esac
3256 done
3257 rm -f $ac_rmfiles
3258
3259 if { (ac_try="$ac_link_default"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266   (eval "$ac_link_default") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; then
3270   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3276 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         ;;
3281     [ab].out )
3282         # We found the default executable, but exeext='' is most
3283         # certainly right.
3284         break;;
3285     *.* )
3286         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287         then :; else
3288            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289         fi
3290         # We set ac_cv_exeext here because the later test for it is not
3291         # safe: cross compilers may not add the suffix if given an `-o'
3292         # argument, so we may need to know it at that point already.
3293         # Even if this section looks crufty: it has the advantage of
3294         # actually working.
3295         break;;
3296     * )
3297         break;;
3298   esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302 else
3303   ac_file=''
3304 fi
3305
3306 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3307 $as_echo "$ac_file" >&6; }
3308 if test -z "$ac_file"; then
3309   $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 $as_echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318    { (exit 77); exit 77; }; }; }
3319 fi
3320
3321 ac_exeext=$ac_cv_exeext
3322
3323 # Check that the compiler produces executables we can run.  If not, either
3324 # the compiler is broken, or we cross compile.
3325 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3326 $as_echo_n "checking whether the C compiler works... " >&6; }
3327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3328 # If not cross compiling, check that we can run a simple program.
3329 if test "$cross_compiling" != yes; then
3330   if { ac_try='./$ac_file'
3331   { (case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337   (eval "$ac_try") 2>&5
3338   ac_status=$?
3339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341     cross_compiling=no
3342   else
3343     if test "$cross_compiling" = maybe; then
3344         cross_compiling=yes
3345     else
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 run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&5
3351 $as_echo "$as_me: error: cannot run C compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details." >&2;}
3354    { (exit 1); exit 1; }; }; }
3355     fi
3356   fi
3357 fi
3358 { $as_echo "$as_me:$LINENO: result: yes" >&5
3359 $as_echo "yes" >&6; }
3360
3361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 # Check that the compiler produces executables we can run.  If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3366 $as_echo_n "checking whether we are cross compiling... " >&6; }
3367 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3368 $as_echo "$cross_compiling" >&6; }
3369
3370 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3371 $as_echo_n "checking for suffix of executables... " >&6; }
3372 if { (ac_try="$ac_link"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379   (eval "$ac_link") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; then
3383   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3385 # work properly (i.e., refer to `conftest.exe'), while it won't with
3386 # `rm'.
3387 for ac_file in conftest.exe conftest conftest.*; do
3388   test -f "$ac_file" || continue
3389   case $ac_file in
3390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392           break;;
3393     * ) break;;
3394   esac
3395 done
3396 else
3397   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3400 See \`config.log' for more details." >&5
3401 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3402 See \`config.log' for more details." >&2;}
3403    { (exit 1); exit 1; }; }; }
3404 fi
3405
3406 rm -f conftest$ac_cv_exeext
3407 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3408 $as_echo "$ac_cv_exeext" >&6; }
3409
3410 rm -f conftest.$ac_ext
3411 EXEEXT=$ac_cv_exeext
3412 ac_exeext=$EXEEXT
3413 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3414 $as_echo_n "checking for suffix of object files... " >&6; }
3415 if test "${ac_cv_objext+set}" = set; then
3416   $as_echo_n "(cached) " >&6
3417 else
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.o conftest.obj
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441   (eval "$ac_compile") 2>&5
3442   ac_status=$?
3443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); }; then
3445   for ac_file in conftest.o conftest.obj conftest.*; do
3446   test -f "$ac_file" || continue;
3447   case $ac_file in
3448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3449     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450        break;;
3451   esac
3452 done
3453 else
3454   $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }; }
3464 fi
3465
3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467 fi
3468 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3469 $as_echo "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3471 ac_objext=$OBJEXT
3472 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3475   $as_echo_n "(cached) " >&6
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487 #ifndef __GNUC__
3488        choke me
3489 #endif
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_c_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   ac_compiler_gnu=yes
3514 else
3515   $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518         ac_compiler_gnu=no
3519 fi
3520
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523
3524 fi
3525 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3527 if test $ac_compiler_gnu = yes; then
3528   GCC=yes
3529 else
3530   GCC=
3531 fi
3532 ac_test_CFLAGS=${CFLAGS+set}
3533 ac_save_CFLAGS=$CFLAGS
3534 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3536 if test "${ac_cv_prog_cc_g+set}" = set; then
3537   $as_echo_n "(cached) " >&6
3538 else
3539   ac_save_c_werror_flag=$ac_c_werror_flag
3540    ac_c_werror_flag=yes
3541    ac_cv_prog_cc_g=no
3542    CFLAGS="-g"
3543    cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566   (eval "$ac_compile") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } && {
3573          test -z "$ac_c_werror_flag" ||
3574          test ! -s conftest.err
3575        } && test -s conftest.$ac_objext; then
3576   ac_cv_prog_cc_g=yes
3577 else
3578   $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581         CFLAGS=""
3582       cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (ac_try="$ac_compile"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604 $as_echo "$ac_try_echo") >&5
3605   (eval "$ac_compile") 2>conftest.er1
3606   ac_status=$?
3607   grep -v '^ *+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } && {
3612          test -z "$ac_c_werror_flag" ||
3613          test ! -s conftest.err
3614        } && test -s conftest.$ac_objext; then
3615   :
3616 else
3617   $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620         ac_c_werror_flag=$ac_save_c_werror_flag
3621          CFLAGS="-g"
3622          cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645   (eval "$ac_compile") 2>conftest.er1
3646   ac_status=$?
3647   grep -v '^ *+' conftest.er1 >conftest.err
3648   rm -f conftest.er1
3649   cat conftest.err >&5
3650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } && {
3652          test -z "$ac_c_werror_flag" ||
3653          test ! -s conftest.err
3654        } && test -s conftest.$ac_objext; then
3655   ac_cv_prog_cc_g=yes
3656 else
3657   $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660
3661 fi
3662
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670    ac_c_werror_flag=$ac_save_c_werror_flag
3671 fi
3672 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3673 $as_echo "$ac_cv_prog_cc_g" >&6; }
3674 if test "$ac_test_CFLAGS" = set; then
3675   CFLAGS=$ac_save_CFLAGS
3676 elif test $ac_cv_prog_cc_g = yes; then
3677   if test "$GCC" = yes; then
3678     CFLAGS="-g -O2"
3679   else
3680     CFLAGS="-g"
3681   fi
3682 else
3683   if test "$GCC" = yes; then
3684     CFLAGS="-O2"
3685   else
3686     CFLAGS=
3687   fi
3688 fi
3689 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691 if test "${ac_cv_prog_cc_c89+set}" = set; then
3692   $as_echo_n "(cached) " >&6
3693 else
3694   ac_cv_prog_cc_c89=no
3695 ac_save_CC=$CC
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h.  */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h.  */
3702 #include <stdarg.h>
3703 #include <stdio.h>
3704 #include <sys/types.h>
3705 #include <sys/stat.h>
3706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3707 struct buf { int x; };
3708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3709 static char *e (p, i)
3710      char **p;
3711      int i;
3712 {
3713   return p[i];
3714 }
3715 static char *f (char * (*g) (char **, int), char **p, ...)
3716 {
3717   char *s;
3718   va_list v;
3719   va_start (v,p);
3720   s = g (p, va_arg (v,int));
3721   va_end (v);
3722   return s;
3723 }
3724
3725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3726    function prototypes and stuff, but not '\xHH' hex character constants.
3727    These don't provoke an error unfortunately, instead are silently treated
3728    as 'x'.  The following induces an error, until -std is added to get
3729    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3730    array size at least.  It's necessary to write '\x00'==0 to get something
3731    that's true only with -std.  */
3732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3733
3734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3735    inside strings and character constants.  */
3736 #define FOO(x) 'x'
3737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3738
3739 int test (int i, double x);
3740 struct s1 {int (*f) (int a);};
3741 struct s2 {int (*f) (double a);};
3742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 int argc;
3744 char **argv;
3745 int
3746 main ()
3747 {
3748 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3754         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3755 do
3756   CC="$ac_save_CC $ac_arg"
3757   rm -f conftest.$ac_objext
3758 if { (ac_try="$ac_compile"
3759 case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3764 $as_echo "$ac_try_echo") >&5
3765   (eval "$ac_compile") 2>conftest.er1
3766   ac_status=$?
3767   grep -v '^ *+' conftest.er1 >conftest.err
3768   rm -f conftest.er1
3769   cat conftest.err >&5
3770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); } && {
3772          test -z "$ac_c_werror_flag" ||
3773          test ! -s conftest.err
3774        } && test -s conftest.$ac_objext; then
3775   ac_cv_prog_cc_c89=$ac_arg
3776 else
3777   $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780
3781 fi
3782
3783 rm -f core conftest.err conftest.$ac_objext
3784   test "x$ac_cv_prog_cc_c89" != "xno" && break
3785 done
3786 rm -f conftest.$ac_ext
3787 CC=$ac_save_CC
3788
3789 fi
3790 # AC_CACHE_VAL
3791 case "x$ac_cv_prog_cc_c89" in
3792   x)
3793     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3794 $as_echo "none needed" >&6; } ;;
3795   xno)
3796     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3797 $as_echo "unsupported" >&6; } ;;
3798   *)
3799     CC="$CC $ac_cv_prog_cc_c89"
3800     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3802 esac
3803
3804
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 DEPDIR="${am__leading_dot}deps"
3811
3812 ac_config_commands="$ac_config_commands depfiles"
3813
3814
3815 am_make=${MAKE-make}
3816 cat > confinc << 'END'
3817 am__doit:
3818         @echo done
3819 .PHONY: am__doit
3820 END
3821 # If we don't find an include directive, just comment out the code.
3822 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3823 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3824 am__include="#"
3825 am__quote=
3826 _am_result=none
3827 # First try GNU make style include.
3828 echo "include confinc" > confmf
3829 # We grep out `Entering directory' and `Leaving directory'
3830 # messages which can occur if `w' ends up in MAKEFLAGS.
3831 # In particular we don't look at `^make:' because GNU make might
3832 # be invoked under some other name (usually "gmake"), in which
3833 # case it prints its new name instead of `make'.
3834 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3835    am__include=include
3836    am__quote=
3837    _am_result=GNU
3838 fi
3839 # Now try BSD make style include.
3840 if test "$am__include" = "#"; then
3841    echo '.include "confinc"' > confmf
3842    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3843       am__include=.include
3844       am__quote="\""
3845       _am_result=BSD
3846    fi
3847 fi
3848
3849
3850 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3851 $as_echo "$_am_result" >&6; }
3852 rm -f confinc confmf
3853
3854 # Check whether --enable-dependency-tracking was given.
3855 if test "${enable_dependency_tracking+set}" = set; then
3856   enableval=$enable_dependency_tracking;
3857 fi
3858
3859 if test "x$enable_dependency_tracking" != xno; then
3860   am_depcomp="$ac_aux_dir/depcomp"
3861   AMDEPBACKSLASH='\'
3862 fi
3863  if test "x$enable_dependency_tracking" != xno; then
3864   AMDEP_TRUE=
3865   AMDEP_FALSE='#'
3866 else
3867   AMDEP_TRUE='#'
3868   AMDEP_FALSE=
3869 fi
3870
3871
3872
3873 depcc="$CC"   am_compiler_list=
3874
3875 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3876 $as_echo_n "checking dependency style of $depcc... " >&6; }
3877 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3878   $as_echo_n "(cached) " >&6
3879 else
3880   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3881   # We make a subdir and do the tests there.  Otherwise we can end up
3882   # making bogus files that we don't know about and never remove.  For
3883   # instance it was reported that on HP-UX the gcc test will end up
3884   # making a dummy file named `D' -- because `-MD' means `put the output
3885   # in D'.
3886   mkdir conftest.dir
3887   # Copy depcomp to subdir because otherwise we won't find it if we're
3888   # using a relative directory.
3889   cp "$am_depcomp" conftest.dir
3890   cd conftest.dir
3891   # We will build objects and dependencies in a subdirectory because
3892   # it helps to detect inapplicable dependency modes.  For instance
3893   # both Tru64's cc and ICC support -MD to output dependencies as a
3894   # side effect of compilation, but ICC will put the dependencies in
3895   # the current directory while Tru64 will put them in the object
3896   # directory.
3897   mkdir sub
3898
3899   am_cv_CC_dependencies_compiler_type=none
3900   if test "$am_compiler_list" = ""; then
3901      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3902   fi
3903   for depmode in $am_compiler_list; do
3904     # Setup a source with many dependencies, because some compilers
3905     # like to wrap large dependency lists on column 80 (with \), and
3906     # we should not choose a depcomp mode which is confused by this.
3907     #
3908     # We need to recreate these files for each test, as the compiler may
3909     # overwrite some of them when testing with obscure command lines.
3910     # This happens at least with the AIX C compiler.
3911     : > sub/conftest.c
3912     for i in 1 2 3 4 5 6; do
3913       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3914       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3915       # Solaris 8's {/usr,}/bin/sh.
3916       touch sub/conftst$i.h
3917     done
3918     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3919
3920     case $depmode in
3921     nosideeffect)
3922       # after this tag, mechanisms are not by side-effect, so they'll
3923       # only be used when explicitly requested
3924       if test "x$enable_dependency_tracking" = xyes; then
3925         continue
3926       else
3927         break
3928       fi
3929       ;;
3930     none) break ;;
3931     esac
3932     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3933     # mode.  It turns out that the SunPro C++ compiler does not properly
3934     # handle `-M -o', and we need to detect this.
3935     if depmode=$depmode \
3936        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3937        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3939          >/dev/null 2>conftest.err &&
3940        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3941        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944       # icc doesn't choke on unknown options, it will just issue warnings
3945       # or remarks (even with -Werror).  So we grep stderr for any message
3946       # that says an option was ignored or not supported.
3947       # When given -MP, icc 7.0 and 7.1 complain thusly:
3948       #   icc: Command line warning: ignoring option '-M'; no argument required
3949       # The diagnosis changed in icc 8.0:
3950       #   icc: Command line remark: option '-MP' not supported
3951       if (grep 'ignoring option' conftest.err ||
3952           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953         am_cv_CC_dependencies_compiler_type=$depmode
3954         break
3955       fi
3956     fi
3957   done
3958
3959   cd ..
3960   rm -rf conftest.dir
3961 else
3962   am_cv_CC_dependencies_compiler_type=none
3963 fi
3964
3965 fi
3966 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3969
3970  if
3971   test "x$enable_dependency_tracking" != xno \
3972   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3973   am__fastdepCC_TRUE=
3974   am__fastdepCC_FALSE='#'
3975 else
3976   am__fastdepCC_TRUE='#'
3977   am__fastdepCC_FALSE=
3978 fi
3979
3980
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3987 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3988 # On Suns, sometimes $CPP names a directory.
3989 if test -n "$CPP" && test -d "$CPP"; then
3990   CPP=
3991 fi
3992 if test -z "$CPP"; then
3993   if test "${ac_cv_prog_CPP+set}" = set; then
3994   $as_echo_n "(cached) " >&6
3995 else
3996       # Double quotes because CPP needs to be expanded
3997     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3998     do
3999       ac_preproc_ok=false
4000 for ac_c_preproc_warn_flag in '' yes
4001 do
4002   # Use a header file that comes with gcc, so configuring glibc
4003   # with a fresh cross-compiler works.
4004   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005   # <limits.h> exists even on freestanding compilers.
4006   # On the NeXT, cc -E runs the code through the compiler's parser,
4007   # not just through cpp. "Syntax error" is here to catch this case.
4008   cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014 #ifdef __STDC__
4015 # include <limits.h>
4016 #else
4017 # include <assert.h>
4018 #endif
4019                      Syntax error
4020 _ACEOF
4021 if { (ac_try="$ac_cpp conftest.$ac_ext"
4022 case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4027 $as_echo "$ac_try_echo") >&5
4028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4029   ac_status=$?
4030   grep -v '^ *+' conftest.er1 >conftest.err
4031   rm -f conftest.er1
4032   cat conftest.err >&5
4033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } >/dev/null && {
4035          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4036          test ! -s conftest.err
4037        }; then
4038   :
4039 else
4040   $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043   # Broken: fails on valid input.
4044 continue
4045 fi
4046
4047 rm -f conftest.err conftest.$ac_ext
4048
4049   # OK, works on sane cases.  Now check whether nonexistent headers
4050   # can be detected and how.
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #include <ac_nonexistent.h>
4058 _ACEOF
4059 if { (ac_try="$ac_cpp conftest.$ac_ext"
4060 case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4065 $as_echo "$ac_try_echo") >&5
4066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } >/dev/null && {
4073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4074          test ! -s conftest.err
4075        }; then
4076   # Broken: success on invalid input.
4077 continue
4078 else
4079   $as_echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082   # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4085 fi
4086
4087 rm -f conftest.err conftest.$ac_ext
4088
4089 done
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then
4093   break
4094 fi
4095
4096     done
4097     ac_cv_prog_CPP=$CPP
4098
4099 fi
4100   CPP=$ac_cv_prog_CPP
4101 else
4102   ac_cv_prog_CPP=$CPP
4103 fi
4104 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4105 $as_echo "$CPP" >&6; }
4106 ac_preproc_ok=false
4107 for ac_c_preproc_warn_flag in '' yes
4108 do
4109   # Use a header file that comes with gcc, so configuring glibc
4110   # with a fresh cross-compiler works.
4111   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112   # <limits.h> exists even on freestanding compilers.
4113   # On the NeXT, cc -E runs the code through the compiler's parser,
4114   # not just through cpp. "Syntax error" is here to catch this case.
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4126                      Syntax error
4127 _ACEOF
4128 if { (ac_try="$ac_cpp conftest.$ac_ext"
4129 case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4134 $as_echo "$ac_try_echo") >&5
4135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } >/dev/null && {
4142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143          test ! -s conftest.err
4144        }; then
4145   :
4146 else
4147   $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150   # Broken: fails on valid input.
4151 continue
4152 fi
4153
4154 rm -f conftest.err conftest.$ac_ext
4155
4156   # OK, works on sane cases.  Now check whether nonexistent headers
4157   # can be detected and how.
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <ac_nonexistent.h>
4165 _ACEOF
4166 if { (ac_try="$ac_cpp conftest.$ac_ext"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4172 $as_echo "$ac_try_echo") >&5
4173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } >/dev/null && {
4180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4181          test ! -s conftest.err
4182        }; then
4183   # Broken: success on invalid input.
4184 continue
4185 else
4186   $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189   # Passes both tests.
4190 ac_preproc_ok=:
4191 break
4192 fi
4193
4194 rm -f conftest.err conftest.$ac_ext
4195
4196 done
4197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4198 rm -f conftest.err conftest.$ac_ext
4199 if $ac_preproc_ok; then
4200   :
4201 else
4202   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4205 See \`config.log' for more details." >&5
4206 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4207 See \`config.log' for more details." >&2;}
4208    { (exit 1); exit 1; }; }; }
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4219 if test "${ac_cv_path_GREP+set}" = set; then
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -z "$GREP"; then
4223   ac_path_GREP_found=false
4224   # Loop through the user's path and test for each of PROGNAME-LIST
4225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230   for ac_prog in grep ggrep; do
4231     for ac_exec_ext in '' $ac_executable_extensions; do
4232       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4233       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4234 # Check for GNU ac_path_GREP and select it if it is found.
4235   # Check for GNU $ac_path_GREP
4236 case `"$ac_path_GREP" --version 2>&1` in
4237 *GNU*)
4238   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4239 *)
4240   ac_count=0
4241   $as_echo_n 0123456789 >"conftest.in"
4242   while :
4243   do
4244     cat "conftest.in" "conftest.in" >"conftest.tmp"
4245     mv "conftest.tmp" "conftest.in"
4246     cp "conftest.in" "conftest.nl"
4247     $as_echo 'GREP' >> "conftest.nl"
4248     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250     ac_count=`expr $ac_count + 1`
4251     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4252       # Best one so far, save it but keep looking for a better one
4253       ac_cv_path_GREP="$ac_path_GREP"
4254       ac_path_GREP_max=$ac_count
4255     fi
4256     # 10*(2^10) chars as input seems more than enough
4257     test $ac_count -gt 10 && break
4258   done
4259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4261
4262       $ac_path_GREP_found && break 3
4263     done
4264   done
4265 done
4266 IFS=$as_save_IFS
4267   if test -z "$ac_cv_path_GREP"; then
4268     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4269 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4270    { (exit 1); exit 1; }; }
4271   fi
4272 else
4273   ac_cv_path_GREP=$GREP
4274 fi
4275
4276 fi
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4278 $as_echo "$ac_cv_path_GREP" >&6; }
4279  GREP="$ac_cv_path_GREP"
4280
4281
4282 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4283 $as_echo_n "checking for egrep... " >&6; }
4284 if test "${ac_cv_path_EGREP+set}" = set; then
4285   $as_echo_n "(cached) " >&6
4286 else
4287   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4288    then ac_cv_path_EGREP="$GREP -E"
4289    else
4290      if test -z "$EGREP"; then
4291   ac_path_EGREP_found=false
4292   # Loop through the user's path and test for each of PROGNAME-LIST
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_prog in egrep; do
4299     for ac_exec_ext in '' $ac_executable_extensions; do
4300       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4301       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4302 # Check for GNU ac_path_EGREP and select it if it is found.
4303   # Check for GNU $ac_path_EGREP
4304 case `"$ac_path_EGREP" --version 2>&1` in
4305 *GNU*)
4306   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4307 *)
4308   ac_count=0
4309   $as_echo_n 0123456789 >"conftest.in"
4310   while :
4311   do
4312     cat "conftest.in" "conftest.in" >"conftest.tmp"
4313     mv "conftest.tmp" "conftest.in"
4314     cp "conftest.in" "conftest.nl"
4315     $as_echo 'EGREP' >> "conftest.nl"
4316     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318     ac_count=`expr $ac_count + 1`
4319     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4320       # Best one so far, save it but keep looking for a better one
4321       ac_cv_path_EGREP="$ac_path_EGREP"
4322       ac_path_EGREP_max=$ac_count
4323     fi
4324     # 10*(2^10) chars as input seems more than enough
4325     test $ac_count -gt 10 && break
4326   done
4327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4329
4330       $ac_path_EGREP_found && break 3
4331     done
4332   done
4333 done
4334 IFS=$as_save_IFS
4335   if test -z "$ac_cv_path_EGREP"; then
4336     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4337 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338    { (exit 1); exit 1; }; }
4339   fi
4340 else
4341   ac_cv_path_EGREP=$EGREP
4342 fi
4343
4344    fi
4345 fi
4346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4347 $as_echo "$ac_cv_path_EGREP" >&6; }
4348  EGREP="$ac_cv_path_EGREP"
4349
4350
4351 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4353 if test "${ac_cv_path_SED+set}" = set; then
4354   $as_echo_n "(cached) " >&6
4355 else
4356             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4357      for ac_i in 1 2 3 4 5 6 7; do
4358        ac_script="$ac_script$as_nl$ac_script"
4359      done
4360      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4361      $as_unset ac_script || ac_script=
4362      if test -z "$SED"; then
4363   ac_path_SED_found=false
4364   # Loop through the user's path and test for each of PROGNAME-LIST
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_prog in sed gsed; do
4371     for ac_exec_ext in '' $ac_executable_extensions; do
4372       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4373       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4374 # Check for GNU ac_path_SED and select it if it is found.
4375   # Check for GNU $ac_path_SED
4376 case `"$ac_path_SED" --version 2>&1` in
4377 *GNU*)
4378   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4379 *)
4380   ac_count=0
4381   $as_echo_n 0123456789 >"conftest.in"
4382   while :
4383   do
4384     cat "conftest.in" "conftest.in" >"conftest.tmp"
4385     mv "conftest.tmp" "conftest.in"
4386     cp "conftest.in" "conftest.nl"
4387     $as_echo '' >> "conftest.nl"
4388     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390     ac_count=`expr $ac_count + 1`
4391     if test $ac_count -gt ${ac_path_SED_max-0}; then
4392       # Best one so far, save it but keep looking for a better one
4393       ac_cv_path_SED="$ac_path_SED"
4394       ac_path_SED_max=$ac_count
4395     fi
4396     # 10*(2^10) chars as input seems more than enough
4397     test $ac_count -gt 10 && break
4398   done
4399   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4401
4402       $ac_path_SED_found && break 3
4403     done
4404   done
4405 done
4406 IFS=$as_save_IFS
4407   if test -z "$ac_cv_path_SED"; then
4408     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4409 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4410    { (exit 1); exit 1; }; }
4411   fi
4412 else
4413   ac_cv_path_SED=$SED
4414 fi
4415
4416 fi
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4418 $as_echo "$ac_cv_path_SED" >&6; }
4419  SED="$ac_cv_path_SED"
4420   rm -f conftest.sed
4421
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428
4429 if test -z "$GMP_CFLAGS" -a -z "$user_redefine_cc" ; then
4430    { $as_echo "$as_me:$LINENO: checking for CC and CFLAGS in gmp.h" >&5
4431 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
4432    # FIXME: Move this in aclocal ?
4433    # Get CC
4434    echo "#include \"gmp.h\"" >  conftest.c
4435    echo "MPFR_OPTION __GMP_CC"           >> conftest.c
4436    GMP_CC="`$CPP $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g' | $SED -e 's/"//g'`"
4437    #Get CFLAGS
4438    echo "#include \"gmp.h\"" >  conftest.c
4439    echo "MPFR_OPTION __GMP_CFLAGS"           >> conftest.c
4440    GMP_CFLAGS="`$CPP $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g'| $SED -e 's/"//g'`"
4441    rm -f conftest*
4442    if test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC" ; then
4443       { $as_echo "$as_me:$LINENO: result: no" >&5
4444 $as_echo "no" >&6; }
4445       GMP_CFLAGS=
4446       GMP_CC=
4447    else
4448       { $as_echo "$as_me:$LINENO: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4449 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4450    fi
4451 fi
4452
4453 if test -n "$GMP_CFLAGS" && test -z "$user_redefine_cc" ; then
4454  old_cflags=$CFLAGS
4455  old_cc=$CC
4456  CFLAGS=$GMP_CFLAGS
4457  CC=$GMP_CC
4458  { $as_echo "$as_me:$LINENO: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4459 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4460
4461 if test "$cross_compiling" = yes; then
4462
4463     { $as_echo "$as_me:$LINENO: result: can't test" >&5
4464 $as_echo "can't test" >&6; }
4465     CFLAGS=$old_cflags
4466     CC=$old_cc
4467
4468 else
4469   cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h.  */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h.  */
4475 /*hello*/
4476 int
4477 main ()
4478 {
4479 /*world*/
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest$ac_exeext
4485 if { (ac_try="$ac_link"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4491 $as_echo "$ac_try_echo") >&5
4492   (eval "$ac_link") 2>&5
4493   ac_status=$?
4494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4496   { (case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4501 $as_echo "$ac_try_echo") >&5
4502   (eval "$ac_try") 2>&5
4503   ac_status=$?
4504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506
4507     { $as_echo "$as_me:$LINENO: result: yes" >&5
4508 $as_echo "yes" >&6; }
4509
4510 else
4511   $as_echo "$as_me: program exited with status $ac_status" >&5
4512 $as_echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ( exit $ac_status )
4516
4517     { $as_echo "$as_me:$LINENO: result: no" >&5
4518 $as_echo "no" >&6; }
4519     CFLAGS=$old_cflags
4520     CC=$old_cc
4521
4522 fi
4523 rm -rf conftest.dSYM
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4525 fi
4526
4527
4528     GCC=
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535
4536 #ifndef __GNUC__
4537 # error "GCC Not Found"
4538 error
4539 #endif
4540
4541 int
4542 main ()
4543 {
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557   (eval "$ac_compile") 2>conftest.er1
4558   ac_status=$?
4559   grep -v '^ *+' conftest.er1 >conftest.err
4560   rm -f conftest.er1
4561   cat conftest.err >&5
4562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } && {
4564          test -z "$ac_c_werror_flag" ||
4565          test ! -s conftest.err
4566        } && test -s conftest.$ac_objext; then
4567
4568   GCC=yes
4569
4570 else
4571   $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574
4575 fi
4576
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579
4580 # Check whether --enable-decimal-float was given.
4581 if test "${enable_decimal_float+set}" = set; then
4582   enableval=$enable_decimal_float;  case $enableval in
4583       yes)
4584 cat >>confdefs.h <<\_ACEOF
4585 #define MPFR_WANT_DECIMAL_FLOATS 1
4586 _ACEOF
4587
4588            { $as_echo "$as_me:$LINENO: checking if compiler knows _Decimal64" >&5
4589 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4590            cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 _Decimal64 x;
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613   (eval "$ac_compile") 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } && {
4620          test -z "$ac_c_werror_flag" ||
4621          test ! -s conftest.err
4622        } && test -s conftest.$ac_objext; then
4623   { $as_echo "$as_me:$LINENO: result: yes" >&5
4624 $as_echo "yes" >&6; }
4625                if test "$use_gmp_build" != yes ; then
4626                   { { $as_echo "$as_me:$LINENO: error: decimal float support requires --with-gmp-build" >&5
4627 $as_echo "$as_me: error: decimal float support requires --with-gmp-build" >&2;}
4628    { (exit 1); exit 1; }; }
4629                fi
4630                { $as_echo "$as_me:$LINENO: checking if _GMP_IEEE_FLOATS is defined" >&5
4631 $as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4632                cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638
4639 #include "gmp.h"
4640 #include "gmp-impl.h"
4641 #ifndef _GMP_IEEE_FLOATS
4642 #error "_GMP_IEEE_FLOATS is not defined"
4643 #endif
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (ac_try="$ac_compile"
4647 case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653   (eval "$ac_compile") 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } && {
4660          test -z "$ac_c_werror_flag" ||
4661          test ! -s conftest.err
4662        } && test -s conftest.$ac_objext; then
4663   { $as_echo "$as_me:$LINENO: result: yes" >&5
4664 $as_echo "yes" >&6; }
4665 else
4666   $as_echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669         { $as_echo "$as_me:$LINENO: result: no" >&5
4670 $as_echo "no" >&6; }
4671                   { { $as_echo "$as_me:$LINENO: error: decimal float support requires _GMP_IEEE_FLOATS" >&5
4672 $as_echo "$as_me: error: decimal float support requires _GMP_IEEE_FLOATS" >&2;}
4673    { (exit 1); exit 1; }; }
4674 fi
4675
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677
4678 else
4679   $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682         { { $as_echo "$as_me:$LINENO: error: Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4683            " >&5
4684 $as_echo "$as_me: error: Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4685            " >&2;}
4686    { (exit 1); exit 1; }; }
4687 fi
4688
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690            { $as_echo "$as_me:$LINENO: checking decimal float format" >&5
4691 $as_echo_n "checking decimal float format... " >&6; }
4692            if test "$cross_compiling" = yes; then
4693   { $as_echo "$as_me:$LINENO: result: assuming DPD" >&5
4694 $as_echo "assuming DPD" >&6; }
4695        cat >>confdefs.h <<\_ACEOF
4696 #define DPD_FORMAT 1
4697 _ACEOF
4698
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706
4707 #include <stdlib.h>
4708
4709 int
4710 main ()
4711 {
4712
4713 union { double d; _Decimal64 d64; } y;
4714 y.d64 = 1234567890123456.0dd;
4715 return y.d == 0.14894469406741037E-123 ? 0 :
4716        y.d == 0.59075095508629822E-68  ? 1 : 2;
4717
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest$ac_exeext
4723 if { (ac_try="$ac_link"
4724 case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730   (eval "$ac_link") 2>&5
4731   ac_status=$?
4732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4734   { (case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   { $as_echo "$as_me:$LINENO: result: DPD" >&5
4745 $as_echo "DPD" >&6; }
4746        cat >>confdefs.h <<\_ACEOF
4747 #define DPD_FORMAT 1
4748 _ACEOF
4749
4750 else
4751   $as_echo "$as_me: program exited with status $ac_status" >&5
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755 ( exit $ac_status )
4756 if test "$?" != 1 ; then
4757           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4759 { { $as_echo "$as_me:$LINENO: error: neither DPD nor BID
4760 See \`config.log' for more details." >&5
4761 $as_echo "$as_me: error: neither DPD nor BID
4762 See \`config.log' for more details." >&2;}
4763    { (exit 1); exit 1; }; }; }
4764        fi
4765        { $as_echo "$as_me:$LINENO: result: BID" >&5
4766 $as_echo "BID" >&6; }
4767 fi
4768 rm -rf conftest.dSYM
4769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4770 fi
4771
4772
4773            ;;
4774       no)  ;;
4775       *)   { { $as_echo "$as_me:$LINENO: error: bad value for --enable-decimal-float: yes or no" >&5
4776 $as_echo "$as_me: error: bad value for --enable-decimal-float: yes or no" >&2;}
4777    { (exit 1); exit 1; }; } ;;
4778      esac
4779 fi
4780
4781
4782 { $as_echo "$as_me:$LINENO: checking for ICC" >&5
4783 $as_echo_n "checking for ICC... " >&6; }
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790
4791 #if !defined(__ICC)
4792 # error "ICC Not Found"
4793 error
4794 #endif
4795
4796 int
4797 main ()
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4806 case "(($ac_try" in
4807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808   *) ac_try_echo=$ac_try;;
4809 esac
4810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4811 $as_echo "$ac_try_echo") >&5
4812   (eval "$ac_compile") 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } && {
4819          test -z "$ac_c_werror_flag" ||
4820          test ! -s conftest.err
4821        } && test -s conftest.$ac_objext; then
4822
4823  { $as_echo "$as_me:$LINENO: result: yes" >&5
4824 $as_echo "yes" >&6; }
4825  CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
4826
4827 else
4828   $as_echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4830
4831         { $as_echo "$as_me:$LINENO: result: no" >&5
4832 $as_echo "no" >&6; }
4833 fi
4834
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836
4837 if test "$test_CFLAGS" != set && test -n "$GCC"; then
4838   CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
4839   if test -n "$disable_gcc_format_warning" ; then
4840    CFLAGS="$CFLAGS -Wno-format"
4841   fi
4842 fi
4843
4844 if test "x$CC" != xcc; then
4845   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4846 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4847 else
4848   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4849 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4850 fi
4851 set dummy $CC; ac_cc=`$as_echo "$2" |
4852                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4853 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4854   $as_echo_n "(cached) " >&6
4855 else
4856   cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862
4863 int
4864 main ()
4865 {
4866
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 # Make sure it works both with $CC and with simple cc.
4872 # We do the test twice because some compilers refuse to overwrite an
4873 # existing .o file with -o, though they will create one.
4874 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4875 rm -f conftest2.*
4876 if { (case "(($ac_try" in
4877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878   *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4881 $as_echo "$ac_try_echo") >&5
4882   (eval "$ac_try") 2>&5
4883   ac_status=$?
4884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } &&
4886    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888   *) ac_try_echo=$ac_try;;
4889 esac
4890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4891 $as_echo "$ac_try_echo") >&5
4892   (eval "$ac_try") 2>&5
4893   ac_status=$?
4894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); };
4896 then
4897   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4898   if test "x$CC" != xcc; then
4899     # Test first that cc exists at all.
4900     if { ac_try='cc -c conftest.$ac_ext >&5'
4901   { (case "(($ac_try" in
4902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903   *) ac_try_echo=$ac_try;;
4904 esac
4905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906 $as_echo "$ac_try_echo") >&5
4907   (eval "$ac_try") 2>&5
4908   ac_status=$?
4909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; }; then
4911       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4912       rm -f conftest2.*
4913       if { (case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4918 $as_echo "$ac_try_echo") >&5
4919   (eval "$ac_try") 2>&5
4920   ac_status=$?
4921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); } &&
4923          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925   *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929   (eval "$ac_try") 2>&5
4930   ac_status=$?
4931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); };
4933       then
4934         # cc works too.
4935         :
4936       else
4937         # cc exists but doesn't like -o.
4938         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4939       fi
4940     fi
4941   fi
4942 else
4943   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4944 fi
4945 rm -f core conftest*
4946
4947 fi
4948 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4949   { $as_echo "$as_me:$LINENO: result: yes" >&5
4950 $as_echo "yes" >&6; }
4951 else
4952   { $as_echo "$as_me:$LINENO: result: no" >&5
4953 $as_echo "no" >&6; }
4954
4955 cat >>confdefs.h <<\_ACEOF
4956 #define NO_MINUS_C_MINUS_O 1
4957 _ACEOF
4958
4959 fi
4960
4961 # FIXME: we rely on the cache variable name because
4962 # there is no other way.
4963 set dummy $CC
4964 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4965 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4966    # Losing compiler, so override with the script.
4967    # FIXME: It is wrong to rewrite CC.
4968    # But if we don't then we get into trouble of one sort or another.
4969    # A longer-term fix would be to have automake use am__CC in this case,
4970    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4971    CC="$am_aux_dir/compile $CC"
4972 fi
4973
4974
4975 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
4976 $as_echo_n "checking for function prototypes... " >&6; }
4977 if test "$ac_cv_prog_cc_c89" != no; then
4978   { $as_echo "$as_me:$LINENO: result: yes" >&5
4979 $as_echo "yes" >&6; }
4980
4981 cat >>confdefs.h <<\_ACEOF
4982 #define PROTOTYPES 1
4983 _ACEOF
4984
4985
4986 cat >>confdefs.h <<\_ACEOF
4987 #define __PROTOTYPES 1
4988 _ACEOF
4989
4990 else
4991   { $as_echo "$as_me:$LINENO: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4997 $as_echo_n "checking for ANSI C header files... " >&6; }
4998 if test "${ac_cv_header_stdc+set}" = set; then
4999   $as_echo_n "(cached) " >&6
5000 else
5001   cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <stdlib.h>
5008 #include <stdarg.h>
5009 #include <string.h>
5010 #include <float.h>
5011
5012 int
5013 main ()
5014 {
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5022 case "(($ac_try" in
5023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024   *) ac_try_echo=$ac_try;;
5025 esac
5026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027 $as_echo "$ac_try_echo") >&5
5028   (eval "$ac_compile") 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } && {
5035          test -z "$ac_c_werror_flag" ||
5036          test ! -s conftest.err
5037        } && test -s conftest.$ac_objext; then
5038   ac_cv_header_stdc=yes
5039 else
5040   $as_echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043         ac_cv_header_stdc=no
5044 fi
5045
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047
5048 if test $ac_cv_header_stdc = yes; then
5049   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056 #include <string.h>
5057
5058 _ACEOF
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060   $EGREP "memchr" >/dev/null 2>&1; then
5061   :
5062 else
5063   ac_cv_header_stdc=no
5064 fi
5065 rm -f conftest*
5066
5067 fi
5068
5069 if test $ac_cv_header_stdc = yes; then
5070   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5071   cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 #include <stdlib.h>
5078
5079 _ACEOF
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081   $EGREP "free" >/dev/null 2>&1; then
5082   :
5083 else
5084   ac_cv_header_stdc=no
5085 fi
5086 rm -f conftest*
5087
5088 fi
5089
5090 if test $ac_cv_header_stdc = yes; then
5091   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5092   if test "$cross_compiling" = yes; then
5093   :
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 #include <ctype.h>
5102 #include <stdlib.h>
5103 #if ((' ' & 0x0FF) == 0x020)
5104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106 #else
5107 # define ISLOWER(c) \
5108                    (('a' <= (c) && (c) <= 'i') \
5109                      || ('j' <= (c) && (c) <= 'r') \
5110                      || ('s' <= (c) && (c) <= 'z'))
5111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112 #endif
5113
5114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5115 int
5116 main ()
5117 {
5118   int i;
5119   for (i = 0; i < 256; i++)
5120     if (XOR (islower (i), ISLOWER (i))
5121         || toupper (i) != TOUPPER (i))
5122       return 2;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5133 $as_echo "$ac_try_echo") >&5
5134   (eval "$ac_link") 2>&5
5135   ac_status=$?
5136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5138   { (case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5143 $as_echo "$ac_try_echo") >&5
5144   (eval "$ac_try") 2>&5
5145   ac_status=$?
5146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   :
5149 else
5150   $as_echo "$as_me: program exited with status $ac_status" >&5
5151 $as_echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ( exit $ac_status )
5155 ac_cv_header_stdc=no
5156 fi
5157 rm -rf conftest.dSYM
5158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5159 fi
5160
5161
5162 fi
5163 fi
5164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5165 $as_echo "$ac_cv_header_stdc" >&6; }
5166 if test $ac_cv_header_stdc = yes; then
5167
5168 cat >>confdefs.h <<\_ACEOF
5169 #define STDC_HEADERS 1
5170 _ACEOF
5171
5172 fi
5173
5174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5185                   inttypes.h stdint.h unistd.h
5186 do
5187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5189 $as_echo_n "checking for $ac_header... " >&6; }
5190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5191   $as_echo_n "(cached) " >&6
5192 else
5193   cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199 $ac_includes_default
5200
5201 #include <$ac_header>
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (ac_try="$ac_compile"
5205 case "(($ac_try" in
5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207   *) ac_try_echo=$ac_try;;
5208 esac
5209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5210 $as_echo "$ac_try_echo") >&5
5211   (eval "$ac_compile") 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } && {
5218          test -z "$ac_c_werror_flag" ||
5219          test ! -s conftest.err
5220        } && test -s conftest.$ac_objext; then
5221   eval "$as_ac_Header=yes"
5222 else
5223   $as_echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226         eval "$as_ac_Header=no"
5227 fi
5228
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 fi
5231 ac_res=`eval 'as_val=${'$as_ac_Header'}
5232                  $as_echo "$as_val"'`
5233                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5234 $as_echo "$ac_res" >&6; }
5235 as_val=`eval 'as_val=${'$as_ac_Header'}
5236                  $as_echo "$as_val"'`
5237    if test "x$as_val" = x""yes; then
5238   cat >>confdefs.h <<_ACEOF
5239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 _ACEOF
5241
5242 fi
5243
5244 done
5245
5246
5247
5248 if test "$ac_cv_prog_cc_stdc" != no; then
5249   U= ANSI2KNR=
5250 else
5251   U=_ ANSI2KNR=./ansi2knr
5252 fi
5253 # Ensure some checks needed by ansi2knr itself.
5254
5255
5256 for ac_header in string.h
5257 do
5258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5260   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5261 $as_echo_n "checking for $ac_header... " >&6; }
5262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5263   $as_echo_n "(cached) " >&6
5264 fi
5265 ac_res=`eval 'as_val=${'$as_ac_Header'}
5266                  $as_echo "$as_val"'`
5267                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5268 $as_echo "$ac_res" >&6; }
5269 else
5270   # Is the header compilable?
5271 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5272 $as_echo_n "checking $ac_header usability... " >&6; }
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h.  */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h.  */
5279 $ac_includes_default
5280 #include <$ac_header>
5281 _ACEOF
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5289 $as_echo "$ac_try_echo") >&5
5290   (eval "$ac_compile") 2>conftest.er1
5291   ac_status=$?
5292   grep -v '^ *+' conftest.er1 >conftest.err
5293   rm -f conftest.er1
5294   cat conftest.err >&5
5295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } && {
5297          test -z "$ac_c_werror_flag" ||
5298          test ! -s conftest.err
5299        } && test -s conftest.$ac_objext; then
5300   ac_header_compiler=yes
5301 else
5302   $as_echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305         ac_header_compiler=no
5306 fi
5307
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5310 $as_echo "$ac_header_compiler" >&6; }
5311
5312 # Is the header present?
5313 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5314 $as_echo_n "checking $ac_header presence... " >&6; }
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 #include <$ac_header>
5322 _ACEOF
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331   ac_status=$?
5332   grep -v '^ *+' conftest.er1 >conftest.err
5333   rm -f conftest.er1
5334   cat conftest.err >&5
5335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } >/dev/null && {
5337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5338          test ! -s conftest.err
5339        }; then
5340   ac_header_preproc=yes
5341 else
5342   $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345   ac_header_preproc=no
5346 fi
5347
5348 rm -f conftest.err conftest.$ac_ext
5349 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5350 $as_echo "$ac_header_preproc" >&6; }
5351
5352 # So?  What about this header?
5353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5354   yes:no: )
5355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5356 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5359     ac_header_preproc=yes
5360     ;;
5361   no:yes:* )
5362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5363 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5365 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5367 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5369 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5373 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5374
5375     ;;
5376 esac
5377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5378 $as_echo_n "checking for $ac_header... " >&6; }
5379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5380   $as_echo_n "(cached) " >&6
5381 else
5382   eval "$as_ac_Header=\$ac_header_preproc"
5383 fi
5384 ac_res=`eval 'as_val=${'$as_ac_Header'}
5385                  $as_echo "$as_val"'`
5386                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5387 $as_echo "$ac_res" >&6; }
5388
5389 fi
5390 as_val=`eval 'as_val=${'$as_ac_Header'}
5391                  $as_echo "$as_val"'`
5392    if test "x$as_val" = x""yes; then
5393   cat >>confdefs.h <<_ACEOF
5394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 _ACEOF
5396
5397 fi
5398
5399 done
5400
5401
5402
5403 case $host in
5404   *-apple-darwin*)
5405     case "$LD $LDFLAGS" in
5406   *-Wl,-search_paths_first*) ;;
5407   *) { $as_echo "$as_me:$LINENO: checking if the compiler understands -Wl,-search_paths_first" >&5
5408 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
5409      saved_LDFLAGS="$LDFLAGS"
5410      LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
5411      cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417
5418 int
5419 main ()
5420 {
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (ac_try="$ac_link"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433 $as_echo "$ac_try_echo") >&5
5434   (eval "$ac_link") 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } && {
5441          test -z "$ac_c_werror_flag" ||
5442          test ! -s conftest.err
5443        } && test -s conftest$ac_exeext && {
5444          test "$cross_compiling" = yes ||
5445          $as_test_x conftest$ac_exeext
5446        }; then
5447   { $as_echo "$as_me:$LINENO: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 else
5450   $as_echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453         { $as_echo "$as_me:$LINENO: result: no" >&5
5454 $as_echo "no" >&6; }
5455         LDFLAGS="$saved_LDFLAGS"
5456 fi
5457
5458 rm -rf conftest.dSYM
5459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460       conftest$ac_exeext conftest.$ac_ext
5461      ;;
5462  esac
5463  ;;
5464 esac
5465
5466 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5468 if test "${ac_cv_c_const+set}" = set; then
5469   $as_echo_n "(cached) " >&6
5470 else
5471   cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477
5478 int
5479 main ()
5480 {
5481 /* FIXME: Include the comments suggested by Paul. */
5482 #ifndef __cplusplus
5483   /* Ultrix mips cc rejects this.  */
5484   typedef int charset[2];
5485   const charset cs;
5486   /* SunOS 4.1.1 cc rejects this.  */
5487   char const *const *pcpcc;
5488   char **ppc;
5489   /* NEC SVR4.0.2 mips cc rejects this.  */
5490   struct point {int x, y;};
5491   static struct point const zero = {0,0};
5492   /* AIX XL C 1.02.0.0 rejects this.
5493      It does not let you subtract one const X* pointer from another in
5494      an arm of an if-expression whose if-part is not a constant
5495      expression */
5496   const char *g = "string";
5497   pcpcc = &g + (g ? g-g : 0);
5498   /* HPUX 7.0 cc rejects these. */
5499   ++pcpcc;
5500   ppc = (char**) pcpcc;
5501   pcpcc = (char const *const *) ppc;
5502   { /* SCO 3.2v4 cc rejects this.  */
5503     char *t;
5504     char const *s = 0 ? (char *) 0 : (char const *) 0;
5505
5506     *t++ = 0;
5507     if (s) return 0;
5508   }
5509   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5510     int x[] = {25, 17};
5511     const int *foo = &x[0];
5512     ++foo;
5513   }
5514   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5515     typedef const int *iptr;
5516     iptr p = 0;
5517     ++p;
5518   }
5519   { /* AIX XL C 1.02.0.0 rejects this saying
5520        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5521     struct s { int j; const int *ap[3]; };
5522     struct s *b; b->j = 5;
5523   }
5524   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5525     const int foo = 10;
5526     if (!foo) return 0;
5527   }
5528   return !cs[0] && !zero.x;
5529 #endif
5530
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543   (eval "$ac_compile") 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } && {
5550          test -z "$ac_c_werror_flag" ||
5551          test ! -s conftest.err
5552        } && test -s conftest.$ac_objext; then
5553   ac_cv_c_const=yes
5554 else
5555   $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558         ac_cv_c_const=no
5559 fi
5560
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 fi
5563 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5564 $as_echo "$ac_cv_c_const" >&6; }
5565 if test $ac_cv_c_const = no; then
5566
5567 cat >>confdefs.h <<\_ACEOF
5568 #define const /**/
5569 _ACEOF
5570
5571 fi
5572
5573 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
5574 $as_echo_n "checking for working volatile... " >&6; }
5575 if test "${ac_cv_c_volatile+set}" = set; then
5576   $as_echo_n "(cached) " >&6
5577 else
5578   cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h.  */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h.  */
5584
5585 int
5586 main ()
5587 {
5588
5589 volatile int x;
5590 int * volatile y = (int *) 0;
5591 return !x && !y;
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5598 case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603 $as_echo "$ac_try_echo") >&5
5604   (eval "$ac_compile") 2>conftest.er1
5605   ac_status=$?
5606   grep -v '^ *+' conftest.er1 >conftest.err
5607   rm -f conftest.er1
5608   cat conftest.err >&5
5609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } && {
5611          test -z "$ac_c_werror_flag" ||
5612          test ! -s conftest.err
5613        } && test -s conftest.$ac_objext; then
5614   ac_cv_c_volatile=yes
5615 else
5616   $as_echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619         ac_cv_c_volatile=no
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 fi
5624 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5625 $as_echo "$ac_cv_c_volatile" >&6; }
5626 if test $ac_cv_c_volatile = no; then
5627
5628 cat >>confdefs.h <<\_ACEOF
5629 #define volatile /**/
5630 _ACEOF
5631
5632 fi
5633
5634
5635
5636 MPFR_LIBM=''
5637
5638 case $host in
5639   *-*-beos* | *-*-cygwin* | *-*-pw32*)
5640     # According to libtool AC CHECK LIBM, these systems don't have libm
5641     ;;
5642   *-*-hpux*)
5643     # -lM means something subtly different to -lm, SVID style error handling
5644     # or something.  FIXME: Why exactly do we want this?
5645     { $as_echo "$as_me:$LINENO: checking for main in -lM" >&5
5646 $as_echo_n "checking for main in -lM... " >&6; }
5647 if test "${ac_cv_lib_M_main+set}" = set; then
5648   $as_echo_n "(cached) " >&6
5649 else
5650   ac_check_lib_save_LIBS=$LIBS
5651 LIBS="-lM  $LIBS"
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658
5659
5660 int
5661 main ()
5662 {
5663 return main ();
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (ac_try="$ac_link"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5675 $as_echo "$ac_try_echo") >&5
5676   (eval "$ac_link") 2>conftest.er1
5677   ac_status=$?
5678   grep -v '^ *+' conftest.er1 >conftest.err
5679   rm -f conftest.er1
5680   cat conftest.err >&5
5681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } && {
5683          test -z "$ac_c_werror_flag" ||
5684          test ! -s conftest.err
5685        } && test -s conftest$ac_exeext && {
5686          test "$cross_compiling" = yes ||
5687          $as_test_x conftest$ac_exeext
5688        }; then
5689   ac_cv_lib_M_main=yes
5690 else
5691   $as_echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694         ac_cv_lib_M_main=no
5695 fi
5696
5697 rm -rf conftest.dSYM
5698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5699       conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5701 fi
5702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_M_main" >&5
5703 $as_echo "$ac_cv_lib_M_main" >&6; }
5704 if test "x$ac_cv_lib_M_main" = x""yes; then
5705   MPFR_LIBM="-lM"
5706 fi
5707
5708     ;;
5709   *-*-solaris*)
5710     # On Solaris the math functions new in C99 are in -lm9x.
5711     # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5712     { $as_echo "$as_me:$LINENO: checking for main in -lm9x" >&5
5713 $as_echo_n "checking for main in -lm9x... " >&6; }
5714 if test "${ac_cv_lib_m9x_main+set}" = set; then
5715   $as_echo_n "(cached) " >&6
5716 else
5717   ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-lm9x  $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725
5726
5727 int
5728 main ()
5729 {
5730 return main ();
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (ac_try="$ac_link"
5737 case "(($ac_try" in
5738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739   *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743   (eval "$ac_link") 2>conftest.er1
5744   ac_status=$?
5745   grep -v '^ *+' conftest.er1 >conftest.err
5746   rm -f conftest.er1
5747   cat conftest.err >&5
5748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } && {
5750          test -z "$ac_c_werror_flag" ||
5751          test ! -s conftest.err
5752        } && test -s conftest$ac_exeext && {
5753          test "$cross_compiling" = yes ||
5754          $as_test_x conftest$ac_exeext
5755        }; then
5756   ac_cv_lib_m9x_main=yes
5757 else
5758   $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761         ac_cv_lib_m9x_main=no
5762 fi
5763
5764 rm -rf conftest.dSYM
5765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5766       conftest$ac_exeext conftest.$ac_ext
5767 LIBS=$ac_check_lib_save_LIBS
5768 fi
5769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m9x_main" >&5
5770 $as_echo "$ac_cv_lib_m9x_main" >&6; }
5771 if test "x$ac_cv_lib_m9x_main" = x""yes; then
5772   MPFR_LIBM="-lm9x"
5773 fi
5774
5775     { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
5776 $as_echo_n "checking for main in -lm... " >&6; }
5777 if test "${ac_cv_lib_m_main+set}" = set; then
5778   $as_echo_n "(cached) " >&6
5779 else
5780   ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lm  $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788
5789
5790 int
5791 main ()
5792 {
5793 return main ();
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (ac_try="$ac_link"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806   (eval "$ac_link") 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } && {
5813          test -z "$ac_c_werror_flag" ||
5814          test ! -s conftest.err
5815        } && test -s conftest$ac_exeext && {
5816          test "$cross_compiling" = yes ||
5817          $as_test_x conftest$ac_exeext
5818        }; then
5819   ac_cv_lib_m_main=yes
5820 else
5821   $as_echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824         ac_cv_lib_m_main=no
5825 fi
5826
5827 rm -rf conftest.dSYM
5828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5829       conftest$ac_exeext conftest.$ac_ext
5830 LIBS=$ac_check_lib_save_LIBS
5831 fi
5832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5833 $as_echo "$ac_cv_lib_m_main" >&6; }
5834 if test "x$ac_cv_lib_m_main" = x""yes; then
5835   MPFR_LIBM="$MPFR_LIBM -lm"
5836 fi
5837
5838     ;;
5839   *-ncr-sysv4.3*)
5840     # FIXME: What does -lmw mean?  Libtool AC CHECK LIBM does it this way.
5841     { $as_echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
5842 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5843 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
5844   $as_echo_n "(cached) " >&6
5845 else
5846   ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-lmw  $LIBS"
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854
5855 /* Override any GCC internal prototype to avoid an error.
5856    Use char because int might match the return type of a GCC
5857    builtin and then its argument prototype would still apply.  */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 char _mwvalidcheckl ();
5862 int
5863 main ()
5864 {
5865 return _mwvalidcheckl ();
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878   (eval "$ac_link") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } && {
5885          test -z "$ac_c_werror_flag" ||
5886          test ! -s conftest.err
5887        } && test -s conftest$ac_exeext && {
5888          test "$cross_compiling" = yes ||
5889          $as_test_x conftest$ac_exeext
5890        }; then
5891   ac_cv_lib_mw__mwvalidcheckl=yes
5892 else
5893   $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896         ac_cv_lib_mw__mwvalidcheckl=no
5897 fi
5898
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901       conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5903 fi
5904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5905 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5906 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then
5907   MPFR_LIBM="-lmw"
5908 fi
5909
5910     { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
5911 $as_echo_n "checking for main in -lm... " >&6; }
5912 if test "${ac_cv_lib_m_main+set}" = set; then
5913   $as_echo_n "(cached) " >&6
5914 else
5915   ac_check_lib_save_LIBS=$LIBS
5916 LIBS="-lm  $LIBS"
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923
5924
5925 int
5926 main ()
5927 {
5928 return main ();
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941   (eval "$ac_link") 2>conftest.er1
5942   ac_status=$?
5943   grep -v '^ *+' conftest.er1 >conftest.err
5944   rm -f conftest.er1
5945   cat conftest.err >&5
5946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } && {
5948          test -z "$ac_c_werror_flag" ||
5949          test ! -s conftest.err
5950        } && test -s conftest$ac_exeext && {
5951          test "$cross_compiling" = yes ||
5952          $as_test_x conftest$ac_exeext
5953        }; then
5954   ac_cv_lib_m_main=yes
5955 else
5956   $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959         ac_cv_lib_m_main=no
5960 fi
5961
5962 rm -rf conftest.dSYM
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964       conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5966 fi
5967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5968 $as_echo "$ac_cv_lib_m_main" >&6; }
5969 if test "x$ac_cv_lib_m_main" = x""yes; then
5970   MPFR_LIBM="$MPFR_LIBM -lm"
5971 fi
5972
5973     ;;
5974   *)
5975     { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
5976 $as_echo_n "checking for main in -lm... " >&6; }
5977 if test "${ac_cv_lib_m_main+set}" = set; then
5978   $as_echo_n "(cached) " >&6
5979 else
5980   ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lm  $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988
5989
5990 int
5991 main ()
5992 {
5993 return main ();
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (ac_try="$ac_link"
6000 case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006   (eval "$ac_link") 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } && {
6013          test -z "$ac_c_werror_flag" ||
6014          test ! -s conftest.err
6015        } && test -s conftest$ac_exeext && {
6016          test "$cross_compiling" = yes ||
6017          $as_test_x conftest$ac_exeext
6018        }; then
6019   ac_cv_lib_m_main=yes
6020 else
6021   $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024         ac_cv_lib_m_main=no
6025 fi
6026
6027 rm -rf conftest.dSYM
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029       conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6031 fi
6032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6033 $as_echo "$ac_cv_lib_m_main" >&6; }
6034 if test "x$ac_cv_lib_m_main" = x""yes; then
6035   MPFR_LIBM="-lm"
6036 fi
6037
6038     ;;
6039 esac
6040
6041 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6042 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6043 if test "${ac_cv_header_time+set}" = set; then
6044   $as_echo_n "(cached) " >&6
6045 else
6046   cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052 #include <sys/types.h>
6053 #include <sys/time.h>
6054 #include <time.h>
6055
6056 int
6057 main ()
6058 {
6059 if ((struct tm *) 0)
6060 return 0;
6061   ;
6062   return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069   *) ac_try_echo=$ac_try;;
6070 esac
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073   (eval "$ac_compile") 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } && {
6080          test -z "$ac_c_werror_flag" ||
6081          test ! -s conftest.err
6082        } && test -s conftest.$ac_objext; then
6083   ac_cv_header_time=yes
6084 else
6085   $as_echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088         ac_cv_header_time=no
6089 fi
6090
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 fi
6093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6094 $as_echo "$ac_cv_header_time" >&6; }
6095 if test $ac_cv_header_time = yes; then
6096
6097 cat >>confdefs.h <<\_ACEOF
6098 #define TIME_WITH_SYS_TIME 1
6099 _ACEOF
6100
6101 fi
6102
6103
6104
6105
6106
6107
6108
6109 if test "${ac_cv_header_limits_h+set}" = set; then
6110   { $as_echo "$as_me:$LINENO: checking for limits.h" >&5
6111 $as_echo_n "checking for limits.h... " >&6; }
6112 if test "${ac_cv_header_limits_h+set}" = set; then
6113   $as_echo_n "(cached) " >&6
6114 fi
6115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6116 $as_echo "$ac_cv_header_limits_h" >&6; }
6117 else
6118   # Is the header compilable?
6119 { $as_echo "$as_me:$LINENO: checking limits.h usability" >&5
6120 $as_echo_n "checking limits.h usability... " >&6; }
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h.  */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h.  */
6127 $ac_includes_default
6128 #include <limits.h>
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134   *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138   (eval "$ac_compile") 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } && {
6145          test -z "$ac_c_werror_flag" ||
6146          test ! -s conftest.err
6147        } && test -s conftest.$ac_objext; then
6148   ac_header_compiler=yes
6149 else
6150   $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153         ac_header_compiler=no
6154 fi
6155
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6158 $as_echo "$ac_header_compiler" >&6; }
6159
6160 # Is the header present?
6161 { $as_echo "$as_me:$LINENO: checking limits.h presence" >&5
6162 $as_echo_n "checking limits.h presence... " >&6; }
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <limits.h>
6170 _ACEOF
6171 if { (ac_try="$ac_cpp conftest.$ac_ext"
6172 case "(($ac_try" in
6173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174   *) ac_try_echo=$ac_try;;
6175 esac
6176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } >/dev/null && {
6185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186          test ! -s conftest.err
6187        }; then
6188   ac_header_preproc=yes
6189 else
6190   $as_echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193   ac_header_preproc=no
6194 fi
6195
6196 rm -f conftest.err conftest.$ac_ext
6197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 $as_echo "$ac_header_preproc" >&6; }
6199
6200 # So?  What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6202   yes:no: )
6203     { $as_echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
6204 $as_echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205     { $as_echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
6206 $as_echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
6207     ac_header_preproc=yes
6208     ;;
6209   no:yes:* )
6210     { $as_echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
6211 $as_echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
6212     { $as_echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
6213 $as_echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
6214     { $as_echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
6215 $as_echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
6216     { $as_echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
6217 $as_echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6218     { $as_echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
6219 $as_echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
6220     { $as_echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
6221 $as_echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
6222
6223     ;;
6224 esac
6225 { $as_echo "$as_me:$LINENO: checking for limits.h" >&5
6226 $as_echo_n "checking for limits.h... " >&6; }
6227 if test "${ac_cv_header_limits_h+set}" = set; then
6228   $as_echo_n "(cached) " >&6
6229 else
6230   ac_cv_header_limits_h=$ac_header_preproc
6231 fi
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6233 $as_echo "$ac_cv_header_limits_h" >&6; }
6234
6235 fi
6236 if test "x$ac_cv_header_limits_h" = x""yes; then
6237   :
6238 else
6239   { { $as_echo "$as_me:$LINENO: error: limits.h not found" >&5
6240 $as_echo "$as_me: error: limits.h not found" >&2;}
6241    { (exit 1); exit 1; }; }
6242 fi
6243
6244
6245 if test "${ac_cv_header_float_h+set}" = set; then
6246   { $as_echo "$as_me:$LINENO: checking for float.h" >&5
6247 $as_echo_n "checking for float.h... " >&6; }
6248 if test "${ac_cv_header_float_h+set}" = set; then
6249   $as_echo_n "(cached) " >&6
6250 fi
6251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
6252 $as_echo "$ac_cv_header_float_h" >&6; }
6253 else
6254   # Is the header compilable?
6255 { $as_echo "$as_me:$LINENO: checking float.h usability" >&5
6256 $as_echo_n "checking float.h usability... " >&6; }
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263 $ac_includes_default
6264 #include <float.h>
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273 $as_echo "$ac_try_echo") >&5
6274   (eval "$ac_compile") 2>conftest.er1
6275   ac_status=$?
6276   grep -v '^ *+' conftest.er1 >conftest.err
6277   rm -f conftest.er1
6278   cat conftest.err >&5
6279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } && {
6281          test -z "$ac_c_werror_flag" ||
6282          test ! -s conftest.err
6283        } && test -s conftest.$ac_objext; then
6284   ac_header_compiler=yes
6285 else
6286   $as_echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289         ac_header_compiler=no
6290 fi
6291
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6294 $as_echo "$ac_header_compiler" >&6; }
6295
6296 # Is the header present?
6297 { $as_echo "$as_me:$LINENO: checking float.h presence" >&5
6298 $as_echo_n "checking float.h presence... " >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h.  */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h.  */
6305 #include <float.h>
6306 _ACEOF
6307 if { (ac_try="$ac_cpp conftest.$ac_ext"
6308 case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6313 $as_echo "$ac_try_echo") >&5
6314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6315   ac_status=$?
6316   grep -v '^ *+' conftest.er1 >conftest.err
6317   rm -f conftest.er1
6318   cat conftest.err >&5
6319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); } >/dev/null && {
6321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6322          test ! -s conftest.err
6323        }; then
6324   ac_header_preproc=yes
6325 else
6326   $as_echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329   ac_header_preproc=no
6330 fi
6331
6332 rm -f conftest.err conftest.$ac_ext
6333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6334 $as_echo "$ac_header_preproc" >&6; }
6335
6336 # So?  What about this header?
6337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6338   yes:no: )
6339     { $as_echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
6340 $as_echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6341     { $as_echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
6342 $as_echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
6343     ac_header_preproc=yes
6344     ;;
6345   no:yes:* )
6346     { $as_echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
6347 $as_echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
6348     { $as_echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
6349 $as_echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
6350     { $as_echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
6351 $as_echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
6352     { $as_echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
6353 $as_echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6354     { $as_echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
6355 $as_echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
6356     { $as_echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
6357 $as_echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
6358
6359     ;;
6360 esac
6361 { $as_echo "$as_me:$LINENO: checking for float.h" >&5
6362 $as_echo_n "checking for float.h... " >&6; }
6363 if test "${ac_cv_header_float_h+set}" = set; then
6364   $as_echo_n "(cached) " >&6
6365 else
6366   ac_cv_header_float_h=$ac_header_preproc
6367 fi
6368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
6369 $as_echo "$ac_cv_header_float_h" >&6; }
6370
6371 fi
6372 if test "x$ac_cv_header_float_h" = x""yes; then
6373   :
6374 else
6375   { { $as_echo "$as_me:$LINENO: error: float.h not found" >&5
6376 $as_echo "$as_me: error: float.h not found" >&2;}
6377    { (exit 1); exit 1; }; }
6378 fi
6379
6380
6381 if test "${ac_cv_header_string_h+set}" = set; then
6382   { $as_echo "$as_me:$LINENO: checking for string.h" >&5
6383 $as_echo_n "checking for string.h... " >&6; }
6384 if test "${ac_cv_header_string_h+set}" = set; then
6385   $as_echo_n "(cached) " >&6
6386 fi
6387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6388 $as_echo "$ac_cv_header_string_h" >&6; }
6389 else
6390   # Is the header compilable?
6391 { $as_echo "$as_me:$LINENO: checking string.h usability" >&5
6392 $as_echo_n "checking string.h usability... " >&6; }
6393 cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399 $ac_includes_default
6400 #include <string.h>
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406   *) ac_try_echo=$ac_try;;
6407 esac
6408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409 $as_echo "$ac_try_echo") >&5
6410   (eval "$ac_compile") 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } && {
6417          test -z "$ac_c_werror_flag" ||
6418          test ! -s conftest.err
6419        } && test -s conftest.$ac_objext; then
6420   ac_header_compiler=yes
6421 else
6422   $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425         ac_header_compiler=no
6426 fi
6427
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 $as_echo "$ac_header_compiler" >&6; }
6431
6432 # Is the header present?
6433 { $as_echo "$as_me:$LINENO: checking string.h presence" >&5
6434 $as_echo_n "checking string.h presence... " >&6; }
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h.  */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h.  */
6441 #include <string.h>
6442 _ACEOF
6443 if { (ac_try="$ac_cpp conftest.$ac_ext"
6444 case "(($ac_try" in
6445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446   *) ac_try_echo=$ac_try;;
6447 esac
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6451   ac_status=$?
6452   grep -v '^ *+' conftest.er1 >conftest.err
6453   rm -f conftest.er1
6454   cat conftest.err >&5
6455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } >/dev/null && {
6457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6458          test ! -s conftest.err
6459        }; then
6460   ac_header_preproc=yes
6461 else
6462   $as_echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465   ac_header_preproc=no
6466 fi
6467
6468 rm -f conftest.err conftest.$ac_ext
6469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 $as_echo "$ac_header_preproc" >&6; }
6471
6472 # So?  What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474   yes:no: )
6475     { $as_echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6476 $as_echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477     { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6478 $as_echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6479     ac_header_preproc=yes
6480     ;;
6481   no:yes:* )
6482     { $as_echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6483 $as_echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6484     { $as_echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6485 $as_echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6486     { $as_echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6487 $as_echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6488     { $as_echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6489 $as_echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6490     { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6491 $as_echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6492     { $as_echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6493 $as_echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6494
6495     ;;
6496 esac
6497 { $as_echo "$as_me:$LINENO: checking for string.h" >&5
6498 $as_echo_n "checking for string.h... " >&6; }
6499 if test "${ac_cv_header_string_h+set}" = set; then
6500   $as_echo_n "(cached) " >&6
6501 else
6502   ac_cv_header_string_h=$ac_header_preproc
6503 fi
6504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6505 $as_echo "$ac_cv_header_string_h" >&6; }
6506
6507 fi
6508 if test "x$ac_cv_header_string_h" = x""yes; then
6509   :
6510 else
6511   { { $as_echo "$as_me:$LINENO: error: string.h not found" >&5
6512 $as_echo "$as_me: error: string.h not found" >&2;}
6513    { (exit 1); exit 1; }; }
6514 fi
6515
6516
6517
6518
6519 for ac_header in locale.h
6520 do
6521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6523   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 $as_echo_n "checking for $ac_header... " >&6; }
6525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526   $as_echo_n "(cached) " >&6
6527 fi
6528 ac_res=`eval 'as_val=${'$as_ac_Header'}
6529                  $as_echo "$as_val"'`
6530                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6531 $as_echo "$ac_res" >&6; }
6532 else
6533   # Is the header compilable?
6534 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6535 $as_echo_n "checking $ac_header usability... " >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542 $ac_includes_default
6543 #include <$ac_header>
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (ac_try="$ac_compile"
6547 case "(($ac_try" in
6548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6549   *) ac_try_echo=$ac_try;;
6550 esac
6551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6552 $as_echo "$ac_try_echo") >&5
6553   (eval "$ac_compile") 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } && {
6560          test -z "$ac_c_werror_flag" ||
6561          test ! -s conftest.err
6562        } && test -s conftest.$ac_objext; then
6563   ac_header_compiler=yes
6564 else
6565   $as_echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568         ac_header_compiler=no
6569 fi
6570
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6573 $as_echo "$ac_header_compiler" >&6; }
6574
6575 # Is the header present?
6576 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6577 $as_echo_n "checking $ac_header presence... " >&6; }
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584 #include <$ac_header>
6585 _ACEOF
6586 if { (ac_try="$ac_cpp conftest.$ac_ext"
6587 case "(($ac_try" in
6588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589   *) ac_try_echo=$ac_try;;
6590 esac
6591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6592 $as_echo "$ac_try_echo") >&5
6593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } >/dev/null && {
6600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6601          test ! -s conftest.err
6602        }; then
6603   ac_header_preproc=yes
6604 else
6605   $as_echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608   ac_header_preproc=no
6609 fi
6610
6611 rm -f conftest.err conftest.$ac_ext
6612 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6613 $as_echo "$ac_header_preproc" >&6; }
6614
6615 # So?  What about this header?
6616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6617   yes:no: )
6618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6622     ac_header_preproc=yes
6623     ;;
6624   no:yes:* )
6625     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6627     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6628 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6630 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6631     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6632 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6636 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6637
6638     ;;
6639 esac
6640 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 $as_echo_n "checking for $ac_header... " >&6; }
6642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6643   $as_echo_n "(cached) " >&6
6644 else
6645   eval "$as_ac_Header=\$ac_header_preproc"
6646 fi
6647 ac_res=`eval 'as_val=${'$as_ac_Header'}
6648                  $as_echo "$as_val"'`
6649                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6650 $as_echo "$ac_res" >&6; }
6651
6652 fi
6653 as_val=`eval 'as_val=${'$as_ac_Header'}
6654                  $as_echo "$as_val"'`
6655    if test "x$as_val" = x""yes; then
6656   cat >>confdefs.h <<_ACEOF
6657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6658 _ACEOF
6659
6660 fi
6661
6662 done
6663
6664
6665
6666 for ac_header in wchar.h
6667 do
6668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6670   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 $as_echo_n "checking for $ac_header... " >&6; }
6672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673   $as_echo_n "(cached) " >&6
6674 fi
6675 ac_res=`eval 'as_val=${'$as_ac_Header'}
6676                  $as_echo "$as_val"'`
6677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6678 $as_echo "$ac_res" >&6; }
6679 else
6680   # Is the header compilable?
6681 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6682 $as_echo_n "checking $ac_header usability... " >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689 $ac_includes_default
6690 #include <$ac_header>
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6694 case "(($ac_try" in
6695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696   *) ac_try_echo=$ac_try;;
6697 esac
6698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6699 $as_echo "$ac_try_echo") >&5
6700   (eval "$ac_compile") 2>conftest.er1
6701   ac_status=$?
6702   grep -v '^ *+' conftest.er1 >conftest.err
6703   rm -f conftest.er1
6704   cat conftest.err >&5
6705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } && {
6707          test -z "$ac_c_werror_flag" ||
6708          test ! -s conftest.err
6709        } && test -s conftest.$ac_objext; then
6710   ac_header_compiler=yes
6711 else
6712   $as_echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715         ac_header_compiler=no
6716 fi
6717
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6720 $as_echo "$ac_header_compiler" >&6; }
6721
6722 # Is the header present?
6723 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6724 $as_echo_n "checking $ac_header presence... " >&6; }
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h.  */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h.  */
6731 #include <$ac_header>
6732 _ACEOF
6733 if { (ac_try="$ac_cpp conftest.$ac_ext"
6734 case "(($ac_try" in
6735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736   *) ac_try_echo=$ac_try;;
6737 esac
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6741   ac_status=$?
6742   grep -v '^ *+' conftest.er1 >conftest.err
6743   rm -f conftest.er1
6744   cat conftest.err >&5
6745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } >/dev/null && {
6747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6748          test ! -s conftest.err
6749        }; then
6750   ac_header_preproc=yes
6751 else
6752   $as_echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755   ac_header_preproc=no
6756 fi
6757
6758 rm -f conftest.err conftest.$ac_ext
6759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6760 $as_echo "$ac_header_preproc" >&6; }
6761
6762 # So?  What about this header?
6763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6764   yes:no: )
6765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6766 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6769     ac_header_preproc=yes
6770     ;;
6771   no:yes:* )
6772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6773 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6775 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6777 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6779 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6780     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6782     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6784
6785     ;;
6786 esac
6787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6788 $as_echo_n "checking for $ac_header... " >&6; }
6789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6790   $as_echo_n "(cached) " >&6
6791 else
6792   eval "$as_ac_Header=\$ac_header_preproc"
6793 fi
6794 ac_res=`eval 'as_val=${'$as_ac_Header'}
6795                  $as_echo "$as_val"'`
6796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6797 $as_echo "$ac_res" >&6; }
6798
6799 fi
6800 as_val=`eval 'as_val=${'$as_ac_Header'}
6801                  $as_echo "$as_val"'`
6802    if test "x$as_val" = x""yes; then
6803   cat >>confdefs.h <<_ACEOF
6804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6805 _ACEOF
6806
6807 fi
6808
6809 done
6810
6811
6812 if test "${ac_cv_header_stdarg_h+set}" = set; then
6813   { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
6814 $as_echo_n "checking for stdarg.h... " >&6; }
6815 if test "${ac_cv_header_stdarg_h+set}" = set; then
6816   $as_echo_n "(cached) " >&6
6817 fi
6818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6819 $as_echo "$ac_cv_header_stdarg_h" >&6; }
6820 else
6821   # Is the header compilable?
6822 { $as_echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6823 $as_echo_n "checking stdarg.h usability... " >&6; }
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830 $ac_includes_default
6831 #include <stdarg.h>
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
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_compile") 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); } && {
6848          test -z "$ac_c_werror_flag" ||
6849          test ! -s conftest.err
6850        } && test -s conftest.$ac_objext; then
6851   ac_header_compiler=yes
6852 else
6853   $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856         ac_header_compiler=no
6857 fi
6858
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861 $as_echo "$ac_header_compiler" >&6; }
6862
6863 # Is the header present?
6864 { $as_echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6865 $as_echo_n "checking stdarg.h presence... " >&6; }
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <stdarg.h>
6873 _ACEOF
6874 if { (ac_try="$ac_cpp conftest.$ac_ext"
6875 case "(($ac_try" in
6876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877   *) ac_try_echo=$ac_try;;
6878 esac
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } >/dev/null && {
6888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6889          test ! -s conftest.err
6890        }; then
6891   ac_header_preproc=yes
6892 else
6893   $as_echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896   ac_header_preproc=no
6897 fi
6898
6899 rm -f conftest.err conftest.$ac_ext
6900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 $as_echo "$ac_header_preproc" >&6; }
6902
6903 # So?  What about this header?
6904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905   yes:no: )
6906     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6907 $as_echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6909 $as_echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6910     ac_header_preproc=yes
6911     ;;
6912   no:yes:* )
6913     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6914 $as_echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6915     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h:     check for missing prerequisite headers?" >&5
6916 $as_echo "$as_me: WARNING: stdarg.h:     check for missing prerequisite headers?" >&2;}
6917     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6918 $as_echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6919     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&5
6920 $as_echo "$as_me: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6921     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6922 $as_echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6923     { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6924 $as_echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
6925
6926     ;;
6927 esac
6928 { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
6929 $as_echo_n "checking for stdarg.h... " >&6; }
6930 if test "${ac_cv_header_stdarg_h+set}" = set; then
6931   $as_echo_n "(cached) " >&6
6932 else
6933   ac_cv_header_stdarg_h=$ac_header_preproc
6934 fi
6935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6936 $as_echo "$ac_cv_header_stdarg_h" >&6; }
6937
6938 fi
6939 if test "x$ac_cv_header_stdarg_h" = x""yes; then
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_STDARG 1
6943 _ACEOF
6944
6945 else
6946   if test "${ac_cv_header_varargs_h+set}" = set; then
6947   { $as_echo "$as_me:$LINENO: checking for varargs.h" >&5
6948 $as_echo_n "checking for varargs.h... " >&6; }
6949 if test "${ac_cv_header_varargs_h+set}" = set; then
6950   $as_echo_n "(cached) " >&6
6951 fi
6952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
6953 $as_echo "$ac_cv_header_varargs_h" >&6; }
6954 else
6955   # Is the header compilable?
6956 { $as_echo "$as_me:$LINENO: checking varargs.h usability" >&5
6957 $as_echo_n "checking varargs.h usability... " >&6; }
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 $ac_includes_default
6965 #include <varargs.h>
6966 _ACEOF
6967 rm -f conftest.$ac_objext
6968 if { (ac_try="$ac_compile"
6969 case "(($ac_try" in
6970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971   *) ac_try_echo=$ac_try;;
6972 esac
6973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6974 $as_echo "$ac_try_echo") >&5
6975   (eval "$ac_compile") 2>conftest.er1
6976   ac_status=$?
6977   grep -v '^ *+' conftest.er1 >conftest.err
6978   rm -f conftest.er1
6979   cat conftest.err >&5
6980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); } && {
6982          test -z "$ac_c_werror_flag" ||
6983          test ! -s conftest.err
6984        } && test -s conftest.$ac_objext; then
6985   ac_header_compiler=yes
6986 else
6987   $as_echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6989
6990         ac_header_compiler=no
6991 fi
6992
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6995 $as_echo "$ac_header_compiler" >&6; }
6996
6997 # Is the header present?
6998 { $as_echo "$as_me:$LINENO: checking varargs.h presence" >&5
6999 $as_echo_n "checking varargs.h presence... " >&6; }
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7006 #include <varargs.h>
7007 _ACEOF
7008 if { (ac_try="$ac_cpp conftest.$ac_ext"
7009 case "(($ac_try" in
7010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011   *) ac_try_echo=$ac_try;;
7012 esac
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } >/dev/null && {
7022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7023          test ! -s conftest.err
7024        }; then
7025   ac_header_preproc=yes
7026 else
7027   $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030   ac_header_preproc=no
7031 fi
7032
7033 rm -f conftest.err conftest.$ac_ext
7034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7035 $as_echo "$ac_header_preproc" >&6; }
7036
7037 # So?  What about this header?
7038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7039   yes:no: )
7040     { $as_echo "$as_me:$LINENO: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7041 $as_echo "$as_me: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7042     { $as_echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the compiler's result" >&5
7043 $as_echo "$as_me: WARNING: varargs.h: proceeding with the compiler's result" >&2;}
7044     ac_header_preproc=yes
7045     ;;
7046   no:yes:* )
7047     { $as_echo "$as_me:$LINENO: WARNING: varargs.h: present but cannot be compiled" >&5
7048 $as_echo "$as_me: WARNING: varargs.h: present but cannot be compiled" >&2;}
7049     { $as_echo "$as_me:$LINENO: WARNING: varargs.h:     check for missing prerequisite headers?" >&5
7050 $as_echo "$as_me: WARNING: varargs.h:     check for missing prerequisite headers?" >&2;}
7051     { $as_echo "$as_me:$LINENO: WARNING: varargs.h: see the Autoconf documentation" >&5
7052 $as_echo "$as_me: WARNING: varargs.h: see the Autoconf documentation" >&2;}
7053     { $as_echo "$as_me:$LINENO: WARNING: varargs.h:     section \"Present But Cannot Be Compiled\"" >&5
7054 $as_echo "$as_me: WARNING: varargs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7055     { $as_echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the preprocessor's result" >&5
7056 $as_echo "$as_me: WARNING: varargs.h: proceeding with the preprocessor's result" >&2;}
7057     { $as_echo "$as_me:$LINENO: WARNING: varargs.h: in the future, the compiler will take precedence" >&5
7058 $as_echo "$as_me: WARNING: varargs.h: in the future, the compiler will take precedence" >&2;}
7059
7060     ;;
7061 esac
7062 { $as_echo "$as_me:$LINENO: checking for varargs.h" >&5
7063 $as_echo_n "checking for varargs.h... " >&6; }
7064 if test "${ac_cv_header_varargs_h+set}" = set; then
7065   $as_echo_n "(cached) " >&6
7066 else
7067   ac_cv_header_varargs_h=$ac_header_preproc
7068 fi
7069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
7070 $as_echo "$ac_cv_header_varargs_h" >&6; }
7071
7072 fi
7073 if test "x$ac_cv_header_varargs_h" = x""yes; then
7074   :
7075 else
7076   { { $as_echo "$as_me:$LINENO: error: stdarg.h or varargs.h not found" >&5
7077 $as_echo "$as_me: error: stdarg.h or varargs.h not found" >&2;}
7078    { (exit 1); exit 1; }; }
7079 fi
7080
7081
7082 fi
7083
7084
7085
7086
7087
7088 for ac_header in sys/time.h sys/fpu.h
7089 do
7090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7092   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7093 $as_echo_n "checking for $ac_header... " >&6; }
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095   $as_echo_n "(cached) " >&6
7096 fi
7097 ac_res=`eval 'as_val=${'$as_ac_Header'}
7098                  $as_echo "$as_val"'`
7099                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7100 $as_echo "$ac_res" >&6; }
7101 else
7102   # Is the header compilable?
7103 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7104 $as_echo_n "checking $ac_header usability... " >&6; }
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111 $ac_includes_default
7112 #include <$ac_header>
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118   *) ac_try_echo=$ac_try;;
7119 esac
7120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121 $as_echo "$ac_try_echo") >&5
7122   (eval "$ac_compile") 2>conftest.er1
7123   ac_status=$?
7124   grep -v '^ *+' conftest.er1 >conftest.err
7125   rm -f conftest.er1
7126   cat conftest.err >&5
7127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } && {
7129          test -z "$ac_c_werror_flag" ||
7130          test ! -s conftest.err
7131        } && test -s conftest.$ac_objext; then
7132   ac_header_compiler=yes
7133 else
7134   $as_echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137         ac_header_compiler=no
7138 fi
7139
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142 $as_echo "$ac_header_compiler" >&6; }
7143
7144 # Is the header present?
7145 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146 $as_echo_n "checking $ac_header presence... " >&6; }
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 #include <$ac_header>
7154 _ACEOF
7155 if { (ac_try="$ac_cpp conftest.$ac_ext"
7156 case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
7166   cat conftest.err >&5
7167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } >/dev/null && {
7169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170          test ! -s conftest.err
7171        }; then
7172   ac_header_preproc=yes
7173 else
7174   $as_echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177   ac_header_preproc=no
7178 fi
7179
7180 rm -f conftest.err conftest.$ac_ext
7181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 $as_echo "$ac_header_preproc" >&6; }
7183
7184 # So?  What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186   yes:no: )
7187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191     ac_header_preproc=yes
7192     ;;
7193   no:yes:* )
7194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7197 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7201 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206
7207     ;;
7208 esac
7209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 $as_echo_n "checking for $ac_header... " >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212   $as_echo_n "(cached) " >&6
7213 else
7214   eval "$as_ac_Header=\$ac_header_preproc"
7215 fi
7216 ac_res=`eval 'as_val=${'$as_ac_Header'}
7217                  $as_echo "$as_val"'`
7218                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7219 $as_echo "$ac_res" >&6; }
7220
7221 fi
7222 as_val=`eval 'as_val=${'$as_ac_Header'}
7223                  $as_echo "$as_val"'`
7224    if test "x$as_val" = x""yes; then
7225   cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230
7231 done
7232
7233
7234
7235
7236 for ac_header in stdint.h
7237 do
7238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 $as_echo_n "checking for $ac_header... " >&6; }
7242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7243   $as_echo_n "(cached) " >&6
7244 fi
7245 ac_res=`eval 'as_val=${'$as_ac_Header'}
7246                  $as_echo "$as_val"'`
7247                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7248 $as_echo "$ac_res" >&6; }
7249 else
7250   # Is the header compilable?
7251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 $as_echo_n "checking $ac_header usability... " >&6; }
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259 $ac_includes_default
7260 #include <$ac_header>
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266   *) ac_try_echo=$ac_try;;
7267 esac
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270   (eval "$ac_compile") 2>conftest.er1
7271   ac_status=$?
7272   grep -v '^ *+' conftest.er1 >conftest.err
7273   rm -f conftest.er1
7274   cat conftest.err >&5
7275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); } && {
7277          test -z "$ac_c_werror_flag" ||
7278          test ! -s conftest.err
7279        } && test -s conftest.$ac_objext; then
7280   ac_header_compiler=yes
7281 else
7282   $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285         ac_header_compiler=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7290 $as_echo "$ac_header_compiler" >&6; }
7291
7292 # Is the header present?
7293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7294 $as_echo_n "checking $ac_header presence... " >&6; }
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h.  */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h.  */
7301 #include <$ac_header>
7302 _ACEOF
7303 if { (ac_try="$ac_cpp conftest.$ac_ext"
7304 case "(($ac_try" in
7305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306   *) ac_try_echo=$ac_try;;
7307 esac
7308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7309 $as_echo "$ac_try_echo") >&5
7310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7311   ac_status=$?
7312   grep -v '^ *+' conftest.er1 >conftest.err
7313   rm -f conftest.er1
7314   cat conftest.err >&5
7315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } >/dev/null && {
7317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7318          test ! -s conftest.err
7319        }; then
7320   ac_header_preproc=yes
7321 else
7322   $as_echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325   ac_header_preproc=no
7326 fi
7327
7328 rm -f conftest.err conftest.$ac_ext
7329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7330 $as_echo "$ac_header_preproc" >&6; }
7331
7332 # So?  What about this header?
7333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7334   yes:no: )
7335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7339     ac_header_preproc=yes
7340     ;;
7341   no:yes:* )
7342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7345 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7349 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7354
7355     ;;
7356 esac
7357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 $as_echo_n "checking for $ac_header... " >&6; }
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360   $as_echo_n "(cached) " >&6
7361 else
7362   eval "$as_ac_Header=\$ac_header_preproc"
7363 fi
7364 ac_res=`eval 'as_val=${'$as_ac_Header'}
7365                  $as_echo "$as_val"'`
7366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7367 $as_echo "$ac_res" >&6; }
7368
7369 fi
7370 as_val=`eval 'as_val=${'$as_ac_Header'}
7371                  $as_echo "$as_val"'`
7372    if test "x$as_val" = x""yes; then
7373   cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376
7377 fi
7378
7379 done
7380
7381     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7382 $as_echo_n "checking for SIZE_MAX... " >&6; }
7383   if test "${gl_cv_size_max+set}" = set; then
7384   $as_echo_n "(cached) " >&6
7385 else
7386
7387     gl_cv_size_max=
7388     cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h.  */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h.  */
7394
7395 #include <limits.h>
7396 #if HAVE_STDINT_H
7397 #include <stdint.h>
7398 #endif
7399 #ifdef SIZE_MAX
7400 Found it
7401 #endif
7402
7403 _ACEOF
7404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405   $EGREP "Found it" >/dev/null 2>&1; then
7406   gl_cv_size_max=yes
7407 fi
7408 rm -f conftest*
7409
7410     if test -z "$gl_cv_size_max"; then
7411                         if test "$cross_compiling" = yes; then
7412   # Depending upon the size, compute the lo and hi bounds.
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 #include <stddef.h>
7420 #include <limits.h>
7421 int
7422 main ()
7423 {
7424 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
7425 test_array [0] = 0
7426
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7433 case "(($ac_try" in
7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435   *) ac_try_echo=$ac_try;;
7436 esac
7437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7438 $as_echo "$ac_try_echo") >&5
7439   (eval "$ac_compile") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } && {
7446          test -z "$ac_c_werror_flag" ||
7447          test ! -s conftest.err
7448        } && test -s conftest.$ac_objext; then
7449   ac_lo=0 ac_mid=0
7450   while :; do
7451     cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <stddef.h>
7458 #include <limits.h>
7459 int
7460 main ()
7461 {
7462 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
7463 test_array [0] = 0
7464
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473   *) ac_try_echo=$ac_try;;
7474 esac
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477   (eval "$ac_compile") 2>conftest.er1
7478   ac_status=$?
7479   grep -v '^ *+' conftest.er1 >conftest.err
7480   rm -f conftest.er1
7481   cat conftest.err >&5
7482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } && {
7484          test -z "$ac_c_werror_flag" ||
7485          test ! -s conftest.err
7486        } && test -s conftest.$ac_objext; then
7487   ac_hi=$ac_mid; break
7488 else
7489   $as_echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492         ac_lo=`expr $ac_mid + 1`
7493                         if test $ac_lo -le $ac_mid; then
7494                           ac_lo= ac_hi=
7495                           break
7496                         fi
7497                         ac_mid=`expr 2 '*' $ac_mid + 1`
7498 fi
7499
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501   done
7502 else
7503   $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506         cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 #include <stddef.h>
7513 #include <limits.h>
7514 int
7515 main ()
7516 {
7517 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
7518 test_array [0] = 0
7519
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (ac_try="$ac_compile"
7526 case "(($ac_try" in
7527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528   *) ac_try_echo=$ac_try;;
7529 esac
7530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531 $as_echo "$ac_try_echo") >&5
7532   (eval "$ac_compile") 2>conftest.er1
7533   ac_status=$?
7534   grep -v '^ *+' conftest.er1 >conftest.err
7535   rm -f conftest.er1
7536   cat conftest.err >&5
7537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } && {
7539          test -z "$ac_c_werror_flag" ||
7540          test ! -s conftest.err
7541        } && test -s conftest.$ac_objext; then
7542   ac_hi=-1 ac_mid=-1
7543   while :; do
7544     cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #include <stddef.h>
7551 #include <limits.h>
7552 int
7553 main ()
7554 {
7555 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
7556 test_array [0] = 0
7557
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7569 $as_echo "$ac_try_echo") >&5
7570   (eval "$ac_compile") 2>conftest.er1
7571   ac_status=$?
7572   grep -v '^ *+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } && {
7577          test -z "$ac_c_werror_flag" ||
7578          test ! -s conftest.err
7579        } && test -s conftest.$ac_objext; then
7580   ac_lo=$ac_mid; break
7581 else
7582   $as_echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585         ac_hi=`expr '(' $ac_mid ')' - 1`
7586                         if test $ac_mid -le $ac_hi; then
7587                           ac_lo= ac_hi=
7588                           break
7589                         fi
7590                         ac_mid=`expr 2 '*' $ac_mid`
7591 fi
7592
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594   done
7595 else
7596   $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599         ac_lo= ac_hi=
7600 fi
7601
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 fi
7604
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 # Binary search between lo and hi bounds.
7607 while test "x$ac_lo" != "x$ac_hi"; do
7608   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7609   cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 #include <stddef.h>
7616 #include <limits.h>
7617 int
7618 main ()
7619 {
7620 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
7621 test_array [0] = 0
7622
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631   *) ac_try_echo=$ac_try;;
7632 esac
7633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7634 $as_echo "$ac_try_echo") >&5
7635   (eval "$ac_compile") 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } && {
7642          test -z "$ac_c_werror_flag" ||
7643          test ! -s conftest.err
7644        } && test -s conftest.$ac_objext; then
7645   ac_hi=$ac_mid
7646 else
7647   $as_echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650         ac_lo=`expr '(' $ac_mid ')' + 1`
7651 fi
7652
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 done
7655 case $ac_lo in
7656 ?*) size_t_bits_minus_1=$ac_lo;;
7657 '') size_t_bits_minus_1= ;;
7658 esac
7659 else
7660   cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666 #include <stddef.h>
7667 #include <limits.h>
7668 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
7669 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
7670 #include <stdio.h>
7671 #include <stdlib.h>
7672 int
7673 main ()
7674 {
7675
7676   FILE *f = fopen ("conftest.val", "w");
7677   if (! f)
7678     return 1;
7679   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
7680     {
7681       long int i = longval ();
7682       if (i != (sizeof (size_t) * CHAR_BIT - 1))
7683         return 1;
7684       fprintf (f, "%ld", i);
7685     }
7686   else
7687     {
7688       unsigned long int i = ulongval ();
7689       if (i != (sizeof (size_t) * CHAR_BIT - 1))
7690         return 1;
7691       fprintf (f, "%lu", i);
7692     }
7693   /* Do not output a trailing newline, as this causes \r\n confusion
7694      on some platforms.  */
7695   return ferror (f) || fclose (f) != 0;
7696
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest$ac_exeext
7702 if { (ac_try="$ac_link"
7703 case "(($ac_try" in
7704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705   *) ac_try_echo=$ac_try;;
7706 esac
7707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7708 $as_echo "$ac_try_echo") >&5
7709   (eval "$ac_link") 2>&5
7710   ac_status=$?
7711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7713   { (case "(($ac_try" in
7714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715   *) ac_try_echo=$ac_try;;
7716 esac
7717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719   (eval "$ac_try") 2>&5
7720   ac_status=$?
7721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   size_t_bits_minus_1=`cat conftest.val`
7724 else
7725   $as_echo "$as_me: program exited with status $ac_status" >&5
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ( exit $ac_status )
7730 size_t_bits_minus_1=
7731 fi
7732 rm -rf conftest.dSYM
7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 rm -f conftest.val
7736       if test "$cross_compiling" = yes; then
7737   # Depending upon the size, compute the lo and hi bounds.
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h.  */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h.  */
7744 #include <stddef.h>
7745 int
7746 main ()
7747 {
7748 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7749 test_array [0] = 0
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759   *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763   (eval "$ac_compile") 2>conftest.er1
7764   ac_status=$?
7765   grep -v '^ *+' conftest.er1 >conftest.err
7766   rm -f conftest.er1
7767   cat conftest.err >&5
7768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); } && {
7770          test -z "$ac_c_werror_flag" ||
7771          test ! -s conftest.err
7772        } && test -s conftest.$ac_objext; then
7773   ac_lo=0 ac_mid=0
7774   while :; do
7775     cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781 #include <stddef.h>
7782 int
7783 main ()
7784 {
7785 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7786 test_array [0] = 0
7787
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800   (eval "$ac_compile") 2>conftest.er1
7801   ac_status=$?
7802   grep -v '^ *+' conftest.er1 >conftest.err
7803   rm -f conftest.er1
7804   cat conftest.err >&5
7805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); } && {
7807          test -z "$ac_c_werror_flag" ||
7808          test ! -s conftest.err
7809        } && test -s conftest.$ac_objext; then
7810   ac_hi=$ac_mid; break
7811 else
7812   $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815         ac_lo=`expr $ac_mid + 1`
7816                         if test $ac_lo -le $ac_mid; then
7817                           ac_lo= ac_hi=
7818                           break
7819                         fi
7820                         ac_mid=`expr 2 '*' $ac_mid + 1`
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824   done
7825 else
7826   $as_echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829         cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835 #include <stddef.h>
7836 int
7837 main ()
7838 {
7839 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7840 test_array [0] = 0
7841
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (ac_try="$ac_compile"
7848 case "(($ac_try" in
7849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850   *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854   (eval "$ac_compile") 2>conftest.er1
7855   ac_status=$?
7856   grep -v '^ *+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } && {
7861          test -z "$ac_c_werror_flag" ||
7862          test ! -s conftest.err
7863        } && test -s conftest.$ac_objext; then
7864   ac_hi=-1 ac_mid=-1
7865   while :; do
7866     cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872 #include <stddef.h>
7873 int
7874 main ()
7875 {
7876 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7877 test_array [0] = 0
7878
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7885 case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891   (eval "$ac_compile") 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } && {
7898          test -z "$ac_c_werror_flag" ||
7899          test ! -s conftest.err
7900        } && test -s conftest.$ac_objext; then
7901   ac_lo=$ac_mid; break
7902 else
7903   $as_echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906         ac_hi=`expr '(' $ac_mid ')' - 1`
7907                         if test $ac_mid -le $ac_hi; then
7908                           ac_lo= ac_hi=
7909                           break
7910                         fi
7911                         ac_mid=`expr 2 '*' $ac_mid`
7912 fi
7913
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915   done
7916 else
7917   $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920         ac_lo= ac_hi=
7921 fi
7922
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 # Binary search between lo and hi bounds.
7928 while test "x$ac_lo" != "x$ac_hi"; do
7929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7930   cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936 #include <stddef.h>
7937 int
7938 main ()
7939 {
7940 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7941 test_array [0] = 0
7942
7943   ;
7944   return 0;
7945 }
7946 _ACEOF
7947 rm -f conftest.$ac_objext
7948 if { (ac_try="$ac_compile"
7949 case "(($ac_try" in
7950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951   *) ac_try_echo=$ac_try;;
7952 esac
7953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954 $as_echo "$ac_try_echo") >&5
7955   (eval "$ac_compile") 2>conftest.er1
7956   ac_status=$?
7957   grep -v '^ *+' conftest.er1 >conftest.err
7958   rm -f conftest.er1
7959   cat conftest.err >&5
7960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } && {
7962          test -z "$ac_c_werror_flag" ||
7963          test ! -s conftest.err
7964        } && test -s conftest.$ac_objext; then
7965   ac_hi=$ac_mid
7966 else
7967   $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970         ac_lo=`expr '(' $ac_mid ')' + 1`
7971 fi
7972
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 done
7975 case $ac_lo in
7976 ?*) fits_in_uint=$ac_lo;;
7977 '') fits_in_uint= ;;
7978 esac
7979 else
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 #include <stddef.h>
7987 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7988 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7989 #include <stdio.h>
7990 #include <stdlib.h>
7991 int
7992 main ()
7993 {
7994
7995   FILE *f = fopen ("conftest.val", "w");
7996   if (! f)
7997     return 1;
7998   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7999     {
8000       long int i = longval ();
8001       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8002         return 1;
8003       fprintf (f, "%ld", i);
8004     }
8005   else
8006     {
8007       unsigned long int i = ulongval ();
8008       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8009         return 1;
8010       fprintf (f, "%lu", i);
8011     }
8012   /* Do not output a trailing newline, as this causes \r\n confusion
8013      on some platforms.  */
8014   return ferror (f) || fclose (f) != 0;
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028   (eval "$ac_link") 2>&5
8029   ac_status=$?
8030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8032   { (case "(($ac_try" in
8033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034   *) ac_try_echo=$ac_try;;
8035 esac
8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037 $as_echo "$ac_try_echo") >&5
8038   (eval "$ac_try") 2>&5
8039   ac_status=$?
8040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; }; then
8042   fits_in_uint=`cat conftest.val`
8043 else
8044   $as_echo "$as_me: program exited with status $ac_status" >&5
8045 $as_echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 ( exit $ac_status )
8049 fits_in_uint=
8050 fi
8051 rm -rf conftest.dSYM
8052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8053 fi
8054 rm -f conftest.val
8055       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8056         if test $fits_in_uint = 1; then
8057                               cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063 #include <stddef.h>
8064             extern size_t foo;
8065             extern unsigned long foo;
8066
8067 int
8068 main ()
8069 {
8070
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083   (eval "$ac_compile") 2>conftest.er1
8084   ac_status=$?
8085   grep -v '^ *+' conftest.er1 >conftest.err
8086   rm -f conftest.er1
8087   cat conftest.err >&5
8088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } && {
8090          test -z "$ac_c_werror_flag" ||
8091          test ! -s conftest.err
8092        } && test -s conftest.$ac_objext; then
8093   fits_in_uint=0
8094 else
8095   $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098
8099 fi
8100
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102         fi
8103                                 if test $fits_in_uint = 1; then
8104           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8105         else
8106           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8107         fi
8108       else
8109                 gl_cv_size_max='((size_t)~(size_t)0)'
8110       fi
8111     fi
8112
8113 fi
8114
8115   { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
8116 $as_echo "$gl_cv_size_max" >&6; }
8117   if test "$gl_cv_size_max" != yes; then
8118
8119 cat >>confdefs.h <<_ACEOF
8120 #define SIZE_MAX $gl_cv_size_max
8121 _ACEOF
8122
8123   fi
8124
8125
8126 { $as_echo "$as_me:$LINENO: checking how to copy va_list" >&5
8127 $as_echo_n "checking how to copy va_list... " >&6; }
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134
8135 #include <stdarg.h>
8136
8137 int
8138 main ()
8139 {
8140
8141    va_list ap1, ap2;
8142    va_copy(ap1, ap2);
8143
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (ac_try="$ac_link"
8150 case "(($ac_try" in
8151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152   *) ac_try_echo=$ac_try;;
8153 esac
8154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155 $as_echo "$ac_try_echo") >&5
8156   (eval "$ac_link") 2>conftest.er1
8157   ac_status=$?
8158   grep -v '^ *+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } && {
8163          test -z "$ac_c_werror_flag" ||
8164          test ! -s conftest.err
8165        } && test -s conftest$ac_exeext && {
8166          test "$cross_compiling" = yes ||
8167          $as_test_x conftest$ac_exeext
8168        }; then
8169   { $as_echo "$as_me:$LINENO: result: va_copy" >&5
8170 $as_echo "va_copy" >&6; }
8171 else
8172   $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175         cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 #include <stdarg.h>
8183
8184 int
8185 main ()
8186 {
8187
8188    va_list ap1, ap2;
8189    __va_copy(ap1, ap2);
8190
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199   *) ac_try_echo=$ac_try;;
8200 esac
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203   (eval "$ac_link") 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } && {
8210          test -z "$ac_c_werror_flag" ||
8211          test ! -s conftest.err
8212        } && test -s conftest$ac_exeext && {
8213          test "$cross_compiling" = yes ||
8214          $as_test_x conftest$ac_exeext
8215        }; then
8216   cat >>confdefs.h <<\_ACEOF
8217 #define va_copy __va_copy
8218 _ACEOF
8219  { $as_echo "$as_me:$LINENO: result: __va_copy" >&5
8220 $as_echo "__va_copy" >&6; }
8221 else
8222   $as_echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225         cat >>confdefs.h <<\_ACEOF
8226 #define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))
8227 _ACEOF
8228
8229     { $as_echo "$as_me:$LINENO: result: memcpy" >&5
8230 $as_echo "memcpy" >&6; }
8231 fi
8232
8233 rm -rf conftest.dSYM
8234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8235       conftest$ac_exeext conftest.$ac_ext
8236
8237 fi
8238
8239 rm -rf conftest.dSYM
8240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8241       conftest$ac_exeext conftest.$ac_ext
8242
8243
8244
8245
8246
8247
8248 for ac_func in memmove memset setlocale strtol gettimeofday
8249 do
8250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8252 $as_echo_n "checking for $ac_func... " >&6; }
8253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8254   $as_echo_n "(cached) " >&6
8255 else
8256   cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8264 #define $ac_func innocuous_$ac_func
8265
8266 /* System header to define __stub macros and hopefully few prototypes,
8267     which can conflict with char $ac_func (); below.
8268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269     <limits.h> exists even on freestanding compilers.  */
8270
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276
8277 #undef $ac_func
8278
8279 /* Override any GCC internal prototype to avoid an error.
8280    Use char because int might match the return type of a GCC
8281    builtin and then its argument prototype would still apply.  */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 char $ac_func ();
8286 /* The GNU C library defines this for functions which it implements
8287     to always fail with ENOSYS.  Some functions are actually named
8288     something starting with __ and the normal name is an alias.  */
8289 #if defined __stub_$ac_func || defined __stub___$ac_func
8290 choke me
8291 #endif
8292
8293 int
8294 main ()
8295 {
8296 return $ac_func ();
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8308 $as_echo "$ac_try_echo") >&5
8309   (eval "$ac_link") 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } && {
8316          test -z "$ac_c_werror_flag" ||
8317          test ! -s conftest.err
8318        } && test -s conftest$ac_exeext && {
8319          test "$cross_compiling" = yes ||
8320          $as_test_x conftest$ac_exeext
8321        }; then
8322   eval "$as_ac_var=yes"
8323 else
8324   $as_echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327         eval "$as_ac_var=no"
8328 fi
8329
8330 rm -rf conftest.dSYM
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332       conftest$ac_exeext conftest.$ac_ext
8333 fi
8334 ac_res=`eval 'as_val=${'$as_ac_var'}
8335                  $as_echo "$as_val"'`
8336                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8337 $as_echo "$ac_res" >&6; }
8338 as_val=`eval 'as_val=${'$as_ac_var'}
8339                  $as_echo "$as_val"'`
8340    if test "x$as_val" = x""yes; then
8341   cat >>confdefs.h <<_ACEOF
8342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8343 _ACEOF
8344
8345 fi
8346 done
8347
8348
8349 case $host in
8350 alpha*-*-*)
8351   saved_CFLAGS="$CFLAGS"
8352   { $as_echo "$as_me:$LINENO: checking for IEEE-754 switches" >&5
8353 $as_echo_n "checking for IEEE-754 switches... " >&6; }
8354 if test "${mpfr_cv_ieee_switches+set}" = set; then
8355   $as_echo_n "(cached) " >&6
8356 else
8357
8358   if test -n "$GCC"; then
8359     mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
8360   else
8361     mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
8362   fi
8363   CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 int
8372 main ()
8373 {
8374
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383   *) ac_try_echo=$ac_try;;
8384 esac
8385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8386 $as_echo "$ac_try_echo") >&5
8387   (eval "$ac_compile") 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } && {
8394          test -z "$ac_c_werror_flag" ||
8395          test ! -s conftest.err
8396        } && test -s conftest.$ac_objext; then
8397   :
8398 else
8399   $as_echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402         mpfr_cv_ieee_switches="none"
8403 fi
8404
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406
8407 fi
8408 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_ieee_switches" >&5
8409 $as_echo "$mpfr_cv_ieee_switches" >&6; }
8410   if test "$mpfr_cv_ieee_switches" = "none"; then
8411     CFLAGS="$saved_CFLAGS"
8412   else
8413     CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
8414   fi
8415 esac
8416
8417 case $host in
8418 x86_64-*linux*)
8419   case `sed -n '/^vendor_id/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
8420     *Intel*)
8421 cat >>confdefs.h <<\_ACEOF
8422 #define HAVE_HOST_CORE2 1
8423 _ACEOF
8424  ;;
8425   esac
8426 esac
8427
8428 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
8429 $as_echo_n "checking for long long int... " >&6; }
8430 if test "${ac_cv_type_long_long_int+set}" = set; then
8431   $as_echo_n "(cached) " >&6
8432 else
8433   ac_cv_type_long_long_int=no
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 $ac_includes_default
8441 int
8442 main ()
8443 {
8444 if (sizeof (long long int))
8445        return 0;
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (ac_try="$ac_compile"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458   (eval "$ac_compile") 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } && {
8465          test -z "$ac_c_werror_flag" ||
8466          test ! -s conftest.err
8467        } && test -s conftest.$ac_objext; then
8468   cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h.  */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h.  */
8474 $ac_includes_default
8475 int
8476 main ()
8477 {
8478 if (sizeof ((long long int)))
8479           return 0;
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492   (eval "$ac_compile") 2>conftest.er1
8493   ac_status=$?
8494   grep -v '^ *+' conftest.er1 >conftest.err
8495   rm -f conftest.er1
8496   cat conftest.err >&5
8497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } && {
8499          test -z "$ac_c_werror_flag" ||
8500          test ! -s conftest.err
8501        } && test -s conftest.$ac_objext; then
8502   :
8503 else
8504   $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507         ac_cv_type_long_long_int=yes
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 else
8512   $as_echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 fi
8520 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8521 $as_echo "$ac_cv_type_long_long_int" >&6; }
8522 if test "x$ac_cv_type_long_long_int" = x""yes; then
8523
8524 cat >>confdefs.h <<\_ACEOF
8525 #define HAVE_LONG_LONG 1
8526 _ACEOF
8527
8528 fi
8529
8530
8531 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
8532 $as_echo_n "checking for intmax_t... " >&6; }
8533 if test "${ac_cv_type_intmax_t+set}" = set; then
8534   $as_echo_n "(cached) " >&6
8535 else
8536   ac_cv_type_intmax_t=no
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543 $ac_includes_default
8544 int
8545 main ()
8546 {
8547 if (sizeof (intmax_t))
8548        return 0;
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561   (eval "$ac_compile") 2>conftest.er1
8562   ac_status=$?
8563   grep -v '^ *+' conftest.er1 >conftest.err
8564   rm -f conftest.er1
8565   cat conftest.err >&5
8566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } && {
8568          test -z "$ac_c_werror_flag" ||
8569          test ! -s conftest.err
8570        } && test -s conftest.$ac_objext; then
8571   cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h.  */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h.  */
8577 $ac_includes_default
8578 int
8579 main ()
8580 {
8581 if (sizeof ((intmax_t)))
8582           return 0;
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595   (eval "$ac_compile") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_c_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest.$ac_objext; then
8605   :
8606 else
8607   $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610         ac_cv_type_intmax_t=yes
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 else
8615   $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8624 $as_echo "$ac_cv_type_intmax_t" >&6; }
8625 if test "x$ac_cv_type_intmax_t" = x""yes; then
8626
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_INTMAX_T 1
8629 _ACEOF
8630
8631
8632 fi
8633
8634
8635 { $as_echo "$as_me:$LINENO: checking for union fpc_csr" >&5
8636 $as_echo_n "checking for union fpc_csr... " >&6; }
8637 if test "${ac_cv_type_union_fpc_csr+set}" = set; then
8638   $as_echo_n "(cached) " >&6
8639 else
8640   ac_cv_type_union_fpc_csr=no
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647
8648 #if HAVE_SYS_FPU_H
8649 #  include <sys/fpu.h>
8650 #endif
8651
8652
8653 int
8654 main ()
8655 {
8656 if (sizeof (union fpc_csr))
8657        return 0;
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (ac_try="$ac_compile"
8664 case "(($ac_try" in
8665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666   *) ac_try_echo=$ac_try;;
8667 esac
8668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8669 $as_echo "$ac_try_echo") >&5
8670   (eval "$ac_compile") 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } && {
8677          test -z "$ac_c_werror_flag" ||
8678          test ! -s conftest.err
8679        } && test -s conftest.$ac_objext; then
8680   cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686
8687 #if HAVE_SYS_FPU_H
8688 #  include <sys/fpu.h>
8689 #endif
8690
8691
8692 int
8693 main ()
8694 {
8695 if (sizeof ((union fpc_csr)))
8696           return 0;
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709   (eval "$ac_compile") 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } && {
8716          test -z "$ac_c_werror_flag" ||
8717          test ! -s conftest.err
8718        } && test -s conftest.$ac_objext; then
8719   :
8720 else
8721   $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724         ac_cv_type_union_fpc_csr=yes
8725 fi
8726
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 else
8729   $as_echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732
8733 fi
8734
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_fpc_csr" >&5
8738 $as_echo "$ac_cv_type_union_fpc_csr" >&6; }
8739 if test "x$ac_cv_type_union_fpc_csr" = x""yes; then
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define HAVE_FPC_CSR 1
8743 _ACEOF
8744
8745 fi
8746
8747
8748 { $as_echo "$as_me:$LINENO: checking for fesetround" >&5
8749 $as_echo_n "checking for fesetround... " >&6; }
8750 if test "${mpfr_cv_have_fesetround+set}" = set; then
8751   $as_echo_n "(cached) " >&6
8752 else
8753
8754 saved_LIBS="$LIBS"
8755 LIBS="$LIBS $MPFR_LIBM"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h.  */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h.  */
8762 #include <fenv.h>
8763 int
8764 main ()
8765 {
8766 fesetround(FE_TONEAREST);
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (ac_try="$ac_link"
8773 case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779   (eval "$ac_link") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && {
8786          test -z "$ac_c_werror_flag" ||
8787          test ! -s conftest.err
8788        } && test -s conftest$ac_exeext && {
8789          test "$cross_compiling" = yes ||
8790          $as_test_x conftest$ac_exeext
8791        }; then
8792   mpfr_cv_have_fesetround=yes
8793 else
8794   $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797         mpfr_cv_have_fesetround=no
8798 fi
8799
8800 rm -rf conftest.dSYM
8801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802       conftest$ac_exeext conftest.$ac_ext
8803 LIBS="$saved_LIBS"
8804
8805 fi
8806 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_have_fesetround" >&5
8807 $as_echo "$mpfr_cv_have_fesetround" >&6; }
8808 if test "$mpfr_cv_have_fesetround" = "yes"; then
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define MPFR_HAVE_FESETROUND 1
8812 _ACEOF
8813
8814 fi
8815
8816 if test -n "$GCC"; then
8817   { $as_echo "$as_me:$LINENO: checking for gcc float-conversion bug" >&5
8818 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
8819 if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then
8820   $as_echo_n "(cached) " >&6
8821 else
8822
8823   saved_LIBS="$LIBS"
8824   LIBS="$LIBS $MPFR_LIBM"
8825   if test "$cross_compiling" = yes; then
8826   mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
8827 else
8828   cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834
8835 #include <float.h>
8836 #ifdef MPFR_HAVE_FESETROUND
8837 #include <fenv.h>
8838 #endif
8839 static double get_max (void);
8840 int main() {
8841   double x = 0.5;
8842   int i;
8843   for (i = 1; i <= 11; i++)
8844     x *= x;
8845   if (x != 0)
8846     return 1;
8847 #ifdef MPFR_HAVE_FESETROUND
8848   /* Useful test for the G4 PowerPC */
8849   fesetround(FE_TOWARDZERO);
8850   x = get_max ();
8851   x *= 2.0;
8852   if (x != get_max ())
8853     return 1;
8854 #endif
8855   return 0;
8856 }
8857 static double get_max (void) { return DBL_MAX; }
8858
8859 _ACEOF
8860 rm -f conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8862 case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868   (eval "$ac_link") 2>&5
8869   ac_status=$?
8870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8872   { (case "(($ac_try" in
8873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874   *) ac_try_echo=$ac_try;;
8875 esac
8876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8877 $as_echo "$ac_try_echo") >&5
8878   (eval "$ac_try") 2>&5
8879   ac_status=$?
8880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   mpfr_cv_gcc_floatconv_bug="no"
8883 else
8884   $as_echo "$as_me: program exited with status $ac_status" >&5
8885 $as_echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ( exit $ac_status )
8889 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
8890 fi
8891 rm -rf conftest.dSYM
8892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8893 fi
8894
8895
8896   LIBS="$saved_LIBS"
8897
8898 fi
8899 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_gcc_floatconv_bug" >&5
8900 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
8901   if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
8902     CFLAGS="$CFLAGS -ffloat-store"
8903   fi
8904 fi
8905
8906 { $as_echo "$as_me:$LINENO: checking for denormalized numbers" >&5
8907 $as_echo_n "checking for denormalized numbers... " >&6; }
8908 if test "${mpfr_cv_have_denorms+set}" = set; then
8909   $as_echo_n "(cached) " >&6
8910 else
8911
8912 if test "$cross_compiling" = yes; then
8913   mpfr_cv_have_denorms=no
8914 else
8915   cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h.  */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h.  */
8921
8922 #include <math.h>
8923 #include <stdio.h>
8924 int main() {
8925   double x = 2.22507385850720138309e-308;
8926   fprintf (stderr, "%e\n", x / 2.0);
8927   return 2.0 * (x / 2.0) != x;
8928 }
8929
8930 _ACEOF
8931 rm -f conftest$ac_exeext
8932 if { (ac_try="$ac_link"
8933 case "(($ac_try" in
8934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935   *) ac_try_echo=$ac_try;;
8936 esac
8937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8938 $as_echo "$ac_try_echo") >&5
8939   (eval "$ac_link") 2>&5
8940   ac_status=$?
8941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8943   { (case "(($ac_try" in
8944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945   *) ac_try_echo=$ac_try;;
8946 esac
8947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948 $as_echo "$ac_try_echo") >&5
8949   (eval "$ac_try") 2>&5
8950   ac_status=$?
8951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   mpfr_cv_have_denorms=yes
8954 else
8955   $as_echo "$as_me: program exited with status $ac_status" >&5
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959 ( exit $ac_status )
8960 mpfr_cv_have_denorms=no
8961 fi
8962 rm -rf conftest.dSYM
8963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964 fi
8965
8966
8967
8968 fi
8969 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_have_denorms" >&5
8970 $as_echo "$mpfr_cv_have_denorms" >&6; }
8971 if test "$mpfr_cv_have_denorms" = "yes"; then
8972
8973 cat >>confdefs.h <<\_ACEOF
8974 #define HAVE_DENORMS 1
8975 _ACEOF
8976
8977 fi
8978
8979 { $as_echo "$as_me:$LINENO: checking if NAN == NAN" >&5
8980 $as_echo_n "checking if NAN == NAN... " >&6; }
8981 if test "${mpfr_cv_nanisnan+set}" = set; then
8982   $as_echo_n "(cached) " >&6
8983 else
8984
8985 if test "$cross_compiling" = yes; then
8986   mpfr_cv_nanisnan="cannot test, assume no"
8987 else
8988   cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h.  */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h.  */
8994
8995 #include <stdio.h>
8996 #include <math.h>
8997 #ifndef NAN
8998 # define NAN (0.0/0.0)
8999 #endif
9000 int main() {
9001   double d;
9002   d = NAN;
9003   return d != d;
9004 }
9005
9006 _ACEOF
9007 rm -f conftest$ac_exeext
9008 if { (ac_try="$ac_link"
9009 case "(($ac_try" in
9010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011   *) ac_try_echo=$ac_try;;
9012 esac
9013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9014 $as_echo "$ac_try_echo") >&5
9015   (eval "$ac_link") 2>&5
9016   ac_status=$?
9017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9019   { (case "(($ac_try" in
9020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021   *) ac_try_echo=$ac_try;;
9022 esac
9023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024 $as_echo "$ac_try_echo") >&5
9025   (eval "$ac_try") 2>&5
9026   ac_status=$?
9027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); }; }; then
9029   mpfr_cv_nanisnan="yes"
9030 else
9031   $as_echo "$as_me: program exited with status $ac_status" >&5
9032 $as_echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 ( exit $ac_status )
9036 mpfr_cv_nanisnan="no"
9037 fi
9038 rm -rf conftest.dSYM
9039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9040 fi
9041
9042
9043
9044 fi
9045 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_nanisnan" >&5
9046 $as_echo "$mpfr_cv_nanisnan" >&6; }
9047 if test "$mpfr_cv_nanisnan" = "yes"; then
9048
9049 cat >>confdefs.h <<\_ACEOF
9050 #define MPFR_NANISNAN 1
9051 _ACEOF
9052
9053   { $as_echo "$as_me:$LINENO: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
9054 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
9055   { $as_echo "$as_me:$LINENO: WARNING: your compiler optimizes floating-point expressions in an" >&5
9056 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
9057   { $as_echo "$as_me:$LINENO: WARNING: unsafe way because some option, such as -ffast-math or" >&5
9058 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
9059   { $as_echo "$as_me:$LINENO: WARNING: -fast (depending on the compiler), has been used.  You" >&5
9060 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used.  You" >&2;}
9061   { $as_echo "$as_me:$LINENO: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
9062 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
9063   { $as_echo "$as_me:$LINENO: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
9064 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
9065   { $as_echo "$as_me:$LINENO: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
9066 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
9067   { $as_echo "$as_me:$LINENO: WARNING: If you did not use such an option, please send us a bug" >&5
9068 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
9069   { $as_echo "$as_me:$LINENO: WARNING: report so that we can try to find a workaround for your" >&5
9070 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
9071   { $as_echo "$as_me:$LINENO: WARNING: platform and/or document the behavior." >&5
9072 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
9073 fi
9074
9075 { $as_echo "$as_me:$LINENO: checking if charset has consecutive values" >&5
9076 $as_echo_n "checking if charset has consecutive values... " >&6; }
9077 if test "$cross_compiling" = yes; then
9078   { $as_echo "$as_me:$LINENO: result: can not test" >&5
9079 $as_echo "can not test" >&6; }
9080 else
9081   cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087
9088 char *number = "0123456789";
9089 char *lower  = "abcdefghijklmnopqrstuvwxyz";
9090 char *upper  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
9091
9092 int
9093 main ()
9094 {
9095
9096  int i;
9097  unsigned char *p;
9098  for (p = (unsigned char*) number, i = 0; i < 9; i++)
9099    if ( (*p)+1 != *(p+1) ) return 1;
9100  for (p = (unsigned char*) lower, i = 0; i < 25; i++)
9101    if ( (*p)+1 != *(p+1) ) return 1;
9102  for (p = (unsigned char*) upper, i = 0; i < 25; i++)
9103    if ( (*p)+1 != *(p+1) ) return 1;
9104
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest$ac_exeext
9110 if { (ac_try="$ac_link"
9111 case "(($ac_try" in
9112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113   *) ac_try_echo=$ac_try;;
9114 esac
9115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9116 $as_echo "$ac_try_echo") >&5
9117   (eval "$ac_link") 2>&5
9118   ac_status=$?
9119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9121   { (case "(($ac_try" in
9122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123   *) ac_try_echo=$ac_try;;
9124 esac
9125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9126 $as_echo "$ac_try_echo") >&5
9127   (eval "$ac_try") 2>&5
9128   ac_status=$?
9129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; }; then
9131   { $as_echo "$as_me:$LINENO: result: yes" >&5
9132 $as_echo "yes" >&6; }
9133 else
9134   $as_echo "$as_me: program exited with status $ac_status" >&5
9135 $as_echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ( exit $ac_status )
9139
9140  { $as_echo "$as_me:$LINENO: result: no" >&5
9141 $as_echo "no" >&6; }
9142
9143 cat >>confdefs.h <<\_ACEOF
9144 #define MPFR_NO_CONSECUTIVE_CHARSET 1
9145 _ACEOF
9146
9147
9148 fi
9149 rm -rf conftest.dSYM
9150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9151 fi
9152
9153
9154
9155 saved_LIBS="$LIBS"
9156 LIBS="$LIBS $MPFR_LIBM"
9157 { $as_echo "$as_me:$LINENO: checking for math/round" >&5
9158 $as_echo_n "checking for math/round... " >&6; }
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h.  */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h.  */
9165
9166 #include <math.h>
9167 int f (double (*func)(double)) { return 0;}
9168
9169 int
9170 main ()
9171 {
9172
9173  double a = 17.42;
9174  a = f (round);
9175  return 0;
9176
9177   ;
9178   return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9183 case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189   (eval "$ac_link") 2>conftest.er1
9190   ac_status=$?
9191   grep -v '^ *+' conftest.er1 >conftest.err
9192   rm -f conftest.er1
9193   cat conftest.err >&5
9194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } && {
9196          test -z "$ac_c_werror_flag" ||
9197          test ! -s conftest.err
9198        } && test -s conftest$ac_exeext && {
9199          test "$cross_compiling" = yes ||
9200          $as_test_x conftest$ac_exeext
9201        }; then
9202
9203    { $as_echo "$as_me:$LINENO: result: yes" >&5
9204 $as_echo "yes" >&6; }
9205
9206 cat >>confdefs.h <<\_ACEOF
9207 #define HAVE_ROUND 1
9208 _ACEOF
9209
9210
9211 else
9212   $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215         { $as_echo "$as_me:$LINENO: result: no" >&5
9216 $as_echo "no" >&6; }
9217 fi
9218
9219 rm -rf conftest.dSYM
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221       conftest$ac_exeext conftest.$ac_ext
9222
9223 { $as_echo "$as_me:$LINENO: checking for math/trunc" >&5
9224 $as_echo_n "checking for math/trunc... " >&6; }
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231
9232 #include <math.h>
9233 int f (double (*func)(double)) { return 0;}
9234
9235 int
9236 main ()
9237 {
9238
9239  double a = 17.42;
9240  a = f(trunc);
9241  return 0;
9242
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9249 case "(($ac_try" in
9250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251   *) ac_try_echo=$ac_try;;
9252 esac
9253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9254 $as_echo "$ac_try_echo") >&5
9255   (eval "$ac_link") 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } && {
9262          test -z "$ac_c_werror_flag" ||
9263          test ! -s conftest.err
9264        } && test -s conftest$ac_exeext && {
9265          test "$cross_compiling" = yes ||
9266          $as_test_x conftest$ac_exeext
9267        }; then
9268
9269    { $as_echo "$as_me:$LINENO: result: yes" >&5
9270 $as_echo "yes" >&6; }
9271
9272 cat >>confdefs.h <<\_ACEOF
9273 #define HAVE_TRUNC 1
9274 _ACEOF
9275
9276
9277 else
9278   $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281         { $as_echo "$as_me:$LINENO: result: no" >&5
9282 $as_echo "no" >&6; }
9283 fi
9284
9285 rm -rf conftest.dSYM
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287       conftest$ac_exeext conftest.$ac_ext
9288
9289 { $as_echo "$as_me:$LINENO: checking for math/floor" >&5
9290 $as_echo_n "checking for math/floor... " >&6; }
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297
9298 #include <math.h>
9299 int f (double (*func)(double)) { return 0;}
9300
9301 int
9302 main ()
9303 {
9304
9305  double a = 17.42;
9306  a = f(floor);
9307  return 0;
9308
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9320 $as_echo "$ac_try_echo") >&5
9321   (eval "$ac_link") 2>conftest.er1
9322   ac_status=$?
9323   grep -v '^ *+' conftest.er1 >conftest.err
9324   rm -f conftest.er1
9325   cat conftest.err >&5
9326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } && {
9328          test -z "$ac_c_werror_flag" ||
9329          test ! -s conftest.err
9330        } && test -s conftest$ac_exeext && {
9331          test "$cross_compiling" = yes ||
9332          $as_test_x conftest$ac_exeext
9333        }; then
9334
9335    { $as_echo "$as_me:$LINENO: result: yes" >&5
9336 $as_echo "yes" >&6; }
9337
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_FLOOR 1
9340 _ACEOF
9341
9342
9343 else
9344   $as_echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347         { $as_echo "$as_me:$LINENO: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350
9351 rm -rf conftest.dSYM
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353       conftest$ac_exeext conftest.$ac_ext
9354
9355 { $as_echo "$as_me:$LINENO: checking for math/ceil" >&5
9356 $as_echo_n "checking for math/ceil... " >&6; }
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h.  */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h.  */
9363
9364 #include <math.h>
9365 int f (double (*func)(double)) { return 0;}
9366
9367 int
9368 main ()
9369 {
9370
9371  double a = 17.42;
9372  a = f(ceil);
9373  return 0;
9374
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (ac_try="$ac_link"
9381 case "(($ac_try" in
9382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383   *) ac_try_echo=$ac_try;;
9384 esac
9385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386 $as_echo "$ac_try_echo") >&5
9387   (eval "$ac_link") 2>conftest.er1
9388   ac_status=$?
9389   grep -v '^ *+' conftest.er1 >conftest.err
9390   rm -f conftest.er1
9391   cat conftest.err >&5
9392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } && {
9394          test -z "$ac_c_werror_flag" ||
9395          test ! -s conftest.err
9396        } && test -s conftest$ac_exeext && {
9397          test "$cross_compiling" = yes ||
9398          $as_test_x conftest$ac_exeext
9399        }; then
9400
9401    { $as_echo "$as_me:$LINENO: result: yes" >&5
9402 $as_echo "yes" >&6; }
9403
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_CEIL 1
9406 _ACEOF
9407
9408
9409 else
9410   $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413         { $as_echo "$as_me:$LINENO: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417 rm -rf conftest.dSYM
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419       conftest$ac_exeext conftest.$ac_ext
9420
9421 { $as_echo "$as_me:$LINENO: checking for math/rint" >&5
9422 $as_echo_n "checking for math/rint... " >&6; }
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429
9430 #include <math.h>
9431 int f (double (*func)(double)) { return 0;}
9432
9433 int
9434 main ()
9435 {
9436
9437  double a = 17.42;
9438  a = f(nearbyint);
9439  return 0;
9440
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9447 case "(($ac_try" in
9448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449   *) ac_try_echo=$ac_try;;
9450 esac
9451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9452 $as_echo "$ac_try_echo") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } && {
9460          test -z "$ac_c_werror_flag" ||
9461          test ! -s conftest.err
9462        } && test -s conftest$ac_exeext && {
9463          test "$cross_compiling" = yes ||
9464          $as_test_x conftest$ac_exeext
9465        }; then
9466
9467    { $as_echo "$as_me:$LINENO: result: yes" >&5
9468 $as_echo "yes" >&6; }
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_NEARBYINT 1
9472 _ACEOF
9473
9474
9475 else
9476   $as_echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9478
9479         { $as_echo "$as_me:$LINENO: result: no" >&5
9480 $as_echo "no" >&6; }
9481 fi
9482
9483 rm -rf conftest.dSYM
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485       conftest$ac_exeext conftest.$ac_ext
9486
9487 LIBS="$saved_LIBS"
9488
9489
9490
9491
9492 { $as_echo "$as_me:$LINENO: checking for long double" >&5
9493 $as_echo_n "checking for long double... " >&6; }
9494 if test "${ac_cv_type_long_double+set}" = set; then
9495   $as_echo_n "(cached) " >&6
9496 else
9497   ac_cv_type_long_double=no
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504 $ac_includes_default
9505 int
9506 main ()
9507 {
9508 if (sizeof (long double))
9509        return 0;
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (ac_try="$ac_compile"
9516 case "(($ac_try" in
9517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518   *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522   (eval "$ac_compile") 2>conftest.er1
9523   ac_status=$?
9524   grep -v '^ *+' conftest.er1 >conftest.err
9525   rm -f conftest.er1
9526   cat conftest.err >&5
9527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } && {
9529          test -z "$ac_c_werror_flag" ||
9530          test ! -s conftest.err
9531        } && test -s conftest.$ac_objext; then
9532   cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538 $ac_includes_default
9539 int
9540 main ()
9541 {
9542 if (sizeof ((long double)))
9543           return 0;
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9550 case "(($ac_try" in
9551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552   *) ac_try_echo=$ac_try;;
9553 esac
9554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9555 $as_echo "$ac_try_echo") >&5
9556   (eval "$ac_compile") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } && {
9563          test -z "$ac_c_werror_flag" ||
9564          test ! -s conftest.err
9565        } && test -s conftest.$ac_objext; then
9566   :
9567 else
9568   $as_echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571         ac_cv_type_long_double=yes
9572 fi
9573
9574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575 else
9576   $as_echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579
9580 fi
9581
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583 fi
9584 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
9585 $as_echo "$ac_cv_type_long_double" >&6; }
9586 if test "x$ac_cv_type_long_double" = x""yes; then
9587
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LONG_DOUBLE 1
9590 _ACEOF
9591
9592
9593 fi
9594
9595 { $as_echo "$as_me:$LINENO: checking format of \`long double' floating point" >&5
9596 $as_echo_n "checking format of \`long double' floating point... " >&6; }
9597 if test "${mpfr_cv_c_long_double_format+set}" = set; then
9598   $as_echo_n "(cached) " >&6
9599 else
9600   mpfr_cv_c_long_double_format=unknown
9601 if test "$ac_cv_type_long_double" != yes; then
9602   mpfr_cv_c_long_double_format="not available"
9603 else
9604   cat >conftest.c <<\EOF
9605
9606 /* "before" is 16 bytes to ensure there's no padding between it and "x".
9607    We're not expecting any "long double" bigger than 16 bytes or with
9608    alignment requirements stricter than 16 bytes.  */
9609 struct {
9610   char         before[16];
9611   long double  x;
9612   char         after[8];
9613 } foo = {
9614   { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
9615     '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
9616   -123456789.0,
9617   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
9618 };
9619
9620 EOF
9621   mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
9622   if { (eval echo "$as_me:$LINENO: \"$mpfr_compile\"") >&5
9623   (eval $mpfr_compile) 2>&5
9624   ac_status=$?
9625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); }; then
9627     cat >conftest.awk <<\EOF
9628
9629 BEGIN {
9630   found = 0
9631 }
9632
9633 # got[] holds a sliding window of bytes read the input.  got[0] is the most
9634 # recent byte read, and got[31] the oldest byte read, so when looking to
9635 # match some data the indices are "reversed".
9636 #
9637 {
9638   for (f = 2; f <= NF; f++)
9639     {
9640       # new byte, shift others up
9641       for (i = 31; i >= 0; i--)
9642         got[i+1] = got[i];
9643       got[0] = $f;
9644
9645       # end sequence
9646       if (got[7] != "376") continue
9647       if (got[6] != "334") continue
9648       if (got[5] != "272") continue
9649       if (got[4] != "230") continue
9650       if (got[3] != "166") continue
9651       if (got[2] != "124") continue
9652       if (got[1] != "062") continue
9653       if (got[0] != "020") continue
9654
9655       # start sequence, with 12-byte body
9656       if (got[27] == "001" && \
9657           got[26] == "043" && \
9658           got[25] == "105" && \
9659           got[24] == "147" && \
9660           got[23] == "211" && \
9661           got[22] == "253" && \
9662           got[21] == "315" && \
9663           got[20] == "357")
9664         {
9665           saw = " (" got[19] \
9666                  " " got[18] \
9667                  " " got[17] \
9668                  " " got[16] \
9669                  " " got[15] \
9670                  " " got[14] \
9671                  " " got[13] \
9672                  " " got[12] \
9673                  " " got[11] \
9674                  " " got[10] \
9675                  " " got[9]  \
9676                  " " got[8] ")"
9677
9678           if (got[19] == "000" && \
9679               got[18] == "000" && \
9680               got[17] == "000" && \
9681               got[16] == "000" && \
9682               got[15] == "240" && \
9683               got[14] == "242" && \
9684               got[13] == "171" && \
9685               got[12] == "353" && \
9686               got[11] == "031" && \
9687               got[10] == "300")
9688             {
9689               print "IEEE extended, little endian"
9690               found = 1
9691               exit
9692             }
9693         }
9694
9695       # start sequence, with 16-byte body
9696       if (got[31] == "001" && \
9697           got[30] == "043" && \
9698           got[29] == "105" && \
9699           got[28] == "147" && \
9700           got[27] == "211" && \
9701           got[26] == "253" && \
9702           got[25] == "315" && \
9703           got[24] == "357")
9704         {
9705           saw = " (" got[23] \
9706                  " " got[22] \
9707                  " " got[21] \
9708                  " " got[20] \
9709                  " " got[19] \
9710                  " " got[18] \
9711                  " " got[17] \
9712                  " " got[16] \
9713                  " " got[15] \
9714                  " " got[14] \
9715                  " " got[13] \
9716                  " " got[12] \
9717                  " " got[11] \
9718                  " " got[10] \
9719                  " " got[9]  \
9720                  " " got[8] ")"
9721
9722           if (got[23] == "000" && \
9723               got[22] == "000" && \
9724               got[21] == "000" && \
9725               got[20] == "000" && \
9726               got[19] == "240" && \
9727               got[18] == "242" && \
9728               got[17] == "171" && \
9729               got[16] == "353" && \
9730               got[15] == "031" && \
9731               got[14] == "300")
9732             {
9733               print "IEEE extended, little endian"
9734               found = 1
9735               exit
9736             }
9737
9738           if (got[23] == "300" && \
9739               got[22] == "031" && \
9740               got[21] == "326" && \
9741               got[20] == "363" && \
9742               got[19] == "105" && \
9743               got[18] == "100" && \
9744               got[17] == "000" && \
9745               got[16] == "000" && \
9746               got[15] == "000" && \
9747               got[14] == "000" && \
9748               got[13] == "000" && \
9749               got[12] == "000" && \
9750               got[11] == "000" && \
9751               got[10] == "000" && \
9752               got[9]  == "000" && \
9753               got[8]  == "000")
9754             {
9755               print "IEEE quad, big endian"
9756               found = 1
9757               exit
9758             }
9759         }
9760     }
9761 }
9762
9763 END {
9764   if (! found)
9765     print "unknown", saw
9766 }
9767
9768 EOF
9769     mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
9770     case $mpfr_cv_c_long_double_format in
9771     unknown*)
9772       echo "cannot match anything, conftest.$OBJEXT contains" >&5
9773       od -b conftest.$OBJEXT >&5
9774       ;;
9775     esac
9776   else
9777     { $as_echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
9778 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
9779   fi
9780 fi
9781 rm -f conftest*
9782
9783 fi
9784 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_c_long_double_format" >&5
9785 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
9786
9787
9788
9789
9790 case $mpfr_cv_c_long_double_format in
9791   "IEEE extended, little endian")
9792     cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1
9794 _ACEOF
9795
9796     ;;
9797   "IEEE quad, big endian")
9798     cat >>confdefs.h <<\_ACEOF
9799 #define HAVE_LDOUBLE_IEEE_QUAD_BIG 1
9800 _ACEOF
9801
9802     ;;
9803   unknown* | "not available")
9804     ;;
9805   *)
9806     { $as_echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
9807 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
9808     ;;
9809 esac
9810
9811
9812 if test "$enable_thread_safe" = yes; then
9813 { $as_echo "$as_me:$LINENO: checking for TLS support" >&5
9814 $as_echo_n "checking for TLS support... " >&6; }
9815 if test "${mpfr_cv_working_tls+set}" = set; then
9816   $as_echo_n "(cached) " >&6
9817 else
9818
9819 saved_CPPFLAGS="$CPPFLAGS"
9820 # The -I$srcdir is necessary when objdir is different from srcdir.
9821 CPPFLAGS="$CPPFLAGS -I$srcdir"
9822 if test "$cross_compiling" = yes; then
9823   mpfr_cv_working_tls="cannot test, assume yes"
9824 else
9825   cat >conftest.$ac_ext <<_ACEOF
9826
9827 #define MPFR_USE_THREAD_SAFE 1
9828 #include "mpfr-thread.h"
9829 MPFR_THREAD_ATTR int x = 17;
9830 int main() {
9831   return x != 17;
9832 }
9833
9834 _ACEOF
9835 rm -f conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843   (eval "$ac_link") 2>&5
9844   ac_status=$?
9845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9847   { (case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9852 $as_echo "$ac_try_echo") >&5
9853   (eval "$ac_try") 2>&5
9854   ac_status=$?
9855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; }; then
9857   mpfr_cv_working_tls="yes"
9858 else
9859   $as_echo "$as_me: program exited with status $ac_status" >&5
9860 $as_echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ( exit $ac_status )
9864 { $as_echo "$as_me:$LINENO: result: no" >&5
9865 $as_echo "no" >&6; }
9866       { { $as_echo "$as_me:$LINENO: error: please configure with --disable-thread-safe" >&5
9867 $as_echo "$as_me: error: please configure with --disable-thread-safe" >&2;}
9868    { (exit 1); exit 1; }; }
9869 fi
9870 rm -rf conftest.dSYM
9871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9872 fi
9873
9874
9875 CPPFLAGS="$saved_CPPFLAGS"
9876
9877 fi
9878 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_working_tls" >&5
9879 $as_echo "$mpfr_cv_working_tls" >&6; }
9880 fi
9881
9882
9883 if test -n "$variable_indefinie" ; then
9884  ac_ext=cpp
9885 ac_cpp='$CXXCPP $CPPFLAGS'
9886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9889 if test -z "$CXX"; then
9890   if test -n "$CCC"; then
9891     CXX=$CCC
9892   else
9893     if test -n "$ac_tool_prefix"; then
9894   for ac_prog in g++
9895   do
9896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if test "${ac_cv_prog_CXX+set}" = set; then
9901   $as_echo_n "(cached) " >&6
9902 else
9903   if test -n "$CXX"; then
9904   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9905 else
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9908 do
9909   IFS=$as_save_IFS
9910   test -z "$as_dir" && as_dir=.
9911   for ac_exec_ext in '' $ac_executable_extensions; do
9912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9914     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9915     break 2
9916   fi
9917 done
9918 done
9919 IFS=$as_save_IFS
9920
9921 fi
9922 fi
9923 CXX=$ac_cv_prog_CXX
9924 if test -n "$CXX"; then
9925   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9926 $as_echo "$CXX" >&6; }
9927 else
9928   { $as_echo "$as_me:$LINENO: result: no" >&5
9929 $as_echo "no" >&6; }
9930 fi
9931
9932
9933     test -n "$CXX" && break
9934   done
9935 fi
9936 if test -z "$CXX"; then
9937   ac_ct_CXX=$CXX
9938   for ac_prog in g++
9939 do
9940   # Extract the first word of "$ac_prog", so it can be a program name with args.
9941 set dummy $ac_prog; ac_word=$2
9942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9945   $as_echo_n "(cached) " >&6
9946 else
9947   if test -n "$ac_ct_CXX"; then
9948   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953   IFS=$as_save_IFS
9954   test -z "$as_dir" && as_dir=.
9955   for ac_exec_ext in '' $ac_executable_extensions; do
9956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957     ac_cv_prog_ac_ct_CXX="$ac_prog"
9958     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959     break 2
9960   fi
9961 done
9962 done
9963 IFS=$as_save_IFS
9964
9965 fi
9966 fi
9967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9968 if test -n "$ac_ct_CXX"; then
9969   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9970 $as_echo "$ac_ct_CXX" >&6; }
9971 else
9972   { $as_echo "$as_me:$LINENO: result: no" >&5
9973 $as_echo "no" >&6; }
9974 fi
9975
9976
9977   test -n "$ac_ct_CXX" && break
9978 done
9979
9980   if test "x$ac_ct_CXX" = x; then
9981     CXX="g++"
9982   else
9983     case $cross_compiling:$ac_tool_warned in
9984 yes:)
9985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9987 ac_tool_warned=yes ;;
9988 esac
9989     CXX=$ac_ct_CXX
9990   fi
9991 fi
9992
9993   fi
9994 fi
9995 # Provide some information about the compiler.
9996 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9997 set X $ac_compile
9998 ac_compiler=$2
9999 { (ac_try="$ac_compiler --version >&5"
10000 case "(($ac_try" in
10001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002   *) ac_try_echo=$ac_try;;
10003 esac
10004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10005 $as_echo "$ac_try_echo") >&5
10006   (eval "$ac_compiler --version >&5") 2>&5
10007   ac_status=$?
10008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }
10010 { (ac_try="$ac_compiler -v >&5"
10011 case "(($ac_try" in
10012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013   *) ac_try_echo=$ac_try;;
10014 esac
10015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016 $as_echo "$ac_try_echo") >&5
10017   (eval "$ac_compiler -v >&5") 2>&5
10018   ac_status=$?
10019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }
10021 { (ac_try="$ac_compiler -V >&5"
10022 case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027 $as_echo "$ac_try_echo") >&5
10028   (eval "$ac_compiler -V >&5") 2>&5
10029   ac_status=$?
10030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }
10032
10033 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10034 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10036   $as_echo_n "(cached) " >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044
10045 int
10046 main ()
10047 {
10048 #ifndef __GNUC__
10049        choke me
10050 #endif
10051
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (ac_try="$ac_compile"
10058 case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10063 $as_echo "$ac_try_echo") >&5
10064   (eval "$ac_compile") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } && {
10071          test -z "$ac_cxx_werror_flag" ||
10072          test ! -s conftest.err
10073        } && test -s conftest.$ac_objext; then
10074   ac_compiler_gnu=yes
10075 else
10076   $as_echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_compiler_gnu=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10084
10085 fi
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10087 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10088 if test $ac_compiler_gnu = yes; then
10089   GXX=yes
10090 else
10091   GXX=
10092 fi
10093 ac_test_CXXFLAGS=${CXXFLAGS+set}
10094 ac_save_CXXFLAGS=$CXXFLAGS
10095 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10096 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10097 if test "${ac_cv_prog_cxx_g+set}" = set; then
10098   $as_echo_n "(cached) " >&6
10099 else
10100   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10101    ac_cxx_werror_flag=yes
10102    ac_cv_prog_cxx_g=no
10103    CXXFLAGS="-g"
10104    cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 int
10112 main ()
10113 {
10114
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10126 $as_echo "$ac_try_echo") >&5
10127   (eval "$ac_compile") 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } && {
10134          test -z "$ac_cxx_werror_flag" ||
10135          test ! -s conftest.err
10136        } && test -s conftest.$ac_objext; then
10137   ac_cv_prog_cxx_g=yes
10138 else
10139   $as_echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10141
10142         CXXFLAGS=""
10143       cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149
10150 int
10151 main ()
10152 {
10153
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext
10159 if { (ac_try="$ac_compile"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166   (eval "$ac_compile") 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && {
10173          test -z "$ac_cxx_werror_flag" ||
10174          test ! -s conftest.err
10175        } && test -s conftest.$ac_objext; then
10176   :
10177 else
10178   $as_echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10182          CXXFLAGS="-g"
10183          cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189
10190 int
10191 main ()
10192 {
10193
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext
10199 if { (ac_try="$ac_compile"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10205 $as_echo "$ac_try_echo") >&5
10206   (eval "$ac_compile") 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } && {
10213          test -z "$ac_cxx_werror_flag" ||
10214          test ! -s conftest.err
10215        } && test -s conftest.$ac_objext; then
10216   ac_cv_prog_cxx_g=yes
10217 else
10218   $as_echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221
10222 fi
10223
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 fi
10226
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 fi
10229
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10232 fi
10233 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10234 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10235 if test "$ac_test_CXXFLAGS" = set; then
10236   CXXFLAGS=$ac_save_CXXFLAGS
10237 elif test $ac_cv_prog_cxx_g = yes; then
10238   if test "$GXX" = yes; then
10239     CXXFLAGS="-g -O2"
10240   else
10241     CXXFLAGS="-g"
10242   fi
10243 else
10244   if test "$GXX" = yes; then
10245     CXXFLAGS="-O2"
10246   else
10247     CXXFLAGS=
10248   fi
10249 fi
10250 ac_ext=c
10251 ac_cpp='$CPP $CPPFLAGS'
10252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10255
10256 depcc="$CXX"  am_compiler_list=
10257
10258 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10259 $as_echo_n "checking dependency style of $depcc... " >&6; }
10260 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10261   $as_echo_n "(cached) " >&6
10262 else
10263   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10264   # We make a subdir and do the tests there.  Otherwise we can end up
10265   # making bogus files that we don't know about and never remove.  For
10266   # instance it was reported that on HP-UX the gcc test will end up
10267   # making a dummy file named `D' -- because `-MD' means `put the output
10268   # in D'.
10269   mkdir conftest.dir
10270   # Copy depcomp to subdir because otherwise we won't find it if we're
10271   # using a relative directory.
10272   cp "$am_depcomp" conftest.dir
10273   cd conftest.dir
10274   # We will build objects and dependencies in a subdirectory because
10275   # it helps to detect inapplicable dependency modes.  For instance
10276   # both Tru64's cc and ICC support -MD to output dependencies as a
10277   # side effect of compilation, but ICC will put the dependencies in
10278   # the current directory while Tru64 will put them in the object
10279   # directory.
10280   mkdir sub
10281
10282   am_cv_CXX_dependencies_compiler_type=none
10283   if test "$am_compiler_list" = ""; then
10284      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10285   fi
10286   for depmode in $am_compiler_list; do
10287     # Setup a source with many dependencies, because some compilers
10288     # like to wrap large dependency lists on column 80 (with \), and
10289     # we should not choose a depcomp mode which is confused by this.
10290     #
10291     # We need to recreate these files for each test, as the compiler may
10292     # overwrite some of them when testing with obscure command lines.
10293     # This happens at least with the AIX C compiler.
10294     : > sub/conftest.c
10295     for i in 1 2 3 4 5 6; do
10296       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10297       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10298       # Solaris 8's {/usr,}/bin/sh.
10299       touch sub/conftst$i.h
10300     done
10301     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10302
10303     case $depmode in
10304     nosideeffect)
10305       # after this tag, mechanisms are not by side-effect, so they'll
10306       # only be used when explicitly requested
10307       if test "x$enable_dependency_tracking" = xyes; then
10308         continue
10309       else
10310         break
10311       fi
10312       ;;
10313     none) break ;;
10314     esac
10315     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10316     # mode.  It turns out that the SunPro C++ compiler does not properly
10317     # handle `-M -o', and we need to detect this.
10318     if depmode=$depmode \
10319        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10320        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10321        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10322          >/dev/null 2>conftest.err &&
10323        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10324        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10325        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10326        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10327       # icc doesn't choke on unknown options, it will just issue warnings
10328       # or remarks (even with -Werror).  So we grep stderr for any message
10329       # that says an option was ignored or not supported.
10330       # When given -MP, icc 7.0 and 7.1 complain thusly:
10331       #   icc: Command line warning: ignoring option '-M'; no argument required
10332       # The diagnosis changed in icc 8.0:
10333       #   icc: Command line remark: option '-MP' not supported
10334       if (grep 'ignoring option' conftest.err ||
10335           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10336         am_cv_CXX_dependencies_compiler_type=$depmode
10337         break
10338       fi
10339     fi
10340   done
10341
10342   cd ..
10343   rm -rf conftest.dir
10344 else
10345   am_cv_CXX_dependencies_compiler_type=none
10346 fi
10347
10348 fi
10349 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10350 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10351 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10352
10353  if
10354   test "x$enable_dependency_tracking" != xno \
10355   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10356   am__fastdepCXX_TRUE=
10357   am__fastdepCXX_FALSE='#'
10358 else
10359   am__fastdepCXX_TRUE='#'
10360   am__fastdepCXX_FALSE=
10361 fi
10362
10363
10364  ac_ext=f
10365 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10366 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10368 if test -n "$ac_tool_prefix"; then
10369   for ac_prog in g77
10370   do
10371     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_F77+set}" = set; then
10376   $as_echo_n "(cached) " >&6
10377 else
10378   if test -n "$F77"; then
10379   ac_cv_prog_F77="$F77" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384   IFS=$as_save_IFS
10385   test -z "$as_dir" && as_dir=.
10386   for ac_exec_ext in '' $ac_executable_extensions; do
10387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10389     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10390     break 2
10391   fi
10392 done
10393 done
10394 IFS=$as_save_IFS
10395
10396 fi
10397 fi
10398 F77=$ac_cv_prog_F77
10399 if test -n "$F77"; then
10400   { $as_echo "$as_me:$LINENO: result: $F77" >&5
10401 $as_echo "$F77" >&6; }
10402 else
10403   { $as_echo "$as_me:$LINENO: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406
10407
10408     test -n "$F77" && break
10409   done
10410 fi
10411 if test -z "$F77"; then
10412   ac_ct_F77=$F77
10413   for ac_prog in g77
10414 do
10415   # Extract the first word of "$ac_prog", so it can be a program name with args.
10416 set dummy $ac_prog; ac_word=$2
10417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10418 $as_echo_n "checking for $ac_word... " >&6; }
10419 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10420   $as_echo_n "(cached) " >&6
10421 else
10422   if test -n "$ac_ct_F77"; then
10423   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10424 else
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430   for ac_exec_ext in '' $ac_executable_extensions; do
10431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432     ac_cv_prog_ac_ct_F77="$ac_prog"
10433     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437 done
10438 IFS=$as_save_IFS
10439
10440 fi
10441 fi
10442 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10443 if test -n "$ac_ct_F77"; then
10444   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10445 $as_echo "$ac_ct_F77" >&6; }
10446 else
10447   { $as_echo "$as_me:$LINENO: result: no" >&5
10448 $as_echo "no" >&6; }
10449 fi
10450
10451
10452   test -n "$ac_ct_F77" && break
10453 done
10454
10455   if test "x$ac_ct_F77" = x; then
10456     F77=""
10457   else
10458     case $cross_compiling:$ac_tool_warned in
10459 yes:)
10460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10462 ac_tool_warned=yes ;;
10463 esac
10464     F77=$ac_ct_F77
10465   fi
10466 fi
10467
10468
10469 # Provide some information about the compiler.
10470 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
10471 set X $ac_compile
10472 ac_compiler=$2
10473 { (ac_try="$ac_compiler --version >&5"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480   (eval "$ac_compiler --version >&5") 2>&5
10481   ac_status=$?
10482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }
10484 { (ac_try="$ac_compiler -v >&5"
10485 case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10490 $as_echo "$ac_try_echo") >&5
10491   (eval "$ac_compiler -v >&5") 2>&5
10492   ac_status=$?
10493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }
10495 { (ac_try="$ac_compiler -V >&5"
10496 case "(($ac_try" in
10497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498   *) ac_try_echo=$ac_try;;
10499 esac
10500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10501 $as_echo "$ac_try_echo") >&5
10502   (eval "$ac_compiler -V >&5") 2>&5
10503   ac_status=$?
10504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }
10506 rm -f a.out
10507
10508 # If we don't use `.F' as extension, the preprocessor is not run on the
10509 # input file.  (Note that this only needs to work for GNU compilers.)
10510 ac_save_ext=$ac_ext
10511 ac_ext=F
10512 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10513 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
10514 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10515   $as_echo_n "(cached) " >&6
10516 else
10517   cat >conftest.$ac_ext <<_ACEOF
10518       program main
10519 #ifndef __GNUC__
10520        choke me
10521 #endif
10522
10523       end
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10532 $as_echo "$ac_try_echo") >&5
10533   (eval "$ac_compile") 2>conftest.er1
10534   ac_status=$?
10535   grep -v '^ *+' conftest.er1 >conftest.err
10536   rm -f conftest.er1
10537   cat conftest.err >&5
10538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); } && {
10540          test -z "$ac_f77_werror_flag" ||
10541          test ! -s conftest.err
10542        } && test -s conftest.$ac_objext; then
10543   ac_compiler_gnu=yes
10544 else
10545   $as_echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548         ac_compiler_gnu=no
10549 fi
10550
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10553
10554 fi
10555 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10556 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
10557 ac_ext=$ac_save_ext
10558 ac_test_FFLAGS=${FFLAGS+set}
10559 ac_save_FFLAGS=$FFLAGS
10560 FFLAGS=
10561 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10562 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
10563 if test "${ac_cv_prog_f77_g+set}" = set; then
10564   $as_echo_n "(cached) " >&6
10565 else
10566   FFLAGS=-g
10567 cat >conftest.$ac_ext <<_ACEOF
10568       program main
10569
10570       end
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576   *) ac_try_echo=$ac_try;;
10577 esac
10578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10579 $as_echo "$ac_try_echo") >&5
10580   (eval "$ac_compile") 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } && {
10587          test -z "$ac_f77_werror_flag" ||
10588          test ! -s conftest.err
10589        } && test -s conftest.$ac_objext; then
10590   ac_cv_prog_f77_g=yes
10591 else
10592   $as_echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595         ac_cv_prog_f77_g=no
10596 fi
10597
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599
10600 fi
10601 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10602 $as_echo "$ac_cv_prog_f77_g" >&6; }
10603 if test "$ac_test_FFLAGS" = set; then
10604   FFLAGS=$ac_save_FFLAGS
10605 elif test $ac_cv_prog_f77_g = yes; then
10606   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10607     FFLAGS="-g -O2"
10608   else
10609     FFLAGS="-g"
10610   fi
10611 else
10612   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10613     FFLAGS="-O2"
10614   else
10615     FFLAGS=
10616   fi
10617 fi
10618
10619 if test $ac_compiler_gnu = yes; then
10620   G77=yes
10621 else
10622   G77=
10623 fi
10624 ac_ext=c
10625 ac_cpp='$CPP $CPPFLAGS'
10626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10629
10630  ac_ext=cpp
10631 ac_cpp='$CXXCPP $CPPFLAGS'
10632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10635 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10636 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10637 if test -z "$CXXCPP"; then
10638   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10639   $as_echo_n "(cached) " >&6
10640 else
10641       # Double quotes because CXXCPP needs to be expanded
10642     for CXXCPP in "$CXX -E" "/lib/cpp"
10643     do
10644       ac_preproc_ok=false
10645 for ac_cxx_preproc_warn_flag in '' yes
10646 do
10647   # Use a header file that comes with gcc, so configuring glibc
10648   # with a fresh cross-compiler works.
10649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10650   # <limits.h> exists even on freestanding compilers.
10651   # On the NeXT, cc -E runs the code through the compiler's parser,
10652   # not just through cpp. "Syntax error" is here to catch this case.
10653   cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659 #ifdef __STDC__
10660 # include <limits.h>
10661 #else
10662 # include <assert.h>
10663 #endif
10664                      Syntax error
10665 _ACEOF
10666 if { (ac_try="$ac_cpp conftest.$ac_ext"
10667 case "(($ac_try" in
10668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669   *) ac_try_echo=$ac_try;;
10670 esac
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10674   ac_status=$?
10675   grep -v '^ *+' conftest.er1 >conftest.err
10676   rm -f conftest.er1
10677   cat conftest.err >&5
10678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } >/dev/null && {
10680          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10681          test ! -s conftest.err
10682        }; then
10683   :
10684 else
10685   $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688   # Broken: fails on valid input.
10689 continue
10690 fi
10691
10692 rm -f conftest.err conftest.$ac_ext
10693
10694   # OK, works on sane cases.  Now check whether nonexistent headers
10695   # can be detected and how.
10696   cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 #include <ac_nonexistent.h>
10703 _ACEOF
10704 if { (ac_try="$ac_cpp conftest.$ac_ext"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } >/dev/null && {
10718          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10719          test ! -s conftest.err
10720        }; then
10721   # Broken: success on invalid input.
10722 continue
10723 else
10724   $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727   # Passes both tests.
10728 ac_preproc_ok=:
10729 break
10730 fi
10731
10732 rm -f conftest.err conftest.$ac_ext
10733
10734 done
10735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10736 rm -f conftest.err conftest.$ac_ext
10737 if $ac_preproc_ok; then
10738   break
10739 fi
10740
10741     done
10742     ac_cv_prog_CXXCPP=$CXXCPP
10743
10744 fi
10745   CXXCPP=$ac_cv_prog_CXXCPP
10746 else
10747   ac_cv_prog_CXXCPP=$CXXCPP
10748 fi
10749 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10750 $as_echo "$CXXCPP" >&6; }
10751 ac_preproc_ok=false
10752 for ac_cxx_preproc_warn_flag in '' yes
10753 do
10754   # Use a header file that comes with gcc, so configuring glibc
10755   # with a fresh cross-compiler works.
10756   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10757   # <limits.h> exists even on freestanding compilers.
10758   # On the NeXT, cc -E runs the code through the compiler's parser,
10759   # not just through cpp. "Syntax error" is here to catch this case.
10760   cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10771                      Syntax error
10772 _ACEOF
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } >/dev/null && {
10787          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10788          test ! -s conftest.err
10789        }; then
10790   :
10791 else
10792   $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795   # Broken: fails on valid input.
10796 continue
10797 fi
10798
10799 rm -f conftest.err conftest.$ac_ext
10800
10801   # OK, works on sane cases.  Now check whether nonexistent headers
10802   # can be detected and how.
10803   cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 #include <ac_nonexistent.h>
10810 _ACEOF
10811 if { (ac_try="$ac_cpp conftest.$ac_ext"
10812 case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10817 $as_echo "$ac_try_echo") >&5
10818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10819   ac_status=$?
10820   grep -v '^ *+' conftest.er1 >conftest.err
10821   rm -f conftest.er1
10822   cat conftest.err >&5
10823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); } >/dev/null && {
10825          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10826          test ! -s conftest.err
10827        }; then
10828   # Broken: success on invalid input.
10829 continue
10830 else
10831   $as_echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834   # Passes both tests.
10835 ac_preproc_ok=:
10836 break
10837 fi
10838
10839 rm -f conftest.err conftest.$ac_ext
10840
10841 done
10842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10843 rm -f conftest.err conftest.$ac_ext
10844 if $ac_preproc_ok; then
10845   :
10846 else
10847   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10849 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10850 See \`config.log' for more details." >&5
10851 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10852 See \`config.log' for more details." >&2;}
10853    { (exit 1); exit 1; }; }; }
10854 fi
10855
10856 ac_ext=c
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10861
10862 fi
10863 am__fastdepCXX_FALSE='#'
10864 if test "${with_tags+set}" != set; then
10865   with_tags=
10866 fi
10867
10868
10869 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
10870 $as_echo_n "checking for gmp.h... " >&6; }
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877
10878 #include "gmp.h"
10879
10880 _ACEOF
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888 $as_echo "$ac_try_echo") >&5
10889   (eval "$ac_compile") 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } && {
10896          test -z "$ac_c_werror_flag" ||
10897          test ! -s conftest.err
10898        } && test -s conftest.$ac_objext; then
10899   { $as_echo "$as_me:$LINENO: result: yes" >&5
10900 $as_echo "yes" >&6; }
10901 else
10902   $as_echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905
10906  { $as_echo "$as_me:$LINENO: result: no" >&5
10907 $as_echo "no" >&6; }
10908  { { $as_echo "$as_me:$LINENO: error: gmp.h can't be found, or is unusable." >&5
10909 $as_echo "$as_me: error: gmp.h can't be found, or is unusable." >&2;}
10910    { (exit 1); exit 1; }; }
10911
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915
10916 enable_win32_dll=yes
10917
10918 case $host in
10919 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
10920   if test -n "$ac_tool_prefix"; then
10921   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10922 set dummy ${ac_tool_prefix}as; ac_word=$2
10923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_AS+set}" = set; then
10926   $as_echo_n "(cached) " >&6
10927 else
10928   if test -n "$AS"; then
10929   ac_cv_prog_AS="$AS" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10933 do
10934   IFS=$as_save_IFS
10935   test -z "$as_dir" && as_dir=.
10936   for ac_exec_ext in '' $ac_executable_extensions; do
10937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938     ac_cv_prog_AS="${ac_tool_prefix}as"
10939     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940     break 2
10941   fi
10942 done
10943 done
10944 IFS=$as_save_IFS
10945
10946 fi
10947 fi
10948 AS=$ac_cv_prog_AS
10949 if test -n "$AS"; then
10950   { $as_echo "$as_me:$LINENO: result: $AS" >&5
10951 $as_echo "$AS" >&6; }
10952 else
10953   { $as_echo "$as_me:$LINENO: result: no" >&5
10954 $as_echo "no" >&6; }
10955 fi
10956
10957
10958 fi
10959 if test -z "$ac_cv_prog_AS"; then
10960   ac_ct_AS=$AS
10961   # Extract the first word of "as", so it can be a program name with args.
10962 set dummy as; ac_word=$2
10963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10966   $as_echo_n "(cached) " >&6
10967 else
10968   if test -n "$ac_ct_AS"; then
10969   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10970 else
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974   IFS=$as_save_IFS
10975   test -z "$as_dir" && as_dir=.
10976   for ac_exec_ext in '' $ac_executable_extensions; do
10977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978     ac_cv_prog_ac_ct_AS="as"
10979     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980     break 2
10981   fi
10982 done
10983 done
10984 IFS=$as_save_IFS
10985
10986 fi
10987 fi
10988 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10989 if test -n "$ac_ct_AS"; then
10990   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10991 $as_echo "$ac_ct_AS" >&6; }
10992 else
10993   { $as_echo "$as_me:$LINENO: result: no" >&5
10994 $as_echo "no" >&6; }
10995 fi
10996
10997   if test "x$ac_ct_AS" = x; then
10998     AS="false"
10999   else
11000     case $cross_compiling:$ac_tool_warned in
11001 yes:)
11002 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11004 ac_tool_warned=yes ;;
11005 esac
11006     AS=$ac_ct_AS
11007   fi
11008 else
11009   AS="$ac_cv_prog_AS"
11010 fi
11011
11012   if test -n "$ac_tool_prefix"; then
11013   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11014 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11018   $as_echo_n "(cached) " >&6
11019 else
11020   if test -n "$DLLTOOL"; then
11021   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11022 else
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028   for ac_exec_ext in '' $ac_executable_extensions; do
11029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11030     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11031     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035 done
11036 IFS=$as_save_IFS
11037
11038 fi
11039 fi
11040 DLLTOOL=$ac_cv_prog_DLLTOOL
11041 if test -n "$DLLTOOL"; then
11042   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11043 $as_echo "$DLLTOOL" >&6; }
11044 else
11045   { $as_echo "$as_me:$LINENO: result: no" >&5
11046 $as_echo "no" >&6; }
11047 fi
11048
11049
11050 fi
11051 if test -z "$ac_cv_prog_DLLTOOL"; then
11052   ac_ct_DLLTOOL=$DLLTOOL
11053   # Extract the first word of "dlltool", so it can be a program name with args.
11054 set dummy dlltool; ac_word=$2
11055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11058   $as_echo_n "(cached) " >&6
11059 else
11060   if test -n "$ac_ct_DLLTOOL"; then
11061   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11062 else
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11065 do
11066   IFS=$as_save_IFS
11067   test -z "$as_dir" && as_dir=.
11068   for ac_exec_ext in '' $ac_executable_extensions; do
11069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11071     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072     break 2
11073   fi
11074 done
11075 done
11076 IFS=$as_save_IFS
11077
11078 fi
11079 fi
11080 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11081 if test -n "$ac_ct_DLLTOOL"; then
11082   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11083 $as_echo "$ac_ct_DLLTOOL" >&6; }
11084 else
11085   { $as_echo "$as_me:$LINENO: result: no" >&5
11086 $as_echo "no" >&6; }
11087 fi
11088
11089   if test "x$ac_ct_DLLTOOL" = x; then
11090     DLLTOOL="false"
11091   else
11092     case $cross_compiling:$ac_tool_warned in
11093 yes:)
11094 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11096 ac_tool_warned=yes ;;
11097 esac
11098     DLLTOOL=$ac_ct_DLLTOOL
11099   fi
11100 else
11101   DLLTOOL="$ac_cv_prog_DLLTOOL"
11102 fi
11103
11104   if test -n "$ac_tool_prefix"; then
11105   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11106 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
11110   $as_echo_n "(cached) " >&6
11111 else
11112   if test -n "$OBJDUMP"; then
11113   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118   IFS=$as_save_IFS
11119   test -z "$as_dir" && as_dir=.
11120   for ac_exec_ext in '' $ac_executable_extensions; do
11121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11123     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11124     break 2
11125   fi
11126 done
11127 done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 OBJDUMP=$ac_cv_prog_OBJDUMP
11133 if test -n "$OBJDUMP"; then
11134   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
11135 $as_echo "$OBJDUMP" >&6; }
11136 else
11137   { $as_echo "$as_me:$LINENO: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142 fi
11143 if test -z "$ac_cv_prog_OBJDUMP"; then
11144   ac_ct_OBJDUMP=$OBJDUMP
11145   # Extract the first word of "objdump", so it can be a program name with args.
11146 set dummy objdump; ac_word=$2
11147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
11150   $as_echo_n "(cached) " >&6
11151 else
11152   if test -n "$ac_ct_OBJDUMP"; then
11153   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11157 do
11158   IFS=$as_save_IFS
11159   test -z "$as_dir" && as_dir=.
11160   for ac_exec_ext in '' $ac_executable_extensions; do
11161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11164     break 2
11165   fi
11166 done
11167 done
11168 IFS=$as_save_IFS
11169
11170 fi
11171 fi
11172 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11173 if test -n "$ac_ct_OBJDUMP"; then
11174   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
11175 $as_echo "$ac_ct_OBJDUMP" >&6; }
11176 else
11177   { $as_echo "$as_me:$LINENO: result: no" >&5
11178 $as_echo "no" >&6; }
11179 fi
11180
11181   if test "x$ac_ct_OBJDUMP" = x; then
11182     OBJDUMP="false"
11183   else
11184     case $cross_compiling:$ac_tool_warned in
11185 yes:)
11186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11188 ac_tool_warned=yes ;;
11189 esac
11190     OBJDUMP=$ac_ct_OBJDUMP
11191   fi
11192 else
11193   OBJDUMP="$ac_cv_prog_OBJDUMP"
11194 fi
11195
11196   ;;
11197 esac
11198
11199 test -z "$AS" && AS=as
11200
11201
11202
11203
11204
11205 test -z "$DLLTOOL" && DLLTOOL=dlltool
11206
11207
11208
11209
11210
11211 test -z "$OBJDUMP" && OBJDUMP=objdump
11212
11213
11214
11215
11216
11217
11218
11219 case $host in
11220   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11221    { $as_echo "$as_me:$LINENO: checking for DLL/static GMP" >&5
11222 $as_echo_n "checking for DLL/static GMP... " >&6; }
11223    if test "$enable_shared" = yes; then
11224      LDFLAGS="$LDFLAGS -no-undefined"
11225      dont_link_with_gmp="yes"
11226      cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232
11233 #include "gmp.h"
11234 #if !__GMP_LIBGMP_DLL
11235 # error "Dead man"
11236 error
11237 #endif
11238
11239 int
11240 main ()
11241 {
11242
11243   ;
11244   return 0;
11245 }
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251   *) ac_try_echo=$ac_try;;
11252 esac
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255   (eval "$ac_compile") 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } && {
11262          test -z "$ac_c_werror_flag" ||
11263          test ! -s conftest.err
11264        } && test -s conftest.$ac_objext; then
11265   { $as_echo "$as_me:$LINENO: result: DLL" >&5
11266 $as_echo "DLL" >&6; }
11267 else
11268   $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271
11272   { $as_echo "$as_me:$LINENO: result: static" >&5
11273 $as_echo "static" >&6; }
11274   { { $as_echo "$as_me:$LINENO: error: gmp.h isn't a DLL: use --enable-static --disable-shared" >&5
11275 $as_echo "$as_me: error: gmp.h isn't a DLL: use --enable-static --disable-shared" >&2;}
11276    { (exit 1); exit 1; }; }
11277 fi
11278
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280    else
11281      cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287
11288 #include "gmp.h"
11289 #if __GMP_LIBGMP_DLL
11290 # error "Dead man"
11291 error
11292 #endif
11293
11294 int
11295 main ()
11296 {
11297
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (ac_try="$ac_compile"
11304 case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11309 $as_echo "$ac_try_echo") >&5
11310   (eval "$ac_compile") 2>conftest.er1
11311   ac_status=$?
11312   grep -v '^ *+' conftest.er1 >conftest.err
11313   rm -f conftest.er1
11314   cat conftest.err >&5
11315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); } && {
11317          test -z "$ac_c_werror_flag" ||
11318          test ! -s conftest.err
11319        } && test -s conftest.$ac_objext; then
11320   { $as_echo "$as_me:$LINENO: result: static" >&5
11321 $as_echo "static" >&6; }
11322 else
11323   $as_echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326
11327   { $as_echo "$as_me:$LINENO: result: DLL" >&5
11328 $as_echo "DLL" >&6; }
11329   { { $as_echo "$as_me:$LINENO: error: gmp.h is a DLL: use --disable-static --enable-shared" >&5
11330 $as_echo "$as_me: error: gmp.h is a DLL: use --disable-static --enable-shared" >&2;}
11331    { (exit 1); exit 1; }; }
11332 fi
11333
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335   fi
11336   ;;
11337 esac
11338 case `pwd` in
11339   *\ * | *\     *)
11340     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11342 esac
11343
11344
11345
11346 macro_version='2.2'
11347 macro_revision='1.2599'
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361 ltmain="$ac_aux_dir/ltmain.sh"
11362
11363 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11365 if test "${ac_cv_path_SED+set}" = set; then
11366   $as_echo_n "(cached) " >&6
11367 else
11368             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11369      for ac_i in 1 2 3 4 5 6 7; do
11370        ac_script="$ac_script$as_nl$ac_script"
11371      done
11372      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11373      $as_unset ac_script || ac_script=
11374      if test -z "$SED"; then
11375   ac_path_SED_found=false
11376   # Loop through the user's path and test for each of PROGNAME-LIST
11377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380   IFS=$as_save_IFS
11381   test -z "$as_dir" && as_dir=.
11382   for ac_prog in sed gsed; do
11383     for ac_exec_ext in '' $ac_executable_extensions; do
11384       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11385       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11386 # Check for GNU ac_path_SED and select it if it is found.
11387   # Check for GNU $ac_path_SED
11388 case `"$ac_path_SED" --version 2>&1` in
11389 *GNU*)
11390   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11391 *)
11392   ac_count=0
11393   $as_echo_n 0123456789 >"conftest.in"
11394   while :
11395   do
11396     cat "conftest.in" "conftest.in" >"conftest.tmp"
11397     mv "conftest.tmp" "conftest.in"
11398     cp "conftest.in" "conftest.nl"
11399     $as_echo '' >> "conftest.nl"
11400     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11402     ac_count=`expr $ac_count + 1`
11403     if test $ac_count -gt ${ac_path_SED_max-0}; then
11404       # Best one so far, save it but keep looking for a better one
11405       ac_cv_path_SED="$ac_path_SED"
11406       ac_path_SED_max=$ac_count
11407     fi
11408     # 10*(2^10) chars as input seems more than enough
11409     test $ac_count -gt 10 && break
11410   done
11411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11412 esac
11413
11414       $ac_path_SED_found && break 3
11415     done
11416   done
11417 done
11418 IFS=$as_save_IFS
11419   if test -z "$ac_cv_path_SED"; then
11420     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
11421 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
11422    { (exit 1); exit 1; }; }
11423   fi
11424 else
11425   ac_cv_path_SED=$SED
11426 fi
11427
11428 fi
11429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
11430 $as_echo "$ac_cv_path_SED" >&6; }
11431  SED="$ac_cv_path_SED"
11432   rm -f conftest.sed
11433
11434 test -z "$SED" && SED=sed
11435 Xsed="$SED -e 1s/^X//"
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
11448 $as_echo_n "checking for fgrep... " >&6; }
11449 if test "${ac_cv_path_FGREP+set}" = set; then
11450   $as_echo_n "(cached) " >&6
11451 else
11452   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11453    then ac_cv_path_FGREP="$GREP -F"
11454    else
11455      if test -z "$FGREP"; then
11456   ac_path_FGREP_found=false
11457   # Loop through the user's path and test for each of PROGNAME-LIST
11458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11460 do
11461   IFS=$as_save_IFS
11462   test -z "$as_dir" && as_dir=.
11463   for ac_prog in fgrep; do
11464     for ac_exec_ext in '' $ac_executable_extensions; do
11465       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11466       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11467 # Check for GNU ac_path_FGREP and select it if it is found.
11468   # Check for GNU $ac_path_FGREP
11469 case `"$ac_path_FGREP" --version 2>&1` in
11470 *GNU*)
11471   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11472 *)
11473   ac_count=0
11474   $as_echo_n 0123456789 >"conftest.in"
11475   while :
11476   do
11477     cat "conftest.in" "conftest.in" >"conftest.tmp"
11478     mv "conftest.tmp" "conftest.in"
11479     cp "conftest.in" "conftest.nl"
11480     $as_echo 'FGREP' >> "conftest.nl"
11481     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11483     ac_count=`expr $ac_count + 1`
11484     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11485       # Best one so far, save it but keep looking for a better one
11486       ac_cv_path_FGREP="$ac_path_FGREP"
11487       ac_path_FGREP_max=$ac_count
11488     fi
11489     # 10*(2^10) chars as input seems more than enough
11490     test $ac_count -gt 10 && break
11491   done
11492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11493 esac
11494
11495       $ac_path_FGREP_found && break 3
11496     done
11497   done
11498 done
11499 IFS=$as_save_IFS
11500   if test -z "$ac_cv_path_FGREP"; then
11501     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11502 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11503    { (exit 1); exit 1; }; }
11504   fi
11505 else
11506   ac_cv_path_FGREP=$FGREP
11507 fi
11508
11509    fi
11510 fi
11511 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
11512 $as_echo "$ac_cv_path_FGREP" >&6; }
11513  FGREP="$ac_cv_path_FGREP"
11514
11515
11516 test -z "$GREP" && GREP=grep
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536 # Check whether --with-gnu-ld was given.
11537 if test "${with_gnu_ld+set}" = set; then
11538   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11539 else
11540   with_gnu_ld=no
11541 fi
11542
11543 ac_prog=ld
11544 if test "$GCC" = yes; then
11545   # Check if gcc -print-prog-name=ld gives a path.
11546   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11547 $as_echo_n "checking for ld used by $CC... " >&6; }
11548   case $host in
11549   *-*-mingw*)
11550     # gcc leaves a trailing carriage return which upsets mingw
11551     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11552   *)
11553     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11554   esac
11555   case $ac_prog in
11556     # Accept absolute paths.
11557     [\\/]* | ?:[\\/]*)
11558       re_direlt='/[^/][^/]*/\.\./'
11559       # Canonicalize the pathname of ld
11560       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11561       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11562         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11563       done
11564       test -z "$LD" && LD="$ac_prog"
11565       ;;
11566   "")
11567     # If it fails, then pretend we aren't using GCC.
11568     ac_prog=ld
11569     ;;
11570   *)
11571     # If it is relative, then search for the first ld in PATH.
11572     with_gnu_ld=unknown
11573     ;;
11574   esac
11575 elif test "$with_gnu_ld" = yes; then
11576   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11577 $as_echo_n "checking for GNU ld... " >&6; }
11578 else
11579   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11580 $as_echo_n "checking for non-GNU ld... " >&6; }
11581 fi
11582 if test "${lt_cv_path_LD+set}" = set; then
11583   $as_echo_n "(cached) " >&6
11584 else
11585   if test -z "$LD"; then
11586   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11587   for ac_dir in $PATH; do
11588     IFS="$lt_save_ifs"
11589     test -z "$ac_dir" && ac_dir=.
11590     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11591       lt_cv_path_LD="$ac_dir/$ac_prog"
11592       # Check to see if the program is GNU ld.  I'd rather use --version,
11593       # but apparently some variants of GNU ld only accept -v.
11594       # Break only if it was the GNU/non-GNU ld that we prefer.
11595       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11596       *GNU* | *'with BFD'*)
11597         test "$with_gnu_ld" != no && break
11598         ;;
11599       *)
11600         test "$with_gnu_ld" != yes && break
11601         ;;
11602       esac
11603     fi
11604   done
11605   IFS="$lt_save_ifs"
11606 else
11607   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11608 fi
11609 fi
11610
11611 LD="$lt_cv_path_LD"
11612 if test -n "$LD"; then
11613   { $as_echo "$as_me:$LINENO: result: $LD" >&5
11614 $as_echo "$LD" >&6; }
11615 else
11616   { $as_echo "$as_me:$LINENO: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11620 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11621    { (exit 1); exit 1; }; }
11622 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11624 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11625   $as_echo_n "(cached) " >&6
11626 else
11627   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11628 case `$LD -v 2>&1 </dev/null` in
11629 *GNU* | *'with BFD'*)
11630   lt_cv_prog_gnu_ld=yes
11631   ;;
11632 *)
11633   lt_cv_prog_gnu_ld=no
11634   ;;
11635 esac
11636 fi
11637 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11639 with_gnu_ld=$lt_cv_prog_gnu_ld
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
11650 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11651 if test "${lt_cv_path_NM+set}" = set; then
11652   $as_echo_n "(cached) " >&6
11653 else
11654   if test -n "$NM"; then
11655   # Let the user override the test.
11656   lt_cv_path_NM="$NM"
11657 else
11658   lt_nm_to_check="${ac_tool_prefix}nm"
11659   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11660     lt_nm_to_check="$lt_nm_to_check nm"
11661   fi
11662   for lt_tmp_nm in $lt_nm_to_check; do
11663     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11664     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11665       IFS="$lt_save_ifs"
11666       test -z "$ac_dir" && ac_dir=.
11667       tmp_nm="$ac_dir/$lt_tmp_nm"
11668       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11669         # Check to see if the nm accepts a BSD-compat flag.
11670         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11671         #   nm: unknown option "B" ignored
11672         # Tru64's nm complains that /dev/null is an invalid object file
11673         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11674         */dev/null* | *'Invalid file or object type'*)
11675           lt_cv_path_NM="$tmp_nm -B"
11676           break
11677           ;;
11678         *)
11679           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11680           */dev/null*)
11681             lt_cv_path_NM="$tmp_nm -p"
11682             break
11683             ;;
11684           *)
11685             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11686             continue # so that we can try to find one that supports BSD flags
11687             ;;
11688           esac
11689           ;;
11690         esac
11691       fi
11692     done
11693     IFS="$lt_save_ifs"
11694   done
11695   : ${lt_cv_path_NM=no}
11696 fi
11697 fi
11698 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11699 $as_echo "$lt_cv_path_NM" >&6; }
11700 if test "$lt_cv_path_NM" != "no"; then
11701   NM="$lt_cv_path_NM"
11702 else
11703   # Didn't find any BSD compatible name lister, look for dumpbin.
11704   if test -n "$ac_tool_prefix"; then
11705   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11706   do
11707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
11712   $as_echo_n "(cached) " >&6
11713 else
11714   if test -n "$DUMPBIN"; then
11715   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11716 else
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720   IFS=$as_save_IFS
11721   test -z "$as_dir" && as_dir=.
11722   for ac_exec_ext in '' $ac_executable_extensions; do
11723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11724     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11726     break 2
11727   fi
11728 done
11729 done
11730 IFS=$as_save_IFS
11731
11732 fi
11733 fi
11734 DUMPBIN=$ac_cv_prog_DUMPBIN
11735 if test -n "$DUMPBIN"; then
11736   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
11737 $as_echo "$DUMPBIN" >&6; }
11738 else
11739   { $as_echo "$as_me:$LINENO: result: no" >&5
11740 $as_echo "no" >&6; }
11741 fi
11742
11743
11744     test -n "$DUMPBIN" && break
11745   done
11746 fi
11747 if test -z "$DUMPBIN"; then
11748   ac_ct_DUMPBIN=$DUMPBIN
11749   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11750 do
11751   # Extract the first word of "$ac_prog", so it can be a program name with args.
11752 set dummy $ac_prog; ac_word=$2
11753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
11756   $as_echo_n "(cached) " >&6
11757 else
11758   if test -n "$ac_ct_DUMPBIN"; then
11759   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11760 else
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11763 do
11764   IFS=$as_save_IFS
11765   test -z "$as_dir" && as_dir=.
11766   for ac_exec_ext in '' $ac_executable_extensions; do
11767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11769     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11770     break 2
11771   fi
11772 done
11773 done
11774 IFS=$as_save_IFS
11775
11776 fi
11777 fi
11778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11779 if test -n "$ac_ct_DUMPBIN"; then
11780   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
11781 $as_echo "$ac_ct_DUMPBIN" >&6; }
11782 else
11783   { $as_echo "$as_me:$LINENO: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786
11787
11788   test -n "$ac_ct_DUMPBIN" && break
11789 done
11790
11791   if test "x$ac_ct_DUMPBIN" = x; then
11792     DUMPBIN=":"
11793   else
11794     case $cross_compiling:$ac_tool_warned in
11795 yes:)
11796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798 ac_tool_warned=yes ;;
11799 esac
11800     DUMPBIN=$ac_ct_DUMPBIN
11801   fi
11802 fi
11803
11804
11805   if test "$DUMPBIN" != ":"; then
11806     NM="$DUMPBIN"
11807   fi
11808 fi
11809 test -z "$NM" && NM=nm
11810
11811
11812
11813
11814
11815
11816 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
11817 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11818 if test "${lt_cv_nm_interface+set}" = set; then
11819   $as_echo_n "(cached) " >&6
11820 else
11821   lt_cv_nm_interface="BSD nm"
11822   echo "int some_variable = 0;" > conftest.$ac_ext
11823   (eval echo "\"\$as_me:11823: $ac_compile\"" >&5)
11824   (eval "$ac_compile" 2>conftest.err)
11825   cat conftest.err >&5
11826   (eval echo "\"\$as_me:11826: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11827   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11828   cat conftest.err >&5
11829   (eval echo "\"\$as_me:11829: output\"" >&5)
11830   cat conftest.out >&5
11831   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11832     lt_cv_nm_interface="MS dumpbin"
11833   fi
11834   rm -f conftest*
11835 fi
11836 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
11837 $as_echo "$lt_cv_nm_interface" >&6; }
11838
11839 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11840 $as_echo_n "checking whether ln -s works... " >&6; }
11841 LN_S=$as_ln_s
11842 if test "$LN_S" = "ln -s"; then
11843   { $as_echo "$as_me:$LINENO: result: yes" >&5
11844 $as_echo "yes" >&6; }
11845 else
11846   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11847 $as_echo "no, using $LN_S" >&6; }
11848 fi
11849
11850 # find the maximum length of command line arguments
11851 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11852 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11853 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11854   $as_echo_n "(cached) " >&6
11855 else
11856     i=0
11857   teststring="ABCD"
11858
11859   case $build_os in
11860   msdosdjgpp*)
11861     # On DJGPP, this test can blow up pretty badly due to problems in libc
11862     # (any single argument exceeding 2000 bytes causes a buffer overrun
11863     # during glob expansion).  Even if it were fixed, the result of this
11864     # check would be larger than it should be.
11865     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11866     ;;
11867
11868   gnu*)
11869     # Under GNU Hurd, this test is not required because there is
11870     # no limit to the length of command line arguments.
11871     # Libtool will interpret -1 as no limit whatsoever
11872     lt_cv_sys_max_cmd_len=-1;
11873     ;;
11874
11875   cygwin* | mingw*)
11876     # On Win9x/ME, this test blows up -- it succeeds, but takes
11877     # about 5 minutes as the teststring grows exponentially.
11878     # Worse, since 9x/ME are not pre-emptively multitasking,
11879     # you end up with a "frozen" computer, even though with patience
11880     # the test eventually succeeds (with a max line length of 256k).
11881     # Instead, let's just punt: use the minimum linelength reported by
11882     # all of the supported platforms: 8192 (on NT/2K/XP).
11883     lt_cv_sys_max_cmd_len=8192;
11884     ;;
11885
11886   amigaos*)
11887     # On AmigaOS with pdksh, this test takes hours, literally.
11888     # So we just punt and use a minimum line length of 8192.
11889     lt_cv_sys_max_cmd_len=8192;
11890     ;;
11891
11892   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11893     # This has been around since 386BSD, at least.  Likely further.
11894     if test -x /sbin/sysctl; then
11895       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11896     elif test -x /usr/sbin/sysctl; then
11897       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11898     else
11899       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11900     fi
11901     # And add a safety zone
11902     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11903     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11904     ;;
11905
11906   interix*)
11907     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11908     lt_cv_sys_max_cmd_len=196608
11909     ;;
11910
11911   osf*)
11912     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11913     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11914     # nice to cause kernel panics so lets avoid the loop below.
11915     # First set a reasonable default.
11916     lt_cv_sys_max_cmd_len=16384
11917     #
11918     if test -x /sbin/sysconfig; then
11919       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11920         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11921       esac
11922     fi
11923     ;;
11924   sco3.2v5*)
11925     lt_cv_sys_max_cmd_len=102400
11926     ;;
11927   sysv5* | sco5v6* | sysv4.2uw2*)
11928     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11929     if test -n "$kargmax"; then
11930       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11931     else
11932       lt_cv_sys_max_cmd_len=32768
11933     fi
11934     ;;
11935   *)
11936     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11937     if test -n "$lt_cv_sys_max_cmd_len"; then
11938       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11939       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11940     else
11941       # Make teststring a little bigger before we do anything with it.
11942       # a 1K string should be a reasonable start.
11943       for i in 1 2 3 4 5 6 7 8 ; do
11944         teststring=$teststring$teststring
11945       done
11946       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11947       # If test is not a shell built-in, we'll probably end up computing a
11948       # maximum length that is only half of the actual maximum length, but
11949       # we can't tell.
11950       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11951                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11952               test $i != 17 # 1/2 MB should be enough
11953       do
11954         i=`expr $i + 1`
11955         teststring=$teststring$teststring
11956       done
11957       # Only check the string length outside the loop.
11958       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11959       teststring=
11960       # Add a significant safety factor because C++ compilers can tack on
11961       # massive amounts of additional arguments before passing them to the
11962       # linker.  It appears as though 1/2 is a usable value.
11963       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11964     fi
11965     ;;
11966   esac
11967
11968 fi
11969
11970 if test -n $lt_cv_sys_max_cmd_len ; then
11971   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11972 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11973 else
11974   { $as_echo "$as_me:$LINENO: result: none" >&5
11975 $as_echo "none" >&6; }
11976 fi
11977 max_cmd_len=$lt_cv_sys_max_cmd_len
11978
11979
11980
11981
11982
11983
11984
11985 : ${CP="cp -f"}
11986 : ${MV="mv -f"}
11987 : ${RM="rm -f"}
11988
11989 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
11990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11991 # Try some XSI features
11992 xsi_shell=no
11993 ( _lt_dummy="a/b/c"
11994   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11995       = c,a/b,, ) >/dev/null 2>&1 \
11996   && xsi_shell=yes
11997 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
11998 $as_echo "$xsi_shell" >&6; }
11999
12000
12001 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
12002 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12003 lt_shell_append=no
12004 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12005     >/dev/null 2>&1 \
12006   && lt_shell_append=yes
12007 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
12008 $as_echo "$lt_shell_append" >&6; }
12009
12010
12011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12012   lt_unset=unset
12013 else
12014   lt_unset=false
12015 fi
12016
12017
12018
12019
12020
12021 # test EBCDIC or ASCII
12022 case `echo X|tr X '\101'` in
12023  A) # ASCII based system
12024     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12025   lt_SP2NL='tr \040 \012'
12026   lt_NL2SP='tr \015\012 \040\040'
12027   ;;
12028  *) # EBCDIC based system
12029   lt_SP2NL='tr \100 \n'
12030   lt_NL2SP='tr \r\n \100\100'
12031   ;;
12032 esac
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12043 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12044 if test "${lt_cv_ld_reload_flag+set}" = set; then
12045   $as_echo_n "(cached) " >&6
12046 else
12047   lt_cv_ld_reload_flag='-r'
12048 fi
12049 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12050 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12051 reload_flag=$lt_cv_ld_reload_flag
12052 case $reload_flag in
12053 "" | " "*) ;;
12054 *) reload_flag=" $reload_flag" ;;
12055 esac
12056 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12057 case $host_os in
12058   darwin*)
12059     if test "$GCC" = yes; then
12060       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12061     else
12062       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12063     fi
12064     ;;
12065 esac
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12077 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12078 if test "${lt_cv_deplibs_check_method+set}" = set; then
12079   $as_echo_n "(cached) " >&6
12080 else
12081   lt_cv_file_magic_cmd='$MAGIC_CMD'
12082 lt_cv_file_magic_test_file=
12083 lt_cv_deplibs_check_method='unknown'
12084 # Need to set the preceding variable on all platforms that support
12085 # interlibrary dependencies.
12086 # 'none' -- dependencies not supported.
12087 # `unknown' -- same as none, but documents that we really don't know.
12088 # 'pass_all' -- all dependencies passed with no checks.
12089 # 'test_compile' -- check by making test program.
12090 # 'file_magic [[regex]]' -- check by looking for files in library path
12091 # which responds to the $file_magic_cmd with a given extended regex.
12092 # If you have `file' or equivalent on your system and you're not sure
12093 # whether `pass_all' will *always* work, you probably want this one.
12094
12095 case $host_os in
12096 aix[4-9]*)
12097   lt_cv_deplibs_check_method=pass_all
12098   ;;
12099
12100 beos*)
12101   lt_cv_deplibs_check_method=pass_all
12102   ;;
12103
12104 bsdi[45]*)
12105   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12106   lt_cv_file_magic_cmd='/usr/bin/file -L'
12107   lt_cv_file_magic_test_file=/shlib/libc.so
12108   ;;
12109
12110 cygwin*)
12111   # func_win32_libid is a shell function defined in ltmain.sh
12112   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12113   lt_cv_file_magic_cmd='func_win32_libid'
12114   ;;
12115
12116 mingw* | pw32*)
12117   # Base MSYS/MinGW do not provide the 'file' command needed by
12118   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12119   # unless we find 'file', for example because we are cross-compiling.
12120   if ( file / ) >/dev/null 2>&1; then
12121     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12122     lt_cv_file_magic_cmd='func_win32_libid'
12123   else
12124     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12125     lt_cv_file_magic_cmd='$OBJDUMP -f'
12126   fi
12127   ;;
12128
12129 darwin* | rhapsody*)
12130   lt_cv_deplibs_check_method=pass_all
12131   ;;
12132
12133 freebsd* | dragonfly*)
12134   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12135     case $host_cpu in
12136     i*86 )
12137       # Not sure whether the presence of OpenBSD here was a mistake.
12138       # Let's accept both of them until this is cleared up.
12139       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12140       lt_cv_file_magic_cmd=/usr/bin/file
12141       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12142       ;;
12143     esac
12144   else
12145     lt_cv_deplibs_check_method=pass_all
12146   fi
12147   ;;
12148
12149 gnu*)
12150   lt_cv_deplibs_check_method=pass_all
12151   ;;
12152
12153 hpux10.20* | hpux11*)
12154   lt_cv_file_magic_cmd=/usr/bin/file
12155   case $host_cpu in
12156   ia64*)
12157     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12158     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12159     ;;
12160   hppa*64*)
12161     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]'
12162     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12163     ;;
12164   *)
12165     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12166     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12167     ;;
12168   esac
12169   ;;
12170
12171 interix[3-9]*)
12172   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12173   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12174   ;;
12175
12176 irix5* | irix6* | nonstopux*)
12177   case $LD in
12178   *-32|*"-32 ") libmagic=32-bit;;
12179   *-n32|*"-n32 ") libmagic=N32;;
12180   *-64|*"-64 ") libmagic=64-bit;;
12181   *) libmagic=never-match;;
12182   esac
12183   lt_cv_deplibs_check_method=pass_all
12184   ;;
12185
12186 # This must be Linux ELF.
12187 linux* | k*bsd*-gnu)
12188   lt_cv_deplibs_check_method=pass_all
12189   ;;
12190
12191 netbsd*)
12192   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12194   else
12195     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12196   fi
12197   ;;
12198
12199 newos6*)
12200   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12201   lt_cv_file_magic_cmd=/usr/bin/file
12202   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12203   ;;
12204
12205 *nto* | *qnx*)
12206   lt_cv_deplibs_check_method=pass_all
12207   ;;
12208
12209 openbsd*)
12210   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12211     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12212   else
12213     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12214   fi
12215   ;;
12216
12217 osf3* | osf4* | osf5*)
12218   lt_cv_deplibs_check_method=pass_all
12219   ;;
12220
12221 rdos*)
12222   lt_cv_deplibs_check_method=pass_all
12223   ;;
12224
12225 solaris*)
12226   lt_cv_deplibs_check_method=pass_all
12227   ;;
12228
12229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12230   lt_cv_deplibs_check_method=pass_all
12231   ;;
12232
12233 sysv4 | sysv4.3*)
12234   case $host_vendor in
12235   motorola)
12236     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]'
12237     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12238     ;;
12239   ncr)
12240     lt_cv_deplibs_check_method=pass_all
12241     ;;
12242   sequent)
12243     lt_cv_file_magic_cmd='/bin/file'
12244     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12245     ;;
12246   sni)
12247     lt_cv_file_magic_cmd='/bin/file'
12248     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12249     lt_cv_file_magic_test_file=/lib/libc.so
12250     ;;
12251   siemens)
12252     lt_cv_deplibs_check_method=pass_all
12253     ;;
12254   pc)
12255     lt_cv_deplibs_check_method=pass_all
12256     ;;
12257   esac
12258   ;;
12259
12260 tpf*)
12261   lt_cv_deplibs_check_method=pass_all
12262   ;;
12263 esac
12264
12265 fi
12266 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12267 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12268 file_magic_cmd=$lt_cv_file_magic_cmd
12269 deplibs_check_method=$lt_cv_deplibs_check_method
12270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283 if test -n "$ac_tool_prefix"; then
12284   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12285 set dummy ${ac_tool_prefix}ar; ac_word=$2
12286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if test "${ac_cv_prog_AR+set}" = set; then
12289   $as_echo_n "(cached) " >&6
12290 else
12291   if test -n "$AR"; then
12292   ac_cv_prog_AR="$AR" # Let the user override the test.
12293 else
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12296 do
12297   IFS=$as_save_IFS
12298   test -z "$as_dir" && as_dir=.
12299   for ac_exec_ext in '' $ac_executable_extensions; do
12300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301     ac_cv_prog_AR="${ac_tool_prefix}ar"
12302     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12303     break 2
12304   fi
12305 done
12306 done
12307 IFS=$as_save_IFS
12308
12309 fi
12310 fi
12311 AR=$ac_cv_prog_AR
12312 if test -n "$AR"; then
12313   { $as_echo "$as_me:$LINENO: result: $AR" >&5
12314 $as_echo "$AR" >&6; }
12315 else
12316   { $as_echo "$as_me:$LINENO: result: no" >&5
12317 $as_echo "no" >&6; }
12318 fi
12319
12320
12321 fi
12322 if test -z "$ac_cv_prog_AR"; then
12323   ac_ct_AR=$AR
12324   # Extract the first word of "ar", so it can be a program name with args.
12325 set dummy ar; ac_word=$2
12326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12329   $as_echo_n "(cached) " >&6
12330 else
12331   if test -n "$ac_ct_AR"; then
12332   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337   IFS=$as_save_IFS
12338   test -z "$as_dir" && as_dir=.
12339   for ac_exec_ext in '' $ac_executable_extensions; do
12340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12341     ac_cv_prog_ac_ct_AR="ar"
12342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343     break 2
12344   fi
12345 done
12346 done
12347 IFS=$as_save_IFS
12348
12349 fi
12350 fi
12351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12352 if test -n "$ac_ct_AR"; then
12353   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12354 $as_echo "$ac_ct_AR" >&6; }
12355 else
12356   { $as_echo "$as_me:$LINENO: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360   if test "x$ac_ct_AR" = x; then
12361     AR="false"
12362   else
12363     case $cross_compiling:$ac_tool_warned in
12364 yes:)
12365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12367 ac_tool_warned=yes ;;
12368 esac
12369     AR=$ac_ct_AR
12370   fi
12371 else
12372   AR="$ac_cv_prog_AR"
12373 fi
12374
12375 test -z "$AR" && AR=ar
12376 test -z "$AR_FLAGS" && AR_FLAGS=cru
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 if test -n "$ac_tool_prefix"; then
12389   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12390 set dummy ${ac_tool_prefix}strip; ac_word=$2
12391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_prog_STRIP+set}" = set; then
12394   $as_echo_n "(cached) " >&6
12395 else
12396   if test -n "$STRIP"; then
12397   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404   for ac_exec_ext in '' $ac_executable_extensions; do
12405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12407     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411 done
12412 IFS=$as_save_IFS
12413
12414 fi
12415 fi
12416 STRIP=$ac_cv_prog_STRIP
12417 if test -n "$STRIP"; then
12418   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12419 $as_echo "$STRIP" >&6; }
12420 else
12421   { $as_echo "$as_me:$LINENO: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424
12425
12426 fi
12427 if test -z "$ac_cv_prog_STRIP"; then
12428   ac_ct_STRIP=$STRIP
12429   # Extract the first word of "strip", so it can be a program name with args.
12430 set dummy strip; ac_word=$2
12431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12434   $as_echo_n "(cached) " >&6
12435 else
12436   if test -n "$ac_ct_STRIP"; then
12437   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12438 else
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12441 do
12442   IFS=$as_save_IFS
12443   test -z "$as_dir" && as_dir=.
12444   for ac_exec_ext in '' $ac_executable_extensions; do
12445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12446     ac_cv_prog_ac_ct_STRIP="strip"
12447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12448     break 2
12449   fi
12450 done
12451 done
12452 IFS=$as_save_IFS
12453
12454 fi
12455 fi
12456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12457 if test -n "$ac_ct_STRIP"; then
12458   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12459 $as_echo "$ac_ct_STRIP" >&6; }
12460 else
12461   { $as_echo "$as_me:$LINENO: result: no" >&5
12462 $as_echo "no" >&6; }
12463 fi
12464
12465   if test "x$ac_ct_STRIP" = x; then
12466     STRIP=":"
12467   else
12468     case $cross_compiling:$ac_tool_warned in
12469 yes:)
12470 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12472 ac_tool_warned=yes ;;
12473 esac
12474     STRIP=$ac_ct_STRIP
12475   fi
12476 else
12477   STRIP="$ac_cv_prog_STRIP"
12478 fi
12479
12480 test -z "$STRIP" && STRIP=:
12481
12482
12483
12484
12485
12486
12487 if test -n "$ac_tool_prefix"; then
12488   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12489 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if test "${ac_cv_prog_RANLIB+set}" = set; then
12493   $as_echo_n "(cached) " >&6
12494 else
12495   if test -n "$RANLIB"; then
12496   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12497 else
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12500 do
12501   IFS=$as_save_IFS
12502   test -z "$as_dir" && as_dir=.
12503   for ac_exec_ext in '' $ac_executable_extensions; do
12504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12506     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12507     break 2
12508   fi
12509 done
12510 done
12511 IFS=$as_save_IFS
12512
12513 fi
12514 fi
12515 RANLIB=$ac_cv_prog_RANLIB
12516 if test -n "$RANLIB"; then
12517   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12518 $as_echo "$RANLIB" >&6; }
12519 else
12520   { $as_echo "$as_me:$LINENO: result: no" >&5
12521 $as_echo "no" >&6; }
12522 fi
12523
12524
12525 fi
12526 if test -z "$ac_cv_prog_RANLIB"; then
12527   ac_ct_RANLIB=$RANLIB
12528   # Extract the first word of "ranlib", so it can be a program name with args.
12529 set dummy ranlib; ac_word=$2
12530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12533   $as_echo_n "(cached) " >&6
12534 else
12535   if test -n "$ac_ct_RANLIB"; then
12536   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541   IFS=$as_save_IFS
12542   test -z "$as_dir" && as_dir=.
12543   for ac_exec_ext in '' $ac_executable_extensions; do
12544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12545     ac_cv_prog_ac_ct_RANLIB="ranlib"
12546     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12547     break 2
12548   fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12556 if test -n "$ac_ct_RANLIB"; then
12557   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12558 $as_echo "$ac_ct_RANLIB" >&6; }
12559 else
12560   { $as_echo "$as_me:$LINENO: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564   if test "x$ac_ct_RANLIB" = x; then
12565     RANLIB=":"
12566   else
12567     case $cross_compiling:$ac_tool_warned in
12568 yes:)
12569 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12571 ac_tool_warned=yes ;;
12572 esac
12573     RANLIB=$ac_ct_RANLIB
12574   fi
12575 else
12576   RANLIB="$ac_cv_prog_RANLIB"
12577 fi
12578
12579 test -z "$RANLIB" && RANLIB=:
12580
12581
12582
12583
12584
12585
12586 # Determine commands to create old-style static archives.
12587 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12588 old_postinstall_cmds='chmod 644 $oldlib'
12589 old_postuninstall_cmds=
12590
12591 if test -n "$RANLIB"; then
12592   case $host_os in
12593   openbsd*)
12594     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12595     ;;
12596   *)
12597     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12598     ;;
12599   esac
12600   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12601 fi
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636 # If no C compiler was specified, use CC.
12637 LTCC=${LTCC-"$CC"}
12638
12639 # If no C compiler flags were specified, use CFLAGS.
12640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12641
12642 # Allow CC to be a program name with arguments.
12643 compiler=$CC
12644
12645
12646 # Check for command to grab the raw symbol name followed by C symbol from nm.
12647 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12648 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12649 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12650   $as_echo_n "(cached) " >&6
12651 else
12652
12653 # These are sane defaults that work on at least a few old systems.
12654 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12655
12656 # Character class describing NM global symbol codes.
12657 symcode='[BCDEGRST]'
12658
12659 # Regexp to match symbols that can be accessed directly from C.
12660 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12661
12662 # Define system-specific variables.
12663 case $host_os in
12664 aix*)
12665   symcode='[BCDT]'
12666   ;;
12667 cygwin* | mingw* | pw32*)
12668   symcode='[ABCDGISTW]'
12669   ;;
12670 hpux*)
12671   if test "$host_cpu" = ia64; then
12672     symcode='[ABCDEGRST]'
12673   fi
12674   ;;
12675 irix* | nonstopux*)
12676   symcode='[BCDEGRST]'
12677   ;;
12678 osf*)
12679   symcode='[BCDEGQRST]'
12680   ;;
12681 solaris*)
12682   symcode='[BDRT]'
12683   ;;
12684 sco3.2v5*)
12685   symcode='[DT]'
12686   ;;
12687 sysv4.2uw2*)
12688   symcode='[DT]'
12689   ;;
12690 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12691   symcode='[ABDT]'
12692   ;;
12693 sysv4)
12694   symcode='[DFNSTU]'
12695   ;;
12696 esac
12697
12698 # If we're using GNU nm, then use its standard symbol codes.
12699 case `$NM -V 2>&1` in
12700 *GNU* | *'with BFD'*)
12701   symcode='[ABCDGIRSTW]' ;;
12702 esac
12703
12704 # Transform an extracted symbol line into a proper C declaration.
12705 # Some systems (esp. on ia64) link data and code symbols differently,
12706 # so use this general approach.
12707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12708
12709 # Transform an extracted symbol line into symbol name and symbol address
12710 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12711 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'"
12712
12713 # Handle CRLF in mingw tool chain
12714 opt_cr=
12715 case $build_os in
12716 mingw*)
12717   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12718   ;;
12719 esac
12720
12721 # Try without a prefix underscore, then with it.
12722 for ac_symprfx in "" "_"; do
12723
12724   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12725   symxfrm="\\1 $ac_symprfx\\2 \\2"
12726
12727   # Write the raw and C identifiers.
12728   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12729     # Fake it for dumpbin and say T for any non-static function
12730     # and D for any global variable.
12731     # Also find C++ and __fastcall symbols from MSVC++,
12732     # which start with @ or ?.
12733     lt_cv_sys_global_symbol_pipe="$AWK '"\
12734 "     {last_section=section; section=\$ 3};"\
12735 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12736 "     \$ 0!~/External *\|/{next};"\
12737 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12738 "     {if(hide[section]) next};"\
12739 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12740 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12741 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12742 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12743 "     ' prfx=^$ac_symprfx"
12744   else
12745     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12746   fi
12747
12748   # Check to see that the pipe works correctly.
12749   pipe_works=no
12750
12751   rm -f conftest*
12752   cat > conftest.$ac_ext <<_LT_EOF
12753 #ifdef __cplusplus
12754 extern "C" {
12755 #endif
12756 char nm_test_var;
12757 void nm_test_func(void);
12758 void nm_test_func(void){}
12759 #ifdef __cplusplus
12760 }
12761 #endif
12762 int main(){nm_test_var='a';nm_test_func();return(0);}
12763 _LT_EOF
12764
12765   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766   (eval $ac_compile) 2>&5
12767   ac_status=$?
12768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; then
12770     # Now try to grab the symbols.
12771     nlist=conftest.nm
12772     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12773   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12774   ac_status=$?
12775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); } && test -s "$nlist"; then
12777       # Try sorting and uniquifying the output.
12778       if sort "$nlist" | uniq > "$nlist"T; then
12779         mv -f "$nlist"T "$nlist"
12780       else
12781         rm -f "$nlist"T
12782       fi
12783
12784       # Make sure that we snagged all the symbols we need.
12785       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12786         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12787           cat <<_LT_EOF > conftest.$ac_ext
12788 #ifdef __cplusplus
12789 extern "C" {
12790 #endif
12791
12792 _LT_EOF
12793           # Now generate the symbol file.
12794           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12795
12796           cat <<_LT_EOF >> conftest.$ac_ext
12797
12798 /* The mapping between symbol names and symbols.  */
12799 const struct {
12800   const char *name;
12801   void       *address;
12802 }
12803 lt__PROGRAM__LTX_preloaded_symbols[] =
12804 {
12805   { "@PROGRAM@", (void *) 0 },
12806 _LT_EOF
12807           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12808           cat <<\_LT_EOF >> conftest.$ac_ext
12809   {0, (void *) 0}
12810 };
12811
12812 /* This works around a problem in FreeBSD linker */
12813 #ifdef FREEBSD_WORKAROUND
12814 static const void *lt_preloaded_setup() {
12815   return lt__PROGRAM__LTX_preloaded_symbols;
12816 }
12817 #endif
12818
12819 #ifdef __cplusplus
12820 }
12821 #endif
12822 _LT_EOF
12823           # Now try linking the two files.
12824           mv conftest.$ac_objext conftstm.$ac_objext
12825           lt_save_LIBS="$LIBS"
12826           lt_save_CFLAGS="$CFLAGS"
12827           LIBS="conftstm.$ac_objext"
12828           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12829           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830   (eval $ac_link) 2>&5
12831   ac_status=$?
12832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12834             pipe_works=yes
12835           fi
12836           LIBS="$lt_save_LIBS"
12837           CFLAGS="$lt_save_CFLAGS"
12838         else
12839           echo "cannot find nm_test_func in $nlist" >&5
12840         fi
12841       else
12842         echo "cannot find nm_test_var in $nlist" >&5
12843       fi
12844     else
12845       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12846     fi
12847   else
12848     echo "$progname: failed program was:" >&5
12849     cat conftest.$ac_ext >&5
12850   fi
12851   rm -rf conftest* conftst*
12852
12853   # Do not use the global_symbol_pipe unless it works.
12854   if test "$pipe_works" = yes; then
12855     break
12856   else
12857     lt_cv_sys_global_symbol_pipe=
12858   fi
12859 done
12860
12861 fi
12862
12863 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12864   lt_cv_sys_global_symbol_to_cdecl=
12865 fi
12866 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12867   { $as_echo "$as_me:$LINENO: result: failed" >&5
12868 $as_echo "failed" >&6; }
12869 else
12870   { $as_echo "$as_me:$LINENO: result: ok" >&5
12871 $as_echo "ok" >&6; }
12872 fi
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895 # Check whether --enable-libtool-lock was given.
12896 if test "${enable_libtool_lock+set}" = set; then
12897   enableval=$enable_libtool_lock;
12898 fi
12899
12900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12901
12902 # Some flags need to be propagated to the compiler or linker for good
12903 # libtool support.
12904 case $host in
12905 ia64-*-hpux*)
12906   # Find out which ABI we are using.
12907   echo 'int i;' > conftest.$ac_ext
12908   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909   (eval $ac_compile) 2>&5
12910   ac_status=$?
12911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; then
12913     case `/usr/bin/file conftest.$ac_objext` in
12914       *ELF-32*)
12915         HPUX_IA64_MODE="32"
12916         ;;
12917       *ELF-64*)
12918         HPUX_IA64_MODE="64"
12919         ;;
12920     esac
12921   fi
12922   rm -rf conftest*
12923   ;;
12924 *-*-irix6*)
12925   # Find out which ABI we are using.
12926   echo '#line 12926 "configure"' > conftest.$ac_ext
12927   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928   (eval $ac_compile) 2>&5
12929   ac_status=$?
12930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; then
12932     if test "$lt_cv_prog_gnu_ld" = yes; then
12933       case `/usr/bin/file conftest.$ac_objext` in
12934         *32-bit*)
12935           LD="${LD-ld} -melf32bsmip"
12936           ;;
12937         *N32*)
12938           LD="${LD-ld} -melf32bmipn32"
12939           ;;
12940         *64-bit*)
12941           LD="${LD-ld} -melf64bmip"
12942         ;;
12943       esac
12944     else
12945       case `/usr/bin/file conftest.$ac_objext` in
12946         *32-bit*)
12947           LD="${LD-ld} -32"
12948           ;;
12949         *N32*)
12950           LD="${LD-ld} -n32"
12951           ;;
12952         *64-bit*)
12953           LD="${LD-ld} -64"
12954           ;;
12955       esac
12956     fi
12957   fi
12958   rm -rf conftest*
12959   ;;
12960
12961 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12962 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12963   # Find out which ABI we are using.
12964   echo 'int i;' > conftest.$ac_ext
12965   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966   (eval $ac_compile) 2>&5
12967   ac_status=$?
12968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); }; then
12970     case `/usr/bin/file conftest.o` in
12971       *32-bit*)
12972         case $host in
12973           x86_64-*kfreebsd*-gnu)
12974             LD="${LD-ld} -m elf_i386_fbsd"
12975             ;;
12976           x86_64-*linux*)
12977             LD="${LD-ld} -m elf_i386"
12978             ;;
12979           ppc64-*linux*|powerpc64-*linux*)
12980             LD="${LD-ld} -m elf32ppclinux"
12981             ;;
12982           s390x-*linux*)
12983             LD="${LD-ld} -m elf_s390"
12984             ;;
12985           sparc64-*linux*)
12986             LD="${LD-ld} -m elf32_sparc"
12987             ;;
12988         esac
12989         ;;
12990       *64-bit*)
12991         case $host in
12992           x86_64-*kfreebsd*-gnu)
12993             LD="${LD-ld} -m elf_x86_64_fbsd"
12994             ;;
12995           x86_64-*linux*)
12996             LD="${LD-ld} -m elf_x86_64"
12997             ;;
12998           ppc*-*linux*|powerpc*-*linux*)
12999             LD="${LD-ld} -m elf64ppc"
13000             ;;
13001           s390*-*linux*|s390*-*tpf*)
13002             LD="${LD-ld} -m elf64_s390"
13003             ;;
13004           sparc*-*linux*)
13005             LD="${LD-ld} -m elf64_sparc"
13006             ;;
13007         esac
13008         ;;
13009     esac
13010   fi
13011   rm -rf conftest*
13012   ;;
13013
13014 *-*-sco3.2v5*)
13015   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13016   SAVE_CFLAGS="$CFLAGS"
13017   CFLAGS="$CFLAGS -belf"
13018   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13019 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13020 if test "${lt_cv_cc_needs_belf+set}" = set; then
13021   $as_echo_n "(cached) " >&6
13022 else
13023   ac_ext=c
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13028
13029      cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035
13036 int
13037 main ()
13038 {
13039
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052   (eval "$ac_link") 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } && {
13059          test -z "$ac_c_werror_flag" ||
13060          test ! -s conftest.err
13061        } && test -s conftest$ac_exeext && {
13062          test "$cross_compiling" = yes ||
13063          $as_test_x conftest$ac_exeext
13064        }; then
13065   lt_cv_cc_needs_belf=yes
13066 else
13067   $as_echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070         lt_cv_cc_needs_belf=no
13071 fi
13072
13073 rm -rf conftest.dSYM
13074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13075       conftest$ac_exeext conftest.$ac_ext
13076      ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082 fi
13083 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13084 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13085   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13086     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13087     CFLAGS="$SAVE_CFLAGS"
13088   fi
13089   ;;
13090 sparc*-*solaris*)
13091   # Find out which ABI we are using.
13092   echo 'int i;' > conftest.$ac_ext
13093   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094   (eval $ac_compile) 2>&5
13095   ac_status=$?
13096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); }; then
13098     case `/usr/bin/file conftest.o` in
13099     *64-bit*)
13100       case $lt_cv_prog_gnu_ld in
13101       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13102       *)
13103         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13104           LD="${LD-ld} -64"
13105         fi
13106         ;;
13107       esac
13108       ;;
13109     esac
13110   fi
13111   rm -rf conftest*
13112   ;;
13113 esac
13114
13115 need_locks="$enable_libtool_lock"
13116
13117
13118   case $host_os in
13119     rhapsody* | darwin*)
13120     if test -n "$ac_tool_prefix"; then
13121   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13122 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
13126   $as_echo_n "(cached) " >&6
13127 else
13128   if test -n "$DSYMUTIL"; then
13129   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13130 else
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134   IFS=$as_save_IFS
13135   test -z "$as_dir" && as_dir=.
13136   for ac_exec_ext in '' $ac_executable_extensions; do
13137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13139     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13140     break 2
13141   fi
13142 done
13143 done
13144 IFS=$as_save_IFS
13145
13146 fi
13147 fi
13148 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13149 if test -n "$DSYMUTIL"; then
13150   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
13151 $as_echo "$DSYMUTIL" >&6; }
13152 else
13153   { $as_echo "$as_me:$LINENO: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156
13157
13158 fi
13159 if test -z "$ac_cv_prog_DSYMUTIL"; then
13160   ac_ct_DSYMUTIL=$DSYMUTIL
13161   # Extract the first word of "dsymutil", so it can be a program name with args.
13162 set dummy dsymutil; ac_word=$2
13163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
13166   $as_echo_n "(cached) " >&6
13167 else
13168   if test -n "$ac_ct_DSYMUTIL"; then
13169   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13170 else
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13173 do
13174   IFS=$as_save_IFS
13175   test -z "$as_dir" && as_dir=.
13176   for ac_exec_ext in '' $ac_executable_extensions; do
13177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13179     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13180     break 2
13181   fi
13182 done
13183 done
13184 IFS=$as_save_IFS
13185
13186 fi
13187 fi
13188 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13189 if test -n "$ac_ct_DSYMUTIL"; then
13190   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
13191 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13192 else
13193   { $as_echo "$as_me:$LINENO: result: no" >&5
13194 $as_echo "no" >&6; }
13195 fi
13196
13197   if test "x$ac_ct_DSYMUTIL" = x; then
13198     DSYMUTIL=":"
13199   else
13200     case $cross_compiling:$ac_tool_warned in
13201 yes:)
13202 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13204 ac_tool_warned=yes ;;
13205 esac
13206     DSYMUTIL=$ac_ct_DSYMUTIL
13207   fi
13208 else
13209   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13210 fi
13211
13212     if test -n "$ac_tool_prefix"; then
13213   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13214 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_prog_NMEDIT+set}" = set; then
13218   $as_echo_n "(cached) " >&6
13219 else
13220   if test -n "$NMEDIT"; then
13221   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13225 do
13226   IFS=$as_save_IFS
13227   test -z "$as_dir" && as_dir=.
13228   for ac_exec_ext in '' $ac_executable_extensions; do
13229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13231     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13232     break 2
13233   fi
13234 done
13235 done
13236 IFS=$as_save_IFS
13237
13238 fi
13239 fi
13240 NMEDIT=$ac_cv_prog_NMEDIT
13241 if test -n "$NMEDIT"; then
13242   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
13243 $as_echo "$NMEDIT" >&6; }
13244 else
13245   { $as_echo "$as_me:$LINENO: result: no" >&5
13246 $as_echo "no" >&6; }
13247 fi
13248
13249
13250 fi
13251 if test -z "$ac_cv_prog_NMEDIT"; then
13252   ac_ct_NMEDIT=$NMEDIT
13253   # Extract the first word of "nmedit", so it can be a program name with args.
13254 set dummy nmedit; ac_word=$2
13255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
13258   $as_echo_n "(cached) " >&6
13259 else
13260   if test -n "$ac_ct_NMEDIT"; then
13261   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266   IFS=$as_save_IFS
13267   test -z "$as_dir" && as_dir=.
13268   for ac_exec_ext in '' $ac_executable_extensions; do
13269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13270     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13271     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13272     break 2
13273   fi
13274 done
13275 done
13276 IFS=$as_save_IFS
13277
13278 fi
13279 fi
13280 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13281 if test -n "$ac_ct_NMEDIT"; then
13282   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
13283 $as_echo "$ac_ct_NMEDIT" >&6; }
13284 else
13285   { $as_echo "$as_me:$LINENO: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288
13289   if test "x$ac_ct_NMEDIT" = x; then
13290     NMEDIT=":"
13291   else
13292     case $cross_compiling:$ac_tool_warned in
13293 yes:)
13294 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296 ac_tool_warned=yes ;;
13297 esac
13298     NMEDIT=$ac_ct_NMEDIT
13299   fi
13300 else
13301   NMEDIT="$ac_cv_prog_NMEDIT"
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
13316 $as_echo_n "checking for -single_module linker flag... " >&6; }
13317 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13318   $as_echo_n "(cached) " >&6
13319 else
13320   lt_cv_apple_cc_single_mod=no
13321       if test -z "${LT_MULTI_MODULE}"; then
13322         # By default we will add the -single_module flag. You can override
13323         # by either setting the environment variable LT_MULTI_MODULE
13324         # non-empty at configure time, or by adding -multi_module to the
13325         # link flags.
13326         echo "int foo(void){return 1;}" > conftest.c
13327         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13328           -dynamiclib ${wl}-single_module conftest.c
13329         if test -f libconftest.dylib; then
13330           lt_cv_apple_cc_single_mod=yes
13331           rm -rf libconftest.dylib*
13332         fi
13333         rm conftest.c
13334       fi
13335 fi
13336 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
13337 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13338     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
13339 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13340 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
13341   $as_echo_n "(cached) " >&6
13342 else
13343   lt_cv_ld_exported_symbols_list=no
13344       save_LDFLAGS=$LDFLAGS
13345       echo "_main" > conftest.sym
13346       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13347       cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353
13354 int
13355 main ()
13356 {
13357
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13369 $as_echo "$ac_try_echo") >&5
13370   (eval "$ac_link") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } && {
13377          test -z "$ac_c_werror_flag" ||
13378          test ! -s conftest.err
13379        } && test -s conftest$ac_exeext && {
13380          test "$cross_compiling" = yes ||
13381          $as_test_x conftest$ac_exeext
13382        }; then
13383   lt_cv_ld_exported_symbols_list=yes
13384 else
13385   $as_echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388         lt_cv_ld_exported_symbols_list=no
13389 fi
13390
13391 rm -rf conftest.dSYM
13392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13393       conftest$ac_exeext conftest.$ac_ext
13394         LDFLAGS="$save_LDFLAGS"
13395
13396 fi
13397 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
13398 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13399     case $host_os in
13400     rhapsody* | darwin1.[012])
13401       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13402     darwin1.*)
13403       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13404     darwin*) # darwin 5.x on
13405       # if running on 10.5 or later, the deployment target defaults
13406       # to the OS version, if on x86, and 10.4, the deployment
13407       # target defaults to 10.4. Don't you love it?
13408       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13409         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13410           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13411         10.[012]*)
13412           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13413         10.*)
13414           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13415       esac
13416     ;;
13417   esac
13418     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13419       _lt_dar_single_mod='$single_module'
13420     fi
13421     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13422       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13423     else
13424       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13425     fi
13426     if test "$DSYMUTIL" != ":"; then
13427       _lt_dsymutil='~$DSYMUTIL $lib || :'
13428     else
13429       _lt_dsymutil=
13430     fi
13431     ;;
13432   esac
13433
13434
13435 for ac_header in dlfcn.h
13436 do
13437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 $as_echo_n "checking for $ac_header... " >&6; }
13440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13441   $as_echo_n "(cached) " >&6
13442 else
13443   cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h.  */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h.  */
13449 $ac_includes_default
13450
13451 #include <$ac_header>
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461   (eval "$ac_compile") 2>conftest.er1
13462   ac_status=$?
13463   grep -v '^ *+' conftest.er1 >conftest.err
13464   rm -f conftest.er1
13465   cat conftest.err >&5
13466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } && {
13468          test -z "$ac_c_werror_flag" ||
13469          test ! -s conftest.err
13470        } && test -s conftest.$ac_objext; then
13471   eval "$as_ac_Header=yes"
13472 else
13473   $as_echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476         eval "$as_ac_Header=no"
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 fi
13481 ac_res=`eval 'as_val=${'$as_ac_Header'}
13482                  $as_echo "$as_val"'`
13483                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13484 $as_echo "$ac_res" >&6; }
13485 as_val=`eval 'as_val=${'$as_ac_Header'}
13486                  $as_echo "$as_val"'`
13487    if test "x$as_val" = x""yes; then
13488   cat >>confdefs.h <<_ACEOF
13489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13490 _ACEOF
13491
13492 fi
13493
13494 done
13495
13496
13497
13498 ac_ext=cpp
13499 ac_cpp='$CXXCPP $CPPFLAGS'
13500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13503 if test -z "$CXX"; then
13504   if test -n "$CCC"; then
13505     CXX=$CCC
13506   else
13507     if test -n "$ac_tool_prefix"; then
13508   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13509   do
13510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if test "${ac_cv_prog_CXX+set}" = set; then
13515   $as_echo_n "(cached) " >&6
13516 else
13517   if test -n "$CXX"; then
13518   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13522 do
13523   IFS=$as_save_IFS
13524   test -z "$as_dir" && as_dir=.
13525   for ac_exec_ext in '' $ac_executable_extensions; do
13526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13527     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13529     break 2
13530   fi
13531 done
13532 done
13533 IFS=$as_save_IFS
13534
13535 fi
13536 fi
13537 CXX=$ac_cv_prog_CXX
13538 if test -n "$CXX"; then
13539   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13540 $as_echo "$CXX" >&6; }
13541 else
13542   { $as_echo "$as_me:$LINENO: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545
13546
13547     test -n "$CXX" && break
13548   done
13549 fi
13550 if test -z "$CXX"; then
13551   ac_ct_CXX=$CXX
13552   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13553 do
13554   # Extract the first word of "$ac_prog", so it can be a program name with args.
13555 set dummy $ac_prog; ac_word=$2
13556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13559   $as_echo_n "(cached) " >&6
13560 else
13561   if test -n "$ac_ct_CXX"; then
13562   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13566 do
13567   IFS=$as_save_IFS
13568   test -z "$as_dir" && as_dir=.
13569   for ac_exec_ext in '' $ac_executable_extensions; do
13570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13571     ac_cv_prog_ac_ct_CXX="$ac_prog"
13572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13573     break 2
13574   fi
13575 done
13576 done
13577 IFS=$as_save_IFS
13578
13579 fi
13580 fi
13581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13582 if test -n "$ac_ct_CXX"; then
13583   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13584 $as_echo "$ac_ct_CXX" >&6; }
13585 else
13586   { $as_echo "$as_me:$LINENO: result: no" >&5
13587 $as_echo "no" >&6; }
13588 fi
13589
13590
13591   test -n "$ac_ct_CXX" && break
13592 done
13593
13594   if test "x$ac_ct_CXX" = x; then
13595     CXX="g++"
13596   else
13597     case $cross_compiling:$ac_tool_warned in
13598 yes:)
13599 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601 ac_tool_warned=yes ;;
13602 esac
13603     CXX=$ac_ct_CXX
13604   fi
13605 fi
13606
13607   fi
13608 fi
13609 # Provide some information about the compiler.
13610 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13611 set X $ac_compile
13612 ac_compiler=$2
13613 { (ac_try="$ac_compiler --version >&5"
13614 case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13619 $as_echo "$ac_try_echo") >&5
13620   (eval "$ac_compiler --version >&5") 2>&5
13621   ac_status=$?
13622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }
13624 { (ac_try="$ac_compiler -v >&5"
13625 case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630 $as_echo "$ac_try_echo") >&5
13631   (eval "$ac_compiler -v >&5") 2>&5
13632   ac_status=$?
13633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }
13635 { (ac_try="$ac_compiler -V >&5"
13636 case "(($ac_try" in
13637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638   *) ac_try_echo=$ac_try;;
13639 esac
13640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13641 $as_echo "$ac_try_echo") >&5
13642   (eval "$ac_compiler -V >&5") 2>&5
13643   ac_status=$?
13644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }
13646
13647 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13648 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13649 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13650   $as_echo_n "(cached) " >&6
13651 else
13652   cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h.  */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h.  */
13658
13659 int
13660 main ()
13661 {
13662 #ifndef __GNUC__
13663        choke me
13664 #endif
13665
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 rm -f conftest.$ac_objext
13671 if { (ac_try="$ac_compile"
13672 case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13677 $as_echo "$ac_try_echo") >&5
13678   (eval "$ac_compile") 2>conftest.er1
13679   ac_status=$?
13680   grep -v '^ *+' conftest.er1 >conftest.err
13681   rm -f conftest.er1
13682   cat conftest.err >&5
13683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } && {
13685          test -z "$ac_cxx_werror_flag" ||
13686          test ! -s conftest.err
13687        } && test -s conftest.$ac_objext; then
13688   ac_compiler_gnu=yes
13689 else
13690   $as_echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693         ac_compiler_gnu=no
13694 fi
13695
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13698
13699 fi
13700 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13701 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13702 if test $ac_compiler_gnu = yes; then
13703   GXX=yes
13704 else
13705   GXX=
13706 fi
13707 ac_test_CXXFLAGS=${CXXFLAGS+set}
13708 ac_save_CXXFLAGS=$CXXFLAGS
13709 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13710 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13711 if test "${ac_cv_prog_cxx_g+set}" = set; then
13712   $as_echo_n "(cached) " >&6
13713 else
13714   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13715    ac_cxx_werror_flag=yes
13716    ac_cv_prog_cxx_g=no
13717    CXXFLAGS="-g"
13718    cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724
13725 int
13726 main ()
13727 {
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (ac_try="$ac_compile"
13735 case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13740 $as_echo "$ac_try_echo") >&5
13741   (eval "$ac_compile") 2>conftest.er1
13742   ac_status=$?
13743   grep -v '^ *+' conftest.er1 >conftest.err
13744   rm -f conftest.er1
13745   cat conftest.err >&5
13746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); } && {
13748          test -z "$ac_cxx_werror_flag" ||
13749          test ! -s conftest.err
13750        } && test -s conftest.$ac_objext; then
13751   ac_cv_prog_cxx_g=yes
13752 else
13753   $as_echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756         CXXFLAGS=""
13757       cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763
13764 int
13765 main ()
13766 {
13767
13768   ;
13769   return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776   *) ac_try_echo=$ac_try;;
13777 esac
13778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13779 $as_echo "$ac_try_echo") >&5
13780   (eval "$ac_compile") 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } && {
13787          test -z "$ac_cxx_werror_flag" ||
13788          test ! -s conftest.err
13789        } && test -s conftest.$ac_objext; then
13790   :
13791 else
13792   $as_echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13796          CXXFLAGS="-g"
13797          cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803
13804 int
13805 main ()
13806 {
13807
13808   ;
13809   return 0;
13810 }
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13819 $as_echo "$ac_try_echo") >&5
13820   (eval "$ac_compile") 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } && {
13827          test -z "$ac_cxx_werror_flag" ||
13828          test ! -s conftest.err
13829        } && test -s conftest.$ac_objext; then
13830   ac_cv_prog_cxx_g=yes
13831 else
13832   $as_echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835
13836 fi
13837
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839 fi
13840
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13846 fi
13847 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13848 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13849 if test "$ac_test_CXXFLAGS" = set; then
13850   CXXFLAGS=$ac_save_CXXFLAGS
13851 elif test $ac_cv_prog_cxx_g = yes; then
13852   if test "$GXX" = yes; then
13853     CXXFLAGS="-g -O2"
13854   else
13855     CXXFLAGS="-g"
13856   fi
13857 else
13858   if test "$GXX" = yes; then
13859     CXXFLAGS="-O2"
13860   else
13861     CXXFLAGS=
13862   fi
13863 fi
13864 ac_ext=c
13865 ac_cpp='$CPP $CPPFLAGS'
13866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13869
13870 depcc="$CXX"  am_compiler_list=
13871
13872 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13873 $as_echo_n "checking dependency style of $depcc... " >&6; }
13874 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13875   $as_echo_n "(cached) " >&6
13876 else
13877   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13878   # We make a subdir and do the tests there.  Otherwise we can end up
13879   # making bogus files that we don't know about and never remove.  For
13880   # instance it was reported that on HP-UX the gcc test will end up
13881   # making a dummy file named `D' -- because `-MD' means `put the output
13882   # in D'.
13883   mkdir conftest.dir
13884   # Copy depcomp to subdir because otherwise we won't find it if we're
13885   # using a relative directory.
13886   cp "$am_depcomp" conftest.dir
13887   cd conftest.dir
13888   # We will build objects and dependencies in a subdirectory because
13889   # it helps to detect inapplicable dependency modes.  For instance
13890   # both Tru64's cc and ICC support -MD to output dependencies as a
13891   # side effect of compilation, but ICC will put the dependencies in
13892   # the current directory while Tru64 will put them in the object
13893   # directory.
13894   mkdir sub
13895
13896   am_cv_CXX_dependencies_compiler_type=none
13897   if test "$am_compiler_list" = ""; then
13898      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13899   fi
13900   for depmode in $am_compiler_list; do
13901     # Setup a source with many dependencies, because some compilers
13902     # like to wrap large dependency lists on column 80 (with \), and
13903     # we should not choose a depcomp mode which is confused by this.
13904     #
13905     # We need to recreate these files for each test, as the compiler may
13906     # overwrite some of them when testing with obscure command lines.
13907     # This happens at least with the AIX C compiler.
13908     : > sub/conftest.c
13909     for i in 1 2 3 4 5 6; do
13910       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13911       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13912       # Solaris 8's {/usr,}/bin/sh.
13913       touch sub/conftst$i.h
13914     done
13915     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13916
13917     case $depmode in
13918     nosideeffect)
13919       # after this tag, mechanisms are not by side-effect, so they'll
13920       # only be used when explicitly requested
13921       if test "x$enable_dependency_tracking" = xyes; then
13922         continue
13923       else
13924         break
13925       fi
13926       ;;
13927     none) break ;;
13928     esac
13929     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13930     # mode.  It turns out that the SunPro C++ compiler does not properly
13931     # handle `-M -o', and we need to detect this.
13932     if depmode=$depmode \
13933        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13934        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13935        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13936          >/dev/null 2>conftest.err &&
13937        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13938        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13939        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13940        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13941       # icc doesn't choke on unknown options, it will just issue warnings
13942       # or remarks (even with -Werror).  So we grep stderr for any message
13943       # that says an option was ignored or not supported.
13944       # When given -MP, icc 7.0 and 7.1 complain thusly:
13945       #   icc: Command line warning: ignoring option '-M'; no argument required
13946       # The diagnosis changed in icc 8.0:
13947       #   icc: Command line remark: option '-MP' not supported
13948       if (grep 'ignoring option' conftest.err ||
13949           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13950         am_cv_CXX_dependencies_compiler_type=$depmode
13951         break
13952       fi
13953     fi
13954   done
13955
13956   cd ..
13957   rm -rf conftest.dir
13958 else
13959   am_cv_CXX_dependencies_compiler_type=none
13960 fi
13961
13962 fi
13963 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13964 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13965 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13966
13967  if
13968   test "x$enable_dependency_tracking" != xno \
13969   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13970   am__fastdepCXX_TRUE=
13971   am__fastdepCXX_FALSE='#'
13972 else
13973   am__fastdepCXX_TRUE='#'
13974   am__fastdepCXX_FALSE=
13975 fi
13976
13977
13978 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13979     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13980     (test "X$CXX" != "Xg++"))) ; then
13981   ac_ext=cpp
13982 ac_cpp='$CXXCPP $CPPFLAGS'
13983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13986 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13987 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13988 if test -z "$CXXCPP"; then
13989   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13990   $as_echo_n "(cached) " >&6
13991 else
13992       # Double quotes because CXXCPP needs to be expanded
13993     for CXXCPP in "$CXX -E" "/lib/cpp"
13994     do
13995       ac_preproc_ok=false
13996 for ac_cxx_preproc_warn_flag in '' yes
13997 do
13998   # Use a header file that comes with gcc, so configuring glibc
13999   # with a fresh cross-compiler works.
14000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14001   # <limits.h> exists even on freestanding compilers.
14002   # On the NeXT, cc -E runs the code through the compiler's parser,
14003   # not just through cpp. "Syntax error" is here to catch this case.
14004   cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 #ifdef __STDC__
14011 # include <limits.h>
14012 #else
14013 # include <assert.h>
14014 #endif
14015                      Syntax error
14016 _ACEOF
14017 if { (ac_try="$ac_cpp conftest.$ac_ext"
14018 case "(($ac_try" in
14019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020   *) ac_try_echo=$ac_try;;
14021 esac
14022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14023 $as_echo "$ac_try_echo") >&5
14024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } >/dev/null && {
14031          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14032          test ! -s conftest.err
14033        }; then
14034   :
14035 else
14036   $as_echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039   # Broken: fails on valid input.
14040 continue
14041 fi
14042
14043 rm -f conftest.err conftest.$ac_ext
14044
14045   # OK, works on sane cases.  Now check whether nonexistent headers
14046   # can be detected and how.
14047   cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h.  */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h.  */
14053 #include <ac_nonexistent.h>
14054 _ACEOF
14055 if { (ac_try="$ac_cpp conftest.$ac_ext"
14056 case "(($ac_try" in
14057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058   *) ac_try_echo=$ac_try;;
14059 esac
14060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14061 $as_echo "$ac_try_echo") >&5
14062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } >/dev/null && {
14069          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14070          test ! -s conftest.err
14071        }; then
14072   # Broken: success on invalid input.
14073 continue
14074 else
14075   $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078   # Passes both tests.
14079 ac_preproc_ok=:
14080 break
14081 fi
14082
14083 rm -f conftest.err conftest.$ac_ext
14084
14085 done
14086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14087 rm -f conftest.err conftest.$ac_ext
14088 if $ac_preproc_ok; then
14089   break
14090 fi
14091
14092     done
14093     ac_cv_prog_CXXCPP=$CXXCPP
14094
14095 fi
14096   CXXCPP=$ac_cv_prog_CXXCPP
14097 else
14098   ac_cv_prog_CXXCPP=$CXXCPP
14099 fi
14100 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
14101 $as_echo "$CXXCPP" >&6; }
14102 ac_preproc_ok=false
14103 for ac_cxx_preproc_warn_flag in '' yes
14104 do
14105   # Use a header file that comes with gcc, so configuring glibc
14106   # with a fresh cross-compiler works.
14107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14108   # <limits.h> exists even on freestanding compilers.
14109   # On the NeXT, cc -E runs the code through the compiler's parser,
14110   # not just through cpp. "Syntax error" is here to catch this case.
14111   cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 #ifdef __STDC__
14118 # include <limits.h>
14119 #else
14120 # include <assert.h>
14121 #endif
14122                      Syntax error
14123 _ACEOF
14124 if { (ac_try="$ac_cpp conftest.$ac_ext"
14125 case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } >/dev/null && {
14138          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14139          test ! -s conftest.err
14140        }; then
14141   :
14142 else
14143   $as_echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146   # Broken: fails on valid input.
14147 continue
14148 fi
14149
14150 rm -f conftest.err conftest.$ac_ext
14151
14152   # OK, works on sane cases.  Now check whether nonexistent headers
14153   # can be detected and how.
14154   cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160 #include <ac_nonexistent.h>
14161 _ACEOF
14162 if { (ac_try="$ac_cpp conftest.$ac_ext"
14163 case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168 $as_echo "$ac_try_echo") >&5
14169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14170   ac_status=$?
14171   grep -v '^ *+' conftest.er1 >conftest.err
14172   rm -f conftest.er1
14173   cat conftest.err >&5
14174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } >/dev/null && {
14176          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14177          test ! -s conftest.err
14178        }; then
14179   # Broken: success on invalid input.
14180 continue
14181 else
14182   $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185   # Passes both tests.
14186 ac_preproc_ok=:
14187 break
14188 fi
14189
14190 rm -f conftest.err conftest.$ac_ext
14191
14192 done
14193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14194 rm -f conftest.err conftest.$ac_ext
14195 if $ac_preproc_ok; then
14196   :
14197 else
14198   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14200 _lt_caught_CXX_error=yes; }
14201 fi
14202
14203 ac_ext=c
14204 ac_cpp='$CPP $CPPFLAGS'
14205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14208
14209 else
14210   _lt_caught_CXX_error=yes
14211 fi
14212
14213
14214
14215
14216
14217 ac_ext=f
14218 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14219 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14220 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14221 if test -n "$ac_tool_prefix"; then
14222   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
14223   do
14224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if test "${ac_cv_prog_F77+set}" = set; then
14229   $as_echo_n "(cached) " >&6
14230 else
14231   if test -n "$F77"; then
14232   ac_cv_prog_F77="$F77" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14236 do
14237   IFS=$as_save_IFS
14238   test -z "$as_dir" && as_dir=.
14239   for ac_exec_ext in '' $ac_executable_extensions; do
14240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14243     break 2
14244   fi
14245 done
14246 done
14247 IFS=$as_save_IFS
14248
14249 fi
14250 fi
14251 F77=$ac_cv_prog_F77
14252 if test -n "$F77"; then
14253   { $as_echo "$as_me:$LINENO: result: $F77" >&5
14254 $as_echo "$F77" >&6; }
14255 else
14256   { $as_echo "$as_me:$LINENO: result: no" >&5
14257 $as_echo "no" >&6; }
14258 fi
14259
14260
14261     test -n "$F77" && break
14262   done
14263 fi
14264 if test -z "$F77"; then
14265   ac_ct_F77=$F77
14266   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
14267 do
14268   # Extract the first word of "$ac_prog", so it can be a program name with args.
14269 set dummy $ac_prog; ac_word=$2
14270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14271 $as_echo_n "checking for $ac_word... " >&6; }
14272 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14273   $as_echo_n "(cached) " >&6
14274 else
14275   if test -n "$ac_ct_F77"; then
14276   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14277 else
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14280 do
14281   IFS=$as_save_IFS
14282   test -z "$as_dir" && as_dir=.
14283   for ac_exec_ext in '' $ac_executable_extensions; do
14284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14285     ac_cv_prog_ac_ct_F77="$ac_prog"
14286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14287     break 2
14288   fi
14289 done
14290 done
14291 IFS=$as_save_IFS
14292
14293 fi
14294 fi
14295 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14296 if test -n "$ac_ct_F77"; then
14297   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14298 $as_echo "$ac_ct_F77" >&6; }
14299 else
14300   { $as_echo "$as_me:$LINENO: result: no" >&5
14301 $as_echo "no" >&6; }
14302 fi
14303
14304
14305   test -n "$ac_ct_F77" && break
14306 done
14307
14308   if test "x$ac_ct_F77" = x; then
14309     F77=""
14310   else
14311     case $cross_compiling:$ac_tool_warned in
14312 yes:)
14313 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14315 ac_tool_warned=yes ;;
14316 esac
14317     F77=$ac_ct_F77
14318   fi
14319 fi
14320
14321
14322 # Provide some information about the compiler.
14323 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
14324 set X $ac_compile
14325 ac_compiler=$2
14326 { (ac_try="$ac_compiler --version >&5"
14327 case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14332 $as_echo "$ac_try_echo") >&5
14333   (eval "$ac_compiler --version >&5") 2>&5
14334   ac_status=$?
14335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }
14337 { (ac_try="$ac_compiler -v >&5"
14338 case "(($ac_try" in
14339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340   *) ac_try_echo=$ac_try;;
14341 esac
14342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14343 $as_echo "$ac_try_echo") >&5
14344   (eval "$ac_compiler -v >&5") 2>&5
14345   ac_status=$?
14346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }
14348 { (ac_try="$ac_compiler -V >&5"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14354 $as_echo "$ac_try_echo") >&5
14355   (eval "$ac_compiler -V >&5") 2>&5
14356   ac_status=$?
14357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }
14359 rm -f a.out
14360
14361 # If we don't use `.F' as extension, the preprocessor is not run on the
14362 # input file.  (Note that this only needs to work for GNU compilers.)
14363 ac_save_ext=$ac_ext
14364 ac_ext=F
14365 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14366 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
14367 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14368   $as_echo_n "(cached) " >&6
14369 else
14370   cat >conftest.$ac_ext <<_ACEOF
14371       program main
14372 #ifndef __GNUC__
14373        choke me
14374 #endif
14375
14376       end
14377 _ACEOF
14378 rm -f conftest.$ac_objext
14379 if { (ac_try="$ac_compile"
14380 case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14385 $as_echo "$ac_try_echo") >&5
14386   (eval "$ac_compile") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } && {
14393          test -z "$ac_f77_werror_flag" ||
14394          test ! -s conftest.err
14395        } && test -s conftest.$ac_objext; then
14396   ac_compiler_gnu=yes
14397 else
14398   $as_echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401         ac_compiler_gnu=no
14402 fi
14403
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14406
14407 fi
14408 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14409 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
14410 ac_ext=$ac_save_ext
14411 ac_test_FFLAGS=${FFLAGS+set}
14412 ac_save_FFLAGS=$FFLAGS
14413 FFLAGS=
14414 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14415 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
14416 if test "${ac_cv_prog_f77_g+set}" = set; then
14417   $as_echo_n "(cached) " >&6
14418 else
14419   FFLAGS=-g
14420 cat >conftest.$ac_ext <<_ACEOF
14421       program main
14422
14423       end
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14432 $as_echo "$ac_try_echo") >&5
14433   (eval "$ac_compile") 2>conftest.er1
14434   ac_status=$?
14435   grep -v '^ *+' conftest.er1 >conftest.err
14436   rm -f conftest.er1
14437   cat conftest.err >&5
14438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } && {
14440          test -z "$ac_f77_werror_flag" ||
14441          test ! -s conftest.err
14442        } && test -s conftest.$ac_objext; then
14443   ac_cv_prog_f77_g=yes
14444 else
14445   $as_echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14447
14448         ac_cv_prog_f77_g=no
14449 fi
14450
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452
14453 fi
14454 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14455 $as_echo "$ac_cv_prog_f77_g" >&6; }
14456 if test "$ac_test_FFLAGS" = set; then
14457   FFLAGS=$ac_save_FFLAGS
14458 elif test $ac_cv_prog_f77_g = yes; then
14459   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14460     FFLAGS="-g -O2"
14461   else
14462     FFLAGS="-g"
14463   fi
14464 else
14465   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14466     FFLAGS="-O2"
14467   else
14468     FFLAGS=
14469   fi
14470 fi
14471
14472 if test $ac_compiler_gnu = yes; then
14473   G77=yes
14474 else
14475   G77=
14476 fi
14477 ac_ext=c
14478 ac_cpp='$CPP $CPPFLAGS'
14479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14482
14483 if test -z "$F77" || test "X$F77" = "Xno"; then
14484   _lt_disable_F77=yes
14485 fi
14486
14487
14488
14489
14490
14491 # Set options
14492
14493
14494
14495         enable_dlopen=no
14496
14497
14498
14499             # Check whether --enable-shared was given.
14500 if test "${enable_shared+set}" = set; then
14501   enableval=$enable_shared; p=${PACKAGE-default}
14502     case $enableval in
14503     yes) enable_shared=yes ;;
14504     no) enable_shared=no ;;
14505     *)
14506       enable_shared=no
14507       # Look at the argument we got.  We use all the common list separators.
14508       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14509       for pkg in $enableval; do
14510         IFS="$lt_save_ifs"
14511         if test "X$pkg" = "X$p"; then
14512           enable_shared=yes
14513         fi
14514       done
14515       IFS="$lt_save_ifs"
14516       ;;
14517     esac
14518 else
14519   enable_shared=yes
14520 fi
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530   # Check whether --enable-static was given.
14531 if test "${enable_static+set}" = set; then
14532   enableval=$enable_static; p=${PACKAGE-default}
14533     case $enableval in
14534     yes) enable_static=yes ;;
14535     no) enable_static=no ;;
14536     *)
14537      enable_static=no
14538       # Look at the argument we got.  We use all the common list separators.
14539       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14540       for pkg in $enableval; do
14541         IFS="$lt_save_ifs"
14542         if test "X$pkg" = "X$p"; then
14543           enable_static=yes
14544         fi
14545       done
14546       IFS="$lt_save_ifs"
14547       ;;
14548     esac
14549 else
14550   enable_static=yes
14551 fi
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562 # Check whether --with-pic was given.
14563 if test "${with_pic+set}" = set; then
14564   withval=$with_pic; pic_mode="$withval"
14565 else
14566   pic_mode=default
14567 fi
14568
14569
14570 test -z "$pic_mode" && pic_mode=default
14571
14572
14573
14574
14575
14576
14577
14578   # Check whether --enable-fast-install was given.
14579 if test "${enable_fast_install+set}" = set; then
14580   enableval=$enable_fast_install; p=${PACKAGE-default}
14581     case $enableval in
14582     yes) enable_fast_install=yes ;;
14583     no) enable_fast_install=no ;;
14584     *)
14585       enable_fast_install=no
14586       # Look at the argument we got.  We use all the common list separators.
14587       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14588       for pkg in $enableval; do
14589         IFS="$lt_save_ifs"
14590         if test "X$pkg" = "X$p"; then
14591           enable_fast_install=yes
14592         fi
14593       done
14594       IFS="$lt_save_ifs"
14595       ;;
14596     esac
14597 else
14598   enable_fast_install=yes
14599 fi
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611 # This can be used to rebuild libtool when needed
14612 LIBTOOL_DEPS="$ltmain"
14613
14614 # Always use our own libtool.
14615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641 test -z "$LN_S" && LN_S="ln -s"
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656 if test -n "${ZSH_VERSION+set}" ; then
14657    setopt NO_GLOB_SUBST
14658 fi
14659
14660 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
14661 $as_echo_n "checking for objdir... " >&6; }
14662 if test "${lt_cv_objdir+set}" = set; then
14663   $as_echo_n "(cached) " >&6
14664 else
14665   rm -f .libs 2>/dev/null
14666 mkdir .libs 2>/dev/null
14667 if test -d .libs; then
14668   lt_cv_objdir=.libs
14669 else
14670   # MS-DOS does not allow filenames that begin with a dot.
14671   lt_cv_objdir=_libs
14672 fi
14673 rmdir .libs 2>/dev/null
14674 fi
14675 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14676 $as_echo "$lt_cv_objdir" >&6; }
14677 objdir=$lt_cv_objdir
14678
14679
14680
14681
14682
14683 cat >>confdefs.h <<_ACEOF
14684 #define LT_OBJDIR "$lt_cv_objdir/"
14685 _ACEOF
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703 case $host_os in
14704 aix3*)
14705   # AIX sometimes has problems with the GCC collect2 program.  For some
14706   # reason, if we set the COLLECT_NAMES environment variable, the problems
14707   # vanish in a puff of smoke.
14708   if test "X${COLLECT_NAMES+set}" != Xset; then
14709     COLLECT_NAMES=
14710     export COLLECT_NAMES
14711   fi
14712   ;;
14713 esac
14714
14715 # Sed substitution that helps us do robust quoting.  It backslashifies
14716 # metacharacters that are still active within double-quoted strings.
14717 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14718
14719 # Same as above, but do not quote variable references.
14720 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14721
14722 # Sed substitution to delay expansion of an escaped shell variable in a
14723 # double_quote_subst'ed string.
14724 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14725
14726 # Sed substitution to delay expansion of an escaped single quote.
14727 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14728
14729 # Sed substitution to avoid accidental globbing in evaled expressions
14730 no_glob_subst='s/\*/\\\*/g'
14731
14732 # Global variables:
14733 ofile=libtool
14734 can_build_shared=yes
14735
14736 # All known linkers require a `.a' archive for static linking (except MSVC,
14737 # which needs '.lib').
14738 libext=a
14739
14740 with_gnu_ld="$lt_cv_prog_gnu_ld"
14741
14742 old_CC="$CC"
14743 old_CFLAGS="$CFLAGS"
14744
14745 # Set sane defaults for various variables
14746 test -z "$CC" && CC=cc
14747 test -z "$LTCC" && LTCC=$CC
14748 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14749 test -z "$LD" && LD=ld
14750 test -z "$ac_objext" && ac_objext=o
14751
14752 for cc_temp in $compiler""; do
14753   case $cc_temp in
14754     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14755     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14756     \-*) ;;
14757     *) break;;
14758   esac
14759 done
14760 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14761
14762
14763 # Only perform the check for file, if the check method requires it
14764 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14765 case $deplibs_check_method in
14766 file_magic*)
14767   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14768     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14769 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14770 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14771   $as_echo_n "(cached) " >&6
14772 else
14773   case $MAGIC_CMD in
14774 [\\/*] |  ?:[\\/]*)
14775   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14776   ;;
14777 *)
14778   lt_save_MAGIC_CMD="$MAGIC_CMD"
14779   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14780   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14781   for ac_dir in $ac_dummy; do
14782     IFS="$lt_save_ifs"
14783     test -z "$ac_dir" && ac_dir=.
14784     if test -f $ac_dir/${ac_tool_prefix}file; then
14785       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14786       if test -n "$file_magic_test_file"; then
14787         case $deplibs_check_method in
14788         "file_magic "*)
14789           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14790           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14792             $EGREP "$file_magic_regex" > /dev/null; then
14793             :
14794           else
14795             cat <<_LT_EOF 1>&2
14796
14797 *** Warning: the command libtool uses to detect shared libraries,
14798 *** $file_magic_cmd, produces output that libtool cannot recognize.
14799 *** The result is that libtool may fail to recognize shared libraries
14800 *** as such.  This will affect the creation of libtool libraries that
14801 *** depend on shared libraries, but programs linked with such libtool
14802 *** libraries will work regardless of this problem.  Nevertheless, you
14803 *** may want to report the problem to your system manager and/or to
14804 *** bug-libtool@gnu.org
14805
14806 _LT_EOF
14807           fi ;;
14808         esac
14809       fi
14810       break
14811     fi
14812   done
14813   IFS="$lt_save_ifs"
14814   MAGIC_CMD="$lt_save_MAGIC_CMD"
14815   ;;
14816 esac
14817 fi
14818
14819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14820 if test -n "$MAGIC_CMD"; then
14821   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14822 $as_echo "$MAGIC_CMD" >&6; }
14823 else
14824   { $as_echo "$as_me:$LINENO: result: no" >&5
14825 $as_echo "no" >&6; }
14826 fi
14827
14828
14829
14830
14831
14832 if test -z "$lt_cv_path_MAGIC_CMD"; then
14833   if test -n "$ac_tool_prefix"; then
14834     { $as_echo "$as_me:$LINENO: checking for file" >&5
14835 $as_echo_n "checking for file... " >&6; }
14836 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14837   $as_echo_n "(cached) " >&6
14838 else
14839   case $MAGIC_CMD in
14840 [\\/*] |  ?:[\\/]*)
14841   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14842   ;;
14843 *)
14844   lt_save_MAGIC_CMD="$MAGIC_CMD"
14845   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14846   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14847   for ac_dir in $ac_dummy; do
14848     IFS="$lt_save_ifs"
14849     test -z "$ac_dir" && ac_dir=.
14850     if test -f $ac_dir/file; then
14851       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14852       if test -n "$file_magic_test_file"; then
14853         case $deplibs_check_method in
14854         "file_magic "*)
14855           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14856           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14857           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14858             $EGREP "$file_magic_regex" > /dev/null; then
14859             :
14860           else
14861             cat <<_LT_EOF 1>&2
14862
14863 *** Warning: the command libtool uses to detect shared libraries,
14864 *** $file_magic_cmd, produces output that libtool cannot recognize.
14865 *** The result is that libtool may fail to recognize shared libraries
14866 *** as such.  This will affect the creation of libtool libraries that
14867 *** depend on shared libraries, but programs linked with such libtool
14868 *** libraries will work regardless of this problem.  Nevertheless, you
14869 *** may want to report the problem to your system manager and/or to
14870 *** bug-libtool@gnu.org
14871
14872 _LT_EOF
14873           fi ;;
14874         esac
14875       fi
14876       break
14877     fi
14878   done
14879   IFS="$lt_save_ifs"
14880   MAGIC_CMD="$lt_save_MAGIC_CMD"
14881   ;;
14882 esac
14883 fi
14884
14885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14886 if test -n "$MAGIC_CMD"; then
14887   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14888 $as_echo "$MAGIC_CMD" >&6; }
14889 else
14890   { $as_echo "$as_me:$LINENO: result: no" >&5
14891 $as_echo "no" >&6; }
14892 fi
14893
14894
14895   else
14896     MAGIC_CMD=:
14897   fi
14898 fi
14899
14900   fi
14901   ;;
14902 esac
14903
14904 # Use C for the default configuration in the libtool script
14905
14906 lt_save_CC="$CC"
14907 ac_ext=c
14908 ac_cpp='$CPP $CPPFLAGS'
14909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14912
14913
14914 # Source file extension for C test sources.
14915 ac_ext=c
14916
14917 # Object file extension for compiled C test sources.
14918 objext=o
14919 objext=$objext
14920
14921 # Code to be used in simple compile tests
14922 lt_simple_compile_test_code="int some_variable = 0;"
14923
14924 # Code to be used in simple link tests
14925 lt_simple_link_test_code='int main(){return(0);}'
14926
14927
14928
14929
14930
14931
14932
14933 # If no C compiler was specified, use CC.
14934 LTCC=${LTCC-"$CC"}
14935
14936 # If no C compiler flags were specified, use CFLAGS.
14937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14938
14939 # Allow CC to be a program name with arguments.
14940 compiler=$CC
14941
14942 # Save the default compiler, since it gets overwritten when the other
14943 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14944 compiler_DEFAULT=$CC
14945
14946 # save warnings/boilerplate of simple test code
14947 ac_outfile=conftest.$ac_objext
14948 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950 _lt_compiler_boilerplate=`cat conftest.err`
14951 $RM conftest*
14952
14953 ac_outfile=conftest.$ac_objext
14954 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14956 _lt_linker_boilerplate=`cat conftest.err`
14957 $RM -r conftest*
14958
14959
14960 ## CAVEAT EMPTOR:
14961 ## There is no encapsulation within the following macros, do not change
14962 ## the running order or otherwise move them around unless you know exactly
14963 ## what you are doing...
14964 if test -n "$compiler"; then
14965
14966 lt_prog_compiler_no_builtin_flag=
14967
14968 if test "$GCC" = yes; then
14969   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14970
14971   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14972 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14973 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14974   $as_echo_n "(cached) " >&6
14975 else
14976   lt_cv_prog_compiler_rtti_exceptions=no
14977    ac_outfile=conftest.$ac_objext
14978    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14979    lt_compiler_flag="-fno-rtti -fno-exceptions"
14980    # Insert the option either (1) after the last *FLAGS variable, or
14981    # (2) before a word containing "conftest.", or (3) at the end.
14982    # Note that $ac_compile itself does not contain backslashes and begins
14983    # with a dollar sign (not a hyphen), so the echo should work correctly.
14984    # The option is referenced via a variable to avoid confusing sed.
14985    lt_compile=`echo "$ac_compile" | $SED \
14986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14988    -e 's:$: $lt_compiler_flag:'`
14989    (eval echo "\"\$as_me:14989: $lt_compile\"" >&5)
14990    (eval "$lt_compile" 2>conftest.err)
14991    ac_status=$?
14992    cat conftest.err >&5
14993    echo "$as_me:14993: \$? = $ac_status" >&5
14994    if (exit $ac_status) && test -s "$ac_outfile"; then
14995      # The compiler can only warn and ignore the option if not recognized
14996      # So say no if there are warnings other than the usual output.
14997      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14998      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14999      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15000        lt_cv_prog_compiler_rtti_exceptions=yes
15001      fi
15002    fi
15003    $RM conftest*
15004
15005 fi
15006 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15007 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15008
15009 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15010     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15011 else
15012     :
15013 fi
15014
15015 fi
15016
15017
15018
15019
15020
15021
15022   lt_prog_compiler_wl=
15023 lt_prog_compiler_pic=
15024 lt_prog_compiler_static=
15025
15026 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15028
15029   if test "$GCC" = yes; then
15030     lt_prog_compiler_wl='-Wl,'
15031     lt_prog_compiler_static='-static'
15032
15033     case $host_os in
15034       aix*)
15035       # All AIX code is PIC.
15036       if test "$host_cpu" = ia64; then
15037         # AIX 5 now supports IA64 processor
15038         lt_prog_compiler_static='-Bstatic'
15039       fi
15040       ;;
15041
15042     amigaos*)
15043       if test "$host_cpu" = m68k; then
15044         # FIXME: we need at least 68020 code to build shared libraries, but
15045         # adding the `-m68020' flag to GCC prevents building anything better,
15046         # like `-m68040'.
15047         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15048       fi
15049       ;;
15050
15051     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15052       # PIC is the default for these OSes.
15053       ;;
15054
15055     mingw* | cygwin* | pw32* | os2*)
15056       # This hack is so that the source file can tell whether it is being
15057       # built for inclusion in a dll (and should export symbols for example).
15058       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15059       # (--disable-auto-import) libraries
15060       lt_prog_compiler_pic='-DDLL_EXPORT'
15061       ;;
15062
15063     darwin* | rhapsody*)
15064       # PIC is the default on this platform
15065       # Common symbols not allowed in MH_DYLIB files
15066       lt_prog_compiler_pic='-fno-common'
15067       ;;
15068
15069     hpux*)
15070       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15071       # not for PA HP-UX.
15072       case $host_cpu in
15073       hppa*64*|ia64*)
15074         # +Z the default
15075         ;;
15076       *)
15077         lt_prog_compiler_pic='-fPIC'
15078         ;;
15079       esac
15080       ;;
15081
15082     interix[3-9]*)
15083       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15084       # Instead, we relocate shared libraries at runtime.
15085       ;;
15086
15087     msdosdjgpp*)
15088       # Just because we use GCC doesn't mean we suddenly get shared libraries
15089       # on systems that don't support them.
15090       lt_prog_compiler_can_build_shared=no
15091       enable_shared=no
15092       ;;
15093
15094     *nto* | *qnx*)
15095       # QNX uses GNU C++, but need to define -shared option too, otherwise
15096       # it will coredump.
15097       lt_prog_compiler_pic='-fPIC -shared'
15098       ;;
15099
15100     sysv4*MP*)
15101       if test -d /usr/nec; then
15102         lt_prog_compiler_pic=-Kconform_pic
15103       fi
15104       ;;
15105
15106     *)
15107       lt_prog_compiler_pic='-fPIC'
15108       ;;
15109     esac
15110   else
15111     # PORTME Check for flag to pass linker flags through the system compiler.
15112     case $host_os in
15113     aix*)
15114       lt_prog_compiler_wl='-Wl,'
15115       if test "$host_cpu" = ia64; then
15116         # AIX 5 now supports IA64 processor
15117         lt_prog_compiler_static='-Bstatic'
15118       else
15119         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15120       fi
15121       ;;
15122
15123     mingw* | cygwin* | pw32* | os2*)
15124       # This hack is so that the source file can tell whether it is being
15125       # built for inclusion in a dll (and should export symbols for example).
15126       lt_prog_compiler_pic='-DDLL_EXPORT'
15127       ;;
15128
15129     hpux9* | hpux10* | hpux11*)
15130       lt_prog_compiler_wl='-Wl,'
15131       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15132       # not for PA HP-UX.
15133       case $host_cpu in
15134       hppa*64*|ia64*)
15135         # +Z the default
15136         ;;
15137       *)
15138         lt_prog_compiler_pic='+Z'
15139         ;;
15140       esac
15141       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15142       lt_prog_compiler_static='${wl}-a ${wl}archive'
15143       ;;
15144
15145     irix5* | irix6* | nonstopux*)
15146       lt_prog_compiler_wl='-Wl,'
15147       # PIC (with -KPIC) is the default.
15148       lt_prog_compiler_static='-non_shared'
15149       ;;
15150
15151     linux* | k*bsd*-gnu)
15152       case $cc_basename in
15153       icc* | ecc* | ifort*)
15154         lt_prog_compiler_wl='-Wl,'
15155         lt_prog_compiler_pic='-KPIC'
15156         lt_prog_compiler_static='-static'
15157         ;;
15158       pgcc* | pgf77* | pgf90* | pgf95*)
15159         # Portland Group compilers (*not* the Pentium gcc compiler,
15160         # which looks to be a dead project)
15161         lt_prog_compiler_wl='-Wl,'
15162         lt_prog_compiler_pic='-fpic'
15163         lt_prog_compiler_static='-Bstatic'
15164         ;;
15165       ccc*)
15166         lt_prog_compiler_wl='-Wl,'
15167         # All Alpha code is PIC.
15168         lt_prog_compiler_static='-non_shared'
15169         ;;
15170       xl*)
15171         # IBM XL C 8.0/Fortran 10.1 on PPC
15172         lt_prog_compiler_wl='-Wl,'
15173         lt_prog_compiler_pic='-qpic'
15174         lt_prog_compiler_static='-qstaticlink'
15175         ;;
15176       *)
15177         case `$CC -V 2>&1 | sed 5q` in
15178         *Sun\ C*)
15179           # Sun C 5.9
15180           lt_prog_compiler_pic='-KPIC'
15181           lt_prog_compiler_static='-Bstatic'
15182           lt_prog_compiler_wl='-Wl,'
15183           ;;
15184         *Sun\ F*)
15185           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15186           lt_prog_compiler_pic='-KPIC'
15187           lt_prog_compiler_static='-Bstatic'
15188           lt_prog_compiler_wl=''
15189           ;;
15190         esac
15191         ;;
15192       esac
15193       ;;
15194
15195     newsos6)
15196       lt_prog_compiler_pic='-KPIC'
15197       lt_prog_compiler_static='-Bstatic'
15198       ;;
15199
15200     *nto* | *qnx*)
15201       # QNX uses GNU C++, but need to define -shared option too, otherwise
15202       # it will coredump.
15203       lt_prog_compiler_pic='-fPIC -shared'
15204       ;;
15205
15206     osf3* | osf4* | osf5*)
15207       lt_prog_compiler_wl='-Wl,'
15208       # All OSF/1 code is PIC.
15209       lt_prog_compiler_static='-non_shared'
15210       ;;
15211
15212     rdos*)
15213       lt_prog_compiler_static='-non_shared'
15214       ;;
15215
15216     solaris*)
15217       lt_prog_compiler_pic='-KPIC'
15218       lt_prog_compiler_static='-Bstatic'
15219       case $cc_basename in
15220       f77* | f90* | f95*)
15221         lt_prog_compiler_wl='-Qoption ld ';;
15222       *)
15223         lt_prog_compiler_wl='-Wl,';;
15224       esac
15225       ;;
15226
15227     sunos4*)
15228       lt_prog_compiler_wl='-Qoption ld '
15229       lt_prog_compiler_pic='-PIC'
15230       lt_prog_compiler_static='-Bstatic'
15231       ;;
15232
15233     sysv4 | sysv4.2uw2* | sysv4.3*)
15234       lt_prog_compiler_wl='-Wl,'
15235       lt_prog_compiler_pic='-KPIC'
15236       lt_prog_compiler_static='-Bstatic'
15237       ;;
15238
15239     sysv4*MP*)
15240       if test -d /usr/nec ;then
15241         lt_prog_compiler_pic='-Kconform_pic'
15242         lt_prog_compiler_static='-Bstatic'
15243       fi
15244       ;;
15245
15246     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15247       lt_prog_compiler_wl='-Wl,'
15248       lt_prog_compiler_pic='-KPIC'
15249       lt_prog_compiler_static='-Bstatic'
15250       ;;
15251
15252     unicos*)
15253       lt_prog_compiler_wl='-Wl,'
15254       lt_prog_compiler_can_build_shared=no
15255       ;;
15256
15257     uts4*)
15258       lt_prog_compiler_pic='-pic'
15259       lt_prog_compiler_static='-Bstatic'
15260       ;;
15261
15262     *)
15263       lt_prog_compiler_can_build_shared=no
15264       ;;
15265     esac
15266   fi
15267
15268 case $host_os in
15269   # For platforms which do not support PIC, -DPIC is meaningless:
15270   *djgpp*)
15271     lt_prog_compiler_pic=
15272     ;;
15273   *)
15274     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15275     ;;
15276 esac
15277 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15278 $as_echo "$lt_prog_compiler_pic" >&6; }
15279
15280
15281
15282
15283
15284
15285 #
15286 # Check to make sure the PIC flag actually works.
15287 #
15288 if test -n "$lt_prog_compiler_pic"; then
15289   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15290 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15291 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
15292   $as_echo_n "(cached) " >&6
15293 else
15294   lt_cv_prog_compiler_pic_works=no
15295    ac_outfile=conftest.$ac_objext
15296    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15297    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15298    # Insert the option either (1) after the last *FLAGS variable, or
15299    # (2) before a word containing "conftest.", or (3) at the end.
15300    # Note that $ac_compile itself does not contain backslashes and begins
15301    # with a dollar sign (not a hyphen), so the echo should work correctly.
15302    # The option is referenced via a variable to avoid confusing sed.
15303    lt_compile=`echo "$ac_compile" | $SED \
15304    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15306    -e 's:$: $lt_compiler_flag:'`
15307    (eval echo "\"\$as_me:15307: $lt_compile\"" >&5)
15308    (eval "$lt_compile" 2>conftest.err)
15309    ac_status=$?
15310    cat conftest.err >&5
15311    echo "$as_me:15311: \$? = $ac_status" >&5
15312    if (exit $ac_status) && test -s "$ac_outfile"; then
15313      # The compiler can only warn and ignore the option if not recognized
15314      # So say no if there are warnings other than the usual output.
15315      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15316      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15317      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15318        lt_cv_prog_compiler_pic_works=yes
15319      fi
15320    fi
15321    $RM conftest*
15322
15323 fi
15324 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
15325 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15326
15327 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15328     case $lt_prog_compiler_pic in
15329      "" | " "*) ;;
15330      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15331      esac
15332 else
15333     lt_prog_compiler_pic=
15334      lt_prog_compiler_can_build_shared=no
15335 fi
15336
15337 fi
15338
15339
15340
15341
15342
15343
15344 #
15345 # Check to make sure the static flag actually works.
15346 #
15347 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15348 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15349 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15350 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
15351   $as_echo_n "(cached) " >&6
15352 else
15353   lt_cv_prog_compiler_static_works=no
15354    save_LDFLAGS="$LDFLAGS"
15355    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15356    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15357    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15358      # The linker can only warn and ignore the option if not recognized
15359      # So say no if there are warnings
15360      if test -s conftest.err; then
15361        # Append any errors to the config.log.
15362        cat conftest.err 1>&5
15363        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15364        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15365        if diff conftest.exp conftest.er2 >/dev/null; then
15366          lt_cv_prog_compiler_static_works=yes
15367        fi
15368      else
15369        lt_cv_prog_compiler_static_works=yes
15370      fi
15371    fi
15372    $RM -r conftest*
15373    LDFLAGS="$save_LDFLAGS"
15374
15375 fi
15376 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
15377 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15378
15379 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15380     :
15381 else
15382     lt_prog_compiler_static=
15383 fi
15384
15385
15386
15387
15388
15389
15390
15391   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15392 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15393 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15394   $as_echo_n "(cached) " >&6
15395 else
15396   lt_cv_prog_compiler_c_o=no
15397    $RM -r conftest 2>/dev/null
15398    mkdir conftest
15399    cd conftest
15400    mkdir out
15401    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15402
15403    lt_compiler_flag="-o out/conftest2.$ac_objext"
15404    # Insert the option either (1) after the last *FLAGS variable, or
15405    # (2) before a word containing "conftest.", or (3) at the end.
15406    # Note that $ac_compile itself does not contain backslashes and begins
15407    # with a dollar sign (not a hyphen), so the echo should work correctly.
15408    lt_compile=`echo "$ac_compile" | $SED \
15409    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15411    -e 's:$: $lt_compiler_flag:'`
15412    (eval echo "\"\$as_me:15412: $lt_compile\"" >&5)
15413    (eval "$lt_compile" 2>out/conftest.err)
15414    ac_status=$?
15415    cat out/conftest.err >&5
15416    echo "$as_me:15416: \$? = $ac_status" >&5
15417    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15418    then
15419      # The compiler can only warn and ignore the option if not recognized
15420      # So say no if there are warnings
15421      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15422      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15423      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15424        lt_cv_prog_compiler_c_o=yes
15425      fi
15426    fi
15427    chmod u+w . 2>&5
15428    $RM conftest*
15429    # SGI C++ compiler will create directory out/ii_files/ for
15430    # template instantiation
15431    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15432    $RM out/* && rmdir out
15433    cd ..
15434    $RM -r conftest
15435    $RM conftest*
15436
15437 fi
15438 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15439 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15440
15441
15442
15443
15444
15445
15446   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15448 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15449   $as_echo_n "(cached) " >&6
15450 else
15451   lt_cv_prog_compiler_c_o=no
15452    $RM -r conftest 2>/dev/null
15453    mkdir conftest
15454    cd conftest
15455    mkdir out
15456    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457
15458    lt_compiler_flag="-o out/conftest2.$ac_objext"
15459    # Insert the option either (1) after the last *FLAGS variable, or
15460    # (2) before a word containing "conftest.", or (3) at the end.
15461    # Note that $ac_compile itself does not contain backslashes and begins
15462    # with a dollar sign (not a hyphen), so the echo should work correctly.
15463    lt_compile=`echo "$ac_compile" | $SED \
15464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466    -e 's:$: $lt_compiler_flag:'`
15467    (eval echo "\"\$as_me:15467: $lt_compile\"" >&5)
15468    (eval "$lt_compile" 2>out/conftest.err)
15469    ac_status=$?
15470    cat out/conftest.err >&5
15471    echo "$as_me:15471: \$? = $ac_status" >&5
15472    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15473    then
15474      # The compiler can only warn and ignore the option if not recognized
15475      # So say no if there are warnings
15476      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15477      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15478      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15479        lt_cv_prog_compiler_c_o=yes
15480      fi
15481    fi
15482    chmod u+w . 2>&5
15483    $RM conftest*
15484    # SGI C++ compiler will create directory out/ii_files/ for
15485    # template instantiation
15486    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15487    $RM out/* && rmdir out
15488    cd ..
15489    $RM -r conftest
15490    $RM conftest*
15491
15492 fi
15493 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15494 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15495
15496
15497
15498
15499 hard_links="nottested"
15500 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15501   # do not overwrite the value of need_locks provided by the user
15502   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15503 $as_echo_n "checking if we can lock with hard links... " >&6; }
15504   hard_links=yes
15505   $RM conftest*
15506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15507   touch conftest.a
15508   ln conftest.a conftest.b 2>&5 || hard_links=no
15509   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15510   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15511 $as_echo "$hard_links" >&6; }
15512   if test "$hard_links" = no; then
15513     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15514 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15515     need_locks=warn
15516   fi
15517 else
15518   need_locks=no
15519 fi
15520
15521
15522
15523
15524
15525
15526   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15527 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15528
15529   runpath_var=
15530   allow_undefined_flag=
15531   always_export_symbols=no
15532   archive_cmds=
15533   archive_expsym_cmds=
15534   compiler_needs_object=no
15535   enable_shared_with_static_runtimes=no
15536   export_dynamic_flag_spec=
15537   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15538   hardcode_automatic=no
15539   hardcode_direct=no
15540   hardcode_direct_absolute=no
15541   hardcode_libdir_flag_spec=
15542   hardcode_libdir_flag_spec_ld=
15543   hardcode_libdir_separator=
15544   hardcode_minus_L=no
15545   hardcode_shlibpath_var=unsupported
15546   inherit_rpath=no
15547   link_all_deplibs=unknown
15548   module_cmds=
15549   module_expsym_cmds=
15550   old_archive_from_new_cmds=
15551   old_archive_from_expsyms_cmds=
15552   thread_safe_flag_spec=
15553   whole_archive_flag_spec=
15554   # include_expsyms should be a list of space-separated symbols to be *always*
15555   # included in the symbol list
15556   include_expsyms=
15557   # exclude_expsyms can be an extended regexp of symbols to exclude
15558   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15559   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15560   # as well as any symbol that contains `d'.
15561   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15562   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15563   # platforms (ab)use it in PIC code, but their linkers get confused if
15564   # the symbol is explicitly referenced.  Since portable code cannot
15565   # rely on this symbol name, it's probably fine to never include it in
15566   # preloaded symbol tables.
15567   # Exclude shared library initialization/finalization symbols.
15568   extract_expsyms_cmds=
15569
15570   case $host_os in
15571   cygwin* | mingw* | pw32*)
15572     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15573     # When not using gcc, we currently assume that we are using
15574     # Microsoft Visual C++.
15575     if test "$GCC" != yes; then
15576       with_gnu_ld=no
15577     fi
15578     ;;
15579   interix*)
15580     # we just hope/assume this is gcc and not c89 (= MSVC++)
15581     with_gnu_ld=yes
15582     ;;
15583   openbsd*)
15584     with_gnu_ld=no
15585     ;;
15586   esac
15587
15588   ld_shlibs=yes
15589   if test "$with_gnu_ld" = yes; then
15590     # If archive_cmds runs LD, not CC, wlarc should be empty
15591     wlarc='${wl}'
15592
15593     # Set some defaults for GNU ld with shared library support. These
15594     # are reset later if shared libraries are not supported. Putting them
15595     # here allows them to be overridden if necessary.
15596     runpath_var=LD_RUN_PATH
15597     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598     export_dynamic_flag_spec='${wl}--export-dynamic'
15599     # ancient GNU ld didn't support --whole-archive et. al.
15600     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15601       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15602     else
15603       whole_archive_flag_spec=
15604     fi
15605     supports_anon_versioning=no
15606     case `$LD -v 2>&1` in
15607       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15608       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15609       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15610       *\ 2.11.*) ;; # other 2.11 versions
15611       *) supports_anon_versioning=yes ;;
15612     esac
15613
15614     # See if GNU ld supports shared libraries.
15615     case $host_os in
15616     aix[3-9]*)
15617       # On AIX/PPC, the GNU linker is very broken
15618       if test "$host_cpu" != ia64; then
15619         ld_shlibs=no
15620         cat <<_LT_EOF 1>&2
15621
15622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15623 *** to be unable to reliably create shared libraries on AIX.
15624 *** Therefore, libtool is disabling shared libraries support.  If you
15625 *** really care for shared libraries, you may want to modify your PATH
15626 *** so that a non-GNU linker is found, and then restart.
15627
15628 _LT_EOF
15629       fi
15630       ;;
15631
15632     amigaos*)
15633       if test "$host_cpu" = m68k; then
15634         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)'
15635         hardcode_libdir_flag_spec='-L$libdir'
15636         hardcode_minus_L=yes
15637       fi
15638
15639       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15640       # that the semantics of dynamic libraries on AmigaOS, at least up
15641       # to version 4, is to share data among multiple programs linked
15642       # with the same dynamic library.  Since this doesn't match the
15643       # behavior of shared libraries on other platforms, we can't use
15644       # them.
15645       ld_shlibs=no
15646       ;;
15647
15648     beos*)
15649       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15650         allow_undefined_flag=unsupported
15651         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15652         # support --undefined.  This deserves some investigation.  FIXME
15653         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654       else
15655         ld_shlibs=no
15656       fi
15657       ;;
15658
15659     cygwin* | mingw* | pw32*)
15660       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15661       # as there is no search path for DLLs.
15662       hardcode_libdir_flag_spec='-L$libdir'
15663       allow_undefined_flag=unsupported
15664       always_export_symbols=no
15665       enable_shared_with_static_runtimes=yes
15666       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15667
15668       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15670         # If the export-symbols file already is a .def file (1st line
15671         # is EXPORTS), use it as is; otherwise, prepend...
15672         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15673           cp $export_symbols $output_objdir/$soname.def;
15674         else
15675           echo EXPORTS > $output_objdir/$soname.def;
15676           cat $export_symbols >> $output_objdir/$soname.def;
15677         fi~
15678         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15679       else
15680         ld_shlibs=no
15681       fi
15682       ;;
15683
15684     interix[3-9]*)
15685       hardcode_direct=no
15686       hardcode_shlibpath_var=no
15687       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15688       export_dynamic_flag_spec='${wl}-E'
15689       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15690       # Instead, shared libraries are loaded at an image base (0x10000000 by
15691       # default) and relocated if they conflict, which is a slow very memory
15692       # consuming and fragmenting process.  To avoid this, we pick a random,
15693       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15694       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15695       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15696       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'
15697       ;;
15698
15699     gnu* | linux* | tpf* | k*bsd*-gnu)
15700       tmp_diet=no
15701       if test "$host_os" = linux-dietlibc; then
15702         case $cc_basename in
15703           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15704         esac
15705       fi
15706       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15707          && test "$tmp_diet" = no
15708       then
15709         tmp_addflag=
15710         tmp_sharedflag='-shared'
15711         case $cc_basename,$host_cpu in
15712         pgcc*)                          # Portland Group C compiler
15713           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'
15714           tmp_addflag=' $pic_flag'
15715           ;;
15716         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15717           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'
15718           tmp_addflag=' $pic_flag -Mnomain' ;;
15719         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15720           tmp_addflag=' -i_dynamic' ;;
15721         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15722           tmp_addflag=' -i_dynamic -nofor_main' ;;
15723         ifc* | ifort*)                  # Intel Fortran compiler
15724           tmp_addflag=' -nofor_main' ;;
15725         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
15726           tmp_sharedflag='-qmkshrobj'
15727           tmp_addflag= ;;
15728         esac
15729         case `$CC -V 2>&1 | sed 5q` in
15730         *Sun\ C*)                       # Sun C 5.9
15731           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'
15732           compiler_needs_object=yes
15733           tmp_sharedflag='-G' ;;
15734         *Sun\ F*)                       # Sun Fortran 8.3
15735           tmp_sharedflag='-G' ;;
15736         esac
15737         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15738
15739         if test "x$supports_anon_versioning" = xyes; then
15740           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15741             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15742             echo "local: *; };" >> $output_objdir/$libname.ver~
15743             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15744         fi
15745
15746         case $cc_basename in
15747         xlf*)
15748           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15749           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15750           hardcode_libdir_flag_spec=
15751           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15752           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15753           if test "x$supports_anon_versioning" = xyes; then
15754             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15755               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15756               echo "local: *; };" >> $output_objdir/$libname.ver~
15757               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15758           fi
15759           ;;
15760         esac
15761       else
15762         ld_shlibs=no
15763       fi
15764       ;;
15765
15766     netbsd*)
15767       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15768         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15769         wlarc=
15770       else
15771         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15773       fi
15774       ;;
15775
15776     solaris*)
15777       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15778         ld_shlibs=no
15779         cat <<_LT_EOF 1>&2
15780
15781 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15782 *** create shared libraries on Solaris systems.  Therefore, libtool
15783 *** is disabling shared libraries support.  We urge you to upgrade GNU
15784 *** binutils to release 2.9.1 or newer.  Another option is to modify
15785 *** your PATH or compiler configuration so that the native linker is
15786 *** used, and then restart.
15787
15788 _LT_EOF
15789       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15790         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792       else
15793         ld_shlibs=no
15794       fi
15795       ;;
15796
15797     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15798       case `$LD -v 2>&1` in
15799         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15800         ld_shlibs=no
15801         cat <<_LT_EOF 1>&2
15802
15803 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15804 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15805 *** is disabling shared libraries support.  We urge you to upgrade GNU
15806 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15807 *** your PATH or compiler configuration so that the native linker is
15808 *** used, and then restart.
15809
15810 _LT_EOF
15811         ;;
15812         *)
15813           # For security reasons, it is highly recommended that you always
15814           # use absolute paths for naming shared libraries, and exclude the
15815           # DT_RUNPATH tag from executables and libraries.  But doing so
15816           # requires that you compile everything twice, which is a pain.
15817           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15818             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15819             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15820             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15821           else
15822             ld_shlibs=no
15823           fi
15824         ;;
15825       esac
15826       ;;
15827
15828     sunos4*)
15829       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15830       wlarc=
15831       hardcode_direct=yes
15832       hardcode_shlibpath_var=no
15833       ;;
15834
15835     *)
15836       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15837         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15838         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15839       else
15840         ld_shlibs=no
15841       fi
15842       ;;
15843     esac
15844
15845     if test "$ld_shlibs" = no; then
15846       runpath_var=
15847       hardcode_libdir_flag_spec=
15848       export_dynamic_flag_spec=
15849       whole_archive_flag_spec=
15850     fi
15851   else
15852     # PORTME fill in a description of your system's linker (not GNU ld)
15853     case $host_os in
15854     aix3*)
15855       allow_undefined_flag=unsupported
15856       always_export_symbols=yes
15857       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'
15858       # Note: this linker hardcodes the directories in LIBPATH if there
15859       # are no directories specified by -L.
15860       hardcode_minus_L=yes
15861       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15862         # Neither direct hardcoding nor static linking is supported with a
15863         # broken collect2.
15864         hardcode_direct=unsupported
15865       fi
15866       ;;
15867
15868     aix[4-9]*)
15869       if test "$host_cpu" = ia64; then
15870         # On IA64, the linker does run time linking by default, so we don't
15871         # have to do anything special.
15872         aix_use_runtimelinking=no
15873         exp_sym_flag='-Bexport'
15874         no_entry_flag=""
15875       else
15876         # If we're using GNU nm, then we don't want the "-C" option.
15877         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15878         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15879           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'
15880         else
15881           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'
15882         fi
15883         aix_use_runtimelinking=no
15884
15885         # Test if we are trying to use run time linking or normal
15886         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15887         # need to do runtime linking.
15888         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15889           for ld_flag in $LDFLAGS; do
15890           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15891             aix_use_runtimelinking=yes
15892             break
15893           fi
15894           done
15895           ;;
15896         esac
15897
15898         exp_sym_flag='-bexport'
15899         no_entry_flag='-bnoentry'
15900       fi
15901
15902       # When large executables or shared objects are built, AIX ld can
15903       # have problems creating the table of contents.  If linking a library
15904       # or program results in "error TOC overflow" add -mminimal-toc to
15905       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15906       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15907
15908       archive_cmds=''
15909       hardcode_direct=yes
15910       hardcode_direct_absolute=yes
15911       hardcode_libdir_separator=':'
15912       link_all_deplibs=yes
15913       file_list_spec='${wl}-f,'
15914
15915       if test "$GCC" = yes; then
15916         case $host_os in aix4.[012]|aix4.[012].*)
15917         # We only want to do this on AIX 4.2 and lower, the check
15918         # below for broken collect2 doesn't work under 4.3+
15919           collect2name=`${CC} -print-prog-name=collect2`
15920           if test -f "$collect2name" &&
15921            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15922           then
15923           # We have reworked collect2
15924           :
15925           else
15926           # We have old collect2
15927           hardcode_direct=unsupported
15928           # It fails to find uninstalled libraries when the uninstalled
15929           # path is not listed in the libpath.  Setting hardcode_minus_L
15930           # to unsupported forces relinking
15931           hardcode_minus_L=yes
15932           hardcode_libdir_flag_spec='-L$libdir'
15933           hardcode_libdir_separator=
15934           fi
15935           ;;
15936         esac
15937         shared_flag='-shared'
15938         if test "$aix_use_runtimelinking" = yes; then
15939           shared_flag="$shared_flag "'${wl}-G'
15940         fi
15941       else
15942         # not using gcc
15943         if test "$host_cpu" = ia64; then
15944         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15945         # chokes on -Wl,-G. The following line is correct:
15946           shared_flag='-G'
15947         else
15948           if test "$aix_use_runtimelinking" = yes; then
15949             shared_flag='${wl}-G'
15950           else
15951             shared_flag='${wl}-bM:SRE'
15952           fi
15953         fi
15954       fi
15955
15956       # It seems that -bexpall does not export symbols beginning with
15957       # underscore (_), so it is better to generate a list of symbols to export.
15958       always_export_symbols=yes
15959       if test "$aix_use_runtimelinking" = yes; then
15960         # Warning - without using the other runtime loading flags (-brtl),
15961         # -berok will link without error, but may produce a broken library.
15962         allow_undefined_flag='-berok'
15963         # Determine the default libpath from the value encoded in an
15964         # empty executable.
15965         cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971
15972 int
15973 main ()
15974 {
15975
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15987 $as_echo "$ac_try_echo") >&5
15988   (eval "$ac_link") 2>conftest.er1
15989   ac_status=$?
15990   grep -v '^ *+' conftest.er1 >conftest.err
15991   rm -f conftest.er1
15992   cat conftest.err >&5
15993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); } && {
15995          test -z "$ac_c_werror_flag" ||
15996          test ! -s conftest.err
15997        } && test -s conftest$ac_exeext && {
15998          test "$cross_compiling" = yes ||
15999          $as_test_x conftest$ac_exeext
16000        }; then
16001
16002 lt_aix_libpath_sed='
16003     /Import File Strings/,/^$/ {
16004         /^0/ {
16005             s/^0  *\(.*\)$/\1/
16006             p
16007         }
16008     }'
16009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16010 # Check for a 64-bit object if we didn't find anything.
16011 if test -z "$aix_libpath"; then
16012   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16013 fi
16014 else
16015   $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018
16019 fi
16020
16021 rm -rf conftest.dSYM
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023       conftest$ac_exeext conftest.$ac_ext
16024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16025
16026         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16027         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"
16028       else
16029         if test "$host_cpu" = ia64; then
16030           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16031           allow_undefined_flag="-z nodefs"
16032           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"
16033         else
16034          # Determine the default libpath from the value encoded in an
16035          # empty executable.
16036          cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042
16043 int
16044 main ()
16045 {
16046
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (ac_try="$ac_link"
16053 case "(($ac_try" in
16054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055   *) ac_try_echo=$ac_try;;
16056 esac
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059   (eval "$ac_link") 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } && {
16066          test -z "$ac_c_werror_flag" ||
16067          test ! -s conftest.err
16068        } && test -s conftest$ac_exeext && {
16069          test "$cross_compiling" = yes ||
16070          $as_test_x conftest$ac_exeext
16071        }; then
16072
16073 lt_aix_libpath_sed='
16074     /Import File Strings/,/^$/ {
16075         /^0/ {
16076             s/^0  *\(.*\)$/\1/
16077             p
16078         }
16079     }'
16080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16081 # Check for a 64-bit object if we didn't find anything.
16082 if test -z "$aix_libpath"; then
16083   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16084 fi
16085 else
16086   $as_echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089
16090 fi
16091
16092 rm -rf conftest.dSYM
16093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16094       conftest$ac_exeext conftest.$ac_ext
16095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16096
16097          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16098           # Warning - without using the other run time loading flags,
16099           # -berok will link without error, but may produce a broken library.
16100           no_undefined_flag=' ${wl}-bernotok'
16101           allow_undefined_flag=' ${wl}-berok'
16102           # Exported symbols can be pulled into shared objects from archives
16103           whole_archive_flag_spec='$convenience'
16104           archive_cmds_need_lc=yes
16105           # This is similar to how AIX traditionally builds its shared libraries.
16106           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'
16107         fi
16108       fi
16109       ;;
16110
16111     amigaos*)
16112       if test "$host_cpu" = m68k; then
16113         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)'
16114         hardcode_libdir_flag_spec='-L$libdir'
16115         hardcode_minus_L=yes
16116       fi
16117       # see comment about different semantics on the GNU ld section
16118       ld_shlibs=no
16119       ;;
16120
16121     bsdi[45]*)
16122       export_dynamic_flag_spec=-rdynamic
16123       ;;
16124
16125     cygwin* | mingw* | pw32*)
16126       # When not using gcc, we currently assume that we are using
16127       # Microsoft Visual C++.
16128       # hardcode_libdir_flag_spec is actually meaningless, as there is
16129       # no search path for DLLs.
16130       hardcode_libdir_flag_spec=' '
16131       allow_undefined_flag=unsupported
16132       # Tell ltmain to make .lib files, not .a files.
16133       libext=lib
16134       # Tell ltmain to make .dll files, not .so files.
16135       shrext_cmds=".dll"
16136       # FIXME: Setting linknames here is a bad hack.
16137       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16138       # The linker will automatically build a .lib file if we build a DLL.
16139       old_archive_from_new_cmds='true'
16140       # FIXME: Should let the user specify the lib program.
16141       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16142       fix_srcfile_path='`cygpath -w "$srcfile"`'
16143       enable_shared_with_static_runtimes=yes
16144       ;;
16145
16146     darwin* | rhapsody*)
16147
16148
16149   archive_cmds_need_lc=no
16150   hardcode_direct=no
16151   hardcode_automatic=yes
16152   hardcode_shlibpath_var=unsupported
16153   whole_archive_flag_spec=''
16154   link_all_deplibs=yes
16155   allow_undefined_flag="$_lt_dar_allow_undefined"
16156   if test "$GCC" = "yes"; then
16157     output_verbose_link_cmd=echo
16158     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16159     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16160     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}"
16161     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}"
16162
16163   else
16164   ld_shlibs=no
16165   fi
16166
16167       ;;
16168
16169     dgux*)
16170       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171       hardcode_libdir_flag_spec='-L$libdir'
16172       hardcode_shlibpath_var=no
16173       ;;
16174
16175     freebsd1*)
16176       ld_shlibs=no
16177       ;;
16178
16179     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16180     # support.  Future versions do this automatically, but an explicit c++rt0.o
16181     # does not break anything, and helps significantly (at the cost of a little
16182     # extra space).
16183     freebsd2.2*)
16184       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16185       hardcode_libdir_flag_spec='-R$libdir'
16186       hardcode_direct=yes
16187       hardcode_shlibpath_var=no
16188       ;;
16189
16190     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16191     freebsd2*)
16192       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16193       hardcode_direct=yes
16194       hardcode_minus_L=yes
16195       hardcode_shlibpath_var=no
16196       ;;
16197
16198     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16199     freebsd* | dragonfly*)
16200       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16201       hardcode_libdir_flag_spec='-R$libdir'
16202       hardcode_direct=yes
16203       hardcode_shlibpath_var=no
16204       ;;
16205
16206     hpux9*)
16207       if test "$GCC" = yes; then
16208         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'
16209       else
16210         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'
16211       fi
16212       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16213       hardcode_libdir_separator=:
16214       hardcode_direct=yes
16215
16216       # hardcode_minus_L: Not really in the search PATH,
16217       # but as the default location of the library.
16218       hardcode_minus_L=yes
16219       export_dynamic_flag_spec='${wl}-E'
16220       ;;
16221
16222     hpux10*)
16223       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16224         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16225       else
16226         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16227       fi
16228       if test "$with_gnu_ld" = no; then
16229         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16230         hardcode_libdir_flag_spec_ld='+b $libdir'
16231         hardcode_libdir_separator=:
16232         hardcode_direct=yes
16233         hardcode_direct_absolute=yes
16234         export_dynamic_flag_spec='${wl}-E'
16235         # hardcode_minus_L: Not really in the search PATH,
16236         # but as the default location of the library.
16237         hardcode_minus_L=yes
16238       fi
16239       ;;
16240
16241     hpux11*)
16242       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16243         case $host_cpu in
16244         hppa*64*)
16245           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16246           ;;
16247         ia64*)
16248           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16249           ;;
16250         *)
16251           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16252           ;;
16253         esac
16254       else
16255         case $host_cpu in
16256         hppa*64*)
16257           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16258           ;;
16259         ia64*)
16260           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16261           ;;
16262         *)
16263           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16264           ;;
16265         esac
16266       fi
16267       if test "$with_gnu_ld" = no; then
16268         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16269         hardcode_libdir_separator=:
16270
16271         case $host_cpu in
16272         hppa*64*|ia64*)
16273           hardcode_direct=no
16274           hardcode_shlibpath_var=no
16275           ;;
16276         *)
16277           hardcode_direct=yes
16278           hardcode_direct_absolute=yes
16279           export_dynamic_flag_spec='${wl}-E'
16280
16281           # hardcode_minus_L: Not really in the search PATH,
16282           # but as the default location of the library.
16283           hardcode_minus_L=yes
16284           ;;
16285         esac
16286       fi
16287       ;;
16288
16289     irix5* | irix6* | nonstopux*)
16290       if test "$GCC" = yes; then
16291         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'
16292         # Try to use the -exported_symbol ld option, if it does not
16293         # work, assume that -exports_file does not work either and
16294         # implicitly export all symbols.
16295         save_LDFLAGS="$LDFLAGS"
16296         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16297         cat >conftest.$ac_ext <<_ACEOF
16298 int foo(void) {}
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304   *) ac_try_echo=$ac_try;;
16305 esac
16306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16307 $as_echo "$ac_try_echo") >&5
16308   (eval "$ac_link") 2>conftest.er1
16309   ac_status=$?
16310   grep -v '^ *+' conftest.er1 >conftest.err
16311   rm -f conftest.er1
16312   cat conftest.err >&5
16313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } && {
16315          test -z "$ac_c_werror_flag" ||
16316          test ! -s conftest.err
16317        } && test -s conftest$ac_exeext && {
16318          test "$cross_compiling" = yes ||
16319          $as_test_x conftest$ac_exeext
16320        }; then
16321   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'
16322
16323 else
16324   $as_echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327
16328 fi
16329
16330 rm -rf conftest.dSYM
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332       conftest$ac_exeext conftest.$ac_ext
16333         LDFLAGS="$save_LDFLAGS"
16334       else
16335         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'
16336         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'
16337       fi
16338       archive_cmds_need_lc='no'
16339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16340       hardcode_libdir_separator=:
16341       inherit_rpath=yes
16342       link_all_deplibs=yes
16343       ;;
16344
16345     netbsd*)
16346       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16347         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16348       else
16349         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16350       fi
16351       hardcode_libdir_flag_spec='-R$libdir'
16352       hardcode_direct=yes
16353       hardcode_shlibpath_var=no
16354       ;;
16355
16356     newsos6)
16357       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16358       hardcode_direct=yes
16359       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16360       hardcode_libdir_separator=:
16361       hardcode_shlibpath_var=no
16362       ;;
16363
16364     *nto* | *qnx*)
16365       ;;
16366
16367     openbsd*)
16368       if test -f /usr/libexec/ld.so; then
16369         hardcode_direct=yes
16370         hardcode_shlibpath_var=no
16371         hardcode_direct_absolute=yes
16372         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16374           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16375           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16376           export_dynamic_flag_spec='${wl}-E'
16377         else
16378           case $host_os in
16379            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16380              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381              hardcode_libdir_flag_spec='-R$libdir'
16382              ;;
16383            *)
16384              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16385              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16386              ;;
16387           esac
16388         fi
16389       else
16390         ld_shlibs=no
16391       fi
16392       ;;
16393
16394     os2*)
16395       hardcode_libdir_flag_spec='-L$libdir'
16396       hardcode_minus_L=yes
16397       allow_undefined_flag=unsupported
16398       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'
16399       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16400       ;;
16401
16402     osf3*)
16403       if test "$GCC" = yes; then
16404         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16405         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'
16406       else
16407         allow_undefined_flag=' -expect_unresolved \*'
16408         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'
16409       fi
16410       archive_cmds_need_lc='no'
16411       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16412       hardcode_libdir_separator=:
16413       ;;
16414
16415     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16416       if test "$GCC" = yes; then
16417         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16418         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'
16419         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16420       else
16421         allow_undefined_flag=' -expect_unresolved \*'
16422         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'
16423         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~
16424         $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'
16425
16426         # Both c and cxx compiler support -rpath directly
16427         hardcode_libdir_flag_spec='-rpath $libdir'
16428       fi
16429       archive_cmds_need_lc='no'
16430       hardcode_libdir_separator=:
16431       ;;
16432
16433     solaris*)
16434       no_undefined_flag=' -z defs'
16435       if test "$GCC" = yes; then
16436         wlarc='${wl}'
16437         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16438         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16439           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16440       else
16441         case `$CC -V 2>&1` in
16442         *"Compilers 5.0"*)
16443           wlarc=''
16444           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16446           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16447           ;;
16448         *)
16449           wlarc='${wl}'
16450           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16451           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16452           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16453           ;;
16454         esac
16455       fi
16456       hardcode_libdir_flag_spec='-R$libdir'
16457       hardcode_shlibpath_var=no
16458       case $host_os in
16459       solaris2.[0-5] | solaris2.[0-5].*) ;;
16460       *)
16461         # The compiler driver will combine and reorder linker options,
16462         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16463         # but is careful enough not to reorder.
16464         # Supported since Solaris 2.6 (maybe 2.5.1?)
16465         if test "$GCC" = yes; then
16466           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16467         else
16468           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16469         fi
16470         ;;
16471       esac
16472       link_all_deplibs=yes
16473       ;;
16474
16475     sunos4*)
16476       if test "x$host_vendor" = xsequent; then
16477         # Use $CC to link under sequent, because it throws in some extra .o
16478         # files that make .init and .fini sections work.
16479         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16480       else
16481         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16482       fi
16483       hardcode_libdir_flag_spec='-L$libdir'
16484       hardcode_direct=yes
16485       hardcode_minus_L=yes
16486       hardcode_shlibpath_var=no
16487       ;;
16488
16489     sysv4)
16490       case $host_vendor in
16491         sni)
16492           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493           hardcode_direct=yes # is this really true???
16494         ;;
16495         siemens)
16496           ## LD is ld it makes a PLAMLIB
16497           ## CC just makes a GrossModule.
16498           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16499           reload_cmds='$CC -r -o $output$reload_objs'
16500           hardcode_direct=no
16501         ;;
16502         motorola)
16503           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16505         ;;
16506       esac
16507       runpath_var='LD_RUN_PATH'
16508       hardcode_shlibpath_var=no
16509       ;;
16510
16511     sysv4.3*)
16512       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513       hardcode_shlibpath_var=no
16514       export_dynamic_flag_spec='-Bexport'
16515       ;;
16516
16517     sysv4*MP*)
16518       if test -d /usr/nec; then
16519         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520         hardcode_shlibpath_var=no
16521         runpath_var=LD_RUN_PATH
16522         hardcode_runpath_var=yes
16523         ld_shlibs=yes
16524       fi
16525       ;;
16526
16527     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16528       no_undefined_flag='${wl}-z,text'
16529       archive_cmds_need_lc=no
16530       hardcode_shlibpath_var=no
16531       runpath_var='LD_RUN_PATH'
16532
16533       if test "$GCC" = yes; then
16534         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536       else
16537         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539       fi
16540       ;;
16541
16542     sysv5* | sco3.2v5* | sco5v6*)
16543       # Note: We can NOT use -z defs as we might desire, because we do not
16544       # link with -lc, and that would cause any symbols used from libc to
16545       # always be unresolved, which means just about no library would
16546       # ever link correctly.  If we're not using GNU ld we use -z text
16547       # though, which does catch some bad symbols but isn't as heavy-handed
16548       # as -z defs.
16549       no_undefined_flag='${wl}-z,text'
16550       allow_undefined_flag='${wl}-z,nodefs'
16551       archive_cmds_need_lc=no
16552       hardcode_shlibpath_var=no
16553       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16554       hardcode_libdir_separator=':'
16555       link_all_deplibs=yes
16556       export_dynamic_flag_spec='${wl}-Bexport'
16557       runpath_var='LD_RUN_PATH'
16558
16559       if test "$GCC" = yes; then
16560         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562       else
16563         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565       fi
16566       ;;
16567
16568     uts4*)
16569       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16570       hardcode_libdir_flag_spec='-L$libdir'
16571       hardcode_shlibpath_var=no
16572       ;;
16573
16574     *)
16575       ld_shlibs=no
16576       ;;
16577     esac
16578
16579     if test x$host_vendor = xsni; then
16580       case $host in
16581       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16582         export_dynamic_flag_spec='${wl}-Blargedynsym'
16583         ;;
16584       esac
16585     fi
16586   fi
16587
16588 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16589 $as_echo "$ld_shlibs" >&6; }
16590 test "$ld_shlibs" = no && can_build_shared=no
16591
16592 with_gnu_ld=$with_gnu_ld
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608 #
16609 # Do we need to explicitly link libc?
16610 #
16611 case "x$archive_cmds_need_lc" in
16612 x|xyes)
16613   # Assume -lc should be added
16614   archive_cmds_need_lc=yes
16615
16616   if test "$enable_shared" = yes && test "$GCC" = yes; then
16617     case $archive_cmds in
16618     *'~'*)
16619       # FIXME: we may have to deal with multi-command sequences.
16620       ;;
16621     '$CC '*)
16622       # Test whether the compiler implicitly links with -lc since on some
16623       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16624       # to ld, don't add -lc before -lgcc.
16625       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16626 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16627       $RM conftest*
16628       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16629
16630       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16631   (eval $ac_compile) 2>&5
16632   ac_status=$?
16633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } 2>conftest.err; then
16635         soname=conftest
16636         lib=conftest
16637         libobjs=conftest.$ac_objext
16638         deplibs=
16639         wl=$lt_prog_compiler_wl
16640         pic_flag=$lt_prog_compiler_pic
16641         compiler_flags=-v
16642         linker_flags=-v
16643         verstring=
16644         output_objdir=.
16645         libname=conftest
16646         lt_save_allow_undefined_flag=$allow_undefined_flag
16647         allow_undefined_flag=
16648         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16649   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16650   ac_status=$?
16651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }
16653         then
16654           archive_cmds_need_lc=no
16655         else
16656           archive_cmds_need_lc=yes
16657         fi
16658         allow_undefined_flag=$lt_save_allow_undefined_flag
16659       else
16660         cat conftest.err 1>&5
16661       fi
16662       $RM conftest*
16663       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16664 $as_echo "$archive_cmds_need_lc" >&6; }
16665       ;;
16666     esac
16667   fi
16668   ;;
16669 esac
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16828 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16829
16830 if test "$GCC" = yes; then
16831   case $host_os in
16832     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16833     *) lt_awk_arg="/^libraries:/" ;;
16834   esac
16835   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16836   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16837     # if the path contains ";" then we assume it to be the separator
16838     # otherwise default to the standard path separator (i.e. ":") - it is
16839     # assumed that no part of a normal pathname contains ";" but that should
16840     # okay in the real world where ";" in dirpaths is itself problematic.
16841     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16842   else
16843     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16844   fi
16845   # Ok, now we have the path, separated by spaces, we can step through it
16846   # and add multilib dir if necessary.
16847   lt_tmp_lt_search_path_spec=
16848   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16849   for lt_sys_path in $lt_search_path_spec; do
16850     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16851       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16852     else
16853       test -d "$lt_sys_path" && \
16854         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16855     fi
16856   done
16857   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16858 BEGIN {RS=" "; FS="/|\n";} {
16859   lt_foo="";
16860   lt_count=0;
16861   for (lt_i = NF; lt_i > 0; lt_i--) {
16862     if ($lt_i != "" && $lt_i != ".") {
16863       if ($lt_i == "..") {
16864         lt_count++;
16865       } else {
16866         if (lt_count == 0) {
16867           lt_foo="/" $lt_i lt_foo;
16868         } else {
16869           lt_count--;
16870         }
16871       }
16872     }
16873   }
16874   if (lt_foo != "") { lt_freq[lt_foo]++; }
16875   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16876 }'`
16877   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16878 else
16879   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16880 fi
16881 library_names_spec=
16882 libname_spec='lib$name'
16883 soname_spec=
16884 shrext_cmds=".so"
16885 postinstall_cmds=
16886 postuninstall_cmds=
16887 finish_cmds=
16888 finish_eval=
16889 shlibpath_var=
16890 shlibpath_overrides_runpath=unknown
16891 version_type=none
16892 dynamic_linker="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16894 need_lib_prefix=unknown
16895 hardcode_into_libs=no
16896
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version=unknown
16900
16901 case $host_os in
16902 aix3*)
16903   version_type=linux
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16905   shlibpath_var=LIBPATH
16906
16907   # AIX 3 has no versioning support, so we append a major version to the name.
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   ;;
16910
16911 aix[4-9]*)
16912   version_type=linux
16913   need_lib_prefix=no
16914   need_version=no
16915   hardcode_into_libs=yes
16916   if test "$host_cpu" = ia64; then
16917     # AIX 5 supports IA64
16918     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919     shlibpath_var=LD_LIBRARY_PATH
16920   else
16921     # With GCC up to 2.95.x, collect2 would create an import file
16922     # for dependence libraries.  The import file would start with
16923     # the line `#! .'.  This would cause the generated library to
16924     # depend on `.', always an invalid library.  This was fixed in
16925     # development snapshots of GCC prior to 3.0.
16926     case $host_os in
16927       aix4 | aix4.[01] | aix4.[01].*)
16928       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16929            echo ' yes '
16930            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16931         :
16932       else
16933         can_build_shared=no
16934       fi
16935       ;;
16936     esac
16937     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938     # soname into executable. Probably we can add versioning support to
16939     # collect2, so additional links can be useful in future.
16940     if test "$aix_use_runtimelinking" = yes; then
16941       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942       # instead of lib<name>.a to let people know that these are not
16943       # typical AIX shared libraries.
16944       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945     else
16946       # We preserve .a as extension for shared libraries through AIX4.2
16947       # and later when we are not doing run time linking.
16948       library_names_spec='${libname}${release}.a $libname.a'
16949       soname_spec='${libname}${release}${shared_ext}$major'
16950     fi
16951     shlibpath_var=LIBPATH
16952   fi
16953   ;;
16954
16955 amigaos*)
16956   if test "$host_cpu" = m68k; then
16957     library_names_spec='$libname.ixlibrary $libname.a'
16958     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959     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'
16960   else
16961     dynamic_linker=no
16962   fi
16963   ;;
16964
16965 beos*)
16966   library_names_spec='${libname}${shared_ext}'
16967   dynamic_linker="$host_os ld.so"
16968   shlibpath_var=LIBRARY_PATH
16969   ;;
16970
16971 bsdi[45]*)
16972   version_type=linux
16973   need_version=no
16974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975   soname_spec='${libname}${release}${shared_ext}$major'
16976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16977   shlibpath_var=LD_LIBRARY_PATH
16978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16980   # the default ld.so.conf also contains /usr/contrib/lib and
16981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16982   # libtool to hard-code these into programs
16983   ;;
16984
16985 cygwin* | mingw* | pw32*)
16986   version_type=windows
16987   shrext_cmds=".dll"
16988   need_version=no
16989   need_lib_prefix=no
16990
16991   case $GCC,$host_os in
16992   yes,cygwin* | yes,mingw* | yes,pw32*)
16993     library_names_spec='$libname.dll.a'
16994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16995     postinstall_cmds='base_file=`basename \${file}`~
16996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16997       dldir=$destdir/`dirname \$dlpath`~
16998       test -d \$dldir || mkdir -p \$dldir~
16999       $install_prog $dir/$dlname \$dldir/$dlname~
17000       chmod a+x \$dldir/$dlname~
17001       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17002         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17003       fi'
17004     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17005       dlpath=$dir/\$dldll~
17006        $RM \$dlpath'
17007     shlibpath_overrides_runpath=yes
17008
17009     case $host_os in
17010     cygwin*)
17011       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17012       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17013       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17014       ;;
17015     mingw*)
17016       # MinGW DLLs use traditional 'lib' prefix
17017       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17019       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17020         # It is most probably a Windows format PATH printed by
17021         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17022         # path with ; separators, and with drive letters. We can handle the
17023         # drive letters (cygwin fileutils understands them), so leave them,
17024         # especially as we might pass files found there to a mingw objdump,
17025         # which wouldn't understand a cygwinified path. Ahh.
17026         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17027       else
17028         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17029       fi
17030       ;;
17031     pw32*)
17032       # pw32 DLLs use 'pw' prefix rather than 'lib'
17033       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17034       ;;
17035     esac
17036     ;;
17037
17038   *)
17039     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17040     ;;
17041   esac
17042   dynamic_linker='Win32 ld.exe'
17043   # FIXME: first we should search . and the directory the executable is in
17044   shlibpath_var=PATH
17045   ;;
17046
17047 darwin* | rhapsody*)
17048   dynamic_linker="$host_os dyld"
17049   version_type=darwin
17050   need_lib_prefix=no
17051   need_version=no
17052   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17053   soname_spec='${libname}${release}${major}$shared_ext'
17054   shlibpath_overrides_runpath=yes
17055   shlibpath_var=DYLD_LIBRARY_PATH
17056   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17057
17058   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17059   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17060   ;;
17061
17062 dgux*)
17063   version_type=linux
17064   need_lib_prefix=no
17065   need_version=no
17066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17067   soname_spec='${libname}${release}${shared_ext}$major'
17068   shlibpath_var=LD_LIBRARY_PATH
17069   ;;
17070
17071 freebsd1*)
17072   dynamic_linker=no
17073   ;;
17074
17075 freebsd* | dragonfly*)
17076   # DragonFly does not have aout.  When/if they implement a new
17077   # versioning mechanism, adjust this.
17078   if test -x /usr/bin/objformat; then
17079     objformat=`/usr/bin/objformat`
17080   else
17081     case $host_os in
17082     freebsd[123]*) objformat=aout ;;
17083     *) objformat=elf ;;
17084     esac
17085   fi
17086   version_type=freebsd-$objformat
17087   case $version_type in
17088     freebsd-elf*)
17089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17090       need_version=no
17091       need_lib_prefix=no
17092       ;;
17093     freebsd-*)
17094       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17095       need_version=yes
17096       ;;
17097   esac
17098   shlibpath_var=LD_LIBRARY_PATH
17099   case $host_os in
17100   freebsd2*)
17101     shlibpath_overrides_runpath=yes
17102     ;;
17103   freebsd3.[01]* | freebsdelf3.[01]*)
17104     shlibpath_overrides_runpath=yes
17105     hardcode_into_libs=yes
17106     ;;
17107   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17108   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17109     shlibpath_overrides_runpath=no
17110     hardcode_into_libs=yes
17111     ;;
17112   *) # from 4.6 on, and DragonFly
17113     shlibpath_overrides_runpath=yes
17114     hardcode_into_libs=yes
17115     ;;
17116   esac
17117   ;;
17118
17119 gnu*)
17120   version_type=linux
17121   need_lib_prefix=no
17122   need_version=no
17123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17124   soname_spec='${libname}${release}${shared_ext}$major'
17125   shlibpath_var=LD_LIBRARY_PATH
17126   hardcode_into_libs=yes
17127   ;;
17128
17129 hpux9* | hpux10* | hpux11*)
17130   # Give a soname corresponding to the major version so that dld.sl refuses to
17131   # link against other versions.
17132   version_type=sunos
17133   need_lib_prefix=no
17134   need_version=no
17135   case $host_cpu in
17136   ia64*)
17137     shrext_cmds='.so'
17138     hardcode_into_libs=yes
17139     dynamic_linker="$host_os dld.so"
17140     shlibpath_var=LD_LIBRARY_PATH
17141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143     soname_spec='${libname}${release}${shared_ext}$major'
17144     if test "X$HPUX_IA64_MODE" = X32; then
17145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17146     else
17147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17148     fi
17149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17150     ;;
17151   hppa*64*)
17152     shrext_cmds='.sl'
17153     hardcode_into_libs=yes
17154     dynamic_linker="$host_os dld.sl"
17155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158     soname_spec='${libname}${release}${shared_ext}$major'
17159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17161     ;;
17162   *)
17163     shrext_cmds='.sl'
17164     dynamic_linker="$host_os dld.sl"
17165     shlibpath_var=SHLIB_PATH
17166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168     soname_spec='${libname}${release}${shared_ext}$major'
17169     ;;
17170   esac
17171   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17172   postinstall_cmds='chmod 555 $lib'
17173   ;;
17174
17175 interix[3-9]*)
17176   version_type=linux
17177   need_lib_prefix=no
17178   need_version=no
17179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17180   soname_spec='${libname}${release}${shared_ext}$major'
17181   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17182   shlibpath_var=LD_LIBRARY_PATH
17183   shlibpath_overrides_runpath=no
17184   hardcode_into_libs=yes
17185   ;;
17186
17187 irix5* | irix6* | nonstopux*)
17188   case $host_os in
17189     nonstopux*) version_type=nonstopux ;;
17190     *)
17191         if test "$lt_cv_prog_gnu_ld" = yes; then
17192                 version_type=linux
17193         else
17194                 version_type=irix
17195         fi ;;
17196   esac
17197   need_lib_prefix=no
17198   need_version=no
17199   soname_spec='${libname}${release}${shared_ext}$major'
17200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17201   case $host_os in
17202   irix5* | nonstopux*)
17203     libsuff= shlibsuff=
17204     ;;
17205   *)
17206     case $LD in # libtool.m4 will add one of these switches to LD
17207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17208       libsuff= shlibsuff= libmagic=32-bit;;
17209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17210       libsuff=32 shlibsuff=N32 libmagic=N32;;
17211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17213     *) libsuff= shlibsuff= libmagic=never-match;;
17214     esac
17215     ;;
17216   esac
17217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17218   shlibpath_overrides_runpath=no
17219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17221   hardcode_into_libs=yes
17222   ;;
17223
17224 # No shared lib support for Linux oldld, aout, or coff.
17225 linux*oldld* | linux*aout* | linux*coff*)
17226   dynamic_linker=no
17227   ;;
17228
17229 # This must be Linux ELF.
17230 linux* | k*bsd*-gnu)
17231   version_type=linux
17232   need_lib_prefix=no
17233   need_version=no
17234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235   soname_spec='${libname}${release}${shared_ext}$major'
17236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17237   shlibpath_var=LD_LIBRARY_PATH
17238   shlibpath_overrides_runpath=no
17239   # Some binutils ld are patched to set DT_RUNPATH
17240   save_LDFLAGS=$LDFLAGS
17241   save_libdir=$libdir
17242   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17243        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17244   cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250
17251 int
17252 main ()
17253 {
17254
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267   (eval "$ac_link") 2>conftest.er1
17268   ac_status=$?
17269   grep -v '^ *+' conftest.er1 >conftest.err
17270   rm -f conftest.er1
17271   cat conftest.err >&5
17272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); } && {
17274          test -z "$ac_c_werror_flag" ||
17275          test ! -s conftest.err
17276        } && test -s conftest$ac_exeext && {
17277          test "$cross_compiling" = yes ||
17278          $as_test_x conftest$ac_exeext
17279        }; then
17280   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17281   shlibpath_overrides_runpath=yes
17282 fi
17283
17284 else
17285   $as_echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288
17289 fi
17290
17291 rm -rf conftest.dSYM
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293       conftest$ac_exeext conftest.$ac_ext
17294   LDFLAGS=$save_LDFLAGS
17295   libdir=$save_libdir
17296
17297   # This implies no fast_install, which is unacceptable.
17298   # Some rework will be needed to allow for fast_install
17299   # before this can be enabled.
17300   hardcode_into_libs=yes
17301
17302   # Append ld.so.conf contents to the search path
17303   if test -f /etc/ld.so.conf; then
17304     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' ' '`
17305     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17306   fi
17307
17308   # We used to test for /lib/ld.so.1 and disable shared libraries on
17309   # powerpc, because MkLinux only supported shared libraries with the
17310   # GNU dynamic linker.  Since this was broken with cross compilers,
17311   # most powerpc-linux boxes support dynamic linking these days and
17312   # people can always --disable-shared, the test was removed, and we
17313   # assume the GNU/Linux dynamic linker is in use.
17314   dynamic_linker='GNU/Linux ld.so'
17315   ;;
17316
17317 netbsd*)
17318   version_type=sunos
17319   need_lib_prefix=no
17320   need_version=no
17321   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17323     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17324     dynamic_linker='NetBSD (a.out) ld.so'
17325   else
17326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17327     soname_spec='${libname}${release}${shared_ext}$major'
17328     dynamic_linker='NetBSD ld.elf_so'
17329   fi
17330   shlibpath_var=LD_LIBRARY_PATH
17331   shlibpath_overrides_runpath=yes
17332   hardcode_into_libs=yes
17333   ;;
17334
17335 newsos6)
17336   version_type=linux
17337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338   shlibpath_var=LD_LIBRARY_PATH
17339   shlibpath_overrides_runpath=yes
17340   ;;
17341
17342 *nto* | *qnx*)
17343   version_type=qnx
17344   need_lib_prefix=no
17345   need_version=no
17346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347   soname_spec='${libname}${release}${shared_ext}$major'
17348   shlibpath_var=LD_LIBRARY_PATH
17349   shlibpath_overrides_runpath=no
17350   hardcode_into_libs=yes
17351   dynamic_linker='ldqnx.so'
17352   ;;
17353
17354 openbsd*)
17355   version_type=sunos
17356   sys_lib_dlsearch_path_spec="/usr/lib"
17357   need_lib_prefix=no
17358   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17359   case $host_os in
17360     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17361     *)                          need_version=no  ;;
17362   esac
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17367     case $host_os in
17368       openbsd2.[89] | openbsd2.[89].*)
17369         shlibpath_overrides_runpath=no
17370         ;;
17371       *)
17372         shlibpath_overrides_runpath=yes
17373         ;;
17374       esac
17375   else
17376     shlibpath_overrides_runpath=yes
17377   fi
17378   ;;
17379
17380 os2*)
17381   libname_spec='$name'
17382   shrext_cmds=".dll"
17383   need_lib_prefix=no
17384   library_names_spec='$libname${shared_ext} $libname.a'
17385   dynamic_linker='OS/2 ld.exe'
17386   shlibpath_var=LIBPATH
17387   ;;
17388
17389 osf3* | osf4* | osf5*)
17390   version_type=osf
17391   need_lib_prefix=no
17392   need_version=no
17393   soname_spec='${libname}${release}${shared_ext}$major'
17394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395   shlibpath_var=LD_LIBRARY_PATH
17396   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17397   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17398   ;;
17399
17400 rdos*)
17401   dynamic_linker=no
17402   ;;
17403
17404 solaris*)
17405   version_type=linux
17406   need_lib_prefix=no
17407   need_version=no
17408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409   soname_spec='${libname}${release}${shared_ext}$major'
17410   shlibpath_var=LD_LIBRARY_PATH
17411   shlibpath_overrides_runpath=yes
17412   hardcode_into_libs=yes
17413   # ldd complains unless libraries are executable
17414   postinstall_cmds='chmod +x $lib'
17415   ;;
17416
17417 sunos4*)
17418   version_type=sunos
17419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17420   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17421   shlibpath_var=LD_LIBRARY_PATH
17422   shlibpath_overrides_runpath=yes
17423   if test "$with_gnu_ld" = yes; then
17424     need_lib_prefix=no
17425   fi
17426   need_version=yes
17427   ;;
17428
17429 sysv4 | sysv4.3*)
17430   version_type=linux
17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432   soname_spec='${libname}${release}${shared_ext}$major'
17433   shlibpath_var=LD_LIBRARY_PATH
17434   case $host_vendor in
17435     sni)
17436       shlibpath_overrides_runpath=no
17437       need_lib_prefix=no
17438       runpath_var=LD_RUN_PATH
17439       ;;
17440     siemens)
17441       need_lib_prefix=no
17442       ;;
17443     motorola)
17444       need_lib_prefix=no
17445       need_version=no
17446       shlibpath_overrides_runpath=no
17447       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17448       ;;
17449   esac
17450   ;;
17451
17452 sysv4*MP*)
17453   if test -d /usr/nec ;then
17454     version_type=linux
17455     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17456     soname_spec='$libname${shared_ext}.$major'
17457     shlibpath_var=LD_LIBRARY_PATH
17458   fi
17459   ;;
17460
17461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17462   version_type=freebsd-elf
17463   need_lib_prefix=no
17464   need_version=no
17465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17466   soname_spec='${libname}${release}${shared_ext}$major'
17467   shlibpath_var=LD_LIBRARY_PATH
17468   shlibpath_overrides_runpath=yes
17469   hardcode_into_libs=yes
17470   if test "$with_gnu_ld" = yes; then
17471     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17472   else
17473     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17474     case $host_os in
17475       sco3.2v5*)
17476         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17477         ;;
17478     esac
17479   fi
17480   sys_lib_dlsearch_path_spec='/usr/lib'
17481   ;;
17482
17483 tpf*)
17484   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17485   version_type=linux
17486   need_lib_prefix=no
17487   need_version=no
17488   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489   shlibpath_var=LD_LIBRARY_PATH
17490   shlibpath_overrides_runpath=no
17491   hardcode_into_libs=yes
17492   ;;
17493
17494 uts4*)
17495   version_type=linux
17496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17497   soname_spec='${libname}${release}${shared_ext}$major'
17498   shlibpath_var=LD_LIBRARY_PATH
17499   ;;
17500
17501 *)
17502   dynamic_linker=no
17503   ;;
17504 esac
17505 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17506 $as_echo "$dynamic_linker" >&6; }
17507 test "$dynamic_linker" = no && can_build_shared=no
17508
17509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17510 if test "$GCC" = yes; then
17511   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17512 fi
17513
17514 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17515   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17516 fi
17517 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17518   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17519 fi
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17609 hardcode_action=
17610 if test -n "$hardcode_libdir_flag_spec" ||
17611    test -n "$runpath_var" ||
17612    test "X$hardcode_automatic" = "Xyes" ; then
17613
17614   # We can hardcode non-existent directories.
17615   if test "$hardcode_direct" != no &&
17616      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17617      # have to relink, otherwise we might link with an installed library
17618      # when we should be linking with a yet-to-be-installed one
17619      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17620      test "$hardcode_minus_L" != no; then
17621     # Linking always hardcodes the temporary library directory.
17622     hardcode_action=relink
17623   else
17624     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17625     hardcode_action=immediate
17626   fi
17627 else
17628   # We cannot hardcode anything, or else we can only hardcode existing
17629   # directories.
17630   hardcode_action=unsupported
17631 fi
17632 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
17633 $as_echo "$hardcode_action" >&6; }
17634
17635 if test "$hardcode_action" = relink ||
17636    test "$inherit_rpath" = yes; then
17637   # Fast installation is not supported
17638   enable_fast_install=no
17639 elif test "$shlibpath_overrides_runpath" = yes ||
17640      test "$enable_shared" = no; then
17641   # Fast installation is not necessary
17642   enable_fast_install=needless
17643 fi
17644
17645
17646
17647
17648
17649
17650   if test "x$enable_dlopen" != xyes; then
17651   enable_dlopen=unknown
17652   enable_dlopen_self=unknown
17653   enable_dlopen_self_static=unknown
17654 else
17655   lt_cv_dlopen=no
17656   lt_cv_dlopen_libs=
17657
17658   case $host_os in
17659   beos*)
17660     lt_cv_dlopen="load_add_on"
17661     lt_cv_dlopen_libs=
17662     lt_cv_dlopen_self=yes
17663     ;;
17664
17665   mingw* | pw32*)
17666     lt_cv_dlopen="LoadLibrary"
17667     lt_cv_dlopen_libs=
17668     ;;
17669
17670   cygwin*)
17671     lt_cv_dlopen="dlopen"
17672     lt_cv_dlopen_libs=
17673     ;;
17674
17675   darwin*)
17676   # if libdl is installed we need to link against it
17677     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17680   $as_echo_n "(cached) " >&6
17681 else
17682   ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-ldl  $LIBS"
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690
17691 /* Override any GCC internal prototype to avoid an error.
17692    Use char because int might match the return type of a GCC
17693    builtin and then its argument prototype would still apply.  */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 char dlopen ();
17698 int
17699 main ()
17700 {
17701 return dlopen ();
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (ac_try="$ac_link"
17708 case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17713 $as_echo "$ac_try_echo") >&5
17714   (eval "$ac_link") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } && {
17721          test -z "$ac_c_werror_flag" ||
17722          test ! -s conftest.err
17723        } && test -s conftest$ac_exeext && {
17724          test "$cross_compiling" = yes ||
17725          $as_test_x conftest$ac_exeext
17726        }; then
17727   ac_cv_lib_dl_dlopen=yes
17728 else
17729   $as_echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732         ac_cv_lib_dl_dlopen=no
17733 fi
17734
17735 rm -rf conftest.dSYM
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737       conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17739 fi
17740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17742 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
17743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744 else
17745
17746     lt_cv_dlopen="dyld"
17747     lt_cv_dlopen_libs=
17748     lt_cv_dlopen_self=yes
17749
17750 fi
17751
17752     ;;
17753
17754   *)
17755     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
17756 $as_echo_n "checking for shl_load... " >&6; }
17757 if test "${ac_cv_func_shl_load+set}" = set; then
17758   $as_echo_n "(cached) " >&6
17759 else
17760   cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17768 #define shl_load innocuous_shl_load
17769
17770 /* System header to define __stub macros and hopefully few prototypes,
17771     which can conflict with char shl_load (); below.
17772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773     <limits.h> exists even on freestanding compilers.  */
17774
17775 #ifdef __STDC__
17776 # include <limits.h>
17777 #else
17778 # include <assert.h>
17779 #endif
17780
17781 #undef shl_load
17782
17783 /* Override any GCC internal prototype to avoid an error.
17784    Use char because int might match the return type of a GCC
17785    builtin and then its argument prototype would still apply.  */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 char shl_load ();
17790 /* The GNU C library defines this for functions which it implements
17791     to always fail with ENOSYS.  Some functions are actually named
17792     something starting with __ and the normal name is an alias.  */
17793 #if defined __stub_shl_load || defined __stub___shl_load
17794 choke me
17795 #endif
17796
17797 int
17798 main ()
17799 {
17800 return shl_load ();
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17812 $as_echo "$ac_try_echo") >&5
17813   (eval "$ac_link") 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } && {
17820          test -z "$ac_c_werror_flag" ||
17821          test ! -s conftest.err
17822        } && test -s conftest$ac_exeext && {
17823          test "$cross_compiling" = yes ||
17824          $as_test_x conftest$ac_exeext
17825        }; then
17826   ac_cv_func_shl_load=yes
17827 else
17828   $as_echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17830
17831         ac_cv_func_shl_load=no
17832 fi
17833
17834 rm -rf conftest.dSYM
17835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17836       conftest$ac_exeext conftest.$ac_ext
17837 fi
17838 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17839 $as_echo "$ac_cv_func_shl_load" >&6; }
17840 if test "x$ac_cv_func_shl_load" = x""yes; then
17841   lt_cv_dlopen="shl_load"
17842 else
17843   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17844 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17845 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17846   $as_echo_n "(cached) " >&6
17847 else
17848   ac_check_lib_save_LIBS=$LIBS
17849 LIBS="-ldld  $LIBS"
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856
17857 /* Override any GCC internal prototype to avoid an error.
17858    Use char because int might match the return type of a GCC
17859    builtin and then its argument prototype would still apply.  */
17860 #ifdef __cplusplus
17861 extern "C"
17862 #endif
17863 char shl_load ();
17864 int
17865 main ()
17866 {
17867 return shl_load ();
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17879 $as_echo "$ac_try_echo") >&5
17880   (eval "$ac_link") 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } && {
17887          test -z "$ac_c_werror_flag" ||
17888          test ! -s conftest.err
17889        } && test -s conftest$ac_exeext && {
17890          test "$cross_compiling" = yes ||
17891          $as_test_x conftest$ac_exeext
17892        }; then
17893   ac_cv_lib_dld_shl_load=yes
17894 else
17895   $as_echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898         ac_cv_lib_dld_shl_load=no
17899 fi
17900
17901 rm -rf conftest.dSYM
17902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17903       conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17905 fi
17906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17908 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
17909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17910 else
17911   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
17912 $as_echo_n "checking for dlopen... " >&6; }
17913 if test "${ac_cv_func_dlopen+set}" = set; then
17914   $as_echo_n "(cached) " >&6
17915 else
17916   cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17924 #define dlopen innocuous_dlopen
17925
17926 /* System header to define __stub macros and hopefully few prototypes,
17927     which can conflict with char dlopen (); below.
17928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17929     <limits.h> exists even on freestanding compilers.  */
17930
17931 #ifdef __STDC__
17932 # include <limits.h>
17933 #else
17934 # include <assert.h>
17935 #endif
17936
17937 #undef dlopen
17938
17939 /* Override any GCC internal prototype to avoid an error.
17940    Use char because int might match the return type of a GCC
17941    builtin and then its argument prototype would still apply.  */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char dlopen ();
17946 /* The GNU C library defines this for functions which it implements
17947     to always fail with ENOSYS.  Some functions are actually named
17948     something starting with __ and the normal name is an alias.  */
17949 #if defined __stub_dlopen || defined __stub___dlopen
17950 choke me
17951 #endif
17952
17953 int
17954 main ()
17955 {
17956 return dlopen ();
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (ac_try="$ac_link"
17963 case "(($ac_try" in
17964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965   *) ac_try_echo=$ac_try;;
17966 esac
17967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17968 $as_echo "$ac_try_echo") >&5
17969   (eval "$ac_link") 2>conftest.er1
17970   ac_status=$?
17971   grep -v '^ *+' conftest.er1 >conftest.err
17972   rm -f conftest.er1
17973   cat conftest.err >&5
17974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); } && {
17976          test -z "$ac_c_werror_flag" ||
17977          test ! -s conftest.err
17978        } && test -s conftest$ac_exeext && {
17979          test "$cross_compiling" = yes ||
17980          $as_test_x conftest$ac_exeext
17981        }; then
17982   ac_cv_func_dlopen=yes
17983 else
17984   $as_echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17986
17987         ac_cv_func_dlopen=no
17988 fi
17989
17990 rm -rf conftest.dSYM
17991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17992       conftest$ac_exeext conftest.$ac_ext
17993 fi
17994 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17995 $as_echo "$ac_cv_func_dlopen" >&6; }
17996 if test "x$ac_cv_func_dlopen" = x""yes; then
17997   lt_cv_dlopen="dlopen"
17998 else
17999   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18002   $as_echo_n "(cached) " >&6
18003 else
18004   ac_check_lib_save_LIBS=$LIBS
18005 LIBS="-ldl  $LIBS"
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012
18013 /* Override any GCC internal prototype to avoid an error.
18014    Use char because int might match the return type of a GCC
18015    builtin and then its argument prototype would still apply.  */
18016 #ifdef __cplusplus
18017 extern "C"
18018 #endif
18019 char dlopen ();
18020 int
18021 main ()
18022 {
18023 return dlopen ();
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (ac_try="$ac_link"
18030 case "(($ac_try" in
18031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032   *) ac_try_echo=$ac_try;;
18033 esac
18034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18035 $as_echo "$ac_try_echo") >&5
18036   (eval "$ac_link") 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } && {
18043          test -z "$ac_c_werror_flag" ||
18044          test ! -s conftest.err
18045        } && test -s conftest$ac_exeext && {
18046          test "$cross_compiling" = yes ||
18047          $as_test_x conftest$ac_exeext
18048        }; then
18049   ac_cv_lib_dl_dlopen=yes
18050 else
18051   $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054         ac_cv_lib_dl_dlopen=no
18055 fi
18056
18057 rm -rf conftest.dSYM
18058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18059       conftest$ac_exeext conftest.$ac_ext
18060 LIBS=$ac_check_lib_save_LIBS
18061 fi
18062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18063 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18064 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18065   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18066 else
18067   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18068 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18069 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18070   $as_echo_n "(cached) " >&6
18071 else
18072   ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lsvld  $LIBS"
18074 cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h.  */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h.  */
18080
18081 /* Override any GCC internal prototype to avoid an error.
18082    Use char because int might match the return type of a GCC
18083    builtin and then its argument prototype would still apply.  */
18084 #ifdef __cplusplus
18085 extern "C"
18086 #endif
18087 char dlopen ();
18088 int
18089 main ()
18090 {
18091 return dlopen ();
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18103 $as_echo "$ac_try_echo") >&5
18104   (eval "$ac_link") 2>conftest.er1
18105   ac_status=$?
18106   grep -v '^ *+' conftest.er1 >conftest.err
18107   rm -f conftest.er1
18108   cat conftest.err >&5
18109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); } && {
18111          test -z "$ac_c_werror_flag" ||
18112          test ! -s conftest.err
18113        } && test -s conftest$ac_exeext && {
18114          test "$cross_compiling" = yes ||
18115          $as_test_x conftest$ac_exeext
18116        }; then
18117   ac_cv_lib_svld_dlopen=yes
18118 else
18119   $as_echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122         ac_cv_lib_svld_dlopen=no
18123 fi
18124
18125 rm -rf conftest.dSYM
18126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18127       conftest$ac_exeext conftest.$ac_ext
18128 LIBS=$ac_check_lib_save_LIBS
18129 fi
18130 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18131 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18132 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
18133   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18134 else
18135   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18136 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18137 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18138   $as_echo_n "(cached) " >&6
18139 else
18140   ac_check_lib_save_LIBS=$LIBS
18141 LIBS="-ldld  $LIBS"
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148
18149 /* Override any GCC internal prototype to avoid an error.
18150    Use char because int might match the return type of a GCC
18151    builtin and then its argument prototype would still apply.  */
18152 #ifdef __cplusplus
18153 extern "C"
18154 #endif
18155 char dld_link ();
18156 int
18157 main ()
18158 {
18159 return dld_link ();
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171 $as_echo "$ac_try_echo") >&5
18172   (eval "$ac_link") 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } && {
18179          test -z "$ac_c_werror_flag" ||
18180          test ! -s conftest.err
18181        } && test -s conftest$ac_exeext && {
18182          test "$cross_compiling" = yes ||
18183          $as_test_x conftest$ac_exeext
18184        }; then
18185   ac_cv_lib_dld_dld_link=yes
18186 else
18187   $as_echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190         ac_cv_lib_dld_dld_link=no
18191 fi
18192
18193 rm -rf conftest.dSYM
18194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18195       conftest$ac_exeext conftest.$ac_ext
18196 LIBS=$ac_check_lib_save_LIBS
18197 fi
18198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18199 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18200 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
18201   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18202 fi
18203
18204
18205 fi
18206
18207
18208 fi
18209
18210
18211 fi
18212
18213
18214 fi
18215
18216
18217 fi
18218
18219     ;;
18220   esac
18221
18222   if test "x$lt_cv_dlopen" != xno; then
18223     enable_dlopen=yes
18224   else
18225     enable_dlopen=no
18226   fi
18227
18228   case $lt_cv_dlopen in
18229   dlopen)
18230     save_CPPFLAGS="$CPPFLAGS"
18231     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18232
18233     save_LDFLAGS="$LDFLAGS"
18234     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18235
18236     save_LIBS="$LIBS"
18237     LIBS="$lt_cv_dlopen_libs $LIBS"
18238
18239     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18240 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18241 if test "${lt_cv_dlopen_self+set}" = set; then
18242   $as_echo_n "(cached) " >&6
18243 else
18244           if test "$cross_compiling" = yes; then :
18245   lt_cv_dlopen_self=cross
18246 else
18247   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18248   lt_status=$lt_dlunknown
18249   cat > conftest.$ac_ext <<_LT_EOF
18250 #line 18250 "configure"
18251 #include "confdefs.h"
18252
18253 #if HAVE_DLFCN_H
18254 #include <dlfcn.h>
18255 #endif
18256
18257 #include <stdio.h>
18258
18259 #ifdef RTLD_GLOBAL
18260 #  define LT_DLGLOBAL           RTLD_GLOBAL
18261 #else
18262 #  ifdef DL_GLOBAL
18263 #    define LT_DLGLOBAL         DL_GLOBAL
18264 #  else
18265 #    define LT_DLGLOBAL         0
18266 #  endif
18267 #endif
18268
18269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18270    find out it does not work in some platform. */
18271 #ifndef LT_DLLAZY_OR_NOW
18272 #  ifdef RTLD_LAZY
18273 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18274 #  else
18275 #    ifdef DL_LAZY
18276 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18277 #    else
18278 #      ifdef RTLD_NOW
18279 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18280 #      else
18281 #        ifdef DL_NOW
18282 #          define LT_DLLAZY_OR_NOW      DL_NOW
18283 #        else
18284 #          define LT_DLLAZY_OR_NOW      0
18285 #        endif
18286 #      endif
18287 #    endif
18288 #  endif
18289 #endif
18290
18291 #ifdef __cplusplus
18292 extern "C" void exit (int);
18293 #endif
18294
18295 void fnord() { int i=42;}
18296 int main ()
18297 {
18298   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18299   int status = $lt_dlunknown;
18300
18301   if (self)
18302     {
18303       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18304       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18305       /* dlclose (self); */
18306     }
18307   else
18308     puts (dlerror ());
18309
18310     exit (status);
18311 }
18312 _LT_EOF
18313   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18314   (eval $ac_link) 2>&5
18315   ac_status=$?
18316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18318     (./conftest; exit; ) >&5 2>/dev/null
18319     lt_status=$?
18320     case x$lt_status in
18321       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18322       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18323       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18324     esac
18325   else :
18326     # compilation failed
18327     lt_cv_dlopen_self=no
18328   fi
18329 fi
18330 rm -fr conftest*
18331
18332
18333 fi
18334 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18335 $as_echo "$lt_cv_dlopen_self" >&6; }
18336
18337     if test "x$lt_cv_dlopen_self" = xyes; then
18338       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18339       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18340 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18341 if test "${lt_cv_dlopen_self_static+set}" = set; then
18342   $as_echo_n "(cached) " >&6
18343 else
18344           if test "$cross_compiling" = yes; then :
18345   lt_cv_dlopen_self_static=cross
18346 else
18347   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18348   lt_status=$lt_dlunknown
18349   cat > conftest.$ac_ext <<_LT_EOF
18350 #line 18350 "configure"
18351 #include "confdefs.h"
18352
18353 #if HAVE_DLFCN_H
18354 #include <dlfcn.h>
18355 #endif
18356
18357 #include <stdio.h>
18358
18359 #ifdef RTLD_GLOBAL
18360 #  define LT_DLGLOBAL           RTLD_GLOBAL
18361 #else
18362 #  ifdef DL_GLOBAL
18363 #    define LT_DLGLOBAL         DL_GLOBAL
18364 #  else
18365 #    define LT_DLGLOBAL         0
18366 #  endif
18367 #endif
18368
18369 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18370    find out it does not work in some platform. */
18371 #ifndef LT_DLLAZY_OR_NOW
18372 #  ifdef RTLD_LAZY
18373 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18374 #  else
18375 #    ifdef DL_LAZY
18376 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18377 #    else
18378 #      ifdef RTLD_NOW
18379 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18380 #      else
18381 #        ifdef DL_NOW
18382 #          define LT_DLLAZY_OR_NOW      DL_NOW
18383 #        else
18384 #          define LT_DLLAZY_OR_NOW      0
18385 #        endif
18386 #      endif
18387 #    endif
18388 #  endif
18389 #endif
18390
18391 #ifdef __cplusplus
18392 extern "C" void exit (int);
18393 #endif
18394
18395 void fnord() { int i=42;}
18396 int main ()
18397 {
18398   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18399   int status = $lt_dlunknown;
18400
18401   if (self)
18402     {
18403       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18404       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18405       /* dlclose (self); */
18406     }
18407   else
18408     puts (dlerror ());
18409
18410     exit (status);
18411 }
18412 _LT_EOF
18413   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18414   (eval $ac_link) 2>&5
18415   ac_status=$?
18416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18418     (./conftest; exit; ) >&5 2>/dev/null
18419     lt_status=$?
18420     case x$lt_status in
18421       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18422       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18423       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18424     esac
18425   else :
18426     # compilation failed
18427     lt_cv_dlopen_self_static=no
18428   fi
18429 fi
18430 rm -fr conftest*
18431
18432
18433 fi
18434 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18435 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18436     fi
18437
18438     CPPFLAGS="$save_CPPFLAGS"
18439     LDFLAGS="$save_LDFLAGS"
18440     LIBS="$save_LIBS"
18441     ;;
18442   esac
18443
18444   case $lt_cv_dlopen_self in
18445   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18446   *) enable_dlopen_self=unknown ;;
18447   esac
18448
18449   case $lt_cv_dlopen_self_static in
18450   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18451   *) enable_dlopen_self_static=unknown ;;
18452   esac
18453 fi
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471 striplib=
18472 old_striplib=
18473 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18474 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18475 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18476   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18477   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18478   { $as_echo "$as_me:$LINENO: result: yes" >&5
18479 $as_echo "yes" >&6; }
18480 else
18481 # FIXME - insert some real tests, host_os isn't really good enough
18482   case $host_os in
18483   darwin*)
18484     if test -n "$STRIP" ; then
18485       striplib="$STRIP -x"
18486       old_striplib="$STRIP -S"
18487       { $as_echo "$as_me:$LINENO: result: yes" >&5
18488 $as_echo "yes" >&6; }
18489     else
18490       { $as_echo "$as_me:$LINENO: result: no" >&5
18491 $as_echo "no" >&6; }
18492     fi
18493     ;;
18494   *)
18495     { $as_echo "$as_me:$LINENO: result: no" >&5
18496 $as_echo "no" >&6; }
18497     ;;
18498   esac
18499 fi
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512   # Report which library types will actually be built
18513   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18514 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18515   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
18516 $as_echo "$can_build_shared" >&6; }
18517
18518   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18519 $as_echo_n "checking whether to build shared libraries... " >&6; }
18520   test "$can_build_shared" = "no" && enable_shared=no
18521
18522   # On AIX, shared libraries and static libraries use the same namespace, and
18523   # are all built from PIC.
18524   case $host_os in
18525   aix3*)
18526     test "$enable_shared" = yes && enable_static=no
18527     if test -n "$RANLIB"; then
18528       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18529       postinstall_cmds='$RANLIB $lib'
18530     fi
18531     ;;
18532
18533   aix[4-9]*)
18534     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18535       test "$enable_shared" = yes && enable_static=no
18536     fi
18537     ;;
18538   esac
18539   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
18540 $as_echo "$enable_shared" >&6; }
18541
18542   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18543 $as_echo_n "checking whether to build static libraries... " >&6; }
18544   # Make sure either enable_shared or enable_static is yes.
18545   test "$enable_shared" = yes || enable_static=yes
18546   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
18547 $as_echo "$enable_static" >&6; }
18548
18549
18550
18551
18552 fi
18553 ac_ext=c
18554 ac_cpp='$CPP $CPPFLAGS'
18555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18558
18559 CC="$lt_save_CC"
18560
18561
18562 ac_ext=cpp
18563 ac_cpp='$CXXCPP $CPPFLAGS'
18564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18567
18568 archive_cmds_need_lc_CXX=no
18569 allow_undefined_flag_CXX=
18570 always_export_symbols_CXX=no
18571 archive_expsym_cmds_CXX=
18572 compiler_needs_object_CXX=no
18573 export_dynamic_flag_spec_CXX=
18574 hardcode_direct_CXX=no
18575 hardcode_direct_absolute_CXX=no
18576 hardcode_libdir_flag_spec_CXX=
18577 hardcode_libdir_flag_spec_ld_CXX=
18578 hardcode_libdir_separator_CXX=
18579 hardcode_minus_L_CXX=no
18580 hardcode_shlibpath_var_CXX=unsupported
18581 hardcode_automatic_CXX=no
18582 inherit_rpath_CXX=no
18583 module_cmds_CXX=
18584 module_expsym_cmds_CXX=
18585 link_all_deplibs_CXX=unknown
18586 old_archive_cmds_CXX=$old_archive_cmds
18587 no_undefined_flag_CXX=
18588 whole_archive_flag_spec_CXX=
18589 enable_shared_with_static_runtimes_CXX=no
18590
18591 # Source file extension for C++ test sources.
18592 ac_ext=cpp
18593
18594 # Object file extension for compiled C++ test sources.
18595 objext=o
18596 objext_CXX=$objext
18597
18598 # No sense in running all these tests if we already determined that
18599 # the CXX compiler isn't working.  Some variables (like enable_shared)
18600 # are currently assumed to apply to all compilers on this platform,
18601 # and will be corrupted by setting them based on a non-working compiler.
18602 if test "$_lt_caught_CXX_error" != yes; then
18603   # Code to be used in simple compile tests
18604   lt_simple_compile_test_code="int some_variable = 0;"
18605
18606   # Code to be used in simple link tests
18607   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18608
18609   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18610
18611
18612
18613
18614
18615
18616 # If no C compiler was specified, use CC.
18617 LTCC=${LTCC-"$CC"}
18618
18619 # If no C compiler flags were specified, use CFLAGS.
18620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18621
18622 # Allow CC to be a program name with arguments.
18623 compiler=$CC
18624
18625
18626   # save warnings/boilerplate of simple test code
18627   ac_outfile=conftest.$ac_objext
18628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18630 _lt_compiler_boilerplate=`cat conftest.err`
18631 $RM conftest*
18632
18633   ac_outfile=conftest.$ac_objext
18634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18636 _lt_linker_boilerplate=`cat conftest.err`
18637 $RM -r conftest*
18638
18639
18640   # Allow CC to be a program name with arguments.
18641   lt_save_CC=$CC
18642   lt_save_LD=$LD
18643   lt_save_GCC=$GCC
18644   GCC=$GXX
18645   lt_save_with_gnu_ld=$with_gnu_ld
18646   lt_save_path_LD=$lt_cv_path_LD
18647   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18648     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18649   else
18650     $as_unset lt_cv_prog_gnu_ld
18651   fi
18652   if test -n "${lt_cv_path_LDCXX+set}"; then
18653     lt_cv_path_LD=$lt_cv_path_LDCXX
18654   else
18655     $as_unset lt_cv_path_LD
18656   fi
18657   test -z "${LDCXX+set}" || LD=$LDCXX
18658   CC=${CXX-"c++"}
18659   compiler=$CC
18660   compiler_CXX=$CC
18661   for cc_temp in $compiler""; do
18662   case $cc_temp in
18663     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18664     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18665     \-*) ;;
18666     *) break;;
18667   esac
18668 done
18669 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18670
18671
18672   if test -n "$compiler"; then
18673     # We don't want -fno-exception when compiling C++ code, so set the
18674     # no_builtin_flag separately
18675     if test "$GXX" = yes; then
18676       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18677     else
18678       lt_prog_compiler_no_builtin_flag_CXX=
18679     fi
18680
18681     if test "$GXX" = yes; then
18682       # Set up default GNU C++ configuration
18683
18684
18685
18686 # Check whether --with-gnu-ld was given.
18687 if test "${with_gnu_ld+set}" = set; then
18688   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18689 else
18690   with_gnu_ld=no
18691 fi
18692
18693 ac_prog=ld
18694 if test "$GCC" = yes; then
18695   # Check if gcc -print-prog-name=ld gives a path.
18696   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18697 $as_echo_n "checking for ld used by $CC... " >&6; }
18698   case $host in
18699   *-*-mingw*)
18700     # gcc leaves a trailing carriage return which upsets mingw
18701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18702   *)
18703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18704   esac
18705   case $ac_prog in
18706     # Accept absolute paths.
18707     [\\/]* | ?:[\\/]*)
18708       re_direlt='/[^/][^/]*/\.\./'
18709       # Canonicalize the pathname of ld
18710       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18711       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18712         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18713       done
18714       test -z "$LD" && LD="$ac_prog"
18715       ;;
18716   "")
18717     # If it fails, then pretend we aren't using GCC.
18718     ac_prog=ld
18719     ;;
18720   *)
18721     # If it is relative, then search for the first ld in PATH.
18722     with_gnu_ld=unknown
18723     ;;
18724   esac
18725 elif test "$with_gnu_ld" = yes; then
18726   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18727 $as_echo_n "checking for GNU ld... " >&6; }
18728 else
18729   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18730 $as_echo_n "checking for non-GNU ld... " >&6; }
18731 fi
18732 if test "${lt_cv_path_LD+set}" = set; then
18733   $as_echo_n "(cached) " >&6
18734 else
18735   if test -z "$LD"; then
18736   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18737   for ac_dir in $PATH; do
18738     IFS="$lt_save_ifs"
18739     test -z "$ac_dir" && ac_dir=.
18740     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18741       lt_cv_path_LD="$ac_dir/$ac_prog"
18742       # Check to see if the program is GNU ld.  I'd rather use --version,
18743       # but apparently some variants of GNU ld only accept -v.
18744       # Break only if it was the GNU/non-GNU ld that we prefer.
18745       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18746       *GNU* | *'with BFD'*)
18747         test "$with_gnu_ld" != no && break
18748         ;;
18749       *)
18750         test "$with_gnu_ld" != yes && break
18751         ;;
18752       esac
18753     fi
18754   done
18755   IFS="$lt_save_ifs"
18756 else
18757   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18758 fi
18759 fi
18760
18761 LD="$lt_cv_path_LD"
18762 if test -n "$LD"; then
18763   { $as_echo "$as_me:$LINENO: result: $LD" >&5
18764 $as_echo "$LD" >&6; }
18765 else
18766   { $as_echo "$as_me:$LINENO: result: no" >&5
18767 $as_echo "no" >&6; }
18768 fi
18769 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18770 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18771    { (exit 1); exit 1; }; }
18772 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18774 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18775   $as_echo_n "(cached) " >&6
18776 else
18777   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18778 case `$LD -v 2>&1 </dev/null` in
18779 *GNU* | *'with BFD'*)
18780   lt_cv_prog_gnu_ld=yes
18781   ;;
18782 *)
18783   lt_cv_prog_gnu_ld=no
18784   ;;
18785 esac
18786 fi
18787 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18789 with_gnu_ld=$lt_cv_prog_gnu_ld
18790
18791
18792
18793
18794
18795
18796
18797       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18798       # archiving commands below assume that GNU ld is being used.
18799       if test "$with_gnu_ld" = yes; then
18800         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18801         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18802
18803         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18804         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18805
18806         # If archive_cmds runs LD, not CC, wlarc should be empty
18807         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18808         #     investigate it a little bit more. (MM)
18809         wlarc='${wl}'
18810
18811         # ancient GNU ld didn't support --whole-archive et. al.
18812         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18813           $GREP 'no-whole-archive' > /dev/null; then
18814           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18815         else
18816           whole_archive_flag_spec_CXX=
18817         fi
18818       else
18819         with_gnu_ld=no
18820         wlarc=
18821
18822         # A generic and very simple default shared library creation
18823         # command for GNU C++ for the case where it uses the native
18824         # linker, instead of GNU ld.  If possible, this setting should
18825         # overridden to take advantage of the native linker features on
18826         # the platform it is being used on.
18827         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18828       fi
18829
18830       # Commands to make compiler produce verbose output that lists
18831       # what "hidden" libraries, object files and flags are used when
18832       # linking a shared library.
18833       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18834
18835     else
18836       GXX=no
18837       with_gnu_ld=no
18838       wlarc=
18839     fi
18840
18841     # PORTME: fill in a description of your system's C++ link characteristics
18842     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18844     ld_shlibs_CXX=yes
18845     case $host_os in
18846       aix3*)
18847         # FIXME: insert proper C++ library support
18848         ld_shlibs_CXX=no
18849         ;;
18850       aix[4-9]*)
18851         if test "$host_cpu" = ia64; then
18852           # On IA64, the linker does run time linking by default, so we don't
18853           # have to do anything special.
18854           aix_use_runtimelinking=no
18855           exp_sym_flag='-Bexport'
18856           no_entry_flag=""
18857         else
18858           aix_use_runtimelinking=no
18859
18860           # Test if we are trying to use run time linking or normal
18861           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18862           # need to do runtime linking.
18863           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18864             for ld_flag in $LDFLAGS; do
18865               case $ld_flag in
18866               *-brtl*)
18867                 aix_use_runtimelinking=yes
18868                 break
18869                 ;;
18870               esac
18871             done
18872             ;;
18873           esac
18874
18875           exp_sym_flag='-bexport'
18876           no_entry_flag='-bnoentry'
18877         fi
18878
18879         # When large executables or shared objects are built, AIX ld can
18880         # have problems creating the table of contents.  If linking a library
18881         # or program results in "error TOC overflow" add -mminimal-toc to
18882         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18883         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18884
18885         archive_cmds_CXX=''
18886         hardcode_direct_CXX=yes
18887         hardcode_direct_absolute_CXX=yes
18888         hardcode_libdir_separator_CXX=':'
18889         link_all_deplibs_CXX=yes
18890         file_list_spec_CXX='${wl}-f,'
18891
18892         if test "$GXX" = yes; then
18893           case $host_os in aix4.[012]|aix4.[012].*)
18894           # We only want to do this on AIX 4.2 and lower, the check
18895           # below for broken collect2 doesn't work under 4.3+
18896           collect2name=`${CC} -print-prog-name=collect2`
18897           if test -f "$collect2name" &&
18898              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18899           then
18900             # We have reworked collect2
18901             :
18902           else
18903             # We have old collect2
18904             hardcode_direct_CXX=unsupported
18905             # It fails to find uninstalled libraries when the uninstalled
18906             # path is not listed in the libpath.  Setting hardcode_minus_L
18907             # to unsupported forces relinking
18908             hardcode_minus_L_CXX=yes
18909             hardcode_libdir_flag_spec_CXX='-L$libdir'
18910             hardcode_libdir_separator_CXX=
18911           fi
18912           esac
18913           shared_flag='-shared'
18914           if test "$aix_use_runtimelinking" = yes; then
18915             shared_flag="$shared_flag "'${wl}-G'
18916           fi
18917         else
18918           # not using gcc
18919           if test "$host_cpu" = ia64; then
18920           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18921           # chokes on -Wl,-G. The following line is correct:
18922           shared_flag='-G'
18923           else
18924             if test "$aix_use_runtimelinking" = yes; then
18925               shared_flag='${wl}-G'
18926             else
18927               shared_flag='${wl}-bM:SRE'
18928             fi
18929           fi
18930         fi
18931
18932         # It seems that -bexpall does not export symbols beginning with
18933         # underscore (_), so it is better to generate a list of symbols to
18934         # export.
18935         always_export_symbols_CXX=yes
18936         if test "$aix_use_runtimelinking" = yes; then
18937           # Warning - without using the other runtime loading flags (-brtl),
18938           # -berok will link without error, but may produce a broken library.
18939           allow_undefined_flag_CXX='-berok'
18940           # Determine the default libpath from the value encoded in an empty
18941           # executable.
18942           cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948
18949 int
18950 main ()
18951 {
18952
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961   *) ac_try_echo=$ac_try;;
18962 esac
18963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964 $as_echo "$ac_try_echo") >&5
18965   (eval "$ac_link") 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } && {
18972          test -z "$ac_cxx_werror_flag" ||
18973          test ! -s conftest.err
18974        } && test -s conftest$ac_exeext && {
18975          test "$cross_compiling" = yes ||
18976          $as_test_x conftest$ac_exeext
18977        }; then
18978
18979 lt_aix_libpath_sed='
18980     /Import File Strings/,/^$/ {
18981         /^0/ {
18982             s/^0  *\(.*\)$/\1/
18983             p
18984         }
18985     }'
18986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18987 # Check for a 64-bit object if we didn't find anything.
18988 if test -z "$aix_libpath"; then
18989   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18990 fi
18991 else
18992   $as_echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995
18996 fi
18997
18998 rm -rf conftest.dSYM
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000       conftest$ac_exeext conftest.$ac_ext
19001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19002
19003           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19004
19005           archive_expsym_cmds_CXX='$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"
19006         else
19007           if test "$host_cpu" = ia64; then
19008             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19009             allow_undefined_flag_CXX="-z nodefs"
19010             archive_expsym_cmds_CXX="\$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"
19011           else
19012             # Determine the default libpath from the value encoded in an
19013             # empty executable.
19014             cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020
19021 int
19022 main ()
19023 {
19024
19025   ;
19026   return 0;
19027 }
19028 _ACEOF
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (ac_try="$ac_link"
19031 case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19036 $as_echo "$ac_try_echo") >&5
19037   (eval "$ac_link") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } && {
19044          test -z "$ac_cxx_werror_flag" ||
19045          test ! -s conftest.err
19046        } && test -s conftest$ac_exeext && {
19047          test "$cross_compiling" = yes ||
19048          $as_test_x conftest$ac_exeext
19049        }; then
19050
19051 lt_aix_libpath_sed='
19052     /Import File Strings/,/^$/ {
19053         /^0/ {
19054             s/^0  *\(.*\)$/\1/
19055             p
19056         }
19057     }'
19058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19059 # Check for a 64-bit object if we didn't find anything.
19060 if test -z "$aix_libpath"; then
19061   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19062 fi
19063 else
19064   $as_echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067
19068 fi
19069
19070 rm -rf conftest.dSYM
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072       conftest$ac_exeext conftest.$ac_ext
19073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19074
19075             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19076             # Warning - without using the other run time loading flags,
19077             # -berok will link without error, but may produce a broken library.
19078             no_undefined_flag_CXX=' ${wl}-bernotok'
19079             allow_undefined_flag_CXX=' ${wl}-berok'
19080             # Exported symbols can be pulled into shared objects from archives
19081             whole_archive_flag_spec_CXX='$convenience'
19082             archive_cmds_need_lc_CXX=yes
19083             # This is similar to how AIX traditionally builds its shared
19084             # libraries.
19085             archive_expsym_cmds_CXX="\$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'
19086           fi
19087         fi
19088         ;;
19089
19090       beos*)
19091         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19092           allow_undefined_flag_CXX=unsupported
19093           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19094           # support --undefined.  This deserves some investigation.  FIXME
19095           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19096         else
19097           ld_shlibs_CXX=no
19098         fi
19099         ;;
19100
19101       chorus*)
19102         case $cc_basename in
19103           *)
19104           # FIXME: insert proper C++ library support
19105           ld_shlibs_CXX=no
19106           ;;
19107         esac
19108         ;;
19109
19110       cygwin* | mingw* | pw32*)
19111         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19112         # as there is no search path for DLLs.
19113         hardcode_libdir_flag_spec_CXX='-L$libdir'
19114         allow_undefined_flag_CXX=unsupported
19115         always_export_symbols_CXX=no
19116         enable_shared_with_static_runtimes_CXX=yes
19117
19118         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19119           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19120           # If the export-symbols file already is a .def file (1st line
19121           # is EXPORTS), use it as is; otherwise, prepend...
19122           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19123             cp $export_symbols $output_objdir/$soname.def;
19124           else
19125             echo EXPORTS > $output_objdir/$soname.def;
19126             cat $export_symbols >> $output_objdir/$soname.def;
19127           fi~
19128           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19129         else
19130           ld_shlibs_CXX=no
19131         fi
19132         ;;
19133       darwin* | rhapsody*)
19134
19135
19136   archive_cmds_need_lc_CXX=no
19137   hardcode_direct_CXX=no
19138   hardcode_automatic_CXX=yes
19139   hardcode_shlibpath_var_CXX=unsupported
19140   whole_archive_flag_spec_CXX=''
19141   link_all_deplibs_CXX=yes
19142   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19143   if test "$GCC" = "yes"; then
19144     output_verbose_link_cmd=echo
19145     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19146     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19147     archive_expsym_cmds_CXX="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}"
19148     module_expsym_cmds_CXX="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}"
19149        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19150       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19151       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19152     fi
19153
19154   else
19155   ld_shlibs_CXX=no
19156   fi
19157
19158         ;;
19159
19160       dgux*)
19161         case $cc_basename in
19162           ec++*)
19163             # FIXME: insert proper C++ library support
19164             ld_shlibs_CXX=no
19165             ;;
19166           ghcx*)
19167             # Green Hills C++ Compiler
19168             # FIXME: insert proper C++ library support
19169             ld_shlibs_CXX=no
19170             ;;
19171           *)
19172             # FIXME: insert proper C++ library support
19173             ld_shlibs_CXX=no
19174             ;;
19175         esac
19176         ;;
19177
19178       freebsd[12]*)
19179         # C++ shared libraries reported to be fairly broken before
19180         # switch to ELF
19181         ld_shlibs_CXX=no
19182         ;;
19183
19184       freebsd-elf*)
19185         archive_cmds_need_lc_CXX=no
19186         ;;
19187
19188       freebsd* | dragonfly*)
19189         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19190         # conventions
19191         ld_shlibs_CXX=yes
19192         ;;
19193
19194       gnu*)
19195         ;;
19196
19197       hpux9*)
19198         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19199         hardcode_libdir_separator_CXX=:
19200         export_dynamic_flag_spec_CXX='${wl}-E'
19201         hardcode_direct_CXX=yes
19202         hardcode_minus_L_CXX=yes # Not in the search PATH,
19203                                              # but as the default
19204                                              # location of the library.
19205
19206         case $cc_basename in
19207           CC*)
19208             # FIXME: insert proper C++ library support
19209             ld_shlibs_CXX=no
19210             ;;
19211           aCC*)
19212             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19213             # Commands to make compiler produce verbose output that lists
19214             # what "hidden" libraries, object files and flags are used when
19215             # linking a shared library.
19216             #
19217             # There doesn't appear to be a way to prevent this compiler from
19218             # explicitly linking system object files so we need to strip them
19219             # from the output so that they don't get included in the library
19220             # dependencies.
19221             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19222             ;;
19223           *)
19224             if test "$GXX" = yes; then
19225               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19226             else
19227               # FIXME: insert proper C++ library support
19228               ld_shlibs_CXX=no
19229             fi
19230             ;;
19231         esac
19232         ;;
19233
19234       hpux10*|hpux11*)
19235         if test $with_gnu_ld = no; then
19236           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19237           hardcode_libdir_separator_CXX=:
19238
19239           case $host_cpu in
19240             hppa*64*|ia64*)
19241               ;;
19242             *)
19243               export_dynamic_flag_spec_CXX='${wl}-E'
19244               ;;
19245           esac
19246         fi
19247         case $host_cpu in
19248           hppa*64*|ia64*)
19249             hardcode_direct_CXX=no
19250             hardcode_shlibpath_var_CXX=no
19251             ;;
19252           *)
19253             hardcode_direct_CXX=yes
19254             hardcode_direct_absolute_CXX=yes
19255             hardcode_minus_L_CXX=yes # Not in the search PATH,
19256                                                  # but as the default
19257                                                  # location of the library.
19258             ;;
19259         esac
19260
19261         case $cc_basename in
19262           CC*)
19263             # FIXME: insert proper C++ library support
19264             ld_shlibs_CXX=no
19265             ;;
19266           aCC*)
19267             case $host_cpu in
19268               hppa*64*)
19269                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19270                 ;;
19271               ia64*)
19272                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19273                 ;;
19274               *)
19275                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19276                 ;;
19277             esac
19278             # Commands to make compiler produce verbose output that lists
19279             # what "hidden" libraries, object files and flags are used when
19280             # linking a shared library.
19281             #
19282             # There doesn't appear to be a way to prevent this compiler from
19283             # explicitly linking system object files so we need to strip them
19284             # from the output so that they don't get included in the library
19285             # dependencies.
19286             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19287             ;;
19288           *)
19289             if test "$GXX" = yes; then
19290               if test $with_gnu_ld = no; then
19291                 case $host_cpu in
19292                   hppa*64*)
19293                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19294                     ;;
19295                   ia64*)
19296                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19297                     ;;
19298                   *)
19299                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19300                     ;;
19301                 esac
19302               fi
19303             else
19304               # FIXME: insert proper C++ library support
19305               ld_shlibs_CXX=no
19306             fi
19307             ;;
19308         esac
19309         ;;
19310
19311       interix[3-9]*)
19312         hardcode_direct_CXX=no
19313         hardcode_shlibpath_var_CXX=no
19314         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19315         export_dynamic_flag_spec_CXX='${wl}-E'
19316         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19317         # Instead, shared libraries are loaded at an image base (0x10000000 by
19318         # default) and relocated if they conflict, which is a slow very memory
19319         # consuming and fragmenting process.  To avoid this, we pick a random,
19320         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19321         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19322         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19323         archive_expsym_cmds_CXX='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'
19324         ;;
19325       irix5* | irix6*)
19326         case $cc_basename in
19327           CC*)
19328             # SGI C++
19329             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19330
19331             # Archives containing C++ object files must be created using
19332             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19333             # necessary to make sure instantiated templates are included
19334             # in the archive.
19335             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19336             ;;
19337           *)
19338             if test "$GXX" = yes; then
19339               if test "$with_gnu_ld" = no; then
19340                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
19341               else
19342                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
19343               fi
19344             fi
19345             link_all_deplibs_CXX=yes
19346             ;;
19347         esac
19348         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19349         hardcode_libdir_separator_CXX=:
19350         inherit_rpath_CXX=yes
19351         ;;
19352
19353       linux* | k*bsd*-gnu)
19354         case $cc_basename in
19355           KCC*)
19356             # Kuck and Associates, Inc. (KAI) C++ Compiler
19357
19358             # KCC will only create a shared library if the output file
19359             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19360             # to its proper name (with version) after linking.
19361             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19362             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19363             # Commands to make compiler produce verbose output that lists
19364             # what "hidden" libraries, object files and flags are used when
19365             # linking a shared library.
19366             #
19367             # There doesn't appear to be a way to prevent this compiler from
19368             # explicitly linking system object files so we need to strip them
19369             # from the output so that they don't get included in the library
19370             # dependencies.
19371             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19372
19373             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19374             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19375
19376             # Archives containing C++ object files must be created using
19377             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19378             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19379             ;;
19380           icpc* | ecpc* )
19381             # Intel C++
19382             with_gnu_ld=yes
19383             # version 8.0 and above of icpc choke on multiply defined symbols
19384             # if we add $predep_objects and $postdep_objects, however 7.1 and
19385             # earlier do not add the objects themselves.
19386             case `$CC -V 2>&1` in
19387               *"Version 7."*)
19388                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19390                 ;;
19391               *)  # Version 8.0 or newer
19392                 tmp_idyn=
19393                 case $host_cpu in
19394                   ia64*) tmp_idyn=' -i_dynamic';;
19395                 esac
19396                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19398                 ;;
19399             esac
19400             archive_cmds_need_lc_CXX=no
19401             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19402             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19403             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19404             ;;
19405           pgCC* | pgcpp*)
19406             # Portland Group C++ compiler
19407             case `$CC -V` in
19408             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
19409               prelink_cmds_CXX='tpldir=Template.dir~
19410                 rm -rf $tpldir~
19411                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19412                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19413               old_archive_cmds_CXX='tpldir=Template.dir~
19414                 rm -rf $tpldir~
19415                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19416                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19417                 $RANLIB $oldlib'
19418               archive_cmds_CXX='tpldir=Template.dir~
19419                 rm -rf $tpldir~
19420                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19421                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19422               archive_expsym_cmds_CXX='tpldir=Template.dir~
19423                 rm -rf $tpldir~
19424                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19425                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19426               ;;
19427             *) # Version 6 will use weak symbols
19428               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19429               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19430               ;;
19431             esac
19432
19433             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19434             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19436             ;;
19437           cxx*)
19438             # Compaq C++
19439             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19440             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19441
19442             runpath_var=LD_RUN_PATH
19443             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19444             hardcode_libdir_separator_CXX=:
19445
19446             # Commands to make compiler produce verbose output that lists
19447             # what "hidden" libraries, object files and flags are used when
19448             # linking a shared library.
19449             #
19450             # There doesn't appear to be a way to prevent this compiler from
19451             # explicitly linking system object files so we need to strip them
19452             # from the output so that they don't get included in the library
19453             # dependencies.
19454             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19455             ;;
19456           xl*)
19457             # IBM XL 8.0 on PPC, with GNU ld
19458             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19459             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19460             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19461             if test "x$supports_anon_versioning" = xyes; then
19462               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19463                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19464                 echo "local: *; };" >> $output_objdir/$libname.ver~
19465                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19466             fi
19467             ;;
19468           *)
19469             case `$CC -V 2>&1 | sed 5q` in
19470             *Sun\ C*)
19471               # Sun C++ 5.9
19472               no_undefined_flag_CXX=' -zdefs'
19473               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19474               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19475               hardcode_libdir_flag_spec_CXX='-R$libdir'
19476               whole_archive_flag_spec_CXX='${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'
19477               compiler_needs_object_CXX=yes
19478
19479               # Not sure whether something based on
19480               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19481               # would be better.
19482               output_verbose_link_cmd='echo'
19483
19484               # Archives containing C++ object files must be created using
19485               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19486               # necessary to make sure instantiated templates are included
19487               # in the archive.
19488               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19489               ;;
19490             esac
19491             ;;
19492         esac
19493         ;;
19494
19495       lynxos*)
19496         # FIXME: insert proper C++ library support
19497         ld_shlibs_CXX=no
19498         ;;
19499
19500       m88k*)
19501         # FIXME: insert proper C++ library support
19502         ld_shlibs_CXX=no
19503         ;;
19504
19505       mvs*)
19506         case $cc_basename in
19507           cxx*)
19508             # FIXME: insert proper C++ library support
19509             ld_shlibs_CXX=no
19510             ;;
19511           *)
19512             # FIXME: insert proper C++ library support
19513             ld_shlibs_CXX=no
19514             ;;
19515         esac
19516         ;;
19517
19518       netbsd*)
19519         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19520           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19521           wlarc=
19522           hardcode_libdir_flag_spec_CXX='-R$libdir'
19523           hardcode_direct_CXX=yes
19524           hardcode_shlibpath_var_CXX=no
19525         fi
19526         # Workaround some broken pre-1.5 toolchains
19527         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19528         ;;
19529
19530       *nto* | *qnx*)
19531         ld_shlibs_CXX=yes
19532         ;;
19533
19534       openbsd2*)
19535         # C++ shared libraries are fairly broken
19536         ld_shlibs_CXX=no
19537         ;;
19538
19539       openbsd*)
19540         if test -f /usr/libexec/ld.so; then
19541           hardcode_direct_CXX=yes
19542           hardcode_shlibpath_var_CXX=no
19543           hardcode_direct_absolute_CXX=yes
19544           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19545           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19546           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19547             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19548             export_dynamic_flag_spec_CXX='${wl}-E'
19549             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19550           fi
19551           output_verbose_link_cmd=echo
19552         else
19553           ld_shlibs_CXX=no
19554         fi
19555         ;;
19556
19557       osf3* | osf4* | osf5*)
19558         case $cc_basename in
19559           KCC*)
19560             # Kuck and Associates, Inc. (KAI) C++ Compiler
19561
19562             # KCC will only create a shared library if the output file
19563             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19564             # to its proper name (with version) after linking.
19565             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19566
19567             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19568             hardcode_libdir_separator_CXX=:
19569
19570             # Archives containing C++ object files must be created using
19571             # the KAI C++ compiler.
19572             case $host in
19573               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19574               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19575             esac
19576             ;;
19577           RCC*)
19578             # Rational C++ 2.4.1
19579             # FIXME: insert proper C++ library support
19580             ld_shlibs_CXX=no
19581             ;;
19582           cxx*)
19583             case $host in
19584               osf3*)
19585                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19586                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19587                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19588                 ;;
19589               *)
19590                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19591                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19592                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19593                   echo "-hidden">> $lib.exp~
19594                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
19595                   $RM $lib.exp'
19596                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19597                 ;;
19598             esac
19599
19600             hardcode_libdir_separator_CXX=:
19601
19602             # Commands to make compiler produce verbose output that lists
19603             # what "hidden" libraries, object files and flags are used when
19604             # linking a shared library.
19605             #
19606             # There doesn't appear to be a way to prevent this compiler from
19607             # explicitly linking system object files so we need to strip them
19608             # from the output so that they don't get included in the library
19609             # dependencies.
19610             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19611             ;;
19612           *)
19613             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19614               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19615               case $host in
19616                 osf3*)
19617                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19618                   ;;
19619                 *)
19620                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19621                   ;;
19622               esac
19623
19624               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19625               hardcode_libdir_separator_CXX=:
19626
19627               # Commands to make compiler produce verbose output that lists
19628               # what "hidden" libraries, object files and flags are used when
19629               # linking a shared library.
19630               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19631
19632             else
19633               # FIXME: insert proper C++ library support
19634               ld_shlibs_CXX=no
19635             fi
19636             ;;
19637         esac
19638         ;;
19639
19640       psos*)
19641         # FIXME: insert proper C++ library support
19642         ld_shlibs_CXX=no
19643         ;;
19644
19645       sunos4*)
19646         case $cc_basename in
19647           CC*)
19648             # Sun C++ 4.x
19649             # FIXME: insert proper C++ library support
19650             ld_shlibs_CXX=no
19651             ;;
19652           lcc*)
19653             # Lucid
19654             # FIXME: insert proper C++ library support
19655             ld_shlibs_CXX=no
19656             ;;
19657           *)
19658             # FIXME: insert proper C++ library support
19659             ld_shlibs_CXX=no
19660             ;;
19661         esac
19662         ;;
19663
19664       solaris*)
19665         case $cc_basename in
19666           CC*)
19667             # Sun C++ 4.2, 5.x and Centerline C++
19668             archive_cmds_need_lc_CXX=yes
19669             no_undefined_flag_CXX=' -zdefs'
19670             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19671             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19672               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19673
19674             hardcode_libdir_flag_spec_CXX='-R$libdir'
19675             hardcode_shlibpath_var_CXX=no
19676             case $host_os in
19677               solaris2.[0-5] | solaris2.[0-5].*) ;;
19678               *)
19679                 # The compiler driver will combine and reorder linker options,
19680                 # but understands `-z linker_flag'.
19681                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19682                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19683                 ;;
19684             esac
19685             link_all_deplibs_CXX=yes
19686
19687             output_verbose_link_cmd='echo'
19688
19689             # Archives containing C++ object files must be created using
19690             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19691             # necessary to make sure instantiated templates are included
19692             # in the archive.
19693             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19694             ;;
19695           gcx*)
19696             # Green Hills C++ Compiler
19697             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19698
19699             # The C++ compiler must be used to create the archive.
19700             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19701             ;;
19702           *)
19703             # GNU C++ compiler with Solaris linker
19704             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19705               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19706               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19707                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19708                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19709                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19710
19711                 # Commands to make compiler produce verbose output that lists
19712                 # what "hidden" libraries, object files and flags are used when
19713                 # linking a shared library.
19714                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19715               else
19716                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19717                 # platform.
19718                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19719                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19720                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19721
19722                 # Commands to make compiler produce verbose output that lists
19723                 # what "hidden" libraries, object files and flags are used when
19724                 # linking a shared library.
19725                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19726               fi
19727
19728               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19729               case $host_os in
19730                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19731                 *)
19732                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19733                   ;;
19734               esac
19735             fi
19736             ;;
19737         esac
19738         ;;
19739
19740     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19741       no_undefined_flag_CXX='${wl}-z,text'
19742       archive_cmds_need_lc_CXX=no
19743       hardcode_shlibpath_var_CXX=no
19744       runpath_var='LD_RUN_PATH'
19745
19746       case $cc_basename in
19747         CC*)
19748           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19749           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19750           ;;
19751         *)
19752           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19753           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19754           ;;
19755       esac
19756       ;;
19757
19758       sysv5* | sco3.2v5* | sco5v6*)
19759         # Note: We can NOT use -z defs as we might desire, because we do not
19760         # link with -lc, and that would cause any symbols used from libc to
19761         # always be unresolved, which means just about no library would
19762         # ever link correctly.  If we're not using GNU ld we use -z text
19763         # though, which does catch some bad symbols but isn't as heavy-handed
19764         # as -z defs.
19765         no_undefined_flag_CXX='${wl}-z,text'
19766         allow_undefined_flag_CXX='${wl}-z,nodefs'
19767         archive_cmds_need_lc_CXX=no
19768         hardcode_shlibpath_var_CXX=no
19769         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19770         hardcode_libdir_separator_CXX=':'
19771         link_all_deplibs_CXX=yes
19772         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19773         runpath_var='LD_RUN_PATH'
19774
19775         case $cc_basename in
19776           CC*)
19777             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19778             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19779             ;;
19780           *)
19781             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19782             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19783             ;;
19784         esac
19785       ;;
19786
19787       tandem*)
19788         case $cc_basename in
19789           NCC*)
19790             # NonStop-UX NCC 3.20
19791             # FIXME: insert proper C++ library support
19792             ld_shlibs_CXX=no
19793             ;;
19794           *)
19795             # FIXME: insert proper C++ library support
19796             ld_shlibs_CXX=no
19797             ;;
19798         esac
19799         ;;
19800
19801       vxworks*)
19802         # FIXME: insert proper C++ library support
19803         ld_shlibs_CXX=no
19804         ;;
19805
19806       *)
19807         # FIXME: insert proper C++ library support
19808         ld_shlibs_CXX=no
19809         ;;
19810     esac
19811
19812     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19813 $as_echo "$ld_shlibs_CXX" >&6; }
19814     test "$ld_shlibs_CXX" = no && can_build_shared=no
19815
19816     GCC_CXX="$GXX"
19817     LD_CXX="$LD"
19818
19819     ## CAVEAT EMPTOR:
19820     ## There is no encapsulation within the following macros, do not change
19821     ## the running order or otherwise move them around unless you know exactly
19822     ## what you are doing...
19823     # Dependencies to place before and after the object being linked:
19824 predep_objects_CXX=
19825 postdep_objects_CXX=
19826 predeps_CXX=
19827 postdeps_CXX=
19828 compiler_lib_search_path_CXX=
19829
19830 cat > conftest.$ac_ext <<_LT_EOF
19831 class Foo
19832 {
19833 public:
19834   Foo (void) { a = 0; }
19835 private:
19836   int a;
19837 };
19838 _LT_EOF
19839
19840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841   (eval $ac_compile) 2>&5
19842   ac_status=$?
19843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; then
19845   # Parse the compiler output and extract the necessary
19846   # objects, libraries and library flags.
19847
19848   # Sentinel used to keep track of whether or not we are before
19849   # the conftest object file.
19850   pre_test_object_deps_done=no
19851
19852   for p in `eval "$output_verbose_link_cmd"`; do
19853     case $p in
19854
19855     -L* | -R* | -l*)
19856        # Some compilers place space between "-{L,R}" and the path.
19857        # Remove the space.
19858        if test $p = "-L" ||
19859           test $p = "-R"; then
19860          prev=$p
19861          continue
19862        else
19863          prev=
19864        fi
19865
19866        if test "$pre_test_object_deps_done" = no; then
19867          case $p in
19868          -L* | -R*)
19869            # Internal compiler library paths should come after those
19870            # provided the user.  The postdeps already come after the
19871            # user supplied libs so there is no need to process them.
19872            if test -z "$compiler_lib_search_path_CXX"; then
19873              compiler_lib_search_path_CXX="${prev}${p}"
19874            else
19875              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19876            fi
19877            ;;
19878          # The "-l" case would never come before the object being
19879          # linked, so don't bother handling this case.
19880          esac
19881        else
19882          if test -z "$postdeps_CXX"; then
19883            postdeps_CXX="${prev}${p}"
19884          else
19885            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19886          fi
19887        fi
19888        ;;
19889
19890     *.$objext)
19891        # This assumes that the test object file only shows up
19892        # once in the compiler output.
19893        if test "$p" = "conftest.$objext"; then
19894          pre_test_object_deps_done=yes
19895          continue
19896        fi
19897
19898        if test "$pre_test_object_deps_done" = no; then
19899          if test -z "$predep_objects_CXX"; then
19900            predep_objects_CXX="$p"
19901          else
19902            predep_objects_CXX="$predep_objects_CXX $p"
19903          fi
19904        else
19905          if test -z "$postdep_objects_CXX"; then
19906            postdep_objects_CXX="$p"
19907          else
19908            postdep_objects_CXX="$postdep_objects_CXX $p"
19909          fi
19910        fi
19911        ;;
19912
19913     *) ;; # Ignore the rest.
19914
19915     esac
19916   done
19917
19918   # Clean up.
19919   rm -f a.out a.exe
19920 else
19921   echo "libtool.m4: error: problem compiling CXX test program"
19922 fi
19923
19924 $RM -f confest.$objext
19925
19926 # PORTME: override above test on systems where it is broken
19927 case $host_os in
19928 interix[3-9]*)
19929   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19930   # hack all around it, let's just trust "g++" to DTRT.
19931   predep_objects_CXX=
19932   postdep_objects_CXX=
19933   postdeps_CXX=
19934   ;;
19935
19936 linux*)
19937   case `$CC -V 2>&1 | sed 5q` in
19938   *Sun\ C*)
19939     # Sun C++ 5.9
19940
19941     # The more standards-conforming stlport4 library is
19942     # incompatible with the Cstd library. Avoid specifying
19943     # it if it's in CXXFLAGS. Ignore libCrun as
19944     # -library=stlport4 depends on it.
19945     case " $CXX $CXXFLAGS " in
19946     *" -library=stlport4 "*)
19947       solaris_use_stlport4=yes
19948       ;;
19949     esac
19950
19951     if test "$solaris_use_stlport4" != yes; then
19952       postdeps_CXX='-library=Cstd -library=Crun'
19953     fi
19954     ;;
19955   esac
19956   ;;
19957
19958 solaris*)
19959   case $cc_basename in
19960   CC*)
19961     # The more standards-conforming stlport4 library is
19962     # incompatible with the Cstd library. Avoid specifying
19963     # it if it's in CXXFLAGS. Ignore libCrun as
19964     # -library=stlport4 depends on it.
19965     case " $CXX $CXXFLAGS " in
19966     *" -library=stlport4 "*)
19967       solaris_use_stlport4=yes
19968       ;;
19969     esac
19970
19971     # Adding this requires a known-good setup of shared libraries for
19972     # Sun compiler versions before 5.6, else PIC objects from an old
19973     # archive will be linked into the output, leading to subtle bugs.
19974     if test "$solaris_use_stlport4" != yes; then
19975       postdeps_CXX='-library=Cstd -library=Crun'
19976     fi
19977     ;;
19978   esac
19979   ;;
19980 esac
19981
19982
19983 case " $postdeps_CXX " in
19984 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19985 esac
19986  compiler_lib_search_dirs_CXX=
19987 if test -n "${compiler_lib_search_path_CXX}"; then
19988  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19989 fi
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021     lt_prog_compiler_wl_CXX=
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX=
20024
20025 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20026 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20027
20028   # C++ specific cases for pic, static, wl, etc.
20029   if test "$GXX" = yes; then
20030     lt_prog_compiler_wl_CXX='-Wl,'
20031     lt_prog_compiler_static_CXX='-static'
20032
20033     case $host_os in
20034     aix*)
20035       # All AIX code is PIC.
20036       if test "$host_cpu" = ia64; then
20037         # AIX 5 now supports IA64 processor
20038         lt_prog_compiler_static_CXX='-Bstatic'
20039       fi
20040       ;;
20041     amigaos*)
20042       if test "$host_cpu" = m68k; then
20043         # FIXME: we need at least 68020 code to build shared libraries, but
20044         # adding the `-m68020' flag to GCC prevents building anything better,
20045         # like `-m68040'.
20046         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20047       fi
20048       ;;
20049     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20050       # PIC is the default for these OSes.
20051       ;;
20052     mingw* | cygwin* | os2* | pw32*)
20053       # This hack is so that the source file can tell whether it is being
20054       # built for inclusion in a dll (and should export symbols for example).
20055       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20056       # (--disable-auto-import) libraries
20057       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20058       ;;
20059     darwin* | rhapsody*)
20060       # PIC is the default on this platform
20061       # Common symbols not allowed in MH_DYLIB files
20062       lt_prog_compiler_pic_CXX='-fno-common'
20063       ;;
20064     *djgpp*)
20065       # DJGPP does not support shared libraries at all
20066       lt_prog_compiler_pic_CXX=
20067       ;;
20068     interix[3-9]*)
20069       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20070       # Instead, we relocate shared libraries at runtime.
20071       ;;
20072     sysv4*MP*)
20073       if test -d /usr/nec; then
20074         lt_prog_compiler_pic_CXX=-Kconform_pic
20075       fi
20076       ;;
20077     hpux*)
20078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20079       # not for PA HP-UX.
20080       case $host_cpu in
20081       hppa*64*|ia64*)
20082         ;;
20083       *)
20084         lt_prog_compiler_pic_CXX='-fPIC'
20085         ;;
20086       esac
20087       ;;
20088     *qnx* | *nto*)
20089       # QNX uses GNU C++, but need to define -shared option too, otherwise
20090       # it will coredump.
20091       lt_prog_compiler_pic_CXX='-fPIC -shared'
20092       ;;
20093     *)
20094       lt_prog_compiler_pic_CXX='-fPIC'
20095       ;;
20096     esac
20097   else
20098     case $host_os in
20099       aix[4-9]*)
20100         # All AIX code is PIC.
20101         if test "$host_cpu" = ia64; then
20102           # AIX 5 now supports IA64 processor
20103           lt_prog_compiler_static_CXX='-Bstatic'
20104         else
20105           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20106         fi
20107         ;;
20108       chorus*)
20109         case $cc_basename in
20110         cxch68*)
20111           # Green Hills C++ Compiler
20112           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20113           ;;
20114         esac
20115         ;;
20116       dgux*)
20117         case $cc_basename in
20118           ec++*)
20119             lt_prog_compiler_pic_CXX='-KPIC'
20120             ;;
20121           ghcx*)
20122             # Green Hills C++ Compiler
20123             lt_prog_compiler_pic_CXX='-pic'
20124             ;;
20125           *)
20126             ;;
20127         esac
20128         ;;
20129       freebsd* | dragonfly*)
20130         # FreeBSD uses GNU C++
20131         ;;
20132       hpux9* | hpux10* | hpux11*)
20133         case $cc_basename in
20134           CC*)
20135             lt_prog_compiler_wl_CXX='-Wl,'
20136             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20137             if test "$host_cpu" != ia64; then
20138               lt_prog_compiler_pic_CXX='+Z'
20139             fi
20140             ;;
20141           aCC*)
20142             lt_prog_compiler_wl_CXX='-Wl,'
20143             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20144             case $host_cpu in
20145             hppa*64*|ia64*)
20146               # +Z the default
20147               ;;
20148             *)
20149               lt_prog_compiler_pic_CXX='+Z'
20150               ;;
20151             esac
20152             ;;
20153           *)
20154             ;;
20155         esac
20156         ;;
20157       interix*)
20158         # This is c89, which is MS Visual C++ (no shared libs)
20159         # Anyone wants to do a port?
20160         ;;
20161       irix5* | irix6* | nonstopux*)
20162         case $cc_basename in
20163           CC*)
20164             lt_prog_compiler_wl_CXX='-Wl,'
20165             lt_prog_compiler_static_CXX='-non_shared'
20166             # CC pic flag -KPIC is the default.
20167             ;;
20168           *)
20169             ;;
20170         esac
20171         ;;
20172       linux* | k*bsd*-gnu)
20173         case $cc_basename in
20174           KCC*)
20175             # KAI C++ Compiler
20176             lt_prog_compiler_wl_CXX='--backend -Wl,'
20177             lt_prog_compiler_pic_CXX='-fPIC'
20178             ;;
20179           icpc* | ecpc* )
20180             # Intel C++
20181             lt_prog_compiler_wl_CXX='-Wl,'
20182             lt_prog_compiler_pic_CXX='-KPIC'
20183             lt_prog_compiler_static_CXX='-static'
20184             ;;
20185           pgCC* | pgcpp*)
20186             # Portland Group C++ compiler
20187             lt_prog_compiler_wl_CXX='-Wl,'
20188             lt_prog_compiler_pic_CXX='-fpic'
20189             lt_prog_compiler_static_CXX='-Bstatic'
20190             ;;
20191           cxx*)
20192             # Compaq C++
20193             # Make sure the PIC flag is empty.  It appears that all Alpha
20194             # Linux and Compaq Tru64 Unix objects are PIC.
20195             lt_prog_compiler_pic_CXX=
20196             lt_prog_compiler_static_CXX='-non_shared'
20197             ;;
20198           xlc* | xlC*)
20199             # IBM XL 8.0 on PPC
20200             lt_prog_compiler_wl_CXX='-Wl,'
20201             lt_prog_compiler_pic_CXX='-qpic'
20202             lt_prog_compiler_static_CXX='-qstaticlink'
20203             ;;
20204           *)
20205             case `$CC -V 2>&1 | sed 5q` in
20206             *Sun\ C*)
20207               # Sun C++ 5.9
20208               lt_prog_compiler_pic_CXX='-KPIC'
20209               lt_prog_compiler_static_CXX='-Bstatic'
20210               lt_prog_compiler_wl_CXX='-Qoption ld '
20211               ;;
20212             esac
20213             ;;
20214         esac
20215         ;;
20216       lynxos*)
20217         ;;
20218       m88k*)
20219         ;;
20220       mvs*)
20221         case $cc_basename in
20222           cxx*)
20223             lt_prog_compiler_pic_CXX='-W c,exportall'
20224             ;;
20225           *)
20226             ;;
20227         esac
20228         ;;
20229       netbsd*)
20230         ;;
20231       *qnx* | *nto*)
20232         # QNX uses GNU C++, but need to define -shared option too, otherwise
20233         # it will coredump.
20234         lt_prog_compiler_pic_CXX='-fPIC -shared'
20235         ;;
20236       osf3* | osf4* | osf5*)
20237         case $cc_basename in
20238           KCC*)
20239             lt_prog_compiler_wl_CXX='--backend -Wl,'
20240             ;;
20241           RCC*)
20242             # Rational C++ 2.4.1
20243             lt_prog_compiler_pic_CXX='-pic'
20244             ;;
20245           cxx*)
20246             # Digital/Compaq C++
20247             lt_prog_compiler_wl_CXX='-Wl,'
20248             # Make sure the PIC flag is empty.  It appears that all Alpha
20249             # Linux and Compaq Tru64 Unix objects are PIC.
20250             lt_prog_compiler_pic_CXX=
20251             lt_prog_compiler_static_CXX='-non_shared'
20252             ;;
20253           *)
20254             ;;
20255         esac
20256         ;;
20257       psos*)
20258         ;;
20259       solaris*)
20260         case $cc_basename in
20261           CC*)
20262             # Sun C++ 4.2, 5.x and Centerline C++
20263             lt_prog_compiler_pic_CXX='-KPIC'
20264             lt_prog_compiler_static_CXX='-Bstatic'
20265             lt_prog_compiler_wl_CXX='-Qoption ld '
20266             ;;
20267           gcx*)
20268             # Green Hills C++ Compiler
20269             lt_prog_compiler_pic_CXX='-PIC'
20270             ;;
20271           *)
20272             ;;
20273         esac
20274         ;;
20275       sunos4*)
20276         case $cc_basename in
20277           CC*)
20278             # Sun C++ 4.x
20279             lt_prog_compiler_pic_CXX='-pic'
20280             lt_prog_compiler_static_CXX='-Bstatic'
20281             ;;
20282           lcc*)
20283             # Lucid
20284             lt_prog_compiler_pic_CXX='-pic'
20285             ;;
20286           *)
20287             ;;
20288         esac
20289         ;;
20290       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20291         case $cc_basename in
20292           CC*)
20293             lt_prog_compiler_wl_CXX='-Wl,'
20294             lt_prog_compiler_pic_CXX='-KPIC'
20295             lt_prog_compiler_static_CXX='-Bstatic'
20296             ;;
20297         esac
20298         ;;
20299       tandem*)
20300         case $cc_basename in
20301           NCC*)
20302             # NonStop-UX NCC 3.20
20303             lt_prog_compiler_pic_CXX='-KPIC'
20304             ;;
20305           *)
20306             ;;
20307         esac
20308         ;;
20309       vxworks*)
20310         ;;
20311       *)
20312         lt_prog_compiler_can_build_shared_CXX=no
20313         ;;
20314     esac
20315   fi
20316
20317 case $host_os in
20318   # For platforms which do not support PIC, -DPIC is meaningless:
20319   *djgpp*)
20320     lt_prog_compiler_pic_CXX=
20321     ;;
20322   *)
20323     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20324     ;;
20325 esac
20326 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20327 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20328
20329
20330
20331 #
20332 # Check to make sure the PIC flag actually works.
20333 #
20334 if test -n "$lt_prog_compiler_pic_CXX"; then
20335   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20336 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20337 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
20338   $as_echo_n "(cached) " >&6
20339 else
20340   lt_cv_prog_compiler_pic_works_CXX=no
20341    ac_outfile=conftest.$ac_objext
20342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20343    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20344    # Insert the option either (1) after the last *FLAGS variable, or
20345    # (2) before a word containing "conftest.", or (3) at the end.
20346    # Note that $ac_compile itself does not contain backslashes and begins
20347    # with a dollar sign (not a hyphen), so the echo should work correctly.
20348    # The option is referenced via a variable to avoid confusing sed.
20349    lt_compile=`echo "$ac_compile" | $SED \
20350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352    -e 's:$: $lt_compiler_flag:'`
20353    (eval echo "\"\$as_me:20353: $lt_compile\"" >&5)
20354    (eval "$lt_compile" 2>conftest.err)
20355    ac_status=$?
20356    cat conftest.err >&5
20357    echo "$as_me:20357: \$? = $ac_status" >&5
20358    if (exit $ac_status) && test -s "$ac_outfile"; then
20359      # The compiler can only warn and ignore the option if not recognized
20360      # So say no if there are warnings other than the usual output.
20361      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20362      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20363      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20364        lt_cv_prog_compiler_pic_works_CXX=yes
20365      fi
20366    fi
20367    $RM conftest*
20368
20369 fi
20370 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20371 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20372
20373 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20374     case $lt_prog_compiler_pic_CXX in
20375      "" | " "*) ;;
20376      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20377      esac
20378 else
20379     lt_prog_compiler_pic_CXX=
20380      lt_prog_compiler_can_build_shared_CXX=no
20381 fi
20382
20383 fi
20384
20385
20386
20387 #
20388 # Check to make sure the static flag actually works.
20389 #
20390 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20391 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20392 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20393 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20394   $as_echo_n "(cached) " >&6
20395 else
20396   lt_cv_prog_compiler_static_works_CXX=no
20397    save_LDFLAGS="$LDFLAGS"
20398    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20399    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20400    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20401      # The linker can only warn and ignore the option if not recognized
20402      # So say no if there are warnings
20403      if test -s conftest.err; then
20404        # Append any errors to the config.log.
20405        cat conftest.err 1>&5
20406        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20407        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20408        if diff conftest.exp conftest.er2 >/dev/null; then
20409          lt_cv_prog_compiler_static_works_CXX=yes
20410        fi
20411      else
20412        lt_cv_prog_compiler_static_works_CXX=yes
20413      fi
20414    fi
20415    $RM -r conftest*
20416    LDFLAGS="$save_LDFLAGS"
20417
20418 fi
20419 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20420 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20421
20422 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20423     :
20424 else
20425     lt_prog_compiler_static_CXX=
20426 fi
20427
20428
20429
20430
20431     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20432 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20433 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20434   $as_echo_n "(cached) " >&6
20435 else
20436   lt_cv_prog_compiler_c_o_CXX=no
20437    $RM -r conftest 2>/dev/null
20438    mkdir conftest
20439    cd conftest
20440    mkdir out
20441    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20442
20443    lt_compiler_flag="-o out/conftest2.$ac_objext"
20444    # Insert the option either (1) after the last *FLAGS variable, or
20445    # (2) before a word containing "conftest.", or (3) at the end.
20446    # Note that $ac_compile itself does not contain backslashes and begins
20447    # with a dollar sign (not a hyphen), so the echo should work correctly.
20448    lt_compile=`echo "$ac_compile" | $SED \
20449    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20451    -e 's:$: $lt_compiler_flag:'`
20452    (eval echo "\"\$as_me:20452: $lt_compile\"" >&5)
20453    (eval "$lt_compile" 2>out/conftest.err)
20454    ac_status=$?
20455    cat out/conftest.err >&5
20456    echo "$as_me:20456: \$? = $ac_status" >&5
20457    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20458    then
20459      # The compiler can only warn and ignore the option if not recognized
20460      # So say no if there are warnings
20461      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20462      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20463      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20464        lt_cv_prog_compiler_c_o_CXX=yes
20465      fi
20466    fi
20467    chmod u+w . 2>&5
20468    $RM conftest*
20469    # SGI C++ compiler will create directory out/ii_files/ for
20470    # template instantiation
20471    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20472    $RM out/* && rmdir out
20473    cd ..
20474    $RM -r conftest
20475    $RM conftest*
20476
20477 fi
20478 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20479 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20480
20481
20482
20483     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20485 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20486   $as_echo_n "(cached) " >&6
20487 else
20488   lt_cv_prog_compiler_c_o_CXX=no
20489    $RM -r conftest 2>/dev/null
20490    mkdir conftest
20491    cd conftest
20492    mkdir out
20493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20494
20495    lt_compiler_flag="-o out/conftest2.$ac_objext"
20496    # Insert the option either (1) after the last *FLAGS variable, or
20497    # (2) before a word containing "conftest.", or (3) at the end.
20498    # Note that $ac_compile itself does not contain backslashes and begins
20499    # with a dollar sign (not a hyphen), so the echo should work correctly.
20500    lt_compile=`echo "$ac_compile" | $SED \
20501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20503    -e 's:$: $lt_compiler_flag:'`
20504    (eval echo "\"\$as_me:20504: $lt_compile\"" >&5)
20505    (eval "$lt_compile" 2>out/conftest.err)
20506    ac_status=$?
20507    cat out/conftest.err >&5
20508    echo "$as_me:20508: \$? = $ac_status" >&5
20509    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20510    then
20511      # The compiler can only warn and ignore the option if not recognized
20512      # So say no if there are warnings
20513      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20514      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20515      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20516        lt_cv_prog_compiler_c_o_CXX=yes
20517      fi
20518    fi
20519    chmod u+w . 2>&5
20520    $RM conftest*
20521    # SGI C++ compiler will create directory out/ii_files/ for
20522    # template instantiation
20523    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20524    $RM out/* && rmdir out
20525    cd ..
20526    $RM -r conftest
20527    $RM conftest*
20528
20529 fi
20530 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20531 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20532
20533
20534
20535
20536 hard_links="nottested"
20537 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20538   # do not overwrite the value of need_locks provided by the user
20539   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20540 $as_echo_n "checking if we can lock with hard links... " >&6; }
20541   hard_links=yes
20542   $RM conftest*
20543   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20544   touch conftest.a
20545   ln conftest.a conftest.b 2>&5 || hard_links=no
20546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20547   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
20548 $as_echo "$hard_links" >&6; }
20549   if test "$hard_links" = no; then
20550     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20551 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20552     need_locks=warn
20553   fi
20554 else
20555   need_locks=no
20556 fi
20557
20558
20559
20560     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20562
20563   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20564   case $host_os in
20565   aix[4-9]*)
20566     # If we're using GNU nm, then we don't want the "-C" option.
20567     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20568     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20569       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20570     else
20571       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20572     fi
20573     ;;
20574   pw32*)
20575     export_symbols_cmds_CXX="$ltdll_cmds"
20576   ;;
20577   cygwin* | mingw*)
20578     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20579   ;;
20580   *)
20581     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20582   ;;
20583   esac
20584   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20585
20586 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20587 $as_echo "$ld_shlibs_CXX" >&6; }
20588 test "$ld_shlibs_CXX" = no && can_build_shared=no
20589
20590 with_gnu_ld_CXX=$with_gnu_ld
20591
20592
20593
20594
20595
20596
20597 #
20598 # Do we need to explicitly link libc?
20599 #
20600 case "x$archive_cmds_need_lc_CXX" in
20601 x|xyes)
20602   # Assume -lc should be added
20603   archive_cmds_need_lc_CXX=yes
20604
20605   if test "$enable_shared" = yes && test "$GCC" = yes; then
20606     case $archive_cmds_CXX in
20607     *'~'*)
20608       # FIXME: we may have to deal with multi-command sequences.
20609       ;;
20610     '$CC '*)
20611       # Test whether the compiler implicitly links with -lc since on some
20612       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20613       # to ld, don't add -lc before -lgcc.
20614       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20615 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20616       $RM conftest*
20617       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20618
20619       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20620   (eval $ac_compile) 2>&5
20621   ac_status=$?
20622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } 2>conftest.err; then
20624         soname=conftest
20625         lib=conftest
20626         libobjs=conftest.$ac_objext
20627         deplibs=
20628         wl=$lt_prog_compiler_wl_CXX
20629         pic_flag=$lt_prog_compiler_pic_CXX
20630         compiler_flags=-v
20631         linker_flags=-v
20632         verstring=
20633         output_objdir=.
20634         libname=conftest
20635         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20636         allow_undefined_flag_CXX=
20637         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
20638   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20639   ac_status=$?
20640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }
20642         then
20643           archive_cmds_need_lc_CXX=no
20644         else
20645           archive_cmds_need_lc_CXX=yes
20646         fi
20647         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20648       else
20649         cat conftest.err 1>&5
20650       fi
20651       $RM conftest*
20652       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20653 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
20654       ;;
20655     esac
20656   fi
20657   ;;
20658 esac
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20725
20726 library_names_spec=
20727 libname_spec='lib$name'
20728 soname_spec=
20729 shrext_cmds=".so"
20730 postinstall_cmds=
20731 postuninstall_cmds=
20732 finish_cmds=
20733 finish_eval=
20734 shlibpath_var=
20735 shlibpath_overrides_runpath=unknown
20736 version_type=none
20737 dynamic_linker="$host_os ld.so"
20738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20739 need_lib_prefix=unknown
20740 hardcode_into_libs=no
20741
20742 # when you set need_version to no, make sure it does not cause -set_version
20743 # flags to be left without arguments
20744 need_version=unknown
20745
20746 case $host_os in
20747 aix3*)
20748   version_type=linux
20749   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20750   shlibpath_var=LIBPATH
20751
20752   # AIX 3 has no versioning support, so we append a major version to the name.
20753   soname_spec='${libname}${release}${shared_ext}$major'
20754   ;;
20755
20756 aix[4-9]*)
20757   version_type=linux
20758   need_lib_prefix=no
20759   need_version=no
20760   hardcode_into_libs=yes
20761   if test "$host_cpu" = ia64; then
20762     # AIX 5 supports IA64
20763     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20764     shlibpath_var=LD_LIBRARY_PATH
20765   else
20766     # With GCC up to 2.95.x, collect2 would create an import file
20767     # for dependence libraries.  The import file would start with
20768     # the line `#! .'.  This would cause the generated library to
20769     # depend on `.', always an invalid library.  This was fixed in
20770     # development snapshots of GCC prior to 3.0.
20771     case $host_os in
20772       aix4 | aix4.[01] | aix4.[01].*)
20773       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20774            echo ' yes '
20775            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20776         :
20777       else
20778         can_build_shared=no
20779       fi
20780       ;;
20781     esac
20782     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20783     # soname into executable. Probably we can add versioning support to
20784     # collect2, so additional links can be useful in future.
20785     if test "$aix_use_runtimelinking" = yes; then
20786       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20787       # instead of lib<name>.a to let people know that these are not
20788       # typical AIX shared libraries.
20789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790     else
20791       # We preserve .a as extension for shared libraries through AIX4.2
20792       # and later when we are not doing run time linking.
20793       library_names_spec='${libname}${release}.a $libname.a'
20794       soname_spec='${libname}${release}${shared_ext}$major'
20795     fi
20796     shlibpath_var=LIBPATH
20797   fi
20798   ;;
20799
20800 amigaos*)
20801   if test "$host_cpu" = m68k; then
20802     library_names_spec='$libname.ixlibrary $libname.a'
20803     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20804     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'
20805   else
20806     dynamic_linker=no
20807   fi
20808   ;;
20809
20810 beos*)
20811   library_names_spec='${libname}${shared_ext}'
20812   dynamic_linker="$host_os ld.so"
20813   shlibpath_var=LIBRARY_PATH
20814   ;;
20815
20816 bsdi[45]*)
20817   version_type=linux
20818   need_version=no
20819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820   soname_spec='${libname}${release}${shared_ext}$major'
20821   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20822   shlibpath_var=LD_LIBRARY_PATH
20823   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20824   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20825   # the default ld.so.conf also contains /usr/contrib/lib and
20826   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20827   # libtool to hard-code these into programs
20828   ;;
20829
20830 cygwin* | mingw* | pw32*)
20831   version_type=windows
20832   shrext_cmds=".dll"
20833   need_version=no
20834   need_lib_prefix=no
20835
20836   case $GCC,$host_os in
20837   yes,cygwin* | yes,mingw* | yes,pw32*)
20838     library_names_spec='$libname.dll.a'
20839     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20840     postinstall_cmds='base_file=`basename \${file}`~
20841       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20842       dldir=$destdir/`dirname \$dlpath`~
20843       test -d \$dldir || mkdir -p \$dldir~
20844       $install_prog $dir/$dlname \$dldir/$dlname~
20845       chmod a+x \$dldir/$dlname~
20846       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20847         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20848       fi'
20849     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20850       dlpath=$dir/\$dldll~
20851        $RM \$dlpath'
20852     shlibpath_overrides_runpath=yes
20853
20854     case $host_os in
20855     cygwin*)
20856       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20857       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20858       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20859       ;;
20860     mingw*)
20861       # MinGW DLLs use traditional 'lib' prefix
20862       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20863       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20864       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20865         # It is most probably a Windows format PATH printed by
20866         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20867         # path with ; separators, and with drive letters. We can handle the
20868         # drive letters (cygwin fileutils understands them), so leave them,
20869         # especially as we might pass files found there to a mingw objdump,
20870         # which wouldn't understand a cygwinified path. Ahh.
20871         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20872       else
20873         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20874       fi
20875       ;;
20876     pw32*)
20877       # pw32 DLLs use 'pw' prefix rather than 'lib'
20878       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20879       ;;
20880     esac
20881     ;;
20882
20883   *)
20884     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20885     ;;
20886   esac
20887   dynamic_linker='Win32 ld.exe'
20888   # FIXME: first we should search . and the directory the executable is in
20889   shlibpath_var=PATH
20890   ;;
20891
20892 darwin* | rhapsody*)
20893   dynamic_linker="$host_os dyld"
20894   version_type=darwin
20895   need_lib_prefix=no
20896   need_version=no
20897   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20898   soname_spec='${libname}${release}${major}$shared_ext'
20899   shlibpath_overrides_runpath=yes
20900   shlibpath_var=DYLD_LIBRARY_PATH
20901   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20902
20903   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20904   ;;
20905
20906 dgux*)
20907   version_type=linux
20908   need_lib_prefix=no
20909   need_version=no
20910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20911   soname_spec='${libname}${release}${shared_ext}$major'
20912   shlibpath_var=LD_LIBRARY_PATH
20913   ;;
20914
20915 freebsd1*)
20916   dynamic_linker=no
20917   ;;
20918
20919 freebsd* | dragonfly*)
20920   # DragonFly does not have aout.  When/if they implement a new
20921   # versioning mechanism, adjust this.
20922   if test -x /usr/bin/objformat; then
20923     objformat=`/usr/bin/objformat`
20924   else
20925     case $host_os in
20926     freebsd[123]*) objformat=aout ;;
20927     *) objformat=elf ;;
20928     esac
20929   fi
20930   version_type=freebsd-$objformat
20931   case $version_type in
20932     freebsd-elf*)
20933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20934       need_version=no
20935       need_lib_prefix=no
20936       ;;
20937     freebsd-*)
20938       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20939       need_version=yes
20940       ;;
20941   esac
20942   shlibpath_var=LD_LIBRARY_PATH
20943   case $host_os in
20944   freebsd2*)
20945     shlibpath_overrides_runpath=yes
20946     ;;
20947   freebsd3.[01]* | freebsdelf3.[01]*)
20948     shlibpath_overrides_runpath=yes
20949     hardcode_into_libs=yes
20950     ;;
20951   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20952   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20953     shlibpath_overrides_runpath=no
20954     hardcode_into_libs=yes
20955     ;;
20956   *) # from 4.6 on, and DragonFly
20957     shlibpath_overrides_runpath=yes
20958     hardcode_into_libs=yes
20959     ;;
20960   esac
20961   ;;
20962
20963 gnu*)
20964   version_type=linux
20965   need_lib_prefix=no
20966   need_version=no
20967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20968   soname_spec='${libname}${release}${shared_ext}$major'
20969   shlibpath_var=LD_LIBRARY_PATH
20970   hardcode_into_libs=yes
20971   ;;
20972
20973 hpux9* | hpux10* | hpux11*)
20974   # Give a soname corresponding to the major version so that dld.sl refuses to
20975   # link against other versions.
20976   version_type=sunos
20977   need_lib_prefix=no
20978   need_version=no
20979   case $host_cpu in
20980   ia64*)
20981     shrext_cmds='.so'
20982     hardcode_into_libs=yes
20983     dynamic_linker="$host_os dld.so"
20984     shlibpath_var=LD_LIBRARY_PATH
20985     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987     soname_spec='${libname}${release}${shared_ext}$major'
20988     if test "X$HPUX_IA64_MODE" = X32; then
20989       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20990     else
20991       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20992     fi
20993     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20994     ;;
20995   hppa*64*)
20996     shrext_cmds='.sl'
20997     hardcode_into_libs=yes
20998     dynamic_linker="$host_os dld.sl"
20999     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21002     soname_spec='${libname}${release}${shared_ext}$major'
21003     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21004     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21005     ;;
21006   *)
21007     shrext_cmds='.sl'
21008     dynamic_linker="$host_os dld.sl"
21009     shlibpath_var=SHLIB_PATH
21010     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012     soname_spec='${libname}${release}${shared_ext}$major'
21013     ;;
21014   esac
21015   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21016   postinstall_cmds='chmod 555 $lib'
21017   ;;
21018
21019 interix[3-9]*)
21020   version_type=linux
21021   need_lib_prefix=no
21022   need_version=no
21023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21024   soname_spec='${libname}${release}${shared_ext}$major'
21025   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21026   shlibpath_var=LD_LIBRARY_PATH
21027   shlibpath_overrides_runpath=no
21028   hardcode_into_libs=yes
21029   ;;
21030
21031 irix5* | irix6* | nonstopux*)
21032   case $host_os in
21033     nonstopux*) version_type=nonstopux ;;
21034     *)
21035         if test "$lt_cv_prog_gnu_ld" = yes; then
21036                 version_type=linux
21037         else
21038                 version_type=irix
21039         fi ;;
21040   esac
21041   need_lib_prefix=no
21042   need_version=no
21043   soname_spec='${libname}${release}${shared_ext}$major'
21044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21045   case $host_os in
21046   irix5* | nonstopux*)
21047     libsuff= shlibsuff=
21048     ;;
21049   *)
21050     case $LD in # libtool.m4 will add one of these switches to LD
21051     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21052       libsuff= shlibsuff= libmagic=32-bit;;
21053     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21054       libsuff=32 shlibsuff=N32 libmagic=N32;;
21055     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21056       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21057     *) libsuff= shlibsuff= libmagic=never-match;;
21058     esac
21059     ;;
21060   esac
21061   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21062   shlibpath_overrides_runpath=no
21063   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21064   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21065   hardcode_into_libs=yes
21066   ;;
21067
21068 # No shared lib support for Linux oldld, aout, or coff.
21069 linux*oldld* | linux*aout* | linux*coff*)
21070   dynamic_linker=no
21071   ;;
21072
21073 # This must be Linux ELF.
21074 linux* | k*bsd*-gnu)
21075   version_type=linux
21076   need_lib_prefix=no
21077   need_version=no
21078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079   soname_spec='${libname}${release}${shared_ext}$major'
21080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21081   shlibpath_var=LD_LIBRARY_PATH
21082   shlibpath_overrides_runpath=no
21083   # Some binutils ld are patched to set DT_RUNPATH
21084   save_LDFLAGS=$LDFLAGS
21085   save_libdir=$libdir
21086   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21087        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21088   cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094
21095 int
21096 main ()
21097 {
21098
21099   ;
21100   return 0;
21101 }
21102 _ACEOF
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (ac_try="$ac_link"
21105 case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21110 $as_echo "$ac_try_echo") >&5
21111   (eval "$ac_link") 2>conftest.er1
21112   ac_status=$?
21113   grep -v '^ *+' conftest.er1 >conftest.err
21114   rm -f conftest.er1
21115   cat conftest.err >&5
21116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } && {
21118          test -z "$ac_cxx_werror_flag" ||
21119          test ! -s conftest.err
21120        } && test -s conftest$ac_exeext && {
21121          test "$cross_compiling" = yes ||
21122          $as_test_x conftest$ac_exeext
21123        }; then
21124   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
21125   shlibpath_overrides_runpath=yes
21126 fi
21127
21128 else
21129   $as_echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132
21133 fi
21134
21135 rm -rf conftest.dSYM
21136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21137       conftest$ac_exeext conftest.$ac_ext
21138   LDFLAGS=$save_LDFLAGS
21139   libdir=$save_libdir
21140
21141   # This implies no fast_install, which is unacceptable.
21142   # Some rework will be needed to allow for fast_install
21143   # before this can be enabled.
21144   hardcode_into_libs=yes
21145
21146   # Append ld.so.conf contents to the search path
21147   if test -f /etc/ld.so.conf; then
21148     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' ' '`
21149     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21150   fi
21151
21152   # We used to test for /lib/ld.so.1 and disable shared libraries on
21153   # powerpc, because MkLinux only supported shared libraries with the
21154   # GNU dynamic linker.  Since this was broken with cross compilers,
21155   # most powerpc-linux boxes support dynamic linking these days and
21156   # people can always --disable-shared, the test was removed, and we
21157   # assume the GNU/Linux dynamic linker is in use.
21158   dynamic_linker='GNU/Linux ld.so'
21159   ;;
21160
21161 netbsd*)
21162   version_type=sunos
21163   need_lib_prefix=no
21164   need_version=no
21165   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21167     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21168     dynamic_linker='NetBSD (a.out) ld.so'
21169   else
21170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21171     soname_spec='${libname}${release}${shared_ext}$major'
21172     dynamic_linker='NetBSD ld.elf_so'
21173   fi
21174   shlibpath_var=LD_LIBRARY_PATH
21175   shlibpath_overrides_runpath=yes
21176   hardcode_into_libs=yes
21177   ;;
21178
21179 newsos6)
21180   version_type=linux
21181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182   shlibpath_var=LD_LIBRARY_PATH
21183   shlibpath_overrides_runpath=yes
21184   ;;
21185
21186 *nto* | *qnx*)
21187   version_type=qnx
21188   need_lib_prefix=no
21189   need_version=no
21190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21191   soname_spec='${libname}${release}${shared_ext}$major'
21192   shlibpath_var=LD_LIBRARY_PATH
21193   shlibpath_overrides_runpath=no
21194   hardcode_into_libs=yes
21195   dynamic_linker='ldqnx.so'
21196   ;;
21197
21198 openbsd*)
21199   version_type=sunos
21200   sys_lib_dlsearch_path_spec="/usr/lib"
21201   need_lib_prefix=no
21202   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21203   case $host_os in
21204     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21205     *)                          need_version=no  ;;
21206   esac
21207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21209   shlibpath_var=LD_LIBRARY_PATH
21210   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21211     case $host_os in
21212       openbsd2.[89] | openbsd2.[89].*)
21213         shlibpath_overrides_runpath=no
21214         ;;
21215       *)
21216         shlibpath_overrides_runpath=yes
21217         ;;
21218       esac
21219   else
21220     shlibpath_overrides_runpath=yes
21221   fi
21222   ;;
21223
21224 os2*)
21225   libname_spec='$name'
21226   shrext_cmds=".dll"
21227   need_lib_prefix=no
21228   library_names_spec='$libname${shared_ext} $libname.a'
21229   dynamic_linker='OS/2 ld.exe'
21230   shlibpath_var=LIBPATH
21231   ;;
21232
21233 osf3* | osf4* | osf5*)
21234   version_type=osf
21235   need_lib_prefix=no
21236   need_version=no
21237   soname_spec='${libname}${release}${shared_ext}$major'
21238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239   shlibpath_var=LD_LIBRARY_PATH
21240   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21241   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21242   ;;
21243
21244 rdos*)
21245   dynamic_linker=no
21246   ;;
21247
21248 solaris*)
21249   version_type=linux
21250   need_lib_prefix=no
21251   need_version=no
21252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253   soname_spec='${libname}${release}${shared_ext}$major'
21254   shlibpath_var=LD_LIBRARY_PATH
21255   shlibpath_overrides_runpath=yes
21256   hardcode_into_libs=yes
21257   # ldd complains unless libraries are executable
21258   postinstall_cmds='chmod +x $lib'
21259   ;;
21260
21261 sunos4*)
21262   version_type=sunos
21263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21264   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21265   shlibpath_var=LD_LIBRARY_PATH
21266   shlibpath_overrides_runpath=yes
21267   if test "$with_gnu_ld" = yes; then
21268     need_lib_prefix=no
21269   fi
21270   need_version=yes
21271   ;;
21272
21273 sysv4 | sysv4.3*)
21274   version_type=linux
21275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276   soname_spec='${libname}${release}${shared_ext}$major'
21277   shlibpath_var=LD_LIBRARY_PATH
21278   case $host_vendor in
21279     sni)
21280       shlibpath_overrides_runpath=no
21281       need_lib_prefix=no
21282       runpath_var=LD_RUN_PATH
21283       ;;
21284     siemens)
21285       need_lib_prefix=no
21286       ;;
21287     motorola)
21288       need_lib_prefix=no
21289       need_version=no
21290       shlibpath_overrides_runpath=no
21291       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21292       ;;
21293   esac
21294   ;;
21295
21296 sysv4*MP*)
21297   if test -d /usr/nec ;then
21298     version_type=linux
21299     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21300     soname_spec='$libname${shared_ext}.$major'
21301     shlibpath_var=LD_LIBRARY_PATH
21302   fi
21303   ;;
21304
21305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21306   version_type=freebsd-elf
21307   need_lib_prefix=no
21308   need_version=no
21309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21310   soname_spec='${libname}${release}${shared_ext}$major'
21311   shlibpath_var=LD_LIBRARY_PATH
21312   shlibpath_overrides_runpath=yes
21313   hardcode_into_libs=yes
21314   if test "$with_gnu_ld" = yes; then
21315     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21316   else
21317     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21318     case $host_os in
21319       sco3.2v5*)
21320         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21321         ;;
21322     esac
21323   fi
21324   sys_lib_dlsearch_path_spec='/usr/lib'
21325   ;;
21326
21327 tpf*)
21328   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21329   version_type=linux
21330   need_lib_prefix=no
21331   need_version=no
21332   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333   shlibpath_var=LD_LIBRARY_PATH
21334   shlibpath_overrides_runpath=no
21335   hardcode_into_libs=yes
21336   ;;
21337
21338 uts4*)
21339   version_type=linux
21340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21341   soname_spec='${libname}${release}${shared_ext}$major'
21342   shlibpath_var=LD_LIBRARY_PATH
21343   ;;
21344
21345 *)
21346   dynamic_linker=no
21347   ;;
21348 esac
21349 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21350 $as_echo "$dynamic_linker" >&6; }
21351 test "$dynamic_linker" = no && can_build_shared=no
21352
21353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21354 if test "$GCC" = yes; then
21355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21356 fi
21357
21358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21359   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21360 fi
21361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21362   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21363 fi
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21402 hardcode_action_CXX=
21403 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21404    test -n "$runpath_var_CXX" ||
21405    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21406
21407   # We can hardcode non-existent directories.
21408   if test "$hardcode_direct_CXX" != no &&
21409      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21410      # have to relink, otherwise we might link with an installed library
21411      # when we should be linking with a yet-to-be-installed one
21412      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21413      test "$hardcode_minus_L_CXX" != no; then
21414     # Linking always hardcodes the temporary library directory.
21415     hardcode_action_CXX=relink
21416   else
21417     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21418     hardcode_action_CXX=immediate
21419   fi
21420 else
21421   # We cannot hardcode anything, or else we can only hardcode existing
21422   # directories.
21423   hardcode_action_CXX=unsupported
21424 fi
21425 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21426 $as_echo "$hardcode_action_CXX" >&6; }
21427
21428 if test "$hardcode_action_CXX" = relink ||
21429    test "$inherit_rpath_CXX" = yes; then
21430   # Fast installation is not supported
21431   enable_fast_install=no
21432 elif test "$shlibpath_overrides_runpath" = yes ||
21433      test "$enable_shared" = no; then
21434   # Fast installation is not necessary
21435   enable_fast_install=needless
21436 fi
21437
21438
21439
21440
21441
21442
21443
21444   fi # test -n "$compiler"
21445
21446   CC=$lt_save_CC
21447   LDCXX=$LD
21448   LD=$lt_save_LD
21449   GCC=$lt_save_GCC
21450   with_gnu_ld=$lt_save_with_gnu_ld
21451   lt_cv_path_LDCXX=$lt_cv_path_LD
21452   lt_cv_path_LD=$lt_save_path_LD
21453   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21454   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21455 fi # test "$_lt_caught_CXX_error" != yes
21456
21457 ac_ext=c
21458 ac_cpp='$CPP $CPPFLAGS'
21459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21462
21463
21464
21465       ac_ext=f
21466 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21467 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21468 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21469
21470
21471 archive_cmds_need_lc_F77=no
21472 allow_undefined_flag_F77=
21473 always_export_symbols_F77=no
21474 archive_expsym_cmds_F77=
21475 export_dynamic_flag_spec_F77=
21476 hardcode_direct_F77=no
21477 hardcode_direct_absolute_F77=no
21478 hardcode_libdir_flag_spec_F77=
21479 hardcode_libdir_flag_spec_ld_F77=
21480 hardcode_libdir_separator_F77=
21481 hardcode_minus_L_F77=no
21482 hardcode_automatic_F77=no
21483 inherit_rpath_F77=no
21484 module_cmds_F77=
21485 module_expsym_cmds_F77=
21486 link_all_deplibs_F77=unknown
21487 old_archive_cmds_F77=$old_archive_cmds
21488 no_undefined_flag_F77=
21489 whole_archive_flag_spec_F77=
21490 enable_shared_with_static_runtimes_F77=no
21491
21492 # Source file extension for f77 test sources.
21493 ac_ext=f
21494
21495 # Object file extension for compiled f77 test sources.
21496 objext=o
21497 objext_F77=$objext
21498
21499 # No sense in running all these tests if we already determined that
21500 # the F77 compiler isn't working.  Some variables (like enable_shared)
21501 # are currently assumed to apply to all compilers on this platform,
21502 # and will be corrupted by setting them based on a non-working compiler.
21503 if test "$_lt_disable_F77" != yes; then
21504   # Code to be used in simple compile tests
21505   lt_simple_compile_test_code="\
21506       subroutine t
21507       return
21508       end
21509 "
21510
21511   # Code to be used in simple link tests
21512   lt_simple_link_test_code="\
21513       program t
21514       end
21515 "
21516
21517   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21518
21519
21520
21521
21522
21523
21524 # If no C compiler was specified, use CC.
21525 LTCC=${LTCC-"$CC"}
21526
21527 # If no C compiler flags were specified, use CFLAGS.
21528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21529
21530 # Allow CC to be a program name with arguments.
21531 compiler=$CC
21532
21533
21534   # save warnings/boilerplate of simple test code
21535   ac_outfile=conftest.$ac_objext
21536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21538 _lt_compiler_boilerplate=`cat conftest.err`
21539 $RM conftest*
21540
21541   ac_outfile=conftest.$ac_objext
21542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21544 _lt_linker_boilerplate=`cat conftest.err`
21545 $RM -r conftest*
21546
21547
21548   # Allow CC to be a program name with arguments.
21549   lt_save_CC="$CC"
21550   lt_save_GCC=$GCC
21551   CC=${F77-"f77"}
21552   compiler=$CC
21553   compiler_F77=$CC
21554   for cc_temp in $compiler""; do
21555   case $cc_temp in
21556     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21557     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21558     \-*) ;;
21559     *) break;;
21560   esac
21561 done
21562 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21563
21564   GCC=$G77
21565   if test -n "$compiler"; then
21566     { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21567 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21568     { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
21569 $as_echo "$can_build_shared" >&6; }
21570
21571     { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21572 $as_echo_n "checking whether to build shared libraries... " >&6; }
21573     test "$can_build_shared" = "no" && enable_shared=no
21574
21575     # On AIX, shared libraries and static libraries use the same namespace, and
21576     # are all built from PIC.
21577     case $host_os in
21578       aix3*)
21579         test "$enable_shared" = yes && enable_static=no
21580         if test -n "$RANLIB"; then
21581           archive_cmds="$archive_cmds~\$RANLIB \$lib"
21582           postinstall_cmds='$RANLIB $lib'
21583         fi
21584         ;;
21585       aix[4-9]*)
21586         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21587           test "$enable_shared" = yes && enable_static=no
21588         fi
21589         ;;
21590     esac
21591     { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
21592 $as_echo "$enable_shared" >&6; }
21593
21594     { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21595 $as_echo_n "checking whether to build static libraries... " >&6; }
21596     # Make sure either enable_shared or enable_static is yes.
21597     test "$enable_shared" = yes || enable_static=yes
21598     { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
21599 $as_echo "$enable_static" >&6; }
21600
21601     GCC_F77="$G77"
21602     LD_F77="$LD"
21603
21604     ## CAVEAT EMPTOR:
21605     ## There is no encapsulation within the following macros, do not change
21606     ## the running order or otherwise move them around unless you know exactly
21607     ## what you are doing...
21608     lt_prog_compiler_wl_F77=
21609 lt_prog_compiler_pic_F77=
21610 lt_prog_compiler_static_F77=
21611
21612 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21613 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21614
21615   if test "$GCC" = yes; then
21616     lt_prog_compiler_wl_F77='-Wl,'
21617     lt_prog_compiler_static_F77='-static'
21618
21619     case $host_os in
21620       aix*)
21621       # All AIX code is PIC.
21622       if test "$host_cpu" = ia64; then
21623         # AIX 5 now supports IA64 processor
21624         lt_prog_compiler_static_F77='-Bstatic'
21625       fi
21626       ;;
21627
21628     amigaos*)
21629       if test "$host_cpu" = m68k; then
21630         # FIXME: we need at least 68020 code to build shared libraries, but
21631         # adding the `-m68020' flag to GCC prevents building anything better,
21632         # like `-m68040'.
21633         lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21634       fi
21635       ;;
21636
21637     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21638       # PIC is the default for these OSes.
21639       ;;
21640
21641     mingw* | cygwin* | pw32* | os2*)
21642       # This hack is so that the source file can tell whether it is being
21643       # built for inclusion in a dll (and should export symbols for example).
21644       # Although the cygwin gcc ignores -fPIC, still need this for old-style
21645       # (--disable-auto-import) libraries
21646       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21647       ;;
21648
21649     darwin* | rhapsody*)
21650       # PIC is the default on this platform
21651       # Common symbols not allowed in MH_DYLIB files
21652       lt_prog_compiler_pic_F77='-fno-common'
21653       ;;
21654
21655     hpux*)
21656       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21657       # not for PA HP-UX.
21658       case $host_cpu in
21659       hppa*64*|ia64*)
21660         # +Z the default
21661         ;;
21662       *)
21663         lt_prog_compiler_pic_F77='-fPIC'
21664         ;;
21665       esac
21666       ;;
21667
21668     interix[3-9]*)
21669       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21670       # Instead, we relocate shared libraries at runtime.
21671       ;;
21672
21673     msdosdjgpp*)
21674       # Just because we use GCC doesn't mean we suddenly get shared libraries
21675       # on systems that don't support them.
21676       lt_prog_compiler_can_build_shared_F77=no
21677       enable_shared=no
21678       ;;
21679
21680     *nto* | *qnx*)
21681       # QNX uses GNU C++, but need to define -shared option too, otherwise
21682       # it will coredump.
21683       lt_prog_compiler_pic_F77='-fPIC -shared'
21684       ;;
21685
21686     sysv4*MP*)
21687       if test -d /usr/nec; then
21688         lt_prog_compiler_pic_F77=-Kconform_pic
21689       fi
21690       ;;
21691
21692     *)
21693       lt_prog_compiler_pic_F77='-fPIC'
21694       ;;
21695     esac
21696   else
21697     # PORTME Check for flag to pass linker flags through the system compiler.
21698     case $host_os in
21699     aix*)
21700       lt_prog_compiler_wl_F77='-Wl,'
21701       if test "$host_cpu" = ia64; then
21702         # AIX 5 now supports IA64 processor
21703         lt_prog_compiler_static_F77='-Bstatic'
21704       else
21705         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21706       fi
21707       ;;
21708
21709     mingw* | cygwin* | pw32* | os2*)
21710       # This hack is so that the source file can tell whether it is being
21711       # built for inclusion in a dll (and should export symbols for example).
21712       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21713       ;;
21714
21715     hpux9* | hpux10* | hpux11*)
21716       lt_prog_compiler_wl_F77='-Wl,'
21717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21718       # not for PA HP-UX.
21719       case $host_cpu in
21720       hppa*64*|ia64*)
21721         # +Z the default
21722         ;;
21723       *)
21724         lt_prog_compiler_pic_F77='+Z'
21725         ;;
21726       esac
21727       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21728       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21729       ;;
21730
21731     irix5* | irix6* | nonstopux*)
21732       lt_prog_compiler_wl_F77='-Wl,'
21733       # PIC (with -KPIC) is the default.
21734       lt_prog_compiler_static_F77='-non_shared'
21735       ;;
21736
21737     linux* | k*bsd*-gnu)
21738       case $cc_basename in
21739       icc* | ecc* | ifort*)
21740         lt_prog_compiler_wl_F77='-Wl,'
21741         lt_prog_compiler_pic_F77='-KPIC'
21742         lt_prog_compiler_static_F77='-static'
21743         ;;
21744       pgcc* | pgf77* | pgf90* | pgf95*)
21745         # Portland Group compilers (*not* the Pentium gcc compiler,
21746         # which looks to be a dead project)
21747         lt_prog_compiler_wl_F77='-Wl,'
21748         lt_prog_compiler_pic_F77='-fpic'
21749         lt_prog_compiler_static_F77='-Bstatic'
21750         ;;
21751       ccc*)
21752         lt_prog_compiler_wl_F77='-Wl,'
21753         # All Alpha code is PIC.
21754         lt_prog_compiler_static_F77='-non_shared'
21755         ;;
21756       xl*)
21757         # IBM XL C 8.0/Fortran 10.1 on PPC
21758         lt_prog_compiler_wl_F77='-Wl,'
21759         lt_prog_compiler_pic_F77='-qpic'
21760         lt_prog_compiler_static_F77='-qstaticlink'
21761         ;;
21762       *)
21763         case `$CC -V 2>&1 | sed 5q` in
21764         *Sun\ C*)
21765           # Sun C 5.9
21766           lt_prog_compiler_pic_F77='-KPIC'
21767           lt_prog_compiler_static_F77='-Bstatic'
21768           lt_prog_compiler_wl_F77='-Wl,'
21769           ;;
21770         *Sun\ F*)
21771           # Sun Fortran 8.3 passes all unrecognized flags to the linker
21772           lt_prog_compiler_pic_F77='-KPIC'
21773           lt_prog_compiler_static_F77='-Bstatic'
21774           lt_prog_compiler_wl_F77=''
21775           ;;
21776         esac
21777         ;;
21778       esac
21779       ;;
21780
21781     newsos6)
21782       lt_prog_compiler_pic_F77='-KPIC'
21783       lt_prog_compiler_static_F77='-Bstatic'
21784       ;;
21785
21786     *nto* | *qnx*)
21787       # QNX uses GNU C++, but need to define -shared option too, otherwise
21788       # it will coredump.
21789       lt_prog_compiler_pic_F77='-fPIC -shared'
21790       ;;
21791
21792     osf3* | osf4* | osf5*)
21793       lt_prog_compiler_wl_F77='-Wl,'
21794       # All OSF/1 code is PIC.
21795       lt_prog_compiler_static_F77='-non_shared'
21796       ;;
21797
21798     rdos*)
21799       lt_prog_compiler_static_F77='-non_shared'
21800       ;;
21801
21802     solaris*)
21803       lt_prog_compiler_pic_F77='-KPIC'
21804       lt_prog_compiler_static_F77='-Bstatic'
21805       case $cc_basename in
21806       f77* | f90* | f95*)
21807         lt_prog_compiler_wl_F77='-Qoption ld ';;
21808       *)
21809         lt_prog_compiler_wl_F77='-Wl,';;
21810       esac
21811       ;;
21812
21813     sunos4*)
21814       lt_prog_compiler_wl_F77='-Qoption ld '
21815       lt_prog_compiler_pic_F77='-PIC'
21816       lt_prog_compiler_static_F77='-Bstatic'
21817       ;;
21818
21819     sysv4 | sysv4.2uw2* | sysv4.3*)
21820       lt_prog_compiler_wl_F77='-Wl,'
21821       lt_prog_compiler_pic_F77='-KPIC'
21822       lt_prog_compiler_static_F77='-Bstatic'
21823       ;;
21824
21825     sysv4*MP*)
21826       if test -d /usr/nec ;then
21827         lt_prog_compiler_pic_F77='-Kconform_pic'
21828         lt_prog_compiler_static_F77='-Bstatic'
21829       fi
21830       ;;
21831
21832     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21833       lt_prog_compiler_wl_F77='-Wl,'
21834       lt_prog_compiler_pic_F77='-KPIC'
21835       lt_prog_compiler_static_F77='-Bstatic'
21836       ;;
21837
21838     unicos*)
21839       lt_prog_compiler_wl_F77='-Wl,'
21840       lt_prog_compiler_can_build_shared_F77=no
21841       ;;
21842
21843     uts4*)
21844       lt_prog_compiler_pic_F77='-pic'
21845       lt_prog_compiler_static_F77='-Bstatic'
21846       ;;
21847
21848     *)
21849       lt_prog_compiler_can_build_shared_F77=no
21850       ;;
21851     esac
21852   fi
21853
21854 case $host_os in
21855   # For platforms which do not support PIC, -DPIC is meaningless:
21856   *djgpp*)
21857     lt_prog_compiler_pic_F77=
21858     ;;
21859   *)
21860     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21861     ;;
21862 esac
21863 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21864 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
21865
21866
21867
21868 #
21869 # Check to make sure the PIC flag actually works.
21870 #
21871 if test -n "$lt_prog_compiler_pic_F77"; then
21872   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
21874 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
21875   $as_echo_n "(cached) " >&6
21876 else
21877   lt_cv_prog_compiler_pic_works_F77=no
21878    ac_outfile=conftest.$ac_objext
21879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21880    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21881    # Insert the option either (1) after the last *FLAGS variable, or
21882    # (2) before a word containing "conftest.", or (3) at the end.
21883    # Note that $ac_compile itself does not contain backslashes and begins
21884    # with a dollar sign (not a hyphen), so the echo should work correctly.
21885    # The option is referenced via a variable to avoid confusing sed.
21886    lt_compile=`echo "$ac_compile" | $SED \
21887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21889    -e 's:$: $lt_compiler_flag:'`
21890    (eval echo "\"\$as_me:21890: $lt_compile\"" >&5)
21891    (eval "$lt_compile" 2>conftest.err)
21892    ac_status=$?
21893    cat conftest.err >&5
21894    echo "$as_me:21894: \$? = $ac_status" >&5
21895    if (exit $ac_status) && test -s "$ac_outfile"; then
21896      # The compiler can only warn and ignore the option if not recognized
21897      # So say no if there are warnings other than the usual output.
21898      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21899      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21900      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21901        lt_cv_prog_compiler_pic_works_F77=yes
21902      fi
21903    fi
21904    $RM conftest*
21905
21906 fi
21907 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21908 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
21909
21910 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21911     case $lt_prog_compiler_pic_F77 in
21912      "" | " "*) ;;
21913      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21914      esac
21915 else
21916     lt_prog_compiler_pic_F77=
21917      lt_prog_compiler_can_build_shared_F77=no
21918 fi
21919
21920 fi
21921
21922
21923
21924 #
21925 # Check to make sure the static flag actually works.
21926 #
21927 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21928 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21930 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21931   $as_echo_n "(cached) " >&6
21932 else
21933   lt_cv_prog_compiler_static_works_F77=no
21934    save_LDFLAGS="$LDFLAGS"
21935    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21936    echo "$lt_simple_link_test_code" > conftest.$ac_ext
21937    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21938      # The linker can only warn and ignore the option if not recognized
21939      # So say no if there are warnings
21940      if test -s conftest.err; then
21941        # Append any errors to the config.log.
21942        cat conftest.err 1>&5
21943        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21944        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21945        if diff conftest.exp conftest.er2 >/dev/null; then
21946          lt_cv_prog_compiler_static_works_F77=yes
21947        fi
21948      else
21949        lt_cv_prog_compiler_static_works_F77=yes
21950      fi
21951    fi
21952    $RM -r conftest*
21953    LDFLAGS="$save_LDFLAGS"
21954
21955 fi
21956 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21957 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
21958
21959 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21960     :
21961 else
21962     lt_prog_compiler_static_F77=
21963 fi
21964
21965
21966
21967
21968     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21970 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21971   $as_echo_n "(cached) " >&6
21972 else
21973   lt_cv_prog_compiler_c_o_F77=no
21974    $RM -r conftest 2>/dev/null
21975    mkdir conftest
21976    cd conftest
21977    mkdir out
21978    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21979
21980    lt_compiler_flag="-o out/conftest2.$ac_objext"
21981    # Insert the option either (1) after the last *FLAGS variable, or
21982    # (2) before a word containing "conftest.", or (3) at the end.
21983    # Note that $ac_compile itself does not contain backslashes and begins
21984    # with a dollar sign (not a hyphen), so the echo should work correctly.
21985    lt_compile=`echo "$ac_compile" | $SED \
21986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21988    -e 's:$: $lt_compiler_flag:'`
21989    (eval echo "\"\$as_me:21989: $lt_compile\"" >&5)
21990    (eval "$lt_compile" 2>out/conftest.err)
21991    ac_status=$?
21992    cat out/conftest.err >&5
21993    echo "$as_me:21993: \$? = $ac_status" >&5
21994    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21995    then
21996      # The compiler can only warn and ignore the option if not recognized
21997      # So say no if there are warnings
21998      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21999      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22000      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22001        lt_cv_prog_compiler_c_o_F77=yes
22002      fi
22003    fi
22004    chmod u+w . 2>&5
22005    $RM conftest*
22006    # SGI C++ compiler will create directory out/ii_files/ for
22007    # template instantiation
22008    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22009    $RM out/* && rmdir out
22010    cd ..
22011    $RM -r conftest
22012    $RM conftest*
22013
22014 fi
22015 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22016 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22017
22018
22019
22020     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22022 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22023   $as_echo_n "(cached) " >&6
22024 else
22025   lt_cv_prog_compiler_c_o_F77=no
22026    $RM -r conftest 2>/dev/null
22027    mkdir conftest
22028    cd conftest
22029    mkdir out
22030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22031
22032    lt_compiler_flag="-o out/conftest2.$ac_objext"
22033    # Insert the option either (1) after the last *FLAGS variable, or
22034    # (2) before a word containing "conftest.", or (3) at the end.
22035    # Note that $ac_compile itself does not contain backslashes and begins
22036    # with a dollar sign (not a hyphen), so the echo should work correctly.
22037    lt_compile=`echo "$ac_compile" | $SED \
22038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22040    -e 's:$: $lt_compiler_flag:'`
22041    (eval echo "\"\$as_me:22041: $lt_compile\"" >&5)
22042    (eval "$lt_compile" 2>out/conftest.err)
22043    ac_status=$?
22044    cat out/conftest.err >&5
22045    echo "$as_me:22045: \$? = $ac_status" >&5
22046    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22047    then
22048      # The compiler can only warn and ignore the option if not recognized
22049      # So say no if there are warnings
22050      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22051      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22052      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22053        lt_cv_prog_compiler_c_o_F77=yes
22054      fi
22055    fi
22056    chmod u+w . 2>&5
22057    $RM conftest*
22058    # SGI C++ compiler will create directory out/ii_files/ for
22059    # template instantiation
22060    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22061    $RM out/* && rmdir out
22062    cd ..
22063    $RM -r conftest
22064    $RM conftest*
22065
22066 fi
22067 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22068 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22069
22070
22071
22072
22073 hard_links="nottested"
22074 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22075   # do not overwrite the value of need_locks provided by the user
22076   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22077 $as_echo_n "checking if we can lock with hard links... " >&6; }
22078   hard_links=yes
22079   $RM conftest*
22080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22081   touch conftest.a
22082   ln conftest.a conftest.b 2>&5 || hard_links=no
22083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22084   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
22085 $as_echo "$hard_links" >&6; }
22086   if test "$hard_links" = no; then
22087     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22089     need_locks=warn
22090   fi
22091 else
22092   need_locks=no
22093 fi
22094
22095
22096
22097     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22099
22100   runpath_var=
22101   allow_undefined_flag_F77=
22102   always_export_symbols_F77=no
22103   archive_cmds_F77=
22104   archive_expsym_cmds_F77=
22105   compiler_needs_object_F77=no
22106   enable_shared_with_static_runtimes_F77=no
22107   export_dynamic_flag_spec_F77=
22108   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22109   hardcode_automatic_F77=no
22110   hardcode_direct_F77=no
22111   hardcode_direct_absolute_F77=no
22112   hardcode_libdir_flag_spec_F77=
22113   hardcode_libdir_flag_spec_ld_F77=
22114   hardcode_libdir_separator_F77=
22115   hardcode_minus_L_F77=no
22116   hardcode_shlibpath_var_F77=unsupported
22117   inherit_rpath_F77=no
22118   link_all_deplibs_F77=unknown
22119   module_cmds_F77=
22120   module_expsym_cmds_F77=
22121   old_archive_from_new_cmds_F77=
22122   old_archive_from_expsyms_cmds_F77=
22123   thread_safe_flag_spec_F77=
22124   whole_archive_flag_spec_F77=
22125   # include_expsyms should be a list of space-separated symbols to be *always*
22126   # included in the symbol list
22127   include_expsyms_F77=
22128   # exclude_expsyms can be an extended regexp of symbols to exclude
22129   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22130   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22131   # as well as any symbol that contains `d'.
22132   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22133   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22134   # platforms (ab)use it in PIC code, but their linkers get confused if
22135   # the symbol is explicitly referenced.  Since portable code cannot
22136   # rely on this symbol name, it's probably fine to never include it in
22137   # preloaded symbol tables.
22138   # Exclude shared library initialization/finalization symbols.
22139   extract_expsyms_cmds=
22140
22141   case $host_os in
22142   cygwin* | mingw* | pw32*)
22143     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22144     # When not using gcc, we currently assume that we are using
22145     # Microsoft Visual C++.
22146     if test "$GCC" != yes; then
22147       with_gnu_ld=no
22148     fi
22149     ;;
22150   interix*)
22151     # we just hope/assume this is gcc and not c89 (= MSVC++)
22152     with_gnu_ld=yes
22153     ;;
22154   openbsd*)
22155     with_gnu_ld=no
22156     ;;
22157   esac
22158
22159   ld_shlibs_F77=yes
22160   if test "$with_gnu_ld" = yes; then
22161     # If archive_cmds runs LD, not CC, wlarc should be empty
22162     wlarc='${wl}'
22163
22164     # Set some defaults for GNU ld with shared library support. These
22165     # are reset later if shared libraries are not supported. Putting them
22166     # here allows them to be overridden if necessary.
22167     runpath_var=LD_RUN_PATH
22168     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22170     # ancient GNU ld didn't support --whole-archive et. al.
22171     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22172       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22173     else
22174       whole_archive_flag_spec_F77=
22175     fi
22176     supports_anon_versioning=no
22177     case `$LD -v 2>&1` in
22178       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22179       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22180       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22181       *\ 2.11.*) ;; # other 2.11 versions
22182       *) supports_anon_versioning=yes ;;
22183     esac
22184
22185     # See if GNU ld supports shared libraries.
22186     case $host_os in
22187     aix[3-9]*)
22188       # On AIX/PPC, the GNU linker is very broken
22189       if test "$host_cpu" != ia64; then
22190         ld_shlibs_F77=no
22191         cat <<_LT_EOF 1>&2
22192
22193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22194 *** to be unable to reliably create shared libraries on AIX.
22195 *** Therefore, libtool is disabling shared libraries support.  If you
22196 *** really care for shared libraries, you may want to modify your PATH
22197 *** so that a non-GNU linker is found, and then restart.
22198
22199 _LT_EOF
22200       fi
22201       ;;
22202
22203     amigaos*)
22204       if test "$host_cpu" = m68k; then
22205         archive_cmds_F77='$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)'
22206         hardcode_libdir_flag_spec_F77='-L$libdir'
22207         hardcode_minus_L_F77=yes
22208       fi
22209
22210       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22211       # that the semantics of dynamic libraries on AmigaOS, at least up
22212       # to version 4, is to share data among multiple programs linked
22213       # with the same dynamic library.  Since this doesn't match the
22214       # behavior of shared libraries on other platforms, we can't use
22215       # them.
22216       ld_shlibs_F77=no
22217       ;;
22218
22219     beos*)
22220       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22221         allow_undefined_flag_F77=unsupported
22222         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22223         # support --undefined.  This deserves some investigation.  FIXME
22224         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22225       else
22226         ld_shlibs_F77=no
22227       fi
22228       ;;
22229
22230     cygwin* | mingw* | pw32*)
22231       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22232       # as there is no search path for DLLs.
22233       hardcode_libdir_flag_spec_F77='-L$libdir'
22234       allow_undefined_flag_F77=unsupported
22235       always_export_symbols_F77=no
22236       enable_shared_with_static_runtimes_F77=yes
22237       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22238
22239       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22240         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22241         # If the export-symbols file already is a .def file (1st line
22242         # is EXPORTS), use it as is; otherwise, prepend...
22243         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22244           cp $export_symbols $output_objdir/$soname.def;
22245         else
22246           echo EXPORTS > $output_objdir/$soname.def;
22247           cat $export_symbols >> $output_objdir/$soname.def;
22248         fi~
22249         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22250       else
22251         ld_shlibs_F77=no
22252       fi
22253       ;;
22254
22255     interix[3-9]*)
22256       hardcode_direct_F77=no
22257       hardcode_shlibpath_var_F77=no
22258       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22259       export_dynamic_flag_spec_F77='${wl}-E'
22260       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22261       # Instead, shared libraries are loaded at an image base (0x10000000 by
22262       # default) and relocated if they conflict, which is a slow very memory
22263       # consuming and fragmenting process.  To avoid this, we pick a random,
22264       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22265       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22266       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22267       archive_expsym_cmds_F77='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'
22268       ;;
22269
22270     gnu* | linux* | tpf* | k*bsd*-gnu)
22271       tmp_diet=no
22272       if test "$host_os" = linux-dietlibc; then
22273         case $cc_basename in
22274           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
22275         esac
22276       fi
22277       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22278          && test "$tmp_diet" = no
22279       then
22280         tmp_addflag=
22281         tmp_sharedflag='-shared'
22282         case $cc_basename,$host_cpu in
22283         pgcc*)                          # Portland Group C compiler
22284           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
22285           tmp_addflag=' $pic_flag'
22286           ;;
22287         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22288           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
22289           tmp_addflag=' $pic_flag -Mnomain' ;;
22290         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
22291           tmp_addflag=' -i_dynamic' ;;
22292         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22293           tmp_addflag=' -i_dynamic -nofor_main' ;;
22294         ifc* | ifort*)                  # Intel Fortran compiler
22295           tmp_addflag=' -nofor_main' ;;
22296         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
22297           tmp_sharedflag='-qmkshrobj'
22298           tmp_addflag= ;;
22299         esac
22300         case `$CC -V 2>&1 | sed 5q` in
22301         *Sun\ C*)                       # Sun C 5.9
22302           whole_archive_flag_spec_F77='${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'
22303           compiler_needs_object_F77=yes
22304           tmp_sharedflag='-G' ;;
22305         *Sun\ F*)                       # Sun Fortran 8.3
22306           tmp_sharedflag='-G' ;;
22307         esac
22308         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22309
22310         if test "x$supports_anon_versioning" = xyes; then
22311           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22312             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22313             echo "local: *; };" >> $output_objdir/$libname.ver~
22314             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22315         fi
22316
22317         case $cc_basename in
22318         xlf*)
22319           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22320           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22321           hardcode_libdir_flag_spec_F77=
22322           hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22323           archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22324           if test "x$supports_anon_versioning" = xyes; then
22325             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22326               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22327               echo "local: *; };" >> $output_objdir/$libname.ver~
22328               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22329           fi
22330           ;;
22331         esac
22332       else
22333         ld_shlibs_F77=no
22334       fi
22335       ;;
22336
22337     netbsd*)
22338       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22339         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22340         wlarc=
22341       else
22342         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22343         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22344       fi
22345       ;;
22346
22347     solaris*)
22348       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22349         ld_shlibs_F77=no
22350         cat <<_LT_EOF 1>&2
22351
22352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22353 *** create shared libraries on Solaris systems.  Therefore, libtool
22354 *** is disabling shared libraries support.  We urge you to upgrade GNU
22355 *** binutils to release 2.9.1 or newer.  Another option is to modify
22356 *** your PATH or compiler configuration so that the native linker is
22357 *** used, and then restart.
22358
22359 _LT_EOF
22360       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22361         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22362         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22363       else
22364         ld_shlibs_F77=no
22365       fi
22366       ;;
22367
22368     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22369       case `$LD -v 2>&1` in
22370         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22371         ld_shlibs_F77=no
22372         cat <<_LT_EOF 1>&2
22373
22374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22375 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22376 *** is disabling shared libraries support.  We urge you to upgrade GNU
22377 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22378 *** your PATH or compiler configuration so that the native linker is
22379 *** used, and then restart.
22380
22381 _LT_EOF
22382         ;;
22383         *)
22384           # For security reasons, it is highly recommended that you always
22385           # use absolute paths for naming shared libraries, and exclude the
22386           # DT_RUNPATH tag from executables and libraries.  But doing so
22387           # requires that you compile everything twice, which is a pain.
22388           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22389             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22390             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22391             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22392           else
22393             ld_shlibs_F77=no
22394           fi
22395         ;;
22396       esac
22397       ;;
22398
22399     sunos4*)
22400       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22401       wlarc=
22402       hardcode_direct_F77=yes
22403       hardcode_shlibpath_var_F77=no
22404       ;;
22405
22406     *)
22407       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22408         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22409         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22410       else
22411         ld_shlibs_F77=no
22412       fi
22413       ;;
22414     esac
22415
22416     if test "$ld_shlibs_F77" = no; then
22417       runpath_var=
22418       hardcode_libdir_flag_spec_F77=
22419       export_dynamic_flag_spec_F77=
22420       whole_archive_flag_spec_F77=
22421     fi
22422   else
22423     # PORTME fill in a description of your system's linker (not GNU ld)
22424     case $host_os in
22425     aix3*)
22426       allow_undefined_flag_F77=unsupported
22427       always_export_symbols_F77=yes
22428       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22429       # Note: this linker hardcodes the directories in LIBPATH if there
22430       # are no directories specified by -L.
22431       hardcode_minus_L_F77=yes
22432       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22433         # Neither direct hardcoding nor static linking is supported with a
22434         # broken collect2.
22435         hardcode_direct_F77=unsupported
22436       fi
22437       ;;
22438
22439     aix[4-9]*)
22440       if test "$host_cpu" = ia64; then
22441         # On IA64, the linker does run time linking by default, so we don't
22442         # have to do anything special.
22443         aix_use_runtimelinking=no
22444         exp_sym_flag='-Bexport'
22445         no_entry_flag=""
22446       else
22447         # If we're using GNU nm, then we don't want the "-C" option.
22448         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22449         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22450           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
22451         else
22452           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
22453         fi
22454         aix_use_runtimelinking=no
22455
22456         # Test if we are trying to use run time linking or normal
22457         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22458         # need to do runtime linking.
22459         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22460           for ld_flag in $LDFLAGS; do
22461           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22462             aix_use_runtimelinking=yes
22463             break
22464           fi
22465           done
22466           ;;
22467         esac
22468
22469         exp_sym_flag='-bexport'
22470         no_entry_flag='-bnoentry'
22471       fi
22472
22473       # When large executables or shared objects are built, AIX ld can
22474       # have problems creating the table of contents.  If linking a library
22475       # or program results in "error TOC overflow" add -mminimal-toc to
22476       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22477       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22478
22479       archive_cmds_F77=''
22480       hardcode_direct_F77=yes
22481       hardcode_direct_absolute_F77=yes
22482       hardcode_libdir_separator_F77=':'
22483       link_all_deplibs_F77=yes
22484       file_list_spec_F77='${wl}-f,'
22485
22486       if test "$GCC" = yes; then
22487         case $host_os in aix4.[012]|aix4.[012].*)
22488         # We only want to do this on AIX 4.2 and lower, the check
22489         # below for broken collect2 doesn't work under 4.3+
22490           collect2name=`${CC} -print-prog-name=collect2`
22491           if test -f "$collect2name" &&
22492            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22493           then
22494           # We have reworked collect2
22495           :
22496           else
22497           # We have old collect2
22498           hardcode_direct_F77=unsupported
22499           # It fails to find uninstalled libraries when the uninstalled
22500           # path is not listed in the libpath.  Setting hardcode_minus_L
22501           # to unsupported forces relinking
22502           hardcode_minus_L_F77=yes
22503           hardcode_libdir_flag_spec_F77='-L$libdir'
22504           hardcode_libdir_separator_F77=
22505           fi
22506           ;;
22507         esac
22508         shared_flag='-shared'
22509         if test "$aix_use_runtimelinking" = yes; then
22510           shared_flag="$shared_flag "'${wl}-G'
22511         fi
22512       else
22513         # not using gcc
22514         if test "$host_cpu" = ia64; then
22515         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22516         # chokes on -Wl,-G. The following line is correct:
22517           shared_flag='-G'
22518         else
22519           if test "$aix_use_runtimelinking" = yes; then
22520             shared_flag='${wl}-G'
22521           else
22522             shared_flag='${wl}-bM:SRE'
22523           fi
22524         fi
22525       fi
22526
22527       # It seems that -bexpall does not export symbols beginning with
22528       # underscore (_), so it is better to generate a list of symbols to export.
22529       always_export_symbols_F77=yes
22530       if test "$aix_use_runtimelinking" = yes; then
22531         # Warning - without using the other runtime loading flags (-brtl),
22532         # -berok will link without error, but may produce a broken library.
22533         allow_undefined_flag_F77='-berok'
22534         # Determine the default libpath from the value encoded in an
22535         # empty executable.
22536         cat >conftest.$ac_ext <<_ACEOF
22537       program main
22538
22539       end
22540 _ACEOF
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22548 $as_echo "$ac_try_echo") >&5
22549   (eval "$ac_link") 2>conftest.er1
22550   ac_status=$?
22551   grep -v '^ *+' conftest.er1 >conftest.err
22552   rm -f conftest.er1
22553   cat conftest.err >&5
22554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } && {
22556          test -z "$ac_f77_werror_flag" ||
22557          test ! -s conftest.err
22558        } && test -s conftest$ac_exeext && {
22559          test "$cross_compiling" = yes ||
22560          $as_test_x conftest$ac_exeext
22561        }; then
22562
22563 lt_aix_libpath_sed='
22564     /Import File Strings/,/^$/ {
22565         /^0/ {
22566             s/^0  *\(.*\)$/\1/
22567             p
22568         }
22569     }'
22570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22571 # Check for a 64-bit object if we didn't find anything.
22572 if test -z "$aix_libpath"; then
22573   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22574 fi
22575 else
22576   $as_echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579
22580 fi
22581
22582 rm -rf conftest.dSYM
22583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22584       conftest$ac_exeext conftest.$ac_ext
22585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22586
22587         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22588         archive_expsym_cmds_F77='$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"
22589       else
22590         if test "$host_cpu" = ia64; then
22591           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22592           allow_undefined_flag_F77="-z nodefs"
22593           archive_expsym_cmds_F77="\$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"
22594         else
22595          # Determine the default libpath from the value encoded in an
22596          # empty executable.
22597          cat >conftest.$ac_ext <<_ACEOF
22598       program main
22599
22600       end
22601 _ACEOF
22602 rm -f conftest.$ac_objext conftest$ac_exeext
22603 if { (ac_try="$ac_link"
22604 case "(($ac_try" in
22605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606   *) ac_try_echo=$ac_try;;
22607 esac
22608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22609 $as_echo "$ac_try_echo") >&5
22610   (eval "$ac_link") 2>conftest.er1
22611   ac_status=$?
22612   grep -v '^ *+' conftest.er1 >conftest.err
22613   rm -f conftest.er1
22614   cat conftest.err >&5
22615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } && {
22617          test -z "$ac_f77_werror_flag" ||
22618          test ! -s conftest.err
22619        } && test -s conftest$ac_exeext && {
22620          test "$cross_compiling" = yes ||
22621          $as_test_x conftest$ac_exeext
22622        }; then
22623
22624 lt_aix_libpath_sed='
22625     /Import File Strings/,/^$/ {
22626         /^0/ {
22627             s/^0  *\(.*\)$/\1/
22628             p
22629         }
22630     }'
22631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22632 # Check for a 64-bit object if we didn't find anything.
22633 if test -z "$aix_libpath"; then
22634   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22635 fi
22636 else
22637   $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640
22641 fi
22642
22643 rm -rf conftest.dSYM
22644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22645       conftest$ac_exeext conftest.$ac_ext
22646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22647
22648          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22649           # Warning - without using the other run time loading flags,
22650           # -berok will link without error, but may produce a broken library.
22651           no_undefined_flag_F77=' ${wl}-bernotok'
22652           allow_undefined_flag_F77=' ${wl}-berok'
22653           # Exported symbols can be pulled into shared objects from archives
22654           whole_archive_flag_spec_F77='$convenience'
22655           archive_cmds_need_lc_F77=yes
22656           # This is similar to how AIX traditionally builds its shared libraries.
22657           archive_expsym_cmds_F77="\$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'
22658         fi
22659       fi
22660       ;;
22661
22662     amigaos*)
22663       if test "$host_cpu" = m68k; then
22664         archive_cmds_F77='$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)'
22665         hardcode_libdir_flag_spec_F77='-L$libdir'
22666         hardcode_minus_L_F77=yes
22667       fi
22668       # see comment about different semantics on the GNU ld section
22669       ld_shlibs_F77=no
22670       ;;
22671
22672     bsdi[45]*)
22673       export_dynamic_flag_spec_F77=-rdynamic
22674       ;;
22675
22676     cygwin* | mingw* | pw32*)
22677       # When not using gcc, we currently assume that we are using
22678       # Microsoft Visual C++.
22679       # hardcode_libdir_flag_spec is actually meaningless, as there is
22680       # no search path for DLLs.
22681       hardcode_libdir_flag_spec_F77=' '
22682       allow_undefined_flag_F77=unsupported
22683       # Tell ltmain to make .lib files, not .a files.
22684       libext=lib
22685       # Tell ltmain to make .dll files, not .so files.
22686       shrext_cmds=".dll"
22687       # FIXME: Setting linknames here is a bad hack.
22688       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22689       # The linker will automatically build a .lib file if we build a DLL.
22690       old_archive_from_new_cmds_F77='true'
22691       # FIXME: Should let the user specify the lib program.
22692       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22693       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22694       enable_shared_with_static_runtimes_F77=yes
22695       ;;
22696
22697     darwin* | rhapsody*)
22698
22699
22700   archive_cmds_need_lc_F77=no
22701   hardcode_direct_F77=no
22702   hardcode_automatic_F77=yes
22703   hardcode_shlibpath_var_F77=unsupported
22704   whole_archive_flag_spec_F77=''
22705   link_all_deplibs_F77=yes
22706   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
22707   if test "$GCC" = "yes"; then
22708     output_verbose_link_cmd=echo
22709     archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22710     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22711     archive_expsym_cmds_F77="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}"
22712     module_expsym_cmds_F77="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}"
22713
22714   else
22715   ld_shlibs_F77=no
22716   fi
22717
22718       ;;
22719
22720     dgux*)
22721       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22722       hardcode_libdir_flag_spec_F77='-L$libdir'
22723       hardcode_shlibpath_var_F77=no
22724       ;;
22725
22726     freebsd1*)
22727       ld_shlibs_F77=no
22728       ;;
22729
22730     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22731     # support.  Future versions do this automatically, but an explicit c++rt0.o
22732     # does not break anything, and helps significantly (at the cost of a little
22733     # extra space).
22734     freebsd2.2*)
22735       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22736       hardcode_libdir_flag_spec_F77='-R$libdir'
22737       hardcode_direct_F77=yes
22738       hardcode_shlibpath_var_F77=no
22739       ;;
22740
22741     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22742     freebsd2*)
22743       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22744       hardcode_direct_F77=yes
22745       hardcode_minus_L_F77=yes
22746       hardcode_shlibpath_var_F77=no
22747       ;;
22748
22749     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22750     freebsd* | dragonfly*)
22751       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22752       hardcode_libdir_flag_spec_F77='-R$libdir'
22753       hardcode_direct_F77=yes
22754       hardcode_shlibpath_var_F77=no
22755       ;;
22756
22757     hpux9*)
22758       if test "$GCC" = yes; then
22759         archive_cmds_F77='$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'
22760       else
22761         archive_cmds_F77='$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'
22762       fi
22763       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22764       hardcode_libdir_separator_F77=:
22765       hardcode_direct_F77=yes
22766
22767       # hardcode_minus_L: Not really in the search PATH,
22768       # but as the default location of the library.
22769       hardcode_minus_L_F77=yes
22770       export_dynamic_flag_spec_F77='${wl}-E'
22771       ;;
22772
22773     hpux10*)
22774       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22775         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22776       else
22777         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22778       fi
22779       if test "$with_gnu_ld" = no; then
22780         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22781         hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22782         hardcode_libdir_separator_F77=:
22783         hardcode_direct_F77=yes
22784         hardcode_direct_absolute_F77=yes
22785         export_dynamic_flag_spec_F77='${wl}-E'
22786         # hardcode_minus_L: Not really in the search PATH,
22787         # but as the default location of the library.
22788         hardcode_minus_L_F77=yes
22789       fi
22790       ;;
22791
22792     hpux11*)
22793       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22794         case $host_cpu in
22795         hppa*64*)
22796           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22797           ;;
22798         ia64*)
22799           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22800           ;;
22801         *)
22802           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22803           ;;
22804         esac
22805       else
22806         case $host_cpu in
22807         hppa*64*)
22808           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22809           ;;
22810         ia64*)
22811           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22812           ;;
22813         *)
22814           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22815           ;;
22816         esac
22817       fi
22818       if test "$with_gnu_ld" = no; then
22819         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22820         hardcode_libdir_separator_F77=:
22821
22822         case $host_cpu in
22823         hppa*64*|ia64*)
22824           hardcode_direct_F77=no
22825           hardcode_shlibpath_var_F77=no
22826           ;;
22827         *)
22828           hardcode_direct_F77=yes
22829           hardcode_direct_absolute_F77=yes
22830           export_dynamic_flag_spec_F77='${wl}-E'
22831
22832           # hardcode_minus_L: Not really in the search PATH,
22833           # but as the default location of the library.
22834           hardcode_minus_L_F77=yes
22835           ;;
22836         esac
22837       fi
22838       ;;
22839
22840     irix5* | irix6* | nonstopux*)
22841       if test "$GCC" = yes; then
22842         archive_cmds_F77='$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'
22843         # Try to use the -exported_symbol ld option, if it does not
22844         # work, assume that -exports_file does not work either and
22845         # implicitly export all symbols.
22846         save_LDFLAGS="$LDFLAGS"
22847         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22848         cat >conftest.$ac_ext <<_ACEOF
22849 int foo(void) {}
22850 _ACEOF
22851 rm -f conftest.$ac_objext conftest$ac_exeext
22852 if { (ac_try="$ac_link"
22853 case "(($ac_try" in
22854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855   *) ac_try_echo=$ac_try;;
22856 esac
22857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22858 $as_echo "$ac_try_echo") >&5
22859   (eval "$ac_link") 2>conftest.er1
22860   ac_status=$?
22861   grep -v '^ *+' conftest.er1 >conftest.err
22862   rm -f conftest.er1
22863   cat conftest.err >&5
22864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } && {
22866          test -z "$ac_f77_werror_flag" ||
22867          test ! -s conftest.err
22868        } && test -s conftest$ac_exeext && {
22869          test "$cross_compiling" = yes ||
22870          $as_test_x conftest$ac_exeext
22871        }; then
22872   archive_expsym_cmds_F77='$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'
22873
22874 else
22875   $as_echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878
22879 fi
22880
22881 rm -rf conftest.dSYM
22882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22883       conftest$ac_exeext conftest.$ac_ext
22884         LDFLAGS="$save_LDFLAGS"
22885       else
22886         archive_cmds_F77='$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'
22887         archive_expsym_cmds_F77='$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'
22888       fi
22889       archive_cmds_need_lc_F77='no'
22890       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22891       hardcode_libdir_separator_F77=:
22892       inherit_rpath_F77=yes
22893       link_all_deplibs_F77=yes
22894       ;;
22895
22896     netbsd*)
22897       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22898         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22899       else
22900         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22901       fi
22902       hardcode_libdir_flag_spec_F77='-R$libdir'
22903       hardcode_direct_F77=yes
22904       hardcode_shlibpath_var_F77=no
22905       ;;
22906
22907     newsos6)
22908       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22909       hardcode_direct_F77=yes
22910       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22911       hardcode_libdir_separator_F77=:
22912       hardcode_shlibpath_var_F77=no
22913       ;;
22914
22915     *nto* | *qnx*)
22916       ;;
22917
22918     openbsd*)
22919       if test -f /usr/libexec/ld.so; then
22920         hardcode_direct_F77=yes
22921         hardcode_shlibpath_var_F77=no
22922         hardcode_direct_absolute_F77=yes
22923         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22924           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22925           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22926           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22927           export_dynamic_flag_spec_F77='${wl}-E'
22928         else
22929           case $host_os in
22930            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22931              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22932              hardcode_libdir_flag_spec_F77='-R$libdir'
22933              ;;
22934            *)
22935              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22936              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22937              ;;
22938           esac
22939         fi
22940       else
22941         ld_shlibs_F77=no
22942       fi
22943       ;;
22944
22945     os2*)
22946       hardcode_libdir_flag_spec_F77='-L$libdir'
22947       hardcode_minus_L_F77=yes
22948       allow_undefined_flag_F77=unsupported
22949       archive_cmds_F77='$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'
22950       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22951       ;;
22952
22953     osf3*)
22954       if test "$GCC" = yes; then
22955         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22956         archive_cmds_F77='$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'
22957       else
22958         allow_undefined_flag_F77=' -expect_unresolved \*'
22959         archive_cmds_F77='$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'
22960       fi
22961       archive_cmds_need_lc_F77='no'
22962       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22963       hardcode_libdir_separator_F77=:
22964       ;;
22965
22966     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22967       if test "$GCC" = yes; then
22968         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22969         archive_cmds_F77='$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'
22970         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22971       else
22972         allow_undefined_flag_F77=' -expect_unresolved \*'
22973         archive_cmds_F77='$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'
22974         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
22975         $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'
22976
22977         # Both c and cxx compiler support -rpath directly
22978         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22979       fi
22980       archive_cmds_need_lc_F77='no'
22981       hardcode_libdir_separator_F77=:
22982       ;;
22983
22984     solaris*)
22985       no_undefined_flag_F77=' -z defs'
22986       if test "$GCC" = yes; then
22987         wlarc='${wl}'
22988         archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22989         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22990           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22991       else
22992         case `$CC -V 2>&1` in
22993         *"Compilers 5.0"*)
22994           wlarc=''
22995           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22996           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22997           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
22998           ;;
22999         *)
23000           wlarc='${wl}'
23001           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23002           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23003           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23004           ;;
23005         esac
23006       fi
23007       hardcode_libdir_flag_spec_F77='-R$libdir'
23008       hardcode_shlibpath_var_F77=no
23009       case $host_os in
23010       solaris2.[0-5] | solaris2.[0-5].*) ;;
23011       *)
23012         # The compiler driver will combine and reorder linker options,
23013         # but understands `-z linker_flag'.  GCC discards it without `$wl',
23014         # but is careful enough not to reorder.
23015         # Supported since Solaris 2.6 (maybe 2.5.1?)
23016         if test "$GCC" = yes; then
23017           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23018         else
23019           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23020         fi
23021         ;;
23022       esac
23023       link_all_deplibs_F77=yes
23024       ;;
23025
23026     sunos4*)
23027       if test "x$host_vendor" = xsequent; then
23028         # Use $CC to link under sequent, because it throws in some extra .o
23029         # files that make .init and .fini sections work.
23030         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23031       else
23032         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23033       fi
23034       hardcode_libdir_flag_spec_F77='-L$libdir'
23035       hardcode_direct_F77=yes
23036       hardcode_minus_L_F77=yes
23037       hardcode_shlibpath_var_F77=no
23038       ;;
23039
23040     sysv4)
23041       case $host_vendor in
23042         sni)
23043           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23044           hardcode_direct_F77=yes # is this really true???
23045         ;;
23046         siemens)
23047           ## LD is ld it makes a PLAMLIB
23048           ## CC just makes a GrossModule.
23049           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23050           reload_cmds_F77='$CC -r -o $output$reload_objs'
23051           hardcode_direct_F77=no
23052         ;;
23053         motorola)
23054           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23055           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23056         ;;
23057       esac
23058       runpath_var='LD_RUN_PATH'
23059       hardcode_shlibpath_var_F77=no
23060       ;;
23061
23062     sysv4.3*)
23063       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23064       hardcode_shlibpath_var_F77=no
23065       export_dynamic_flag_spec_F77='-Bexport'
23066       ;;
23067
23068     sysv4*MP*)
23069       if test -d /usr/nec; then
23070         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23071         hardcode_shlibpath_var_F77=no
23072         runpath_var=LD_RUN_PATH
23073         hardcode_runpath_var=yes
23074         ld_shlibs_F77=yes
23075       fi
23076       ;;
23077
23078     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23079       no_undefined_flag_F77='${wl}-z,text'
23080       archive_cmds_need_lc_F77=no
23081       hardcode_shlibpath_var_F77=no
23082       runpath_var='LD_RUN_PATH'
23083
23084       if test "$GCC" = yes; then
23085         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23086         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23087       else
23088         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23089         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23090       fi
23091       ;;
23092
23093     sysv5* | sco3.2v5* | sco5v6*)
23094       # Note: We can NOT use -z defs as we might desire, because we do not
23095       # link with -lc, and that would cause any symbols used from libc to
23096       # always be unresolved, which means just about no library would
23097       # ever link correctly.  If we're not using GNU ld we use -z text
23098       # though, which does catch some bad symbols but isn't as heavy-handed
23099       # as -z defs.
23100       no_undefined_flag_F77='${wl}-z,text'
23101       allow_undefined_flag_F77='${wl}-z,nodefs'
23102       archive_cmds_need_lc_F77=no
23103       hardcode_shlibpath_var_F77=no
23104       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
23105       hardcode_libdir_separator_F77=':'
23106       link_all_deplibs_F77=yes
23107       export_dynamic_flag_spec_F77='${wl}-Bexport'
23108       runpath_var='LD_RUN_PATH'
23109
23110       if test "$GCC" = yes; then
23111         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23112         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23113       else
23114         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23115         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23116       fi
23117       ;;
23118
23119     uts4*)
23120       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23121       hardcode_libdir_flag_spec_F77='-L$libdir'
23122       hardcode_shlibpath_var_F77=no
23123       ;;
23124
23125     *)
23126       ld_shlibs_F77=no
23127       ;;
23128     esac
23129
23130     if test x$host_vendor = xsni; then
23131       case $host in
23132       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23133         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
23134         ;;
23135       esac
23136     fi
23137   fi
23138
23139 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23140 $as_echo "$ld_shlibs_F77" >&6; }
23141 test "$ld_shlibs_F77" = no && can_build_shared=no
23142
23143 with_gnu_ld_F77=$with_gnu_ld
23144
23145
23146
23147
23148
23149
23150 #
23151 # Do we need to explicitly link libc?
23152 #
23153 case "x$archive_cmds_need_lc_F77" in
23154 x|xyes)
23155   # Assume -lc should be added
23156   archive_cmds_need_lc_F77=yes
23157
23158   if test "$enable_shared" = yes && test "$GCC" = yes; then
23159     case $archive_cmds_F77 in
23160     *'~'*)
23161       # FIXME: we may have to deal with multi-command sequences.
23162       ;;
23163     '$CC '*)
23164       # Test whether the compiler implicitly links with -lc since on some
23165       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23166       # to ld, don't add -lc before -lgcc.
23167       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23168 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23169       $RM conftest*
23170       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23171
23172       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173   (eval $ac_compile) 2>&5
23174   ac_status=$?
23175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } 2>conftest.err; then
23177         soname=conftest
23178         lib=conftest
23179         libobjs=conftest.$ac_objext
23180         deplibs=
23181         wl=$lt_prog_compiler_wl_F77
23182         pic_flag=$lt_prog_compiler_pic_F77
23183         compiler_flags=-v
23184         linker_flags=-v
23185         verstring=
23186         output_objdir=.
23187         libname=conftest
23188         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23189         allow_undefined_flag_F77=
23190         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
23191   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23192   ac_status=$?
23193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }
23195         then
23196           archive_cmds_need_lc_F77=no
23197         else
23198           archive_cmds_need_lc_F77=yes
23199         fi
23200         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23201       else
23202         cat conftest.err 1>&5
23203       fi
23204       $RM conftest*
23205       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23206 $as_echo "$archive_cmds_need_lc_F77" >&6; }
23207       ;;
23208     esac
23209   fi
23210   ;;
23211 esac
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23277 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23278
23279 library_names_spec=
23280 libname_spec='lib$name'
23281 soname_spec=
23282 shrext_cmds=".so"
23283 postinstall_cmds=
23284 postuninstall_cmds=
23285 finish_cmds=
23286 finish_eval=
23287 shlibpath_var=
23288 shlibpath_overrides_runpath=unknown
23289 version_type=none
23290 dynamic_linker="$host_os ld.so"
23291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23292 need_lib_prefix=unknown
23293 hardcode_into_libs=no
23294
23295 # when you set need_version to no, make sure it does not cause -set_version
23296 # flags to be left without arguments
23297 need_version=unknown
23298
23299 case $host_os in
23300 aix3*)
23301   version_type=linux
23302   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23303   shlibpath_var=LIBPATH
23304
23305   # AIX 3 has no versioning support, so we append a major version to the name.
23306   soname_spec='${libname}${release}${shared_ext}$major'
23307   ;;
23308
23309 aix[4-9]*)
23310   version_type=linux
23311   need_lib_prefix=no
23312   need_version=no
23313   hardcode_into_libs=yes
23314   if test "$host_cpu" = ia64; then
23315     # AIX 5 supports IA64
23316     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23317     shlibpath_var=LD_LIBRARY_PATH
23318   else
23319     # With GCC up to 2.95.x, collect2 would create an import file
23320     # for dependence libraries.  The import file would start with
23321     # the line `#! .'.  This would cause the generated library to
23322     # depend on `.', always an invalid library.  This was fixed in
23323     # development snapshots of GCC prior to 3.0.
23324     case $host_os in
23325       aix4 | aix4.[01] | aix4.[01].*)
23326       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23327            echo ' yes '
23328            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23329         :
23330       else
23331         can_build_shared=no
23332       fi
23333       ;;
23334     esac
23335     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23336     # soname into executable. Probably we can add versioning support to
23337     # collect2, so additional links can be useful in future.
23338     if test "$aix_use_runtimelinking" = yes; then
23339       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23340       # instead of lib<name>.a to let people know that these are not
23341       # typical AIX shared libraries.
23342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343     else
23344       # We preserve .a as extension for shared libraries through AIX4.2
23345       # and later when we are not doing run time linking.
23346       library_names_spec='${libname}${release}.a $libname.a'
23347       soname_spec='${libname}${release}${shared_ext}$major'
23348     fi
23349     shlibpath_var=LIBPATH
23350   fi
23351   ;;
23352
23353 amigaos*)
23354   if test "$host_cpu" = m68k; then
23355     library_names_spec='$libname.ixlibrary $libname.a'
23356     # Create ${libname}_ixlibrary.a entries in /sys/libs.
23357     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'
23358   else
23359     dynamic_linker=no
23360   fi
23361   ;;
23362
23363 beos*)
23364   library_names_spec='${libname}${shared_ext}'
23365   dynamic_linker="$host_os ld.so"
23366   shlibpath_var=LIBRARY_PATH
23367   ;;
23368
23369 bsdi[45]*)
23370   version_type=linux
23371   need_version=no
23372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373   soname_spec='${libname}${release}${shared_ext}$major'
23374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23375   shlibpath_var=LD_LIBRARY_PATH
23376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23378   # the default ld.so.conf also contains /usr/contrib/lib and
23379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23380   # libtool to hard-code these into programs
23381   ;;
23382
23383 cygwin* | mingw* | pw32*)
23384   version_type=windows
23385   shrext_cmds=".dll"
23386   need_version=no
23387   need_lib_prefix=no
23388
23389   case $GCC,$host_os in
23390   yes,cygwin* | yes,mingw* | yes,pw32*)
23391     library_names_spec='$libname.dll.a'
23392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23393     postinstall_cmds='base_file=`basename \${file}`~
23394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23395       dldir=$destdir/`dirname \$dlpath`~
23396       test -d \$dldir || mkdir -p \$dldir~
23397       $install_prog $dir/$dlname \$dldir/$dlname~
23398       chmod a+x \$dldir/$dlname~
23399       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23400         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23401       fi'
23402     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23403       dlpath=$dir/\$dldll~
23404        $RM \$dlpath'
23405     shlibpath_overrides_runpath=yes
23406
23407     case $host_os in
23408     cygwin*)
23409       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23410       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23411       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23412       ;;
23413     mingw*)
23414       # MinGW DLLs use traditional 'lib' prefix
23415       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23416       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23417       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23418         # It is most probably a Windows format PATH printed by
23419         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23420         # path with ; separators, and with drive letters. We can handle the
23421         # drive letters (cygwin fileutils understands them), so leave them,
23422         # especially as we might pass files found there to a mingw objdump,
23423         # which wouldn't understand a cygwinified path. Ahh.
23424         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23425       else
23426         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23427       fi
23428       ;;
23429     pw32*)
23430       # pw32 DLLs use 'pw' prefix rather than 'lib'
23431       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23432       ;;
23433     esac
23434     ;;
23435
23436   *)
23437     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23438     ;;
23439   esac
23440   dynamic_linker='Win32 ld.exe'
23441   # FIXME: first we should search . and the directory the executable is in
23442   shlibpath_var=PATH
23443   ;;
23444
23445 darwin* | rhapsody*)
23446   dynamic_linker="$host_os dyld"
23447   version_type=darwin
23448   need_lib_prefix=no
23449   need_version=no
23450   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23451   soname_spec='${libname}${release}${major}$shared_ext'
23452   shlibpath_overrides_runpath=yes
23453   shlibpath_var=DYLD_LIBRARY_PATH
23454   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23455
23456   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23457   ;;
23458
23459 dgux*)
23460   version_type=linux
23461   need_lib_prefix=no
23462   need_version=no
23463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23464   soname_spec='${libname}${release}${shared_ext}$major'
23465   shlibpath_var=LD_LIBRARY_PATH
23466   ;;
23467
23468 freebsd1*)
23469   dynamic_linker=no
23470   ;;
23471
23472 freebsd* | dragonfly*)
23473   # DragonFly does not have aout.  When/if they implement a new
23474   # versioning mechanism, adjust this.
23475   if test -x /usr/bin/objformat; then
23476     objformat=`/usr/bin/objformat`
23477   else
23478     case $host_os in
23479     freebsd[123]*) objformat=aout ;;
23480     *) objformat=elf ;;
23481     esac
23482   fi
23483   version_type=freebsd-$objformat
23484   case $version_type in
23485     freebsd-elf*)
23486       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23487       need_version=no
23488       need_lib_prefix=no
23489       ;;
23490     freebsd-*)
23491       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23492       need_version=yes
23493       ;;
23494   esac
23495   shlibpath_var=LD_LIBRARY_PATH
23496   case $host_os in
23497   freebsd2*)
23498     shlibpath_overrides_runpath=yes
23499     ;;
23500   freebsd3.[01]* | freebsdelf3.[01]*)
23501     shlibpath_overrides_runpath=yes
23502     hardcode_into_libs=yes
23503     ;;
23504   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23505   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23506     shlibpath_overrides_runpath=no
23507     hardcode_into_libs=yes
23508     ;;
23509   *) # from 4.6 on, and DragonFly
23510     shlibpath_overrides_runpath=yes
23511     hardcode_into_libs=yes
23512     ;;
23513   esac
23514   ;;
23515
23516 gnu*)
23517   version_type=linux
23518   need_lib_prefix=no
23519   need_version=no
23520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23521   soname_spec='${libname}${release}${shared_ext}$major'
23522   shlibpath_var=LD_LIBRARY_PATH
23523   hardcode_into_libs=yes
23524   ;;
23525
23526 hpux9* | hpux10* | hpux11*)
23527   # Give a soname corresponding to the major version so that dld.sl refuses to
23528   # link against other versions.
23529   version_type=sunos
23530   need_lib_prefix=no
23531   need_version=no
23532   case $host_cpu in
23533   ia64*)
23534     shrext_cmds='.so'
23535     hardcode_into_libs=yes
23536     dynamic_linker="$host_os dld.so"
23537     shlibpath_var=LD_LIBRARY_PATH
23538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23540     soname_spec='${libname}${release}${shared_ext}$major'
23541     if test "X$HPUX_IA64_MODE" = X32; then
23542       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23543     else
23544       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23545     fi
23546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23547     ;;
23548   hppa*64*)
23549     shrext_cmds='.sl'
23550     hardcode_into_libs=yes
23551     dynamic_linker="$host_os dld.sl"
23552     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23553     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23555     soname_spec='${libname}${release}${shared_ext}$major'
23556     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23558     ;;
23559   *)
23560     shrext_cmds='.sl'
23561     dynamic_linker="$host_os dld.sl"
23562     shlibpath_var=SHLIB_PATH
23563     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23565     soname_spec='${libname}${release}${shared_ext}$major'
23566     ;;
23567   esac
23568   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23569   postinstall_cmds='chmod 555 $lib'
23570   ;;
23571
23572 interix[3-9]*)
23573   version_type=linux
23574   need_lib_prefix=no
23575   need_version=no
23576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23577   soname_spec='${libname}${release}${shared_ext}$major'
23578   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23579   shlibpath_var=LD_LIBRARY_PATH
23580   shlibpath_overrides_runpath=no
23581   hardcode_into_libs=yes
23582   ;;
23583
23584 irix5* | irix6* | nonstopux*)
23585   case $host_os in
23586     nonstopux*) version_type=nonstopux ;;
23587     *)
23588         if test "$lt_cv_prog_gnu_ld" = yes; then
23589                 version_type=linux
23590         else
23591                 version_type=irix
23592         fi ;;
23593   esac
23594   need_lib_prefix=no
23595   need_version=no
23596   soname_spec='${libname}${release}${shared_ext}$major'
23597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23598   case $host_os in
23599   irix5* | nonstopux*)
23600     libsuff= shlibsuff=
23601     ;;
23602   *)
23603     case $LD in # libtool.m4 will add one of these switches to LD
23604     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23605       libsuff= shlibsuff= libmagic=32-bit;;
23606     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23607       libsuff=32 shlibsuff=N32 libmagic=N32;;
23608     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23609       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23610     *) libsuff= shlibsuff= libmagic=never-match;;
23611     esac
23612     ;;
23613   esac
23614   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23615   shlibpath_overrides_runpath=no
23616   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23617   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23618   hardcode_into_libs=yes
23619   ;;
23620
23621 # No shared lib support for Linux oldld, aout, or coff.
23622 linux*oldld* | linux*aout* | linux*coff*)
23623   dynamic_linker=no
23624   ;;
23625
23626 # This must be Linux ELF.
23627 linux* | k*bsd*-gnu)
23628   version_type=linux
23629   need_lib_prefix=no
23630   need_version=no
23631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23632   soname_spec='${libname}${release}${shared_ext}$major'
23633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23634   shlibpath_var=LD_LIBRARY_PATH
23635   shlibpath_overrides_runpath=no
23636   # Some binutils ld are patched to set DT_RUNPATH
23637   save_LDFLAGS=$LDFLAGS
23638   save_libdir=$libdir
23639   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
23640        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
23641   cat >conftest.$ac_ext <<_ACEOF
23642       program main
23643
23644       end
23645 _ACEOF
23646 rm -f conftest.$ac_objext conftest$ac_exeext
23647 if { (ac_try="$ac_link"
23648 case "(($ac_try" in
23649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650   *) ac_try_echo=$ac_try;;
23651 esac
23652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23653 $as_echo "$ac_try_echo") >&5
23654   (eval "$ac_link") 2>conftest.er1
23655   ac_status=$?
23656   grep -v '^ *+' conftest.er1 >conftest.err
23657   rm -f conftest.er1
23658   cat conftest.err >&5
23659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); } && {
23661          test -z "$ac_f77_werror_flag" ||
23662          test ! -s conftest.err
23663        } && test -s conftest$ac_exeext && {
23664          test "$cross_compiling" = yes ||
23665          $as_test_x conftest$ac_exeext
23666        }; then
23667   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
23668   shlibpath_overrides_runpath=yes
23669 fi
23670
23671 else
23672   $as_echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23674
23675
23676 fi
23677
23678 rm -rf conftest.dSYM
23679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23680       conftest$ac_exeext conftest.$ac_ext
23681   LDFLAGS=$save_LDFLAGS
23682   libdir=$save_libdir
23683
23684   # This implies no fast_install, which is unacceptable.
23685   # Some rework will be needed to allow for fast_install
23686   # before this can be enabled.
23687   hardcode_into_libs=yes
23688
23689   # Append ld.so.conf contents to the search path
23690   if test -f /etc/ld.so.conf; then
23691     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' ' '`
23692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23693   fi
23694
23695   # We used to test for /lib/ld.so.1 and disable shared libraries on
23696   # powerpc, because MkLinux only supported shared libraries with the
23697   # GNU dynamic linker.  Since this was broken with cross compilers,
23698   # most powerpc-linux boxes support dynamic linking these days and
23699   # people can always --disable-shared, the test was removed, and we
23700   # assume the GNU/Linux dynamic linker is in use.
23701   dynamic_linker='GNU/Linux ld.so'
23702   ;;
23703
23704 netbsd*)
23705   version_type=sunos
23706   need_lib_prefix=no
23707   need_version=no
23708   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23710     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23711     dynamic_linker='NetBSD (a.out) ld.so'
23712   else
23713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23714     soname_spec='${libname}${release}${shared_ext}$major'
23715     dynamic_linker='NetBSD ld.elf_so'
23716   fi
23717   shlibpath_var=LD_LIBRARY_PATH
23718   shlibpath_overrides_runpath=yes
23719   hardcode_into_libs=yes
23720   ;;
23721
23722 newsos6)
23723   version_type=linux
23724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23725   shlibpath_var=LD_LIBRARY_PATH
23726   shlibpath_overrides_runpath=yes
23727   ;;
23728
23729 *nto* | *qnx*)
23730   version_type=qnx
23731   need_lib_prefix=no
23732   need_version=no
23733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23734   soname_spec='${libname}${release}${shared_ext}$major'
23735   shlibpath_var=LD_LIBRARY_PATH
23736   shlibpath_overrides_runpath=no
23737   hardcode_into_libs=yes
23738   dynamic_linker='ldqnx.so'
23739   ;;
23740
23741 openbsd*)
23742   version_type=sunos
23743   sys_lib_dlsearch_path_spec="/usr/lib"
23744   need_lib_prefix=no
23745   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23746   case $host_os in
23747     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
23748     *)                          need_version=no  ;;
23749   esac
23750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23752   shlibpath_var=LD_LIBRARY_PATH
23753   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23754     case $host_os in
23755       openbsd2.[89] | openbsd2.[89].*)
23756         shlibpath_overrides_runpath=no
23757         ;;
23758       *)
23759         shlibpath_overrides_runpath=yes
23760         ;;
23761       esac
23762   else
23763     shlibpath_overrides_runpath=yes
23764   fi
23765   ;;
23766
23767 os2*)
23768   libname_spec='$name'
23769   shrext_cmds=".dll"
23770   need_lib_prefix=no
23771   library_names_spec='$libname${shared_ext} $libname.a'
23772   dynamic_linker='OS/2 ld.exe'
23773   shlibpath_var=LIBPATH
23774   ;;
23775
23776 osf3* | osf4* | osf5*)
23777   version_type=osf
23778   need_lib_prefix=no
23779   need_version=no
23780   soname_spec='${libname}${release}${shared_ext}$major'
23781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23782   shlibpath_var=LD_LIBRARY_PATH
23783   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23784   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23785   ;;
23786
23787 rdos*)
23788   dynamic_linker=no
23789   ;;
23790
23791 solaris*)
23792   version_type=linux
23793   need_lib_prefix=no
23794   need_version=no
23795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23796   soname_spec='${libname}${release}${shared_ext}$major'
23797   shlibpath_var=LD_LIBRARY_PATH
23798   shlibpath_overrides_runpath=yes
23799   hardcode_into_libs=yes
23800   # ldd complains unless libraries are executable
23801   postinstall_cmds='chmod +x $lib'
23802   ;;
23803
23804 sunos4*)
23805   version_type=sunos
23806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23807   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23808   shlibpath_var=LD_LIBRARY_PATH
23809   shlibpath_overrides_runpath=yes
23810   if test "$with_gnu_ld" = yes; then
23811     need_lib_prefix=no
23812   fi
23813   need_version=yes
23814   ;;
23815
23816 sysv4 | sysv4.3*)
23817   version_type=linux
23818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23819   soname_spec='${libname}${release}${shared_ext}$major'
23820   shlibpath_var=LD_LIBRARY_PATH
23821   case $host_vendor in
23822     sni)
23823       shlibpath_overrides_runpath=no
23824       need_lib_prefix=no
23825       runpath_var=LD_RUN_PATH
23826       ;;
23827     siemens)
23828       need_lib_prefix=no
23829       ;;
23830     motorola)
23831       need_lib_prefix=no
23832       need_version=no
23833       shlibpath_overrides_runpath=no
23834       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23835       ;;
23836   esac
23837   ;;
23838
23839 sysv4*MP*)
23840   if test -d /usr/nec ;then
23841     version_type=linux
23842     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23843     soname_spec='$libname${shared_ext}.$major'
23844     shlibpath_var=LD_LIBRARY_PATH
23845   fi
23846   ;;
23847
23848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23849   version_type=freebsd-elf
23850   need_lib_prefix=no
23851   need_version=no
23852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23853   soname_spec='${libname}${release}${shared_ext}$major'
23854   shlibpath_var=LD_LIBRARY_PATH
23855   shlibpath_overrides_runpath=yes
23856   hardcode_into_libs=yes
23857   if test "$with_gnu_ld" = yes; then
23858     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23859   else
23860     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23861     case $host_os in
23862       sco3.2v5*)
23863         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23864         ;;
23865     esac
23866   fi
23867   sys_lib_dlsearch_path_spec='/usr/lib'
23868   ;;
23869
23870 tpf*)
23871   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
23872   version_type=linux
23873   need_lib_prefix=no
23874   need_version=no
23875   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23876   shlibpath_var=LD_LIBRARY_PATH
23877   shlibpath_overrides_runpath=no
23878   hardcode_into_libs=yes
23879   ;;
23880
23881 uts4*)
23882   version_type=linux
23883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23884   soname_spec='${libname}${release}${shared_ext}$major'
23885   shlibpath_var=LD_LIBRARY_PATH
23886   ;;
23887
23888 *)
23889   dynamic_linker=no
23890   ;;
23891 esac
23892 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23893 $as_echo "$dynamic_linker" >&6; }
23894 test "$dynamic_linker" = no && can_build_shared=no
23895
23896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23897 if test "$GCC" = yes; then
23898   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23899 fi
23900
23901 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23902   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23903 fi
23904 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23905   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23906 fi
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23944 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23945 hardcode_action_F77=
23946 if test -n "$hardcode_libdir_flag_spec_F77" ||
23947    test -n "$runpath_var_F77" ||
23948    test "X$hardcode_automatic_F77" = "Xyes" ; then
23949
23950   # We can hardcode non-existent directories.
23951   if test "$hardcode_direct_F77" != no &&
23952      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23953      # have to relink, otherwise we might link with an installed library
23954      # when we should be linking with a yet-to-be-installed one
23955      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23956      test "$hardcode_minus_L_F77" != no; then
23957     # Linking always hardcodes the temporary library directory.
23958     hardcode_action_F77=relink
23959   else
23960     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23961     hardcode_action_F77=immediate
23962   fi
23963 else
23964   # We cannot hardcode anything, or else we can only hardcode existing
23965   # directories.
23966   hardcode_action_F77=unsupported
23967 fi
23968 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23969 $as_echo "$hardcode_action_F77" >&6; }
23970
23971 if test "$hardcode_action_F77" = relink ||
23972    test "$inherit_rpath_F77" = yes; then
23973   # Fast installation is not supported
23974   enable_fast_install=no
23975 elif test "$shlibpath_overrides_runpath" = yes ||
23976      test "$enable_shared" = no; then
23977   # Fast installation is not necessary
23978   enable_fast_install=needless
23979 fi
23980
23981
23982
23983
23984
23985
23986
23987   fi # test -n "$compiler"
23988
23989   GCC=$lt_save_GCC
23990   CC="$lt_save_CC"
23991 fi # test "$_lt_disable_F77" != yes
23992
23993 ac_ext=c
23994 ac_cpp='$CPP $CPPFLAGS'
23995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009         ac_config_commands="$ac_config_commands libtool"
24010
24011
24012
24013
24014 # Only expand once:
24015
24016
24017
24018
24019
24020 { $as_echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
24021 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
24022 if test "${gmp_cv_c_attribute_mode+set}" = set; then
24023   $as_echo_n "(cached) " >&6
24024 else
24025   cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h.  */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h.  */
24031 typedef int SItype __attribute__ ((mode (SI)));
24032 int
24033 main ()
24034 {
24035
24036   ;
24037   return 0;
24038 }
24039 _ACEOF
24040 rm -f conftest.$ac_objext
24041 if { (ac_try="$ac_compile"
24042 case "(($ac_try" in
24043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044   *) ac_try_echo=$ac_try;;
24045 esac
24046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24047 $as_echo "$ac_try_echo") >&5
24048   (eval "$ac_compile") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } && {
24055          test -z "$ac_c_werror_flag" ||
24056          test ! -s conftest.err
24057        } && test -s conftest.$ac_objext; then
24058   gmp_cv_c_attribute_mode=yes
24059 else
24060   $as_echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063         gmp_cv_c_attribute_mode=no
24064 fi
24065
24066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067
24068 fi
24069 { $as_echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
24070 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
24071 if test $gmp_cv_c_attribute_mode = yes; then
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_ATTRIBUTE_MODE 1
24075 _ACEOF
24076
24077 fi
24078
24079
24080
24081
24082 { $as_echo "$as_me:$LINENO: checking for recent GMP" >&5
24083 $as_echo_n "checking for recent GMP... " >&6; }
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h.  */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h.  */
24090
24091 #include "gmp.h"
24092 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
24093 # error "min GMP version is 4.1.0"
24094 error
24095 #endif
24096
24097 _ACEOF
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102   *) ac_try_echo=$ac_try;;
24103 esac
24104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24105 $as_echo "$ac_try_echo") >&5
24106   (eval "$ac_compile") 2>conftest.er1
24107   ac_status=$?
24108   grep -v '^ *+' conftest.er1 >conftest.err
24109   rm -f conftest.er1
24110   cat conftest.err >&5
24111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); } && {
24113          test -z "$ac_c_werror_flag" ||
24114          test ! -s conftest.err
24115        } && test -s conftest.$ac_objext; then
24116   { $as_echo "$as_me:$LINENO: result: yes" >&5
24117 $as_echo "yes" >&6; }
24118 else
24119   $as_echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122
24123  { $as_echo "$as_me:$LINENO: result: no" >&5
24124 $as_echo "no" >&6; }
24125  { { $as_echo "$as_me:$LINENO: error: GMP 4.1.0 min required" >&5
24126 $as_echo "$as_me: error: GMP 4.1.0 min required" >&2;}
24127    { (exit 1); exit 1; }; }
24128
24129 fi
24130
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132
24133 { $as_echo "$as_me:$LINENO: checking for gmp internal files" >&5
24134 $as_echo_n "checking for gmp internal files... " >&6; }
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h.  */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h.  */
24141
24142 #include "gmp.h"
24143 #include "gmp-impl.h"
24144 #include "longlong.h"
24145
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151   *) ac_try_echo=$ac_try;;
24152 esac
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155   (eval "$ac_compile") 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } && {
24162          test -z "$ac_c_werror_flag" ||
24163          test ! -s conftest.err
24164        } && test -s conftest.$ac_objext; then
24165
24166   { $as_echo "$as_me:$LINENO: result: yes" >&5
24167 $as_echo "yes" >&6; }
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define MPFR_HAVE_GMP_IMPL 1
24171 _ACEOF
24172
24173   gmp_internal_file_check=yes
24174
24175 else
24176   $as_echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24178
24179
24180   { $as_echo "$as_me:$LINENO: result: no" >&5
24181 $as_echo "no" >&6; }
24182   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24183 # for constant arguments.  Useless!
24184 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
24185 $as_echo_n "checking for working alloca.h... " >&6; }
24186 if test "${ac_cv_working_alloca_h+set}" = set; then
24187   $as_echo_n "(cached) " >&6
24188 else
24189   cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h.  */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h.  */
24195 #include <alloca.h>
24196 int
24197 main ()
24198 {
24199 char *p = (char *) alloca (2 * sizeof (int));
24200                           if (p) return 0;
24201   ;
24202   return 0;
24203 }
24204 _ACEOF
24205 rm -f conftest.$ac_objext conftest$ac_exeext
24206 if { (ac_try="$ac_link"
24207 case "(($ac_try" in
24208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24209   *) ac_try_echo=$ac_try;;
24210 esac
24211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24212 $as_echo "$ac_try_echo") >&5
24213   (eval "$ac_link") 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } && {
24220          test -z "$ac_c_werror_flag" ||
24221          test ! -s conftest.err
24222        } && test -s conftest$ac_exeext && {
24223          test "$cross_compiling" = yes ||
24224          $as_test_x conftest$ac_exeext
24225        }; then
24226   ac_cv_working_alloca_h=yes
24227 else
24228   $as_echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231         ac_cv_working_alloca_h=no
24232 fi
24233
24234 rm -rf conftest.dSYM
24235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24236       conftest$ac_exeext conftest.$ac_ext
24237 fi
24238 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24239 $as_echo "$ac_cv_working_alloca_h" >&6; }
24240 if test $ac_cv_working_alloca_h = yes; then
24241
24242 cat >>confdefs.h <<\_ACEOF
24243 #define HAVE_ALLOCA_H 1
24244 _ACEOF
24245
24246 fi
24247
24248 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
24249 $as_echo_n "checking for alloca... " >&6; }
24250 if test "${ac_cv_func_alloca_works+set}" = set; then
24251   $as_echo_n "(cached) " >&6
24252 else
24253   cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h.  */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h.  */
24259 #ifdef __GNUC__
24260 # define alloca __builtin_alloca
24261 #else
24262 # ifdef _MSC_VER
24263 #  include <malloc.h>
24264 #  define alloca _alloca
24265 # else
24266 #  ifdef HAVE_ALLOCA_H
24267 #   include <alloca.h>
24268 #  else
24269 #   ifdef _AIX
24270  #pragma alloca
24271 #   else
24272 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24273 char *alloca ();
24274 #    endif
24275 #   endif
24276 #  endif
24277 # endif
24278 #endif
24279
24280 int
24281 main ()
24282 {
24283 char *p = (char *) alloca (1);
24284                                     if (p) return 0;
24285   ;
24286   return 0;
24287 }
24288 _ACEOF
24289 rm -f conftest.$ac_objext conftest$ac_exeext
24290 if { (ac_try="$ac_link"
24291 case "(($ac_try" in
24292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293   *) ac_try_echo=$ac_try;;
24294 esac
24295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24296 $as_echo "$ac_try_echo") >&5
24297   (eval "$ac_link") 2>conftest.er1
24298   ac_status=$?
24299   grep -v '^ *+' conftest.er1 >conftest.err
24300   rm -f conftest.er1
24301   cat conftest.err >&5
24302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); } && {
24304          test -z "$ac_c_werror_flag" ||
24305          test ! -s conftest.err
24306        } && test -s conftest$ac_exeext && {
24307          test "$cross_compiling" = yes ||
24308          $as_test_x conftest$ac_exeext
24309        }; then
24310   ac_cv_func_alloca_works=yes
24311 else
24312   $as_echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24314
24315         ac_cv_func_alloca_works=no
24316 fi
24317
24318 rm -rf conftest.dSYM
24319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24320       conftest$ac_exeext conftest.$ac_ext
24321 fi
24322 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24323 $as_echo "$ac_cv_func_alloca_works" >&6; }
24324
24325 if test $ac_cv_func_alloca_works = yes; then
24326
24327 cat >>confdefs.h <<\_ACEOF
24328 #define HAVE_ALLOCA 1
24329 _ACEOF
24330
24331 else
24332   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24333 # that cause trouble.  Some versions do not even contain alloca or
24334 # contain a buggy version.  If you still want to use their alloca,
24335 # use ar to extract alloca.o from them instead of compiling alloca.c.
24336
24337 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24338
24339 cat >>confdefs.h <<\_ACEOF
24340 #define C_ALLOCA 1
24341 _ACEOF
24342
24343
24344 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24345 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24346 if test "${ac_cv_os_cray+set}" = set; then
24347   $as_echo_n "(cached) " >&6
24348 else
24349   cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h.  */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h.  */
24355 #if defined CRAY && ! defined CRAY2
24356 webecray
24357 #else
24358 wenotbecray
24359 #endif
24360
24361 _ACEOF
24362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24363   $EGREP "webecray" >/dev/null 2>&1; then
24364   ac_cv_os_cray=yes
24365 else
24366   ac_cv_os_cray=no
24367 fi
24368 rm -f conftest*
24369
24370 fi
24371 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24372 $as_echo "$ac_cv_os_cray" >&6; }
24373 if test $ac_cv_os_cray = yes; then
24374   for ac_func in _getb67 GETB67 getb67; do
24375     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24376 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24377 $as_echo_n "checking for $ac_func... " >&6; }
24378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24379   $as_echo_n "(cached) " >&6
24380 else
24381   cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24389 #define $ac_func innocuous_$ac_func
24390
24391 /* System header to define __stub macros and hopefully few prototypes,
24392     which can conflict with char $ac_func (); below.
24393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394     <limits.h> exists even on freestanding compilers.  */
24395
24396 #ifdef __STDC__
24397 # include <limits.h>
24398 #else
24399 # include <assert.h>
24400 #endif
24401
24402 #undef $ac_func
24403
24404 /* Override any GCC internal prototype to avoid an error.
24405    Use char because int might match the return type of a GCC
24406    builtin and then its argument prototype would still apply.  */
24407 #ifdef __cplusplus
24408 extern "C"
24409 #endif
24410 char $ac_func ();
24411 /* The GNU C library defines this for functions which it implements
24412     to always fail with ENOSYS.  Some functions are actually named
24413     something starting with __ and the normal name is an alias.  */
24414 #if defined __stub_$ac_func || defined __stub___$ac_func
24415 choke me
24416 #endif
24417
24418 int
24419 main ()
24420 {
24421 return $ac_func ();
24422   ;
24423   return 0;
24424 }
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (ac_try="$ac_link"
24428 case "(($ac_try" in
24429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430   *) ac_try_echo=$ac_try;;
24431 esac
24432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24433 $as_echo "$ac_try_echo") >&5
24434   (eval "$ac_link") 2>conftest.er1
24435   ac_status=$?
24436   grep -v '^ *+' conftest.er1 >conftest.err
24437   rm -f conftest.er1
24438   cat conftest.err >&5
24439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); } && {
24441          test -z "$ac_c_werror_flag" ||
24442          test ! -s conftest.err
24443        } && test -s conftest$ac_exeext && {
24444          test "$cross_compiling" = yes ||
24445          $as_test_x conftest$ac_exeext
24446        }; then
24447   eval "$as_ac_var=yes"
24448 else
24449   $as_echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24451
24452         eval "$as_ac_var=no"
24453 fi
24454
24455 rm -rf conftest.dSYM
24456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24457       conftest$ac_exeext conftest.$ac_ext
24458 fi
24459 ac_res=`eval 'as_val=${'$as_ac_var'}
24460                  $as_echo "$as_val"'`
24461                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24462 $as_echo "$ac_res" >&6; }
24463 as_val=`eval 'as_val=${'$as_ac_var'}
24464                  $as_echo "$as_val"'`
24465    if test "x$as_val" = x""yes; then
24466
24467 cat >>confdefs.h <<_ACEOF
24468 #define CRAY_STACKSEG_END $ac_func
24469 _ACEOF
24470
24471     break
24472 fi
24473
24474   done
24475 fi
24476
24477 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24478 $as_echo_n "checking stack direction for C alloca... " >&6; }
24479 if test "${ac_cv_c_stack_direction+set}" = set; then
24480   $as_echo_n "(cached) " >&6
24481 else
24482   if test "$cross_compiling" = yes; then
24483   ac_cv_c_stack_direction=0
24484 else
24485   cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h.  */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h.  */
24491 $ac_includes_default
24492 int
24493 find_stack_direction ()
24494 {
24495   static char *addr = 0;
24496   auto char dummy;
24497   if (addr == 0)
24498     {
24499       addr = &dummy;
24500       return find_stack_direction ();
24501     }
24502   else
24503     return (&dummy > addr) ? 1 : -1;
24504 }
24505
24506 int
24507 main ()
24508 {
24509   return find_stack_direction () < 0;
24510 }
24511 _ACEOF
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520   (eval "$ac_link") 2>&5
24521   ac_status=$?
24522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24524   { (case "(($ac_try" in
24525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526   *) ac_try_echo=$ac_try;;
24527 esac
24528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24529 $as_echo "$ac_try_echo") >&5
24530   (eval "$ac_try") 2>&5
24531   ac_status=$?
24532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); }; }; then
24534   ac_cv_c_stack_direction=1
24535 else
24536   $as_echo "$as_me: program exited with status $ac_status" >&5
24537 $as_echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540 ( exit $ac_status )
24541 ac_cv_c_stack_direction=-1
24542 fi
24543 rm -rf conftest.dSYM
24544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24545 fi
24546
24547
24548 fi
24549 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24550 $as_echo "$ac_cv_c_stack_direction" >&6; }
24551
24552 cat >>confdefs.h <<_ACEOF
24553 #define STACK_DIRECTION $ac_cv_c_stack_direction
24554 _ACEOF
24555
24556
24557 fi
24558
24559
24560 fi
24561
24562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563
24564 if test -n "$gmp_internal_file_check" ; then
24565   { $as_echo "$as_me:$LINENO: checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB" >&5
24566 $as_echo_n "checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB... " >&6; }
24567   if test "$cross_compiling" = yes; then
24568   { $as_echo "$as_me:$LINENO: result: can't test" >&5
24569 $as_echo "can't test" >&6; }
24570 else
24571   cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577
24578 #include <limits.h>
24579 #include "gmp.h"
24580 #include "gmp-impl.h"
24581
24582 int
24583 main ()
24584 {
24585
24586   return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
24587          && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
24588
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest$ac_exeext
24594 if { (ac_try="$ac_link"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24600 $as_echo "$ac_try_echo") >&5
24601   (eval "$ac_link") 2>&5
24602   ac_status=$?
24603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24605   { (case "(($ac_try" in
24606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607   *) ac_try_echo=$ac_try;;
24608 esac
24609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24610 $as_echo "$ac_try_echo") >&5
24611   (eval "$ac_try") 2>&5
24612   ac_status=$?
24613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; }; then
24615   { $as_echo "$as_me:$LINENO: result: yes" >&5
24616 $as_echo "yes" >&6; }
24617 else
24618   $as_echo "$as_me: program exited with status $ac_status" >&5
24619 $as_echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622 ( exit $ac_status )
24623
24624        { $as_echo "$as_me:$LINENO: result: no" >&5
24625 $as_echo "no" >&6; }
24626        { { $as_echo "$as_me:$LINENO: error: BITS_PER_MP_LIMB or BYTES_PER_MP_LIMB are incorrect.
24627 You probably need to change some of the GMP or MPFR compile options." >&5
24628 $as_echo "$as_me: error: BITS_PER_MP_LIMB or BYTES_PER_MP_LIMB are incorrect.
24629 You probably need to change some of the GMP or MPFR compile options." >&2;}
24630    { (exit 1); exit 1; }; }
24631 fi
24632 rm -rf conftest.dSYM
24633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24634 fi
24635
24636
24637 fi
24638
24639
24640 if test "$dont_link_with_gmp" = yes ; then
24641 LIBS="-lgmp $LIBS"
24642 else
24643
24644 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
24645 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
24646 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
24647   $as_echo_n "(cached) " >&6
24648 else
24649   ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-lgmp  $LIBS"
24651 cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657
24658 /* Override any GCC internal prototype to avoid an error.
24659    Use char because int might match the return type of a GCC
24660    builtin and then its argument prototype would still apply.  */
24661 #ifdef __cplusplus
24662 extern "C"
24663 #endif
24664 char __gmpz_init ();
24665 int
24666 main ()
24667 {
24668 return __gmpz_init ();
24669   ;
24670   return 0;
24671 }
24672 _ACEOF
24673 rm -f conftest.$ac_objext conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677   *) ac_try_echo=$ac_try;;
24678 esac
24679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24680 $as_echo "$ac_try_echo") >&5
24681   (eval "$ac_link") 2>conftest.er1
24682   ac_status=$?
24683   grep -v '^ *+' conftest.er1 >conftest.err
24684   rm -f conftest.er1
24685   cat conftest.err >&5
24686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687   (exit $ac_status); } && {
24688          test -z "$ac_c_werror_flag" ||
24689          test ! -s conftest.err
24690        } && test -s conftest$ac_exeext && {
24691          test "$cross_compiling" = yes ||
24692          $as_test_x conftest$ac_exeext
24693        }; then
24694   ac_cv_lib_gmp___gmpz_init=yes
24695 else
24696   $as_echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699         ac_cv_lib_gmp___gmpz_init=no
24700 fi
24701
24702 rm -rf conftest.dSYM
24703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24704       conftest$ac_exeext conftest.$ac_ext
24705 LIBS=$ac_check_lib_save_LIBS
24706 fi
24707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
24708 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
24709 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
24710   LIBS="-lgmp $LIBS"
24711 else
24712   { { $as_echo "$as_me:$LINENO: error: libgmp not found or uses a different ABI.
24713 Please read the INSTALL file -- see \"In case of problem\"." >&5
24714 $as_echo "$as_me: error: libgmp not found or uses a different ABI.
24715 Please read the INSTALL file -- see \"In case of problem\"." >&2;}
24716    { (exit 1); exit 1; }; }
24717 fi
24718
24719
24720 { $as_echo "$as_me:$LINENO: checking if gmp.h version and libgmp version are the same" >&5
24721 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
24722 saved_LD_RUN_PATH="$LD_RUN_PATH"
24723 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
24724 export LD_RUN_PATH
24725 if test "$cross_compiling" = yes; then
24726   { $as_echo "$as_me:$LINENO: result: can not test" >&5
24727 $as_echo "can not test" >&6; }
24728
24729 else
24730   cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736
24737 #include <stdio.h>
24738 #include <string.h>
24739 #include "gmp.h"
24740
24741 int
24742 main ()
24743 {
24744
24745   char buffer[100];
24746   sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
24747            __GNU_MP_VERSION_PATCHLEVEL);
24748   printf ("(%s/%s) ", buffer, gmp_version);
24749   if (strcmp (buffer, gmp_version) == 0)
24750     return 0;
24751   if (__GNU_MP_VERSION_PATCHLEVEL != 0)
24752     return 1;
24753   sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
24754   return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
24755
24756   ;
24757   return 0;
24758 }
24759 _ACEOF
24760 rm -f conftest$ac_exeext
24761 if { (ac_try="$ac_link"
24762 case "(($ac_try" in
24763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764   *) ac_try_echo=$ac_try;;
24765 esac
24766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768   (eval "$ac_link") 2>&5
24769   ac_status=$?
24770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24772   { (case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24777 $as_echo "$ac_try_echo") >&5
24778   (eval "$ac_try") 2>&5
24779   ac_status=$?
24780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); }; }; then
24782   { $as_echo "$as_me:$LINENO: result: yes" >&5
24783 $as_echo "yes" >&6; }
24784
24785 if test "$ac_cv_type_intmax_t" == yes; then
24786
24787 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%jd\"" >&5
24788 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
24789 if test "$cross_compiling" = yes; then
24790   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24792 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24793 See \`config.log' for more details." >&5
24794 $as_echo "$as_me: error: cannot run test program while cross compiling
24795 See \`config.log' for more details." >&2;}
24796    { (exit 1); exit 1; }; }; }
24797 else
24798   cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h.  */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h.  */
24804
24805 #include <stdio.h>
24806
24807 #ifdef HAVE_STDINT_H
24808 # include <stdint.h>
24809 #endif
24810 #ifdef HAVE_INTTYPES_H
24811 # include <inttypes.h>
24812 #endif
24813
24814 #include <gmp.h>
24815
24816
24817 int
24818 main ()
24819 {
24820
24821   char s[256];
24822   intmax_t a = 0;
24823   return (gmp_sprintf (s, "%jd", a) != 1) ? 1 : 0;
24824
24825   ;
24826   return 0;
24827 }
24828 _ACEOF
24829 rm -f conftest$ac_exeext
24830 if { (ac_try="$ac_link"
24831 case "(($ac_try" in
24832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833   *) ac_try_echo=$ac_try;;
24834 esac
24835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24836 $as_echo "$ac_try_echo") >&5
24837   (eval "$ac_link") 2>&5
24838   ac_status=$?
24839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24841   { (case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24846 $as_echo "$ac_try_echo") >&5
24847   (eval "$ac_try") 2>&5
24848   ac_status=$?
24849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850   (exit $ac_status); }; }; then
24851   { $as_echo "$as_me:$LINENO: result: yes" >&5
24852 $as_echo "yes" >&6; }
24853
24854 else
24855   $as_echo "$as_me: program exited with status $ac_status" >&5
24856 $as_echo "$as_me: failed program was:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24858
24859 ( exit $ac_status )
24860 { $as_echo "$as_me:$LINENO: result: no" >&5
24861 $as_echo "no" >&6; }
24862
24863 cat >>confdefs.h <<\_ACEOF
24864 #define NPRINTF_J 1
24865 _ACEOF
24866
24867 fi
24868 rm -rf conftest.dSYM
24869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24870 fi
24871
24872
24873
24874 fi
24875
24876
24877 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%hhd\"" >&5
24878 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
24879 if test "$cross_compiling" = yes; then
24880   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24882 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24883 See \`config.log' for more details." >&5
24884 $as_echo "$as_me: error: cannot run test program while cross compiling
24885 See \`config.log' for more details." >&2;}
24886    { (exit 1); exit 1; }; }; }
24887 else
24888   cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894
24895 #include <stdio.h>
24896
24897 #include <gmp.h>
24898
24899
24900 int
24901 main ()
24902 {
24903
24904   char s[256];
24905   char a = 0;
24906   return (gmp_sprintf (s, "%hhd", a) != 1) ? 1 : 0;
24907
24908   ;
24909   return 0;
24910 }
24911 _ACEOF
24912 rm -f conftest$ac_exeext
24913 if { (ac_try="$ac_link"
24914 case "(($ac_try" in
24915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916   *) ac_try_echo=$ac_try;;
24917 esac
24918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24919 $as_echo "$ac_try_echo") >&5
24920   (eval "$ac_link") 2>&5
24921   ac_status=$?
24922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24924   { (case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930   (eval "$ac_try") 2>&5
24931   ac_status=$?
24932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; }; then
24934   { $as_echo "$as_me:$LINENO: result: yes" >&5
24935 $as_echo "yes" >&6; }
24936
24937 else
24938   $as_echo "$as_me: program exited with status $ac_status" >&5
24939 $as_echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24941
24942 ( exit $ac_status )
24943 { $as_echo "$as_me:$LINENO: result: no" >&5
24944 $as_echo "no" >&6; }
24945
24946 cat >>confdefs.h <<\_ACEOF
24947 #define NPRINTF_HH 1
24948 _ACEOF
24949
24950 fi
24951 rm -rf conftest.dSYM
24952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24953 fi
24954
24955
24956
24957
24958
24959 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%lld\"" >&5
24960 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
24961 if test "$cross_compiling" = yes; then
24962   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24964 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24965 See \`config.log' for more details." >&5
24966 $as_echo "$as_me: error: cannot run test program while cross compiling
24967 See \`config.log' for more details." >&2;}
24968    { (exit 1); exit 1; }; }; }
24969 else
24970   cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976
24977 #include <stdio.h>
24978
24979 #include <gmp.h>
24980
24981
24982 int
24983 main ()
24984 {
24985
24986   char s[256];
24987   long long int a = 0;
24988   return (gmp_sprintf (s, "%lld", a) != 1) ? 1 : 0;
24989
24990   ;
24991   return 0;
24992 }
24993 _ACEOF
24994 rm -f conftest$ac_exeext
24995 if { (ac_try="$ac_link"
24996 case "(($ac_try" in
24997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998   *) ac_try_echo=$ac_try;;
24999 esac
25000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25001 $as_echo "$ac_try_echo") >&5
25002   (eval "$ac_link") 2>&5
25003   ac_status=$?
25004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25006   { (case "(($ac_try" in
25007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008   *) ac_try_echo=$ac_try;;
25009 esac
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012   (eval "$ac_try") 2>&5
25013   ac_status=$?
25014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); }; }; then
25016   { $as_echo "$as_me:$LINENO: result: yes" >&5
25017 $as_echo "yes" >&6; }
25018
25019 else
25020   $as_echo "$as_me: program exited with status $ac_status" >&5
25021 $as_echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024 ( exit $ac_status )
25025 { $as_echo "$as_me:$LINENO: result: no" >&5
25026 $as_echo "no" >&6; }
25027
25028 cat >>confdefs.h <<\_ACEOF
25029 #define NPRINTF_LL 1
25030 _ACEOF
25031
25032 fi
25033 rm -rf conftest.dSYM
25034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25035 fi
25036
25037
25038
25039
25040
25041 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%.0Lf\"" >&5
25042 $as_echo_n "checking if gmp_printf supports \"%.0Lf\"... " >&6; }
25043 if test "$cross_compiling" = yes; then
25044   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25046 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25047 See \`config.log' for more details." >&5
25048 $as_echo "$as_me: error: cannot run test program while cross compiling
25049 See \`config.log' for more details." >&2;}
25050    { (exit 1); exit 1; }; }; }
25051 else
25052   cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058
25059 #include <stdio.h>
25060
25061 #include <gmp.h>
25062
25063
25064 int
25065 main ()
25066 {
25067
25068   char s[256];
25069   long double a = 0;
25070   return (gmp_sprintf (s, "%.0Lf", a) != 1) ? 1 : 0;
25071
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 rm -f conftest$ac_exeext
25077 if { (ac_try="$ac_link"
25078 case "(($ac_try" in
25079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080   *) ac_try_echo=$ac_try;;
25081 esac
25082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25083 $as_echo "$ac_try_echo") >&5
25084   (eval "$ac_link") 2>&5
25085   ac_status=$?
25086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25088   { (case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25093 $as_echo "$ac_try_echo") >&5
25094   (eval "$ac_try") 2>&5
25095   ac_status=$?
25096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); }; }; then
25098   { $as_echo "$as_me:$LINENO: result: yes" >&5
25099 $as_echo "yes" >&6; }
25100
25101 else
25102   $as_echo "$as_me: program exited with status $ac_status" >&5
25103 $as_echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106 ( exit $ac_status )
25107 { $as_echo "$as_me:$LINENO: result: no" >&5
25108 $as_echo "no" >&6; }
25109
25110 cat >>confdefs.h <<\_ACEOF
25111 #define NPRINTF_L 1
25112 _ACEOF
25113
25114 fi
25115 rm -rf conftest.dSYM
25116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25117 fi
25118
25119
25120
25121
25122
25123 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%td\"" >&5
25124 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
25125 if test "$cross_compiling" = yes; then
25126   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25128 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25129 See \`config.log' for more details." >&5
25130 $as_echo "$as_me: error: cannot run test program while cross compiling
25131 See \`config.log' for more details." >&2;}
25132    { (exit 1); exit 1; }; }; }
25133 else
25134   cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140
25141 #include <stdio.h>
25142
25143 #if defined (__cplusplus)
25144 #include <cstddef>
25145 #else
25146 #include <stddef.h>
25147 #endif
25148 #include "gmp.h"
25149
25150
25151 int
25152 main ()
25153 {
25154
25155   char s[256];
25156   ptrdiff_t a = 0;
25157   return (gmp_sprintf (s, "%td", a) != 1) ? 1 : 0;
25158
25159   ;
25160   return 0;
25161 }
25162 _ACEOF
25163 rm -f conftest$ac_exeext
25164 if { (ac_try="$ac_link"
25165 case "(($ac_try" in
25166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167   *) ac_try_echo=$ac_try;;
25168 esac
25169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25170 $as_echo "$ac_try_echo") >&5
25171   (eval "$ac_link") 2>&5
25172   ac_status=$?
25173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25175   { (case "(($ac_try" in
25176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177   *) ac_try_echo=$ac_try;;
25178 esac
25179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25180 $as_echo "$ac_try_echo") >&5
25181   (eval "$ac_try") 2>&5
25182   ac_status=$?
25183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); }; }; then
25185   { $as_echo "$as_me:$LINENO: result: yes" >&5
25186 $as_echo "yes" >&6; }
25187
25188 else
25189   $as_echo "$as_me: program exited with status $ac_status" >&5
25190 $as_echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25192
25193 ( exit $ac_status )
25194 { $as_echo "$as_me:$LINENO: result: no" >&5
25195 $as_echo "no" >&6; }
25196
25197 cat >>confdefs.h <<\_ACEOF
25198 #define NPRINTF_T 1
25199 _ACEOF
25200
25201 fi
25202 rm -rf conftest.dSYM
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25204 fi
25205
25206
25207
25208
25209 else
25210   $as_echo "$as_me: program exited with status $ac_status" >&5
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25213
25214 ( exit $ac_status )
25215 { $as_echo "$as_me:$LINENO: result: no" >&5
25216 $as_echo "no" >&6; }
25217     { $as_echo "$as_me:$LINENO: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&5
25218 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&2;}
25219     { $as_echo "$as_me:$LINENO: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
25220 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
25221     { $as_echo "$as_me:$LINENO: WARNING: see the version numbers above)." >&5
25222 $as_echo "$as_me: WARNING: see the version numbers above)." >&2;}
25223     { $as_echo "$as_me:$LINENO: WARNING: However since we can't use 'libtool' inside the configure," >&5
25224 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
25225     { $as_echo "$as_me:$LINENO: WARNING: we can't be sure. See 'config.log' for details." >&5
25226 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
25227
25228 fi
25229 rm -rf conftest.dSYM
25230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25231 fi
25232
25233
25234 LD_RUN_PATH="$saved_LD_RUN_PATH"
25235
25236 fi
25237
25238 if test -f confdefs.h; then
25239   sed '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
25240   sed '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
25241   sed '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
25242   sed '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
25243   sed '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
25244   sed '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
25245   sed '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
25246   sed '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
25247   sed '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
25248   sed '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
25249   sed '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
25250   sed '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
25251   sed '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
25252   sed '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
25253   sed '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
25254
25255   mv confdefs.tmp confdefs.h
25256 fi
25257
25258 ac_config_files="$ac_config_files Makefile tests/Makefile mparam.h:mparam_h.in"
25259
25260 cat >confcache <<\_ACEOF
25261 # This file is a shell script that caches the results of configure
25262 # tests run on this system so they can be shared between configure
25263 # scripts and configure runs, see configure's option --config-cache.
25264 # It is not useful on other systems.  If it contains results you don't
25265 # want to keep, you may remove or edit it.
25266 #
25267 # config.status only pays attention to the cache file if you give it
25268 # the --recheck option to rerun configure.
25269 #
25270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25272 # following values.
25273
25274 _ACEOF
25275
25276 # The following way of writing the cache mishandles newlines in values,
25277 # but we know of no workaround that is simple, portable, and efficient.
25278 # So, we kill variables containing newlines.
25279 # Ultrix sh set writes to stderr and can't be redirected directly,
25280 # and sets the high bit in the cache file unless we assign to the vars.
25281 (
25282   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25283     eval ac_val=\$$ac_var
25284     case $ac_val in #(
25285     *${as_nl}*)
25286       case $ac_var in #(
25287       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25289       esac
25290       case $ac_var in #(
25291       _ | IFS | as_nl) ;; #(
25292       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25293       *) $as_unset $ac_var ;;
25294       esac ;;
25295     esac
25296   done
25297
25298   (set) 2>&1 |
25299     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25300     *${as_nl}ac_space=\ *)
25301       # `set' does not quote correctly, so add quotes (double-quote
25302       # substitution turns \\\\ into \\, and sed turns \\ into \).
25303       sed -n \
25304         "s/'/'\\\\''/g;
25305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25306       ;; #(
25307     *)
25308       # `set' quotes correctly as required by POSIX, so do not add quotes.
25309       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25310       ;;
25311     esac |
25312     sort
25313 ) |
25314   sed '
25315      /^ac_cv_env_/b end
25316      t clear
25317      :clear
25318      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25319      t end
25320      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25321      :end' >>confcache
25322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25323   if test -w "$cache_file"; then
25324     test "x$cache_file" != "x/dev/null" &&
25325       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25326 $as_echo "$as_me: updating cache $cache_file" >&6;}
25327     cat confcache >$cache_file
25328   else
25329     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25330 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25331   fi
25332 fi
25333 rm -f confcache
25334
25335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25336 # Let make expand exec_prefix.
25337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25338
25339 # Transform confdefs.h into DEFS.
25340 # Protect against shell expansion while executing Makefile rules.
25341 # Protect against Makefile macro expansion.
25342 #
25343 # If the first sed substitution is executed (which looks for macros that
25344 # take arguments), then branch to the quote section.  Otherwise,
25345 # look for a macro that doesn't take arguments.
25346 ac_script='
25347 :mline
25348 /\\$/{
25349  N
25350  s,\\\n,,
25351  b mline
25352 }
25353 t clear
25354 :clear
25355 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
25356 t quote
25357 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
25358 t quote
25359 b any
25360 :quote
25361 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
25362 s/\[/\\&/g
25363 s/\]/\\&/g
25364 s/\$/$$/g
25365 H
25366 :any
25367 ${
25368         g
25369         s/^\n//
25370         s/\n/ /g
25371         p
25372 }
25373 '
25374 DEFS=`sed -n "$ac_script" confdefs.h`
25375
25376
25377 ac_libobjs=
25378 ac_ltlibobjs=
25379 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25380   # 1. Remove the extension, and $U if already installed.
25381   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25382   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25383   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25384   #    will be set to the directory where LIBOBJS objects are built.
25385   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25386   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25387 done
25388 LIBOBJS=$ac_libobjs
25389
25390 LTLIBOBJS=$ac_ltlibobjs
25391
25392
25393 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25394   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25395 Usually this means the macro was only invoked conditionally." >&5
25396 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25397 Usually this means the macro was only invoked conditionally." >&2;}
25398    { (exit 1); exit 1; }; }
25399 fi
25400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25401   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25402 Usually this means the macro was only invoked conditionally." >&5
25403 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25404 Usually this means the macro was only invoked conditionally." >&2;}
25405    { (exit 1); exit 1; }; }
25406 fi
25407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25408   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25409 Usually this means the macro was only invoked conditionally." >&5
25410 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25411 Usually this means the macro was only invoked conditionally." >&2;}
25412    { (exit 1); exit 1; }; }
25413 fi
25414 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25415   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25416 Usually this means the macro was only invoked conditionally." >&5
25417 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25418 Usually this means the macro was only invoked conditionally." >&2;}
25419    { (exit 1); exit 1; }; }
25420 fi
25421 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25422   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25423 Usually this means the macro was only invoked conditionally." >&5
25424 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25425 Usually this means the macro was only invoked conditionally." >&2;}
25426    { (exit 1); exit 1; }; }
25427 fi
25428
25429 : ${CONFIG_STATUS=./config.status}
25430 ac_write_fail=0
25431 ac_clean_files_save=$ac_clean_files
25432 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25433 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25434 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25435 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25436 #! $SHELL
25437 # Generated by $as_me.
25438 # Run this file to recreate the current configuration.
25439 # Compiler output produced by configure, useful for debugging
25440 # configure, is in config.log if it exists.
25441
25442 debug=false
25443 ac_cs_recheck=false
25444 ac_cs_silent=false
25445 SHELL=\${CONFIG_SHELL-$SHELL}
25446 _ACEOF
25447
25448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25449 ## --------------------- ##
25450 ## M4sh Initialization.  ##
25451 ## --------------------- ##
25452
25453 # Be more Bourne compatible
25454 DUALCASE=1; export DUALCASE # for MKS sh
25455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25456   emulate sh
25457   NULLCMD=:
25458   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25459   # is contrary to our usage.  Disable this feature.
25460   alias -g '${1+"$@"}'='"$@"'
25461   setopt NO_GLOB_SUBST
25462 else
25463   case `(set -o) 2>/dev/null` in
25464   *posix*) set -o posix ;;
25465 esac
25466
25467 fi
25468
25469
25470
25471
25472 # PATH needs CR
25473 # Avoid depending upon Character Ranges.
25474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25477 as_cr_digits='0123456789'
25478 as_cr_alnum=$as_cr_Letters$as_cr_digits
25479
25480 as_nl='
25481 '
25482 export as_nl
25483 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25484 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25486 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25487 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25488   as_echo='printf %s\n'
25489   as_echo_n='printf %s'
25490 else
25491   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25492     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25493     as_echo_n='/usr/ucb/echo -n'
25494   else
25495     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25496     as_echo_n_body='eval
25497       arg=$1;
25498       case $arg in
25499       *"$as_nl"*)
25500         expr "X$arg" : "X\\(.*\\)$as_nl";
25501         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25502       esac;
25503       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25504     '
25505     export as_echo_n_body
25506     as_echo_n='sh -c $as_echo_n_body as_echo'
25507   fi
25508   export as_echo_body
25509   as_echo='sh -c $as_echo_body as_echo'
25510 fi
25511
25512 # The user is always right.
25513 if test "${PATH_SEPARATOR+set}" != set; then
25514   PATH_SEPARATOR=:
25515   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25516     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25517       PATH_SEPARATOR=';'
25518   }
25519 fi
25520
25521 # Support unset when possible.
25522 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25523   as_unset=unset
25524 else
25525   as_unset=false
25526 fi
25527
25528
25529 # IFS
25530 # We need space, tab and new line, in precisely that order.  Quoting is
25531 # there to prevent editors from complaining about space-tab.
25532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25533 # splitting by setting IFS to empty value.)
25534 IFS=" ""        $as_nl"
25535
25536 # Find who we are.  Look in the path if we contain no directory separator.
25537 case $0 in
25538   *[\\/]* ) as_myself=$0 ;;
25539   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25540 for as_dir in $PATH
25541 do
25542   IFS=$as_save_IFS
25543   test -z "$as_dir" && as_dir=.
25544   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25545 done
25546 IFS=$as_save_IFS
25547
25548      ;;
25549 esac
25550 # We did not find ourselves, most probably we were run as `sh COMMAND'
25551 # in which case we are not to be found in the path.
25552 if test "x$as_myself" = x; then
25553   as_myself=$0
25554 fi
25555 if test ! -f "$as_myself"; then
25556   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25557   { (exit 1); exit 1; }
25558 fi
25559
25560 # Work around bugs in pre-3.0 UWIN ksh.
25561 for as_var in ENV MAIL MAILPATH
25562 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25563 done
25564 PS1='$ '
25565 PS2='> '
25566 PS4='+ '
25567
25568 # NLS nuisances.
25569 LC_ALL=C
25570 export LC_ALL
25571 LANGUAGE=C
25572 export LANGUAGE
25573
25574 # Required to use basename.
25575 if expr a : '\(a\)' >/dev/null 2>&1 &&
25576    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25577   as_expr=expr
25578 else
25579   as_expr=false
25580 fi
25581
25582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25583   as_basename=basename
25584 else
25585   as_basename=false
25586 fi
25587
25588
25589 # Name of the executable.
25590 as_me=`$as_basename -- "$0" ||
25591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25592          X"$0" : 'X\(//\)$' \| \
25593          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25594 $as_echo X/"$0" |
25595     sed '/^.*\/\([^/][^/]*\)\/*$/{
25596             s//\1/
25597             q
25598           }
25599           /^X\/\(\/\/\)$/{
25600             s//\1/
25601             q
25602           }
25603           /^X\/\(\/\).*/{
25604             s//\1/
25605             q
25606           }
25607           s/.*/./; q'`
25608
25609 # CDPATH.
25610 $as_unset CDPATH
25611
25612
25613
25614   as_lineno_1=$LINENO
25615   as_lineno_2=$LINENO
25616   test "x$as_lineno_1" != "x$as_lineno_2" &&
25617   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25618
25619   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25620   # uniformly replaced by the line number.  The first 'sed' inserts a
25621   # line-number line after each line using $LINENO; the second 'sed'
25622   # does the real work.  The second script uses 'N' to pair each
25623   # line-number line with the line containing $LINENO, and appends
25624   # trailing '-' during substitution so that $LINENO is not a special
25625   # case at line end.
25626   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25627   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25628   # E. McMahon (1931-1989) for sed's syntax.  :-)
25629   sed -n '
25630     p
25631     /[$]LINENO/=
25632   ' <$as_myself |
25633     sed '
25634       s/[$]LINENO.*/&-/
25635       t lineno
25636       b
25637       :lineno
25638       N
25639       :loop
25640       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25641       t loop
25642       s/-\n.*//
25643     ' >$as_me.lineno &&
25644   chmod +x "$as_me.lineno" ||
25645     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25646    { (exit 1); exit 1; }; }
25647
25648   # Don't try to exec as it changes $[0], causing all sort of problems
25649   # (the dirname of $[0] is not the place where we might find the
25650   # original and so on.  Autoconf is especially sensitive to this).
25651   . "./$as_me.lineno"
25652   # Exit status is that of the last command.
25653   exit
25654 }
25655
25656
25657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25658   as_dirname=dirname
25659 else
25660   as_dirname=false
25661 fi
25662
25663 ECHO_C= ECHO_N= ECHO_T=
25664 case `echo -n x` in
25665 -n*)
25666   case `echo 'x\c'` in
25667   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25668   *)   ECHO_C='\c';;
25669   esac;;
25670 *)
25671   ECHO_N='-n';;
25672 esac
25673 if expr a : '\(a\)' >/dev/null 2>&1 &&
25674    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25675   as_expr=expr
25676 else
25677   as_expr=false
25678 fi
25679
25680 rm -f conf$$ conf$$.exe conf$$.file
25681 if test -d conf$$.dir; then
25682   rm -f conf$$.dir/conf$$.file
25683 else
25684   rm -f conf$$.dir
25685   mkdir conf$$.dir 2>/dev/null
25686 fi
25687 if (echo >conf$$.file) 2>/dev/null; then
25688   if ln -s conf$$.file conf$$ 2>/dev/null; then
25689     as_ln_s='ln -s'
25690     # ... but there are two gotchas:
25691     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25692     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25693     # In both cases, we have to default to `cp -p'.
25694     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25695       as_ln_s='cp -p'
25696   elif ln conf$$.file conf$$ 2>/dev/null; then
25697     as_ln_s=ln
25698   else
25699     as_ln_s='cp -p'
25700   fi
25701 else
25702   as_ln_s='cp -p'
25703 fi
25704 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25705 rmdir conf$$.dir 2>/dev/null
25706
25707 if mkdir -p . 2>/dev/null; then
25708   as_mkdir_p=:
25709 else
25710   test -d ./-p && rmdir ./-p
25711   as_mkdir_p=false
25712 fi
25713
25714 if test -x / >/dev/null 2>&1; then
25715   as_test_x='test -x'
25716 else
25717   if ls -dL / >/dev/null 2>&1; then
25718     as_ls_L_option=L
25719   else
25720     as_ls_L_option=
25721   fi
25722   as_test_x='
25723     eval sh -c '\''
25724       if test -d "$1"; then
25725         test -d "$1/.";
25726       else
25727         case $1 in
25728         -*)set "./$1";;
25729         esac;
25730         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25731         ???[sx]*):;;*)false;;esac;fi
25732     '\'' sh
25733   '
25734 fi
25735 as_executable_p=$as_test_x
25736
25737 # Sed expression to map a string onto a valid CPP name.
25738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25739
25740 # Sed expression to map a string onto a valid variable name.
25741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25742
25743
25744 exec 6>&1
25745
25746 # Save the log message, to keep $[0] and so on meaningful, and to
25747 # report actual input values of CONFIG_FILES etc. instead of their
25748 # values after options handling.
25749 ac_log="
25750 This file was extended by MPFR $as_me 2.4.1, which was
25751 generated by GNU Autoconf 2.63.  Invocation command line was
25752
25753   CONFIG_FILES    = $CONFIG_FILES
25754   CONFIG_HEADERS  = $CONFIG_HEADERS
25755   CONFIG_LINKS    = $CONFIG_LINKS
25756   CONFIG_COMMANDS = $CONFIG_COMMANDS
25757   $ $0 $@
25758
25759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25760 "
25761
25762 _ACEOF
25763
25764 case $ac_config_files in *"
25765 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25766 esac
25767
25768
25769
25770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25771 # Files that config.status was made for.
25772 config_files="$ac_config_files"
25773 config_commands="$ac_config_commands"
25774
25775 _ACEOF
25776
25777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25778 ac_cs_usage="\
25779 \`$as_me' instantiates files from templates according to the
25780 current configuration.
25781
25782 Usage: $0 [OPTION]... [FILE]...
25783
25784   -h, --help       print this help, then exit
25785   -V, --version    print version number and configuration settings, then exit
25786   -q, --quiet, --silent
25787                    do not print progress messages
25788   -d, --debug      don't remove temporary files
25789       --recheck    update $as_me by reconfiguring in the same conditions
25790       --file=FILE[:TEMPLATE]
25791                    instantiate the configuration file FILE
25792
25793 Configuration files:
25794 $config_files
25795
25796 Configuration commands:
25797 $config_commands
25798
25799 Report bugs to <bug-autoconf@gnu.org>."
25800
25801 _ACEOF
25802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25803 ac_cs_version="\\
25804 MPFR config.status 2.4.1
25805 configured by $0, generated by GNU Autoconf 2.63,
25806   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25807
25808 Copyright (C) 2008 Free Software Foundation, Inc.
25809 This config.status script is free software; the Free Software Foundation
25810 gives unlimited permission to copy, distribute and modify it."
25811
25812 ac_pwd='$ac_pwd'
25813 srcdir='$srcdir'
25814 INSTALL='$INSTALL'
25815 MKDIR_P='$MKDIR_P'
25816 AWK='$AWK'
25817 test -n "\$AWK" || AWK=awk
25818 _ACEOF
25819
25820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25821 # The default lists apply if the user does not specify any file.
25822 ac_need_defaults=:
25823 while test $# != 0
25824 do
25825   case $1 in
25826   --*=*)
25827     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25828     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25829     ac_shift=:
25830     ;;
25831   *)
25832     ac_option=$1
25833     ac_optarg=$2
25834     ac_shift=shift
25835     ;;
25836   esac
25837
25838   case $ac_option in
25839   # Handling of the options.
25840   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25841     ac_cs_recheck=: ;;
25842   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25843     $as_echo "$ac_cs_version"; exit ;;
25844   --debug | --debu | --deb | --de | --d | -d )
25845     debug=: ;;
25846   --file | --fil | --fi | --f )
25847     $ac_shift
25848     case $ac_optarg in
25849     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25850     esac
25851     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25852     ac_need_defaults=false;;
25853   --he | --h |  --help | --hel | -h )
25854     $as_echo "$ac_cs_usage"; exit ;;
25855   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25856   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25857     ac_cs_silent=: ;;
25858
25859   # This is an error.
25860   -*) { $as_echo "$as_me: error: unrecognized option: $1
25861 Try \`$0 --help' for more information." >&2
25862    { (exit 1); exit 1; }; } ;;
25863
25864   *) ac_config_targets="$ac_config_targets $1"
25865      ac_need_defaults=false ;;
25866
25867   esac
25868   shift
25869 done
25870
25871 ac_configure_extra_args=
25872
25873 if $ac_cs_silent; then
25874   exec 6>/dev/null
25875   ac_configure_extra_args="$ac_configure_extra_args --silent"
25876 fi
25877
25878 _ACEOF
25879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25880 if \$ac_cs_recheck; then
25881   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25882   shift
25883   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25884   CONFIG_SHELL='$SHELL'
25885   export CONFIG_SHELL
25886   exec "\$@"
25887 fi
25888
25889 _ACEOF
25890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25891 exec 5>>config.log
25892 {
25893   echo
25894   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25895 ## Running $as_me. ##
25896 _ASBOX
25897   $as_echo "$ac_log"
25898 } >&5
25899
25900 _ACEOF
25901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25902 #
25903 # INIT-COMMANDS
25904 #
25905 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25906
25907
25908 # The HP-UX ksh and POSIX shell print the target directory to stdout
25909 # if CDPATH is set.
25910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25911
25912 sed_quote_subst='$sed_quote_subst'
25913 double_quote_subst='$double_quote_subst'
25914 delay_variable_subst='$delay_variable_subst'
25915 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
25916 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25917 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25918 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25919 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25920 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25921 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25922 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25923 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25924 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25925 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25926 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25927 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25928 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25929 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25930 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25931 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25932 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25933 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25934 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25935 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25936 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25937 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25938 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25939 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25940 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25941 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25942 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25943 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25944 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25945 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25946 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25947 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25948 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25949 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25950 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25951 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25952 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25953 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25954 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25955 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25956 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25957 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25958 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25959 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25960 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25961 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"`'
25962 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"`'
25963 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25964 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25965 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25966 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25967 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25968 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25969 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25970 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25971 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25972 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25973 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25974 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25975 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25976 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25977 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25978 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25979 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25980 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25981 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25982 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25983 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25984 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25985 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25986 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25987 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25988 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25989 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25990 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25991 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25992 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25993 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25994 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25995 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25996 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25997 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25998 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25999 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26000 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26001 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26002 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26003 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26004 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26005 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26006 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26007 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26008 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26009 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26010 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26011 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26012 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26013 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26014 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26015 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26016 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26017 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26018 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26019 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26020 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26021 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26022 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26023 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26024 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26025 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26026 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26027 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26028 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26029 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26030 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26031 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26032 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
26033 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26034 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26035 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
26036 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
26037 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
26038 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26039 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
26040 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26041 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26042 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26043 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
26044 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26045 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
26046 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26047 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
26048 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26049 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
26050 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26051 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
26052 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26053 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
26054 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26055 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
26056 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26057 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
26058 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26059 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
26060 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26061 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26062 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26063 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26064 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26065 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
26066 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26067 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26068 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26069 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26070 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26071 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26072 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26073 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26074 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26075 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26076 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26077 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26078 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26079 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
26080 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26081 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
26082 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26083 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
26084 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26085 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26086 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26087 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
26088 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26089 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
26090 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26091 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
26092 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26093 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
26094 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26095 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
26096 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26097 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
26098 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26099 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
26100 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26101 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
26102 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26103 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
26104 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26105 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
26106 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26107 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
26108 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26109 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26110 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26111 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
26112 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26113 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
26114 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26115 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26116 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26117 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26118 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26119 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
26120 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26121 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
26122 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26123 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
26124 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26125 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
26126 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26127 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
26128 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26129 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
26130 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26131 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
26132
26133 LTCC='$LTCC'
26134 LTCFLAGS='$LTCFLAGS'
26135 compiler='$compiler_DEFAULT'
26136
26137 # Quote evaled strings.
26138 for var in SED \
26139 GREP \
26140 EGREP \
26141 FGREP \
26142 LD \
26143 NM \
26144 LN_S \
26145 lt_SP2NL \
26146 lt_NL2SP \
26147 reload_flag \
26148 deplibs_check_method \
26149 file_magic_cmd \
26150 AR \
26151 AR_FLAGS \
26152 STRIP \
26153 RANLIB \
26154 CC \
26155 CFLAGS \
26156 compiler \
26157 lt_cv_sys_global_symbol_pipe \
26158 lt_cv_sys_global_symbol_to_cdecl \
26159 lt_cv_sys_global_symbol_to_c_name_address \
26160 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26161 SHELL \
26162 ECHO \
26163 lt_prog_compiler_no_builtin_flag \
26164 lt_prog_compiler_wl \
26165 lt_prog_compiler_pic \
26166 lt_prog_compiler_static \
26167 lt_cv_prog_compiler_c_o \
26168 need_locks \
26169 DSYMUTIL \
26170 NMEDIT \
26171 shrext_cmds \
26172 export_dynamic_flag_spec \
26173 whole_archive_flag_spec \
26174 compiler_needs_object \
26175 with_gnu_ld \
26176 allow_undefined_flag \
26177 no_undefined_flag \
26178 hardcode_libdir_flag_spec \
26179 hardcode_libdir_flag_spec_ld \
26180 hardcode_libdir_separator \
26181 fix_srcfile_path \
26182 exclude_expsyms \
26183 include_expsyms \
26184 file_list_spec \
26185 variables_saved_for_relink \
26186 libname_spec \
26187 library_names_spec \
26188 soname_spec \
26189 finish_eval \
26190 old_striplib \
26191 striplib \
26192 compiler_lib_search_dirs \
26193 predep_objects \
26194 postdep_objects \
26195 predeps \
26196 postdeps \
26197 compiler_lib_search_path \
26198 LD_CXX \
26199 LD_F77 \
26200 compiler_CXX \
26201 compiler_F77 \
26202 lt_prog_compiler_no_builtin_flag_CXX \
26203 lt_prog_compiler_no_builtin_flag_F77 \
26204 lt_prog_compiler_wl_CXX \
26205 lt_prog_compiler_wl_F77 \
26206 lt_prog_compiler_pic_CXX \
26207 lt_prog_compiler_pic_F77 \
26208 lt_prog_compiler_static_CXX \
26209 lt_prog_compiler_static_F77 \
26210 lt_cv_prog_compiler_c_o_CXX \
26211 lt_cv_prog_compiler_c_o_F77 \
26212 export_dynamic_flag_spec_CXX \
26213 export_dynamic_flag_spec_F77 \
26214 whole_archive_flag_spec_CXX \
26215 whole_archive_flag_spec_F77 \
26216 compiler_needs_object_CXX \
26217 compiler_needs_object_F77 \
26218 with_gnu_ld_CXX \
26219 with_gnu_ld_F77 \
26220 allow_undefined_flag_CXX \
26221 allow_undefined_flag_F77 \
26222 no_undefined_flag_CXX \
26223 no_undefined_flag_F77 \
26224 hardcode_libdir_flag_spec_CXX \
26225 hardcode_libdir_flag_spec_F77 \
26226 hardcode_libdir_flag_spec_ld_CXX \
26227 hardcode_libdir_flag_spec_ld_F77 \
26228 hardcode_libdir_separator_CXX \
26229 hardcode_libdir_separator_F77 \
26230 fix_srcfile_path_CXX \
26231 fix_srcfile_path_F77 \
26232 exclude_expsyms_CXX \
26233 exclude_expsyms_F77 \
26234 include_expsyms_CXX \
26235 include_expsyms_F77 \
26236 file_list_spec_CXX \
26237 file_list_spec_F77 \
26238 compiler_lib_search_dirs_CXX \
26239 compiler_lib_search_dirs_F77 \
26240 predep_objects_CXX \
26241 predep_objects_F77 \
26242 postdep_objects_CXX \
26243 postdep_objects_F77 \
26244 predeps_CXX \
26245 predeps_F77 \
26246 postdeps_CXX \
26247 postdeps_F77 \
26248 compiler_lib_search_path_CXX \
26249 compiler_lib_search_path_F77; do
26250     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26251     *[\\\\\\\`\\"\\\$]*)
26252       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26253       ;;
26254     *)
26255       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26256       ;;
26257     esac
26258 done
26259
26260 # Double-quote double-evaled strings.
26261 for var in reload_cmds \
26262 old_postinstall_cmds \
26263 old_postuninstall_cmds \
26264 old_archive_cmds \
26265 extract_expsyms_cmds \
26266 old_archive_from_new_cmds \
26267 old_archive_from_expsyms_cmds \
26268 archive_cmds \
26269 archive_expsym_cmds \
26270 module_cmds \
26271 module_expsym_cmds \
26272 export_symbols_cmds \
26273 prelink_cmds \
26274 postinstall_cmds \
26275 postuninstall_cmds \
26276 finish_cmds \
26277 sys_lib_search_path_spec \
26278 sys_lib_dlsearch_path_spec \
26279 old_archive_cmds_CXX \
26280 old_archive_cmds_F77 \
26281 old_archive_from_new_cmds_CXX \
26282 old_archive_from_new_cmds_F77 \
26283 old_archive_from_expsyms_cmds_CXX \
26284 old_archive_from_expsyms_cmds_F77 \
26285 archive_cmds_CXX \
26286 archive_cmds_F77 \
26287 archive_expsym_cmds_CXX \
26288 archive_expsym_cmds_F77 \
26289 module_cmds_CXX \
26290 module_cmds_F77 \
26291 module_expsym_cmds_CXX \
26292 module_expsym_cmds_F77 \
26293 export_symbols_cmds_CXX \
26294 export_symbols_cmds_F77 \
26295 prelink_cmds_CXX \
26296 prelink_cmds_F77; do
26297     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26298     *[\\\\\\\`\\"\\\$]*)
26299       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26300       ;;
26301     *)
26302       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26303       ;;
26304     esac
26305 done
26306
26307 # Fix-up fallback echo if it was mangled by the above quoting rules.
26308 case \$lt_ECHO in
26309 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26310   ;;
26311 esac
26312
26313 ac_aux_dir='$ac_aux_dir'
26314 xsi_shell='$xsi_shell'
26315 lt_shell_append='$lt_shell_append'
26316
26317 # See if we are running on zsh, and set the options which allow our
26318 # commands through without removal of \ escapes INIT.
26319 if test -n "\${ZSH_VERSION+set}" ; then
26320    setopt NO_GLOB_SUBST
26321 fi
26322
26323
26324     PACKAGE='$PACKAGE'
26325     VERSION='$VERSION'
26326     TIMESTAMP='$TIMESTAMP'
26327     RM='$RM'
26328     ofile='$ofile'
26329
26330
26331
26332
26333
26334
26335
26336
26337 _ACEOF
26338
26339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26340
26341 # Handling of arguments.
26342 for ac_config_target in $ac_config_targets
26343 do
26344   case $ac_config_target in
26345     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26346     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26347     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26348     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26349     "mparam.h") CONFIG_FILES="$CONFIG_FILES mparam.h:mparam_h.in" ;;
26350
26351   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26352 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26353    { (exit 1); exit 1; }; };;
26354   esac
26355 done
26356
26357
26358 # If the user did not use the arguments to specify the items to instantiate,
26359 # then the envvar interface is used.  Set only those that are not.
26360 # We use the long form for the default assignment because of an extremely
26361 # bizarre bug on SunOS 4.1.3.
26362 if $ac_need_defaults; then
26363   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26364   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26365 fi
26366
26367 # Have a temporary directory for convenience.  Make it in the build tree
26368 # simply because there is no reason against having it here, and in addition,
26369 # creating and moving files from /tmp can sometimes cause problems.
26370 # Hook for its removal unless debugging.
26371 # Note that there is a small window in which the directory will not be cleaned:
26372 # after its creation but before its name has been assigned to `$tmp'.
26373 $debug ||
26374 {
26375   tmp=
26376   trap 'exit_status=$?
26377   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26378 ' 0
26379   trap '{ (exit 1); exit 1; }' 1 2 13 15
26380 }
26381 # Create a (secure) tmp directory for tmp files.
26382
26383 {
26384   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26385   test -n "$tmp" && test -d "$tmp"
26386 }  ||
26387 {
26388   tmp=./conf$$-$RANDOM
26389   (umask 077 && mkdir "$tmp")
26390 } ||
26391 {
26392    $as_echo "$as_me: cannot create a temporary directory in ." >&2
26393    { (exit 1); exit 1; }
26394 }
26395
26396 # Set up the scripts for CONFIG_FILES section.
26397 # No need to generate them if there are no CONFIG_FILES.
26398 # This happens for instance with `./config.status config.h'.
26399 if test -n "$CONFIG_FILES"; then
26400
26401
26402 ac_cr='\r'
26403 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26404 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26405   ac_cs_awk_cr='\\r'
26406 else
26407   ac_cs_awk_cr=$ac_cr
26408 fi
26409
26410 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26411 _ACEOF
26412
26413
26414 {
26415   echo "cat >conf$$subs.awk <<_ACEOF" &&
26416   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26417   echo "_ACEOF"
26418 } >conf$$subs.sh ||
26419   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26420 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26421    { (exit 1); exit 1; }; }
26422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26423 ac_delim='%!_!# '
26424 for ac_last_try in false false false false false :; do
26425   . ./conf$$subs.sh ||
26426     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26427 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26428    { (exit 1); exit 1; }; }
26429
26430   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26431   if test $ac_delim_n = $ac_delim_num; then
26432     break
26433   elif $ac_last_try; then
26434     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26435 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26436    { (exit 1); exit 1; }; }
26437   else
26438     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26439   fi
26440 done
26441 rm -f conf$$subs.sh
26442
26443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26444 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26445 _ACEOF
26446 sed -n '
26447 h
26448 s/^/S["/; s/!.*/"]=/
26449 p
26450 g
26451 s/^[^!]*!//
26452 :repl
26453 t repl
26454 s/'"$ac_delim"'$//
26455 t delim
26456 :nl
26457 h
26458 s/\(.\{148\}\).*/\1/
26459 t more1
26460 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26461 p
26462 n
26463 b repl
26464 :more1
26465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26466 p
26467 g
26468 s/.\{148\}//
26469 t nl
26470 :delim
26471 h
26472 s/\(.\{148\}\).*/\1/
26473 t more2
26474 s/["\\]/\\&/g; s/^/"/; s/$/"/
26475 p
26476 b
26477 :more2
26478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26479 p
26480 g
26481 s/.\{148\}//
26482 t delim
26483 ' <conf$$subs.awk | sed '
26484 /^[^""]/{
26485   N
26486   s/\n//
26487 }
26488 ' >>$CONFIG_STATUS || ac_write_fail=1
26489 rm -f conf$$subs.awk
26490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26491 _ACAWK
26492 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26493   for (key in S) S_is_set[key] = 1
26494   FS = "\a"
26495
26496 }
26497 {
26498   line = $ 0
26499   nfields = split(line, field, "@")
26500   substed = 0
26501   len = length(field[1])
26502   for (i = 2; i < nfields; i++) {
26503     key = field[i]
26504     keylen = length(key)
26505     if (S_is_set[key]) {
26506       value = S[key]
26507       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26508       len += length(value) + length(field[++i])
26509       substed = 1
26510     } else
26511       len += 1 + keylen
26512   }
26513
26514   print line
26515 }
26516
26517 _ACAWK
26518 _ACEOF
26519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26520 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26521   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26522 else
26523   cat
26524 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26525   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26526 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26527    { (exit 1); exit 1; }; }
26528 _ACEOF
26529
26530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26532 # trailing colons and then remove the whole line if VPATH becomes empty
26533 # (actually we leave an empty line to preserve line numbers).
26534 if test "x$srcdir" = x.; then
26535   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26536 s/:*\$(srcdir):*/:/
26537 s/:*\${srcdir}:*/:/
26538 s/:*@srcdir@:*/:/
26539 s/^\([^=]*=[     ]*\):*/\1/
26540 s/:*$//
26541 s/^[^=]*=[       ]*$//
26542 }'
26543 fi
26544
26545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26546 fi # test -n "$CONFIG_FILES"
26547
26548
26549 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
26550 shift
26551 for ac_tag
26552 do
26553   case $ac_tag in
26554   :[FHLC]) ac_mode=$ac_tag; continue;;
26555   esac
26556   case $ac_mode$ac_tag in
26557   :[FHL]*:*);;
26558   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26559 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26560    { (exit 1); exit 1; }; };;
26561   :[FH]-) ac_tag=-:-;;
26562   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26563   esac
26564   ac_save_IFS=$IFS
26565   IFS=:
26566   set x $ac_tag
26567   IFS=$ac_save_IFS
26568   shift
26569   ac_file=$1
26570   shift
26571
26572   case $ac_mode in
26573   :L) ac_source=$1;;
26574   :[FH])
26575     ac_file_inputs=
26576     for ac_f
26577     do
26578       case $ac_f in
26579       -) ac_f="$tmp/stdin";;
26580       *) # Look for the file first in the build tree, then in the source tree
26581          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26582          # because $ac_f cannot contain `:'.
26583          test -f "$ac_f" ||
26584            case $ac_f in
26585            [\\/$]*) false;;
26586            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26587            esac ||
26588            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26589 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26590    { (exit 1); exit 1; }; };;
26591       esac
26592       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26593       ac_file_inputs="$ac_file_inputs '$ac_f'"
26594     done
26595
26596     # Let's still pretend it is `configure' which instantiates (i.e., don't
26597     # use $as_me), people would be surprised to read:
26598     #    /* config.h.  Generated by config.status.  */
26599     configure_input='Generated from '`
26600           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26601         `' by configure.'
26602     if test x"$ac_file" != x-; then
26603       configure_input="$ac_file.  $configure_input"
26604       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26605 $as_echo "$as_me: creating $ac_file" >&6;}
26606     fi
26607     # Neutralize special characters interpreted by sed in replacement strings.
26608     case $configure_input in #(
26609     *\&* | *\|* | *\\* )
26610        ac_sed_conf_input=`$as_echo "$configure_input" |
26611        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26612     *) ac_sed_conf_input=$configure_input;;
26613     esac
26614
26615     case $ac_tag in
26616     *:-:* | *:-) cat >"$tmp/stdin" \
26617       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26618 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26619    { (exit 1); exit 1; }; } ;;
26620     esac
26621     ;;
26622   esac
26623
26624   ac_dir=`$as_dirname -- "$ac_file" ||
26625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26626          X"$ac_file" : 'X\(//\)[^/]' \| \
26627          X"$ac_file" : 'X\(//\)$' \| \
26628          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26629 $as_echo X"$ac_file" |
26630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26631             s//\1/
26632             q
26633           }
26634           /^X\(\/\/\)[^/].*/{
26635             s//\1/
26636             q
26637           }
26638           /^X\(\/\/\)$/{
26639             s//\1/
26640             q
26641           }
26642           /^X\(\/\).*/{
26643             s//\1/
26644             q
26645           }
26646           s/.*/./; q'`
26647   { as_dir="$ac_dir"
26648   case $as_dir in #(
26649   -*) as_dir=./$as_dir;;
26650   esac
26651   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26652     as_dirs=
26653     while :; do
26654       case $as_dir in #(
26655       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26656       *) as_qdir=$as_dir;;
26657       esac
26658       as_dirs="'$as_qdir' $as_dirs"
26659       as_dir=`$as_dirname -- "$as_dir" ||
26660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26661          X"$as_dir" : 'X\(//\)[^/]' \| \
26662          X"$as_dir" : 'X\(//\)$' \| \
26663          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26664 $as_echo X"$as_dir" |
26665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26666             s//\1/
26667             q
26668           }
26669           /^X\(\/\/\)[^/].*/{
26670             s//\1/
26671             q
26672           }
26673           /^X\(\/\/\)$/{
26674             s//\1/
26675             q
26676           }
26677           /^X\(\/\).*/{
26678             s//\1/
26679             q
26680           }
26681           s/.*/./; q'`
26682       test -d "$as_dir" && break
26683     done
26684     test -z "$as_dirs" || eval "mkdir $as_dirs"
26685   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26686 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26687    { (exit 1); exit 1; }; }; }
26688   ac_builddir=.
26689
26690 case "$ac_dir" in
26691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26692 *)
26693   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26694   # A ".." for each directory in $ac_dir_suffix.
26695   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26696   case $ac_top_builddir_sub in
26697   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26698   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26699   esac ;;
26700 esac
26701 ac_abs_top_builddir=$ac_pwd
26702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26703 # for backward compatibility:
26704 ac_top_builddir=$ac_top_build_prefix
26705
26706 case $srcdir in
26707   .)  # We are building in place.
26708     ac_srcdir=.
26709     ac_top_srcdir=$ac_top_builddir_sub
26710     ac_abs_top_srcdir=$ac_pwd ;;
26711   [\\/]* | ?:[\\/]* )  # Absolute name.
26712     ac_srcdir=$srcdir$ac_dir_suffix;
26713     ac_top_srcdir=$srcdir
26714     ac_abs_top_srcdir=$srcdir ;;
26715   *) # Relative name.
26716     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26717     ac_top_srcdir=$ac_top_build_prefix$srcdir
26718     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26719 esac
26720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26721
26722
26723   case $ac_mode in
26724   :F)
26725   #
26726   # CONFIG_FILE
26727   #
26728
26729   case $INSTALL in
26730   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26731   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26732   esac
26733   ac_MKDIR_P=$MKDIR_P
26734   case $MKDIR_P in
26735   [\\/$]* | ?:[\\/]* ) ;;
26736   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26737   esac
26738 _ACEOF
26739
26740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26741 # If the template does not know about datarootdir, expand it.
26742 # FIXME: This hack should be removed a few years after 2.60.
26743 ac_datarootdir_hack=; ac_datarootdir_seen=
26744
26745 ac_sed_dataroot='
26746 /datarootdir/ {
26747   p
26748   q
26749 }
26750 /@datadir@/p
26751 /@docdir@/p
26752 /@infodir@/p
26753 /@localedir@/p
26754 /@mandir@/p
26755 '
26756 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26757 *datarootdir*) ac_datarootdir_seen=yes;;
26758 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26759   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26760 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26761 _ACEOF
26762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26763   ac_datarootdir_hack='
26764   s&@datadir@&$datadir&g
26765   s&@docdir@&$docdir&g
26766   s&@infodir@&$infodir&g
26767   s&@localedir@&$localedir&g
26768   s&@mandir@&$mandir&g
26769     s&\\\${datarootdir}&$datarootdir&g' ;;
26770 esac
26771 _ACEOF
26772
26773 # Neutralize VPATH when `$srcdir' = `.'.
26774 # Shell code in configure.ac might set extrasub.
26775 # FIXME: do we really want to maintain this feature?
26776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26777 ac_sed_extra="$ac_vpsub
26778 $extrasub
26779 _ACEOF
26780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26781 :t
26782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26783 s|@configure_input@|$ac_sed_conf_input|;t t
26784 s&@top_builddir@&$ac_top_builddir_sub&;t t
26785 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26786 s&@srcdir@&$ac_srcdir&;t t
26787 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26788 s&@top_srcdir@&$ac_top_srcdir&;t t
26789 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26790 s&@builddir@&$ac_builddir&;t t
26791 s&@abs_builddir@&$ac_abs_builddir&;t t
26792 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26793 s&@INSTALL@&$ac_INSTALL&;t t
26794 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26795 $ac_datarootdir_hack
26796 "
26797 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26798   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26799 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26800    { (exit 1); exit 1; }; }
26801
26802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26803   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26804   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26805   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26806 which seems to be undefined.  Please make sure it is defined." >&5
26807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26808 which seems to be undefined.  Please make sure it is defined." >&2;}
26809
26810   rm -f "$tmp/stdin"
26811   case $ac_file in
26812   -) cat "$tmp/out" && rm -f "$tmp/out";;
26813   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26814   esac \
26815   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26817    { (exit 1); exit 1; }; }
26818  ;;
26819
26820
26821   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26822 $as_echo "$as_me: executing $ac_file commands" >&6;}
26823  ;;
26824   esac
26825
26826
26827   case $ac_file$ac_mode in
26828     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26829   # Strip MF so we end up with the name of the file.
26830   mf=`echo "$mf" | sed -e 's/:.*$//'`
26831   # Check whether this is an Automake generated Makefile or not.
26832   # We used to match only the files named `Makefile.in', but
26833   # some people rename them; so instead we look at the file content.
26834   # Grep'ing the first line is not enough: some people post-process
26835   # each Makefile.in and add a new line on top of each file to say so.
26836   # Grep'ing the whole file is not good either: AIX grep has a line
26837   # limit of 2048, but all sed's we know have understand at least 4000.
26838   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26839     dirpart=`$as_dirname -- "$mf" ||
26840 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26841          X"$mf" : 'X\(//\)[^/]' \| \
26842          X"$mf" : 'X\(//\)$' \| \
26843          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26844 $as_echo X"$mf" |
26845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26846             s//\1/
26847             q
26848           }
26849           /^X\(\/\/\)[^/].*/{
26850             s//\1/
26851             q
26852           }
26853           /^X\(\/\/\)$/{
26854             s//\1/
26855             q
26856           }
26857           /^X\(\/\).*/{
26858             s//\1/
26859             q
26860           }
26861           s/.*/./; q'`
26862   else
26863     continue
26864   fi
26865   # Extract the definition of DEPDIR, am__include, and am__quote
26866   # from the Makefile without running `make'.
26867   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26868   test -z "$DEPDIR" && continue
26869   am__include=`sed -n 's/^am__include = //p' < "$mf"`
26870   test -z "am__include" && continue
26871   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26872   # When using ansi2knr, U may be empty or an underscore; expand it
26873   U=`sed -n 's/^U = //p' < "$mf"`
26874   # Find all dependency output files, they are included files with
26875   # $(DEPDIR) in their names.  We invoke sed twice because it is the
26876   # simplest approach to changing $(DEPDIR) to its actual value in the
26877   # expansion.
26878   for file in `sed -n "
26879     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26880        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26881     # Make sure the directory exists.
26882     test -f "$dirpart/$file" && continue
26883     fdir=`$as_dirname -- "$file" ||
26884 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26885          X"$file" : 'X\(//\)[^/]' \| \
26886          X"$file" : 'X\(//\)$' \| \
26887          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26888 $as_echo X"$file" |
26889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26890             s//\1/
26891             q
26892           }
26893           /^X\(\/\/\)[^/].*/{
26894             s//\1/
26895             q
26896           }
26897           /^X\(\/\/\)$/{
26898             s//\1/
26899             q
26900           }
26901           /^X\(\/\).*/{
26902             s//\1/
26903             q
26904           }
26905           s/.*/./; q'`
26906     { as_dir=$dirpart/$fdir
26907   case $as_dir in #(
26908   -*) as_dir=./$as_dir;;
26909   esac
26910   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26911     as_dirs=
26912     while :; do
26913       case $as_dir in #(
26914       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26915       *) as_qdir=$as_dir;;
26916       esac
26917       as_dirs="'$as_qdir' $as_dirs"
26918       as_dir=`$as_dirname -- "$as_dir" ||
26919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26920          X"$as_dir" : 'X\(//\)[^/]' \| \
26921          X"$as_dir" : 'X\(//\)$' \| \
26922          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26923 $as_echo X"$as_dir" |
26924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26925             s//\1/
26926             q
26927           }
26928           /^X\(\/\/\)[^/].*/{
26929             s//\1/
26930             q
26931           }
26932           /^X\(\/\/\)$/{
26933             s//\1/
26934             q
26935           }
26936           /^X\(\/\).*/{
26937             s//\1/
26938             q
26939           }
26940           s/.*/./; q'`
26941       test -d "$as_dir" && break
26942     done
26943     test -z "$as_dirs" || eval "mkdir $as_dirs"
26944   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26945 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26946    { (exit 1); exit 1; }; }; }
26947     # echo "creating $dirpart/$file"
26948     echo '# dummy' > "$dirpart/$file"
26949   done
26950 done
26951  ;;
26952     "libtool":C)
26953
26954     # See if we are running on zsh, and set the options which allow our
26955     # commands through without removal of \ escapes.
26956     if test -n "${ZSH_VERSION+set}" ; then
26957       setopt NO_GLOB_SUBST
26958     fi
26959
26960     cfgfile="${ofile}T"
26961     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26962     $RM "$cfgfile"
26963
26964     cat <<_LT_EOF >> "$cfgfile"
26965 #! $SHELL
26966
26967 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26968 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
26969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26970 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26971 #
26972 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26973 #                 2006, 2007, 2008 Free Software Foundation, Inc.
26974 #   Written by Gordon Matzigkeit, 1996
26975 #
26976 #   This file is part of GNU Libtool.
26977 #
26978 # GNU Libtool is free software; you can redistribute it and/or
26979 # modify it under the terms of the GNU General Public License as
26980 # published by the Free Software Foundation; either version 2 of
26981 # the License, or (at your option) any later version.
26982 #
26983 # As a special exception to the GNU General Public License,
26984 # if you distribute this file as part of a program or library that
26985 # is built using GNU Libtool, you may include this file under the
26986 # same distribution terms that you use for the rest of that program.
26987 #
26988 # GNU Libtool is distributed in the hope that it will be useful,
26989 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26990 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26991 # GNU General Public License for more details.
26992 #
26993 # You should have received a copy of the GNU General Public License
26994 # along with GNU Libtool; see the file COPYING.  If not, a copy
26995 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26996 # obtained by writing to the Free Software Foundation, Inc.,
26997 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26998
26999
27000 # The names of the tagged configurations supported by this script.
27001 available_tags="CXX F77 "
27002
27003 # ### BEGIN LIBTOOL CONFIG
27004
27005 # Assembler program.
27006 AS=$AS
27007
27008 # DLL creation program.
27009 DLLTOOL=$DLLTOOL
27010
27011 # Object dumper program.
27012 OBJDUMP=$OBJDUMP
27013
27014 # Which release of libtool.m4 was used?
27015 macro_version=$macro_version
27016 macro_revision=$macro_revision
27017
27018 # Whether or not to build shared libraries.
27019 build_libtool_libs=$enable_shared
27020
27021 # Whether or not to build static libraries.
27022 build_old_libs=$enable_static
27023
27024 # What type of objects to build.
27025 pic_mode=$pic_mode
27026
27027 # Whether or not to optimize for fast installation.
27028 fast_install=$enable_fast_install
27029
27030 # The host system.
27031 host_alias=$host_alias
27032 host=$host
27033 host_os=$host_os
27034
27035 # The build system.
27036 build_alias=$build_alias
27037 build=$build
27038 build_os=$build_os
27039
27040 # A sed program that does not truncate output.
27041 SED=$lt_SED
27042
27043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27044 Xsed="\$SED -e 1s/^X//"
27045
27046 # A grep program that handles long lines.
27047 GREP=$lt_GREP
27048
27049 # An ERE matcher.
27050 EGREP=$lt_EGREP
27051
27052 # A literal string matcher.
27053 FGREP=$lt_FGREP
27054
27055 # A BSD- or MS-compatible name lister.
27056 NM=$lt_NM
27057
27058 # Whether we need soft or hard links.
27059 LN_S=$lt_LN_S
27060
27061 # What is the maximum length of a command?
27062 max_cmd_len=$max_cmd_len
27063
27064 # Object file suffix (normally "o").
27065 objext=$ac_objext
27066
27067 # Executable file suffix (normally "").
27068 exeext=$exeext
27069
27070 # whether the shell understands "unset".
27071 lt_unset=$lt_unset
27072
27073 # turn spaces into newlines.
27074 SP2NL=$lt_lt_SP2NL
27075
27076 # turn newlines into spaces.
27077 NL2SP=$lt_lt_NL2SP
27078
27079 # How to create reloadable object files.
27080 reload_flag=$lt_reload_flag
27081 reload_cmds=$lt_reload_cmds
27082
27083 # Method to check whether dependent libraries are shared objects.
27084 deplibs_check_method=$lt_deplibs_check_method
27085
27086 # Command to use when deplibs_check_method == "file_magic".
27087 file_magic_cmd=$lt_file_magic_cmd
27088
27089 # The archiver.
27090 AR=$lt_AR
27091 AR_FLAGS=$lt_AR_FLAGS
27092
27093 # A symbol stripping program.
27094 STRIP=$lt_STRIP
27095
27096 # Commands used to install an old-style archive.
27097 RANLIB=$lt_RANLIB
27098 old_postinstall_cmds=$lt_old_postinstall_cmds
27099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27100
27101 # A C compiler.
27102 LTCC=$lt_CC
27103
27104 # LTCC compiler flags.
27105 LTCFLAGS=$lt_CFLAGS
27106
27107 # Take the output of nm and produce a listing of raw symbols and C names.
27108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27109
27110 # Transform the output of nm in a proper C declaration.
27111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27112
27113 # Transform the output of nm in a C name address pair.
27114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27115
27116 # Transform the output of nm in a C name address pair when lib prefix is needed.
27117 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27118
27119 # The name of the directory that contains temporary libtool files.
27120 objdir=$objdir
27121
27122 # Shell to use when invoking shell scripts.
27123 SHELL=$lt_SHELL
27124
27125 # An echo program that does not interpret backslashes.
27126 ECHO=$lt_ECHO
27127
27128 # Used to examine libraries when file_magic_cmd begins with "file".
27129 MAGIC_CMD=$MAGIC_CMD
27130
27131 # Must we lock files when doing compilation?
27132 need_locks=$lt_need_locks
27133
27134 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27135 DSYMUTIL=$lt_DSYMUTIL
27136
27137 # Tool to change global to local symbols on Mac OS X.
27138 NMEDIT=$lt_NMEDIT
27139
27140 # Old archive suffix (normally "a").
27141 libext=$libext
27142
27143 # Shared library suffix (normally ".so").
27144 shrext_cmds=$lt_shrext_cmds
27145
27146 # The commands to extract the exported symbol list from a shared archive.
27147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27148
27149 # Variables whose values should be saved in libtool wrapper scripts and
27150 # restored at link time.
27151 variables_saved_for_relink=$lt_variables_saved_for_relink
27152
27153 # Do we need the "lib" prefix for modules?
27154 need_lib_prefix=$need_lib_prefix
27155
27156 # Do we need a version for libraries?
27157 need_version=$need_version
27158
27159 # Library versioning type.
27160 version_type=$version_type
27161
27162 # Shared library runtime path variable.
27163 runpath_var=$runpath_var
27164
27165 # Shared library path variable.
27166 shlibpath_var=$shlibpath_var
27167
27168 # Is shlibpath searched before the hard-coded library search path?
27169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27170
27171 # Format of library name prefix.
27172 libname_spec=$lt_libname_spec
27173
27174 # List of archive names.  First name is the real one, the rest are links.
27175 # The last name is the one that the linker finds with -lNAME
27176 library_names_spec=$lt_library_names_spec
27177
27178 # The coded name of the library, if different from the real name.
27179 soname_spec=$lt_soname_spec
27180
27181 # Command to use after installation of a shared archive.
27182 postinstall_cmds=$lt_postinstall_cmds
27183
27184 # Command to use after uninstallation of a shared archive.
27185 postuninstall_cmds=$lt_postuninstall_cmds
27186
27187 # Commands used to finish a libtool library installation in a directory.
27188 finish_cmds=$lt_finish_cmds
27189
27190 # As "finish_cmds", except a single script fragment to be evaled but
27191 # not shown.
27192 finish_eval=$lt_finish_eval
27193
27194 # Whether we should hardcode library paths into libraries.
27195 hardcode_into_libs=$hardcode_into_libs
27196
27197 # Compile-time system search path for libraries.
27198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27199
27200 # Run-time system search path for libraries.
27201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27202
27203 # Whether dlopen is supported.
27204 dlopen_support=$enable_dlopen
27205
27206 # Whether dlopen of programs is supported.
27207 dlopen_self=$enable_dlopen_self
27208
27209 # Whether dlopen of statically linked programs is supported.
27210 dlopen_self_static=$enable_dlopen_self_static
27211
27212 # Commands to strip libraries.
27213 old_striplib=$lt_old_striplib
27214 striplib=$lt_striplib
27215
27216
27217 # The linker used to build libraries.
27218 LD=$lt_LD
27219
27220 # Commands used to build an old-style archive.
27221 old_archive_cmds=$lt_old_archive_cmds
27222
27223 # A language specific compiler.
27224 CC=$lt_compiler
27225
27226 # Is the compiler the GNU compiler?
27227 with_gcc=$GCC
27228
27229 # Compiler flag to turn off builtin functions.
27230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27231
27232 # How to pass a linker flag through the compiler.
27233 wl=$lt_lt_prog_compiler_wl
27234
27235 # Additional compiler flags for building library objects.
27236 pic_flag=$lt_lt_prog_compiler_pic
27237
27238 # Compiler flag to prevent dynamic linking.
27239 link_static_flag=$lt_lt_prog_compiler_static
27240
27241 # Does compiler simultaneously support -c and -o options?
27242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27243
27244 # Whether or not to add -lc for building shared libraries.
27245 build_libtool_need_lc=$archive_cmds_need_lc
27246
27247 # Whether or not to disallow shared libs when runtime libs are static.
27248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27249
27250 # Compiler flag to allow reflexive dlopens.
27251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27252
27253 # Compiler flag to generate shared objects directly from archives.
27254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27255
27256 # Whether the compiler copes with passing no objects directly.
27257 compiler_needs_object=$lt_compiler_needs_object
27258
27259 # Create an old-style archive from a shared archive.
27260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27261
27262 # Create a temporary old-style archive to link instead of a shared archive.
27263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27264
27265 # Commands used to build a shared archive.
27266 archive_cmds=$lt_archive_cmds
27267 archive_expsym_cmds=$lt_archive_expsym_cmds
27268
27269 # Commands used to build a loadable module if different from building
27270 # a shared archive.
27271 module_cmds=$lt_module_cmds
27272 module_expsym_cmds=$lt_module_expsym_cmds
27273
27274 # Whether we are building with GNU ld or not.
27275 with_gnu_ld=$lt_with_gnu_ld
27276
27277 # Flag that allows shared libraries with undefined symbols to be built.
27278 allow_undefined_flag=$lt_allow_undefined_flag
27279
27280 # Flag that enforces no undefined symbols.
27281 no_undefined_flag=$lt_no_undefined_flag
27282
27283 # Flag to hardcode \$libdir into a binary during linking.
27284 # This must work even if \$libdir does not exist
27285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27286
27287 # If ld is used when linking, flag to hardcode \$libdir into a binary
27288 # during linking.  This must work even if \$libdir does not exist.
27289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27290
27291 # Whether we need a single "-rpath" flag with a separated argument.
27292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27293
27294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27295 # DIR into the resulting binary.
27296 hardcode_direct=$hardcode_direct
27297
27298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27299 # DIR into the resulting binary and the resulting library dependency is
27300 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27301 # library is relocated.
27302 hardcode_direct_absolute=$hardcode_direct_absolute
27303
27304 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27305 # into the resulting binary.
27306 hardcode_minus_L=$hardcode_minus_L
27307
27308 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27309 # into the resulting binary.
27310 hardcode_shlibpath_var=$hardcode_shlibpath_var
27311
27312 # Set to "yes" if building a shared library automatically hardcodes DIR
27313 # into the library and all subsequent libraries and executables linked
27314 # against it.
27315 hardcode_automatic=$hardcode_automatic
27316
27317 # Set to yes if linker adds runtime paths of dependent libraries
27318 # to runtime path list.
27319 inherit_rpath=$inherit_rpath
27320
27321 # Whether libtool must link a program against all its dependency libraries.
27322 link_all_deplibs=$link_all_deplibs
27323
27324 # Fix the shell variable \$srcfile for the compiler.
27325 fix_srcfile_path=$lt_fix_srcfile_path
27326
27327 # Set to "yes" if exported symbols are required.
27328 always_export_symbols=$always_export_symbols
27329
27330 # The commands to list exported symbols.
27331 export_symbols_cmds=$lt_export_symbols_cmds
27332
27333 # Symbols that should not be listed in the preloaded symbols.
27334 exclude_expsyms=$lt_exclude_expsyms
27335
27336 # Symbols that must always be exported.
27337 include_expsyms=$lt_include_expsyms
27338
27339 # Commands necessary for linking programs (against libraries) with templates.
27340 prelink_cmds=$lt_prelink_cmds
27341
27342 # Specify filename containing input files.
27343 file_list_spec=$lt_file_list_spec
27344
27345 # How to hardcode a shared library path into an executable.
27346 hardcode_action=$hardcode_action
27347
27348 # The directories searched by this compiler when creating a shared library.
27349 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27350
27351 # Dependencies to place before and after the objects being linked to
27352 # create a shared library.
27353 predep_objects=$lt_predep_objects
27354 postdep_objects=$lt_postdep_objects
27355 predeps=$lt_predeps
27356 postdeps=$lt_postdeps
27357
27358 # The library search path used internally by the compiler when linking
27359 # a shared library.
27360 compiler_lib_search_path=$lt_compiler_lib_search_path
27361
27362 # ### END LIBTOOL CONFIG
27363
27364 _LT_EOF
27365
27366   case $host_os in
27367   aix3*)
27368     cat <<\_LT_EOF >> "$cfgfile"
27369 # AIX sometimes has problems with the GCC collect2 program.  For some
27370 # reason, if we set the COLLECT_NAMES environment variable, the problems
27371 # vanish in a puff of smoke.
27372 if test "X${COLLECT_NAMES+set}" != Xset; then
27373   COLLECT_NAMES=
27374   export COLLECT_NAMES
27375 fi
27376 _LT_EOF
27377     ;;
27378   esac
27379
27380
27381 ltmain="$ac_aux_dir/ltmain.sh"
27382
27383
27384   # We use sed instead of cat because bash on DJGPP gets confused if
27385   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27386   # text mode, it properly converts lines to CR/LF.  This bash problem
27387   # is reportedly fixed, but why not run on old versions too?
27388   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27389     || (rm -f "$cfgfile"; exit 1)
27390
27391   case $xsi_shell in
27392   yes)
27393     cat << \_LT_EOF >> "$cfgfile"
27394 # func_dirname file append nondir_replacement
27395 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27396 # otherwise set result to NONDIR_REPLACEMENT.
27397 func_dirname ()
27398 {
27399   case ${1} in
27400     */*) func_dirname_result="${1%/*}${2}" ;;
27401     *  ) func_dirname_result="${3}" ;;
27402   esac
27403 }
27404
27405 # func_basename file
27406 func_basename ()
27407 {
27408   func_basename_result="${1##*/}"
27409 }
27410
27411 # func_dirname_and_basename file append nondir_replacement
27412 # perform func_basename and func_dirname in a single function
27413 # call:
27414 #   dirname:  Compute the dirname of FILE.  If nonempty,
27415 #             add APPEND to the result, otherwise set result
27416 #             to NONDIR_REPLACEMENT.
27417 #             value returned in "$func_dirname_result"
27418 #   basename: Compute filename of FILE.
27419 #             value retuned in "$func_basename_result"
27420 # Implementation must be kept synchronized with func_dirname
27421 # and func_basename. For efficiency, we do not delegate to
27422 # those functions but instead duplicate the functionality here.
27423 func_dirname_and_basename ()
27424 {
27425   case ${1} in
27426     */*) func_dirname_result="${1%/*}${2}" ;;
27427     *  ) func_dirname_result="${3}" ;;
27428   esac
27429   func_basename_result="${1##*/}"
27430 }
27431
27432 # func_stripname prefix suffix name
27433 # strip PREFIX and SUFFIX off of NAME.
27434 # PREFIX and SUFFIX must not contain globbing or regex special
27435 # characters, hashes, percent signs, but SUFFIX may contain a leading
27436 # dot (in which case that matches only a dot).
27437 func_stripname ()
27438 {
27439   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27440   # positional parameters, so assign one to ordinary parameter first.
27441   func_stripname_result=${3}
27442   func_stripname_result=${func_stripname_result#"${1}"}
27443   func_stripname_result=${func_stripname_result%"${2}"}
27444 }
27445
27446 # func_opt_split
27447 func_opt_split ()
27448 {
27449   func_opt_split_opt=${1%%=*}
27450   func_opt_split_arg=${1#*=}
27451 }
27452
27453 # func_lo2o object
27454 func_lo2o ()
27455 {
27456   case ${1} in
27457     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27458     *)    func_lo2o_result=${1} ;;
27459   esac
27460 }
27461 _LT_EOF
27462     ;;
27463   *) # Bourne compatible functions.
27464     cat << \_LT_EOF >> "$cfgfile"
27465 # func_dirname file append nondir_replacement
27466 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27467 # otherwise set result to NONDIR_REPLACEMENT.
27468 func_dirname ()
27469 {
27470   # Extract subdirectory from the argument.
27471   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27472   if test "X$func_dirname_result" = "X${1}"; then
27473     func_dirname_result="${3}"
27474   else
27475     func_dirname_result="$func_dirname_result${2}"
27476   fi
27477 }
27478
27479 # func_basename file
27480 func_basename ()
27481 {
27482   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27483 }
27484
27485 # func_dirname_and_basename file append nondir_replacement
27486 # perform func_basename and func_dirname in a single function
27487 # call:
27488 #   dirname:  Compute the dirname of FILE.  If nonempty,
27489 #             add APPEND to the result, otherwise set result
27490 #             to NONDIR_REPLACEMENT.
27491 #             value returned in "$func_dirname_result"
27492 #   basename: Compute filename of FILE.
27493 #             value retuned in "$func_basename_result"
27494 # Implementation must be kept synchronized with func_dirname
27495 # and func_basename. For efficiency, we do not delegate to
27496 # those functions but instead duplicate the functionality here.
27497 func_dirname_and_basename ()
27498 {
27499   # Extract subdirectory from the argument.
27500   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27501   if test "X$func_dirname_result" = "X${1}"; then
27502     func_dirname_result="${3}"
27503   else
27504     func_dirname_result="$func_dirname_result${2}"
27505   fi
27506   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27507 }
27508
27509 # func_stripname prefix suffix name
27510 # strip PREFIX and SUFFIX off of NAME.
27511 # PREFIX and SUFFIX must not contain globbing or regex special
27512 # characters, hashes, percent signs, but SUFFIX may contain a leading
27513 # dot (in which case that matches only a dot).
27514 # func_strip_suffix prefix name
27515 func_stripname ()
27516 {
27517   case ${2} in
27518     .*) func_stripname_result=`$ECHO "X${3}" \
27519            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27520     *)  func_stripname_result=`$ECHO "X${3}" \
27521            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27522   esac
27523 }
27524
27525 # sed scripts:
27526 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27527 my_sed_long_arg='1s/^-[^=]*=//'
27528
27529 # func_opt_split
27530 func_opt_split ()
27531 {
27532   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27533   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27534 }
27535
27536 # func_lo2o object
27537 func_lo2o ()
27538 {
27539   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27540 }
27541 _LT_EOF
27542 esac
27543
27544 case $lt_shell_append in
27545   yes)
27546     cat << \_LT_EOF >> "$cfgfile"
27547
27548 # func_append var value
27549 # Append VALUE to the end of shell variable VAR.
27550 func_append ()
27551 {
27552   eval "$1+=\$2"
27553 }
27554 _LT_EOF
27555     ;;
27556   *)
27557     cat << \_LT_EOF >> "$cfgfile"
27558
27559 # func_append var value
27560 # Append VALUE to the end of shell variable VAR.
27561 func_append ()
27562 {
27563   eval "$1=\$$1\$2"
27564 }
27565 _LT_EOF
27566     ;;
27567   esac
27568
27569
27570   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27571     || (rm -f "$cfgfile"; exit 1)
27572
27573   mv -f "$cfgfile" "$ofile" ||
27574     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27575   chmod +x "$ofile"
27576
27577
27578     cat <<_LT_EOF >> "$ofile"
27579
27580 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27581
27582 # The linker used to build libraries.
27583 LD=$lt_LD_CXX
27584
27585 # Commands used to build an old-style archive.
27586 old_archive_cmds=$lt_old_archive_cmds_CXX
27587
27588 # A language specific compiler.
27589 CC=$lt_compiler_CXX
27590
27591 # Is the compiler the GNU compiler?
27592 with_gcc=$GCC_CXX
27593
27594 # Compiler flag to turn off builtin functions.
27595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27596
27597 # How to pass a linker flag through the compiler.
27598 wl=$lt_lt_prog_compiler_wl_CXX
27599
27600 # Additional compiler flags for building library objects.
27601 pic_flag=$lt_lt_prog_compiler_pic_CXX
27602
27603 # Compiler flag to prevent dynamic linking.
27604 link_static_flag=$lt_lt_prog_compiler_static_CXX
27605
27606 # Does compiler simultaneously support -c and -o options?
27607 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27608
27609 # Whether or not to add -lc for building shared libraries.
27610 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27611
27612 # Whether or not to disallow shared libs when runtime libs are static.
27613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27614
27615 # Compiler flag to allow reflexive dlopens.
27616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27617
27618 # Compiler flag to generate shared objects directly from archives.
27619 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27620
27621 # Whether the compiler copes with passing no objects directly.
27622 compiler_needs_object=$lt_compiler_needs_object_CXX
27623
27624 # Create an old-style archive from a shared archive.
27625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27626
27627 # Create a temporary old-style archive to link instead of a shared archive.
27628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27629
27630 # Commands used to build a shared archive.
27631 archive_cmds=$lt_archive_cmds_CXX
27632 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27633
27634 # Commands used to build a loadable module if different from building
27635 # a shared archive.
27636 module_cmds=$lt_module_cmds_CXX
27637 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27638
27639 # Whether we are building with GNU ld or not.
27640 with_gnu_ld=$lt_with_gnu_ld_CXX
27641
27642 # Flag that allows shared libraries with undefined symbols to be built.
27643 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27644
27645 # Flag that enforces no undefined symbols.
27646 no_undefined_flag=$lt_no_undefined_flag_CXX
27647
27648 # Flag to hardcode \$libdir into a binary during linking.
27649 # This must work even if \$libdir does not exist
27650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27651
27652 # If ld is used when linking, flag to hardcode \$libdir into a binary
27653 # during linking.  This must work even if \$libdir does not exist.
27654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27655
27656 # Whether we need a single "-rpath" flag with a separated argument.
27657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27658
27659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27660 # DIR into the resulting binary.
27661 hardcode_direct=$hardcode_direct_CXX
27662
27663 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27664 # DIR into the resulting binary and the resulting library dependency is
27665 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27666 # library is relocated.
27667 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27668
27669 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27670 # into the resulting binary.
27671 hardcode_minus_L=$hardcode_minus_L_CXX
27672
27673 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27674 # into the resulting binary.
27675 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27676
27677 # Set to "yes" if building a shared library automatically hardcodes DIR
27678 # into the library and all subsequent libraries and executables linked
27679 # against it.
27680 hardcode_automatic=$hardcode_automatic_CXX
27681
27682 # Set to yes if linker adds runtime paths of dependent libraries
27683 # to runtime path list.
27684 inherit_rpath=$inherit_rpath_CXX
27685
27686 # Whether libtool must link a program against all its dependency libraries.
27687 link_all_deplibs=$link_all_deplibs_CXX
27688
27689 # Fix the shell variable \$srcfile for the compiler.
27690 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27691
27692 # Set to "yes" if exported symbols are required.
27693 always_export_symbols=$always_export_symbols_CXX
27694
27695 # The commands to list exported symbols.
27696 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27697
27698 # Symbols that should not be listed in the preloaded symbols.
27699 exclude_expsyms=$lt_exclude_expsyms_CXX
27700
27701 # Symbols that must always be exported.
27702 include_expsyms=$lt_include_expsyms_CXX
27703
27704 # Commands necessary for linking programs (against libraries) with templates.
27705 prelink_cmds=$lt_prelink_cmds_CXX
27706
27707 # Specify filename containing input files.
27708 file_list_spec=$lt_file_list_spec_CXX
27709
27710 # How to hardcode a shared library path into an executable.
27711 hardcode_action=$hardcode_action_CXX
27712
27713 # The directories searched by this compiler when creating a shared library.
27714 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27715
27716 # Dependencies to place before and after the objects being linked to
27717 # create a shared library.
27718 predep_objects=$lt_predep_objects_CXX
27719 postdep_objects=$lt_postdep_objects_CXX
27720 predeps=$lt_predeps_CXX
27721 postdeps=$lt_postdeps_CXX
27722
27723 # The library search path used internally by the compiler when linking
27724 # a shared library.
27725 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27726
27727 # ### END LIBTOOL TAG CONFIG: CXX
27728 _LT_EOF
27729
27730
27731     cat <<_LT_EOF >> "$ofile"
27732
27733 # ### BEGIN LIBTOOL TAG CONFIG: F77
27734
27735 # The linker used to build libraries.
27736 LD=$lt_LD_F77
27737
27738 # Commands used to build an old-style archive.
27739 old_archive_cmds=$lt_old_archive_cmds_F77
27740
27741 # A language specific compiler.
27742 CC=$lt_compiler_F77
27743
27744 # Is the compiler the GNU compiler?
27745 with_gcc=$GCC_F77
27746
27747 # Compiler flag to turn off builtin functions.
27748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
27749
27750 # How to pass a linker flag through the compiler.
27751 wl=$lt_lt_prog_compiler_wl_F77
27752
27753 # Additional compiler flags for building library objects.
27754 pic_flag=$lt_lt_prog_compiler_pic_F77
27755
27756 # Compiler flag to prevent dynamic linking.
27757 link_static_flag=$lt_lt_prog_compiler_static_F77
27758
27759 # Does compiler simultaneously support -c and -o options?
27760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
27761
27762 # Whether or not to add -lc for building shared libraries.
27763 build_libtool_need_lc=$archive_cmds_need_lc_F77
27764
27765 # Whether or not to disallow shared libs when runtime libs are static.
27766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
27767
27768 # Compiler flag to allow reflexive dlopens.
27769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
27770
27771 # Compiler flag to generate shared objects directly from archives.
27772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
27773
27774 # Whether the compiler copes with passing no objects directly.
27775 compiler_needs_object=$lt_compiler_needs_object_F77
27776
27777 # Create an old-style archive from a shared archive.
27778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
27779
27780 # Create a temporary old-style archive to link instead of a shared archive.
27781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
27782
27783 # Commands used to build a shared archive.
27784 archive_cmds=$lt_archive_cmds_F77
27785 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
27786
27787 # Commands used to build a loadable module if different from building
27788 # a shared archive.
27789 module_cmds=$lt_module_cmds_F77
27790 module_expsym_cmds=$lt_module_expsym_cmds_F77
27791
27792 # Whether we are building with GNU ld or not.
27793 with_gnu_ld=$lt_with_gnu_ld_F77
27794
27795 # Flag that allows shared libraries with undefined symbols to be built.
27796 allow_undefined_flag=$lt_allow_undefined_flag_F77
27797
27798 # Flag that enforces no undefined symbols.
27799 no_undefined_flag=$lt_no_undefined_flag_F77
27800
27801 # Flag to hardcode \$libdir into a binary during linking.
27802 # This must work even if \$libdir does not exist
27803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
27804
27805 # If ld is used when linking, flag to hardcode \$libdir into a binary
27806 # during linking.  This must work even if \$libdir does not exist.
27807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
27808
27809 # Whether we need a single "-rpath" flag with a separated argument.
27810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
27811
27812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27813 # DIR into the resulting binary.
27814 hardcode_direct=$hardcode_direct_F77
27815
27816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27817 # DIR into the resulting binary and the resulting library dependency is
27818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27819 # library is relocated.
27820 hardcode_direct_absolute=$hardcode_direct_absolute_F77
27821
27822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27823 # into the resulting binary.
27824 hardcode_minus_L=$hardcode_minus_L_F77
27825
27826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27827 # into the resulting binary.
27828 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
27829
27830 # Set to "yes" if building a shared library automatically hardcodes DIR
27831 # into the library and all subsequent libraries and executables linked
27832 # against it.
27833 hardcode_automatic=$hardcode_automatic_F77
27834
27835 # Set to yes if linker adds runtime paths of dependent libraries
27836 # to runtime path list.
27837 inherit_rpath=$inherit_rpath_F77
27838
27839 # Whether libtool must link a program against all its dependency libraries.
27840 link_all_deplibs=$link_all_deplibs_F77
27841
27842 # Fix the shell variable \$srcfile for the compiler.
27843 fix_srcfile_path=$lt_fix_srcfile_path_F77
27844
27845 # Set to "yes" if exported symbols are required.
27846 always_export_symbols=$always_export_symbols_F77
27847
27848 # The commands to list exported symbols.
27849 export_symbols_cmds=$lt_export_symbols_cmds_F77
27850
27851 # Symbols that should not be listed in the preloaded symbols.
27852 exclude_expsyms=$lt_exclude_expsyms_F77
27853
27854 # Symbols that must always be exported.
27855 include_expsyms=$lt_include_expsyms_F77
27856
27857 # Commands necessary for linking programs (against libraries) with templates.
27858 prelink_cmds=$lt_prelink_cmds_F77
27859
27860 # Specify filename containing input files.
27861 file_list_spec=$lt_file_list_spec_F77
27862
27863 # How to hardcode a shared library path into an executable.
27864 hardcode_action=$hardcode_action_F77
27865
27866 # The directories searched by this compiler when creating a shared library.
27867 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
27868
27869 # Dependencies to place before and after the objects being linked to
27870 # create a shared library.
27871 predep_objects=$lt_predep_objects_F77
27872 postdep_objects=$lt_postdep_objects_F77
27873 predeps=$lt_predeps_F77
27874 postdeps=$lt_postdeps_F77
27875
27876 # The library search path used internally by the compiler when linking
27877 # a shared library.
27878 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
27879
27880 # ### END LIBTOOL TAG CONFIG: F77
27881 _LT_EOF
27882
27883  ;;
27884
27885   esac
27886 done # for ac_tag
27887
27888
27889 { (exit 0); exit 0; }
27890 _ACEOF
27891 chmod +x $CONFIG_STATUS
27892 ac_clean_files=$ac_clean_files_save
27893
27894 test $ac_write_fail = 0 ||
27895   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27896 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27897    { (exit 1); exit 1; }; }
27898
27899
27900 # configure is writing to config.log, and then calls config.status.
27901 # config.status does its own redirection, appending to config.log.
27902 # Unfortunately, on DOS this fails, as config.log is still kept open
27903 # by configure, so config.status won't be able to write to it; its
27904 # output is simply discarded.  So we exec the FD to /dev/null,
27905 # effectively closing config.log, so it can be properly (re)opened and
27906 # appended to by config.status.  When coming back to configure, we
27907 # need to make the FD available again.
27908 if test "$no_create" != yes; then
27909   ac_cs_success=:
27910   ac_config_status_args=
27911   test "$silent" = yes &&
27912     ac_config_status_args="$ac_config_status_args --quiet"
27913   exec 5>/dev/null
27914   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27915   exec 5>>config.log
27916   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27917   # would make configure fail if this is the last instruction.
27918   $ac_cs_success || { (exit 1); exit 1; }
27919 fi
27920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27921   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27922 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27923 fi
27924
27925