Upload Tizen:Base source
[external/gmp.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for GNU MP 5.0.1.
5 #
6 # Report bugs to <gmp-bugs@gmplib.org>.
7 #
8 #
9 #
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
12 #
13 # This file is part of the GNU MP Library.
14 #
15 # The GNU MP Library is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License as published
17 # by the Free Software Foundation; either version 3 of the License, or (at
18 # your option) any later version.
19 #
20 # The GNU MP Library is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
23 # License for more details.
24 #
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
27 #
28 #
29 #
30 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
31 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
32 # Inc.
33 #
34 #
35 # This configure script is free software; the Free Software Foundation
36 # gives unlimited permission to copy, distribute and modify it.
37 ## -------------------- ##
38 ## M4sh Initialization. ##
39 ## -------------------- ##
40
41 # Be more Bourne compatible
42 DUALCASE=1; export DUALCASE # for MKS sh
43 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
44   emulate sh
45   NULLCMD=:
46   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47   # is contrary to our usage.  Disable this feature.
48   alias -g '${1+"$@"}'='"$@"'
49   setopt NO_GLOB_SUBST
50 else
51   case `(set -o) 2>/dev/null` in #(
52   *posix*) :
53     set -o posix ;; #(
54   *) :
55      ;;
56 esac
57 fi
58
59
60 as_nl='
61 '
62 export as_nl
63 # Printing a long string crashes Solaris 7 /usr/bin/printf.
64 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
65 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
66 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
67 # Prefer a ksh shell builtin over an external printf program on Solaris,
68 # but without wasting forks for bash or zsh.
69 if test -z "$BASH_VERSION$ZSH_VERSION" \
70     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
71   as_echo='print -r --'
72   as_echo_n='print -rn --'
73 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
74   as_echo='printf %s\n'
75   as_echo_n='printf %s'
76 else
77   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
78     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
79     as_echo_n='/usr/ucb/echo -n'
80   else
81     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
82     as_echo_n_body='eval
83       arg=$1;
84       case $arg in #(
85       *"$as_nl"*)
86         expr "X$arg" : "X\\(.*\\)$as_nl";
87         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
88       esac;
89       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
90     '
91     export as_echo_n_body
92     as_echo_n='sh -c $as_echo_n_body as_echo'
93   fi
94   export as_echo_body
95   as_echo='sh -c $as_echo_body as_echo'
96 fi
97
98 # The user is always right.
99 if test "${PATH_SEPARATOR+set}" != set; then
100   PATH_SEPARATOR=:
101   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
102     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
103       PATH_SEPARATOR=';'
104   }
105 fi
106
107
108 # IFS
109 # We need space, tab and new line, in precisely that order.  Quoting is
110 # there to prevent editors from complaining about space-tab.
111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
112 # splitting by setting IFS to empty value.)
113 IFS=" ""        $as_nl"
114
115 # Find who we are.  Look in the path if we contain no directory separator.
116 case $0 in #((
117   *[\\/]* ) as_myself=$0 ;;
118   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 for as_dir in $PATH
120 do
121   IFS=$as_save_IFS
122   test -z "$as_dir" && as_dir=.
123     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124   done
125 IFS=$as_save_IFS
126
127      ;;
128 esac
129 # We did not find ourselves, most probably we were run as `sh COMMAND'
130 # in which case we are not to be found in the path.
131 if test "x$as_myself" = x; then
132   as_myself=$0
133 fi
134 if test ! -f "$as_myself"; then
135   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
136   exit 1
137 fi
138
139 # Unset variables that we do not need and which cause bugs (e.g. in
140 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
141 # suppresses any "Segmentation fault" message there.  '((' could
142 # trigger a bug in pdksh 5.2.14.
143 for as_var in BASH_ENV ENV MAIL MAILPATH
144 do eval test x\${$as_var+set} = xset \
145   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
146 done
147 PS1='$ '
148 PS2='> '
149 PS4='+ '
150
151 # NLS nuisances.
152 LC_ALL=C
153 export LC_ALL
154 LANGUAGE=C
155 export LANGUAGE
156
157 # CDPATH.
158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
159
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1"
194   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1"
199   if (eval "$as_required") 2>/dev/null; then :
200   as_have_required=yes
201 else
202   as_have_required=no
203 fi
204   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206 else
207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211   IFS=$as_save_IFS
212   test -z "$as_dir" && as_dir=.
213   as_found=:
214   case $as_dir in #(
215          /*)
216            for as_base in sh bash ksh sh5; do
217              # Try only shells that exist, to save several forks.
218              as_shell=$as_dir/$as_base
219              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221   CONFIG_SHELL=$as_shell as_have_required=yes
222                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223   break 2
224 fi
225 fi
226            done;;
227        esac
228   as_found=false
229 done
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232   CONFIG_SHELL=$SHELL as_have_required=yes
233 fi; }
234 IFS=$as_save_IFS
235
236
237       if test "x$CONFIG_SHELL" != x; then :
238   # We cannot yet assume a decent shell, so we have to provide a
239         # neutralization value for shells without unset; and this also
240         # works around shells that cannot unset nonexistent variables.
241         BASH_ENV=/dev/null
242         ENV=/dev/null
243         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
244         export CONFIG_SHELL
245         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
246 fi
247
248     if test x$as_have_required = xno; then :
249   $as_echo "$0: This script requires a shell more modern than all"
250   $as_echo "$0: the shells that I found on your system."
251   if test x${ZSH_VERSION+set} = xset ; then
252     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
253     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
254   else
255     $as_echo "$0: Please tell bug-autoconf@gnu.org and
256 $0: gmp-bugs@gmplib.org about your system, including any
257 $0: error possibly output before this message. Then install
258 $0: a modern shell, or manually run the script under such a
259 $0: shell if you do have one."
260   fi
261   exit 1
262 fi
263 fi
264 fi
265 SHELL=${CONFIG_SHELL-/bin/sh}
266 export SHELL
267 # Unset more variables known to interfere with behavior of common tools.
268 CLICOLOR_FORCE= GREP_OPTIONS=
269 unset CLICOLOR_FORCE GREP_OPTIONS
270
271 ## --------------------- ##
272 ## M4sh Shell Functions. ##
273 ## --------------------- ##
274 # as_fn_unset VAR
275 # ---------------
276 # Portably unset VAR.
277 as_fn_unset ()
278 {
279   { eval $1=; unset $1;}
280 }
281 as_unset=as_fn_unset
282
283 # as_fn_set_status STATUS
284 # -----------------------
285 # Set $? to STATUS, without forking.
286 as_fn_set_status ()
287 {
288   return $1
289 } # as_fn_set_status
290
291 # as_fn_exit STATUS
292 # -----------------
293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 as_fn_exit ()
295 {
296   set +e
297   as_fn_set_status $1
298   exit $1
299 } # as_fn_exit
300
301 # as_fn_mkdir_p
302 # -------------
303 # Create "$as_dir" as a directory, including parents if necessary.
304 as_fn_mkdir_p ()
305 {
306
307   case $as_dir in #(
308   -*) as_dir=./$as_dir;;
309   esac
310   test -d "$as_dir" || eval $as_mkdir_p || {
311     as_dirs=
312     while :; do
313       case $as_dir in #(
314       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
315       *) as_qdir=$as_dir;;
316       esac
317       as_dirs="'$as_qdir' $as_dirs"
318       as_dir=`$as_dirname -- "$as_dir" ||
319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
320          X"$as_dir" : 'X\(//\)[^/]' \| \
321          X"$as_dir" : 'X\(//\)$' \| \
322          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
323 $as_echo X"$as_dir" |
324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
325             s//\1/
326             q
327           }
328           /^X\(\/\/\)[^/].*/{
329             s//\1/
330             q
331           }
332           /^X\(\/\/\)$/{
333             s//\1/
334             q
335           }
336           /^X\(\/\).*/{
337             s//\1/
338             q
339           }
340           s/.*/./; q'`
341       test -d "$as_dir" && break
342     done
343     test -z "$as_dirs" || eval "mkdir $as_dirs"
344   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
345
346
347 } # as_fn_mkdir_p
348 # as_fn_append VAR VALUE
349 # ----------------------
350 # Append the text in VALUE to the end of the definition contained in VAR. Take
351 # advantage of any shell optimizations that allow amortized linear growth over
352 # repeated appends, instead of the typical quadratic growth present in naive
353 # implementations.
354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
355   eval 'as_fn_append ()
356   {
357     eval $1+=\$2
358   }'
359 else
360   as_fn_append ()
361   {
362     eval $1=\$$1\$2
363   }
364 fi # as_fn_append
365
366 # as_fn_arith ARG...
367 # ------------------
368 # Perform arithmetic evaluation on the ARGs, and store the result in the
369 # global $as_val. Take advantage of shells that can avoid forks. The arguments
370 # must be portable across $(()) and expr.
371 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
372   eval 'as_fn_arith ()
373   {
374     as_val=$(( $* ))
375   }'
376 else
377   as_fn_arith ()
378   {
379     as_val=`expr "$@" || test $? -eq 1`
380   }
381 fi # as_fn_arith
382
383
384 # as_fn_error ERROR [LINENO LOG_FD]
385 # ---------------------------------
386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
388 # script with status $?, using 1 if that was 0.
389 as_fn_error ()
390 {
391   as_status=$?; test $as_status -eq 0 && as_status=1
392   if test "$3"; then
393     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
394     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
395   fi
396   $as_echo "$as_me: error: $1" >&2
397   as_fn_exit $as_status
398 } # as_fn_error
399
400 if expr a : '\(a\)' >/dev/null 2>&1 &&
401    test "X`expr 00001 : '.*\(...\)'`" = X001; then
402   as_expr=expr
403 else
404   as_expr=false
405 fi
406
407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408   as_basename=basename
409 else
410   as_basename=false
411 fi
412
413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414   as_dirname=dirname
415 else
416   as_dirname=false
417 fi
418
419 as_me=`$as_basename -- "$0" ||
420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
421          X"$0" : 'X\(//\)$' \| \
422          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
423 $as_echo X/"$0" |
424     sed '/^.*\/\([^/][^/]*\)\/*$/{
425             s//\1/
426             q
427           }
428           /^X\/\(\/\/\)$/{
429             s//\1/
430             q
431           }
432           /^X\/\(\/\).*/{
433             s//\1/
434             q
435           }
436           s/.*/./; q'`
437
438 # Avoid depending upon Character Ranges.
439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
442 as_cr_digits='0123456789'
443 as_cr_alnum=$as_cr_Letters$as_cr_digits
444
445
446   as_lineno_1=$LINENO as_lineno_1a=$LINENO
447   as_lineno_2=$LINENO as_lineno_2a=$LINENO
448   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
449   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
450   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
451   sed -n '
452     p
453     /[$]LINENO/=
454   ' <$as_myself |
455     sed '
456       s/[$]LINENO.*/&-/
457       t lineno
458       b
459       :lineno
460       N
461       :loop
462       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
463       t loop
464       s/-\n.*//
465     ' >$as_me.lineno &&
466   chmod +x "$as_me.lineno" ||
467     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
468
469   # Don't try to exec as it changes $[0], causing all sort of problems
470   # (the dirname of $[0] is not the place where we might find the
471   # original and so on.  Autoconf is especially sensitive to this).
472   . "./$as_me.lineno"
473   # Exit status is that of the last command.
474   exit
475 }
476
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in #(((((
479 -n*)
480   case `echo 'xy\c'` in
481   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
482   xy)  ECHO_C='\c';;
483   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
484        ECHO_T=' ';;
485   esac;;
486 *)
487   ECHO_N='-n';;
488 esac
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir 2>/dev/null
496 fi
497 if (echo >conf$$.file) 2>/dev/null; then
498   if ln -s conf$$.file conf$$ 2>/dev/null; then
499     as_ln_s='ln -s'
500     # ... but there are two gotchas:
501     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503     # In both cases, we have to default to `cp -p'.
504     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505       as_ln_s='cp -p'
506   elif ln conf$$.file conf$$ 2>/dev/null; then
507     as_ln_s=ln
508   else
509     as_ln_s='cp -p'
510   fi
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p='mkdir -p "$as_dir"'
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in #(
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $ECHO works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<_LT_EOF
584 $*
585 _LT_EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$lt_ECHO"; then
594   if test "X${echo_test_string+set}" != Xset; then
595     # find a string as large as possible, as long as the shell can cope with it
596     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600       then
601         break
602       fi
603     done
604   fi
605
606   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608      test "X$echo_testing_string" = "X$echo_test_string"; then
609     :
610   else
611     # The Solaris, AIX, and Digital Unix default echo programs unquote
612     # backslashes.  This makes it impossible to quote backslashes using
613     #   echo "$something" | sed 's/\\/\\\\/g'
614     #
615     # So, first we look for a working echo in the user's PATH.
616
617     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618     for dir in $PATH /usr/ucb; do
619       IFS="$lt_save_ifs"
620       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623          test "X$echo_testing_string" = "X$echo_test_string"; then
624         ECHO="$dir/echo"
625         break
626       fi
627     done
628     IFS="$lt_save_ifs"
629
630     if test "X$ECHO" = Xecho; then
631       # We didn't find a better echo, so look for alternatives.
632       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # This shell has a builtin print -r that does the trick.
636         ECHO='print -r'
637       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638            test "X$CONFIG_SHELL" != X/bin/ksh; then
639         # If we have ksh, try running configure again with it.
640         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641         export ORIGINAL_CONFIG_SHELL
642         CONFIG_SHELL=/bin/ksh
643         export CONFIG_SHELL
644         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645       else
646         # Try using printf.
647         ECHO='printf %s\n'
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           # Cool, printf works
652           :
653         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654              test "X$echo_testing_string" = 'X\t' &&
655              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656              test "X$echo_testing_string" = "X$echo_test_string"; then
657           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658           export CONFIG_SHELL
659           SHELL="$CONFIG_SHELL"
660           export SHELL
661           ECHO="$CONFIG_SHELL $0 --fallback-echo"
662         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663              test "X$echo_testing_string" = 'X\t' &&
664              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665              test "X$echo_testing_string" = "X$echo_test_string"; then
666           ECHO="$CONFIG_SHELL $0 --fallback-echo"
667         else
668           # maybe with a smaller string...
669           prev=:
670
671           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673             then
674               break
675             fi
676             prev="$cmd"
677           done
678
679           if test "$prev" != 'sed 50q "$0"'; then
680             echo_test_string=`eval $prev`
681             export echo_test_string
682             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683           else
684             # Oops.  We lost completely, so just stick with echo.
685             ECHO=echo
686           fi
687         fi
688       fi
689     fi
690   fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 test -n "$DJDIR" || exec 7<&0 </dev/null
704 exec 6>&1
705
706 # Name of the host.
707 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
708 # so uname gets run too.
709 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
710
711 #
712 # Initializations.
713 #
714 ac_default_prefix=/usr/local
715 ac_clean_files=
716 ac_config_libobj_dir=.
717 LIBOBJS=
718 cross_compiling=no
719 subdirs=
720 MFLAGS=
721 MAKEFLAGS=
722
723 # Identity of this package.
724 PACKAGE_NAME='GNU MP'
725 PACKAGE_TARNAME='gmp'
726 PACKAGE_VERSION='5.0.1'
727 PACKAGE_STRING='GNU MP 5.0.1'
728 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org'
729 PACKAGE_URL='http://www.gnu.org/software/gmp/'
730
731 ac_unique_file="gmp-impl.h"
732 # Factoring default headers for most tests.
733 ac_includes_default="\
734 #include <stdio.h>
735 #ifdef HAVE_SYS_TYPES_H
736 # include <sys/types.h>
737 #endif
738 #ifdef HAVE_SYS_STAT_H
739 # include <sys/stat.h>
740 #endif
741 #ifdef STDC_HEADERS
742 # include <stdlib.h>
743 # include <stddef.h>
744 #else
745 # ifdef HAVE_STDLIB_H
746 #  include <stdlib.h>
747 # endif
748 #endif
749 #ifdef HAVE_STRING_H
750 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
751 #  include <memory.h>
752 # endif
753 # include <string.h>
754 #endif
755 #ifdef HAVE_STRINGS_H
756 # include <strings.h>
757 #endif
758 #ifdef HAVE_INTTYPES_H
759 # include <inttypes.h>
760 #endif
761 #ifdef HAVE_STDINT_H
762 # include <stdint.h>
763 #endif
764 #ifdef HAVE_UNISTD_H
765 # include <unistd.h>
766 #endif"
767
768 ac_subst_vars='am__EXEEXT_FALSE
769 am__EXEEXT_TRUE
770 LTLIBOBJS
771 LIBOBJS
772 LEXLIB
773 LEX_OUTPUT_ROOT
774 LEX
775 YFLAGS
776 YACC
777 LIBREADLINE
778 WITH_READLINE_01
779 LIBCURSES
780 HAVE_STACK_T_01
781 HAVE_SYS_RESOURCE_H_01
782 HAVE_SIGSTACK_01
783 HAVE_SIGALTSTACK_01
784 HAVE_SIGACTION_01
785 HAVE_GETTIMEOFDAY_01
786 HAVE_GETRUSAGE_01
787 HAVE_CPUTIME_01
788 HAVE_CLOCK_01
789 TUNE_SQR_OBJ
790 gmp_srclinks
791 mpn_objs_in_libgmp
792 mpn_objects
793 mpn_objs_in_libmp
794 GMP_LIMB_BITS
795 M4
796 TAL_OBJECT
797 LIBM
798 ENABLE_STATIC_FALSE
799 ENABLE_STATIC_TRUE
800 ac_ct_F77
801 FFLAGS
802 F77
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 RANLIB
810 LN_S
811 LD
812 FGREP
813 SED
814 LIBTOOL
815 LIBGMP_DLL
816 OBJDUMP
817 DLLTOOL
818 AS
819 NM
820 ac_ct_DUMPBIN
821 DUMPBIN
822 AR
823 ASMFLAGS
824 ANSI2KNR
825 U
826 EGREP
827 GREP
828 CXXCPP
829 WANT_CXX_FALSE
830 WANT_CXX_TRUE
831 ac_ct_CXX
832 CXXFLAGS
833 CXX
834 CCAS
835 LIBM_FOR_BUILD
836 U_FOR_BUILD
837 EXEEXT_FOR_BUILD
838 CPP_FOR_BUILD
839 CC_FOR_BUILD
840 CPP
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 DEFN_LONG_LONG_LIMB
849 CALLING_CONVENTIONS_OBJS
850 SPEED_CYCLECOUNTER_OBJ
851 LIBGMPXX_LDFLAGS
852 LIBGMP_LDFLAGS
853 GMP_LDFLAGS
854 HAVE_HOST_CPU_FAMILY_powerpc
855 HAVE_HOST_CPU_FAMILY_power
856 ABI
857 GMP_NAIL_BITS
858 WANT_MPBSD_FALSE
859 WANT_MPBSD_TRUE
860 MAINT
861 MAINTAINER_MODE_FALSE
862 MAINTAINER_MODE_TRUE
863 am__untar
864 am__tar
865 AMTAR
866 am__leading_dot
867 SET_MAKE
868 AWK
869 mkdir_p
870 MKDIR_P
871 INSTALL_STRIP_PROGRAM
872 STRIP
873 install_sh
874 MAKEINFO
875 AUTOHEADER
876 AUTOMAKE
877 AUTOCONF
878 ACLOCAL
879 VERSION
880 PACKAGE
881 CYGPATH_W
882 am__isrc
883 INSTALL_DATA
884 INSTALL_SCRIPT
885 INSTALL_PROGRAM
886 host_os
887 host_vendor
888 host_cpu
889 host
890 build_os
891 build_vendor
892 build_cpu
893 build
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_URL
925 PACKAGE_BUGREPORT
926 PACKAGE_STRING
927 PACKAGE_VERSION
928 PACKAGE_TARNAME
929 PACKAGE_NAME
930 PATH_SEPARATOR
931 SHELL'
932 ac_subst_files=''
933 ac_user_opts='
934 enable_option_checking
935 enable_maintainer_mode
936 enable_assert
937 enable_alloca
938 enable_cxx
939 enable_fft
940 enable_old_fft_full
941 enable_mpbsd
942 enable_nails
943 enable_profiling
944 with_readline
945 enable_fat
946 enable_minithres
947 enable_shared
948 enable_static
949 with_pic
950 enable_fast_install
951 with_gnu_ld
952 enable_libtool_lock
953 '
954       ac_precious_vars='build_alias
955 host_alias
956 target_alias
957 ABI
958 CC
959 CFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
963 CPP
964 CC_FOR_BUILD
965 CPP_FOR_BUILD
966 CXX
967 CXXFLAGS
968 CCC
969 CXXCPP
970 F77
971 FFLAGS
972 M4
973 YACC
974 YFLAGS'
975
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029   # If the previous option needs an argument, assign it.
1030   if test -n "$ac_prev"; then
1031     eval $ac_prev=\$ac_option
1032     ac_prev=
1033     continue
1034   fi
1035
1036   case $ac_option in
1037   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038   *)    ac_optarg=yes ;;
1039   esac
1040
1041   # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043   case $ac_dashdash$ac_option in
1044   --)
1045     ac_dashdash=yes ;;
1046
1047   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048     ac_prev=bindir ;;
1049   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050     bindir=$ac_optarg ;;
1051
1052   -build | --build | --buil | --bui | --bu)
1053     ac_prev=build_alias ;;
1054   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055     build_alias=$ac_optarg ;;
1056
1057   -cache-file | --cache-file | --cache-fil | --cache-fi \
1058   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059     ac_prev=cache_file ;;
1060   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062     cache_file=$ac_optarg ;;
1063
1064   --config-cache | -C)
1065     cache_file=config.cache ;;
1066
1067   -datadir | --datadir | --datadi | --datad)
1068     ac_prev=datadir ;;
1069   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070     datadir=$ac_optarg ;;
1071
1072   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073   | --dataroo | --dataro | --datar)
1074     ac_prev=datarootdir ;;
1075   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077     datarootdir=$ac_optarg ;;
1078
1079   -disable-* | --disable-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error "invalid feature name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval enable_$ac_useropt=no ;;
1094
1095   -docdir | --docdir | --docdi | --doc | --do)
1096     ac_prev=docdir ;;
1097   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098     docdir=$ac_optarg ;;
1099
1100   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101     ac_prev=dvidir ;;
1102   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103     dvidir=$ac_optarg ;;
1104
1105   -enable-* | --enable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error "invalid feature name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123   | --exec | --exe | --ex)
1124     ac_prev=exec_prefix ;;
1125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127   | --exec=* | --exe=* | --ex=*)
1128     exec_prefix=$ac_optarg ;;
1129
1130   -gas | --gas | --ga | --g)
1131     # Obsolete; use --with-gas.
1132     with_gas=yes ;;
1133
1134   -help | --help | --hel | --he | -h)
1135     ac_init_help=long ;;
1136   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137     ac_init_help=recursive ;;
1138   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139     ac_init_help=short ;;
1140
1141   -host | --host | --hos | --ho)
1142     ac_prev=host_alias ;;
1143   -host=* | --host=* | --hos=* | --ho=*)
1144     host_alias=$ac_optarg ;;
1145
1146   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147     ac_prev=htmldir ;;
1148   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149   | --ht=*)
1150     htmldir=$ac_optarg ;;
1151
1152   -includedir | --includedir | --includedi | --included | --include \
1153   | --includ | --inclu | --incl | --inc)
1154     ac_prev=includedir ;;
1155   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156   | --includ=* | --inclu=* | --incl=* | --inc=*)
1157     includedir=$ac_optarg ;;
1158
1159   -infodir | --infodir | --infodi | --infod | --info | --inf)
1160     ac_prev=infodir ;;
1161   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162     infodir=$ac_optarg ;;
1163
1164   -libdir | --libdir | --libdi | --libd)
1165     ac_prev=libdir ;;
1166   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167     libdir=$ac_optarg ;;
1168
1169   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170   | --libexe | --libex | --libe)
1171     ac_prev=libexecdir ;;
1172   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173   | --libexe=* | --libex=* | --libe=*)
1174     libexecdir=$ac_optarg ;;
1175
1176   -localedir | --localedir | --localedi | --localed | --locale)
1177     ac_prev=localedir ;;
1178   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179     localedir=$ac_optarg ;;
1180
1181   -localstatedir | --localstatedir | --localstatedi | --localstated \
1182   | --localstate | --localstat | --localsta | --localst | --locals)
1183     ac_prev=localstatedir ;;
1184   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186     localstatedir=$ac_optarg ;;
1187
1188   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189     ac_prev=mandir ;;
1190   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191     mandir=$ac_optarg ;;
1192
1193   -nfp | --nfp | --nf)
1194     # Obsolete; use --without-fp.
1195     with_fp=no ;;
1196
1197   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198   | --no-cr | --no-c | -n)
1199     no_create=yes ;;
1200
1201   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203     no_recursion=yes ;;
1204
1205   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207   | --oldin | --oldi | --old | --ol | --o)
1208     ac_prev=oldincludedir ;;
1209   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212     oldincludedir=$ac_optarg ;;
1213
1214   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215     ac_prev=prefix ;;
1216   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217     prefix=$ac_optarg ;;
1218
1219   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220   | --program-pre | --program-pr | --program-p)
1221     ac_prev=program_prefix ;;
1222   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224     program_prefix=$ac_optarg ;;
1225
1226   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227   | --program-suf | --program-su | --program-s)
1228     ac_prev=program_suffix ;;
1229   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231     program_suffix=$ac_optarg ;;
1232
1233   -program-transform-name | --program-transform-name \
1234   | --program-transform-nam | --program-transform-na \
1235   | --program-transform-n | --program-transform- \
1236   | --program-transform | --program-transfor \
1237   | --program-transfo | --program-transf \
1238   | --program-trans | --program-tran \
1239   | --progr-tra | --program-tr | --program-t)
1240     ac_prev=program_transform_name ;;
1241   -program-transform-name=* | --program-transform-name=* \
1242   | --program-transform-nam=* | --program-transform-na=* \
1243   | --program-transform-n=* | --program-transform-=* \
1244   | --program-transform=* | --program-transfor=* \
1245   | --program-transfo=* | --program-transf=* \
1246   | --program-trans=* | --program-tran=* \
1247   | --progr-tra=* | --program-tr=* | --program-t=*)
1248     program_transform_name=$ac_optarg ;;
1249
1250   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251     ac_prev=pdfdir ;;
1252   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253     pdfdir=$ac_optarg ;;
1254
1255   -psdir | --psdir | --psdi | --psd | --ps)
1256     ac_prev=psdir ;;
1257   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258     psdir=$ac_optarg ;;
1259
1260   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261   | -silent | --silent | --silen | --sile | --sil)
1262     silent=yes ;;
1263
1264   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265     ac_prev=sbindir ;;
1266   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267   | --sbi=* | --sb=*)
1268     sbindir=$ac_optarg ;;
1269
1270   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272   | --sharedst | --shareds | --shared | --share | --shar \
1273   | --sha | --sh)
1274     ac_prev=sharedstatedir ;;
1275   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278   | --sha=* | --sh=*)
1279     sharedstatedir=$ac_optarg ;;
1280
1281   -site | --site | --sit)
1282     ac_prev=site ;;
1283   -site=* | --site=* | --sit=*)
1284     site=$ac_optarg ;;
1285
1286   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287     ac_prev=srcdir ;;
1288   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289     srcdir=$ac_optarg ;;
1290
1291   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292   | --syscon | --sysco | --sysc | --sys | --sy)
1293     ac_prev=sysconfdir ;;
1294   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296     sysconfdir=$ac_optarg ;;
1297
1298   -target | --target | --targe | --targ | --tar | --ta | --t)
1299     ac_prev=target_alias ;;
1300   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301     target_alias=$ac_optarg ;;
1302
1303   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304     verbose=yes ;;
1305
1306   -version | --version | --versio | --versi | --vers | -V)
1307     ac_init_version=: ;;
1308
1309   -with-* | --with-*)
1310     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313       as_fn_error "invalid package name: $ac_useropt"
1314     ac_useropt_orig=$ac_useropt
1315     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316     case $ac_user_opts in
1317       *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321          ac_unrecognized_sep=', ';;
1322     esac
1323     eval with_$ac_useropt=\$ac_optarg ;;
1324
1325   -without-* | --without-*)
1326     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329       as_fn_error "invalid package name: $ac_useropt"
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval with_$ac_useropt=no ;;
1340
1341   --x)
1342     # Obsolete; use --with-x.
1343     with_x=yes ;;
1344
1345   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346   | --x-incl | --x-inc | --x-in | --x-i)
1347     ac_prev=x_includes ;;
1348   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350     x_includes=$ac_optarg ;;
1351
1352   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354     ac_prev=x_libraries ;;
1355   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357     x_libraries=$ac_optarg ;;
1358
1359   -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1361     ;;
1362
1363   *=*)
1364     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365     # Reject names that are not valid shell variable names.
1366     case $ac_envvar in #(
1367       '' | [0-9]* | *[!_$as_cr_alnum]* )
1368       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1369     esac
1370     eval $ac_envvar=\$ac_optarg
1371     export $ac_envvar ;;
1372
1373   *)
1374     # FIXME: should be removed in autoconf 3.0.
1375     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1379     ;;
1380
1381   esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386   as_fn_error "missing argument to $ac_option"
1387 fi
1388
1389 if test -n "$ac_unrecognized_opts"; then
1390   case $enable_option_checking in
1391     no) ;;
1392     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1393     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394   esac
1395 fi
1396
1397 # Check all directory arguments for consistency.
1398 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399                 datadir sysconfdir sharedstatedir localstatedir includedir \
1400                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401                 libdir localedir mandir
1402 do
1403   eval ac_val=\$$ac_var
1404   # Remove trailing slashes.
1405   case $ac_val in
1406     */ )
1407       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408       eval $ac_var=\$ac_val;;
1409   esac
1410   # Be sure to have absolute directory names.
1411   case $ac_val in
1412     [\\/$]* | ?:[\\/]* )  continue;;
1413     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414   esac
1415   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
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_fn_error "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447   as_fn_error "pwd does not report name of working directory"
1448
1449
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452   ac_srcdir_defaulted=yes
1453   # Try the directory containing this script, then the parent directory.
1454   ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456          X"$as_myself" : 'X\(//\)[^/]' \| \
1457          X"$as_myself" : 'X\(//\)$' \| \
1458          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)[^/].*/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\/\)$/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\).*/{
1473             s//\1/
1474             q
1475           }
1476           s/.*/./; q'`
1477   srcdir=$ac_confdir
1478   if test ! -r "$srcdir/$ac_unique_file"; then
1479     srcdir=..
1480   fi
1481 else
1482   ac_srcdir_defaulted=no
1483 fi
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1487 fi
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1489 ac_abs_confdir=`(
1490         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1491         pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494   srcdir=.
1495 fi
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_env_${ac_var}_value=\$${ac_var}
1505   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1508
1509 #
1510 # Report the --help message.
1511 #
1512 if test "$ac_init_help" = "long"; then
1513   # Omit some internal or obsolete options to make the list less imposing.
1514   # This message is too long to be a string in the A/UX 3.1 sh.
1515   cat <<_ACEOF
1516 \`configure' configures GNU MP 5.0.1 to adapt to many kinds of systems.
1517
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1519
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE.  See below for descriptions of some of the useful variables.
1522
1523 Defaults for the options are specified in brackets.
1524
1525 Configuration:
1526   -h, --help              display this help and exit
1527       --help=short        display options specific to this package
1528       --help=recursive    display the short help of all the included packages
1529   -V, --version           display version information and exit
1530   -q, --quiet, --silent   do not print \`checking...' messages
1531       --cache-file=FILE   cache test results in FILE [disabled]
1532   -C, --config-cache      alias for \`--cache-file=config.cache'
1533   -n, --no-create         do not create output files
1534       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1535
1536 Installation directories:
1537   --prefix=PREFIX         install architecture-independent files in PREFIX
1538                           [$ac_default_prefix]
1539   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1540                           [PREFIX]
1541
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1546
1547 For better control, use the options below.
1548
1549 Fine tuning of the installation directories:
1550   --bindir=DIR            user executables [EPREFIX/bin]
1551   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1552   --libexecdir=DIR        program executables [EPREFIX/libexec]
1553   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1554   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1555   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1556   --libdir=DIR            object code libraries [EPREFIX/lib]
1557   --includedir=DIR        C header files [PREFIX/include]
1558   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1559   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1560   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1561   --infodir=DIR           info documentation [DATAROOTDIR/info]
1562   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1563   --mandir=DIR            man documentation [DATAROOTDIR/man]
1564   --docdir=DIR            documentation root [DATAROOTDIR/doc/gmp]
1565   --htmldir=DIR           html documentation [DOCDIR]
1566   --dvidir=DIR            dvi documentation [DOCDIR]
1567   --pdfdir=DIR            pdf documentation [DOCDIR]
1568   --psdir=DIR             ps documentation [DOCDIR]
1569 _ACEOF
1570
1571   cat <<\_ACEOF
1572
1573 Program names:
1574   --program-prefix=PREFIX            prepend PREFIX to installed program names
1575   --program-suffix=SUFFIX            append SUFFIX to installed program names
1576   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1577
1578 System types:
1579   --build=BUILD     configure for building on BUILD [guessed]
1580   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581 _ACEOF
1582 fi
1583
1584 if test -n "$ac_init_help"; then
1585   case $ac_init_help in
1586      short | recursive ) echo "Configuration of GNU MP 5.0.1:";;
1587    esac
1588   cat <<\_ACEOF
1589
1590 Optional Features:
1591   --disable-option-checking  ignore unrecognized --enable/--with options
1592   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594   --enable-maintainer-mode  enable make rules and dependencies not useful
1595                           (and sometimes confusing) to the casual installer
1596   --enable-assert         enable ASSERT checking [[default=no]]
1597   --enable-alloca         how to get temp memory [[default=reentrant]]
1598   --enable-cxx            enable C++ support [[default=no]]
1599   --enable-fft            enable FFTs for multiplication [[default=yes]]
1600   --enable-old-fft-full   enable old mpn_mul_fft_full for multiplication
1601                           [[default=no]]
1602   --enable-mpbsd          build Berkeley MP compatibility library
1603                           [[default=no]]
1604   --enable-nails          use nails on limbs [[default=no]]
1605   --enable-profiling      build with profiler support [[default=no]]
1606   --enable-fat            build a fat binary on systems that support it
1607                           [[default=no]]
1608   --enable-minithres      choose minimal thresholds for testing [[default=no]]
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614
1615 Optional Packages:
1616   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1617   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1618   --with-readline         readline support in calc demo program
1619                           [[default=detect]]
1620   --with-pic              try to use only PIC/non-PIC objects [default=use
1621                           both]
1622   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1623
1624 Some influential environment variables:
1625   ABI         desired ABI (for processors supporting more than one ABI)
1626   CC          C compiler command
1627   CFLAGS      C compiler flags
1628   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1629               nonstandard directory <lib dir>
1630   LIBS        libraries to pass to the linker, e.g. -l<library>
1631   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632               you have headers in a nonstandard directory <include dir>
1633   CPP         C preprocessor
1634   CC_FOR_BUILD
1635               build system C compiler
1636   CPP_FOR_BUILD
1637               build system C preprocessor
1638   CXX         C++ compiler command
1639   CXXFLAGS    C++ compiler flags
1640   CXXCPP      C++ preprocessor
1641   F77         Fortran 77 compiler command
1642   FFLAGS      Fortran 77 compiler flags
1643   M4          m4 macro processor
1644   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1645               the first program found out of: `bison -y', `byacc', `yacc'.
1646   YFLAGS      The list of arguments that will be passed by default to $YACC.
1647               This script will default YFLAGS to the empty string to avoid a
1648               default value of `-d' given by some make applications.
1649
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1652
1653 Report bugs to <gmp-bugs@gmplib.org>.
1654 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1655 General help using GNU software: <http://www.gnu.org/gethelp/>.
1656 _ACEOF
1657 ac_status=$?
1658 fi
1659
1660 if test "$ac_init_help" = "recursive"; then
1661   # If there are subdirs, report their specific --help.
1662   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663     test -d "$ac_dir" ||
1664       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665       continue
1666     ac_builddir=.
1667
1668 case "$ac_dir" in
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *)
1671   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672   # A ".." for each directory in $ac_dir_suffix.
1673   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674   case $ac_top_builddir_sub in
1675   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677   esac ;;
1678 esac
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1683
1684 case $srcdir in
1685   .)  # We are building in place.
1686     ac_srcdir=.
1687     ac_top_srcdir=$ac_top_builddir_sub
1688     ac_abs_top_srcdir=$ac_pwd ;;
1689   [\\/]* | ?:[\\/]* )  # Absolute name.
1690     ac_srcdir=$srcdir$ac_dir_suffix;
1691     ac_top_srcdir=$srcdir
1692     ac_abs_top_srcdir=$srcdir ;;
1693   *) # Relative name.
1694     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695     ac_top_srcdir=$ac_top_build_prefix$srcdir
1696     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 esac
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699
1700     cd "$ac_dir" || { ac_status=$?; continue; }
1701     # Check for guested configure.
1702     if test -f "$ac_srcdir/configure.gnu"; then
1703       echo &&
1704       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705     elif test -f "$ac_srcdir/configure"; then
1706       echo &&
1707       $SHELL "$ac_srcdir/configure" --help=recursive
1708     else
1709       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710     fi || ac_status=$?
1711     cd "$ac_pwd" || { ac_status=$?; break; }
1712   done
1713 fi
1714
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1717   cat <<\_ACEOF
1718 GNU MP configure 5.0.1
1719 generated by GNU Autoconf 2.65
1720
1721 Copyright (C) 2009 Free Software Foundation, Inc.
1722 This configure script is free software; the Free Software Foundation
1723 gives unlimited permission to copy, distribute and modify it.
1724
1725
1726
1727 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1728 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
1729
1730 This file is part of the GNU MP Library.
1731
1732 The GNU MP Library is free software; you can redistribute it and/or modify
1733 it under the terms of the GNU Lesser General Public License as published
1734 by the Free Software Foundation; either version 3 of the License, or (at
1735 your option) any later version.
1736
1737 The GNU MP Library is distributed in the hope that it will be useful, but
1738 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1739 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1740 License for more details.
1741
1742 You should have received a copy of the GNU Lesser General Public License
1743 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
1744
1745 _ACEOF
1746   exit
1747 fi
1748
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1752
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   rm -f conftest.$ac_objext
1760   if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_compile") 2>conftest.err
1768   ac_status=$?
1769   if test -s conftest.err; then
1770     grep -v '^ *+' conftest.err >conftest.er1
1771     cat conftest.er1 >&5
1772     mv -f conftest.er1 conftest.err
1773   fi
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; } && {
1776          test -z "$ac_c_werror_flag" ||
1777          test ! -s conftest.err
1778        } && test -s conftest.$ac_objext; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784         ac_retval=1
1785 fi
1786   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787   as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_compile
1790
1791 # ac_fn_c_try_cpp LINENO
1792 # ----------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_cpp ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } >/dev/null && {
1813          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814          test ! -s conftest.err
1815        }; then :
1816   ac_retval=0
1817 else
1818   $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821     ac_retval=1
1822 fi
1823   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824   as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_cpp
1827
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   rm -f conftest.$ac_objext
1835   if { { ac_try="$ac_compile"
1836 case "(($ac_try" in
1837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838   *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842   (eval "$ac_compile") 2>conftest.err
1843   ac_status=$?
1844   if test -s conftest.err; then
1845     grep -v '^ *+' conftest.err >conftest.er1
1846     cat conftest.er1 >&5
1847     mv -f conftest.er1 conftest.err
1848   fi
1849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850   test $ac_status = 0; } && {
1851          test -z "$ac_cxx_werror_flag" ||
1852          test ! -s conftest.err
1853        } && test -s conftest.$ac_objext; then :
1854   ac_retval=0
1855 else
1856   $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859         ac_retval=1
1860 fi
1861   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862   as_fn_set_status $ac_retval
1863
1864 } # ac_fn_cxx_try_compile
1865
1866 # ac_fn_cxx_try_cpp LINENO
1867 # ------------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_cpp ()
1870 {
1871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872   if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880   ac_status=$?
1881   if test -s conftest.err; then
1882     grep -v '^ *+' conftest.err >conftest.er1
1883     cat conftest.er1 >&5
1884     mv -f conftest.er1 conftest.err
1885   fi
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; } >/dev/null && {
1888          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1889          test ! -s conftest.err
1890        }; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896     ac_retval=1
1897 fi
1898   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_cxx_try_cpp
1902
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906 # that executables *can* be run.
1907 ac_fn_c_try_run ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913   *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917   (eval "$ac_link") 2>&5
1918   ac_status=$?
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921   { { case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927   (eval "$ac_try") 2>&5
1928   ac_status=$?
1929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; }; }; then :
1931   ac_retval=0
1932 else
1933   $as_echo "$as_me: program exited with status $ac_status" >&5
1934        $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937        ac_retval=$ac_status
1938 fi
1939   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_run
1944
1945 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1949 # accordingly.
1950 ac_fn_c_check_header_mongrel ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957   $as_echo_n "(cached) " >&6
1958 fi
1959 eval ac_res=\$$3
1960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 else
1963   # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 $4
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972   ac_header_compiler=yes
1973 else
1974   ac_header_compiler=no
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1979
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_c_try_cpp "$LINENO"; then :
1988   ac_header_preproc=yes
1989 else
1990   ac_header_preproc=no
1991 fi
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1995
1996 # So?  What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998   yes:no: )
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003     ;;
2004   no:yes:* )
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ( cat <<\_ASBOX
2016 ## ---------------------------------- ##
2017 ## Report this to gmp-bugs@gmplib.org ##
2018 ## ---------------------------------- ##
2019 _ASBOX
2020      ) | sed "s/^/$as_me: WARNING:     /" >&2
2021     ;;
2022 esac
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026   $as_echo_n "(cached) " >&6
2027 else
2028   eval "$3=\$ac_header_compiler"
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 fi
2034   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035
2036 } # ac_fn_c_check_header_mongrel
2037
2038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists and can be compiled using the include files in
2041 # INCLUDES, setting the cache variable VAR accordingly.
2042 ac_fn_c_check_header_compile ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048   $as_echo_n "(cached) " >&6
2049 else
2050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056   eval "$3=yes"
2057 else
2058   eval "$3=no"
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 fi
2062 eval ac_res=\$$3
2063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066
2067 } # ac_fn_c_check_header_compile
2068
2069 # ac_fn_c_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2072 ac_fn_c_try_link ()
2073 {
2074   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075   rm -f conftest.$ac_objext conftest$ac_exeext
2076   if { { ac_try="$ac_link"
2077 case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083   (eval "$ac_link") 2>conftest.err
2084   ac_status=$?
2085   if test -s conftest.err; then
2086     grep -v '^ *+' conftest.err >conftest.er1
2087     cat conftest.er1 >&5
2088     mv -f conftest.er1 conftest.err
2089   fi
2090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091   test $ac_status = 0; } && {
2092          test -z "$ac_c_werror_flag" ||
2093          test ! -s conftest.err
2094        } && test -s conftest$ac_exeext && {
2095          test "$cross_compiling" = yes ||
2096          $as_test_x conftest$ac_exeext
2097        }; then :
2098   ac_retval=0
2099 else
2100   $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103         ac_retval=1
2104 fi
2105   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107   # interfere with the next link command; also delete a directory that is
2108   # left behind by Apple's compiler.  We do this before executing the actions.
2109   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111   as_fn_set_status $ac_retval
2112
2113 } # ac_fn_c_try_link
2114
2115 # ac_fn_c_check_func LINENO FUNC VAR
2116 # ----------------------------------
2117 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2118 ac_fn_c_check_func ()
2119 {
2120   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124   $as_echo_n "(cached) " >&6
2125 else
2126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h.  */
2128 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2130 #define $2 innocuous_$2
2131
2132 /* System header to define __stub macros and hopefully few prototypes,
2133     which can conflict with char $2 (); below.
2134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2135     <limits.h> exists even on freestanding compilers.  */
2136
2137 #ifdef __STDC__
2138 # include <limits.h>
2139 #else
2140 # include <assert.h>
2141 #endif
2142
2143 #undef $2
2144
2145 /* Override any GCC internal prototype to avoid an error.
2146    Use char because int might match the return type of a GCC
2147    builtin and then its argument prototype would still apply.  */
2148 #ifdef __cplusplus
2149 extern "C"
2150 #endif
2151 char $2 ();
2152 /* The GNU C library defines this for functions which it implements
2153     to always fail with ENOSYS.  Some functions are actually named
2154     something starting with __ and the normal name is an alias.  */
2155 #if defined __stub_$2 || defined __stub___$2
2156 choke me
2157 #endif
2158
2159 int
2160 main ()
2161 {
2162 return $2 ();
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_link "$LINENO"; then :
2168   eval "$3=yes"
2169 else
2170   eval "$3=no"
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext \
2173     conftest$ac_exeext conftest.$ac_ext
2174 fi
2175 eval ac_res=\$$3
2176                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2179
2180 } # ac_fn_c_check_func
2181
2182 # ac_fn_cxx_try_link LINENO
2183 # -------------------------
2184 # Try to link conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_cxx_try_link ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   rm -f conftest.$ac_objext conftest$ac_exeext
2189   if { { ac_try="$ac_link"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196   (eval "$ac_link") 2>conftest.err
2197   ac_status=$?
2198   if test -s conftest.err; then
2199     grep -v '^ *+' conftest.err >conftest.er1
2200     cat conftest.er1 >&5
2201     mv -f conftest.er1 conftest.err
2202   fi
2203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204   test $ac_status = 0; } && {
2205          test -z "$ac_cxx_werror_flag" ||
2206          test ! -s conftest.err
2207        } && test -s conftest$ac_exeext && {
2208          test "$cross_compiling" = yes ||
2209          $as_test_x conftest$ac_exeext
2210        }; then :
2211   ac_retval=0
2212 else
2213   $as_echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216         ac_retval=1
2217 fi
2218   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2219   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2220   # interfere with the next link command; also delete a directory that is
2221   # left behind by Apple's compiler.  We do this before executing the actions.
2222   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2223   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224   as_fn_set_status $ac_retval
2225
2226 } # ac_fn_cxx_try_link
2227
2228 # ac_fn_f77_try_compile LINENO
2229 # ----------------------------
2230 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2231 ac_fn_f77_try_compile ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   rm -f conftest.$ac_objext
2235   if { { ac_try="$ac_compile"
2236 case "(($ac_try" in
2237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238   *) ac_try_echo=$ac_try;;
2239 esac
2240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241 $as_echo "$ac_try_echo"; } >&5
2242   (eval "$ac_compile") 2>conftest.err
2243   ac_status=$?
2244   if test -s conftest.err; then
2245     grep -v '^ *+' conftest.err >conftest.er1
2246     cat conftest.er1 >&5
2247     mv -f conftest.er1 conftest.err
2248   fi
2249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250   test $ac_status = 0; } && {
2251          test -z "$ac_f77_werror_flag" ||
2252          test ! -s conftest.err
2253        } && test -s conftest.$ac_objext; then :
2254   ac_retval=0
2255 else
2256   $as_echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259         ac_retval=1
2260 fi
2261   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262   as_fn_set_status $ac_retval
2263
2264 } # ac_fn_f77_try_compile
2265
2266 # ac_fn_f77_try_link LINENO
2267 # -------------------------
2268 # Try to link conftest.$ac_ext, and return whether this succeeded.
2269 ac_fn_f77_try_link ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   rm -f conftest.$ac_objext conftest$ac_exeext
2273   if { { ac_try="$ac_link"
2274 case "(($ac_try" in
2275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276   *) ac_try_echo=$ac_try;;
2277 esac
2278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279 $as_echo "$ac_try_echo"; } >&5
2280   (eval "$ac_link") 2>conftest.err
2281   ac_status=$?
2282   if test -s conftest.err; then
2283     grep -v '^ *+' conftest.err >conftest.er1
2284     cat conftest.er1 >&5
2285     mv -f conftest.er1 conftest.err
2286   fi
2287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288   test $ac_status = 0; } && {
2289          test -z "$ac_f77_werror_flag" ||
2290          test ! -s conftest.err
2291        } && test -s conftest$ac_exeext && {
2292          test "$cross_compiling" = yes ||
2293          $as_test_x conftest$ac_exeext
2294        }; then :
2295   ac_retval=0
2296 else
2297   $as_echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300         ac_retval=1
2301 fi
2302   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2303   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2304   # interfere with the next link command; also delete a directory that is
2305   # left behind by Apple's compiler.  We do this before executing the actions.
2306   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2307   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308   as_fn_set_status $ac_retval
2309
2310 } # ac_fn_f77_try_link
2311
2312 # ac_fn_c_check_decl LINENO SYMBOL VAR
2313 # ------------------------------------
2314 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2315 ac_fn_c_check_decl ()
2316 {
2317   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2319 $as_echo_n "checking whether $2 is declared... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321   $as_echo_n "(cached) " >&6
2322 else
2323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 int
2327 main ()
2328 {
2329 #ifndef $2
2330   (void) $2;
2331 #endif
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338   eval "$3=yes"
2339 else
2340   eval "$3=no"
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 fi
2344 eval ac_res=\$$3
2345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348
2349 } # ac_fn_c_check_decl
2350
2351 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2352 # -------------------------------------------
2353 # Tests whether TYPE exists after having included INCLUDES, setting cache
2354 # variable VAR accordingly.
2355 ac_fn_c_check_type ()
2356 {
2357   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   eval "$3=no"
2364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h.  */
2366 $4
2367 int
2368 main ()
2369 {
2370 if (sizeof ($2))
2371          return 0;
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h.  */
2379 $4
2380 int
2381 main ()
2382 {
2383 if (sizeof (($2)))
2384             return 0;
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390
2391 else
2392   eval "$3=yes"
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 fi
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 fi
2398 eval ac_res=\$$3
2399                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402
2403 } # ac_fn_c_check_type
2404
2405 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2406 # ----------------------------------------------------
2407 # Tries to find if the field MEMBER exists in type AGGR, after including
2408 # INCLUDES, setting cache variable VAR accordingly.
2409 ac_fn_c_check_member ()
2410 {
2411   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2413 $as_echo_n "checking for $2.$3... " >&6; }
2414 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2415   $as_echo_n "(cached) " >&6
2416 else
2417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $5
2420 int
2421 main ()
2422 {
2423 static $2 ac_aggr;
2424 if (ac_aggr.$3)
2425 return 0;
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   eval "$4=yes"
2432 else
2433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h.  */
2435 $5
2436 int
2437 main ()
2438 {
2439 static $2 ac_aggr;
2440 if (sizeof ac_aggr.$3)
2441 return 0;
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447   eval "$4=yes"
2448 else
2449   eval "$4=no"
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 eval ac_res=\$$4
2456                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459
2460 } # ac_fn_c_check_member
2461
2462 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # ---------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2466 # accordingly.
2467 ac_fn_cxx_check_header_mongrel ()
2468 {
2469   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474   $as_echo_n "(cached) " >&6
2475 fi
2476 eval ac_res=\$$3
2477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 else
2480   # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h.  */
2485 $4
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_cxx_try_compile "$LINENO"; then :
2489   ac_header_compiler=yes
2490 else
2491   ac_header_compiler=no
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2496
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_cxx_try_cpp "$LINENO"; then :
2505   ac_header_preproc=yes
2506 else
2507   ac_header_preproc=no
2508 fi
2509 rm -f conftest.err conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2512
2513 # So?  What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2515   yes:no: )
2516     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2520     ;;
2521   no:yes:* )
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2532 ( cat <<\_ASBOX
2533 ## ---------------------------------- ##
2534 ## Report this to gmp-bugs@gmplib.org ##
2535 ## ---------------------------------- ##
2536 _ASBOX
2537      ) | sed "s/^/$as_me: WARNING:     /" >&2
2538     ;;
2539 esac
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2541 $as_echo_n "checking for $2... " >&6; }
2542 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   eval "$3=\$ac_header_compiler"
2546 fi
2547 eval ac_res=\$$3
2548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550 fi
2551   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2552
2553 } # ac_fn_cxx_check_header_mongrel
2554
2555 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2556 # ---------------------------------------------
2557 # Tests whether TYPE exists after having included INCLUDES, setting cache
2558 # variable VAR accordingly.
2559 ac_fn_cxx_check_type ()
2560 {
2561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   eval "$3=no"
2568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 if (sizeof ($2))
2575          return 0;
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_cxx_try_compile "$LINENO"; then :
2581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h.  */
2583 $4
2584 int
2585 main ()
2586 {
2587 if (sizeof (($2)))
2588             return 0;
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2594
2595 else
2596   eval "$3=yes"
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_cxx_check_type
2608
2609 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2610 # --------------------------------------------
2611 # Tries to find the compile-time value of EXPR in a program that includes
2612 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2613 # computed
2614 ac_fn_c_compute_int ()
2615 {
2616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617   if test "$cross_compiling" = yes; then
2618     # Depending upon the size, compute the lo and hi bounds.
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h.  */
2621 $4
2622 int
2623 main ()
2624 {
2625 static int test_array [1 - 2 * !(($2) >= 0)];
2626 test_array [0] = 0
2627
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"; then :
2633   ac_lo=0 ac_mid=0
2634   while :; do
2635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h.  */
2637 $4
2638 int
2639 main ()
2640 {
2641 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2642 test_array [0] = 0
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_c_try_compile "$LINENO"; then :
2649   ac_hi=$ac_mid; break
2650 else
2651   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2652                         if test $ac_lo -le $ac_mid; then
2653                           ac_lo= ac_hi=
2654                           break
2655                         fi
2656                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659   done
2660 else
2661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h.  */
2663 $4
2664 int
2665 main ()
2666 {
2667 static int test_array [1 - 2 * !(($2) < 0)];
2668 test_array [0] = 0
2669
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_c_try_compile "$LINENO"; then :
2675   ac_hi=-1 ac_mid=-1
2676   while :; do
2677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h.  */
2679 $4
2680 int
2681 main ()
2682 {
2683 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2684 test_array [0] = 0
2685
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691   ac_lo=$ac_mid; break
2692 else
2693   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2694                         if test $ac_mid -le $ac_hi; then
2695                           ac_lo= ac_hi=
2696                           break
2697                         fi
2698                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2699 fi
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701   done
2702 else
2703   ac_lo= ac_hi=
2704 fi
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 fi
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 # Binary search between lo and hi bounds.
2709 while test "x$ac_lo" != "x$ac_hi"; do
2710   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h.  */
2713 $4
2714 int
2715 main ()
2716 {
2717 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2718 test_array [0] = 0
2719
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 if ac_fn_c_try_compile "$LINENO"; then :
2725   ac_hi=$ac_mid
2726 else
2727   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2728 fi
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731 case $ac_lo in #((
2732 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2733 '') ac_retval=1 ;;
2734 esac
2735   else
2736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 $4
2739 static long int longval () { return $2; }
2740 static unsigned long int ulongval () { return $2; }
2741 #include <stdio.h>
2742 #include <stdlib.h>
2743 int
2744 main ()
2745 {
2746
2747   FILE *f = fopen ("conftest.val", "w");
2748   if (! f)
2749     return 1;
2750   if (($2) < 0)
2751     {
2752       long int i = longval ();
2753       if (i != ($2))
2754         return 1;
2755       fprintf (f, "%ld", i);
2756     }
2757   else
2758     {
2759       unsigned long int i = ulongval ();
2760       if (i != ($2))
2761         return 1;
2762       fprintf (f, "%lu", i);
2763     }
2764   /* Do not output a trailing newline, as this causes \r\n confusion
2765      on some platforms.  */
2766   return ferror (f) || fclose (f) != 0;
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 if ac_fn_c_try_run "$LINENO"; then :
2773   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2774 else
2775   ac_retval=1
2776 fi
2777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2778   conftest.$ac_objext conftest.beam conftest.$ac_ext
2779 rm -f conftest.val
2780
2781   fi
2782   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2783   as_fn_set_status $ac_retval
2784
2785 } # ac_fn_c_compute_int
2786 cat >config.log <<_ACEOF
2787 This file contains any messages produced by compilers while
2788 running configure, to aid debugging if configure makes a mistake.
2789
2790 It was created by GNU MP $as_me 5.0.1, which was
2791 generated by GNU Autoconf 2.65.  Invocation command line was
2792
2793   $ $0 $@
2794
2795 _ACEOF
2796 exec 5>>config.log
2797 {
2798 cat <<_ASUNAME
2799 ## --------- ##
2800 ## Platform. ##
2801 ## --------- ##
2802
2803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2808
2809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2810 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2811
2812 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2813 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2815 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2816 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2817 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2818 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2819
2820 _ASUNAME
2821
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     $as_echo "PATH: $as_dir"
2828   done
2829 IFS=$as_save_IFS
2830
2831 } >&5
2832
2833 cat >&5 <<_ACEOF
2834
2835
2836 ## ----------- ##
2837 ## Core tests. ##
2838 ## ----------- ##
2839
2840 _ACEOF
2841
2842
2843 # Keep a trace of the command line.
2844 # Strip out --no-create and --no-recursion so they do not pile up.
2845 # Strip out --silent because we don't want to record it for future runs.
2846 # Also quote any args containing shell meta-characters.
2847 # Make two passes to allow for proper duplicate-argument suppression.
2848 ac_configure_args=
2849 ac_configure_args0=
2850 ac_configure_args1=
2851 ac_must_keep_next=false
2852 for ac_pass in 1 2
2853 do
2854   for ac_arg
2855   do
2856     case $ac_arg in
2857     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2858     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2859     | -silent | --silent | --silen | --sile | --sil)
2860       continue ;;
2861     *\'*)
2862       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2863     esac
2864     case $ac_pass in
2865     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2866     2)
2867       as_fn_append ac_configure_args1 " '$ac_arg'"
2868       if test $ac_must_keep_next = true; then
2869         ac_must_keep_next=false # Got value, back to normal.
2870       else
2871         case $ac_arg in
2872           *=* | --config-cache | -C | -disable-* | --disable-* \
2873           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2874           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2875           | -with-* | --with-* | -without-* | --without-* | --x)
2876             case "$ac_configure_args0 " in
2877               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2878             esac
2879             ;;
2880           -* ) ac_must_keep_next=true ;;
2881         esac
2882       fi
2883       as_fn_append ac_configure_args " '$ac_arg'"
2884       ;;
2885     esac
2886   done
2887 done
2888 { ac_configure_args0=; unset ac_configure_args0;}
2889 { ac_configure_args1=; unset ac_configure_args1;}
2890
2891 # When interrupted or exit'd, cleanup temporary files, and complete
2892 # config.log.  We remove comments because anyway the quotes in there
2893 # would cause problems or look ugly.
2894 # WARNING: Use '\'' to represent an apostrophe within the trap.
2895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2896 trap 'exit_status=$?
2897   # Save into config.log some information that might help in debugging.
2898   {
2899     echo
2900
2901     cat <<\_ASBOX
2902 ## ---------------- ##
2903 ## Cache variables. ##
2904 ## ---------------- ##
2905 _ASBOX
2906     echo
2907     # The following way of writing the cache mishandles newlines in values,
2908 (
2909   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2910     eval ac_val=\$$ac_var
2911     case $ac_val in #(
2912     *${as_nl}*)
2913       case $ac_var in #(
2914       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2916       esac
2917       case $ac_var in #(
2918       _ | IFS | as_nl) ;; #(
2919       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2920       *) { eval $ac_var=; unset $ac_var;} ;;
2921       esac ;;
2922     esac
2923   done
2924   (set) 2>&1 |
2925     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2926     *${as_nl}ac_space=\ *)
2927       sed -n \
2928         "s/'\''/'\''\\\\'\'''\''/g;
2929           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2930       ;; #(
2931     *)
2932       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2933       ;;
2934     esac |
2935     sort
2936 )
2937     echo
2938
2939     cat <<\_ASBOX
2940 ## ----------------- ##
2941 ## Output variables. ##
2942 ## ----------------- ##
2943 _ASBOX
2944     echo
2945     for ac_var in $ac_subst_vars
2946     do
2947       eval ac_val=\$$ac_var
2948       case $ac_val in
2949       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2950       esac
2951       $as_echo "$ac_var='\''$ac_val'\''"
2952     done | sort
2953     echo
2954
2955     if test -n "$ac_subst_files"; then
2956       cat <<\_ASBOX
2957 ## ------------------- ##
2958 ## File substitutions. ##
2959 ## ------------------- ##
2960 _ASBOX
2961       echo
2962       for ac_var in $ac_subst_files
2963       do
2964         eval ac_val=\$$ac_var
2965         case $ac_val in
2966         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2967         esac
2968         $as_echo "$ac_var='\''$ac_val'\''"
2969       done | sort
2970       echo
2971     fi
2972
2973     if test -s confdefs.h; then
2974       cat <<\_ASBOX
2975 ## ----------- ##
2976 ## confdefs.h. ##
2977 ## ----------- ##
2978 _ASBOX
2979       echo
2980       cat confdefs.h
2981       echo
2982     fi
2983     test "$ac_signal" != 0 &&
2984       $as_echo "$as_me: caught signal $ac_signal"
2985     $as_echo "$as_me: exit $exit_status"
2986   } >&5
2987   rm -f core *.core core.conftest.* &&
2988     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2989     exit $exit_status
2990 ' 0
2991 for ac_signal in 1 2 13 15; do
2992   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2993 done
2994 ac_signal=0
2995
2996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2997 rm -f -r conftest* confdefs.h
2998
2999 $as_echo "/* confdefs.h */" > confdefs.h
3000
3001 # Predefined preprocessor variables.
3002
3003 cat >>confdefs.h <<_ACEOF
3004 #define PACKAGE_NAME "$PACKAGE_NAME"
3005 _ACEOF
3006
3007 cat >>confdefs.h <<_ACEOF
3008 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3009 _ACEOF
3010
3011 cat >>confdefs.h <<_ACEOF
3012 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3013 _ACEOF
3014
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE_STRING "$PACKAGE_STRING"
3017 _ACEOF
3018
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3021 _ACEOF
3022
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_URL "$PACKAGE_URL"
3025 _ACEOF
3026
3027
3028 # Let the site file select an alternate cache file if it wants to.
3029 # Prefer an explicitly selected file to automatically selected ones.
3030 ac_site_file1=NONE
3031 ac_site_file2=NONE
3032 if test -n "$CONFIG_SITE"; then
3033   ac_site_file1=$CONFIG_SITE
3034 elif test "x$prefix" != xNONE; then
3035   ac_site_file1=$prefix/share/config.site
3036   ac_site_file2=$prefix/etc/config.site
3037 else
3038   ac_site_file1=$ac_default_prefix/share/config.site
3039   ac_site_file2=$ac_default_prefix/etc/config.site
3040 fi
3041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3042 do
3043   test "x$ac_site_file" = xNONE && continue
3044   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3045     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3047     sed 's/^/| /' "$ac_site_file" >&5
3048     . "$ac_site_file"
3049   fi
3050 done
3051
3052 if test -r "$cache_file"; then
3053   # Some versions of bash will fail to source /dev/null (special files
3054   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3055   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3056     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3057 $as_echo "$as_me: loading cache $cache_file" >&6;}
3058     case $cache_file in
3059       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3060       *)                      . "./$cache_file";;
3061     esac
3062   fi
3063 else
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3065 $as_echo "$as_me: creating cache $cache_file" >&6;}
3066   >$cache_file
3067 fi
3068
3069 # Check that the precious variables saved in the cache have kept the same
3070 # value.
3071 ac_cache_corrupted=false
3072 for ac_var in $ac_precious_vars; do
3073   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3074   eval ac_new_set=\$ac_env_${ac_var}_set
3075   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3076   eval ac_new_val=\$ac_env_${ac_var}_value
3077   case $ac_old_set,$ac_new_set in
3078     set,)
3079       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3081       ac_cache_corrupted=: ;;
3082     ,set)
3083       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3085       ac_cache_corrupted=: ;;
3086     ,);;
3087     *)
3088       if test "x$ac_old_val" != "x$ac_new_val"; then
3089         # differences in whitespace do not lead to failure.
3090         ac_old_val_w=`echo x $ac_old_val`
3091         ac_new_val_w=`echo x $ac_new_val`
3092         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3093           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3095           ac_cache_corrupted=:
3096         else
3097           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3099           eval $ac_var=\$ac_old_val
3100         fi
3101         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3102 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3103         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3104 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3105       fi;;
3106   esac
3107   # Pass precious variables to config.status.
3108   if test "$ac_new_set" = set; then
3109     case $ac_new_val in
3110     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3111     *) ac_arg=$ac_var=$ac_new_val ;;
3112     esac
3113     case " $ac_configure_args " in
3114       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3115       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3116     esac
3117   fi
3118 done
3119 if $ac_cache_corrupted; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3124   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3125 fi
3126 ## -------------------- ##
3127 ## Main body of script. ##
3128 ## -------------------- ##
3129
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145 # If --target is not used then $target_alias is empty, but if say
3146 # "./configure athlon-pc-freebsd3.5" is used, then all three of
3147 # $build_alias, $host_alias and $target_alias are set to
3148 # "athlon-pc-freebsd3.5".
3149 #
3150 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
3151   as_fn_error "--target is not appropriate for GMP
3152 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
3153 explicitly.  Use --host if cross-compiling (see \"Installing GMP\" in the
3154 manual for more on this)." "$LINENO" 5
3155 fi
3156
3157 gmp_configm4="config.m4"
3158 gmp_tmpconfigm4=cnfm4.tmp
3159 gmp_tmpconfigm4i=cnfm4i.tmp
3160 gmp_tmpconfigm4p=cnfm4p.tmp
3161 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
3162
3163 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
3164 # The pattern here tests for an absolute path the same way as
3165 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
3166 case $srcdir in
3167 [\\/]* | ?:[\\/]* )  tmp="$srcdir"    ;;
3168 *)                       tmp="../$srcdir" ;;
3169 esac
3170 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3171
3172 # All CPUs use asm-defs.m4
3173 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3174
3175
3176 ac_aux_dir=
3177 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3178   for ac_t in install-sh install.sh shtool; do
3179     if test -f "$ac_dir/$ac_t"; then
3180       ac_aux_dir=$ac_dir
3181       ac_install_sh="$ac_aux_dir/$ac_t -c"
3182       break 2
3183     fi
3184   done
3185 done
3186 if test -z "$ac_aux_dir"; then
3187   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3188 fi
3189
3190 # These three variables are undocumented and unsupported,
3191 # and are intended to be withdrawn in a future Autoconf release.
3192 # They can cause serious problems if a builder's source tree is in a directory
3193 # whose full name contains unusual characters.
3194 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3195 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3196 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3197
3198
3199 # Make sure we can run config.sub.
3200 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3201   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3204 $as_echo_n "checking build system type... " >&6; }
3205 if test "${ac_cv_build+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   ac_build_alias=$build_alias
3209 test "x$ac_build_alias" = x &&
3210   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3211 test "x$ac_build_alias" = x &&
3212   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3213 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3214   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3215
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3218 $as_echo "$ac_cv_build" >&6; }
3219 case $ac_cv_build in
3220 *-*-*) ;;
3221 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3222 esac
3223 build=$ac_cv_build
3224 ac_save_IFS=$IFS; IFS='-'
3225 set x $ac_cv_build
3226 shift
3227 build_cpu=$1
3228 build_vendor=$2
3229 shift; shift
3230 # Remember, the first character of IFS is used to create $*,
3231 # except with old shells:
3232 build_os=$*
3233 IFS=$ac_save_IFS
3234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3235
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3238 $as_echo_n "checking host system type... " >&6; }
3239 if test "${ac_cv_host+set}" = set; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   if test "x$host_alias" = x; then
3243   ac_cv_host=$ac_cv_build
3244 else
3245   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3246     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3247 fi
3248
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3251 $as_echo "$ac_cv_host" >&6; }
3252 case $ac_cv_host in
3253 *-*-*) ;;
3254 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3255 esac
3256 host=$ac_cv_host
3257 ac_save_IFS=$IFS; IFS='-'
3258 set x $ac_cv_host
3259 shift
3260 host_cpu=$1
3261 host_vendor=$2
3262 shift; shift
3263 # Remember, the first character of IFS is used to create $*,
3264 # except with old shells:
3265 host_os=$*
3266 IFS=$ac_save_IFS
3267 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3268
3269
3270
3271 am__api_version='1.11'
3272
3273 # Find a good install program.  We prefer a C program (faster),
3274 # so one script is as good as another.  But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3279 # AIX /bin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 # Reject install programs that cannot install multiple files.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3289 if test -z "$INSTALL"; then
3290 if test "${ac_cv_path_install+set}" = set; then :
3291   $as_echo_n "(cached) " >&6
3292 else
3293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     # Account for people who put trailing slashes in PATH elements.
3299 case $as_dir/ in #((
3300   ./ | .// | /[cC]/* | \
3301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3302   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3303   /usr/ucb/* ) ;;
3304   *)
3305     # OSF1 and SCO ODT 3.0 have their own names for install.
3306     # Don't use installbsd from OSF since it installs stuff as root
3307     # by default.
3308     for ac_prog in ginstall scoinst install; do
3309       for ac_exec_ext in '' $ac_executable_extensions; do
3310         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3311           if test $ac_prog = install &&
3312             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313             # AIX install.  It has an incompatible calling convention.
3314             :
3315           elif test $ac_prog = install &&
3316             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3317             # program-specific install script used by HP pwplus--don't use.
3318             :
3319           else
3320             rm -rf conftest.one conftest.two conftest.dir
3321             echo one > conftest.one
3322             echo two > conftest.two
3323             mkdir conftest.dir
3324             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3325               test -s conftest.one && test -s conftest.two &&
3326               test -s conftest.dir/conftest.one &&
3327               test -s conftest.dir/conftest.two
3328             then
3329               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3330               break 3
3331             fi
3332           fi
3333         fi
3334       done
3335     done
3336     ;;
3337 esac
3338
3339   done
3340 IFS=$as_save_IFS
3341
3342 rm -rf conftest.one conftest.two conftest.dir
3343
3344 fi
3345   if test "${ac_cv_path_install+set}" = set; then
3346     INSTALL=$ac_cv_path_install
3347   else
3348     # As a last resort, use the slow shell script.  Don't cache a
3349     # value for INSTALL within a source directory, because that will
3350     # break other packages using the cache if that directory is
3351     # removed, or if the value is a relative name.
3352     INSTALL=$ac_install_sh
3353   fi
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3356 $as_echo "$INSTALL" >&6; }
3357
3358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3359 # It thinks the first close brace ends the variable substitution.
3360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3361
3362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3363
3364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3365
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3367 $as_echo_n "checking whether build environment is sane... " >&6; }
3368 # Just in case
3369 sleep 1
3370 echo timestamp > conftest.file
3371 # Reject unsafe characters in $srcdir or the absolute working directory
3372 # name.  Accept space and tab only in the latter.
3373 am_lf='
3374 '
3375 case `pwd` in
3376   *[\\\"\#\$\&\'\`$am_lf]*)
3377     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3378 esac
3379 case $srcdir in
3380   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3381     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3382 esac
3383
3384 # Do `set' in a subshell so we don't clobber the current shell's
3385 # arguments.  Must try -L first in case configure is actually a
3386 # symlink; some systems play weird games with the mod time of symlinks
3387 # (eg FreeBSD returns the mod time of the symlink's containing
3388 # directory).
3389 if (
3390    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3391    if test "$*" = "X"; then
3392       # -L didn't work.
3393       set X `ls -t "$srcdir/configure" conftest.file`
3394    fi
3395    rm -f conftest.file
3396    if test "$*" != "X $srcdir/configure conftest.file" \
3397       && test "$*" != "X conftest.file $srcdir/configure"; then
3398
3399       # If neither matched, then we have a broken ls.  This can happen
3400       # if, for instance, CONFIG_SHELL is bash and it inherits a
3401       # broken ls alias from the environment.  This has actually
3402       # happened.  Such a system could not be considered "sane".
3403       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3404 alias in your environment" "$LINENO" 5
3405    fi
3406
3407    test "$2" = conftest.file
3408    )
3409 then
3410    # Ok.
3411    :
3412 else
3413    as_fn_error "newly created file is older than distributed files!
3414 Check your system clock" "$LINENO" 5
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3418 test "$program_prefix" != NONE &&
3419   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3420 # Use a double $ so make ignores it.
3421 test "$program_suffix" != NONE &&
3422   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3423 # Double any \ or $.
3424 # By default was `s,x,x', remove it if useless.
3425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3427
3428 # expand $ac_aux_dir to an absolute path
3429 am_aux_dir=`cd $ac_aux_dir && pwd`
3430
3431 if test x"${MISSING+set}" != xset; then
3432   case $am_aux_dir in
3433   *\ * | *\     *)
3434     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3435   *)
3436     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3437   esac
3438 fi
3439 # Use eval to expand $SHELL
3440 if eval "$MISSING --run true"; then
3441   am_missing_run="$MISSING --run "
3442 else
3443   am_missing_run=
3444   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3445 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3446 fi
3447
3448 if test x"${install_sh}" != xset; then
3449   case $am_aux_dir in
3450   *\ * | *\     *)
3451     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3452   *)
3453     install_sh="\${SHELL} $am_aux_dir/install-sh"
3454   esac
3455 fi
3456
3457 # Installed binaries are usually stripped using `strip' when the user
3458 # run `make install-strip'.  However `strip' might not be the right
3459 # tool to use in cross-compilation environments, therefore Automake
3460 # will honor the `STRIP' environment variable to overrule this program.
3461 if test "$cross_compiling" != no; then
3462   if test -n "$ac_tool_prefix"; then
3463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}strip; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_STRIP+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$STRIP"; then
3471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 STRIP=$ac_cv_prog_STRIP
3491 if test -n "$STRIP"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3493 $as_echo "$STRIP" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500 fi
3501 if test -z "$ac_cv_prog_STRIP"; then
3502   ac_ct_STRIP=$STRIP
3503   # Extract the first word of "strip", so it can be a program name with args.
3504 set dummy strip; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$ac_ct_STRIP"; then
3511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520     ac_cv_prog_ac_ct_STRIP="strip"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3531 if test -n "$ac_ct_STRIP"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3533 $as_echo "$ac_ct_STRIP" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539   if test "x$ac_ct_STRIP" = x; then
3540     STRIP=":"
3541   else
3542     case $cross_compiling:$ac_tool_warned in
3543 yes:)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548     STRIP=$ac_ct_STRIP
3549   fi
3550 else
3551   STRIP="$ac_cv_prog_STRIP"
3552 fi
3553
3554 fi
3555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3556
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3558 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3559 if test -z "$MKDIR_P"; then
3560   if test "${ac_cv_path_mkdir+set}" = set; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3565 do
3566   IFS=$as_save_IFS
3567   test -z "$as_dir" && as_dir=.
3568     for ac_prog in mkdir gmkdir; do
3569          for ac_exec_ext in '' $ac_executable_extensions; do
3570            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3571            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3572              'mkdir (GNU coreutils) '* | \
3573              'mkdir (coreutils) '* | \
3574              'mkdir (fileutils) '4.1*)
3575                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3576                break 3;;
3577            esac
3578          done
3579        done
3580   done
3581 IFS=$as_save_IFS
3582
3583 fi
3584
3585   test -d ./--version && rmdir ./--version
3586   if test "${ac_cv_path_mkdir+set}" = set; then
3587     MKDIR_P="$ac_cv_path_mkdir -p"
3588   else
3589     # As a last resort, use the slow shell script.  Don't cache a
3590     # value for MKDIR_P within a source directory, because that will
3591     # break other packages using the cache if that directory is
3592     # removed, or if the value is a relative name.
3593     MKDIR_P="$ac_install_sh -d"
3594   fi
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3597 $as_echo "$MKDIR_P" >&6; }
3598
3599 mkdir_p="$MKDIR_P"
3600 case $mkdir_p in
3601   [\\/$]* | ?:[\\/]*) ;;
3602   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3603 esac
3604
3605 for ac_prog in gawk mawk nawk awk
3606 do
3607   # Extract the first word of "$ac_prog", so it can be a program name with args.
3608 set dummy $ac_prog; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_AWK+set}" = set; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   if test -n "$AWK"; then
3615   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622     for ac_exec_ext in '' $ac_executable_extensions; do
3623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624     ac_cv_prog_AWK="$ac_prog"
3625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626     break 2
3627   fi
3628 done
3629   done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 AWK=$ac_cv_prog_AWK
3635 if test -n "$AWK"; then
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3637 $as_echo "$AWK" >&6; }
3638 else
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 fi
3642
3643
3644   test -n "$AWK" && break
3645 done
3646
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3648 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3649 set x ${MAKE-make}
3650 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3651 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   cat >conftest.make <<\_ACEOF
3655 SHELL = /bin/sh
3656 all:
3657         @echo '@@@%%%=$(MAKE)=@@@%%%'
3658 _ACEOF
3659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3661   *@@@%%%=?*=@@@%%%*)
3662     eval ac_cv_prog_make_${ac_make}_set=yes;;
3663   *)
3664     eval ac_cv_prog_make_${ac_make}_set=no;;
3665 esac
3666 rm -f conftest.make
3667 fi
3668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671   SET_MAKE=
3672 else
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675   SET_MAKE="MAKE=${MAKE-make}"
3676 fi
3677
3678 rm -rf .tst 2>/dev/null
3679 mkdir .tst 2>/dev/null
3680 if test -d .tst; then
3681   am__leading_dot=.
3682 else
3683   am__leading_dot=_
3684 fi
3685 rmdir .tst 2>/dev/null
3686
3687 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3688   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3689   # is not polluted with repeated "-I."
3690   am__isrc=' -I$(srcdir)'
3691   # test to see if srcdir already configured
3692   if test -f $srcdir/config.status; then
3693     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3694   fi
3695 fi
3696
3697 # test whether we have cygpath
3698 if test -z "$CYGPATH_W"; then
3699   if (cygpath --version) >/dev/null 2>/dev/null; then
3700     CYGPATH_W='cygpath -w'
3701   else
3702     CYGPATH_W=echo
3703   fi
3704 fi
3705
3706
3707 # Define the identity of the package.
3708  PACKAGE='gmp'
3709  VERSION='5.0.1'
3710
3711
3712 cat >>confdefs.h <<_ACEOF
3713 #define PACKAGE "$PACKAGE"
3714 _ACEOF
3715
3716
3717 cat >>confdefs.h <<_ACEOF
3718 #define VERSION "$VERSION"
3719 _ACEOF
3720
3721 # Some tools Automake needs.
3722
3723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3724
3725
3726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3727
3728
3729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3730
3731
3732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3733
3734
3735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3736
3737 # We need awk for the "check" target.  The system "awk" is bad on
3738 # some platforms.
3739 # Always define AMTAR for backward compatibility.
3740
3741 AMTAR=${AMTAR-"${am_missing_run}tar"}
3742
3743 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3744
3745
3746
3747
3748
3749 ac_config_headers="$ac_config_headers config.h:config.in"
3750
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3753 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3754     # Check whether --enable-maintainer-mode was given.
3755 if test "${enable_maintainer_mode+set}" = set; then :
3756   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3757 else
3758   USE_MAINTAINER_MODE=no
3759 fi
3760
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3762 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3763    if test $USE_MAINTAINER_MODE = yes; then
3764   MAINTAINER_MODE_TRUE=
3765   MAINTAINER_MODE_FALSE='#'
3766 else
3767   MAINTAINER_MODE_TRUE='#'
3768   MAINTAINER_MODE_FALSE=
3769 fi
3770
3771   MAINT=$MAINTAINER_MODE_TRUE
3772
3773
3774
3775
3776 # Check whether --enable-assert was given.
3777 if test "${enable_assert+set}" = set; then :
3778   enableval=$enable_assert; case $enableval in
3779 yes|no) ;;
3780 *) as_fn_error "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3781 esac
3782 else
3783   enable_assert=no
3784 fi
3785
3786
3787 if test "$enable_assert" = "yes"; then
3788
3789 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3790
3791   want_assert_01=1
3792 else
3793   want_assert_01=0
3794 fi
3795
3796 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3797
3798
3799
3800 # Check whether --enable-alloca was given.
3801 if test "${enable_alloca+set}" = set; then :
3802   enableval=$enable_alloca; case $enableval in
3803 alloca|malloc-reentrant|malloc-notreentrant) ;;
3804 yes|no|reentrant|notreentrant) ;;
3805 debug) ;;
3806 *)
3807   as_fn_error "bad value $enableval for --enable-alloca, need one of:
3808 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3809 esac
3810 else
3811   enable_alloca=reentrant
3812 fi
3813
3814
3815
3816 # IMPROVE ME: The default for C++ is disabled.  The tests currently
3817 # performed below for a working C++ compiler are not particularly strong,
3818 # and in general can't be expected to get the right setup on their own.  The
3819 # most significant problem is getting the ABI the same.  Defaulting CXXFLAGS
3820 # to CFLAGS takes only a small step towards this.  It's also probably worth
3821 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3822 # work together.  Some rather broken C++ installations were encountered
3823 # during testing, and though such things clearly aren't GMP's problem, if
3824 # --enable-cxx=detect were to be the default then some careful checks of
3825 # which, if any, C++ compiler on the system is up to scratch would be
3826 # wanted.
3827 #
3828 # Check whether --enable-cxx was given.
3829 if test "${enable_cxx+set}" = set; then :
3830   enableval=$enable_cxx; case $enableval in
3831 yes|no|detect) ;;
3832 *) as_fn_error "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3833 esac
3834 else
3835   enable_cxx=no
3836 fi
3837
3838
3839
3840 # Check whether --enable-fft was given.
3841 if test "${enable_fft+set}" = set; then :
3842   enableval=$enable_fft; case $enableval in
3843 yes|no) ;;
3844 *) as_fn_error "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3845 esac
3846 else
3847   enable_fft=yes
3848 fi
3849
3850
3851 if test "$enable_fft" = "yes"; then
3852
3853 $as_echo "#define WANT_FFT 1" >>confdefs.h
3854
3855 fi
3856
3857
3858 # Check whether --enable-old-fft-full was given.
3859 if test "${enable_old_fft_full+set}" = set; then :
3860   enableval=$enable_old_fft_full; case $enableval in
3861 yes|no) ;;
3862 *) as_fn_error "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3863 esac
3864 else
3865   enable_old_fft_full=no
3866 fi
3867
3868
3869 if test "$enable_old_fft_full" = "yes"; then
3870
3871 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3872
3873 fi
3874
3875
3876 # Check whether --enable-mpbsd was given.
3877 if test "${enable_mpbsd+set}" = set; then :
3878   enableval=$enable_mpbsd; case $enableval in
3879 yes|no) ;;
3880 *) as_fn_error "bad value $enableval for --enable-mpbsd, need yes or no" "$LINENO" 5 ;;
3881 esac
3882 else
3883   enable_mpbsd=no
3884 fi
3885
3886  if test "$enable_mpbsd" = "yes"; then
3887   WANT_MPBSD_TRUE=
3888   WANT_MPBSD_FALSE='#'
3889 else
3890   WANT_MPBSD_TRUE='#'
3891   WANT_MPBSD_FALSE=
3892 fi
3893
3894
3895
3896 # Check whether --enable-nails was given.
3897 if test "${enable_nails+set}" = set; then :
3898   enableval=$enable_nails; case $enableval in
3899 yes|no|[02468]|[0-9][02468]) ;;
3900 *[13579])
3901   as_fn_error "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3902 *)
3903   as_fn_error "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3904 esac
3905 else
3906   enable_nails=no
3907 fi
3908
3909
3910 case $enable_nails in
3911 yes) GMP_NAIL_BITS=2 ;;
3912 no)  GMP_NAIL_BITS=0 ;;
3913 *)   GMP_NAIL_BITS=$enable_nails ;;
3914 esac
3915
3916
3917
3918 # Check whether --enable-profiling was given.
3919 if test "${enable_profiling+set}" = set; then :
3920   enableval=$enable_profiling; case $enableval in
3921 no|prof|gprof|instrument) ;;
3922 *) as_fn_error "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3923 esac
3924 else
3925   enable_profiling=no
3926 fi
3927
3928
3929 case $enable_profiling in
3930   prof)
3931
3932 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3933
3934     ;;
3935   gprof)
3936
3937 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3938
3939     ;;
3940   instrument)
3941
3942 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3943
3944     ;;
3945 esac
3946
3947
3948 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3949
3950
3951 # -fomit-frame-pointer is incompatible with -pg on some chips
3952 if test "$enable_profiling" = gprof; then
3953   fomit_frame_pointer=
3954 else
3955   fomit_frame_pointer="-fomit-frame-pointer"
3956 fi
3957
3958
3959
3960 # Check whether --with-readline was given.
3961 if test "${with_readline+set}" = set; then :
3962   withval=$with_readline; case $withval in
3963 yes|no|detect) ;;
3964 *) as_fn_error "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3965 esac
3966 else
3967   with_readline=detect
3968 fi
3969
3970
3971
3972 # Check whether --enable-fat was given.
3973 if test "${enable_fat+set}" = set; then :
3974   enableval=$enable_fat; case $enableval in
3975 yes|no) ;;
3976 *) as_fn_error "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3977 esac
3978 else
3979   enable_fat=no
3980 fi
3981
3982
3983
3984 # Check whether --enable-minithres was given.
3985 if test "${enable_minithres+set}" = set; then :
3986   enableval=$enable_minithres; case $enableval in
3987 yes|no) ;;
3988 *) as_fn_error "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3989 esac
3990 else
3991   enable_minithres=no
3992 fi
3993
3994
3995
3996
3997 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3998 cat >>confdefs.h <<_ACEOF
3999 #define HAVE_HOST_CPU_$tmp_host 1
4000 _ACEOF
4001
4002
4003 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
4004
4005
4006
4007
4008
4009
4010 # Table of compilers, options, and mpn paths.  This code has various related
4011 # purposes
4012 #
4013 #   - better default CC/CFLAGS selections than autoconf otherwise gives
4014 #   - default CC/CFLAGS selections for extra CPU types specific to GMP
4015 #   - a few tests for known bad compilers
4016 #   - choice of ABIs on suitable systems
4017 #   - selection of corresponding mpn search path
4018 #
4019 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
4020 # called.  User selections of CC etc are respected.
4021 #
4022 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
4023 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
4024 # them cache their results, which is not wanted.
4025 #
4026 # The ABI selection mechanism is unique to GMP.  All that reaches autoconf
4027 # is a different selection of CC/CFLAGS according to the best ABI the system
4028 # supports, and/or what the user selects.  Naturally the mpn assembler code
4029 # selected is very dependent on the ABI.
4030 #
4031 # The closest the standard tools come to a notion of ABI is something like
4032 # "sparc64" which encodes a CPU and an ABI together.  This doesn't seem to
4033 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
4034 # separate from the ABI used on them.
4035 #
4036 #
4037 # The variables set here are
4038 #
4039 #   cclist              the compiler choices
4040 #   xx_cflags           flags for compiler xx
4041 #   xx_cflags_maybe     flags for compiler xx, if they work
4042 #   xx_cppflags         cpp flags for compiler xx
4043 #   xx_cflags_optlist   list of sets of optional flags
4044 #   xx_cflags_yyy       set yyy of optional flags for compiler xx
4045 #   xx_ldflags          -Wc,-foo flags for libtool linking with compiler xx
4046 #   ar_flags            extra flags for $AR
4047 #   nm_flags            extra flags for $NM
4048 #   limb                limb size, can be "longlong"
4049 #   path                mpn search path
4050 #   extra_functions     extra mpn functions
4051 #   fat_path            fat binary mpn search path [if fat binary desired]
4052 #   fat_functions       fat functions
4053 #   fat_thresholds      fat thresholds
4054 #
4055 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
4056 # tried, and the first flag that works will be used.  An optlist like "arch
4057 # cpu optimize" can be used to get multiple independent sets of flags tried.
4058 # The first that works from each will be used.  If no flag in a set works
4059 # then nothing from that set is added.
4060 #
4061 # For multiple ABIs, the scheme extends as follows.
4062 #
4063 #   abilist               set of ABI choices
4064 #   cclist_aa             compiler choices in ABI aa
4065 #   xx_aa_cflags          flags for xx in ABI aa
4066 #   xx_aa_cflags_maybe    flags for xx in ABI aa, if they work
4067 #   xx_aa_cppflags        cpp flags for xx in ABI aa
4068 #   xx_aa_cflags_optlist  list of sets of optional flags in ABI aa
4069 #   xx_aa_cflags_yyy      set yyy of optional flags for compiler xx in ABI aa
4070 #   xx_aa_ldflags         -Wc,-foo flags for libtool linking
4071 #   ar_aa_flags           extra flags for $AR in ABI aa
4072 #   nm_aa_flags           extra flags for $NM in ABI aa
4073 #   limb_aa               limb size in ABI aa, can be "longlong"
4074 #   path_aa               mpn search path in ABI aa
4075 #   extra_functions_aa    extra mpn functions in ABI aa
4076 #
4077 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
4078 # in ablist, if an xx_aa_cflags for that ABI isn't given.  For example if
4079 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
4080 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
4081 # defined.  This makes it easy to add some 64-bit compilers and flags to an
4082 # unadorned 32-bit set.
4083 #
4084 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
4085 # ABI.  It won't work to have some needing long long and some not, since a
4086 # single instantiated gmp.h will be used by both.
4087 #
4088 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
4089 # also set here, with an ABI suffix.
4090 #
4091 #
4092 #
4093 # A table-driven approach like this to mapping cpu type to good compiler
4094 # options is a bit of a maintenance burden, but there's not much uniformity
4095 # between options specifications on different compilers.  Some sort of
4096 # separately updatable tool might be cute.
4097 #
4098 # The use of lots of variables like this, direct and indirect, tends to
4099 # obscure when and how various things are done, but unfortunately it's
4100 # pretty much the only way.  If shell subroutines were portable then actual
4101 # code like "if this .. do that" could be written, but attempting the same
4102 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
4103 # hugely bloat the output.
4104
4105
4106
4107
4108 # abilist needs to be non-empty, "standard" is just a generic name here
4109 abilist="standard"
4110
4111 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
4112 # c89 over cc here.  But note that on HP-UX c89 provides a castrated
4113 # environment, and would want to be excluded somehow.  Maybe
4114 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
4115 # we don't need to worry.
4116 #
4117 cclist="gcc cc"
4118
4119 gcc_cflags="-O2 -pedantic"
4120 gcc_64_cflags="-O2 -pedantic"
4121 cc_cflags="-O"
4122 cc_64_cflags="-O"
4123
4124 SPEED_CYCLECOUNTER_OBJ=
4125 cyclecounter_size=2
4126
4127 HAVE_HOST_CPU_FAMILY_power=0
4128
4129 HAVE_HOST_CPU_FAMILY_powerpc=0
4130
4131
4132 case $host in
4133
4134   a29k*-*-*)
4135     path="a29k"
4136     ;;
4137
4138
4139   alpha*-*-*)
4140     $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
4141
4142     case $host_cpu in
4143       alphaev5* | alphapca5*)
4144         path="alpha/ev5 alpha" ;;
4145       alphaev67 | alphaev68 | alphaev7*)
4146         path="alpha/ev67 alpha/ev6 alpha" ;;
4147       alphaev6)
4148         path="alpha/ev6 alpha" ;;
4149       *)
4150         path="alpha" ;;
4151     esac
4152     extra_functions="cntlz"
4153     gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4154     gcc_cflags_oldas="-Wa,-oldas"     # see GMP_GCC_WA_OLDAS.
4155
4156     # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4157     # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4158     # gcc 3.0 adds nothing.
4159     # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4160     # gcc 3.2 adds nothing.
4161     #
4162     # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4163     # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS.  Each
4164     # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4165     #
4166     case $host_cpu in
4167       alpha)        gcc_cflags_cpu="-mcpu=ev4" ;;
4168       alphaev5)     gcc_cflags_cpu="-mcpu=ev5" ;;
4169       alphaev56)    gcc_cflags_cpu="-mcpu=ev56" ;;
4170       alphapca56 | alphapca57)
4171                     gcc_cflags_cpu="-mcpu=pca56" ;;
4172       alphaev6)     gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4173       alphaev67 | alphaev68 | alphaev7*)
4174                     gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4175     esac
4176
4177     # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4178     # accepting -mcpu=ev6, but not putting the assembler in the right mode
4179     # for what it produces.  We need to do this for it, and need to do it
4180     # before testing the -mcpu options.
4181     #
4182     # On old versions of gcc, which don't know -mcpu=, we believe an
4183     # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4184     # the right mode for our .asm files and longlong.h asm blocks.
4185     #
4186     # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4187     # which is at least as high as the code gcc will generate.  gcc
4188     # establishes what it needs with a ".arch" directive, our command line
4189     # option seems to override that.
4190     #
4191     # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4192     # ctlz and cttz (in 2.10.0 at least).
4193     #
4194     # OSF `as' accepts ev68 but stupidly treats it as ev4.  -arch only seems
4195     # to affect insns like ldbu which are expanded as macros when necessary.
4196     # Insns like ctlz which were never available as macros are always
4197     # accepted and always generate their plain code.
4198     #
4199     case $host_cpu in
4200       alpha)        gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4201       alphaev5)     gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4202       alphaev56)    gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4203       alphapca56 | alphapca57)
4204                     gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4205       alphaev6)     gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4206       alphaev67 | alphaev68 | alphaev7*)
4207                     gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4208     esac
4209
4210     # It might be better to ask "cc" whether it's Cray C or DEC C,
4211     # instead of relying on the OS part of $host.  But it's hard to
4212     # imagine either of those compilers anywhere except their native
4213     # systems.
4214     #
4215
4216 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4217
4218     case $host in
4219       *-cray-unicos*)
4220         cc_cflags="-O"          # no -g, it silently disables all optimizations
4221
4222 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4223
4224         # Don't perform any assembly syntax tests on this beast.
4225         gmp_asm_syntax_testing=no
4226         ;;
4227       *-*-osf*)
4228
4229 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4230
4231         cc_cflags=""
4232         cc_cflags_optlist="opt cpu"
4233
4234         # not sure if -fast works on old versions, so make it optional
4235         cc_cflags_opt="-fast -O2"
4236
4237         # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4238         # Compaq C V6.3-029 adds ev67.
4239         #
4240         case $host_cpu in
4241           alpha)       cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4242           alphaev5)    cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4243           alphaev56)   cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4244           alphapca56 | alphapca57)
4245             cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4246           alphaev6)    cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4247           alphaev67 | alphaev68 | alphaev7*)
4248             cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4249         esac
4250         ;;
4251       *)
4252
4253 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4254
4255         ;;
4256     esac
4257
4258     case $host in
4259       *-*-unicos*)
4260         # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4261         ;;
4262       *)
4263         SPEED_CYCLECOUNTER_OBJ=alpha.lo
4264         cyclecounter_size=1 ;;
4265     esac
4266     ;;
4267
4268
4269   # Cray vector machines.
4270   # This must come after alpha* so that we can recognize present and future
4271   # vector processors with a wildcard.
4272   *-cray-unicos*)
4273     gmp_asm_syntax_testing=no
4274     cclist="cc"
4275     # We used to have -hscalar0 here as a workaround for miscompilation of
4276     # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4277     # -hscalar0 causes disastrously poor code to be generated.
4278     cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4279     path="cray"
4280     ;;
4281
4282
4283   arm*-*-*)
4284     path="arm"
4285     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4286     gcc_testlist="gcc-arm-umodsi"
4287
4288 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4289
4290     ;;
4291
4292
4293   clipper*-*-*)
4294     path="clipper"
4295     ;;
4296
4297
4298   # Fujitsu
4299   f30[01]-fujitsu-sysv*)
4300     cclist="gcc vcc"
4301     # FIXME: flags for vcc?
4302     vcc_cflags="-g"
4303     path="fujitsu"
4304     ;;
4305
4306
4307   hppa*-*-*)
4308     # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4309     # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4310     # possible.
4311     #
4312     # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4313     # (64-bit), but not both, so there's no option to choose the desired
4314     # mode, we must instead detect which of the two it is.  This is done by
4315     # checking sizeof(long), either 4 or 8 bytes respectively.  Do this in
4316     # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4317     #
4318     gcc_cflags_optlist="arch"
4319     gcc_testlist="sizeof-long-4"
4320     SPEED_CYCLECOUNTER_OBJ=hppa.lo
4321     cyclecounter_size=1
4322
4323     # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4324     # (Can't remember why this isn't done already, have to check what .asm
4325     # files are available in each and how they run on a typical 2.0 cpu.)
4326     #
4327     case $host_cpu in
4328       hppa1.0*)    path="pa32" ;;
4329       hppa7000*)   path="pa32/hppa1_1 pa32" ;;
4330       hppa2.0* | hppa64)
4331                    path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4332       *)           # default to 7100
4333                    path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4334     esac
4335
4336     # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4337     # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4338     #
4339     # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4340     # be saved by the kernel on an old system.  Actually gcc (as of 3.2)
4341     # only adds a few float instructions with -mpa-risc-2-0, so it would
4342     # probably be safe, but let's not take the chance.  In any case, a
4343     # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4344     #
4345     case $host_cpu in
4346       hppa1.0*)           gcc_cflags_arch="-mpa-risc-1-0" ;;
4347       *)                  # default to 7100
4348                           gcc_cflags_arch="-mpa-risc-1-1" ;;
4349     esac
4350
4351     case $host_cpu in
4352       hppa1.0*)    cc_cflags="+O2" ;;
4353       *)           # default to 7100
4354                    cc_cflags="+DA1.1 +O2" ;;
4355     esac
4356
4357     case $host in
4358       hppa2.0*-*-* | hppa64-*-*)
4359         cclist_20n="gcc cc"
4360         abilist="2.0n 1.0"
4361         path_20n="pa64"
4362         limb_20n=longlong
4363         any_20n_testlist="sizeof-long-4"
4364         SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4365         cyclecounter_size_20n=2
4366
4367         # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4368         # used.  Assembler support for 2.0 is essential though, for our asm
4369         # files.
4370         gcc_20n_cflags="-O2"
4371         gcc_20n_cflags_optlist="arch"
4372         gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4373         gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4374
4375         cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4376         cc_20n_testlist="hpc-hppa-2-0"
4377
4378         # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4379         # hppa2.0n, on the assumption that that the latter indicates a
4380         # desire for ABI=2.0n.
4381         case $host in
4382         hppa2.0n-*-*) ;;
4383         *)
4384           # HPUX 10 and earlier cannot run 2.0w.  Not sure about other
4385           # systems (GNU/Linux for instance), but lets assume they're ok.
4386           case $host in
4387             *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4388             *)    abilist="2.0w $abilist" ;;
4389           esac
4390
4391           cclist_20w="gcc cc"
4392           gcc_20w_cflags="-O2 -mpa-risc-2-0"
4393           cc_20w_cflags="+DD64 +O2"
4394           cc_20w_testlist="hpc-hppa-2-0"
4395           path_20w="pa64"
4396           any_20w_testlist="sizeof-long-8"
4397           SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4398           cyclecounter_size_20w=2
4399           ;;
4400         esac
4401         ;;
4402     esac
4403     ;;
4404
4405
4406   i960*-*-*)
4407     path="i960"
4408     ;;
4409
4410
4411   ia64*-*-* | itanium-*-* | itanium2-*-*)
4412     abilist="64"
4413
4414 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4415
4416     SPEED_CYCLECOUNTER_OBJ=ia64.lo
4417
4418     case $host_cpu in
4419       itanium)   path="ia64/itanium  ia64" ;;
4420       itanium2)  path="ia64/itanium2 ia64" ;;
4421       *)         path="ia64" ;;
4422     esac
4423
4424     gcc_64_cflags_optlist="tune"
4425     gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4426
4427     # gcc pre-release 3.4 adds -mtune itanium and itanium2
4428     case $host_cpu in
4429       itanium)   gcc_cflags_tune="-mtune=itanium" ;;
4430       itanium2)  gcc_cflags_tune="-mtune=itanium2" ;;
4431     esac
4432
4433     case $host in
4434       *-*-linux*)
4435         cclist="gcc icc"
4436         icc_cflags="-no-gcc"
4437         icc_cflags_optlist="opt"
4438         # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4439         # But icc miscompiles GMP at any optimization level, at higher levels
4440         # it miscompiles more files...
4441         icc_cflags_opt="-O2 -O1"
4442         ;;
4443
4444       *-*-hpux*)
4445         # HP cc sometimes gets internal errors if the optimization level is
4446         # too high.  GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4447         # let us use whatever seems to work.
4448         #
4449         abilist="32 64"
4450
4451         cclist_32="gcc cc"
4452         path_32="ia64"
4453         cc_32_cflags=""
4454         cc_32_cflags_optlist="opt"
4455         cc_32_cflags_opt="+O3 +O2 +O1"
4456         gcc_32_cflags="-milp32 -O2"
4457         limb_32=longlong
4458         SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4459         cyclecounter_size_32=2
4460
4461         # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4462         # but also need it in CFLAGS for linking programs, since automake
4463         # only uses CFLAGS when linking, not CPPFLAGS.
4464         # FIXME: Maybe should use cc_64_ldflags for this, but that would
4465         # need GMP_LDFLAGS used consistently by all the programs.
4466         #
4467         cc_64_cflags="+DD64"
4468         cc_64_cppflags="+DD64"
4469         cc_64_cflags_optlist="opt"
4470         cc_64_cflags_opt="+O3 +O2 +O1"
4471         gcc_64_cflags="$gcc_64_cflags -mlp64"
4472         ;;
4473     esac
4474     ;;
4475
4476
4477   # Motorola 68k
4478   #
4479   m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4480     $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4481
4482
4483 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4484
4485     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4486     gcc_cflags_optlist="arch"
4487
4488     # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4489     # gcc 2.95 adds -mcpu32, -m68060.
4490     # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4491     #
4492     case $host_cpu in
4493     m68020)  gcc_cflags_arch="-m68020" ;;
4494     m68030)  gcc_cflags_arch="-m68030" ;;
4495     m68040)  gcc_cflags_arch="-m68040" ;;
4496     m68060)  gcc_cflags_arch="-m68060 -m68000" ;;
4497     m68360)  gcc_cflags_arch="-mcpu32 -m68000" ;;
4498     *)       gcc_cflags_arch="-m68000" ;;
4499     esac
4500
4501     # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4502     # tested.  Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4503     # the bitfield instructions.
4504     case $host_cpu in
4505     m680[234]0 | m68360)  path="m68k/mc68020 m68k" ;;
4506     *)                      path="m68k" ;;
4507     esac
4508     ;;
4509
4510
4511   # Motorola 88k
4512   m88k*-*-*)
4513     path="m88k"
4514     ;;
4515   m88110*-*-*)
4516     gcc_cflags="$gcc_cflags -m88110"
4517     path="m88k/mc88110 m88k"
4518     ;;
4519
4520
4521   # National Semiconductor 32k
4522   ns32k*-*-*)
4523     path="ns32k"
4524     ;;
4525
4526
4527   # IRIX 5 and earlier can only run 32-bit o32.
4528   #
4529   # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64.  n32 is
4530   # preferred over 64, but only because that's been the default in past
4531   # versions of GMP.  The two are equally efficient.
4532   #
4533   # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4534   # supporting n32 or 64.
4535   #
4536   # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4537   # right options to use when linking (both cc and gcc), so no need for
4538   # anything special from us.
4539   #
4540   mips*-*-*)
4541     abilist="o32"
4542     gcc_cflags_optlist="abi"
4543     gcc_cflags_abi="-mabi=32"
4544     gcc_testlist="gcc-mips-o32"
4545     path="mips32"
4546     cc_cflags="-O2 -o32"   # no -g, it disables all optimizations
4547     # this suits both mips32 and mips64
4548
4549 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4550
4551
4552     case $host in
4553       mips64*-*-* | mips*-*-irix[6789]*)
4554         abilist="n32 64 o32"
4555
4556         cclist_n32="gcc cc"
4557         gcc_n32_cflags="-O2 -mabi=n32"
4558         cc_n32_cflags="-O2 -n32"        # no -g, it disables all optimizations
4559         limb_n32=longlong
4560         path_n32="mips64"
4561
4562         cclist_64="gcc cc"
4563         gcc_64_cflags="$gcc_64_cflags -mabi=64"
4564         gcc_64_ldflags="-Wc,-mabi=64"
4565         cc_64_cflags="-O2 -64"          # no -g, it disables all optimizations
4566         cc_64_ldflags="-Wc,-64"
4567         path_64="mips64"
4568         ;;
4569     esac
4570     ;;
4571
4572
4573   # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4574   # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4575   # used.
4576   #
4577   # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4578   # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4579   # and so always ends up running the plain preprocessor anyway.  This could
4580   # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4581   # preprocessing is done separately, and this is only a speedup, the normal
4582   # preprocessor gets run if there's any problems.
4583   #
4584   # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4585   # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4586   # the assembler in the right mode.  In any case -Wa,-mppc is not good, for
4587   # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4588   # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4589   # comes out with fsel fail.
4590   #
4591   # (Note also that the darwin assembler doesn't accept "-mppc", so any
4592   # -Wa,-mppc was used only if it worked.  The right flag on darwin would be
4593   # "-arch ppc" or some such, but that's already the default.)
4594   #
4595   powerpc*-*-* | power[3-9]-*-*)
4596     $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4597
4598     HAVE_HOST_CPU_FAMILY_powerpc=1
4599     abilist="32"
4600     cclist="gcc cc"
4601     cc_cflags="-O2"
4602     gcc_cflags="$gcc_cflags -mpowerpc"
4603     gcc_cflags_optlist="precomp subtype asm cpu"
4604     gcc_cflags_precomp="-no-cpp-precomp"
4605     gcc_cflags_subtype="-force_cpusubtype_ALL"  # for vmx on darwin
4606     gcc_cflags_asm=""
4607     gcc_cflags_cpu=""
4608     vmx_path=""
4609
4610     # grab this object, though it's not a true cycle counter routine
4611     SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4612     cyclecounter_size=0
4613
4614     case $host_cpu in
4615       powerpc740 | powerpc750)
4616         path="powerpc32/750 powerpc32" ;;
4617       powerpc7400 | powerpc7410)
4618         path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4619       powerpc74[45]?)
4620         path="powerpc32/vmx powerpc32" ;;
4621       *)
4622         path="powerpc32" ;;
4623     esac
4624
4625     # gcc 2.7.2 knows -mcpu=403, 601, 603, 604.
4626     # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
4627     #   801, 821, 823, 860.
4628     # gcc 3.0 adds 630, rs64a.
4629     # gcc 3.1 adds 405, 7400, 7450.
4630     # gcc 3.2 adds nothing.
4631     # gcc 3.3 adds power3, power4, 8540.  power3 seems to be a synonym for 630.
4632     # gcc pre-release 3.4 adds 405fp, 440, 440fp, 970.
4633     #
4634     # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
4635     # done for all the others too.  But what would be the correct
4636     # arrangements?
4637     #
4638     case $host_cpu in
4639       powerpc401)   gcc_cflags_cpu="-mcpu=401" ;;
4640       powerpc403)   gcc_cflags_cpu="-mcpu=403" ;;
4641       powerpc405)   gcc_cflags_cpu="-mcpu=405" ;;
4642       powerpc505)   gcc_cflags_cpu="-mcpu=505" ;;
4643       powerpc601)   gcc_cflags_cpu="-mcpu=601" ;;
4644       powerpc602)   gcc_cflags_cpu="-mcpu=602" ;;
4645       powerpc603)   gcc_cflags_cpu="-mcpu=603" ;;
4646       powerpc603e)  gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;;
4647       powerpc604)   gcc_cflags_cpu="-mcpu=604" ;;
4648       powerpc604e)  gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;;
4649       powerpc620)   gcc_cflags_cpu="-mcpu=620" ;;
4650       powerpc630)   gcc_cflags_cpu="-mcpu=630"
4651                     cpu_path="p3" ;;
4652       powerpc740)   gcc_cflags_cpu="-mcpu=740" ;;
4653       powerpc7400 | powerpc7410)
4654                     gcc_cflags_asm="-Wa,-maltivec"
4655                     gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4656       powerpc74[45]?)
4657                     gcc_cflags_asm="-Wa,-maltivec"
4658                     gcc_cflags_cpu="-mcpu=7450" ;;
4659       powerpc750)   gcc_cflags_cpu="-mcpu=750" ;;
4660       powerpc801)   gcc_cflags_cpu="-mcpu=801" ;;
4661       powerpc821)   gcc_cflags_cpu="-mcpu=821" ;;
4662       powerpc823)   gcc_cflags_cpu="-mcpu=823" ;;
4663       powerpc860)   gcc_cflags_cpu="-mcpu=860" ;;
4664       powerpc970)   gcc_cflags_cpu="-mtune=970"
4665                     vmx_path="powerpc64/vmx"
4666                     cpu_path="p4" ;;
4667       power4)       gcc_cflags_cpu="-mtune=power4"
4668                     cpu_path="p4" ;;
4669       power5)       gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4670                     cpu_path="p5 p4" ;;
4671       power6)       gcc_cflags_cpu="-mtune=power6"
4672                     cpu_path="p6" ;;
4673     esac
4674
4675     case $host in
4676       *-*-aix*)
4677         cclist="gcc xlc cc"
4678         xlc_cflags="-O2 -qmaxmem=20000"
4679         xlc_cflags_optlist="arch"
4680
4681         # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
4682         # 403, rs64a
4683         # -qarch=ppc is needed, so ensure everything falls back to that.
4684         # FIXME: Perhaps newer versions know more flavours.
4685         #
4686         case $host_cpu in
4687           powerpc403)   xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4688           powerpc601)   xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4689           powerpc602)   xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4690           powerpc603)   xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4691           powerpc603e)  xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4692           powerpc604)   xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4693           powerpc604e)  xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4694           *)            xlc_cflags_arch="-qarch=ppc" ;;
4695         esac
4696         ;;
4697     esac
4698
4699     case $host in
4700       powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4701         case $host in
4702           *-*-aix*)
4703             # On AIX a true 64-bit ABI is available.
4704             # Need -Wc to pass object type flags through to the linker.
4705             abilist="aix64 $abilist"
4706             cclist_aix64="gcc xlc"
4707             gcc_aix64_cflags="-O2 -maix64 -mpowerpc64"
4708             gcc_aix64_cflags_optlist="cpu"
4709             gcc_aix64_ldflags="-Wc,-maix64"
4710             xlc_aix64_cflags="-O2 -q64 -qtune=pwr3 -qmaxmem=20000"
4711             xlc_aix64_ldflags="-Wc,-q64"
4712             # Must indicate object type to ar and nm
4713             ar_aix64_flags="-X64"
4714             nm_aix64_flags="-X64"
4715             path_aix64=""
4716             for i in $cpu_path; do path_aix64="${path_aix64}powerpc64/mode64/$i "; done
4717             path_aix64="${path_aix64}powerpc64/mode64 $vmx_path powerpc64"
4718             # grab this object, though it's not a true cycle counter routine
4719             SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo
4720             cyclecounter_size_aix64=0
4721             ;;
4722           *-*-darwin*)
4723             # On Darwin we can use 64-bit instructions with a longlong limb,
4724             # but the chip still in 32-bit mode.
4725             # In theory this can be used on any OS which knows how to save
4726             # 64-bit registers in a context switch.
4727             #
4728             # Note that we must use -mpowerpc64 with gcc, since the
4729             # longlong.h macros expect limb operands in a single 64-bit
4730             # register, not two 32-bit registers as would be given for a
4731             # long long without -mpowerpc64.  In theory we could detect and
4732             # accommodate both styles, but the proper 64-bit registers will
4733             # be fastest and are what we really want to use.
4734             #
4735             # One would think -mpowerpc64 would set the assembler in the right
4736             # mode to handle 64-bit instructions.  But for that, also
4737             # -force_cpusubtype_ALL is needed.
4738             #
4739             # Do not use -fast for Darwin, it actually adds options
4740             # incompatible with a shared library.
4741             #
4742             abilist="mode64 mode32 $abilist"
4743             gcc_cflags_opt="-O3 -O2 -O1"        # will this become used?
4744             cclist_mode32="gcc"
4745             gcc_mode32_cflags="-mpowerpc64"
4746             gcc_mode32_cflags_optlist="subtype cpu opt"
4747             gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4748             gcc_mode32_cflags_opt="-O3 -O2 -O1"
4749             path_mode32="powerpc64/mode32 $vmx_path powerpc64"
4750             limb_mode32=longlong
4751             cclist_mode64="gcc"
4752             gcc_mode64_cflags="-m64"
4753             gcc_mode64_cflags_optlist="cpu opt"
4754             gcc_mode64_cflags_opt="-O3 -O2 -O1"
4755             path_mode64=""
4756             for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done
4757             path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4758             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4759             cyclecounter_size_mode64=0
4760             any_mode64_testlist="sizeof-long-8"
4761             ;;
4762           *-*-linux* | *-*-*bsd*)
4763             # On GNU/Linux, assume the processor is in 64-bit mode.  Some
4764             # environments have a gcc that is always in 64-bit mode, while
4765             # others require -m64, hence the use of cflags_maybe.  The
4766             # sizeof-long-8 test checks the mode is right (for the no option
4767             # case).
4768             #
4769             # -mpowerpc64 is not used, since it should be the default in
4770             # 64-bit mode.  (We need its effect for the various longlong.h
4771             # asm macros to be right of course.)
4772             #
4773             # gcc64 was an early port of gcc to 64-bit mode, but should be
4774             # obsolete before too long.  We prefer plain gcc when it knows
4775             # 64-bits.
4776             #
4777             abilist="mode64 mode32 $abilist"
4778             cclist_mode32="gcc"
4779             gcc_mode32_cflags="-mpowerpc64"
4780             gcc_mode32_cflags_optlist="cpu opt"
4781             gcc_mode32_cflags_opt="-O3 -O2 -O1"
4782             path_mode32="powerpc64/mode32 $vmx_path powerpc64"
4783             limb_mode32=longlong
4784             cclist_mode64="gcc gcc64"
4785             gcc_mode64_cflags_maybe="-m64"
4786             gcc_mode64_cflags_optlist="cpu opt"
4787             gcc_mode64_cflags_opt="-O3 -O2 -O1"
4788             path_mode64=""
4789             for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done
4790             path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4791             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4792             cyclecounter_size_mode64=0
4793             any_mode64_testlist="sizeof-long-8"
4794             ;;
4795         esac
4796         ;;
4797     esac
4798     ;;
4799
4800
4801   # POWER
4802   power-*-* | power[12]-*-* | power2sc-*-*)
4803     $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4804
4805     HAVE_HOST_CPU_FAMILY_power=1
4806     cclist="gcc"
4807     extra_functions="udiv_w_sdiv"
4808     path="power"
4809
4810     # gcc 2.7.2 knows rios1, rios2, rsc
4811     #
4812     # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4813     # there needs to be a fallback to just -mpower.
4814     #
4815     gcc_cflags_optlist="cpu"
4816     case $host in
4817       power-*-*)    gcc_cflags_cpu="-mcpu=power -mpower" ;;
4818       power1-*-*)   gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4819       power2-*-*)   gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4820       power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc   -mpower" ;;
4821     esac
4822     case $host in
4823     *-*-aix*)
4824       cclist="gcc xlc"
4825       xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4826       ;;
4827     esac
4828     ;;
4829
4830
4831   pyramid-*-*)
4832     path="pyr"
4833     ;;
4834
4835
4836   # IBM s/370 and similar
4837   s3[6-9]0*-*-*)
4838     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4839     path="s390"
4840     extra_functions="udiv_w_sdiv"
4841     ;;
4842
4843
4844   sh-*-*)   path="sh" ;;
4845   sh2-*-*)  path="sh/sh2 sh" ;;
4846
4847
4848   *sparc*-*-*)
4849     # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI.  We've
4850     # had various bug reports where users have set CFLAGS for their desired
4851     # mode, but not set our ABI.  For some reason it's sparc where this
4852     # keeps coming up, presumably users there are accustomed to driving the
4853     # compiler mode that way.  The effect of our testlist setting is to
4854     # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4855     # 32-bit mode.
4856     #
4857     abilist="32"
4858     cclist="gcc acc cc"
4859     any_testlist="sizeof-long-4"
4860
4861 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4862
4863
4864     case $host_cpu in
4865       sparcv8 | microsparc | turbosparc)
4866         path="sparc32/v8 sparc32" ;;
4867       supersparc)
4868         path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4869       sparc64 | sparcv9* | ultrasparc*)
4870         path="sparc32/v9 sparc32/v8 sparc32" ;;
4871       *)
4872         path="sparc32" ;;
4873     esac
4874
4875     # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4876     # assembler.  Add it explicitly since the solaris assembler won't accept
4877     # our sparc32/v9 asm code without it.  gas accepts -xarch=v8plus too, so
4878     # it can be in the cflags unconditionally (though gas doesn't need it).
4879     #
4880     # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4881     # gcc doesn't know that flag, hence cflags_maybe.  Note that -m32 cannot
4882     # be done through the optlist since the plain cflags would be run first
4883     # and we don't want to require the default mode (whatever it is) works.
4884     #
4885     # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4886     # latter would be used in the 64-bit ABI on systems like "*bsd" where
4887     # abilist="64" only.
4888     #
4889     case $host_cpu in
4890       sparc64 | sparcv9* | ultrasparc*)
4891         gcc_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
4892       *)
4893         gcc_cflags="$gcc_cflags" ;;
4894     esac
4895     gcc_32_cflags_maybe="-m32"
4896     gcc_cflags_optlist="cpu"
4897
4898     # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4899     # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4900     #   sparclet, tsc701, v9, ultrasparc.  A warning is given that the
4901     #   plain -m forms will disappear.
4902     # gcc 3.0 adds nothing.
4903     # gcc 3.1 adds nothing.
4904     # gcc 3.2 adds nothing.
4905     # gcc 3.3 adds ultrasparc3.
4906     #
4907     case $host_cpu in
4908       supersparc)           gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
4909       sparcv8 | microsparc | turbosparc)
4910                             gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
4911       sparc64 | sparcv9*)   gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
4912       ultrasparc3)          gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
4913       ultrasparc*)          gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
4914       *)                    gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
4915     esac
4916
4917     # SunPRO cc and acc, and SunOS bundled cc
4918     case $host in
4919       *-*-solaris* | *-*-sunos*)
4920         # Note no -g, it disables all optimizations.
4921         cc_cflags=
4922         cc_cflags_optlist="opt arch cpu"
4923
4924         # SunOS cc doesn't know -xO4, fallback to -O2.
4925         cc_cflags_opt="-xO4 -O2"
4926
4927         # SunOS cc doesn't know -xarch, apparently always generating v7
4928         # code, so make this optional
4929         case $host_cpu in
4930           sparcv8 | microsparc | supersparc | turbosparc)
4931                                               cc_cflags_arch="-xarch=v8" ;;
4932           sparc64 | sparcv9* | ultrasparc*)   cc_cflags_arch="-xarch=v8plus" ;;
4933           *)                                  cc_cflags_arch="-xarch=v7" ;;
4934         esac
4935
4936         # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4937         # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4938         #   micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4939         # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4940         #
4941         # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
4942         # ultrasparc3?
4943         #
4944         case $host_cpu in
4945           supersparc)   cc_cflags_cpu="-xchip=super" ;;
4946           microsparc)   cc_cflags_cpu="-xchip=micro" ;;
4947           turbosparc)   cc_cflags_cpu="-xchip=micro2" ;;
4948           ultrasparc)   cc_cflags_cpu="-xchip=ultra" ;;
4949           ultrasparc2)  cc_cflags_cpu="-xchip=ultra2" ;;
4950           ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
4951           ultrasparc3)  cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4952           *)            cc_cflags_cpu="-xchip=generic" ;;
4953         esac
4954     esac
4955
4956     case $host_cpu in
4957       sparc64 | sparcv9* | ultrasparc*)
4958         case $host in
4959           # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4960           # registers properly, so ABI=32 is left as the only choice.
4961           #
4962           *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
4963
4964           # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
4965           # choice.  In fact they need no special compiler flags, gcc -m64
4966           # is the default, but it doesn't hurt to add it.  v9 CPUs always
4967           # use the sparc64 port, since the plain 32-bit sparc ports don't
4968           # run on a v9.
4969           #
4970           *-*-*bsd*) abilist="64" ;;
4971
4972           # For all other systems, we try both 64 and 32.
4973           #
4974           # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
4975           # In the past sparc64 meant a v9 cpu, but there were no 64-bit
4976           # operations in user mode.  We assume that if "gcc -m64" works
4977           # then the system is suitable.  Hopefully even if someone attempts
4978           # to put a new gcc and/or glibc on an old system it won't run.
4979           #
4980           *) abilist="64 32" ;;
4981         esac
4982
4983         case $host_cpu in
4984           ultrasparc | ultrasparc2 | ultrasparc2i)
4985             path_64="sparc64/ultrasparc12 sparc64" ;;
4986           ultrasparc3)
4987             path_64="sparc64/ultrasparc34 sparc64/ultrasparc12 sparc64" ;;
4988           *)
4989             path_64="sparc64"
4990         esac
4991
4992         cclist_64="gcc"
4993         any_64_testlist="sizeof-long-8"
4994
4995         # gcc -mptr64 is probably implied by -m64, but we're not sure if
4996         # this was always so.  On Solaris in the past we always used both
4997         # "-m64 -mptr64".
4998         #
4999         # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5000         # solaris, but it would seem likely that if gcc is going to generate
5001         # 64-bit code it will have to add that option itself where needed.
5002         # An extra copy of this option should be harmless though, but leave
5003         # it until we're sure.  (Might want -xarch=v9a or -xarch=v9b for the
5004         # higher cpu types instead.)
5005         #
5006         gcc_64_cflags="$gcc_64_cflags -m64 -mptr64"
5007         gcc_64_ldflags="-Wc,-m64"
5008         gcc_64_cflags_optlist="cpu"
5009
5010         case $host in
5011           *-*-solaris*)
5012             # Sun cc.
5013             #
5014             # We used to have -fast and some fixup options here, but it
5015             # recurrently caused problems with miscompilation.  Of course,
5016             # -fast is documented as miscompiling things for the sake of speed.
5017             #
5018             cclist_64="$cclist_64 cc"
5019             cc_64_cflags="-xO3 -xarch=v9"
5020             cc_64_cflags_optlist="cpu"
5021             ;;
5022         esac
5023
5024         # using the v9 %tick register
5025         SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5026         SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5027         cyclecounter_size_32=2
5028         cyclecounter_size_64=2
5029         ;;
5030     esac
5031     ;;
5032
5033
5034   # VAX
5035   vax*-*-*)
5036     # Currently gcc (version 3.0) on vax always uses a frame pointer
5037     # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
5038     # will be ignored.
5039     #
5040     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5041     path="vax"
5042     extra_functions="udiv_w_sdiv"
5043     ;;
5044
5045
5046   # AMD and Intel x86 configurations, including AMD64
5047   #
5048   # Rumour has it gcc -O2 used to give worse register allocation than just
5049   # -O, but lets assume that's no longer true.
5050   #
5051   # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc.  -m64 is
5052   # the default in such a build (we think), so -m32 is essential for ABI=32.
5053   # This is, of course, done for any $host_cpu, not just x86_64, so we can
5054   # get such a gcc into the right mode to cross-compile to say i486-*-*.
5055   #
5056   # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5057   # it when it works.  We check sizeof(long)==4 to ensure we get the right
5058   # mode, in case -m32 has failed not because it's an old gcc, but because
5059   # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5060   #
5061   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
5062     abilist="32"
5063     cclist="gcc icc cc"
5064     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5065     gcc_32_cflags_maybe="-m32"
5066     icc_cflags="-no-gcc"
5067     icc_cflags_optlist="opt"
5068     icc_cflags_opt="-O3 -O2 -O1"
5069     any_32_testlist="sizeof-long-4"
5070     CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5071
5072     # Availability of rdtsc is checked at run-time.
5073     SPEED_CYCLECOUNTER_OBJ=pentium.lo
5074
5075     # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486.  These
5076     #     represent -mcpu= since -m486 doesn't generate 486 specific insns.
5077     # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5078     # gcc 3.0 adds athlon.
5079     # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5080     #     athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5081     # gcc 3.2 adds winchip2.
5082     # gcc 3.3 adds winchip-c6.
5083     # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5084     # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5085     #
5086     # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5087     # old version of mpz/powm.c.  Seems to be fine with the current code, so
5088     # no need for any restrictions on that option.
5089     #
5090     # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5091     # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5092     # that as a fallback.
5093     #
5094     # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5095     # may not be supported by the assembler and/or the OS, and is bad in gcc
5096     # prior to 3.3.  The tests will reject these if no good, so fallbacks
5097     # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5098     # Note the relevant -march types are listed in the optflags handling
5099     # below, be sure to update there if adding new types emitting SSE2.
5100     #
5101     # -mtune is used at the start of each cpu option list to give something
5102     # gcc 3.4 will use, thereby avoiding warnings from -mcpu.  -mcpu forms
5103     # are retained for use by prior gcc.  For example pentium has
5104     # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5105     # -mcpu for prior.  If there's a brand new choice in 3.4 for a chip,
5106     # like k8 for x86_64, then it can be the -mtune at the start, no need to
5107     # duplicate anything.
5108     #
5109     gcc_cflags_optlist="cpu arch"
5110     case $host_cpu in
5111       i386*)
5112         gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5113         gcc_cflags_arch="-march=i386"
5114         ;;
5115       i486*)
5116         gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5117         gcc_cflags_arch="-march=i486"
5118         ;;
5119       i586 | pentium)
5120         gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5121         gcc_cflags_arch="-march=pentium"
5122         ;;
5123       pentiummmx)
5124         gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5125         gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5126         ;;
5127       i686 | pentiumpro)
5128         gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5129         gcc_cflags_arch="-march=pentiumpro -march=pentium"
5130         ;;
5131       pentium2)
5132         gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5133         gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5134         ;;
5135       pentium3 | pentiumm)
5136         gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5137         gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5138         ;;
5139       k6)
5140         gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5141         gcc_cflags_arch="-march=k6"
5142         ;;
5143       k62)
5144         gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5145         gcc_cflags_arch="-march=k6-2 -march=k6"
5146         ;;
5147       k63)
5148         gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5149         gcc_cflags_arch="-march=k6-3 -march=k6"
5150         ;;
5151       geode)
5152         gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5153         gcc_cflags_arch="-march=k6-3 -march=k6"
5154         ;;
5155       athlon)
5156         # Athlon instruction costs are close to P6 (3 cycle load latency,
5157         # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5158         # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5159         gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5160         gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5161         ;;
5162       i786 | pentium4)
5163         # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5164         # This gets us cmov to eliminate branches.  Maybe "athlon" would be
5165         # a possibility on gcc 3.0.
5166         #
5167         gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5168         gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5169         gcc_64_cflags_cpu="-mtune=nocona"
5170         ;;
5171       viac32)
5172         # Not sure of the best fallbacks here for -mcpu.
5173         # c3-2 has sse and mmx, so pentium3 is good for -march.
5174         gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5175         gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5176         ;;
5177       viac3*)
5178         # Not sure of the best fallbacks here.
5179         gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5180         gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5181         ;;
5182       athlon64 | x86_64)
5183         gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5184         gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5185         ;;
5186       core2 | corei)
5187         gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5188         gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5189         ;;
5190       atom)
5191         gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5192         gcc_cflags_arch="-march=atom -march=pentium3"
5193         ;;
5194       *)
5195         gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5196         gcc_cflags_arch="-march=i486"
5197         ;;
5198     esac
5199
5200     case $host_cpu in
5201       i386*)                path="x86" ;;
5202       i486*)                path="x86/i486 x86" ;;
5203       i586 | pentium)       path="x86/pentium x86" ;;
5204       pentiummmx)           path="x86/pentium/mmx x86/pentium x86" ;;
5205       i686 | pentiumpro)    path="x86/p6 x86" ;;
5206       pentium2)             path="x86/p6/mmx x86/p6 x86" ;;
5207       pentium3)             path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
5208       pentiumm | core2 | corei)
5209                             path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
5210       k6[23])             path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
5211       k6)                   path="x86/k6/mmx x86/k6 x86" ;;
5212       geode)                path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
5213       # we don't have any specific 32-bit code for athlon64/opteron, the
5214       # athlon code should be reasonable
5215       athlon | athlon64)    path="x86/k7/mmx x86/k7 x86" ;;
5216       i786 | pentium4)      path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
5217       # VIA/Centaur processors, sold as CyrixIII and C3.
5218       viac32)               path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
5219       viac3*)               path="x86/pentium/mmx x86/pentium x86";;
5220       atom)                 path="x86/atom x86" ;;
5221       *)                    path="x86" ;;
5222     esac
5223
5224     case $host in
5225       athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
5226         cclist_64="gcc"
5227         gcc_64_cflags="$gcc_64_cflags -m64"
5228         gcc_64_cflags_optlist="cpu arch"
5229         CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5230         SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5231         cyclecounter_size_64=2
5232         abilist="64 32"
5233         path_64="x86_64"
5234
5235         case $host_cpu in
5236           x86_64)
5237             ;;
5238           athlon64)
5239             path_64="x86_64/k8 $path_64"
5240             ;;
5241           pentium4)
5242             path_64="x86_64/pentium4 $path_64"
5243             ;;
5244           core2)
5245             path_64="x86_64/core2 $path_64"
5246             ;;
5247           corei)
5248             path_64="x86_64/corei x86_64/core2 $path_64"
5249             ;;
5250           atom)
5251             path_64="x86_64/atom $path_64"
5252             ;;
5253           nano)
5254             path_64="x86_64/nano $path_64"
5255             ;;
5256         esac
5257
5258         case $host in
5259           *-*-solaris*)
5260             # Sun cc.
5261             cclist_64="$cclist_64 cc"
5262             cc_64_cflags="-xO3 -m64"
5263             ;;
5264           *-*-mingw*)
5265             limb_64=longlong
5266             path_64=""  # Windows amd64 calling conventions are *different*
5267             # Silence many pedantic warnings for w64.  FIXME.
5268             gcc_64_cflags="$gcc_64_cflags -std=gnu99"
5269             ;;
5270         esac
5271         ;;
5272     esac
5273     ;;
5274
5275
5276   # FIXME: z8kx won't get through config.sub.  Could make 16 versus 32 bit
5277   # limb an ABI option perhaps.
5278   z8kx*-*-*)
5279     path="z8000x"
5280     extra_functions="udiv_w_sdiv"
5281     ;;
5282   z8k*-*-*)
5283     path="z8000"
5284     extra_functions="udiv_w_sdiv"
5285     ;;
5286
5287
5288   # Special CPU "none" selects generic C.  -DNO_ASM is used to disable gcc
5289   # asm blocks in longlong.h (since they're driven by cpp pre-defined
5290   # symbols like __alpha rather than the configured $host_cpu).
5291   #
5292   none-*-*)
5293     abilist="long longlong"
5294     cclist_long=$cclist
5295     gcc_long_cflags=$gcc_cflags
5296     gcc_long_cppflags="-DNO_ASM"
5297     cc_long_cflags=$cc_cflags
5298     cclist_longlong=$cclist
5299     gcc_longlong_cflags=$gcc_cflags
5300     gcc_longlong_cppflags="-DNO_ASM"
5301     cc_longlong_cflags=$cc_cflags
5302     limb_longlong=longlong
5303     ;;
5304
5305 esac
5306
5307 # mingw can be built by the cygwin gcc if -mno-cygwin is added.  For
5308 # convenience add this automatically if it works.  Actual mingw gcc accepts
5309 # -mno-cygwin too, but of course is the default.  mingw only runs on the
5310 # x86s, but allow any CPU here so as to catch "none" too.
5311 #
5312 case $host in
5313   *-*-mingw*)
5314     gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5315     gcc_cflags_nocygwin="-mno-cygwin"
5316     ;;
5317 esac
5318
5319
5320 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5321 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5322
5323 cat >&5 <<EOF
5324 User:
5325 ABI=$ABI
5326 CC=$CC
5327 CFLAGS=$CFLAGS_or_unset
5328 CPPFLAGS=$CPPFLAGS_or_unset
5329 MPN_PATH=$MPN_PATH
5330 GMP:
5331 abilist=$abilist
5332 cclist=$cclist
5333 EOF
5334
5335
5336 test_CFLAGS=${CFLAGS+set}
5337 test_CPPFLAGS=${CPPFLAGS+set}
5338
5339 for abi in $abilist; do
5340   abi_last="$abi"
5341 done
5342
5343 # If the user specifies an ABI then it must be in $abilist, after that
5344 # $abilist is restricted to just that choice.
5345 #
5346 if test -n "$ABI"; then
5347   found=no
5348   for abi in $abilist; do
5349     if test $abi = "$ABI"; then found=yes; break; fi
5350   done
5351   if test $found = no; then
5352     as_fn_error "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5353   fi
5354   abilist="$ABI"
5355 fi
5356
5357 found_compiler=no
5358
5359 for abi in $abilist; do
5360
5361   echo "checking ABI=$abi"
5362
5363   # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5364   # abi2="_64".  For abi=32, will have abi1="_32" and abi2="".  This is how
5365   # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5366   # abilist), but there's no fallback for $gcc_64_cflags.
5367   #
5368   abi1=`echo _$abi | sed 's/[.]//g'`
5369   if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5370
5371   # Compiler choices under this ABI
5372                               eval cclist_chosen=\"\$cclist$abi1\"
5373   test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5374
5375   # If there's a user specified $CC then don't use a list for
5376   # $cclist_chosen, just a single value for $ccbase.
5377   #
5378   if test -n "$CC"; then
5379
5380     # The first word of $CC, stripped of any directory.  For instance
5381     # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5382     #
5383     for ccbase in $CC; do break; done
5384     ccbase=`echo $ccbase | sed 's:.*/::'`
5385
5386     # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5387     # we can do flags defaulting with it.  If not, then $cclist_chosen is
5388     # set to "unrecognised" so no default flags are used.
5389     #
5390     # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5391     # non-symbol characters.  For instance ccbase=my+cc would end up with
5392     # something like cflags="$my+cc_cflags" which would give
5393     # cflags="+cc_cflags" rather than the intended empty string for an
5394     # unknown compiler.
5395     #
5396     found=unrecognised
5397     for i in $cclist_chosen; do
5398       if test "$ccbase" = $i; then
5399         found=$ccbase
5400         break
5401       fi
5402     done
5403     cclist_chosen=$found
5404   fi
5405
5406   for ccbase in $cclist_chosen; do
5407
5408     # When cross compiling, look for a compiler with the $host_alias as a
5409     # prefix, the same way that AC_CHECK_TOOL does.  But don't do this to a
5410     # user-selected $CC.
5411     #
5412     # $cross_compiling will be yes/no/maybe at this point.  Do the host
5413     # prefixing for "maybe" as well as "yes".
5414     #
5415     if test "$cross_compiling" != no && test -z "$CC"; then
5416       cross_compiling_prefix="${host_alias}-"
5417     fi
5418
5419     for ccprefix in $cross_compiling_prefix ""; do
5420
5421       cc="$CC"
5422       test -n "$cc" || cc="$ccprefix$ccbase"
5423
5424       # If the compiler is gcc but installed under another name, then change
5425       # $ccbase so as to use the flags we know for gcc.  This helps for
5426       # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5427       # native cc which is really gcc on NeXT or MacOS-X.
5428       #
5429       # FIXME: There's a slight misfeature here.  If cc is actually gcc but
5430       # gcc is not a known compiler under this $abi then we'll end up
5431       # testing it with no flags and it'll work, but chances are it won't be
5432       # in the right mode for the ABI we desire.  Let's quietly hope this
5433       # doesn't happen.
5434       #
5435       if test $ccbase != gcc; then
5436         cat >conftest.c <<EOF
5437 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5438   choke me
5439 #endif
5440 EOF
5441 gmp_compile="$cc -c conftest.c >&5"
5442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5443   (eval $gmp_compile) 2>&5
5444   ac_status=$?
5445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446   test $ac_status = 0; }; then
5447   rm -f conftest*
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5449 $as_echo_n "checking whether $cc is gcc... " >&6; }
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5451 $as_echo "yes" >&6; }
5452   ccbase=gcc
5453 else
5454   rm -f conftest*
5455   :
5456 fi
5457
5458       fi
5459
5460       # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5461       # then change $ccbase and make the default xlc flags available.
5462       if test $ccbase != xlc; then
5463         gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5465   (eval $gmp_command) 2>&5
5466   ac_status=$?
5467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468   test $ac_status = 0; }; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5470 $as_echo_n "checking whether $cc is xlc... " >&6; }
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472 $as_echo "yes" >&6; }
5473   ccbase=xlc
5474 else
5475   :
5476 fi
5477
5478       fi
5479
5480       # acc was Sun's first unbundled compiler back in the SunOS days, or
5481       # something like that, but today its man page says it's not meant to
5482       # be used directly (instead via /usr/ucb/cc).  The options are pretty
5483       # much the same as the main SunPRO cc, so share those configs.
5484       #
5485       case $host in
5486         *sparc*-*-solaris* | *sparc*-*-sunos*)
5487           if test "$ccbase" = acc; then ccbase=cc; fi ;;
5488       esac
5489
5490       for tmp_cflags_maybe in yes no; do
5491                              eval cflags=\"\$${ccbase}${abi1}_cflags\"
5492         test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5493
5494         if test "$tmp_cflags_maybe" = yes; then
5495           # don't try cflags_maybe when the user set CFLAGS
5496           if test "$test_CFLAGS" = set; then continue; fi
5497                                      eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5498           test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5499           # don't try cflags_maybe if there's nothing set
5500           if test -z "$cflags_maybe"; then continue; fi
5501           cflags="$cflags_maybe $cflags"
5502         fi
5503
5504         # Any user CFLAGS, even an empty string, takes precedence
5505         if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5506
5507         # Any user CPPFLAGS, even an empty string, takes precedence
5508                                eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5509         test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5510         if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5511
5512         # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5513         # This is convenient, but it's perhaps a bit naughty to modify user
5514         # CFLAGS.
5515         case "$enable_profiling" in
5516           prof)       cflags="$cflags -p" ;;
5517           gprof)      cflags="$cflags -pg" ;;
5518           instrument) cflags="$cflags -finstrument-functions" ;;
5519         esac
5520
5521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5522 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5523 gmp_prog_cc_works=yes
5524
5525 # first see a simple "main()" works, then go on to other checks
5526 if test "$gmp_prog_cc_works" = yes; then
5527   # remove anything that might look like compiler output to our "||" expression
5528   rm -f conftest* a.out b.out a.exe a_out.exe
5529   cat >conftest.c <<EOF
5530
5531 int main () { return 0; }
5532 EOF
5533   echo "Test compile: " >&5
5534   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5536   (eval $gmp_compile) 2>&5
5537   ac_status=$?
5538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5539   test $ac_status = 0; }; then
5540     cc_works_part=yes
5541     if test "$cross_compiling" = no; then
5542       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5543   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547   test $ac_status = 0; }; }; then :;
5548       else
5549         cc_works_part=norun
5550       fi
5551     fi
5552   else
5553     cc_works_part=no
5554   fi
5555   if test "$cc_works_part" != yes; then
5556     echo "failed program was:" >&5
5557     cat conftest.c >&5
5558   fi
5559   rm -f conftest* a.out b.out a.exe a_out.exe
5560   case $cc_works_part in
5561     yes)
5562
5563       ;;
5564     no)
5565       gmp_prog_cc_works="no"
5566       ;;
5567     norun)
5568       gmp_prog_cc_works="no, program does not run"
5569       ;;
5570   esac
5571 fi
5572
5573
5574
5575
5576 if test "$gmp_prog_cc_works" = yes; then
5577   # remove anything that might look like compiler output to our "||" expression
5578   rm -f conftest* a.out b.out a.exe a_out.exe
5579   cat >conftest.c <<EOF
5580 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5581    (without -maix64), hence detecting an unusable compiler */
5582 void *g() { return (void *) 0; }
5583 void *f() { return g(); }
5584
5585 int main () { return 0; }
5586 EOF
5587   echo "Test compile: function pointer return" >&5
5588   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5590   (eval $gmp_compile) 2>&5
5591   ac_status=$?
5592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593   test $ac_status = 0; }; then
5594     cc_works_part=yes
5595     if test "$cross_compiling" = no; then
5596       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5597   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5598   (eval $ac_try) 2>&5
5599   ac_status=$?
5600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601   test $ac_status = 0; }; }; then :;
5602       else
5603         cc_works_part=norun
5604       fi
5605     fi
5606   else
5607     cc_works_part=no
5608   fi
5609   if test "$cc_works_part" != yes; then
5610     echo "failed program was:" >&5
5611     cat conftest.c >&5
5612   fi
5613   rm -f conftest* a.out b.out a.exe a_out.exe
5614   case $cc_works_part in
5615     yes)
5616
5617       ;;
5618     no)
5619       gmp_prog_cc_works="no, function pointer return"
5620       ;;
5621     norun)
5622       gmp_prog_cc_works="no, function pointer return, program does not run"
5623       ;;
5624   esac
5625 fi
5626
5627
5628
5629
5630 if test "$gmp_prog_cc_works" = yes; then
5631   # remove anything that might look like compiler output to our "||" expression
5632   rm -f conftest* a.out b.out a.exe a_out.exe
5633   cat >conftest.c <<EOF
5634 /* The following provokes an invalid instruction syntax from i386 gcc
5635    -march=pentiumpro on Solaris 2.8.  The native sun assembler
5636    requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5637    least) doesn't know.  */
5638 int n;
5639 int cmov () { return (n >= 0 ? n : 0); }
5640
5641 int main () { return 0; }
5642 EOF
5643   echo "Test compile: cmov instruction" >&5
5644   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5645   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5646   (eval $gmp_compile) 2>&5
5647   ac_status=$?
5648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649   test $ac_status = 0; }; then
5650     cc_works_part=yes
5651     if test "$cross_compiling" = no; then
5652       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5653   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5654   (eval $ac_try) 2>&5
5655   ac_status=$?
5656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657   test $ac_status = 0; }; }; then :;
5658       else
5659         cc_works_part=norun
5660       fi
5661     fi
5662   else
5663     cc_works_part=no
5664   fi
5665   if test "$cc_works_part" != yes; then
5666     echo "failed program was:" >&5
5667     cat conftest.c >&5
5668   fi
5669   rm -f conftest* a.out b.out a.exe a_out.exe
5670   case $cc_works_part in
5671     yes)
5672
5673       ;;
5674     no)
5675       gmp_prog_cc_works="no, cmov instruction"
5676       ;;
5677     norun)
5678       gmp_prog_cc_works="no, cmov instruction, program does not run"
5679       ;;
5680   esac
5681 fi
5682
5683
5684
5685
5686 if test "$gmp_prog_cc_works" = yes; then
5687   # remove anything that might look like compiler output to our "||" expression
5688   rm -f conftest* a.out b.out a.exe a_out.exe
5689   cat >conftest.c <<EOF
5690 /* The following provokes a linker invocation problem with gcc 3.0.3
5691    on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
5692    option causes gcc to incorrectly select the 32-bit libgcc.a, not
5693    the 64-bit one, and consequently it misses out on the __fixunsdfdi
5694    helper (double -> uint64 conversion).  */
5695 double d;
5696 unsigned long gcc303 () { return (unsigned long) d; }
5697
5698 int main () { return 0; }
5699 EOF
5700   echo "Test compile: double -> ulong conversion" >&5
5701   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5702   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5703   (eval $gmp_compile) 2>&5
5704   ac_status=$?
5705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706   test $ac_status = 0; }; then
5707     cc_works_part=yes
5708     if test "$cross_compiling" = no; then
5709       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5710   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714   test $ac_status = 0; }; }; then :;
5715       else
5716         cc_works_part=norun
5717       fi
5718     fi
5719   else
5720     cc_works_part=no
5721   fi
5722   if test "$cc_works_part" != yes; then
5723     echo "failed program was:" >&5
5724     cat conftest.c >&5
5725   fi
5726   rm -f conftest* a.out b.out a.exe a_out.exe
5727   case $cc_works_part in
5728     yes)
5729
5730       ;;
5731     no)
5732       gmp_prog_cc_works="no, double -> ulong conversion"
5733       ;;
5734     norun)
5735       gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5736       ;;
5737   esac
5738 fi
5739
5740
5741
5742
5743 if test "$gmp_prog_cc_works" = yes; then
5744   # remove anything that might look like compiler output to our "||" expression
5745   rm -f conftest* a.out b.out a.exe a_out.exe
5746   cat >conftest.c <<EOF
5747 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5748    the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
5749    instruction, and a negation like this comes out using it.  */
5750 double fneg_data;
5751 unsigned long fneg () { return -fneg_data; }
5752
5753 int main () { return 0; }
5754 EOF
5755   echo "Test compile: double negation" >&5
5756   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5757   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5758   (eval $gmp_compile) 2>&5
5759   ac_status=$?
5760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761   test $ac_status = 0; }; then
5762     cc_works_part=yes
5763     if test "$cross_compiling" = no; then
5764       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5765   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769   test $ac_status = 0; }; }; then :;
5770       else
5771         cc_works_part=norun
5772       fi
5773     fi
5774   else
5775     cc_works_part=no
5776   fi
5777   if test "$cc_works_part" != yes; then
5778     echo "failed program was:" >&5
5779     cat conftest.c >&5
5780   fi
5781   rm -f conftest* a.out b.out a.exe a_out.exe
5782   case $cc_works_part in
5783     yes)
5784
5785       ;;
5786     no)
5787       gmp_prog_cc_works="no, double negation"
5788       ;;
5789     norun)
5790       gmp_prog_cc_works="no, double negation, program does not run"
5791       ;;
5792   esac
5793 fi
5794
5795
5796
5797
5798 if test "$gmp_prog_cc_works" = yes; then
5799   # remove anything that might look like compiler output to our "||" expression
5800   rm -f conftest* a.out b.out a.exe a_out.exe
5801   cat >conftest.c <<EOF
5802 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5803    (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5804    those instructions.  Not sure how much of the gmp code will come out
5805    wanting sse2, but it's easiest to reject an option we know is bad.  */
5806 double ftod_data;
5807 float ftod () { return (float) ftod_data; }
5808
5809 int main () { return 0; }
5810 EOF
5811   echo "Test compile: double -> float conversion" >&5
5812   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5814   (eval $gmp_compile) 2>&5
5815   ac_status=$?
5816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5817   test $ac_status = 0; }; then
5818     cc_works_part=yes
5819     if test "$cross_compiling" = no; then
5820       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5821   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825   test $ac_status = 0; }; }; then :;
5826       else
5827         cc_works_part=norun
5828       fi
5829     fi
5830   else
5831     cc_works_part=no
5832   fi
5833   if test "$cc_works_part" != yes; then
5834     echo "failed program was:" >&5
5835     cat conftest.c >&5
5836   fi
5837   rm -f conftest* a.out b.out a.exe a_out.exe
5838   case $cc_works_part in
5839     yes)
5840
5841       ;;
5842     no)
5843       gmp_prog_cc_works="no, double -> float conversion"
5844       ;;
5845     norun)
5846       gmp_prog_cc_works="no, double -> float conversion, program does not run"
5847       ;;
5848   esac
5849 fi
5850
5851
5852
5853
5854 if test "$gmp_prog_cc_works" = yes; then
5855   # remove anything that might look like compiler output to our "||" expression
5856   rm -f conftest* a.out b.out a.exe a_out.exe
5857   cat >conftest.c <<EOF
5858 /* The following provokes an internal compiler error from gcc version
5859    "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5860    values being spilled into floating point registers.  The problem doesn't
5861    show up all the time, but has occurred enough in GMP for us to reject
5862    this compiler+flags.  */
5863 #include <string.h>  /* for memcpy */
5864 struct try_t
5865 {
5866  char dst[2];
5867  char size;
5868  long d0, d1, d2, d3, d4, d5, d6;
5869  char overlap;
5870 };
5871 struct try_t param[6];
5872 int
5873 param_init ()
5874 {
5875  struct try_t *p;
5876  memcpy (p, &param[ 2 ], sizeof (*p));
5877  memcpy (p, &param[ 2 ], sizeof (*p));
5878  p->size = 2;
5879  memcpy (p, &param[ 1 ], sizeof (*p));
5880  p->dst[0] = 1;
5881  p->overlap = 2;
5882  memcpy (p, &param[ 3 ], sizeof (*p));
5883  p->dst[0] = 1;
5884  p->overlap = 8;
5885  memcpy (p, &param[ 4 ], sizeof (*p));
5886  memcpy (p, &param[ 4 ], sizeof (*p));
5887  p->overlap = 8;
5888  memcpy (p, &param[ 5 ], sizeof (*p));
5889  memcpy (p, &param[ 5 ], sizeof (*p));
5890  memcpy (p, &param[ 5 ], sizeof (*p));
5891  return 0;
5892 }
5893
5894 int main () { return 0; }
5895 EOF
5896   echo "Test compile: gnupro alpha ev6 char spilling" >&5
5897   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5899   (eval $gmp_compile) 2>&5
5900   ac_status=$?
5901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902   test $ac_status = 0; }; then
5903     cc_works_part=yes
5904     if test "$cross_compiling" = no; then
5905       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5910   test $ac_status = 0; }; }; then :;
5911       else
5912         cc_works_part=norun
5913       fi
5914     fi
5915   else
5916     cc_works_part=no
5917   fi
5918   if test "$cc_works_part" != yes; then
5919     echo "failed program was:" >&5
5920     cat conftest.c >&5
5921   fi
5922   rm -f conftest* a.out b.out a.exe a_out.exe
5923   case $cc_works_part in
5924     yes)
5925
5926       ;;
5927     no)
5928       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5929       ;;
5930     norun)
5931       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5932       ;;
5933   esac
5934 fi
5935
5936
5937
5938
5939 # __builtin_alloca is not available everywhere, check it exists before
5940 # seeing that it works
5941 if test "$gmp_prog_cc_works" = yes; then
5942   # remove anything that might look like compiler output to our "||" expression
5943   rm -f conftest* a.out b.out a.exe a_out.exe
5944   cat >conftest.c <<EOF
5945 int k; int foo () { __builtin_alloca (k); }
5946 EOF
5947   echo "Test compile: __builtin_alloca availability" >&5
5948   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5949   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5950   (eval $gmp_compile) 2>&5
5951   ac_status=$?
5952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953   test $ac_status = 0; }; then
5954     cc_works_part=yes
5955     if test "$cross_compiling" = no; then
5956       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5957   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961   test $ac_status = 0; }; }; then :;
5962       else
5963         cc_works_part=norun
5964       fi
5965     fi
5966   else
5967     cc_works_part=no
5968   fi
5969   if test "$cc_works_part" != yes; then
5970     echo "failed program was:" >&5
5971     cat conftest.c >&5
5972   fi
5973   rm -f conftest* a.out b.out a.exe a_out.exe
5974   case $cc_works_part in
5975     yes)
5976       if test "$gmp_prog_cc_works" = yes; then
5977   # remove anything that might look like compiler output to our "||" expression
5978   rm -f conftest* a.out b.out a.exe a_out.exe
5979   cat >conftest.c <<EOF
5980 /* The following provokes an internal compiler error from Itanium HP-UX cc
5981     under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
5982 int k;
5983 int foo ()
5984 {
5985   int i, **a;
5986   a = __builtin_alloca (k);
5987   for (i = 0; i <= k; i++)
5988     a[i] = __builtin_alloca (1 << i);
5989 }
5990
5991 int main () { return 0; }
5992 EOF
5993   echo "Test compile: alloca array" >&5
5994   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5995   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5996   (eval $gmp_compile) 2>&5
5997   ac_status=$?
5998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999   test $ac_status = 0; }; then
6000     cc_works_part=yes
6001     if test "$cross_compiling" = no; then
6002       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6003   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007   test $ac_status = 0; }; }; then :;
6008       else
6009         cc_works_part=norun
6010       fi
6011     fi
6012   else
6013     cc_works_part=no
6014   fi
6015   if test "$cc_works_part" != yes; then
6016     echo "failed program was:" >&5
6017     cat conftest.c >&5
6018   fi
6019   rm -f conftest* a.out b.out a.exe a_out.exe
6020   case $cc_works_part in
6021     yes)
6022
6023       ;;
6024     no)
6025       gmp_prog_cc_works="no, alloca array"
6026       ;;
6027     norun)
6028       gmp_prog_cc_works="no, alloca array, program does not run"
6029       ;;
6030   esac
6031 fi
6032
6033
6034
6035       ;;
6036     no)
6037
6038       ;;
6039     norun)
6040
6041       ;;
6042   esac
6043 fi
6044
6045
6046 if test "$gmp_prog_cc_works" = yes; then
6047   # remove anything that might look like compiler output to our "||" expression
6048   rm -f conftest* a.out b.out a.exe a_out.exe
6049   cat >conftest.c <<EOF
6050 /* The following provokes an internal error from the assembler on
6051    power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
6052    results in "Internal error related to the source program domain".
6053
6054    For reference it seems to be the combination of nabs+fcirz which is bad,
6055    not either alone.  This sort of thing occurs in mpz/get_str.c with the
6056    way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
6057    if that code changes to a scaled-integer style then we won't need this
6058    test.  */
6059
6060 double fp[1];
6061 int x;
6062 int f ()
6063 {
6064   int a;
6065   a = (x >= 0 ? x : -x);
6066   return a * fp[0];
6067 }
6068
6069 int main () { return 0; }
6070 EOF
6071   echo "Test compile: abs int -> double conversion" >&5
6072   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6073   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6074   (eval $gmp_compile) 2>&5
6075   ac_status=$?
6076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6077   test $ac_status = 0; }; then
6078     cc_works_part=yes
6079     if test "$cross_compiling" = no; then
6080       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6081   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6085   test $ac_status = 0; }; }; then :;
6086       else
6087         cc_works_part=norun
6088       fi
6089     fi
6090   else
6091     cc_works_part=no
6092   fi
6093   if test "$cc_works_part" != yes; then
6094     echo "failed program was:" >&5
6095     cat conftest.c >&5
6096   fi
6097   rm -f conftest* a.out b.out a.exe a_out.exe
6098   case $cc_works_part in
6099     yes)
6100
6101       ;;
6102     no)
6103       gmp_prog_cc_works="no, abs int -> double conversion"
6104       ;;
6105     norun)
6106       gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6107       ;;
6108   esac
6109 fi
6110
6111
6112
6113
6114 if test "$gmp_prog_cc_works" = yes; then
6115   # remove anything that might look like compiler output to our "||" expression
6116   rm -f conftest* a.out b.out a.exe a_out.exe
6117   cat >conftest.c <<EOF
6118 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6119    Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
6120    1666 to segfault with e.g., -O2 -mpowerpc64.  */
6121
6122 #if defined (__GNUC__) && ! defined (__cplusplus)
6123 typedef unsigned long long t1;typedef t1*t2;
6124 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6125 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
6126 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6127 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
6128 h(){}g(){}
6129 #else
6130 int dummy;
6131 #endif
6132
6133 int main () { return 0; }
6134 EOF
6135   echo "Test compile: long long reliability test 1" >&5
6136   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6137   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6138   (eval $gmp_compile) 2>&5
6139   ac_status=$?
6140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141   test $ac_status = 0; }; then
6142     cc_works_part=yes
6143     if test "$cross_compiling" = no; then
6144       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6145   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149   test $ac_status = 0; }; }; then :;
6150       else
6151         cc_works_part=norun
6152       fi
6153     fi
6154   else
6155     cc_works_part=no
6156   fi
6157   if test "$cc_works_part" != yes; then
6158     echo "failed program was:" >&5
6159     cat conftest.c >&5
6160   fi
6161   rm -f conftest* a.out b.out a.exe a_out.exe
6162   case $cc_works_part in
6163     yes)
6164
6165       ;;
6166     no)
6167       gmp_prog_cc_works="no, long long reliability test 1"
6168       ;;
6169     norun)
6170       gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6171       ;;
6172   esac
6173 fi
6174
6175
6176
6177
6178 if test "$gmp_prog_cc_works" = yes; then
6179   # remove anything that might look like compiler output to our "||" expression
6180   rm -f conftest* a.out b.out a.exe a_out.exe
6181   cat >conftest.c <<EOF
6182 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6183    Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
6184    1666 to get an ICE with -O1 -mpowerpc64.  */
6185
6186 #if defined (__GNUC__) && ! defined (__cplusplus)
6187 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
6188 g(){}
6189 #else
6190 int dummy;
6191 #endif
6192
6193 int main () { return 0; }
6194 EOF
6195   echo "Test compile: long long reliability test 2" >&5
6196   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6197   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6198   (eval $gmp_compile) 2>&5
6199   ac_status=$?
6200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201   test $ac_status = 0; }; then
6202     cc_works_part=yes
6203     if test "$cross_compiling" = no; then
6204       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6205   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209   test $ac_status = 0; }; }; then :;
6210       else
6211         cc_works_part=norun
6212       fi
6213     fi
6214   else
6215     cc_works_part=no
6216   fi
6217   if test "$cc_works_part" != yes; then
6218     echo "failed program was:" >&5
6219     cat conftest.c >&5
6220   fi
6221   rm -f conftest* a.out b.out a.exe a_out.exe
6222   case $cc_works_part in
6223     yes)
6224
6225       ;;
6226     no)
6227       gmp_prog_cc_works="no, long long reliability test 2"
6228       ;;
6229     norun)
6230       gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6231       ;;
6232   esac
6233 fi
6234
6235
6236
6237
6238 if test "$gmp_prog_cc_works" = yes; then
6239   # remove anything that might look like compiler output to our "||" expression
6240   rm -f conftest* a.out b.out a.exe a_out.exe
6241   cat >conftest.c <<EOF
6242 /* The following is mis-compiled by HP ia-64 cc version
6243         cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6244    under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
6245    inlined and its return value somehow botched to be 0 instead of 1.  This
6246    arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
6247    level, like +O2 seems ok.  This code needs to be run to show the problem,
6248    but that's fine, the offending cc is a native-only compiler so we don't
6249    have to worry about cross compiling.  */
6250
6251 #if ! defined (__cplusplus)
6252 unsigned long
6253 lshift_com (rp, up, n, cnt)
6254   unsigned long *rp;
6255   unsigned long *up;
6256   long n;
6257   unsigned cnt;
6258 {
6259   unsigned long retval, high_limb, low_limb;
6260   unsigned tnc;
6261   long i;
6262   tnc = 8 * sizeof (unsigned long) - cnt;
6263   low_limb = *up++;
6264   retval = low_limb >> tnc;
6265   high_limb = low_limb << cnt;
6266   for (i = n - 1; i != 0; i--)
6267     {
6268       low_limb = *up++;
6269       *rp++ = ~(high_limb | (low_limb >> tnc));
6270       high_limb = low_limb << cnt;
6271     }
6272   return retval;
6273 }
6274 int
6275 main ()
6276 {
6277   unsigned long cy, rp[2], up[2];
6278   up[0] = ~ 0L;
6279   up[1] = 0;
6280   cy = lshift_com (rp, up, 2L, 1);
6281   if (cy != 1L)
6282     return 1;
6283   return 0;
6284 }
6285 #else
6286 int
6287 main ()
6288 {
6289   return 0;
6290 }
6291 #endif
6292
6293 EOF
6294   echo "Test compile: mpn_lshift_com optimization" >&5
6295   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6297   (eval $gmp_compile) 2>&5
6298   ac_status=$?
6299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300   test $ac_status = 0; }; then
6301     cc_works_part=yes
6302     if test "$cross_compiling" = no; then
6303       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6304   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308   test $ac_status = 0; }; }; then :;
6309       else
6310         cc_works_part=norun
6311       fi
6312     fi
6313   else
6314     cc_works_part=no
6315   fi
6316   if test "$cc_works_part" != yes; then
6317     echo "failed program was:" >&5
6318     cat conftest.c >&5
6319   fi
6320   rm -f conftest* a.out b.out a.exe a_out.exe
6321   case $cc_works_part in
6322     yes)
6323
6324       ;;
6325     no)
6326       gmp_prog_cc_works="no, mpn_lshift_com optimization"
6327       ;;
6328     norun)
6329       gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6330       ;;
6331   esac
6332 fi
6333
6334
6335
6336 if test "$gmp_prog_cc_works" = yes; then
6337   # remove anything that might look like compiler output to our "||" expression
6338   rm -f conftest* a.out b.out a.exe a_out.exe
6339   cat >conftest.c <<EOF
6340 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6341     "icc -O3",  After several calls, the function writes parial garbage to
6342     the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
6343     to be run to show the problem, but that's fine, the offending cc is a
6344     native-only compiler so we don't have to worry about cross compiling.  */
6345
6346 #if ! defined (__cplusplus)
6347 #include <stdlib.h>
6348 void
6349 lshift_com (rp, up, n, cnt)
6350   unsigned long *rp;
6351   unsigned long *up;
6352   long n;
6353   unsigned cnt;
6354 {
6355   unsigned long high_limb, low_limb;
6356   unsigned tnc;
6357   long i;
6358   up += n;
6359   rp += n;
6360   tnc = 8 * sizeof (unsigned long) - cnt;
6361   low_limb = *--up;
6362   high_limb = low_limb << cnt;
6363   for (i = n - 1; i != 0; i--)
6364     {
6365       low_limb = *--up;
6366       *--rp = ~(high_limb | (low_limb >> tnc));
6367       high_limb = low_limb << cnt;
6368     }
6369   *--rp = ~high_limb;
6370 }
6371 int
6372 main ()
6373 {
6374   unsigned long *r, *r2;
6375   unsigned long a[88 + 1];
6376   long i;
6377   for (i = 0; i < 88 + 1; i++)
6378     a[i] = ~0L;
6379   r = malloc (10000 * sizeof (unsigned long));
6380   r2 = r;
6381   for (i = 0; i < 528; i += 22)
6382     {
6383       lshift_com (r2, a,
6384                   i / (8 * sizeof (unsigned long)) + 1,
6385                   i % (8 * sizeof (unsigned long)));
6386       r2 += 88 + 1;
6387     }
6388   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6389       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6390     abort ();
6391   return 0;
6392 }
6393 #else
6394 int
6395 main ()
6396 {
6397   return 0;
6398 }
6399 #endif
6400
6401 EOF
6402   echo "Test compile: mpn_lshift_com optimization 2" >&5
6403   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6404   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6405   (eval $gmp_compile) 2>&5
6406   ac_status=$?
6407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408   test $ac_status = 0; }; then
6409     cc_works_part=yes
6410     if test "$cross_compiling" = no; then
6411       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6412   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416   test $ac_status = 0; }; }; then :;
6417       else
6418         cc_works_part=norun
6419       fi
6420     fi
6421   else
6422     cc_works_part=no
6423   fi
6424   if test "$cc_works_part" != yes; then
6425     echo "failed program was:" >&5
6426     cat conftest.c >&5
6427   fi
6428   rm -f conftest* a.out b.out a.exe a_out.exe
6429   case $cc_works_part in
6430     yes)
6431
6432       ;;
6433     no)
6434       gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6435       ;;
6436     norun)
6437       gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6438       ;;
6439   esac
6440 fi
6441
6442
6443
6444
6445 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6446 # by recent versions of gcc.
6447 #
6448 if test "$gmp_prog_cc_works" = yes; then
6449   case $host in
6450     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6451       # this problem only arises in PIC code, so don't need to test when
6452       # --disable-shared.  We don't necessarily have $enable_shared set to
6453       # yes at this point, it will still be unset for the default (which is
6454       # yes); hence the use of "!= no".
6455       if test "$enable_shared" != no; then
6456         echo "Testing gcc GOT with eax emitted" >&5
6457 cat >conftest.c <<\EOF
6458 int foo;
6459 int bar () { return foo; }
6460 EOF
6461 tmp_got_emitted=no
6462 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6464   (eval $gmp_compile) 2>&5
6465   ac_status=$?
6466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467   test $ac_status = 0; }; then
6468   if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6469     tmp_got_emitted=yes
6470   fi
6471 fi
6472 rm -f conftest.*
6473 echo "Result: $tmp_got_emitted" >&5
6474 if test "$tmp_got_emitted" = yes; then
6475   echo "Testing gas GOT with eax good" >&5
6476 cat >conftest.awk <<\EOF
6477 BEGIN {
6478   want[0]  = "001"
6479   want[1]  = "043"
6480   want[2]  = "105"
6481   want[3]  = "147"
6482   want[4]  = "211"
6483   want[5]  = "253"
6484   want[6]  = "315"
6485   want[7]  = "357"
6486
6487   want[8]  = "005"
6488   want[9]  = "002"
6489   want[10] = "000"
6490   want[11] = "000"
6491   want[12] = "000"
6492
6493   want[13] = "376"
6494   want[14] = "334"
6495   want[15] = "272"
6496   want[16] = "230"
6497   want[17] = "166"
6498   want[18] = "124"
6499   want[19] = "062"
6500   want[20] = "020"
6501
6502   result = "yes"
6503 }
6504 {
6505   for (f = 2; f <= NF; f++)
6506     {
6507       for (i = 0; i < 20; i++)
6508         got[i] = got[i+1];
6509       got[20] = $f;
6510
6511       found = 1
6512       for (i = 0; i < 21; i++)
6513         if (got[i] != want[i])
6514           {
6515             found = 0
6516             break
6517           }
6518       if (found)
6519         {
6520           result = "no"
6521           exit
6522         }
6523     }
6524 }
6525 END {
6526   print result
6527 }
6528 EOF
6529 cat >conftest.s <<\EOF
6530         .text
6531         .byte   1, 35, 69, 103, 137, 171, 205, 239
6532         addl    $_GLOBAL_OFFSET_TABLE_, %eax
6533         .byte   254, 220, 186, 152, 118, 84, 50, 16
6534 EOF
6535 tmp_got_good=yes
6536 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6538   (eval $gmp_compile) 2>&5
6539   ac_status=$?
6540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541   test $ac_status = 0; }; then
6542   tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6543 fi
6544 rm -f conftest.*
6545 echo "Result: $tmp_got_good" >&5
6546 if test "$tmp_got_good" = no; then
6547   gmp_prog_cc_works="no, bad gas GOT with eax"
6548 else
6549   :
6550 fi
6551
6552 else
6553   :
6554 fi
6555
6556       fi
6557       ;;
6558   esac
6559 fi
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6562 $as_echo "$gmp_prog_cc_works" >&6; }
6563 case $gmp_prog_cc_works in
6564   yes)
6565
6566     ;;
6567   *)
6568     continue
6569     ;;
6570 esac
6571
6572
6573         # If we're supposed to be using a "long long" for a limb, check that
6574         # it works.
6575                                   eval limb_chosen=\"\$limb$abi1\"
6576         test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6577         if test "$limb_chosen" = longlong; then
6578           { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6579 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6580 cat >conftest.c <<EOF
6581 long long  foo;
6582 long long  bar () { return foo; }
6583 int main () { return 0; }
6584 EOF
6585 gmp_prog_cc_works=no
6586 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6588   (eval $gmp_compile) 2>&5
6589   ac_status=$?
6590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591   test $ac_status = 0; }; then
6592   gmp_prog_cc_works=yes
6593 else
6594   echo "failed program was:" >&5
6595   cat conftest.c >&5
6596 fi
6597 rm -f conftest* a.out b.out a.exe a_out.exe
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6599 $as_echo "$gmp_prog_cc_works" >&6; }
6600 if test $gmp_prog_cc_works = yes; then
6601   :
6602 else
6603   continue
6604 fi
6605
6606         fi
6607
6608         # The tests to perform on this $cc, if any
6609                                eval testlist=\"\$${ccbase}${abi1}_testlist\"
6610         test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6611         test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6612         test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6613
6614         testlist_pass=yes
6615         for tst in $testlist; do
6616           case $tst in
6617           hpc-hppa-2-0)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6618 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6619 # Bad compiler output:
6620 #   ccom: HP92453-01 G.10.32.05 HP C Compiler
6621 # Good compiler output:
6622 #   ccom: HP92453-01 A.10.32.30 HP C Compiler
6623 # Let A.10.32.30 or higher be ok.
6624 echo >conftest.c
6625 gmp_tmp_vs=`$cc  -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6626 echo "Version string: $gmp_tmp_vs" >&5
6627 rm conftest*
6628 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6629 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6630 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6631 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6632 if test -z "$gmp_tmp_v1"; then
6633   gmp_hpc_64bit=not-applicable
6634 else
6635   gmp_compare_ge=no
6636 if test -n "$gmp_tmp_v1"; then
6637   if test "$gmp_tmp_v1" -gt 10; then
6638     gmp_compare_ge=yes
6639   else
6640     if test "$gmp_tmp_v1" -eq 10; then
6641       if test -n "$gmp_tmp_v2"; then
6642   if test "$gmp_tmp_v2" -gt 32; then
6643     gmp_compare_ge=yes
6644   else
6645     if test "$gmp_tmp_v2" -eq 32; then
6646       if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6647   gmp_compare_ge=yes
6648 fi
6649
6650     fi
6651   fi
6652 fi
6653
6654     fi
6655   fi
6656 fi
6657
6658
6659   gmp_hpc_64bit=$gmp_compare_ge
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6662 $as_echo "$gmp_hpc_64bit" >&6; }
6663 if test $gmp_hpc_64bit = yes; then
6664   :
6665 else
6666   testlist_pass=no
6667 fi
6668  ;;
6669           gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6670 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6671 tmp_version=`$cc --version`
6672 echo "$tmp_version" >&5
6673 case $tmp_version in
6674   2.95 | 2.95.[123])
6675     testlist_pass=no
6676     gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6677   *)
6678     :
6679     gmp_gcc_arm_umodsi_result=yes ;;
6680 esac
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6682 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6683  ;;
6684           gcc-mips-o32)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6685 $as_echo_n "checking whether gcc supports o32... " >&6; }
6686 echo 'int x;' >conftest.c
6687 echo "$cc -mabi=32 -c conftest.c" >&5
6688 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6689   result=yes
6690 else
6691   cat conftest.out >&5
6692   if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6693     result=yes
6694   else
6695     result=no
6696   fi
6697 fi
6698 rm -f conftest.*
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6700 $as_echo "$result" >&6; }
6701 if test $result = yes; then
6702   :
6703 else
6704   testlist_pass=no
6705 fi
6706  ;;
6707           hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6708 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6709 result=no
6710 cat >conftest.s <<EOF
6711         .level 2.0
6712 EOF
6713 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6715   (eval $gmp_compile) 2>&5
6716   ac_status=$?
6717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718   test $ac_status = 0; }; then
6719   result=yes
6720 else
6721   echo "failed program was" >&5
6722   cat conftest.s >&5
6723 fi
6724 rm -f conftest*
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6726 $as_echo "$result" >&6; }
6727 if test "$result" = yes; then
6728   :
6729 else
6730   testlist_pass=no
6731 fi
6732  ;;
6733           sizeof*)       echo "configure: testlist $tst" >&5
6734 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6735 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6737 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6738 cat >conftest.c <<EOF
6739 int
6740 main ()
6741 {
6742   static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6743   test_array[0] = 0;
6744   return 0;
6745 }
6746 EOF
6747 gmp_c_testlist_sizeof=no
6748 gmp_compile="$cc $cflags -c conftest.c >&5"
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6750   (eval $gmp_compile) 2>&5
6751   ac_status=$?
6752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753   test $ac_status = 0; }; then
6754   gmp_c_testlist_sizeof=yes
6755 fi
6756 rm -f conftest*
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6758 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6759 if test $gmp_c_testlist_sizeof = yes; then
6760   :
6761 else
6762   testlist_pass=no
6763 fi
6764  ;;
6765           esac
6766           if test $testlist_pass = no; then break; fi
6767         done
6768
6769         if test $testlist_pass = yes; then
6770           found_compiler=yes
6771           break
6772         fi
6773       done
6774
6775       if test $found_compiler = yes; then break; fi
6776     done
6777
6778     if test $found_compiler = yes; then break; fi
6779   done
6780
6781   if test $found_compiler = yes; then break; fi
6782 done
6783
6784
6785 # If we recognised the CPU, as indicated by $path being set, then insist
6786 # that we have a working compiler, either from our $cclist choices or from
6787 # $CC.  We can't let AC_PROG_CC look around for a compiler because it might
6788 # find one that we've rejected (for not supporting the modes our asm code
6789 # demands, etc).
6790 #
6791 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6792 # fall through and let AC_PROG_CC look around for a compiler too.  This is
6793 # mostly in the interests of following a standard autoconf setup, after all
6794 # we've already tested cc and gcc adequately (hopefully).  As of autoconf
6795 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6796 # C on MS-DOS systems).
6797 #
6798 if test $found_compiler = no && test -n "$path"; then
6799   as_fn_error "could not find a working compiler, see config.log for details" "$LINENO" 5
6800 fi
6801
6802 case $host in
6803   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
6804     # If the user asked for a fat build, override the path and flags set above
6805     if test $enable_fat = yes; then
6806       gcc_cflags_cpu=""
6807       gcc_cflags_arch=""
6808
6809       if test "$abi" = 32; then
6810         extra_functions="$extra_functions fat fat_entry"
6811         path="x86/fat x86"
6812         fat_path="x86 x86/fat x86/i486
6813                   x86/k6 x86/k6/mmx x86/k6/k62mmx
6814                   x86/k7 x86/k7/mmx
6815                   x86/pentium x86/pentium/mmx
6816                   x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6817                   x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
6818       fi
6819
6820       if test "$abi" = 64; then
6821         gcc_64_cflags=""
6822         extra_functions_64="$extra_functions_64 fat fat_entry"
6823         path_64="x86_64/fat x86_64"
6824         fat_path="x86_64 x86_64/fat x86_64/pentium4 x86_64/core2 x86_64/corei x86_64/atom x86_64/nano"
6825       fi
6826
6827       fat_functions="add_n addmul_1 copyd copyi
6828                      dive_1 diveby3 divrem_1 gcd_1 lshift
6829                      mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
6830                      pre_divrem_1 pre_mod_1 rshift
6831                      sqr_basecase sub_n submul_1"
6832       fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6833                       SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD"
6834     fi
6835     ;;
6836 esac
6837
6838
6839 if test $found_compiler = yes; then
6840
6841   # If we're creating CFLAGS, then look for optional additions.  If the user
6842   # set CFLAGS then leave it alone.
6843   #
6844   if test "$test_CFLAGS" != set; then
6845                           eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6846     test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6847
6848     for opt in $optlist; do
6849                              eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6850       test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6851       test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6852
6853       for flag in $optflags; do
6854
6855         # ~ represents a space in an option spec
6856         flag=`echo "$flag" | tr '~' ' '`
6857
6858         case $flag in
6859           -march=pentium4 | -march=k8)
6860             # For -march settings which enable SSE2 we exclude certain bad
6861             # gcc versions and we need an OS knowing how to save xmm regs.
6862             #
6863             # This is only for ABI=32, any 64-bit gcc is good and any OS
6864             # knowing x86_64 will know xmm.
6865             #
6866             # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6867             # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior).  But
6868             # it doesn't hurt to run it anyway, sharing code with the
6869             # pentium4 case.
6870             #
6871             if test "$abi" = 32; then
6872               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6873 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6874 case `$cc $cflags $cppflags -dumpversion` in
6875   3.[012] | 3.[012].*) result=no ;;
6876   *)                     result=yes ;;
6877 esac
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6879 $as_echo "$result" >&6; }
6880 if test "$result" = yes; then
6881   :
6882 else
6883   continue
6884 fi
6885
6886               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
6887 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
6888 if test "${gmp_cv_os_x86_xmm+set}" = set; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   if test "$build" = "$host"; then
6892   # remove anything that might look like compiler output to our "||" expression
6893   rm -f conftest* a.out b.out a.exe a_out.exe
6894   cat >conftest.s <<EOF
6895         .text
6896 main:
6897 _main:
6898         .globl  main
6899         .globl  _main
6900         .byte   0x0f, 0x57, 0xc0
6901         xorl    %eax, %eax
6902         ret
6903 EOF
6904   gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
6905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6906   (eval $gmp_compile) 2>&5
6907   ac_status=$?
6908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909   test $ac_status = 0; }; then
6910     if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6911   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915   test $ac_status = 0; }; }; then
6916       gmp_cv_os_x86_xmm=yes
6917     else
6918       gmp_cv_os_x86_xmm=no
6919     fi
6920   else
6921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
6922 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
6923   fi
6924   rm -f conftest*
6925 fi
6926
6927 if test -z "$gmp_cv_os_x86_xmm"; then
6928   case $host_os in
6929     freebsd[123] | freebsd[123].*)
6930       gmp_cv_os_x86_xmm=no ;;
6931     freebsd*)
6932       gmp_cv_os_x86_xmm=yes ;;
6933     *)
6934       gmp_cv_os_x86_xmm=probably ;;
6935   esac
6936 fi
6937
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
6940 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
6941
6942 if test "$gmp_cv_os_x86_xmm" = probably; then
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
6944 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
6946 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
6947 fi
6948
6949 case $gmp_cv_os_x86_xmm in
6950 no)
6951   continue
6952   ;;
6953 *)
6954
6955   ;;
6956 esac
6957
6958             fi
6959             ;;
6960           -no-cpp-precomp)
6961             # special check, avoiding a warning
6962             if test "$ccbase" = gcc; then
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
6964 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
6965   result=no
6966   cat >conftest.c <<EOF
6967 int main () { return 0; }
6968 EOF
6969   gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
6970   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6971   (eval $gmp_compile) 2>&5
6972   ac_status=$?
6973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974   test $ac_status = 0; }; then
6975     if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
6976     else
6977       result=yes
6978     fi
6979   fi
6980   cat conftest.out >&5
6981   rm -f conftest* a.out b.out a.exe a_out.exe
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6983 $as_echo "$result" >&6; }
6984   if test "$result" = yes; then
6985       cflags="$cflags $flag"
6986                                    break
6987   else
6988       continue
6989   fi
6990 fi
6991
6992             ;;
6993           -Wa,-m*)
6994             case $host in
6995               alpha*-*-*)
6996                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
6997 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
6998 result=no
6999 cat >conftest.c <<EOF
7000 int main () {}
7001 EOF
7002 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7004   (eval $gmp_compile) 2>&5
7005   ac_status=$?
7006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007   test $ac_status = 0; }; then
7008   if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7009   else
7010     result=yes
7011   fi
7012 fi
7013 cat conftest.out >&5
7014 rm -f conftest*
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7016 $as_echo "$result" >&6; }
7017 if test "$result" = yes; then
7018   :
7019 else
7020   continue
7021 fi
7022
7023               ;;
7024             esac
7025             ;;
7026           -Wa,-oldas)
7027             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7028 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7029 result=no
7030 cat >conftest.c <<EOF
7031 EOF
7032 echo "with empty conftest.c" >&5
7033 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7035   (eval $gmp_compile) 2>&5
7036   ac_status=$?
7037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038   test $ac_status = 0; }; then : ;
7039 else
7040   # empty fails
7041   gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7042   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7043   (eval $gmp_compile) 2>&5
7044   ac_status=$?
7045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046   test $ac_status = 0; }; then
7047     # but with -Wa,-oldas it works
7048     result=yes
7049   fi
7050 fi
7051 rm -f conftest*
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7053 $as_echo "$result" >&6; }
7054 if test "$result" = yes; then
7055   cflags="$cflags $flag"
7056                              break
7057 else
7058   continue
7059 fi
7060
7061             ;;
7062         esac
7063
7064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7065 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7066 gmp_prog_cc_works=yes
7067
7068 # first see a simple "main()" works, then go on to other checks
7069 if test "$gmp_prog_cc_works" = yes; then
7070   # remove anything that might look like compiler output to our "||" expression
7071   rm -f conftest* a.out b.out a.exe a_out.exe
7072   cat >conftest.c <<EOF
7073
7074 int main () { return 0; }
7075 EOF
7076   echo "Test compile: " >&5
7077   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7079   (eval $gmp_compile) 2>&5
7080   ac_status=$?
7081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082   test $ac_status = 0; }; then
7083     cc_works_part=yes
7084     if test "$cross_compiling" = no; then
7085       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7087   (eval $ac_try) 2>&5
7088   ac_status=$?
7089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090   test $ac_status = 0; }; }; then :;
7091       else
7092         cc_works_part=norun
7093       fi
7094     fi
7095   else
7096     cc_works_part=no
7097   fi
7098   if test "$cc_works_part" != yes; then
7099     echo "failed program was:" >&5
7100     cat conftest.c >&5
7101   fi
7102   rm -f conftest* a.out b.out a.exe a_out.exe
7103   case $cc_works_part in
7104     yes)
7105
7106       ;;
7107     no)
7108       gmp_prog_cc_works="no"
7109       ;;
7110     norun)
7111       gmp_prog_cc_works="no, program does not run"
7112       ;;
7113   esac
7114 fi
7115
7116
7117
7118
7119 if test "$gmp_prog_cc_works" = yes; then
7120   # remove anything that might look like compiler output to our "||" expression
7121   rm -f conftest* a.out b.out a.exe a_out.exe
7122   cat >conftest.c <<EOF
7123 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7124    (without -maix64), hence detecting an unusable compiler */
7125 void *g() { return (void *) 0; }
7126 void *f() { return g(); }
7127
7128 int main () { return 0; }
7129 EOF
7130   echo "Test compile: function pointer return" >&5
7131   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7132   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7133   (eval $gmp_compile) 2>&5
7134   ac_status=$?
7135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136   test $ac_status = 0; }; then
7137     cc_works_part=yes
7138     if test "$cross_compiling" = no; then
7139       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7140   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144   test $ac_status = 0; }; }; then :;
7145       else
7146         cc_works_part=norun
7147       fi
7148     fi
7149   else
7150     cc_works_part=no
7151   fi
7152   if test "$cc_works_part" != yes; then
7153     echo "failed program was:" >&5
7154     cat conftest.c >&5
7155   fi
7156   rm -f conftest* a.out b.out a.exe a_out.exe
7157   case $cc_works_part in
7158     yes)
7159
7160       ;;
7161     no)
7162       gmp_prog_cc_works="no, function pointer return"
7163       ;;
7164     norun)
7165       gmp_prog_cc_works="no, function pointer return, program does not run"
7166       ;;
7167   esac
7168 fi
7169
7170
7171
7172
7173 if test "$gmp_prog_cc_works" = yes; then
7174   # remove anything that might look like compiler output to our "||" expression
7175   rm -f conftest* a.out b.out a.exe a_out.exe
7176   cat >conftest.c <<EOF
7177 /* The following provokes an invalid instruction syntax from i386 gcc
7178    -march=pentiumpro on Solaris 2.8.  The native sun assembler
7179    requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7180    least) doesn't know.  */
7181 int n;
7182 int cmov () { return (n >= 0 ? n : 0); }
7183
7184 int main () { return 0; }
7185 EOF
7186   echo "Test compile: cmov instruction" >&5
7187   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7188   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7189   (eval $gmp_compile) 2>&5
7190   ac_status=$?
7191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192   test $ac_status = 0; }; then
7193     cc_works_part=yes
7194     if test "$cross_compiling" = no; then
7195       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7196   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200   test $ac_status = 0; }; }; then :;
7201       else
7202         cc_works_part=norun
7203       fi
7204     fi
7205   else
7206     cc_works_part=no
7207   fi
7208   if test "$cc_works_part" != yes; then
7209     echo "failed program was:" >&5
7210     cat conftest.c >&5
7211   fi
7212   rm -f conftest* a.out b.out a.exe a_out.exe
7213   case $cc_works_part in
7214     yes)
7215
7216       ;;
7217     no)
7218       gmp_prog_cc_works="no, cmov instruction"
7219       ;;
7220     norun)
7221       gmp_prog_cc_works="no, cmov instruction, program does not run"
7222       ;;
7223   esac
7224 fi
7225
7226
7227
7228
7229 if test "$gmp_prog_cc_works" = yes; then
7230   # remove anything that might look like compiler output to our "||" expression
7231   rm -f conftest* a.out b.out a.exe a_out.exe
7232   cat >conftest.c <<EOF
7233 /* The following provokes a linker invocation problem with gcc 3.0.3
7234    on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
7235    option causes gcc to incorrectly select the 32-bit libgcc.a, not
7236    the 64-bit one, and consequently it misses out on the __fixunsdfdi
7237    helper (double -> uint64 conversion).  */
7238 double d;
7239 unsigned long gcc303 () { return (unsigned long) d; }
7240
7241 int main () { return 0; }
7242 EOF
7243   echo "Test compile: double -> ulong conversion" >&5
7244   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7245   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7246   (eval $gmp_compile) 2>&5
7247   ac_status=$?
7248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249   test $ac_status = 0; }; then
7250     cc_works_part=yes
7251     if test "$cross_compiling" = no; then
7252       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7253   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257   test $ac_status = 0; }; }; then :;
7258       else
7259         cc_works_part=norun
7260       fi
7261     fi
7262   else
7263     cc_works_part=no
7264   fi
7265   if test "$cc_works_part" != yes; then
7266     echo "failed program was:" >&5
7267     cat conftest.c >&5
7268   fi
7269   rm -f conftest* a.out b.out a.exe a_out.exe
7270   case $cc_works_part in
7271     yes)
7272
7273       ;;
7274     no)
7275       gmp_prog_cc_works="no, double -> ulong conversion"
7276       ;;
7277     norun)
7278       gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7279       ;;
7280   esac
7281 fi
7282
7283
7284
7285
7286 if test "$gmp_prog_cc_works" = yes; then
7287   # remove anything that might look like compiler output to our "||" expression
7288   rm -f conftest* a.out b.out a.exe a_out.exe
7289   cat >conftest.c <<EOF
7290 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7291    the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
7292    instruction, and a negation like this comes out using it.  */
7293 double fneg_data;
7294 unsigned long fneg () { return -fneg_data; }
7295
7296 int main () { return 0; }
7297 EOF
7298   echo "Test compile: double negation" >&5
7299   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7300   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7301   (eval $gmp_compile) 2>&5
7302   ac_status=$?
7303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304   test $ac_status = 0; }; then
7305     cc_works_part=yes
7306     if test "$cross_compiling" = no; then
7307       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312   test $ac_status = 0; }; }; then :;
7313       else
7314         cc_works_part=norun
7315       fi
7316     fi
7317   else
7318     cc_works_part=no
7319   fi
7320   if test "$cc_works_part" != yes; then
7321     echo "failed program was:" >&5
7322     cat conftest.c >&5
7323   fi
7324   rm -f conftest* a.out b.out a.exe a_out.exe
7325   case $cc_works_part in
7326     yes)
7327
7328       ;;
7329     no)
7330       gmp_prog_cc_works="no, double negation"
7331       ;;
7332     norun)
7333       gmp_prog_cc_works="no, double negation, program does not run"
7334       ;;
7335   esac
7336 fi
7337
7338
7339
7340
7341 if test "$gmp_prog_cc_works" = yes; then
7342   # remove anything that might look like compiler output to our "||" expression
7343   rm -f conftest* a.out b.out a.exe a_out.exe
7344   cat >conftest.c <<EOF
7345 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7346    (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7347    those instructions.  Not sure how much of the gmp code will come out
7348    wanting sse2, but it's easiest to reject an option we know is bad.  */
7349 double ftod_data;
7350 float ftod () { return (float) ftod_data; }
7351
7352 int main () { return 0; }
7353 EOF
7354   echo "Test compile: double -> float conversion" >&5
7355   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7356   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7357   (eval $gmp_compile) 2>&5
7358   ac_status=$?
7359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360   test $ac_status = 0; }; then
7361     cc_works_part=yes
7362     if test "$cross_compiling" = no; then
7363       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7364   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7365   (eval $ac_try) 2>&5
7366   ac_status=$?
7367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368   test $ac_status = 0; }; }; then :;
7369       else
7370         cc_works_part=norun
7371       fi
7372     fi
7373   else
7374     cc_works_part=no
7375   fi
7376   if test "$cc_works_part" != yes; then
7377     echo "failed program was:" >&5
7378     cat conftest.c >&5
7379   fi
7380   rm -f conftest* a.out b.out a.exe a_out.exe
7381   case $cc_works_part in
7382     yes)
7383
7384       ;;
7385     no)
7386       gmp_prog_cc_works="no, double -> float conversion"
7387       ;;
7388     norun)
7389       gmp_prog_cc_works="no, double -> float conversion, program does not run"
7390       ;;
7391   esac
7392 fi
7393
7394
7395
7396
7397 if test "$gmp_prog_cc_works" = yes; then
7398   # remove anything that might look like compiler output to our "||" expression
7399   rm -f conftest* a.out b.out a.exe a_out.exe
7400   cat >conftest.c <<EOF
7401 /* The following provokes an internal compiler error from gcc version
7402    "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7403    values being spilled into floating point registers.  The problem doesn't
7404    show up all the time, but has occurred enough in GMP for us to reject
7405    this compiler+flags.  */
7406 #include <string.h>  /* for memcpy */
7407 struct try_t
7408 {
7409  char dst[2];
7410  char size;
7411  long d0, d1, d2, d3, d4, d5, d6;
7412  char overlap;
7413 };
7414 struct try_t param[6];
7415 int
7416 param_init ()
7417 {
7418  struct try_t *p;
7419  memcpy (p, &param[ 2 ], sizeof (*p));
7420  memcpy (p, &param[ 2 ], sizeof (*p));
7421  p->size = 2;
7422  memcpy (p, &param[ 1 ], sizeof (*p));
7423  p->dst[0] = 1;
7424  p->overlap = 2;
7425  memcpy (p, &param[ 3 ], sizeof (*p));
7426  p->dst[0] = 1;
7427  p->overlap = 8;
7428  memcpy (p, &param[ 4 ], sizeof (*p));
7429  memcpy (p, &param[ 4 ], sizeof (*p));
7430  p->overlap = 8;
7431  memcpy (p, &param[ 5 ], sizeof (*p));
7432  memcpy (p, &param[ 5 ], sizeof (*p));
7433  memcpy (p, &param[ 5 ], sizeof (*p));
7434  return 0;
7435 }
7436
7437 int main () { return 0; }
7438 EOF
7439   echo "Test compile: gnupro alpha ev6 char spilling" >&5
7440   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7441   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7442   (eval $gmp_compile) 2>&5
7443   ac_status=$?
7444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445   test $ac_status = 0; }; then
7446     cc_works_part=yes
7447     if test "$cross_compiling" = no; then
7448       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7449   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453   test $ac_status = 0; }; }; then :;
7454       else
7455         cc_works_part=norun
7456       fi
7457     fi
7458   else
7459     cc_works_part=no
7460   fi
7461   if test "$cc_works_part" != yes; then
7462     echo "failed program was:" >&5
7463     cat conftest.c >&5
7464   fi
7465   rm -f conftest* a.out b.out a.exe a_out.exe
7466   case $cc_works_part in
7467     yes)
7468
7469       ;;
7470     no)
7471       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7472       ;;
7473     norun)
7474       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7475       ;;
7476   esac
7477 fi
7478
7479
7480
7481
7482 # __builtin_alloca is not available everywhere, check it exists before
7483 # seeing that it works
7484 if test "$gmp_prog_cc_works" = yes; then
7485   # remove anything that might look like compiler output to our "||" expression
7486   rm -f conftest* a.out b.out a.exe a_out.exe
7487   cat >conftest.c <<EOF
7488 int k; int foo () { __builtin_alloca (k); }
7489 EOF
7490   echo "Test compile: __builtin_alloca availability" >&5
7491   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7492   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7493   (eval $gmp_compile) 2>&5
7494   ac_status=$?
7495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496   test $ac_status = 0; }; then
7497     cc_works_part=yes
7498     if test "$cross_compiling" = no; then
7499       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7500   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504   test $ac_status = 0; }; }; then :;
7505       else
7506         cc_works_part=norun
7507       fi
7508     fi
7509   else
7510     cc_works_part=no
7511   fi
7512   if test "$cc_works_part" != yes; then
7513     echo "failed program was:" >&5
7514     cat conftest.c >&5
7515   fi
7516   rm -f conftest* a.out b.out a.exe a_out.exe
7517   case $cc_works_part in
7518     yes)
7519       if test "$gmp_prog_cc_works" = yes; then
7520   # remove anything that might look like compiler output to our "||" expression
7521   rm -f conftest* a.out b.out a.exe a_out.exe
7522   cat >conftest.c <<EOF
7523 /* The following provokes an internal compiler error from Itanium HP-UX cc
7524     under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
7525 int k;
7526 int foo ()
7527 {
7528   int i, **a;
7529   a = __builtin_alloca (k);
7530   for (i = 0; i <= k; i++)
7531     a[i] = __builtin_alloca (1 << i);
7532 }
7533
7534 int main () { return 0; }
7535 EOF
7536   echo "Test compile: alloca array" >&5
7537   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7538   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7539   (eval $gmp_compile) 2>&5
7540   ac_status=$?
7541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542   test $ac_status = 0; }; then
7543     cc_works_part=yes
7544     if test "$cross_compiling" = no; then
7545       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7546   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7547   (eval $ac_try) 2>&5
7548   ac_status=$?
7549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550   test $ac_status = 0; }; }; then :;
7551       else
7552         cc_works_part=norun
7553       fi
7554     fi
7555   else
7556     cc_works_part=no
7557   fi
7558   if test "$cc_works_part" != yes; then
7559     echo "failed program was:" >&5
7560     cat conftest.c >&5
7561   fi
7562   rm -f conftest* a.out b.out a.exe a_out.exe
7563   case $cc_works_part in
7564     yes)
7565
7566       ;;
7567     no)
7568       gmp_prog_cc_works="no, alloca array"
7569       ;;
7570     norun)
7571       gmp_prog_cc_works="no, alloca array, program does not run"
7572       ;;
7573   esac
7574 fi
7575
7576
7577
7578       ;;
7579     no)
7580
7581       ;;
7582     norun)
7583
7584       ;;
7585   esac
7586 fi
7587
7588
7589 if test "$gmp_prog_cc_works" = yes; then
7590   # remove anything that might look like compiler output to our "||" expression
7591   rm -f conftest* a.out b.out a.exe a_out.exe
7592   cat >conftest.c <<EOF
7593 /* The following provokes an internal error from the assembler on
7594    power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
7595    results in "Internal error related to the source program domain".
7596
7597    For reference it seems to be the combination of nabs+fcirz which is bad,
7598    not either alone.  This sort of thing occurs in mpz/get_str.c with the
7599    way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
7600    if that code changes to a scaled-integer style then we won't need this
7601    test.  */
7602
7603 double fp[1];
7604 int x;
7605 int f ()
7606 {
7607   int a;
7608   a = (x >= 0 ? x : -x);
7609   return a * fp[0];
7610 }
7611
7612 int main () { return 0; }
7613 EOF
7614   echo "Test compile: abs int -> double conversion" >&5
7615   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7616   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7617   (eval $gmp_compile) 2>&5
7618   ac_status=$?
7619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620   test $ac_status = 0; }; then
7621     cc_works_part=yes
7622     if test "$cross_compiling" = no; then
7623       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7624   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628   test $ac_status = 0; }; }; then :;
7629       else
7630         cc_works_part=norun
7631       fi
7632     fi
7633   else
7634     cc_works_part=no
7635   fi
7636   if test "$cc_works_part" != yes; then
7637     echo "failed program was:" >&5
7638     cat conftest.c >&5
7639   fi
7640   rm -f conftest* a.out b.out a.exe a_out.exe
7641   case $cc_works_part in
7642     yes)
7643
7644       ;;
7645     no)
7646       gmp_prog_cc_works="no, abs int -> double conversion"
7647       ;;
7648     norun)
7649       gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7650       ;;
7651   esac
7652 fi
7653
7654
7655
7656
7657 if test "$gmp_prog_cc_works" = yes; then
7658   # remove anything that might look like compiler output to our "||" expression
7659   rm -f conftest* a.out b.out a.exe a_out.exe
7660   cat >conftest.c <<EOF
7661 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7662    Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
7663    1666 to segfault with e.g., -O2 -mpowerpc64.  */
7664
7665 #if defined (__GNUC__) && ! defined (__cplusplus)
7666 typedef unsigned long long t1;typedef t1*t2;
7667 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7668 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
7669 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7670 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
7671 h(){}g(){}
7672 #else
7673 int dummy;
7674 #endif
7675
7676 int main () { return 0; }
7677 EOF
7678   echo "Test compile: long long reliability test 1" >&5
7679   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7680   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7681   (eval $gmp_compile) 2>&5
7682   ac_status=$?
7683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684   test $ac_status = 0; }; then
7685     cc_works_part=yes
7686     if test "$cross_compiling" = no; then
7687       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7688   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7689   (eval $ac_try) 2>&5
7690   ac_status=$?
7691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7692   test $ac_status = 0; }; }; then :;
7693       else
7694         cc_works_part=norun
7695       fi
7696     fi
7697   else
7698     cc_works_part=no
7699   fi
7700   if test "$cc_works_part" != yes; then
7701     echo "failed program was:" >&5
7702     cat conftest.c >&5
7703   fi
7704   rm -f conftest* a.out b.out a.exe a_out.exe
7705   case $cc_works_part in
7706     yes)
7707
7708       ;;
7709     no)
7710       gmp_prog_cc_works="no, long long reliability test 1"
7711       ;;
7712     norun)
7713       gmp_prog_cc_works="no, long long reliability test 1, program does not run"
7714       ;;
7715   esac
7716 fi
7717
7718
7719
7720
7721 if test "$gmp_prog_cc_works" = yes; then
7722   # remove anything that might look like compiler output to our "||" expression
7723   rm -f conftest* a.out b.out a.exe a_out.exe
7724   cat >conftest.c <<EOF
7725 /* The following provokes an internal compiler error on powerpc-apple-darwin.
7726    Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
7727    1666 to get an ICE with -O1 -mpowerpc64.  */
7728
7729 #if defined (__GNUC__) && ! defined (__cplusplus)
7730 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
7731 g(){}
7732 #else
7733 int dummy;
7734 #endif
7735
7736 int main () { return 0; }
7737 EOF
7738   echo "Test compile: long long reliability test 2" >&5
7739   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7740   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7741   (eval $gmp_compile) 2>&5
7742   ac_status=$?
7743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744   test $ac_status = 0; }; then
7745     cc_works_part=yes
7746     if test "$cross_compiling" = no; then
7747       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7749   (eval $ac_try) 2>&5
7750   ac_status=$?
7751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752   test $ac_status = 0; }; }; then :;
7753       else
7754         cc_works_part=norun
7755       fi
7756     fi
7757   else
7758     cc_works_part=no
7759   fi
7760   if test "$cc_works_part" != yes; then
7761     echo "failed program was:" >&5
7762     cat conftest.c >&5
7763   fi
7764   rm -f conftest* a.out b.out a.exe a_out.exe
7765   case $cc_works_part in
7766     yes)
7767
7768       ;;
7769     no)
7770       gmp_prog_cc_works="no, long long reliability test 2"
7771       ;;
7772     norun)
7773       gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7774       ;;
7775   esac
7776 fi
7777
7778
7779
7780
7781 if test "$gmp_prog_cc_works" = yes; then
7782   # remove anything that might look like compiler output to our "||" expression
7783   rm -f conftest* a.out b.out a.exe a_out.exe
7784   cat >conftest.c <<EOF
7785 /* The following is mis-compiled by HP ia-64 cc version
7786         cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7787    under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
7788    inlined and its return value somehow botched to be 0 instead of 1.  This
7789    arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
7790    level, like +O2 seems ok.  This code needs to be run to show the problem,
7791    but that's fine, the offending cc is a native-only compiler so we don't
7792    have to worry about cross compiling.  */
7793
7794 #if ! defined (__cplusplus)
7795 unsigned long
7796 lshift_com (rp, up, n, cnt)
7797   unsigned long *rp;
7798   unsigned long *up;
7799   long n;
7800   unsigned cnt;
7801 {
7802   unsigned long retval, high_limb, low_limb;
7803   unsigned tnc;
7804   long i;
7805   tnc = 8 * sizeof (unsigned long) - cnt;
7806   low_limb = *up++;
7807   retval = low_limb >> tnc;
7808   high_limb = low_limb << cnt;
7809   for (i = n - 1; i != 0; i--)
7810     {
7811       low_limb = *up++;
7812       *rp++ = ~(high_limb | (low_limb >> tnc));
7813       high_limb = low_limb << cnt;
7814     }
7815   return retval;
7816 }
7817 int
7818 main ()
7819 {
7820   unsigned long cy, rp[2], up[2];
7821   up[0] = ~ 0L;
7822   up[1] = 0;
7823   cy = lshift_com (rp, up, 2L, 1);
7824   if (cy != 1L)
7825     return 1;
7826   return 0;
7827 }
7828 #else
7829 int
7830 main ()
7831 {
7832   return 0;
7833 }
7834 #endif
7835
7836 EOF
7837   echo "Test compile: mpn_lshift_com optimization" >&5
7838   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7840   (eval $gmp_compile) 2>&5
7841   ac_status=$?
7842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843   test $ac_status = 0; }; then
7844     cc_works_part=yes
7845     if test "$cross_compiling" = no; then
7846       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7847   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7848   (eval $ac_try) 2>&5
7849   ac_status=$?
7850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7851   test $ac_status = 0; }; }; then :;
7852       else
7853         cc_works_part=norun
7854       fi
7855     fi
7856   else
7857     cc_works_part=no
7858   fi
7859   if test "$cc_works_part" != yes; then
7860     echo "failed program was:" >&5
7861     cat conftest.c >&5
7862   fi
7863   rm -f conftest* a.out b.out a.exe a_out.exe
7864   case $cc_works_part in
7865     yes)
7866
7867       ;;
7868     no)
7869       gmp_prog_cc_works="no, mpn_lshift_com optimization"
7870       ;;
7871     norun)
7872       gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7873       ;;
7874   esac
7875 fi
7876
7877
7878
7879 if test "$gmp_prog_cc_works" = yes; then
7880   # remove anything that might look like compiler output to our "||" expression
7881   rm -f conftest* a.out b.out a.exe a_out.exe
7882   cat >conftest.c <<EOF
7883 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7884     "icc -O3",  After several calls, the function writes parial garbage to
7885     the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
7886     to be run to show the problem, but that's fine, the offending cc is a
7887     native-only compiler so we don't have to worry about cross compiling.  */
7888
7889 #if ! defined (__cplusplus)
7890 #include <stdlib.h>
7891 void
7892 lshift_com (rp, up, n, cnt)
7893   unsigned long *rp;
7894   unsigned long *up;
7895   long n;
7896   unsigned cnt;
7897 {
7898   unsigned long high_limb, low_limb;
7899   unsigned tnc;
7900   long i;
7901   up += n;
7902   rp += n;
7903   tnc = 8 * sizeof (unsigned long) - cnt;
7904   low_limb = *--up;
7905   high_limb = low_limb << cnt;
7906   for (i = n - 1; i != 0; i--)
7907     {
7908       low_limb = *--up;
7909       *--rp = ~(high_limb | (low_limb >> tnc));
7910       high_limb = low_limb << cnt;
7911     }
7912   *--rp = ~high_limb;
7913 }
7914 int
7915 main ()
7916 {
7917   unsigned long *r, *r2;
7918   unsigned long a[88 + 1];
7919   long i;
7920   for (i = 0; i < 88 + 1; i++)
7921     a[i] = ~0L;
7922   r = malloc (10000 * sizeof (unsigned long));
7923   r2 = r;
7924   for (i = 0; i < 528; i += 22)
7925     {
7926       lshift_com (r2, a,
7927                   i / (8 * sizeof (unsigned long)) + 1,
7928                   i % (8 * sizeof (unsigned long)));
7929       r2 += 88 + 1;
7930     }
7931   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
7932       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
7933     abort ();
7934   return 0;
7935 }
7936 #else
7937 int
7938 main ()
7939 {
7940   return 0;
7941 }
7942 #endif
7943
7944 EOF
7945   echo "Test compile: mpn_lshift_com optimization 2" >&5
7946   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7947   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7948   (eval $gmp_compile) 2>&5
7949   ac_status=$?
7950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951   test $ac_status = 0; }; then
7952     cc_works_part=yes
7953     if test "$cross_compiling" = no; then
7954       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7955   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959   test $ac_status = 0; }; }; then :;
7960       else
7961         cc_works_part=norun
7962       fi
7963     fi
7964   else
7965     cc_works_part=no
7966   fi
7967   if test "$cc_works_part" != yes; then
7968     echo "failed program was:" >&5
7969     cat conftest.c >&5
7970   fi
7971   rm -f conftest* a.out b.out a.exe a_out.exe
7972   case $cc_works_part in
7973     yes)
7974
7975       ;;
7976     no)
7977       gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
7978       ;;
7979     norun)
7980       gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
7981       ;;
7982   esac
7983 fi
7984
7985
7986
7987
7988 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
7989 # by recent versions of gcc.
7990 #
7991 if test "$gmp_prog_cc_works" = yes; then
7992   case $host in
7993     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
7994       # this problem only arises in PIC code, so don't need to test when
7995       # --disable-shared.  We don't necessarily have $enable_shared set to
7996       # yes at this point, it will still be unset for the default (which is
7997       # yes); hence the use of "!= no".
7998       if test "$enable_shared" != no; then
7999         echo "Testing gcc GOT with eax emitted" >&5
8000 cat >conftest.c <<\EOF
8001 int foo;
8002 int bar () { return foo; }
8003 EOF
8004 tmp_got_emitted=no
8005 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8007   (eval $gmp_compile) 2>&5
8008   ac_status=$?
8009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010   test $ac_status = 0; }; then
8011   if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8012     tmp_got_emitted=yes
8013   fi
8014 fi
8015 rm -f conftest.*
8016 echo "Result: $tmp_got_emitted" >&5
8017 if test "$tmp_got_emitted" = yes; then
8018   echo "Testing gas GOT with eax good" >&5
8019 cat >conftest.awk <<\EOF
8020 BEGIN {
8021   want[0]  = "001"
8022   want[1]  = "043"
8023   want[2]  = "105"
8024   want[3]  = "147"
8025   want[4]  = "211"
8026   want[5]  = "253"
8027   want[6]  = "315"
8028   want[7]  = "357"
8029
8030   want[8]  = "005"
8031   want[9]  = "002"
8032   want[10] = "000"
8033   want[11] = "000"
8034   want[12] = "000"
8035
8036   want[13] = "376"
8037   want[14] = "334"
8038   want[15] = "272"
8039   want[16] = "230"
8040   want[17] = "166"
8041   want[18] = "124"
8042   want[19] = "062"
8043   want[20] = "020"
8044
8045   result = "yes"
8046 }
8047 {
8048   for (f = 2; f <= NF; f++)
8049     {
8050       for (i = 0; i < 20; i++)
8051         got[i] = got[i+1];
8052       got[20] = $f;
8053
8054       found = 1
8055       for (i = 0; i < 21; i++)
8056         if (got[i] != want[i])
8057           {
8058             found = 0
8059             break
8060           }
8061       if (found)
8062         {
8063           result = "no"
8064           exit
8065         }
8066     }
8067 }
8068 END {
8069   print result
8070 }
8071 EOF
8072 cat >conftest.s <<\EOF
8073         .text
8074         .byte   1, 35, 69, 103, 137, 171, 205, 239
8075         addl    $_GLOBAL_OFFSET_TABLE_, %eax
8076         .byte   254, 220, 186, 152, 118, 84, 50, 16
8077 EOF
8078 tmp_got_good=yes
8079 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8081   (eval $gmp_compile) 2>&5
8082   ac_status=$?
8083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084   test $ac_status = 0; }; then
8085   tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8086 fi
8087 rm -f conftest.*
8088 echo "Result: $tmp_got_good" >&5
8089 if test "$tmp_got_good" = no; then
8090   gmp_prog_cc_works="no, bad gas GOT with eax"
8091 else
8092   :
8093 fi
8094
8095 else
8096   :
8097 fi
8098
8099       fi
8100       ;;
8101   esac
8102 fi
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8105 $as_echo "$gmp_prog_cc_works" >&6; }
8106 case $gmp_prog_cc_works in
8107   yes)
8108     cflags="$cflags $flag"
8109           break
8110     ;;
8111   *)
8112
8113     ;;
8114 esac
8115
8116       done
8117     done
8118   fi
8119
8120   ABI="$abi"
8121   CC="$cc"
8122   CFLAGS="$cflags"
8123   CPPFLAGS="$cppflags"
8124
8125
8126   # Could easily have this in config.h too, if desired.
8127   ABI_nodots=`echo $ABI | sed 's/\./_/'`
8128
8129 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8130
8131
8132
8133   # GMP_LDFLAGS substitution, selected according to ABI.
8134   # These are needed on libgmp.la and libmp.la, but currently not on
8135   # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8136   #
8137                             eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8138   test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8139
8140
8141
8142
8143   # extra_functions, selected according to ABI
8144                     eval tmp=\"\$extra_functions$abi1\"
8145   test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8146   extra_functions="$tmp"
8147
8148
8149   # Cycle counter, selected according to ABI.
8150   #
8151                     eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8152   test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8153   SPEED_CYCLECOUNTER_OBJ="$tmp"
8154                     eval tmp=\"\$cyclecounter_size$abi1\"
8155   test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8156   cyclecounter_size="$tmp"
8157
8158   if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8159
8160 cat >>confdefs.h <<_ACEOF
8161 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8162 _ACEOF
8163
8164   fi
8165
8166
8167
8168   # Calling conventions checking, selected according to ABI.
8169   #
8170                     eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8171   test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8172   CALLING_CONVENTIONS_OBJS="$tmp"
8173
8174   if test -n "$CALLING_CONVENTIONS_OBJS"; then
8175
8176 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8177
8178   fi
8179
8180
8181 fi
8182
8183
8184 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8185 # according to the ABI and add "generic".
8186 #
8187 if test -n "$MPN_PATH"; then
8188   path="$MPN_PATH"
8189 else
8190                     eval tmp=\"\$path$abi1\"
8191   test -n "$tmp" || eval tmp=\"\$path$abi2\"
8192   path="$tmp generic"
8193 fi
8194
8195
8196 # Long long limb setup for gmp.h.
8197 case $limb_chosen in
8198 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1"    ;;
8199 *)        DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8200 esac
8201
8202
8203
8204 # The C compiler and preprocessor, put into ANSI mode if possible.
8205 ac_ext=c
8206 ac_cpp='$CPP $CPPFLAGS'
8207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8210 if test -n "$ac_tool_prefix"; then
8211   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_CC+set}" = set; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   if test -n "$CC"; then
8219   ac_cv_prog_CC="$CC" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224   IFS=$as_save_IFS
8225   test -z "$as_dir" && as_dir=.
8226     for ac_exec_ext in '' $ac_executable_extensions; do
8227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228     ac_cv_prog_CC="${ac_tool_prefix}gcc"
8229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230     break 2
8231   fi
8232 done
8233   done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 CC=$ac_cv_prog_CC
8239 if test -n "$CC"; then
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8241 $as_echo "$CC" >&6; }
8242 else
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246
8247
8248 fi
8249 if test -z "$ac_cv_prog_CC"; then
8250   ac_ct_CC=$CC
8251   # Extract the first word of "gcc", so it can be a program name with args.
8252 set dummy gcc; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   if test -n "$ac_ct_CC"; then
8259   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264   IFS=$as_save_IFS
8265   test -z "$as_dir" && as_dir=.
8266     for ac_exec_ext in '' $ac_executable_extensions; do
8267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8268     ac_cv_prog_ac_ct_CC="gcc"
8269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270     break 2
8271   fi
8272 done
8273   done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8279 if test -n "$ac_ct_CC"; then
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8281 $as_echo "$ac_ct_CC" >&6; }
8282 else
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286
8287   if test "x$ac_ct_CC" = x; then
8288     CC=""
8289   else
8290     case $cross_compiling:$ac_tool_warned in
8291 yes:)
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8295 esac
8296     CC=$ac_ct_CC
8297   fi
8298 else
8299   CC="$ac_cv_prog_CC"
8300 fi
8301
8302 if test -z "$CC"; then
8303           if test -n "$ac_tool_prefix"; then
8304     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8305 set dummy ${ac_tool_prefix}cc; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if test "${ac_cv_prog_CC+set}" = set; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   if test -n "$CC"; then
8312   ac_cv_prog_CC="$CC" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317   IFS=$as_save_IFS
8318   test -z "$as_dir" && as_dir=.
8319     for ac_exec_ext in '' $ac_executable_extensions; do
8320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321     ac_cv_prog_CC="${ac_tool_prefix}cc"
8322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323     break 2
8324   fi
8325 done
8326   done
8327 IFS=$as_save_IFS
8328
8329 fi
8330 fi
8331 CC=$ac_cv_prog_CC
8332 if test -n "$CC"; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8334 $as_echo "$CC" >&6; }
8335 else
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341   fi
8342 fi
8343 if test -z "$CC"; then
8344   # Extract the first word of "cc", so it can be a program name with args.
8345 set dummy cc; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if test "${ac_cv_prog_CC+set}" = set; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   if test -n "$CC"; then
8352   ac_cv_prog_CC="$CC" # Let the user override the test.
8353 else
8354   ac_prog_rejected=no
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360     for ac_exec_ext in '' $ac_executable_extensions; do
8361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8363        ac_prog_rejected=yes
8364        continue
8365      fi
8366     ac_cv_prog_CC="cc"
8367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368     break 2
8369   fi
8370 done
8371   done
8372 IFS=$as_save_IFS
8373
8374 if test $ac_prog_rejected = yes; then
8375   # We found a bogon in the path, so make sure we never use it.
8376   set dummy $ac_cv_prog_CC
8377   shift
8378   if test $# != 0; then
8379     # We chose a different compiler from the bogus one.
8380     # However, it has the same basename, so the bogon will be chosen
8381     # first if we set CC to just the basename; use the full file name.
8382     shift
8383     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8384   fi
8385 fi
8386 fi
8387 fi
8388 CC=$ac_cv_prog_CC
8389 if test -n "$CC"; then
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8391 $as_echo "$CC" >&6; }
8392 else
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 if test -z "$CC"; then
8400   if test -n "$ac_tool_prefix"; then
8401   for ac_prog in cl.exe
8402   do
8403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if test "${ac_cv_prog_CC+set}" = set; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   if test -n "$CC"; then
8411   ac_cv_prog_CC="$CC" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416   IFS=$as_save_IFS
8417   test -z "$as_dir" && as_dir=.
8418     for ac_exec_ext in '' $ac_executable_extensions; do
8419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422     break 2
8423   fi
8424 done
8425   done
8426 IFS=$as_save_IFS
8427
8428 fi
8429 fi
8430 CC=$ac_cv_prog_CC
8431 if test -n "$CC"; then
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8433 $as_echo "$CC" >&6; }
8434 else
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8437 fi
8438
8439
8440     test -n "$CC" && break
8441   done
8442 fi
8443 if test -z "$CC"; then
8444   ac_ct_CC=$CC
8445   for ac_prog in cl.exe
8446 do
8447   # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy $ac_prog; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8452   $as_echo_n "(cached) " >&6
8453 else
8454   if test -n "$ac_ct_CC"; then
8455   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462     for ac_exec_ext in '' $ac_executable_extensions; do
8463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464     ac_cv_prog_ac_ct_CC="$ac_prog"
8465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469   done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8475 if test -n "$ac_ct_CC"; then
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8477 $as_echo "$ac_ct_CC" >&6; }
8478 else
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483
8484   test -n "$ac_ct_CC" && break
8485 done
8486
8487   if test "x$ac_ct_CC" = x; then
8488     CC=""
8489   else
8490     case $cross_compiling:$ac_tool_warned in
8491 yes:)
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8494 ac_tool_warned=yes ;;
8495 esac
8496     CC=$ac_ct_CC
8497   fi
8498 fi
8499
8500 fi
8501
8502
8503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8505 as_fn_error "no acceptable C compiler found in \$PATH
8506 See \`config.log' for more details." "$LINENO" 5; }
8507
8508 # Provide some information about the compiler.
8509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8510 set X $ac_compile
8511 ac_compiler=$2
8512 for ac_option in --version -v -V -qversion; do
8513   { { ac_try="$ac_compiler $ac_option >&5"
8514 case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8519 $as_echo "$ac_try_echo"; } >&5
8520   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8521   ac_status=$?
8522   if test -s conftest.err; then
8523     sed '10a\
8524 ... rest of stderr output deleted ...
8525          10q' conftest.err >conftest.er1
8526     cat conftest.er1 >&5
8527   fi
8528   rm -f conftest.er1 conftest.err
8529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8530   test $ac_status = 0; }
8531 done
8532
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h.  */
8535
8536 int
8537 main ()
8538 {
8539
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 ac_clean_files_save=$ac_clean_files
8545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8546 # Try to create an executable without -o first, disregard a.out.
8547 # It will help us diagnose broken compilers, and finding out an intuition
8548 # of exeext.
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8550 $as_echo_n "checking whether the C compiler works... " >&6; }
8551 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8552
8553 # The possible output files:
8554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8555
8556 ac_rmfiles=
8557 for ac_file in $ac_files
8558 do
8559   case $ac_file in
8560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8561     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8562   esac
8563 done
8564 rm -f $ac_rmfiles
8565
8566 if { { ac_try="$ac_link_default"
8567 case "(($ac_try" in
8568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569   *) ac_try_echo=$ac_try;;
8570 esac
8571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8572 $as_echo "$ac_try_echo"; } >&5
8573   (eval "$ac_link_default") 2>&5
8574   ac_status=$?
8575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8576   test $ac_status = 0; }; then :
8577   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8579 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
8580 # so that the user can short-circuit this test for compilers unknown to
8581 # Autoconf.
8582 for ac_file in $ac_files ''
8583 do
8584   test -f "$ac_file" || continue
8585   case $ac_file in
8586     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8587         ;;
8588     [ab].out )
8589         # We found the default executable, but exeext='' is most
8590         # certainly right.
8591         break;;
8592     *.* )
8593         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8594         then :; else
8595            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8596         fi
8597         # We set ac_cv_exeext here because the later test for it is not
8598         # safe: cross compilers may not add the suffix if given an `-o'
8599         # argument, so we may need to know it at that point already.
8600         # Even if this section looks crufty: it has the advantage of
8601         # actually working.
8602         break;;
8603     * )
8604         break;;
8605   esac
8606 done
8607 test "$ac_cv_exeext" = no && ac_cv_exeext=
8608
8609 else
8610   ac_file=''
8611 fi
8612 if test -z "$ac_file"; then :
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8620 { as_fn_set_status 77
8621 as_fn_error "C compiler cannot create executables
8622 See \`config.log' for more details." "$LINENO" 5; }; }
8623 else
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8625 $as_echo "yes" >&6; }
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8628 $as_echo_n "checking for C compiler default output file name... " >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8630 $as_echo "$ac_file" >&6; }
8631 ac_exeext=$ac_cv_exeext
8632
8633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8634 ac_clean_files=$ac_clean_files_save
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8636 $as_echo_n "checking for suffix of executables... " >&6; }
8637 if { { ac_try="$ac_link"
8638 case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8643 $as_echo "$ac_try_echo"; } >&5
8644   (eval "$ac_link") 2>&5
8645   ac_status=$?
8646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647   test $ac_status = 0; }; then :
8648   # If both `conftest.exe' and `conftest' are `present' (well, observable)
8649 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
8650 # work properly (i.e., refer to `conftest.exe'), while it won't with
8651 # `rm'.
8652 for ac_file in conftest.exe conftest conftest.*; do
8653   test -f "$ac_file" || continue
8654   case $ac_file in
8655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8656     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8657           break;;
8658     * ) break;;
8659   esac
8660 done
8661 else
8662   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8664 as_fn_error "cannot compute suffix of executables: cannot compile and link
8665 See \`config.log' for more details." "$LINENO" 5; }
8666 fi
8667 rm -f conftest conftest$ac_cv_exeext
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8669 $as_echo "$ac_cv_exeext" >&6; }
8670
8671 rm -f conftest.$ac_ext
8672 EXEEXT=$ac_cv_exeext
8673 ac_exeext=$EXEEXT
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h.  */
8676 #include <stdio.h>
8677 int
8678 main ()
8679 {
8680 FILE *f = fopen ("conftest.out", "w");
8681  return ferror (f) || fclose (f) != 0;
8682
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 ac_clean_files="$ac_clean_files conftest.out"
8688 # Check that the compiler produces executables we can run.  If not, either
8689 # the compiler is broken, or we cross compile.
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8691 $as_echo_n "checking whether we are cross compiling... " >&6; }
8692 if test "$cross_compiling" != yes; then
8693   { { ac_try="$ac_link"
8694 case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8699 $as_echo "$ac_try_echo"; } >&5
8700   (eval "$ac_link") 2>&5
8701   ac_status=$?
8702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703   test $ac_status = 0; }
8704   if { ac_try='./conftest$ac_cv_exeext'
8705   { { case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8710 $as_echo "$ac_try_echo"; } >&5
8711   (eval "$ac_try") 2>&5
8712   ac_status=$?
8713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8714   test $ac_status = 0; }; }; then
8715     cross_compiling=no
8716   else
8717     if test "$cross_compiling" = maybe; then
8718         cross_compiling=yes
8719     else
8720         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8722 as_fn_error "cannot run C compiled programs.
8723 If you meant to cross compile, use \`--host'.
8724 See \`config.log' for more details." "$LINENO" 5; }
8725     fi
8726   fi
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8729 $as_echo "$cross_compiling" >&6; }
8730
8731 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8732 ac_clean_files=$ac_clean_files_save
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8734 $as_echo_n "checking for suffix of object files... " >&6; }
8735 if test "${ac_cv_objext+set}" = set; then :
8736   $as_echo_n "(cached) " >&6
8737 else
8738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h.  */
8740
8741 int
8742 main ()
8743 {
8744
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.o conftest.obj
8750 if { { ac_try="$ac_compile"
8751 case "(($ac_try" in
8752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753   *) ac_try_echo=$ac_try;;
8754 esac
8755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8756 $as_echo "$ac_try_echo"; } >&5
8757   (eval "$ac_compile") 2>&5
8758   ac_status=$?
8759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8760   test $ac_status = 0; }; then :
8761   for ac_file in conftest.o conftest.obj conftest.*; do
8762   test -f "$ac_file" || continue;
8763   case $ac_file in
8764     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8765     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8766        break;;
8767   esac
8768 done
8769 else
8770   $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8775 as_fn_error "cannot compute suffix of object files: cannot compile
8776 See \`config.log' for more details." "$LINENO" 5; }
8777 fi
8778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8781 $as_echo "$ac_cv_objext" >&6; }
8782 OBJEXT=$ac_cv_objext
8783 ac_objext=$OBJEXT
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8785 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8786 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h.  */
8791
8792 int
8793 main ()
8794 {
8795 #ifndef __GNUC__
8796        choke me
8797 #endif
8798
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_compile "$LINENO"; then :
8804   ac_compiler_gnu=yes
8805 else
8806   ac_compiler_gnu=no
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8813 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8814 if test $ac_compiler_gnu = yes; then
8815   GCC=yes
8816 else
8817   GCC=
8818 fi
8819 ac_test_CFLAGS=${CFLAGS+set}
8820 ac_save_CFLAGS=$CFLAGS
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8822 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8823 if test "${ac_cv_prog_cc_g+set}" = set; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   ac_save_c_werror_flag=$ac_c_werror_flag
8827    ac_c_werror_flag=yes
8828    ac_cv_prog_cc_g=no
8829    CFLAGS="-g"
8830    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832
8833 int
8834 main ()
8835 {
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"; then :
8842   ac_cv_prog_cc_g=yes
8843 else
8844   CFLAGS=""
8845       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847
8848 int
8849 main ()
8850 {
8851
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857
8858 else
8859   ac_c_werror_flag=$ac_save_c_werror_flag
8860          CFLAGS="-g"
8861          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h.  */
8863
8864 int
8865 main ()
8866 {
8867
8868   ;
8869   return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"; then :
8873   ac_cv_prog_cc_g=yes
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880    ac_c_werror_flag=$ac_save_c_werror_flag
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8883 $as_echo "$ac_cv_prog_cc_g" >&6; }
8884 if test "$ac_test_CFLAGS" = set; then
8885   CFLAGS=$ac_save_CFLAGS
8886 elif test $ac_cv_prog_cc_g = yes; then
8887   if test "$GCC" = yes; then
8888     CFLAGS="-g -O2"
8889   else
8890     CFLAGS="-g"
8891   fi
8892 else
8893   if test "$GCC" = yes; then
8894     CFLAGS="-O2"
8895   else
8896     CFLAGS=
8897   fi
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8901 if test "${ac_cv_prog_cc_c89+set}" = set; then :
8902   $as_echo_n "(cached) " >&6
8903 else
8904   ac_cv_prog_cc_c89=no
8905 ac_save_CC=$CC
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h.  */
8908 #include <stdarg.h>
8909 #include <stdio.h>
8910 #include <sys/types.h>
8911 #include <sys/stat.h>
8912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8913 struct buf { int x; };
8914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8915 static char *e (p, i)
8916      char **p;
8917      int i;
8918 {
8919   return p[i];
8920 }
8921 static char *f (char * (*g) (char **, int), char **p, ...)
8922 {
8923   char *s;
8924   va_list v;
8925   va_start (v,p);
8926   s = g (p, va_arg (v,int));
8927   va_end (v);
8928   return s;
8929 }
8930
8931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8932    function prototypes and stuff, but not '\xHH' hex character constants.
8933    These don't provoke an error unfortunately, instead are silently treated
8934    as 'x'.  The following induces an error, until -std is added to get
8935    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8936    array size at least.  It's necessary to write '\x00'==0 to get something
8937    that's true only with -std.  */
8938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8939
8940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8941    inside strings and character constants.  */
8942 #define FOO(x) 'x'
8943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8944
8945 int test (int i, double x);
8946 struct s1 {int (*f) (int a);};
8947 struct s2 {int (*f) (double a);};
8948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8949 int argc;
8950 char **argv;
8951 int
8952 main ()
8953 {
8954 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8960         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8961 do
8962   CC="$ac_save_CC $ac_arg"
8963   if ac_fn_c_try_compile "$LINENO"; then :
8964   ac_cv_prog_cc_c89=$ac_arg
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext
8967   test "x$ac_cv_prog_cc_c89" != "xno" && break
8968 done
8969 rm -f conftest.$ac_ext
8970 CC=$ac_save_CC
8971
8972 fi
8973 # AC_CACHE_VAL
8974 case "x$ac_cv_prog_cc_c89" in
8975   x)
8976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8977 $as_echo "none needed" >&6; } ;;
8978   xno)
8979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8980 $as_echo "unsupported" >&6; } ;;
8981   *)
8982     CC="$CC $ac_cv_prog_cc_c89"
8983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8985 esac
8986 if test "x$ac_cv_prog_cc_c89" != xno; then :
8987
8988 fi
8989
8990 ac_ext=c
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8995
8996    case $ac_cv_prog_cc_stdc in #(
8997   no) :
8998     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
8999   *) :
9000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9001 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9002 if test "${ac_cv_prog_cc_c99+set}" = set; then :
9003   $as_echo_n "(cached) " >&6
9004 else
9005   ac_cv_prog_cc_c99=no
9006 ac_save_CC=$CC
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009 #include <stdarg.h>
9010 #include <stdbool.h>
9011 #include <stdlib.h>
9012 #include <wchar.h>
9013 #include <stdio.h>
9014
9015 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
9016 #define debug(...) fprintf (stderr, __VA_ARGS__)
9017 #define showlist(...) puts (#__VA_ARGS__)
9018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9019 static void
9020 test_varargs_macros (void)
9021 {
9022   int x = 1234;
9023   int y = 5678;
9024   debug ("Flag");
9025   debug ("X = %d\n", x);
9026   showlist (The first, second, and third items.);
9027   report (x>y, "x is %d but y is %d", x, y);
9028 }
9029
9030 // Check long long types.
9031 #define BIG64 18446744073709551615ull
9032 #define BIG32 4294967295ul
9033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9034 #if !BIG_OK
9035   your preprocessor is broken;
9036 #endif
9037 #if BIG_OK
9038 #else
9039   your preprocessor is broken;
9040 #endif
9041 static long long int bignum = -9223372036854775807LL;
9042 static unsigned long long int ubignum = BIG64;
9043
9044 struct incomplete_array
9045 {
9046   int datasize;
9047   double data[];
9048 };
9049
9050 struct named_init {
9051   int number;
9052   const wchar_t *name;
9053   double average;
9054 };
9055
9056 typedef const char *ccp;
9057
9058 static inline int
9059 test_restrict (ccp restrict text)
9060 {
9061   // See if C++-style comments work.
9062   // Iterate through items via the restricted pointer.
9063   // Also check for declarations in for loops.
9064   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9065     continue;
9066   return 0;
9067 }
9068
9069 // Check varargs and va_copy.
9070 static void
9071 test_varargs (const char *format, ...)
9072 {
9073   va_list args;
9074   va_start (args, format);
9075   va_list args_copy;
9076   va_copy (args_copy, args);
9077
9078   const char *str;
9079   int number;
9080   float fnumber;
9081
9082   while (*format)
9083     {
9084       switch (*format++)
9085         {
9086         case 's': // string
9087           str = va_arg (args_copy, const char *);
9088           break;
9089         case 'd': // int
9090           number = va_arg (args_copy, int);
9091           break;
9092         case 'f': // float
9093           fnumber = va_arg (args_copy, double);
9094           break;
9095         default:
9096           break;
9097         }
9098     }
9099   va_end (args_copy);
9100   va_end (args);
9101 }
9102
9103 int
9104 main ()
9105 {
9106
9107   // Check bool.
9108   _Bool success = false;
9109
9110   // Check restrict.
9111   if (test_restrict ("String literal") == 0)
9112     success = true;
9113   char *restrict newvar = "Another string";
9114
9115   // Check varargs.
9116   test_varargs ("s, d' f .", "string", 65, 34.234);
9117   test_varargs_macros ();
9118
9119   // Check flexible array members.
9120   struct incomplete_array *ia =
9121     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9122   ia->datasize = 10;
9123   for (int i = 0; i < ia->datasize; ++i)
9124     ia->data[i] = i * 1.234;
9125
9126   // Check named initializers.
9127   struct named_init ni = {
9128     .number = 34,
9129     .name = L"Test wide string",
9130     .average = 543.34343,
9131   };
9132
9133   ni.number = 58;
9134
9135   int dynamic_array[ni.number];
9136   dynamic_array[ni.number - 1] = 543;
9137
9138   // work around unused variable warnings
9139   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9140           || dynamic_array[ni.number - 1] != 543);
9141
9142   ;
9143   return 0;
9144 }
9145 _ACEOF
9146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
9147 do
9148   CC="$ac_save_CC $ac_arg"
9149   if ac_fn_c_try_compile "$LINENO"; then :
9150   ac_cv_prog_cc_c99=$ac_arg
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext
9153   test "x$ac_cv_prog_cc_c99" != "xno" && break
9154 done
9155 rm -f conftest.$ac_ext
9156 CC=$ac_save_CC
9157
9158 fi
9159 # AC_CACHE_VAL
9160 case "x$ac_cv_prog_cc_c99" in
9161   x)
9162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9163 $as_echo "none needed" >&6; } ;;
9164   xno)
9165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9166 $as_echo "unsupported" >&6; } ;;
9167   *)
9168     CC="$CC $ac_cv_prog_cc_c99"
9169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9170 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9171 esac
9172 if test "x$ac_cv_prog_cc_c99" != xno; then :
9173   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9174 else
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
9178   $as_echo_n "(cached) " >&6
9179 else
9180   ac_cv_prog_cc_c89=no
9181 ac_save_CC=$CC
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h.  */
9184 #include <stdarg.h>
9185 #include <stdio.h>
9186 #include <sys/types.h>
9187 #include <sys/stat.h>
9188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9189 struct buf { int x; };
9190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9191 static char *e (p, i)
9192      char **p;
9193      int i;
9194 {
9195   return p[i];
9196 }
9197 static char *f (char * (*g) (char **, int), char **p, ...)
9198 {
9199   char *s;
9200   va_list v;
9201   va_start (v,p);
9202   s = g (p, va_arg (v,int));
9203   va_end (v);
9204   return s;
9205 }
9206
9207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
9208    function prototypes and stuff, but not '\xHH' hex character constants.
9209    These don't provoke an error unfortunately, instead are silently treated
9210    as 'x'.  The following induces an error, until -std is added to get
9211    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
9212    array size at least.  It's necessary to write '\x00'==0 to get something
9213    that's true only with -std.  */
9214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9215
9216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9217    inside strings and character constants.  */
9218 #define FOO(x) 'x'
9219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9220
9221 int test (int i, double x);
9222 struct s1 {int (*f) (int a);};
9223 struct s2 {int (*f) (double a);};
9224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9225 int argc;
9226 char **argv;
9227 int
9228 main ()
9229 {
9230 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9231   ;
9232   return 0;
9233 }
9234 _ACEOF
9235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9236         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9237 do
9238   CC="$ac_save_CC $ac_arg"
9239   if ac_fn_c_try_compile "$LINENO"; then :
9240   ac_cv_prog_cc_c89=$ac_arg
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext
9243   test "x$ac_cv_prog_cc_c89" != "xno" && break
9244 done
9245 rm -f conftest.$ac_ext
9246 CC=$ac_save_CC
9247
9248 fi
9249 # AC_CACHE_VAL
9250 case "x$ac_cv_prog_cc_c89" in
9251   x)
9252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9253 $as_echo "none needed" >&6; } ;;
9254   xno)
9255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9256 $as_echo "unsupported" >&6; } ;;
9257   *)
9258     CC="$CC $ac_cv_prog_cc_c89"
9259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9261 esac
9262 if test "x$ac_cv_prog_cc_c89" != xno; then :
9263   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9264 else
9265   ac_cv_prog_cc_stdc=no
9266 fi
9267
9268 fi
9269  ;;
9270 esac
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9272 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9273   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
9274   $as_echo_n "(cached) " >&6
9275 fi
9276
9277   case $ac_cv_prog_cc_stdc in #(
9278   no) :
9279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9280 $as_echo "unsupported" >&6; } ;; #(
9281   '') :
9282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9283 $as_echo "none needed" >&6; } ;; #(
9284   *) :
9285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9286 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9287 esac
9288
9289 ac_ext=c
9290 ac_cpp='$CPP $CPPFLAGS'
9291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9295 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9296 # On Suns, sometimes $CPP names a directory.
9297 if test -n "$CPP" && test -d "$CPP"; then
9298   CPP=
9299 fi
9300 if test -z "$CPP"; then
9301   if test "${ac_cv_prog_CPP+set}" = set; then :
9302   $as_echo_n "(cached) " >&6
9303 else
9304       # Double quotes because CPP needs to be expanded
9305     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9306     do
9307       ac_preproc_ok=false
9308 for ac_c_preproc_warn_flag in '' yes
9309 do
9310   # Use a header file that comes with gcc, so configuring glibc
9311   # with a fresh cross-compiler works.
9312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9313   # <limits.h> exists even on freestanding compilers.
9314   # On the NeXT, cc -E runs the code through the compiler's parser,
9315   # not just through cpp. "Syntax error" is here to catch this case.
9316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h.  */
9318 #ifdef __STDC__
9319 # include <limits.h>
9320 #else
9321 # include <assert.h>
9322 #endif
9323                      Syntax error
9324 _ACEOF
9325 if ac_fn_c_try_cpp "$LINENO"; then :
9326
9327 else
9328   # Broken: fails on valid input.
9329 continue
9330 fi
9331 rm -f conftest.err conftest.$ac_ext
9332
9333   # OK, works on sane cases.  Now check whether nonexistent headers
9334   # can be detected and how.
9335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h.  */
9337 #include <ac_nonexistent.h>
9338 _ACEOF
9339 if ac_fn_c_try_cpp "$LINENO"; then :
9340   # Broken: success on invalid input.
9341 continue
9342 else
9343   # Passes both tests.
9344 ac_preproc_ok=:
9345 break
9346 fi
9347 rm -f conftest.err conftest.$ac_ext
9348
9349 done
9350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9351 rm -f conftest.err conftest.$ac_ext
9352 if $ac_preproc_ok; then :
9353   break
9354 fi
9355
9356     done
9357     ac_cv_prog_CPP=$CPP
9358
9359 fi
9360   CPP=$ac_cv_prog_CPP
9361 else
9362   ac_cv_prog_CPP=$CPP
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9365 $as_echo "$CPP" >&6; }
9366 ac_preproc_ok=false
9367 for ac_c_preproc_warn_flag in '' yes
9368 do
9369   # Use a header file that comes with gcc, so configuring glibc
9370   # with a fresh cross-compiler works.
9371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9372   # <limits.h> exists even on freestanding compilers.
9373   # On the NeXT, cc -E runs the code through the compiler's parser,
9374   # not just through cpp. "Syntax error" is here to catch this case.
9375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h.  */
9377 #ifdef __STDC__
9378 # include <limits.h>
9379 #else
9380 # include <assert.h>
9381 #endif
9382                      Syntax error
9383 _ACEOF
9384 if ac_fn_c_try_cpp "$LINENO"; then :
9385
9386 else
9387   # Broken: fails on valid input.
9388 continue
9389 fi
9390 rm -f conftest.err conftest.$ac_ext
9391
9392   # OK, works on sane cases.  Now check whether nonexistent headers
9393   # can be detected and how.
9394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h.  */
9396 #include <ac_nonexistent.h>
9397 _ACEOF
9398 if ac_fn_c_try_cpp "$LINENO"; then :
9399   # Broken: success on invalid input.
9400 continue
9401 else
9402   # Passes both tests.
9403 ac_preproc_ok=:
9404 break
9405 fi
9406 rm -f conftest.err conftest.$ac_ext
9407
9408 done
9409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9410 rm -f conftest.err conftest.$ac_ext
9411 if $ac_preproc_ok; then :
9412
9413 else
9414   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9416 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9417 See \`config.log' for more details." "$LINENO" 5; }
9418 fi
9419
9420 ac_ext=c
9421 ac_cpp='$CPP $CPPFLAGS'
9422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9425
9426
9427
9428 case $ac_cv_prog_cc_stdc in
9429   no)
9430     ;;
9431   *)
9432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h.  */
9434 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
9435 #define GMP_NAIL_BITS $GMP_NAIL_BITS
9436 #define GMP_LIMB_BITS 123
9437 $DEFN_LONG_LONG_LIMB
9438 #include "$srcdir/gmp-h.in"
9439
9440 #if ! __GMP_HAVE_PROTOTYPES
9441 die die die
9442 #endif
9443
9444 int
9445 main ()
9446 {
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 if ac_fn_c_try_compile "$LINENO"; then :
9453
9454 else
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
9456 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459     ;;
9460 esac
9461
9462
9463
9464 # The C compiler on the build system, and associated tests.
9465
9466 if test -n "$CC_FOR_BUILD"; then
9467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9468 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9469 # remove anything that might look like compiler output to our "||" expression
9470 rm -f conftest* a.out b.out a.exe a_out.exe
9471 cat >conftest.c <<EOF
9472 int
9473 main ()
9474 {
9475   exit(0);
9476 }
9477 EOF
9478 gmp_compile="$CC_FOR_BUILD conftest.c"
9479 cc_for_build_works=no
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9481   (eval $gmp_compile) 2>&5
9482   ac_status=$?
9483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484   test $ac_status = 0; }; then
9485   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9486     cc_for_build_works=yes
9487   fi
9488 fi
9489 rm -f conftest* a.out b.out a.exe a_out.exe
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9491 $as_echo "$cc_for_build_works" >&6; }
9492 if test "$cc_for_build_works" = yes; then
9493   :
9494 else
9495   as_fn_error "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9496 fi
9497
9498 elif test -n "$HOST_CC"; then
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9500 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9501 # remove anything that might look like compiler output to our "||" expression
9502 rm -f conftest* a.out b.out a.exe a_out.exe
9503 cat >conftest.c <<EOF
9504 int
9505 main ()
9506 {
9507   exit(0);
9508 }
9509 EOF
9510 gmp_compile="$HOST_CC conftest.c"
9511 cc_for_build_works=no
9512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9513   (eval $gmp_compile) 2>&5
9514   ac_status=$?
9515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516   test $ac_status = 0; }; then
9517   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9518     cc_for_build_works=yes
9519   fi
9520 fi
9521 rm -f conftest* a.out b.out a.exe a_out.exe
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9523 $as_echo "$cc_for_build_works" >&6; }
9524 if test "$cc_for_build_works" = yes; then
9525   CC_FOR_BUILD=$HOST_CC
9526 else
9527   as_fn_error "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9528 fi
9529
9530 else
9531   for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9533 $as_echo_n "checking build system compiler $i... " >&6; }
9534 # remove anything that might look like compiler output to our "||" expression
9535 rm -f conftest* a.out b.out a.exe a_out.exe
9536 cat >conftest.c <<EOF
9537 int
9538 main ()
9539 {
9540   exit(0);
9541 }
9542 EOF
9543 gmp_compile="$i conftest.c"
9544 cc_for_build_works=no
9545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9546   (eval $gmp_compile) 2>&5
9547   ac_status=$?
9548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9549   test $ac_status = 0; }; then
9550   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9551     cc_for_build_works=yes
9552   fi
9553 fi
9554 rm -f conftest* a.out b.out a.exe a_out.exe
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9556 $as_echo "$cc_for_build_works" >&6; }
9557 if test "$cc_for_build_works" = yes; then
9558   CC_FOR_BUILD=$i
9559        break
9560 else
9561   :
9562 fi
9563
9564   done
9565   if test -z "$CC_FOR_BUILD"; then
9566     as_fn_error "Cannot find a build system compiler" "$LINENO" 5
9567   fi
9568 fi
9569
9570
9571
9572
9573
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9575 $as_echo_n "checking for build system preprocessor... " >&6; }
9576 if test -z "$CPP_FOR_BUILD"; then
9577   if test "${gmp_cv_prog_cpp_for_build+set}" = set; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   cat >conftest.c <<EOF
9581 #define FOO BAR
9582 EOF
9583   for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9584     gmp_compile="$i conftest.c"
9585     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9586   (eval $gmp_compile) 2>&5
9587   ac_status=$?
9588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589   test $ac_status = 0; } >&5 2>&1; then
9590       gmp_cv_prog_cpp_for_build=$i
9591       break
9592     fi
9593   done
9594   rm -f conftest* a.out b.out a.exe a_out.exe
9595   if test -z "$gmp_cv_prog_cpp_for_build"; then
9596     as_fn_error "Cannot find build system C preprocessor." "$LINENO" 5
9597   fi
9598
9599 fi
9600
9601   CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9604 $as_echo "$CPP_FOR_BUILD" >&6; }
9605
9606
9607
9608
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9611 $as_echo_n "checking for build system executable suffix... " >&6; }
9612 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   cat >conftest.c <<EOF
9616 int
9617 main ()
9618 {
9619   exit (0);
9620 }
9621 EOF
9622 for i in .exe ,ff8 ""; do
9623   gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9625   (eval $gmp_compile) 2>&5
9626   ac_status=$?
9627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9628   test $ac_status = 0; }; then
9629     if (./conftest) 2>&5; then
9630       gmp_cv_prog_exeext_for_build=$i
9631       break
9632     fi
9633   fi
9634 done
9635 rm -f conftest*
9636 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9637   as_fn_error "Cannot determine executable suffix" "$LINENO" 5
9638 fi
9639
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9642 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9643 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9644
9645
9646
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9648 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9649 if test "${gmp_cv_c_for_build_ansi+set}" = set; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   cat >conftest.c <<EOF
9653 int
9654 main (int argc, char **argv)
9655 {
9656   exit(0);
9657 }
9658 EOF
9659 gmp_compile="$CC_FOR_BUILD conftest.c"
9660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9661   (eval $gmp_compile) 2>&5
9662   ac_status=$?
9663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9664   test $ac_status = 0; }; then
9665   gmp_cv_c_for_build_ansi=yes
9666 else
9667   gmp_cv_c_for_build_ansi=no
9668 fi
9669 rm -f conftest* a.out b.out a.exe a_out.exe
9670
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9673 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9674 if test "$gmp_cv_c_for_build_ansi" = yes; then
9675   U_FOR_BUILD=
9676 else
9677   U_FOR_BUILD=_
9678
9679 fi
9680
9681
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9683 $as_echo_n "checking for build system compiler math library... " >&6; }
9684 if test "${gmp_cv_check_libm_for_build+set}" = set; then :
9685   $as_echo_n "(cached) " >&6
9686 else
9687   cat >conftest.c <<EOF
9688 int
9689 main ()
9690 {
9691   exit(0);
9692 }
9693 double d;
9694 double
9695 foo ()
9696 {
9697   return log (d);
9698 }
9699 EOF
9700 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9702   (eval $gmp_compile) 2>&5
9703   ac_status=$?
9704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9705   test $ac_status = 0; }; then
9706   gmp_cv_check_libm_for_build=-lm
9707 else
9708   gmp_cv_check_libm_for_build=no
9709 fi
9710 rm -f conftest* a.out b.out a.exe a_out.exe
9711
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9714 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9715 case $gmp_cv_check_libm_for_build in
9716   yes) LIBM_FOR_BUILD=-lm
9717  ;;
9718   no)  LIBM_FOR_BUILD= ;;
9719   *)   LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9720 esac
9721
9722
9723
9724 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9725 # Using the compiler is a lot easier than figuring out how to invoke the
9726 # assembler directly.
9727 #
9728 test -n "$CCAS" || CCAS="$CC -c"
9729
9730
9731
9732 # The C++ compiler, if desired.
9733 want_cxx=no
9734 if test $enable_cxx != no; then
9735   test_CXXFLAGS=${CXXFLAGS+set}
9736   ac_ext=cpp
9737 ac_cpp='$CXXCPP $CPPFLAGS'
9738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9741 if test -z "$CXX"; then
9742   if test -n "$CCC"; then
9743     CXX=$CCC
9744   else
9745     if test -n "$ac_tool_prefix"; then
9746   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9747   do
9748     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_prog_CXX+set}" = set; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   if test -n "$CXX"; then
9756   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763     for ac_exec_ext in '' $ac_executable_extensions; do
9764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770   done
9771 IFS=$as_save_IFS
9772
9773 fi
9774 fi
9775 CXX=$ac_cv_prog_CXX
9776 if test -n "$CXX"; then
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9778 $as_echo "$CXX" >&6; }
9779 else
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9782 fi
9783
9784
9785     test -n "$CXX" && break
9786   done
9787 fi
9788 if test -z "$CXX"; then
9789   ac_ct_CXX=$CXX
9790   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9791 do
9792   # Extract the first word of "$ac_prog", so it can be a program name with args.
9793 set dummy $ac_prog; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9797   $as_echo_n "(cached) " >&6
9798 else
9799   if test -n "$ac_ct_CXX"; then
9800   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9801 else
9802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803 for as_dir in $PATH
9804 do
9805   IFS=$as_save_IFS
9806   test -z "$as_dir" && as_dir=.
9807     for ac_exec_ext in '' $ac_executable_extensions; do
9808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9809     ac_cv_prog_ac_ct_CXX="$ac_prog"
9810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9811     break 2
9812   fi
9813 done
9814   done
9815 IFS=$as_save_IFS
9816
9817 fi
9818 fi
9819 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9820 if test -n "$ac_ct_CXX"; then
9821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9822 $as_echo "$ac_ct_CXX" >&6; }
9823 else
9824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9826 fi
9827
9828
9829   test -n "$ac_ct_CXX" && break
9830 done
9831
9832   if test "x$ac_ct_CXX" = x; then
9833     CXX="g++"
9834   else
9835     case $cross_compiling:$ac_tool_warned in
9836 yes:)
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9839 ac_tool_warned=yes ;;
9840 esac
9841     CXX=$ac_ct_CXX
9842   fi
9843 fi
9844
9845   fi
9846 fi
9847 # Provide some information about the compiler.
9848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9849 set X $ac_compile
9850 ac_compiler=$2
9851 for ac_option in --version -v -V -qversion; do
9852   { { ac_try="$ac_compiler $ac_option >&5"
9853 case "(($ac_try" in
9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855   *) ac_try_echo=$ac_try;;
9856 esac
9857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9858 $as_echo "$ac_try_echo"; } >&5
9859   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9860   ac_status=$?
9861   if test -s conftest.err; then
9862     sed '10a\
9863 ... rest of stderr output deleted ...
9864          10q' conftest.err >conftest.er1
9865     cat conftest.er1 >&5
9866   fi
9867   rm -f conftest.er1 conftest.err
9868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9869   test $ac_status = 0; }
9870 done
9871
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9873 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9874 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h.  */
9879
9880 int
9881 main ()
9882 {
9883 #ifndef __GNUC__
9884        choke me
9885 #endif
9886
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 if ac_fn_cxx_try_compile "$LINENO"; then :
9892   ac_compiler_gnu=yes
9893 else
9894   ac_compiler_gnu=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9898
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9901 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9902 if test $ac_compiler_gnu = yes; then
9903   GXX=yes
9904 else
9905   GXX=
9906 fi
9907 ac_test_CXXFLAGS=${CXXFLAGS+set}
9908 ac_save_CXXFLAGS=$CXXFLAGS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9910 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9911 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9915    ac_cxx_werror_flag=yes
9916    ac_cv_prog_cxx_g=no
9917    CXXFLAGS="-g"
9918    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h.  */
9920
9921 int
9922 main ()
9923 {
9924
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_cxx_try_compile "$LINENO"; then :
9930   ac_cv_prog_cxx_g=yes
9931 else
9932   CXXFLAGS=""
9933       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h.  */
9935
9936 int
9937 main ()
9938 {
9939
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 if ac_fn_cxx_try_compile "$LINENO"; then :
9945
9946 else
9947   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9948          CXXFLAGS="-g"
9949          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h.  */
9951
9952 int
9953 main ()
9954 {
9955
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_cxx_try_compile "$LINENO"; then :
9961   ac_cv_prog_cxx_g=yes
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9971 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9972 if test "$ac_test_CXXFLAGS" = set; then
9973   CXXFLAGS=$ac_save_CXXFLAGS
9974 elif test $ac_cv_prog_cxx_g = yes; then
9975   if test "$GXX" = yes; then
9976     CXXFLAGS="-g -O2"
9977   else
9978     CXXFLAGS="-g"
9979   fi
9980 else
9981   if test "$GXX" = yes; then
9982     CXXFLAGS="-O2"
9983   else
9984     CXXFLAGS=
9985   fi
9986 fi
9987 ac_ext=c
9988 ac_cpp='$CPP $CPPFLAGS'
9989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9992
9993
9994   echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
9995   cxxflags_ac_prog_cxx=$CXXFLAGS
9996   cxxflags_list=ac_prog_cxx
9997
9998   # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
9999   # if AC_PROG_CXX thinks that doesn't work.  $CFLAGS stands a good chance
10000   # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10001   #
10002   if test "$test_CXXFLAGS" != set; then
10003     cxxflags_cflags=$CFLAGS
10004     cxxflags_list="cflags $cxxflags_list"
10005     if test "$ac_prog_cxx_g" = no; then
10006       cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10007     fi
10008   fi
10009
10010   # See if the C++ compiler works.  If the user specified CXXFLAGS then all
10011   # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10012   # give a fatal error, just leaves CXX set to a default g++.  If on the
10013   # other hand the user didn't specify CXXFLAGS then we get to try here our
10014   # $cxxflags_list alternatives.
10015   #
10016   # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10017   #
10018   for cxxflags_choice in $cxxflags_list; do
10019     eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10021 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10022 gmp_prog_cxx_works=yes
10023
10024 # start with a plain "main()", then go on to further checks
10025 if test "$gmp_prog_cxx_works" = yes; then
10026   # remove anything that might look like compiler output to our "||" expression
10027   rm -f conftest* a.out b.out a.exe a_out.exe
10028   cat >conftest.cc <<EOF
10029
10030 int main (void) { return 0; }
10031 EOF
10032   echo "Test compile: " >&5
10033   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10034   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10035   (eval $gmp_cxxcompile) 2>&5
10036   ac_status=$?
10037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038   test $ac_status = 0; }; then
10039     if test "$cross_compiling" = no; then
10040       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10041   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10045   test $ac_status = 0; }; }; then :;
10046       else
10047         gmp_prog_cxx_works="no, program does not run"
10048       fi
10049     fi
10050   else
10051     gmp_prog_cxx_works="no"
10052   fi
10053   case $gmp_prog_cxx_works in
10054     no*)
10055       echo "failed program was:" >&5
10056       cat conftest.cc >&5
10057       ;;
10058   esac
10059   rm -f conftest* a.out b.out a.exe a_out.exe
10060 fi
10061
10062
10063 if test "$gmp_prog_cxx_works" = yes; then
10064   # remove anything that might look like compiler output to our "||" expression
10065   rm -f conftest* a.out b.out a.exe a_out.exe
10066   cat >conftest.cc <<EOF
10067 namespace foo { }
10068 using namespace foo;
10069
10070 int main (void) { return 0; }
10071 EOF
10072   echo "Test compile: namespace" >&5
10073   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10075   (eval $gmp_cxxcompile) 2>&5
10076   ac_status=$?
10077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10078   test $ac_status = 0; }; then
10079     if test "$cross_compiling" = no; then
10080       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10081   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10082   (eval $ac_try) 2>&5
10083   ac_status=$?
10084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085   test $ac_status = 0; }; }; then :;
10086       else
10087         gmp_prog_cxx_works="no, namespace, program does not run"
10088       fi
10089     fi
10090   else
10091     gmp_prog_cxx_works="no, namespace"
10092   fi
10093   case $gmp_prog_cxx_works in
10094     no*)
10095       echo "failed program was:" >&5
10096       cat conftest.cc >&5
10097       ;;
10098   esac
10099   rm -f conftest* a.out b.out a.exe a_out.exe
10100 fi
10101
10102
10103 # GMP requires the standard C++ iostream classes
10104 if test "$gmp_prog_cxx_works" = yes; then
10105   # remove anything that might look like compiler output to our "||" expression
10106   rm -f conftest* a.out b.out a.exe a_out.exe
10107   cat >conftest.cc <<EOF
10108 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10109     pre-standard iostream.h. */
10110 #include <iostream>
10111
10112 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10113    mode, since that mode puts cout in the global namespace, not "std".  */
10114 void someoutput (void) { std::cout << 123; }
10115
10116 int main (void) { return 0; }
10117 EOF
10118   echo "Test compile: std iostream" >&5
10119   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10121   (eval $gmp_cxxcompile) 2>&5
10122   ac_status=$?
10123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124   test $ac_status = 0; }; then
10125     if test "$cross_compiling" = no; then
10126       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10127   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10131   test $ac_status = 0; }; }; then :;
10132       else
10133         gmp_prog_cxx_works="no, std iostream, program does not run"
10134       fi
10135     fi
10136   else
10137     gmp_prog_cxx_works="no, std iostream"
10138   fi
10139   case $gmp_prog_cxx_works in
10140     no*)
10141       echo "failed program was:" >&5
10142       cat conftest.cc >&5
10143       ;;
10144   esac
10145   rm -f conftest* a.out b.out a.exe a_out.exe
10146 fi
10147
10148
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10150 $as_echo "$gmp_prog_cxx_works" >&6; }
10151 case $gmp_prog_cxx_works in
10152   yes)
10153     want_cxx=yes
10154       break
10155     ;;
10156   *)
10157
10158     ;;
10159 esac
10160
10161   done
10162
10163   # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10164   if test $want_cxx = no && test $enable_cxx = yes; then
10165     as_fn_error "C++ compiler not available, see config.log for details" "$LINENO" 5
10166   fi
10167 fi
10168
10169  if test $want_cxx = yes; then
10170   WANT_CXX_TRUE=
10171   WANT_CXX_FALSE='#'
10172 else
10173   WANT_CXX_TRUE='#'
10174   WANT_CXX_FALSE=
10175 fi
10176
10177
10178 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10179 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10180 # hence execute it unconditionally, and that will fail if there's no C++
10181 # compiler (and no generic /lib/cpp).
10182 #
10183 if test $want_cxx = yes; then
10184   ac_ext=cpp
10185 ac_cpp='$CXXCPP $CPPFLAGS'
10186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10190 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10191 if test -z "$CXXCPP"; then
10192   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10193   $as_echo_n "(cached) " >&6
10194 else
10195       # Double quotes because CXXCPP needs to be expanded
10196     for CXXCPP in "$CXX -E" "/lib/cpp"
10197     do
10198       ac_preproc_ok=false
10199 for ac_cxx_preproc_warn_flag in '' yes
10200 do
10201   # Use a header file that comes with gcc, so configuring glibc
10202   # with a fresh cross-compiler works.
10203   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204   # <limits.h> exists even on freestanding compilers.
10205   # On the NeXT, cc -E runs the code through the compiler's parser,
10206   # not just through cpp. "Syntax error" is here to catch this case.
10207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h.  */
10209 #ifdef __STDC__
10210 # include <limits.h>
10211 #else
10212 # include <assert.h>
10213 #endif
10214                      Syntax error
10215 _ACEOF
10216 if ac_fn_cxx_try_cpp "$LINENO"; then :
10217
10218 else
10219   # Broken: fails on valid input.
10220 continue
10221 fi
10222 rm -f conftest.err conftest.$ac_ext
10223
10224   # OK, works on sane cases.  Now check whether nonexistent headers
10225   # can be detected and how.
10226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h.  */
10228 #include <ac_nonexistent.h>
10229 _ACEOF
10230 if ac_fn_cxx_try_cpp "$LINENO"; then :
10231   # Broken: success on invalid input.
10232 continue
10233 else
10234   # Passes both tests.
10235 ac_preproc_ok=:
10236 break
10237 fi
10238 rm -f conftest.err conftest.$ac_ext
10239
10240 done
10241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10242 rm -f conftest.err conftest.$ac_ext
10243 if $ac_preproc_ok; then :
10244   break
10245 fi
10246
10247     done
10248     ac_cv_prog_CXXCPP=$CXXCPP
10249
10250 fi
10251   CXXCPP=$ac_cv_prog_CXXCPP
10252 else
10253   ac_cv_prog_CXXCPP=$CXXCPP
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10256 $as_echo "$CXXCPP" >&6; }
10257 ac_preproc_ok=false
10258 for ac_cxx_preproc_warn_flag in '' yes
10259 do
10260   # Use a header file that comes with gcc, so configuring glibc
10261   # with a fresh cross-compiler works.
10262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263   # <limits.h> exists even on freestanding compilers.
10264   # On the NeXT, cc -E runs the code through the compiler's parser,
10265   # not just through cpp. "Syntax error" is here to catch this case.
10266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h.  */
10268 #ifdef __STDC__
10269 # include <limits.h>
10270 #else
10271 # include <assert.h>
10272 #endif
10273                      Syntax error
10274 _ACEOF
10275 if ac_fn_cxx_try_cpp "$LINENO"; then :
10276
10277 else
10278   # Broken: fails on valid input.
10279 continue
10280 fi
10281 rm -f conftest.err conftest.$ac_ext
10282
10283   # OK, works on sane cases.  Now check whether nonexistent headers
10284   # can be detected and how.
10285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h.  */
10287 #include <ac_nonexistent.h>
10288 _ACEOF
10289 if ac_fn_cxx_try_cpp "$LINENO"; then :
10290   # Broken: success on invalid input.
10291 continue
10292 else
10293   # Passes both tests.
10294 ac_preproc_ok=:
10295 break
10296 fi
10297 rm -f conftest.err conftest.$ac_ext
10298
10299 done
10300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10301 rm -f conftest.err conftest.$ac_ext
10302 if $ac_preproc_ok; then :
10303
10304 else
10305   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10307 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
10308 See \`config.log' for more details." "$LINENO" 5; }
10309 fi
10310
10311 ac_ext=c
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10316
10317 fi
10318
10319
10320 # Path setups for Cray, according to IEEE or CFP.  These must come after
10321 # deciding the compiler.
10322 #
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10325 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10326 if test "${ac_cv_path_GREP+set}" = set; then :
10327   $as_echo_n "(cached) " >&6
10328 else
10329   if test -z "$GREP"; then
10330   ac_path_GREP_found=false
10331   # Loop through the user's path and test for each of PROGNAME-LIST
10332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10334 do
10335   IFS=$as_save_IFS
10336   test -z "$as_dir" && as_dir=.
10337     for ac_prog in grep ggrep; do
10338     for ac_exec_ext in '' $ac_executable_extensions; do
10339       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10340       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
10341 # Check for GNU ac_path_GREP and select it if it is found.
10342   # Check for GNU $ac_path_GREP
10343 case `"$ac_path_GREP" --version 2>&1` in
10344 *GNU*)
10345   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10346 *)
10347   ac_count=0
10348   $as_echo_n 0123456789 >"conftest.in"
10349   while :
10350   do
10351     cat "conftest.in" "conftest.in" >"conftest.tmp"
10352     mv "conftest.tmp" "conftest.in"
10353     cp "conftest.in" "conftest.nl"
10354     $as_echo 'GREP' >> "conftest.nl"
10355     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10356     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10357     as_fn_arith $ac_count + 1 && ac_count=$as_val
10358     if test $ac_count -gt ${ac_path_GREP_max-0}; then
10359       # Best one so far, save it but keep looking for a better one
10360       ac_cv_path_GREP="$ac_path_GREP"
10361       ac_path_GREP_max=$ac_count
10362     fi
10363     # 10*(2^10) chars as input seems more than enough
10364     test $ac_count -gt 10 && break
10365   done
10366   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10367 esac
10368
10369       $ac_path_GREP_found && break 3
10370     done
10371   done
10372   done
10373 IFS=$as_save_IFS
10374   if test -z "$ac_cv_path_GREP"; then
10375     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10376   fi
10377 else
10378   ac_cv_path_GREP=$GREP
10379 fi
10380
10381 fi
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10383 $as_echo "$ac_cv_path_GREP" >&6; }
10384  GREP="$ac_cv_path_GREP"
10385
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10388 $as_echo_n "checking for egrep... " >&6; }
10389 if test "${ac_cv_path_EGREP+set}" = set; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10393    then ac_cv_path_EGREP="$GREP -E"
10394    else
10395      if test -z "$EGREP"; then
10396   ac_path_EGREP_found=false
10397   # Loop through the user's path and test for each of PROGNAME-LIST
10398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10400 do
10401   IFS=$as_save_IFS
10402   test -z "$as_dir" && as_dir=.
10403     for ac_prog in egrep; do
10404     for ac_exec_ext in '' $ac_executable_extensions; do
10405       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10406       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10407 # Check for GNU ac_path_EGREP and select it if it is found.
10408   # Check for GNU $ac_path_EGREP
10409 case `"$ac_path_EGREP" --version 2>&1` in
10410 *GNU*)
10411   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10412 *)
10413   ac_count=0
10414   $as_echo_n 0123456789 >"conftest.in"
10415   while :
10416   do
10417     cat "conftest.in" "conftest.in" >"conftest.tmp"
10418     mv "conftest.tmp" "conftest.in"
10419     cp "conftest.in" "conftest.nl"
10420     $as_echo 'EGREP' >> "conftest.nl"
10421     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10422     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10423     as_fn_arith $ac_count + 1 && ac_count=$as_val
10424     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10425       # Best one so far, save it but keep looking for a better one
10426       ac_cv_path_EGREP="$ac_path_EGREP"
10427       ac_path_EGREP_max=$ac_count
10428     fi
10429     # 10*(2^10) chars as input seems more than enough
10430     test $ac_count -gt 10 && break
10431   done
10432   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10433 esac
10434
10435       $ac_path_EGREP_found && break 3
10436     done
10437   done
10438   done
10439 IFS=$as_save_IFS
10440   if test -z "$ac_cv_path_EGREP"; then
10441     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10442   fi
10443 else
10444   ac_cv_path_EGREP=$EGREP
10445 fi
10446
10447    fi
10448 fi
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10450 $as_echo "$ac_cv_path_EGREP" >&6; }
10451  EGREP="$ac_cv_path_EGREP"
10452
10453
10454 case $host_cpu in
10455   c90 | t90)
10456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458 #ifdef _CRAYIEEE
10459 yes
10460 #endif
10461 _ACEOF
10462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10463   $EGREP "yes" >/dev/null 2>&1; then :
10464   add_path="cray/ieee"
10465 else
10466   add_path="cray/cfp"; extra_functions="mulwwc90"
10467 fi
10468 rm -f conftest*
10469
10470     ;;
10471   j90 | sv1)
10472     add_path="cray/cfp"; extra_functions="mulwwj90"
10473     ;;
10474 esac
10475
10476
10477
10478 if test -z "$MPN_PATH"; then
10479   path="$add_path $path"
10480 fi
10481
10482 # For a nail build, also look in "nails" subdirectories.
10483 #
10484 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10485   new_path=
10486   for i in $path; do
10487     case $i in
10488     generic) new_path="$new_path $i" ;;
10489     *)       new_path="$new_path $i/nails $i" ;;
10490     esac
10491   done
10492   path=$new_path
10493 fi
10494
10495
10496 # Put all directories into CPUVEC_list so as to get a full set of
10497 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10498 # empty because mmx and/or sse2 had to be dropped.
10499 #
10500 for i in $fat_path; do
10501   tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10502   CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10503 done
10504
10505
10506 # If there's any sse2 or mmx in the path, check whether the assembler
10507 # supports it, and remove if not.
10508 #
10509 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10510 # enough assembler.
10511 #
10512 case $host in
10513   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
10514     if test "$ABI" = 32; then
10515       case "$path $fat_path" in
10516         *mmx*)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10517 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10518 if test "${gmp_cv_asm_x86_mmx+set}" = set; then :
10519   $as_echo_n "(cached) " >&6
10520 else
10521   cat >conftest.s <<EOF
10522         .text
10523         movq    %mm0, %mm1
10524 EOF
10525 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10527   (eval $gmp_assemble) 2>&5
10528   ac_status=$?
10529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10530   test $ac_status = 0; }; then
10531   cat conftest.out >&5
10532   gmp_cv_asm_x86_mmx=yes
10533 case $host in
10534 *-*-solaris*)
10535   if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10536     if grep "0f 6f c1" conftest.out >/dev/null; then
10537       gmp_cv_asm_x86_mmx=movq-bug
10538     fi
10539   else
10540     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10541 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10542   fi
10543 esac
10544 else
10545   cat conftest.out >&5
10546   echo "configure: failed program was:" >&5
10547   cat conftest.s >&5
10548   gmp_cv_asm_x86_mmx=no
10549 fi
10550 rm -f conftest*
10551
10552 fi
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10554 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10555
10556 case $gmp_cv_asm_x86_mmx in
10557 movq-bug)
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10559 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10561 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10563 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
10565 $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
10566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10567 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10569 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10571 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10572   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10573 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10574   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10575 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10576   ;;
10577 no)
10578   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10579 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10581 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10583 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
10585 $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10587 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10589 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10591 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10592   ;;
10593 esac
10594 if test "$gmp_cv_asm_x86_mmx" = yes; then
10595   :
10596 else
10597   tmp_path=
10598 for i in $path; do
10599   case $i in
10600     */*mmx*) ;;
10601     *) tmp_path="$tmp_path $i" ;;
10602   esac
10603 done
10604 path="$tmp_path"
10605
10606 tmp_path=
10607 for i in $fat_path; do
10608   case $i in
10609     */*mmx*) ;;
10610     *) tmp_path="$tmp_path $i" ;;
10611   esac
10612 done
10613 fat_path="$tmp_path"
10614
10615
10616 fi
10617  ;;
10618       esac
10619       case "$path $fat_path" in
10620         *sse2*)  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10621 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10622 if test "${gmp_cv_asm_x86_sse2+set}" = set; then :
10623   $as_echo_n "(cached) " >&6
10624 else
10625   cat >conftest.s <<EOF
10626         .text
10627         paddq   %mm0, %mm1
10628 EOF
10629 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10631   (eval $gmp_assemble) 2>&5
10632   ac_status=$?
10633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634   test $ac_status = 0; }; then
10635   cat conftest.out >&5
10636   gmp_cv_asm_x86_sse2=yes
10637 else
10638   cat conftest.out >&5
10639   echo "configure: failed program was:" >&5
10640   cat conftest.s >&5
10641   gmp_cv_asm_x86_sse2=no
10642 fi
10643 rm -f conftest*
10644
10645
10646 fi
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10648 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10649 case $gmp_cv_asm_x86_sse2 in
10650 yes)
10651   :
10652   ;;
10653 *)
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10655 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10656   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10657 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10659 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
10661 $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10663 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10665 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10667 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10668   tmp_path=
10669 for i in $path; do
10670   case $i in
10671     */sse2) ;;
10672     *) tmp_path="$tmp_path $i" ;;
10673   esac
10674 done
10675 path="$tmp_path"
10676
10677 tmp_path=
10678 for i in $fat_path; do
10679   case $i in
10680     */sse2) ;;
10681     *) tmp_path="$tmp_path $i" ;;
10682   esac
10683 done
10684 fat_path="$tmp_path"
10685
10686
10687   ;;
10688 esac
10689  ;;
10690       esac
10691     fi
10692     ;;
10693 esac
10694
10695
10696 cat >&5 <<EOF
10697 Decided:
10698 ABI=$ABI
10699 CC=$CC
10700 CFLAGS=$CFLAGS
10701 CPPFLAGS=$CPPFLAGS
10702 GMP_LDFLAGS=$GMP_LDFLAGS
10703 CXX=$CXX
10704 CXXFLAGS=$CXXFLAGS
10705 path=$path
10706 EOF
10707 echo "using ABI=\"$ABI\""
10708 echo "      CC=\"$CC\""
10709 echo "      CFLAGS=\"$CFLAGS\""
10710 echo "      CPPFLAGS=\"$CPPFLAGS\""
10711 if test $want_cxx = yes; then
10712   echo "      CXX=\"$CXX\""
10713   echo "      CXXFLAGS=\"$CXXFLAGS\""
10714 fi
10715 echo "      MPN_PATH=\"$path\""
10716
10717
10718 # Automake ansi2knr support.
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10720 $as_echo_n "checking for function prototypes... " >&6; }
10721 if test "$ac_cv_prog_cc_c89" != no; then
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723 $as_echo "yes" >&6; }
10724
10725 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10726
10727
10728 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10729
10730 else
10731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733 fi
10734
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10736 $as_echo_n "checking for ANSI C header files... " >&6; }
10737 if test "${ac_cv_header_stdc+set}" = set; then :
10738   $as_echo_n "(cached) " >&6
10739 else
10740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h.  */
10742 #include <stdlib.h>
10743 #include <stdarg.h>
10744 #include <string.h>
10745 #include <float.h>
10746
10747 int
10748 main ()
10749 {
10750
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_compile "$LINENO"; then :
10756   ac_cv_header_stdc=yes
10757 else
10758   ac_cv_header_stdc=no
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761
10762 if test $ac_cv_header_stdc = yes; then
10763   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h.  */
10766 #include <string.h>
10767
10768 _ACEOF
10769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10770   $EGREP "memchr" >/dev/null 2>&1; then :
10771
10772 else
10773   ac_cv_header_stdc=no
10774 fi
10775 rm -f conftest*
10776
10777 fi
10778
10779 if test $ac_cv_header_stdc = yes; then
10780   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783 #include <stdlib.h>
10784
10785 _ACEOF
10786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10787   $EGREP "free" >/dev/null 2>&1; then :
10788
10789 else
10790   ac_cv_header_stdc=no
10791 fi
10792 rm -f conftest*
10793
10794 fi
10795
10796 if test $ac_cv_header_stdc = yes; then
10797   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10798   if test "$cross_compiling" = yes; then :
10799   :
10800 else
10801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h.  */
10803 #include <ctype.h>
10804 #include <stdlib.h>
10805 #if ((' ' & 0x0FF) == 0x020)
10806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10808 #else
10809 # define ISLOWER(c) \
10810                    (('a' <= (c) && (c) <= 'i') \
10811                      || ('j' <= (c) && (c) <= 'r') \
10812                      || ('s' <= (c) && (c) <= 'z'))
10813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10814 #endif
10815
10816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10817 int
10818 main ()
10819 {
10820   int i;
10821   for (i = 0; i < 256; i++)
10822     if (XOR (islower (i), ISLOWER (i))
10823         || toupper (i) != TOUPPER (i))
10824       return 2;
10825   return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_run "$LINENO"; then :
10829
10830 else
10831   ac_cv_header_stdc=no
10832 fi
10833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10834   conftest.$ac_objext conftest.beam conftest.$ac_ext
10835 fi
10836
10837 fi
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10840 $as_echo "$ac_cv_header_stdc" >&6; }
10841 if test $ac_cv_header_stdc = yes; then
10842
10843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10844
10845 fi
10846
10847 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10849                   inttypes.h stdint.h unistd.h
10850 do :
10851   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10853 "
10854 eval as_val=\$$as_ac_Header
10855    if test "x$as_val" = x""yes; then :
10856   cat >>confdefs.h <<_ACEOF
10857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 fi
10861
10862 done
10863
10864
10865
10866 if test "$ac_cv_prog_cc_stdc" != no; then
10867   U= ANSI2KNR=
10868 else
10869   U=_ ANSI2KNR=./ansi2knr
10870 fi
10871 # Ensure some checks needed by ansi2knr itself.
10872
10873 for ac_header in string.h
10874 do :
10875   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10876 if test "x$ac_cv_header_string_h" = x""yes; then :
10877   cat >>confdefs.h <<_ACEOF
10878 #define HAVE_STRING_H 1
10879 _ACEOF
10880
10881 fi
10882
10883 done
10884
10885
10886
10887
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10889 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10890 if test "${cl_cv_as_noexecstack+set}" = set; then :
10891   $as_echo_n "(cached) " >&6
10892 else
10893     cat > conftest.c <<EOF
10894 void foo() {}
10895 EOF
10896   if { ac_try='${CC} $CFLAGS $CPPFLAGS
10897                      -S -o conftest.s conftest.c >/dev/null'
10898   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902   test $ac_status = 0; }; } \
10903      && grep .note.GNU-stack conftest.s >/dev/null \
10904      && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10905                        -c -o conftest.o conftest.s >/dev/null'
10906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10907   (eval $ac_try) 2>&5
10908   ac_status=$?
10909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910   test $ac_status = 0; }; }
10911   then
10912     cl_cv_as_noexecstack=yes
10913   else
10914     cl_cv_as_noexecstack=no
10915   fi
10916   rm -f conftest*
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10919 $as_echo "$cl_cv_as_noexecstack" >&6; }
10920   if test "$cl_cv_as_noexecstack" = yes; then
10921     ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10922   fi
10923
10924
10925
10926
10927 gmp_user_AR=$AR
10928 if test -n "$ac_tool_prefix"; then
10929   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10930 set dummy ${ac_tool_prefix}ar; ac_word=$2
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 $as_echo_n "checking for $ac_word... " >&6; }
10933 if test "${ac_cv_prog_AR+set}" = set; then :
10934   $as_echo_n "(cached) " >&6
10935 else
10936   if test -n "$AR"; then
10937   ac_cv_prog_AR="$AR" # Let the user override the test.
10938 else
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10941 do
10942   IFS=$as_save_IFS
10943   test -z "$as_dir" && as_dir=.
10944     for ac_exec_ext in '' $ac_executable_extensions; do
10945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946     ac_cv_prog_AR="${ac_tool_prefix}ar"
10947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10948     break 2
10949   fi
10950 done
10951   done
10952 IFS=$as_save_IFS
10953
10954 fi
10955 fi
10956 AR=$ac_cv_prog_AR
10957 if test -n "$AR"; then
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10959 $as_echo "$AR" >&6; }
10960 else
10961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10963 fi
10964
10965
10966 fi
10967 if test -z "$ac_cv_prog_AR"; then
10968   ac_ct_AR=$AR
10969   # Extract the first word of "ar", so it can be a program name with args.
10970 set dummy ar; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10974   $as_echo_n "(cached) " >&6
10975 else
10976   if test -n "$ac_ct_AR"; then
10977   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10978 else
10979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980 for as_dir in $PATH
10981 do
10982   IFS=$as_save_IFS
10983   test -z "$as_dir" && as_dir=.
10984     for ac_exec_ext in '' $ac_executable_extensions; do
10985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10986     ac_cv_prog_ac_ct_AR="ar"
10987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10988     break 2
10989   fi
10990 done
10991   done
10992 IFS=$as_save_IFS
10993
10994 fi
10995 fi
10996 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10997 if test -n "$ac_ct_AR"; then
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10999 $as_echo "$ac_ct_AR" >&6; }
11000 else
11001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11003 fi
11004
11005   if test "x$ac_ct_AR" = x; then
11006     AR="ar"
11007   else
11008     case $cross_compiling:$ac_tool_warned in
11009 yes:)
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11012 ac_tool_warned=yes ;;
11013 esac
11014     AR=$ac_ct_AR
11015   fi
11016 else
11017   AR="$ac_cv_prog_AR"
11018 fi
11019
11020 if test -z "$gmp_user_AR"; then
11021                         eval arflags=\"\$ar${abi1}_flags\"
11022   test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
11023   if test -n "$arflags"; then
11024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
11025 $as_echo_n "checking for extra ar flags... " >&6; }
11026     AR="$AR $arflags"
11027     ac_cv_prog_AR="$AR $arflags"
11028     ac_cv_prog_ac_ct_AR="$AR $arflags"
11029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
11030 $as_echo "$arflags" >&6; }
11031   fi
11032 fi
11033 if test -z "$AR_FLAGS"; then
11034   AR_FLAGS=cq
11035 fi
11036
11037
11038 gmp_user_NM=$NM
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11040 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11041 if test "${lt_cv_path_NM+set}" = set; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044   if test -n "$NM"; then
11045   # Let the user override the test.
11046   lt_cv_path_NM="$NM"
11047 else
11048   lt_nm_to_check="${ac_tool_prefix}nm"
11049   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11050     lt_nm_to_check="$lt_nm_to_check nm"
11051   fi
11052   for lt_tmp_nm in $lt_nm_to_check; do
11053     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11054     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11055       IFS="$lt_save_ifs"
11056       test -z "$ac_dir" && ac_dir=.
11057       tmp_nm="$ac_dir/$lt_tmp_nm"
11058       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11059         # Check to see if the nm accepts a BSD-compat flag.
11060         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11061         #   nm: unknown option "B" ignored
11062         # Tru64's nm complains that /dev/null is an invalid object file
11063         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11064         */dev/null* | *'Invalid file or object type'*)
11065           lt_cv_path_NM="$tmp_nm -B"
11066           break
11067           ;;
11068         *)
11069           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11070           */dev/null*)
11071             lt_cv_path_NM="$tmp_nm -p"
11072             break
11073             ;;
11074           *)
11075             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11076             continue # so that we can try to find one that supports BSD flags
11077             ;;
11078           esac
11079           ;;
11080         esac
11081       fi
11082     done
11083     IFS="$lt_save_ifs"
11084   done
11085   : ${lt_cv_path_NM=no}
11086 fi
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11089 $as_echo "$lt_cv_path_NM" >&6; }
11090 if test "$lt_cv_path_NM" != "no"; then
11091   NM="$lt_cv_path_NM"
11092 else
11093   # Didn't find any BSD compatible name lister, look for dumpbin.
11094   if test -n "$ac_tool_prefix"; then
11095   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11096   do
11097     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11102   $as_echo_n "(cached) " >&6
11103 else
11104   if test -n "$DUMPBIN"; then
11105   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11106 else
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110   IFS=$as_save_IFS
11111   test -z "$as_dir" && as_dir=.
11112     for ac_exec_ext in '' $ac_executable_extensions; do
11113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116     break 2
11117   fi
11118 done
11119   done
11120 IFS=$as_save_IFS
11121
11122 fi
11123 fi
11124 DUMPBIN=$ac_cv_prog_DUMPBIN
11125 if test -n "$DUMPBIN"; then
11126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11127 $as_echo "$DUMPBIN" >&6; }
11128 else
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11131 fi
11132
11133
11134     test -n "$DUMPBIN" && break
11135   done
11136 fi
11137 if test -z "$DUMPBIN"; then
11138   ac_ct_DUMPBIN=$DUMPBIN
11139   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11140 do
11141   # Extract the first word of "$ac_prog", so it can be a program name with args.
11142 set dummy $ac_prog; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   if test -n "$ac_ct_DUMPBIN"; then
11149   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11150 else
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154   IFS=$as_save_IFS
11155   test -z "$as_dir" && as_dir=.
11156     for ac_exec_ext in '' $ac_executable_extensions; do
11157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160     break 2
11161   fi
11162 done
11163   done
11164 IFS=$as_save_IFS
11165
11166 fi
11167 fi
11168 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11169 if test -n "$ac_ct_DUMPBIN"; then
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11171 $as_echo "$ac_ct_DUMPBIN" >&6; }
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176
11177
11178   test -n "$ac_ct_DUMPBIN" && break
11179 done
11180
11181   if test "x$ac_ct_DUMPBIN" = x; then
11182     DUMPBIN=":"
11183   else
11184     case $cross_compiling:$ac_tool_warned in
11185 yes:)
11186 { $as_echo "$as_me:${as_lineno-$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     DUMPBIN=$ac_ct_DUMPBIN
11191   fi
11192 fi
11193
11194
11195   if test "$DUMPBIN" != ":"; then
11196     NM="$DUMPBIN"
11197   fi
11198 fi
11199 test -z "$NM" && NM=nm
11200
11201
11202
11203
11204
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11207 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11208 if test "${lt_cv_nm_interface+set}" = set; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   lt_cv_nm_interface="BSD nm"
11212   echo "int some_variable = 0;" > conftest.$ac_ext
11213   (eval echo "\"\$as_me:11213: $ac_compile\"" >&5)
11214   (eval "$ac_compile" 2>conftest.err)
11215   cat conftest.err >&5
11216   (eval echo "\"\$as_me:11216: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11217   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11218   cat conftest.err >&5
11219   (eval echo "\"\$as_me:11219: output\"" >&5)
11220   cat conftest.out >&5
11221   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11222     lt_cv_nm_interface="MS dumpbin"
11223   fi
11224   rm -f conftest*
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11227 $as_echo "$lt_cv_nm_interface" >&6; }
11228
11229
11230 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11231 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found.  In this
11232 # case run it again to try the native "nm", firstly so that likely locations
11233 # are searched, secondly so that -B or -p are added if necessary for BSD
11234 # format.  This is necessary for instance on OSF with "./configure
11235 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11236 #
11237 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11238   $as_unset lt_cv_path_NM
11239   gmp_save_ac_tool_prefix=$ac_tool_prefix
11240   ac_tool_prefix=
11241   NM=
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11243 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11244 if test "${lt_cv_path_NM+set}" = set; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   if test -n "$NM"; then
11248   # Let the user override the test.
11249   lt_cv_path_NM="$NM"
11250 else
11251   lt_nm_to_check="${ac_tool_prefix}nm"
11252   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11253     lt_nm_to_check="$lt_nm_to_check nm"
11254   fi
11255   for lt_tmp_nm in $lt_nm_to_check; do
11256     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11257     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11258       IFS="$lt_save_ifs"
11259       test -z "$ac_dir" && ac_dir=.
11260       tmp_nm="$ac_dir/$lt_tmp_nm"
11261       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11262         # Check to see if the nm accepts a BSD-compat flag.
11263         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11264         #   nm: unknown option "B" ignored
11265         # Tru64's nm complains that /dev/null is an invalid object file
11266         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11267         */dev/null* | *'Invalid file or object type'*)
11268           lt_cv_path_NM="$tmp_nm -B"
11269           break
11270           ;;
11271         *)
11272           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11273           */dev/null*)
11274             lt_cv_path_NM="$tmp_nm -p"
11275             break
11276             ;;
11277           *)
11278             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11279             continue # so that we can try to find one that supports BSD flags
11280             ;;
11281           esac
11282           ;;
11283         esac
11284       fi
11285     done
11286     IFS="$lt_save_ifs"
11287   done
11288   : ${lt_cv_path_NM=no}
11289 fi
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11292 $as_echo "$lt_cv_path_NM" >&6; }
11293 if test "$lt_cv_path_NM" != "no"; then
11294   NM="$lt_cv_path_NM"
11295 else
11296   # Didn't find any BSD compatible name lister, look for dumpbin.
11297   if test -n "$ac_tool_prefix"; then
11298   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11299   do
11300     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   if test -n "$DUMPBIN"; then
11308   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313   IFS=$as_save_IFS
11314   test -z "$as_dir" && as_dir=.
11315     for ac_exec_ext in '' $ac_executable_extensions; do
11316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319     break 2
11320   fi
11321 done
11322   done
11323 IFS=$as_save_IFS
11324
11325 fi
11326 fi
11327 DUMPBIN=$ac_cv_prog_DUMPBIN
11328 if test -n "$DUMPBIN"; then
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11330 $as_echo "$DUMPBIN" >&6; }
11331 else
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335
11336
11337     test -n "$DUMPBIN" && break
11338   done
11339 fi
11340 if test -z "$DUMPBIN"; then
11341   ac_ct_DUMPBIN=$DUMPBIN
11342   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11343 do
11344   # Extract the first word of "$ac_prog", so it can be a program name with args.
11345 set dummy $ac_prog; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   if test -n "$ac_ct_DUMPBIN"; then
11352   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11356 do
11357   IFS=$as_save_IFS
11358   test -z "$as_dir" && as_dir=.
11359     for ac_exec_ext in '' $ac_executable_extensions; do
11360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363     break 2
11364   fi
11365 done
11366   done
11367 IFS=$as_save_IFS
11368
11369 fi
11370 fi
11371 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11372 if test -n "$ac_ct_DUMPBIN"; then
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11374 $as_echo "$ac_ct_DUMPBIN" >&6; }
11375 else
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378 fi
11379
11380
11381   test -n "$ac_ct_DUMPBIN" && break
11382 done
11383
11384   if test "x$ac_ct_DUMPBIN" = x; then
11385     DUMPBIN=":"
11386   else
11387     case $cross_compiling:$ac_tool_warned in
11388 yes:)
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11391 ac_tool_warned=yes ;;
11392 esac
11393     DUMPBIN=$ac_ct_DUMPBIN
11394   fi
11395 fi
11396
11397
11398   if test "$DUMPBIN" != ":"; then
11399     NM="$DUMPBIN"
11400   fi
11401 fi
11402 test -z "$NM" && NM=nm
11403
11404
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11407 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11408 if test "${lt_cv_nm_interface+set}" = set; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   lt_cv_nm_interface="BSD nm"
11412   echo "int some_variable = 0;" > conftest.$ac_ext
11413   (eval echo "\"\$as_me:11413: $ac_compile\"" >&5)
11414   (eval "$ac_compile" 2>conftest.err)
11415   cat conftest.err >&5
11416   (eval echo "\"\$as_me:11416: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11417   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11418   cat conftest.err >&5
11419   (eval echo "\"\$as_me:11419: output\"" >&5)
11420   cat conftest.out >&5
11421   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11422     lt_cv_nm_interface="MS dumpbin"
11423   fi
11424   rm -f conftest*
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11427 $as_echo "$lt_cv_nm_interface" >&6; }
11428
11429   ac_tool_prefix=$gmp_save_ac_tool_prefix
11430 fi
11431
11432 if test -z "$gmp_user_NM"; then
11433                         eval nmflags=\"\$nm${abi1}_flags\"
11434   test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11435   if test -n "$nmflags"; then
11436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11437 $as_echo_n "checking for extra nm flags... " >&6; }
11438     NM="$NM $nmflags"
11439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11440 $as_echo "$nmflags" >&6; }
11441   fi
11442 fi
11443
11444
11445 case $host in
11446   # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11447   # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11448   # it impossible to build shared and static libraries simultaneously.
11449   # Disable shared libraries by default, but let the user override with
11450   # --enable-shared --disable-static.
11451   #
11452   # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11453   # and *-*-os2* too, but wait for someone to test this before worrying
11454   # about it.  If there is a problem then of course libtool is the right
11455   # place to fix it.
11456   #
11457   *-*-aix[34]*)
11458     if test -z "$enable_shared"; then enable_shared=no; fi ;;
11459 esac
11460
11461
11462 # Configs for Windows DLLs.
11463
11464 enable_win32_dll=yes
11465
11466 case $host in
11467 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11468   if test -n "$ac_tool_prefix"; then
11469   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11470 set dummy ${ac_tool_prefix}as; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_prog_AS+set}" = set; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   if test -n "$AS"; then
11477   ac_cv_prog_AS="$AS" # Let the user override the test.
11478 else
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11481 do
11482   IFS=$as_save_IFS
11483   test -z "$as_dir" && as_dir=.
11484     for ac_exec_ext in '' $ac_executable_extensions; do
11485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486     ac_cv_prog_AS="${ac_tool_prefix}as"
11487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488     break 2
11489   fi
11490 done
11491   done
11492 IFS=$as_save_IFS
11493
11494 fi
11495 fi
11496 AS=$ac_cv_prog_AS
11497 if test -n "$AS"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11499 $as_echo "$AS" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505
11506 fi
11507 if test -z "$ac_cv_prog_AS"; then
11508   ac_ct_AS=$AS
11509   # Extract the first word of "as", so it can be a program name with args.
11510 set dummy as; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   if test -n "$ac_ct_AS"; then
11517   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11518 else
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11521 do
11522   IFS=$as_save_IFS
11523   test -z "$as_dir" && as_dir=.
11524     for ac_exec_ext in '' $ac_executable_extensions; do
11525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526     ac_cv_prog_ac_ct_AS="as"
11527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528     break 2
11529   fi
11530 done
11531   done
11532 IFS=$as_save_IFS
11533
11534 fi
11535 fi
11536 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11537 if test -n "$ac_ct_AS"; then
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11539 $as_echo "$ac_ct_AS" >&6; }
11540 else
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543 fi
11544
11545   if test "x$ac_ct_AS" = x; then
11546     AS="false"
11547   else
11548     case $cross_compiling:$ac_tool_warned in
11549 yes:)
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11552 ac_tool_warned=yes ;;
11553 esac
11554     AS=$ac_ct_AS
11555   fi
11556 else
11557   AS="$ac_cv_prog_AS"
11558 fi
11559
11560   if test -n "$ac_tool_prefix"; then
11561   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11562 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11566   $as_echo_n "(cached) " >&6
11567 else
11568   if test -n "$DLLTOOL"; then
11569   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11570 else
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11573 do
11574   IFS=$as_save_IFS
11575   test -z "$as_dir" && as_dir=.
11576     for ac_exec_ext in '' $ac_executable_extensions; do
11577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11580     break 2
11581   fi
11582 done
11583   done
11584 IFS=$as_save_IFS
11585
11586 fi
11587 fi
11588 DLLTOOL=$ac_cv_prog_DLLTOOL
11589 if test -n "$DLLTOOL"; then
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11591 $as_echo "$DLLTOOL" >&6; }
11592 else
11593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11595 fi
11596
11597
11598 fi
11599 if test -z "$ac_cv_prog_DLLTOOL"; then
11600   ac_ct_DLLTOOL=$DLLTOOL
11601   # Extract the first word of "dlltool", so it can be a program name with args.
11602 set dummy dlltool; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11606   $as_echo_n "(cached) " >&6
11607 else
11608   if test -n "$ac_ct_DLLTOOL"; then
11609   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11610 else
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11613 do
11614   IFS=$as_save_IFS
11615   test -z "$as_dir" && as_dir=.
11616     for ac_exec_ext in '' $ac_executable_extensions; do
11617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11620     break 2
11621   fi
11622 done
11623   done
11624 IFS=$as_save_IFS
11625
11626 fi
11627 fi
11628 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11629 if test -n "$ac_ct_DLLTOOL"; then
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11631 $as_echo "$ac_ct_DLLTOOL" >&6; }
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635 fi
11636
11637   if test "x$ac_ct_DLLTOOL" = x; then
11638     DLLTOOL="false"
11639   else
11640     case $cross_compiling:$ac_tool_warned in
11641 yes:)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11644 ac_tool_warned=yes ;;
11645 esac
11646     DLLTOOL=$ac_ct_DLLTOOL
11647   fi
11648 else
11649   DLLTOOL="$ac_cv_prog_DLLTOOL"
11650 fi
11651
11652   if test -n "$ac_tool_prefix"; then
11653   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11654 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11658   $as_echo_n "(cached) " >&6
11659 else
11660   if test -n "$OBJDUMP"; then
11661   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666   IFS=$as_save_IFS
11667   test -z "$as_dir" && as_dir=.
11668     for ac_exec_ext in '' $ac_executable_extensions; do
11669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672     break 2
11673   fi
11674 done
11675   done
11676 IFS=$as_save_IFS
11677
11678 fi
11679 fi
11680 OBJDUMP=$ac_cv_prog_OBJDUMP
11681 if test -n "$OBJDUMP"; then
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11683 $as_echo "$OBJDUMP" >&6; }
11684 else
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688
11689
11690 fi
11691 if test -z "$ac_cv_prog_OBJDUMP"; then
11692   ac_ct_OBJDUMP=$OBJDUMP
11693   # Extract the first word of "objdump", so it can be a program name with args.
11694 set dummy objdump; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   if test -n "$ac_ct_OBJDUMP"; then
11701   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706   IFS=$as_save_IFS
11707   test -z "$as_dir" && as_dir=.
11708     for ac_exec_ext in '' $ac_executable_extensions; do
11709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712     break 2
11713   fi
11714 done
11715   done
11716 IFS=$as_save_IFS
11717
11718 fi
11719 fi
11720 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11721 if test -n "$ac_ct_OBJDUMP"; then
11722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11723 $as_echo "$ac_ct_OBJDUMP" >&6; }
11724 else
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728
11729   if test "x$ac_ct_OBJDUMP" = x; then
11730     OBJDUMP="false"
11731   else
11732     case $cross_compiling:$ac_tool_warned in
11733 yes:)
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11736 ac_tool_warned=yes ;;
11737 esac
11738     OBJDUMP=$ac_ct_OBJDUMP
11739   fi
11740 else
11741   OBJDUMP="$ac_cv_prog_OBJDUMP"
11742 fi
11743
11744   ;;
11745 esac
11746
11747 test -z "$AS" && AS=as
11748
11749
11750
11751
11752
11753 test -z "$DLLTOOL" && DLLTOOL=dlltool
11754
11755
11756
11757
11758
11759 test -z "$OBJDUMP" && OBJDUMP=objdump
11760
11761
11762
11763
11764
11765
11766
11767
11768 LIBGMP_DLL=0
11769
11770 case $host in
11771   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11772     # By default, build only static.
11773     if test -z "$enable_shared"; then
11774       enable_shared=no
11775     fi
11776     # Don't allow both static and DLL.
11777     if test "$enable_shared" != no && test "$enable_static" != no; then
11778       as_fn_error "cannot build both static and DLL, since gmp.h is different for each.
11779 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11780     fi
11781
11782     # "-no-undefined" is required when building a DLL, see documentation on
11783     # AC_LIBTOOL_WIN32_DLL.
11784     #
11785     # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11786     # libgmpxx functions and variables exported.  This is what libtool did
11787     # in the past, and it's convenient for us in the test programs.
11788     #
11789     # Maybe it'd be prudent to check for --export-all-symbols before using
11790     # it, but it seems to have been in ld since at least 2000, and there's
11791     # not really any alternative we want to take up at the moment.
11792     #
11793     # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11794     # a .lib import library, described in the manual.  libgmp-3.dll.def
11795     # corresponds to the libmp-3.dll.def generated by libtool (as a result
11796     # of -export-symbols on that library).
11797     #
11798     # Incidentally, libtool does generate an import library libgmp.dll.a,
11799     # but it's "ar" format and cannot be used by the MS linker.  There
11800     # doesn't seem to be any GNU tool for generating or converting to .lib.
11801     #
11802     # FIXME: The .def files produced by -Wl,output-def include isascii,
11803     # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11804     # inline isascii (used in gmp).  It gives an extern inline for
11805     # __isascii, but for some reason not the plain isascii.
11806     #
11807     if test "$enable_shared" = yes; then
11808       GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11809       LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11810       LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11811       LIBGMP_DLL=1
11812     fi
11813     ;;
11814 esac
11815
11816
11817 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11818 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11819 # _AS_LINENO_PREPARE, but not always.
11820 #
11821 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11822 # and an empty result.  This only happens when invoked as "sh configure",
11823 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11824 #
11825 # FIXME: Newer libtool should have it's own fix for this.
11826 #
11827 if test -z "$CONFIG_SHELL"; then
11828   CONFIG_SHELL=$SHELL
11829 fi
11830
11831 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11832 # mingw and cygwin.  Under --disable-cxx this avoids some error messages
11833 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11834 # Notice that any user-supplied --with-tags setting takes precedence.
11835 #
11836 # FIXME: Is this the right way to get this effect?  Very possibly not, but
11837 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11838 #
11839 if test "${with_tags+set}" != set; then
11840   if test $want_cxx = yes; then
11841     with_tags=CXX
11842   else
11843     with_tags=
11844   fi
11845 fi
11846
11847 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11848 # AC_PROG_F77, even when F77 is not in the selected with_tags.  This is
11849 # probably harmless, but it's unsightly and bloats our configure, so pretend
11850 # AC_PROG_F77 has been expanded already.
11851 #
11852 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11853 # to say what it wants from among supported languages etc.
11854 #
11855
11856
11857 case `pwd` in
11858   *\ * | *\     *)
11859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11861 esac
11862
11863
11864
11865 macro_version='2.2.6b'
11866 macro_revision='1.3017'
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 ltmain="$ac_aux_dir/ltmain.sh"
11881
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11883 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11884 if test "${ac_cv_path_SED+set}" = set; then :
11885   $as_echo_n "(cached) " >&6
11886 else
11887             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11888      for ac_i in 1 2 3 4 5 6 7; do
11889        ac_script="$ac_script$as_nl$ac_script"
11890      done
11891      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11892      { ac_script=; unset ac_script;}
11893      if test -z "$SED"; then
11894   ac_path_SED_found=false
11895   # Loop through the user's path and test for each of PROGNAME-LIST
11896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11898 do
11899   IFS=$as_save_IFS
11900   test -z "$as_dir" && as_dir=.
11901     for ac_prog in sed gsed; do
11902     for ac_exec_ext in '' $ac_executable_extensions; do
11903       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11904       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11905 # Check for GNU ac_path_SED and select it if it is found.
11906   # Check for GNU $ac_path_SED
11907 case `"$ac_path_SED" --version 2>&1` in
11908 *GNU*)
11909   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11910 *)
11911   ac_count=0
11912   $as_echo_n 0123456789 >"conftest.in"
11913   while :
11914   do
11915     cat "conftest.in" "conftest.in" >"conftest.tmp"
11916     mv "conftest.tmp" "conftest.in"
11917     cp "conftest.in" "conftest.nl"
11918     $as_echo '' >> "conftest.nl"
11919     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11921     as_fn_arith $ac_count + 1 && ac_count=$as_val
11922     if test $ac_count -gt ${ac_path_SED_max-0}; then
11923       # Best one so far, save it but keep looking for a better one
11924       ac_cv_path_SED="$ac_path_SED"
11925       ac_path_SED_max=$ac_count
11926     fi
11927     # 10*(2^10) chars as input seems more than enough
11928     test $ac_count -gt 10 && break
11929   done
11930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11931 esac
11932
11933       $ac_path_SED_found && break 3
11934     done
11935   done
11936   done
11937 IFS=$as_save_IFS
11938   if test -z "$ac_cv_path_SED"; then
11939     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11940   fi
11941 else
11942   ac_cv_path_SED=$SED
11943 fi
11944
11945 fi
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11947 $as_echo "$ac_cv_path_SED" >&6; }
11948  SED="$ac_cv_path_SED"
11949   rm -f conftest.sed
11950
11951 test -z "$SED" && SED=sed
11952 Xsed="$SED -e 1s/^X//"
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11965 $as_echo_n "checking for fgrep... " >&6; }
11966 if test "${ac_cv_path_FGREP+set}" = set; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11970    then ac_cv_path_FGREP="$GREP -F"
11971    else
11972      if test -z "$FGREP"; then
11973   ac_path_FGREP_found=false
11974   # Loop through the user's path and test for each of PROGNAME-LIST
11975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11977 do
11978   IFS=$as_save_IFS
11979   test -z "$as_dir" && as_dir=.
11980     for ac_prog in fgrep; do
11981     for ac_exec_ext in '' $ac_executable_extensions; do
11982       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11983       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11984 # Check for GNU ac_path_FGREP and select it if it is found.
11985   # Check for GNU $ac_path_FGREP
11986 case `"$ac_path_FGREP" --version 2>&1` in
11987 *GNU*)
11988   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11989 *)
11990   ac_count=0
11991   $as_echo_n 0123456789 >"conftest.in"
11992   while :
11993   do
11994     cat "conftest.in" "conftest.in" >"conftest.tmp"
11995     mv "conftest.tmp" "conftest.in"
11996     cp "conftest.in" "conftest.nl"
11997     $as_echo 'FGREP' >> "conftest.nl"
11998     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12000     as_fn_arith $ac_count + 1 && ac_count=$as_val
12001     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12002       # Best one so far, save it but keep looking for a better one
12003       ac_cv_path_FGREP="$ac_path_FGREP"
12004       ac_path_FGREP_max=$ac_count
12005     fi
12006     # 10*(2^10) chars as input seems more than enough
12007     test $ac_count -gt 10 && break
12008   done
12009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12010 esac
12011
12012       $ac_path_FGREP_found && break 3
12013     done
12014   done
12015   done
12016 IFS=$as_save_IFS
12017   if test -z "$ac_cv_path_FGREP"; then
12018     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12019   fi
12020 else
12021   ac_cv_path_FGREP=$FGREP
12022 fi
12023
12024    fi
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12027 $as_echo "$ac_cv_path_FGREP" >&6; }
12028  FGREP="$ac_cv_path_FGREP"
12029
12030
12031 test -z "$GREP" && GREP=grep
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051 # Check whether --with-gnu-ld was given.
12052 if test "${with_gnu_ld+set}" = set; then :
12053   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12054 else
12055   with_gnu_ld=no
12056 fi
12057
12058 ac_prog=ld
12059 if test "$GCC" = yes; then
12060   # Check if gcc -print-prog-name=ld gives a path.
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12062 $as_echo_n "checking for ld used by $CC... " >&6; }
12063   case $host in
12064   *-*-mingw*)
12065     # gcc leaves a trailing carriage return which upsets mingw
12066     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12067   *)
12068     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12069   esac
12070   case $ac_prog in
12071     # Accept absolute paths.
12072     [\\/]* | ?:[\\/]*)
12073       re_direlt='/[^/][^/]*/\.\./'
12074       # Canonicalize the pathname of ld
12075       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12076       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12077         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12078       done
12079       test -z "$LD" && LD="$ac_prog"
12080       ;;
12081   "")
12082     # If it fails, then pretend we aren't using GCC.
12083     ac_prog=ld
12084     ;;
12085   *)
12086     # If it is relative, then search for the first ld in PATH.
12087     with_gnu_ld=unknown
12088     ;;
12089   esac
12090 elif test "$with_gnu_ld" = yes; then
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12092 $as_echo_n "checking for GNU ld... " >&6; }
12093 else
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12095 $as_echo_n "checking for non-GNU ld... " >&6; }
12096 fi
12097 if test "${lt_cv_path_LD+set}" = set; then :
12098   $as_echo_n "(cached) " >&6
12099 else
12100   if test -z "$LD"; then
12101   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12102   for ac_dir in $PATH; do
12103     IFS="$lt_save_ifs"
12104     test -z "$ac_dir" && ac_dir=.
12105     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12106       lt_cv_path_LD="$ac_dir/$ac_prog"
12107       # Check to see if the program is GNU ld.  I'd rather use --version,
12108       # but apparently some variants of GNU ld only accept -v.
12109       # Break only if it was the GNU/non-GNU ld that we prefer.
12110       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12111       *GNU* | *'with BFD'*)
12112         test "$with_gnu_ld" != no && break
12113         ;;
12114       *)
12115         test "$with_gnu_ld" != yes && break
12116         ;;
12117       esac
12118     fi
12119   done
12120   IFS="$lt_save_ifs"
12121 else
12122   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12123 fi
12124 fi
12125
12126 LD="$lt_cv_path_LD"
12127 if test -n "$LD"; then
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12129 $as_echo "$LD" >&6; }
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12137 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12138   $as_echo_n "(cached) " >&6
12139 else
12140   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12141 case `$LD -v 2>&1 </dev/null` in
12142 *GNU* | *'with BFD'*)
12143   lt_cv_prog_gnu_ld=yes
12144   ;;
12145 *)
12146   lt_cv_prog_gnu_ld=no
12147   ;;
12148 esac
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12152 with_gnu_ld=$lt_cv_prog_gnu_ld
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12163 $as_echo_n "checking whether ln -s works... " >&6; }
12164 LN_S=$as_ln_s
12165 if test "$LN_S" = "ln -s"; then
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12167 $as_echo "yes" >&6; }
12168 else
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12170 $as_echo "no, using $LN_S" >&6; }
12171 fi
12172
12173 # find the maximum length of command line arguments
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12175 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12176 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179     i=0
12180   teststring="ABCD"
12181
12182   case $build_os in
12183   msdosdjgpp*)
12184     # On DJGPP, this test can blow up pretty badly due to problems in libc
12185     # (any single argument exceeding 2000 bytes causes a buffer overrun
12186     # during glob expansion).  Even if it were fixed, the result of this
12187     # check would be larger than it should be.
12188     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12189     ;;
12190
12191   gnu*)
12192     # Under GNU Hurd, this test is not required because there is
12193     # no limit to the length of command line arguments.
12194     # Libtool will interpret -1 as no limit whatsoever
12195     lt_cv_sys_max_cmd_len=-1;
12196     ;;
12197
12198   cygwin* | mingw* | cegcc*)
12199     # On Win9x/ME, this test blows up -- it succeeds, but takes
12200     # about 5 minutes as the teststring grows exponentially.
12201     # Worse, since 9x/ME are not pre-emptively multitasking,
12202     # you end up with a "frozen" computer, even though with patience
12203     # the test eventually succeeds (with a max line length of 256k).
12204     # Instead, let's just punt: use the minimum linelength reported by
12205     # all of the supported platforms: 8192 (on NT/2K/XP).
12206     lt_cv_sys_max_cmd_len=8192;
12207     ;;
12208
12209   amigaos*)
12210     # On AmigaOS with pdksh, this test takes hours, literally.
12211     # So we just punt and use a minimum line length of 8192.
12212     lt_cv_sys_max_cmd_len=8192;
12213     ;;
12214
12215   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12216     # This has been around since 386BSD, at least.  Likely further.
12217     if test -x /sbin/sysctl; then
12218       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12219     elif test -x /usr/sbin/sysctl; then
12220       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12221     else
12222       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12223     fi
12224     # And add a safety zone
12225     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12226     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12227     ;;
12228
12229   interix*)
12230     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12231     lt_cv_sys_max_cmd_len=196608
12232     ;;
12233
12234   osf*)
12235     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12236     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12237     # nice to cause kernel panics so lets avoid the loop below.
12238     # First set a reasonable default.
12239     lt_cv_sys_max_cmd_len=16384
12240     #
12241     if test -x /sbin/sysconfig; then
12242       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12243         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12244       esac
12245     fi
12246     ;;
12247   sco3.2v5*)
12248     lt_cv_sys_max_cmd_len=102400
12249     ;;
12250   sysv5* | sco5v6* | sysv4.2uw2*)
12251     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12252     if test -n "$kargmax"; then
12253       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12254     else
12255       lt_cv_sys_max_cmd_len=32768
12256     fi
12257     ;;
12258   *)
12259     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12260     if test -n "$lt_cv_sys_max_cmd_len"; then
12261       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12262       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12263     else
12264       # Make teststring a little bigger before we do anything with it.
12265       # a 1K string should be a reasonable start.
12266       for i in 1 2 3 4 5 6 7 8 ; do
12267         teststring=$teststring$teststring
12268       done
12269       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12270       # If test is not a shell built-in, we'll probably end up computing a
12271       # maximum length that is only half of the actual maximum length, but
12272       # we can't tell.
12273       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
12274                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
12275               test $i != 17 # 1/2 MB should be enough
12276       do
12277         i=`expr $i + 1`
12278         teststring=$teststring$teststring
12279       done
12280       # Only check the string length outside the loop.
12281       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12282       teststring=
12283       # Add a significant safety factor because C++ compilers can tack on
12284       # massive amounts of additional arguments before passing them to the
12285       # linker.  It appears as though 1/2 is a usable value.
12286       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12287     fi
12288     ;;
12289   esac
12290
12291 fi
12292
12293 if test -n $lt_cv_sys_max_cmd_len ; then
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12295 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12296 else
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12298 $as_echo "none" >&6; }
12299 fi
12300 max_cmd_len=$lt_cv_sys_max_cmd_len
12301
12302
12303
12304
12305
12306
12307 : ${CP="cp -f"}
12308 : ${MV="mv -f"}
12309 : ${RM="rm -f"}
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12312 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12313 # Try some XSI features
12314 xsi_shell=no
12315 ( _lt_dummy="a/b/c"
12316   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12317       = c,a/b,, \
12318     && eval 'test $(( 1 + 1 )) -eq 2 \
12319     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12320   && xsi_shell=yes
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12322 $as_echo "$xsi_shell" >&6; }
12323
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12326 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12327 lt_shell_append=no
12328 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12329     >/dev/null 2>&1 \
12330   && lt_shell_append=yes
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12332 $as_echo "$lt_shell_append" >&6; }
12333
12334
12335 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12336   lt_unset=unset
12337 else
12338   lt_unset=false
12339 fi
12340
12341
12342
12343
12344
12345 # test EBCDIC or ASCII
12346 case `echo X|tr X '\101'` in
12347  A) # ASCII based system
12348     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12349   lt_SP2NL='tr \040 \012'
12350   lt_NL2SP='tr \015\012 \040\040'
12351   ;;
12352  *) # EBCDIC based system
12353   lt_SP2NL='tr \100 \n'
12354   lt_NL2SP='tr \r\n \100\100'
12355   ;;
12356 esac
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12367 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12368 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   lt_cv_ld_reload_flag='-r'
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12374 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12375 reload_flag=$lt_cv_ld_reload_flag
12376 case $reload_flag in
12377 "" | " "*) ;;
12378 *) reload_flag=" $reload_flag" ;;
12379 esac
12380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12381 case $host_os in
12382   darwin*)
12383     if test "$GCC" = yes; then
12384       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12385     else
12386       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12387     fi
12388     ;;
12389 esac
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399 if test -n "$ac_tool_prefix"; then
12400   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12401 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   if test -n "$OBJDUMP"; then
12408   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12409 else
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12412 do
12413   IFS=$as_save_IFS
12414   test -z "$as_dir" && as_dir=.
12415     for ac_exec_ext in '' $ac_executable_extensions; do
12416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12417     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419     break 2
12420   fi
12421 done
12422   done
12423 IFS=$as_save_IFS
12424
12425 fi
12426 fi
12427 OBJDUMP=$ac_cv_prog_OBJDUMP
12428 if test -n "$OBJDUMP"; then
12429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12430 $as_echo "$OBJDUMP" >&6; }
12431 else
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12435
12436
12437 fi
12438 if test -z "$ac_cv_prog_OBJDUMP"; then
12439   ac_ct_OBJDUMP=$OBJDUMP
12440   # Extract the first word of "objdump", so it can be a program name with args.
12441 set dummy objdump; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447   if test -n "$ac_ct_OBJDUMP"; then
12448   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12449 else
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12452 do
12453   IFS=$as_save_IFS
12454   test -z "$as_dir" && as_dir=.
12455     for ac_exec_ext in '' $ac_executable_extensions; do
12456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12457     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459     break 2
12460   fi
12461 done
12462   done
12463 IFS=$as_save_IFS
12464
12465 fi
12466 fi
12467 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12468 if test -n "$ac_ct_OBJDUMP"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12470 $as_echo "$ac_ct_OBJDUMP" >&6; }
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476   if test "x$ac_ct_OBJDUMP" = x; then
12477     OBJDUMP="false"
12478   else
12479     case $cross_compiling:$ac_tool_warned in
12480 yes:)
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12483 ac_tool_warned=yes ;;
12484 esac
12485     OBJDUMP=$ac_ct_OBJDUMP
12486   fi
12487 else
12488   OBJDUMP="$ac_cv_prog_OBJDUMP"
12489 fi
12490
12491 test -z "$OBJDUMP" && OBJDUMP=objdump
12492
12493
12494
12495
12496
12497
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12499 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12500 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503   lt_cv_file_magic_cmd='$MAGIC_CMD'
12504 lt_cv_file_magic_test_file=
12505 lt_cv_deplibs_check_method='unknown'
12506 # Need to set the preceding variable on all platforms that support
12507 # interlibrary dependencies.
12508 # 'none' -- dependencies not supported.
12509 # `unknown' -- same as none, but documents that we really don't know.
12510 # 'pass_all' -- all dependencies passed with no checks.
12511 # 'test_compile' -- check by making test program.
12512 # 'file_magic [[regex]]' -- check by looking for files in library path
12513 # which responds to the $file_magic_cmd with a given extended regex.
12514 # If you have `file' or equivalent on your system and you're not sure
12515 # whether `pass_all' will *always* work, you probably want this one.
12516
12517 case $host_os in
12518 aix[4-9]*)
12519   lt_cv_deplibs_check_method=pass_all
12520   ;;
12521
12522 beos*)
12523   lt_cv_deplibs_check_method=pass_all
12524   ;;
12525
12526 bsdi[45]*)
12527   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12528   lt_cv_file_magic_cmd='/usr/bin/file -L'
12529   lt_cv_file_magic_test_file=/shlib/libc.so
12530   ;;
12531
12532 cygwin*)
12533   # func_win32_libid is a shell function defined in ltmain.sh
12534   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12535   lt_cv_file_magic_cmd='func_win32_libid'
12536   ;;
12537
12538 mingw* | pw32*)
12539   # Base MSYS/MinGW do not provide the 'file' command needed by
12540   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12541   # unless we find 'file', for example because we are cross-compiling.
12542   if ( file / ) >/dev/null 2>&1; then
12543     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12544     lt_cv_file_magic_cmd='func_win32_libid'
12545   else
12546     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12547     lt_cv_file_magic_cmd='$OBJDUMP -f'
12548   fi
12549   ;;
12550
12551 cegcc)
12552   # use the weaker test based on 'objdump'. See mingw*.
12553   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12554   lt_cv_file_magic_cmd='$OBJDUMP -f'
12555   ;;
12556
12557 darwin* | rhapsody*)
12558   lt_cv_deplibs_check_method=pass_all
12559   ;;
12560
12561 freebsd* | dragonfly*)
12562   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12563     case $host_cpu in
12564     i*86 )
12565       # Not sure whether the presence of OpenBSD here was a mistake.
12566       # Let's accept both of them until this is cleared up.
12567       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12568       lt_cv_file_magic_cmd=/usr/bin/file
12569       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12570       ;;
12571     esac
12572   else
12573     lt_cv_deplibs_check_method=pass_all
12574   fi
12575   ;;
12576
12577 gnu*)
12578   lt_cv_deplibs_check_method=pass_all
12579   ;;
12580
12581 hpux10.20* | hpux11*)
12582   lt_cv_file_magic_cmd=/usr/bin/file
12583   case $host_cpu in
12584   ia64*)
12585     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12586     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12587     ;;
12588   hppa*64*)
12589     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]'
12590     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12591     ;;
12592   *)
12593     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12594     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12595     ;;
12596   esac
12597   ;;
12598
12599 interix[3-9]*)
12600   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12601   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12602   ;;
12603
12604 irix5* | irix6* | nonstopux*)
12605   case $LD in
12606   *-32|*"-32 ") libmagic=32-bit;;
12607   *-n32|*"-n32 ") libmagic=N32;;
12608   *-64|*"-64 ") libmagic=64-bit;;
12609   *) libmagic=never-match;;
12610   esac
12611   lt_cv_deplibs_check_method=pass_all
12612   ;;
12613
12614 # This must be Linux ELF.
12615 linux* | k*bsd*-gnu)
12616   lt_cv_deplibs_check_method=pass_all
12617   ;;
12618
12619 netbsd*)
12620   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12622   else
12623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12624   fi
12625   ;;
12626
12627 newos6*)
12628   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12629   lt_cv_file_magic_cmd=/usr/bin/file
12630   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12631   ;;
12632
12633 *nto* | *qnx*)
12634   lt_cv_deplibs_check_method=pass_all
12635   ;;
12636
12637 openbsd*)
12638   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12640   else
12641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12642   fi
12643   ;;
12644
12645 osf3* | osf4* | osf5*)
12646   lt_cv_deplibs_check_method=pass_all
12647   ;;
12648
12649 rdos*)
12650   lt_cv_deplibs_check_method=pass_all
12651   ;;
12652
12653 solaris*)
12654   lt_cv_deplibs_check_method=pass_all
12655   ;;
12656
12657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658   lt_cv_deplibs_check_method=pass_all
12659   ;;
12660
12661 sysv4 | sysv4.3*)
12662   case $host_vendor in
12663   motorola)
12664     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]'
12665     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12666     ;;
12667   ncr)
12668     lt_cv_deplibs_check_method=pass_all
12669     ;;
12670   sequent)
12671     lt_cv_file_magic_cmd='/bin/file'
12672     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12673     ;;
12674   sni)
12675     lt_cv_file_magic_cmd='/bin/file'
12676     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12677     lt_cv_file_magic_test_file=/lib/libc.so
12678     ;;
12679   siemens)
12680     lt_cv_deplibs_check_method=pass_all
12681     ;;
12682   pc)
12683     lt_cv_deplibs_check_method=pass_all
12684     ;;
12685   esac
12686   ;;
12687
12688 tpf*)
12689   lt_cv_deplibs_check_method=pass_all
12690   ;;
12691 esac
12692
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12695 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12696 file_magic_cmd=$lt_cv_file_magic_cmd
12697 deplibs_check_method=$lt_cv_deplibs_check_method
12698 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711 if test -n "$ac_tool_prefix"; then
12712   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12713 set dummy ${ac_tool_prefix}ar; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_AR+set}" = set; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   if test -n "$AR"; then
12720   ac_cv_prog_AR="$AR" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725   IFS=$as_save_IFS
12726   test -z "$as_dir" && as_dir=.
12727     for ac_exec_ext in '' $ac_executable_extensions; do
12728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729     ac_cv_prog_AR="${ac_tool_prefix}ar"
12730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731     break 2
12732   fi
12733 done
12734   done
12735 IFS=$as_save_IFS
12736
12737 fi
12738 fi
12739 AR=$ac_cv_prog_AR
12740 if test -n "$AR"; then
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12742 $as_echo "$AR" >&6; }
12743 else
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749 fi
12750 if test -z "$ac_cv_prog_AR"; then
12751   ac_ct_AR=$AR
12752   # Extract the first word of "ar", so it can be a program name with args.
12753 set dummy ar; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   if test -n "$ac_ct_AR"; then
12760   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765   IFS=$as_save_IFS
12766   test -z "$as_dir" && as_dir=.
12767     for ac_exec_ext in '' $ac_executable_extensions; do
12768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769     ac_cv_prog_ac_ct_AR="ar"
12770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771     break 2
12772   fi
12773 done
12774   done
12775 IFS=$as_save_IFS
12776
12777 fi
12778 fi
12779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12780 if test -n "$ac_ct_AR"; then
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12782 $as_echo "$ac_ct_AR" >&6; }
12783 else
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 fi
12787
12788   if test "x$ac_ct_AR" = x; then
12789     AR="false"
12790   else
12791     case $cross_compiling:$ac_tool_warned in
12792 yes:)
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12796 esac
12797     AR=$ac_ct_AR
12798   fi
12799 else
12800   AR="$ac_cv_prog_AR"
12801 fi
12802
12803 test -z "$AR" && AR=ar
12804 test -z "$AR_FLAGS" && AR_FLAGS=cru
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816 if test -n "$ac_tool_prefix"; then
12817   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}strip; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if test "${ac_cv_prog_STRIP+set}" = set; then :
12822   $as_echo_n "(cached) " >&6
12823 else
12824   if test -n "$STRIP"; then
12825   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832     for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839   done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 STRIP=$ac_cv_prog_STRIP
12845 if test -n "$STRIP"; then
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12847 $as_echo "$STRIP" >&6; }
12848 else
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854 fi
12855 if test -z "$ac_cv_prog_STRIP"; then
12856   ac_ct_STRIP=$STRIP
12857   # Extract the first word of "strip", so it can be a program name with args.
12858 set dummy strip; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   if test -n "$ac_ct_STRIP"; then
12865   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870   IFS=$as_save_IFS
12871   test -z "$as_dir" && as_dir=.
12872     for ac_exec_ext in '' $ac_executable_extensions; do
12873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874     ac_cv_prog_ac_ct_STRIP="strip"
12875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876     break 2
12877   fi
12878 done
12879   done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12885 if test -n "$ac_ct_STRIP"; then
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12887 $as_echo "$ac_ct_STRIP" >&6; }
12888 else
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893   if test "x$ac_ct_STRIP" = x; then
12894     STRIP=":"
12895   else
12896     case $cross_compiling:$ac_tool_warned in
12897 yes:)
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12900 ac_tool_warned=yes ;;
12901 esac
12902     STRIP=$ac_ct_STRIP
12903   fi
12904 else
12905   STRIP="$ac_cv_prog_STRIP"
12906 fi
12907
12908 test -z "$STRIP" && STRIP=:
12909
12910
12911
12912
12913
12914
12915 if test -n "$ac_tool_prefix"; then
12916   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12921   $as_echo_n "(cached) " >&6
12922 else
12923   if test -n "$RANLIB"; then
12924   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929   IFS=$as_save_IFS
12930   test -z "$as_dir" && as_dir=.
12931     for ac_exec_ext in '' $ac_executable_extensions; do
12932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935     break 2
12936   fi
12937 done
12938   done
12939 IFS=$as_save_IFS
12940
12941 fi
12942 fi
12943 RANLIB=$ac_cv_prog_RANLIB
12944 if test -n "$RANLIB"; then
12945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12946 $as_echo "$RANLIB" >&6; }
12947 else
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12950 fi
12951
12952
12953 fi
12954 if test -z "$ac_cv_prog_RANLIB"; then
12955   ac_ct_RANLIB=$RANLIB
12956   # Extract the first word of "ranlib", so it can be a program name with args.
12957 set dummy ranlib; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12961   $as_echo_n "(cached) " >&6
12962 else
12963   if test -n "$ac_ct_RANLIB"; then
12964   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12965 else
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12968 do
12969   IFS=$as_save_IFS
12970   test -z "$as_dir" && as_dir=.
12971     for ac_exec_ext in '' $ac_executable_extensions; do
12972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12973     ac_cv_prog_ac_ct_RANLIB="ranlib"
12974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12975     break 2
12976   fi
12977 done
12978   done
12979 IFS=$as_save_IFS
12980
12981 fi
12982 fi
12983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12984 if test -n "$ac_ct_RANLIB"; then
12985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12986 $as_echo "$ac_ct_RANLIB" >&6; }
12987 else
12988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992   if test "x$ac_ct_RANLIB" = x; then
12993     RANLIB=":"
12994   else
12995     case $cross_compiling:$ac_tool_warned in
12996 yes:)
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12999 ac_tool_warned=yes ;;
13000 esac
13001     RANLIB=$ac_ct_RANLIB
13002   fi
13003 else
13004   RANLIB="$ac_cv_prog_RANLIB"
13005 fi
13006
13007 test -z "$RANLIB" && RANLIB=:
13008
13009
13010
13011
13012
13013
13014 # Determine commands to create old-style static archives.
13015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13016 old_postinstall_cmds='chmod 644 $oldlib'
13017 old_postuninstall_cmds=
13018
13019 if test -n "$RANLIB"; then
13020   case $host_os in
13021   openbsd*)
13022     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13023     ;;
13024   *)
13025     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13026     ;;
13027   esac
13028   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13029 fi
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064 # If no C compiler was specified, use CC.
13065 LTCC=${LTCC-"$CC"}
13066
13067 # If no C compiler flags were specified, use CFLAGS.
13068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13069
13070 # Allow CC to be a program name with arguments.
13071 compiler=$CC
13072
13073
13074 # Check for command to grab the raw symbol name followed by C symbol from nm.
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13076 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13077 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080
13081 # These are sane defaults that work on at least a few old systems.
13082 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13083
13084 # Character class describing NM global symbol codes.
13085 symcode='[BCDEGRST]'
13086
13087 # Regexp to match symbols that can be accessed directly from C.
13088 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13089
13090 # Define system-specific variables.
13091 case $host_os in
13092 aix*)
13093   symcode='[BCDT]'
13094   ;;
13095 cygwin* | mingw* | pw32* | cegcc*)
13096   symcode='[ABCDGISTW]'
13097   ;;
13098 hpux*)
13099   if test "$host_cpu" = ia64; then
13100     symcode='[ABCDEGRST]'
13101   fi
13102   ;;
13103 irix* | nonstopux*)
13104   symcode='[BCDEGRST]'
13105   ;;
13106 osf*)
13107   symcode='[BCDEGQRST]'
13108   ;;
13109 solaris*)
13110   symcode='[BDRT]'
13111   ;;
13112 sco3.2v5*)
13113   symcode='[DT]'
13114   ;;
13115 sysv4.2uw2*)
13116   symcode='[DT]'
13117   ;;
13118 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13119   symcode='[ABDT]'
13120   ;;
13121 sysv4)
13122   symcode='[DFNSTU]'
13123   ;;
13124 esac
13125
13126 # If we're using GNU nm, then use its standard symbol codes.
13127 case `$NM -V 2>&1` in
13128 *GNU* | *'with BFD'*)
13129   symcode='[ABCDGIRSTW]' ;;
13130 esac
13131
13132 # Transform an extracted symbol line into a proper C declaration.
13133 # Some systems (esp. on ia64) link data and code symbols differently,
13134 # so use this general approach.
13135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13136
13137 # Transform an extracted symbol line into symbol name and symbol address
13138 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13139 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'"
13140
13141 # Handle CRLF in mingw tool chain
13142 opt_cr=
13143 case $build_os in
13144 mingw*)
13145   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13146   ;;
13147 esac
13148
13149 # Try without a prefix underscore, then with it.
13150 for ac_symprfx in "" "_"; do
13151
13152   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13153   symxfrm="\\1 $ac_symprfx\\2 \\2"
13154
13155   # Write the raw and C identifiers.
13156   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13157     # Fake it for dumpbin and say T for any non-static function
13158     # and D for any global variable.
13159     # Also find C++ and __fastcall symbols from MSVC++,
13160     # which start with @ or ?.
13161     lt_cv_sys_global_symbol_pipe="$AWK '"\
13162 "     {last_section=section; section=\$ 3};"\
13163 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13164 "     \$ 0!~/External *\|/{next};"\
13165 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13166 "     {if(hide[section]) next};"\
13167 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13168 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13169 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13170 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13171 "     ' prfx=^$ac_symprfx"
13172   else
13173     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13174   fi
13175
13176   # Check to see that the pipe works correctly.
13177   pipe_works=no
13178
13179   rm -f conftest*
13180   cat > conftest.$ac_ext <<_LT_EOF
13181 #ifdef __cplusplus
13182 extern "C" {
13183 #endif
13184 char nm_test_var;
13185 void nm_test_func(void);
13186 void nm_test_func(void){}
13187 #ifdef __cplusplus
13188 }
13189 #endif
13190 int main(){nm_test_var='a';nm_test_func();return(0);}
13191 _LT_EOF
13192
13193   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13194   (eval $ac_compile) 2>&5
13195   ac_status=$?
13196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13197   test $ac_status = 0; }; then
13198     # Now try to grab the symbols.
13199     nlist=conftest.nm
13200     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
13201   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13202   ac_status=$?
13203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204   test $ac_status = 0; } && test -s "$nlist"; then
13205       # Try sorting and uniquifying the output.
13206       if sort "$nlist" | uniq > "$nlist"T; then
13207         mv -f "$nlist"T "$nlist"
13208       else
13209         rm -f "$nlist"T
13210       fi
13211
13212       # Make sure that we snagged all the symbols we need.
13213       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13214         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13215           cat <<_LT_EOF > conftest.$ac_ext
13216 #ifdef __cplusplus
13217 extern "C" {
13218 #endif
13219
13220 _LT_EOF
13221           # Now generate the symbol file.
13222           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13223
13224           cat <<_LT_EOF >> conftest.$ac_ext
13225
13226 /* The mapping between symbol names and symbols.  */
13227 const struct {
13228   const char *name;
13229   void       *address;
13230 }
13231 lt__PROGRAM__LTX_preloaded_symbols[] =
13232 {
13233   { "@PROGRAM@", (void *) 0 },
13234 _LT_EOF
13235           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13236           cat <<\_LT_EOF >> conftest.$ac_ext
13237   {0, (void *) 0}
13238 };
13239
13240 /* This works around a problem in FreeBSD linker */
13241 #ifdef FREEBSD_WORKAROUND
13242 static const void *lt_preloaded_setup() {
13243   return lt__PROGRAM__LTX_preloaded_symbols;
13244 }
13245 #endif
13246
13247 #ifdef __cplusplus
13248 }
13249 #endif
13250 _LT_EOF
13251           # Now try linking the two files.
13252           mv conftest.$ac_objext conftstm.$ac_objext
13253           lt_save_LIBS="$LIBS"
13254           lt_save_CFLAGS="$CFLAGS"
13255           LIBS="conftstm.$ac_objext"
13256           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13257           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13258   (eval $ac_link) 2>&5
13259   ac_status=$?
13260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13262             pipe_works=yes
13263           fi
13264           LIBS="$lt_save_LIBS"
13265           CFLAGS="$lt_save_CFLAGS"
13266         else
13267           echo "cannot find nm_test_func in $nlist" >&5
13268         fi
13269       else
13270         echo "cannot find nm_test_var in $nlist" >&5
13271       fi
13272     else
13273       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13274     fi
13275   else
13276     echo "$progname: failed program was:" >&5
13277     cat conftest.$ac_ext >&5
13278   fi
13279   rm -rf conftest* conftst*
13280
13281   # Do not use the global_symbol_pipe unless it works.
13282   if test "$pipe_works" = yes; then
13283     break
13284   else
13285     lt_cv_sys_global_symbol_pipe=
13286   fi
13287 done
13288
13289 fi
13290
13291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13292   lt_cv_sys_global_symbol_to_cdecl=
13293 fi
13294 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13296 $as_echo "failed" >&6; }
13297 else
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13299 $as_echo "ok" >&6; }
13300 fi
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323 # Check whether --enable-libtool-lock was given.
13324 if test "${enable_libtool_lock+set}" = set; then :
13325   enableval=$enable_libtool_lock;
13326 fi
13327
13328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13329
13330 # Some flags need to be propagated to the compiler or linker for good
13331 # libtool support.
13332 case $host in
13333 ia64-*-hpux*)
13334   # Find out which ABI we are using.
13335   echo 'int i;' > conftest.$ac_ext
13336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13337   (eval $ac_compile) 2>&5
13338   ac_status=$?
13339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13340   test $ac_status = 0; }; then
13341     case `/usr/bin/file conftest.$ac_objext` in
13342       *ELF-32*)
13343         HPUX_IA64_MODE="32"
13344         ;;
13345       *ELF-64*)
13346         HPUX_IA64_MODE="64"
13347         ;;
13348     esac
13349   fi
13350   rm -rf conftest*
13351   ;;
13352 *-*-irix6*)
13353   # Find out which ABI we are using.
13354   echo '#line 13354 "configure"' > conftest.$ac_ext
13355   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13356   (eval $ac_compile) 2>&5
13357   ac_status=$?
13358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13359   test $ac_status = 0; }; then
13360     if test "$lt_cv_prog_gnu_ld" = yes; then
13361       case `/usr/bin/file conftest.$ac_objext` in
13362         *32-bit*)
13363           LD="${LD-ld} -melf32bsmip"
13364           ;;
13365         *N32*)
13366           LD="${LD-ld} -melf32bmipn32"
13367           ;;
13368         *64-bit*)
13369           LD="${LD-ld} -melf64bmip"
13370         ;;
13371       esac
13372     else
13373       case `/usr/bin/file conftest.$ac_objext` in
13374         *32-bit*)
13375           LD="${LD-ld} -32"
13376           ;;
13377         *N32*)
13378           LD="${LD-ld} -n32"
13379           ;;
13380         *64-bit*)
13381           LD="${LD-ld} -64"
13382           ;;
13383       esac
13384     fi
13385   fi
13386   rm -rf conftest*
13387   ;;
13388
13389 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13390 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13391   # Find out which ABI we are using.
13392   echo 'int i;' > conftest.$ac_ext
13393   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13394   (eval $ac_compile) 2>&5
13395   ac_status=$?
13396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397   test $ac_status = 0; }; then
13398     case `/usr/bin/file conftest.o` in
13399       *32-bit*)
13400         case $host in
13401           x86_64-*kfreebsd*-gnu)
13402             LD="${LD-ld} -m elf_i386_fbsd"
13403             ;;
13404           x86_64-*linux*)
13405             LD="${LD-ld} -m elf_i386"
13406             ;;
13407           ppc64-*linux*|powerpc64-*linux*)
13408             LD="${LD-ld} -m elf32ppclinux"
13409             ;;
13410           s390x-*linux*)
13411             LD="${LD-ld} -m elf_s390"
13412             ;;
13413           sparc64-*linux*)
13414             LD="${LD-ld} -m elf32_sparc"
13415             ;;
13416         esac
13417         ;;
13418       *64-bit*)
13419         case $host in
13420           x86_64-*kfreebsd*-gnu)
13421             LD="${LD-ld} -m elf_x86_64_fbsd"
13422             ;;
13423           x86_64-*linux*)
13424             LD="${LD-ld} -m elf_x86_64"
13425             ;;
13426           ppc*-*linux*|powerpc*-*linux*)
13427             LD="${LD-ld} -m elf64ppc"
13428             ;;
13429           s390*-*linux*|s390*-*tpf*)
13430             LD="${LD-ld} -m elf64_s390"
13431             ;;
13432           sparc*-*linux*)
13433             LD="${LD-ld} -m elf64_sparc"
13434             ;;
13435         esac
13436         ;;
13437     esac
13438   fi
13439   rm -rf conftest*
13440   ;;
13441
13442 *-*-sco3.2v5*)
13443   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13444   SAVE_CFLAGS="$CFLAGS"
13445   CFLAGS="$CFLAGS -belf"
13446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13447 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13448 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   ac_ext=c
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13456
13457      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h.  */
13459
13460 int
13461 main ()
13462 {
13463
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 if ac_fn_c_try_link "$LINENO"; then :
13469   lt_cv_cc_needs_belf=yes
13470 else
13471   lt_cv_cc_needs_belf=no
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext \
13474     conftest$ac_exeext conftest.$ac_ext
13475      ac_ext=c
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13480
13481 fi
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13483 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13484   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13485     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13486     CFLAGS="$SAVE_CFLAGS"
13487   fi
13488   ;;
13489 sparc*-*solaris*)
13490   # Find out which ABI we are using.
13491   echo 'int i;' > conftest.$ac_ext
13492   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13493   (eval $ac_compile) 2>&5
13494   ac_status=$?
13495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496   test $ac_status = 0; }; then
13497     case `/usr/bin/file conftest.o` in
13498     *64-bit*)
13499       case $lt_cv_prog_gnu_ld in
13500       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13501       *)
13502         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13503           LD="${LD-ld} -64"
13504         fi
13505         ;;
13506       esac
13507       ;;
13508     esac
13509   fi
13510   rm -rf conftest*
13511   ;;
13512 esac
13513
13514 need_locks="$enable_libtool_lock"
13515
13516
13517   case $host_os in
13518     rhapsody* | darwin*)
13519     if test -n "$ac_tool_prefix"; then
13520   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13521 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   if test -n "$DSYMUTIL"; then
13528   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533   IFS=$as_save_IFS
13534   test -z "$as_dir" && as_dir=.
13535     for ac_exec_ext in '' $ac_executable_extensions; do
13536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13537     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539     break 2
13540   fi
13541 done
13542   done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13548 if test -n "$DSYMUTIL"; then
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13550 $as_echo "$DSYMUTIL" >&6; }
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 fi
13555
13556
13557 fi
13558 if test -z "$ac_cv_prog_DSYMUTIL"; then
13559   ac_ct_DSYMUTIL=$DSYMUTIL
13560   # Extract the first word of "dsymutil", so it can be a program name with args.
13561 set dummy dsymutil; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13565   $as_echo_n "(cached) " >&6
13566 else
13567   if test -n "$ac_ct_DSYMUTIL"; then
13568   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13572 do
13573   IFS=$as_save_IFS
13574   test -z "$as_dir" && as_dir=.
13575     for ac_exec_ext in '' $ac_executable_extensions; do
13576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579     break 2
13580   fi
13581 done
13582   done
13583 IFS=$as_save_IFS
13584
13585 fi
13586 fi
13587 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13588 if test -n "$ac_ct_DSYMUTIL"; then
13589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13590 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13591 else
13592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13594 fi
13595
13596   if test "x$ac_ct_DSYMUTIL" = x; then
13597     DSYMUTIL=":"
13598   else
13599     case $cross_compiling:$ac_tool_warned in
13600 yes:)
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13603 ac_tool_warned=yes ;;
13604 esac
13605     DSYMUTIL=$ac_ct_DSYMUTIL
13606   fi
13607 else
13608   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13609 fi
13610
13611     if test -n "$ac_tool_prefix"; then
13612   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13613 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13615 $as_echo_n "checking for $ac_word... " >&6; }
13616 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13617   $as_echo_n "(cached) " >&6
13618 else
13619   if test -n "$NMEDIT"; then
13620   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13621 else
13622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623 for as_dir in $PATH
13624 do
13625   IFS=$as_save_IFS
13626   test -z "$as_dir" && as_dir=.
13627     for ac_exec_ext in '' $ac_executable_extensions; do
13628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13629     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13631     break 2
13632   fi
13633 done
13634   done
13635 IFS=$as_save_IFS
13636
13637 fi
13638 fi
13639 NMEDIT=$ac_cv_prog_NMEDIT
13640 if test -n "$NMEDIT"; then
13641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13642 $as_echo "$NMEDIT" >&6; }
13643 else
13644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13645 $as_echo "no" >&6; }
13646 fi
13647
13648
13649 fi
13650 if test -z "$ac_cv_prog_NMEDIT"; then
13651   ac_ct_NMEDIT=$NMEDIT
13652   # Extract the first word of "nmedit", so it can be a program name with args.
13653 set dummy nmedit; ac_word=$2
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13655 $as_echo_n "checking for $ac_word... " >&6; }
13656 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13657   $as_echo_n "(cached) " >&6
13658 else
13659   if test -n "$ac_ct_NMEDIT"; then
13660   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13661 else
13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663 for as_dir in $PATH
13664 do
13665   IFS=$as_save_IFS
13666   test -z "$as_dir" && as_dir=.
13667     for ac_exec_ext in '' $ac_executable_extensions; do
13668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13669     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13671     break 2
13672   fi
13673 done
13674   done
13675 IFS=$as_save_IFS
13676
13677 fi
13678 fi
13679 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13680 if test -n "$ac_ct_NMEDIT"; then
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13682 $as_echo "$ac_ct_NMEDIT" >&6; }
13683 else
13684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 $as_echo "no" >&6; }
13686 fi
13687
13688   if test "x$ac_ct_NMEDIT" = x; then
13689     NMEDIT=":"
13690   else
13691     case $cross_compiling:$ac_tool_warned in
13692 yes:)
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13695 ac_tool_warned=yes ;;
13696 esac
13697     NMEDIT=$ac_ct_NMEDIT
13698   fi
13699 else
13700   NMEDIT="$ac_cv_prog_NMEDIT"
13701 fi
13702
13703     if test -n "$ac_tool_prefix"; then
13704   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13705 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if test "${ac_cv_prog_LIPO+set}" = set; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   if test -n "$LIPO"; then
13712   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717   IFS=$as_save_IFS
13718   test -z "$as_dir" && as_dir=.
13719     for ac_exec_ext in '' $ac_executable_extensions; do
13720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13721     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13723     break 2
13724   fi
13725 done
13726   done
13727 IFS=$as_save_IFS
13728
13729 fi
13730 fi
13731 LIPO=$ac_cv_prog_LIPO
13732 if test -n "$LIPO"; then
13733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13734 $as_echo "$LIPO" >&6; }
13735 else
13736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13738 fi
13739
13740
13741 fi
13742 if test -z "$ac_cv_prog_LIPO"; then
13743   ac_ct_LIPO=$LIPO
13744   # Extract the first word of "lipo", so it can be a program name with args.
13745 set dummy lipo; ac_word=$2
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747 $as_echo_n "checking for $ac_word... " >&6; }
13748 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13749   $as_echo_n "(cached) " >&6
13750 else
13751   if test -n "$ac_ct_LIPO"; then
13752   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13753 else
13754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 for as_dir in $PATH
13756 do
13757   IFS=$as_save_IFS
13758   test -z "$as_dir" && as_dir=.
13759     for ac_exec_ext in '' $ac_executable_extensions; do
13760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13761     ac_cv_prog_ac_ct_LIPO="lipo"
13762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13763     break 2
13764   fi
13765 done
13766   done
13767 IFS=$as_save_IFS
13768
13769 fi
13770 fi
13771 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13772 if test -n "$ac_ct_LIPO"; then
13773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13774 $as_echo "$ac_ct_LIPO" >&6; }
13775 else
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778 fi
13779
13780   if test "x$ac_ct_LIPO" = x; then
13781     LIPO=":"
13782   else
13783     case $cross_compiling:$ac_tool_warned in
13784 yes:)
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13787 ac_tool_warned=yes ;;
13788 esac
13789     LIPO=$ac_ct_LIPO
13790   fi
13791 else
13792   LIPO="$ac_cv_prog_LIPO"
13793 fi
13794
13795     if test -n "$ac_tool_prefix"; then
13796   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13797 set dummy ${ac_tool_prefix}otool; ac_word=$2
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13799 $as_echo_n "checking for $ac_word... " >&6; }
13800 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13801   $as_echo_n "(cached) " >&6
13802 else
13803   if test -n "$OTOOL"; then
13804   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13805 else
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH
13808 do
13809   IFS=$as_save_IFS
13810   test -z "$as_dir" && as_dir=.
13811     for ac_exec_ext in '' $ac_executable_extensions; do
13812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13813     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13815     break 2
13816   fi
13817 done
13818   done
13819 IFS=$as_save_IFS
13820
13821 fi
13822 fi
13823 OTOOL=$ac_cv_prog_OTOOL
13824 if test -n "$OTOOL"; then
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13826 $as_echo "$OTOOL" >&6; }
13827 else
13828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13830 fi
13831
13832
13833 fi
13834 if test -z "$ac_cv_prog_OTOOL"; then
13835   ac_ct_OTOOL=$OTOOL
13836   # Extract the first word of "otool", so it can be a program name with args.
13837 set dummy otool; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839 $as_echo_n "checking for $ac_word... " >&6; }
13840 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13841   $as_echo_n "(cached) " >&6
13842 else
13843   if test -n "$ac_ct_OTOOL"; then
13844   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13845 else
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13848 do
13849   IFS=$as_save_IFS
13850   test -z "$as_dir" && as_dir=.
13851     for ac_exec_ext in '' $ac_executable_extensions; do
13852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853     ac_cv_prog_ac_ct_OTOOL="otool"
13854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13855     break 2
13856   fi
13857 done
13858   done
13859 IFS=$as_save_IFS
13860
13861 fi
13862 fi
13863 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13864 if test -n "$ac_ct_OTOOL"; then
13865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13866 $as_echo "$ac_ct_OTOOL" >&6; }
13867 else
13868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13870 fi
13871
13872   if test "x$ac_ct_OTOOL" = x; then
13873     OTOOL=":"
13874   else
13875     case $cross_compiling:$ac_tool_warned in
13876 yes:)
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13879 ac_tool_warned=yes ;;
13880 esac
13881     OTOOL=$ac_ct_OTOOL
13882   fi
13883 else
13884   OTOOL="$ac_cv_prog_OTOOL"
13885 fi
13886
13887     if test -n "$ac_tool_prefix"; then
13888   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13889 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891 $as_echo_n "checking for $ac_word... " >&6; }
13892 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13893   $as_echo_n "(cached) " >&6
13894 else
13895   if test -n "$OTOOL64"; then
13896   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13897 else
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13900 do
13901   IFS=$as_save_IFS
13902   test -z "$as_dir" && as_dir=.
13903     for ac_exec_ext in '' $ac_executable_extensions; do
13904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13907     break 2
13908   fi
13909 done
13910   done
13911 IFS=$as_save_IFS
13912
13913 fi
13914 fi
13915 OTOOL64=$ac_cv_prog_OTOOL64
13916 if test -n "$OTOOL64"; then
13917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13918 $as_echo "$OTOOL64" >&6; }
13919 else
13920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13922 fi
13923
13924
13925 fi
13926 if test -z "$ac_cv_prog_OTOOL64"; then
13927   ac_ct_OTOOL64=$OTOOL64
13928   # Extract the first word of "otool64", so it can be a program name with args.
13929 set dummy otool64; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935   if test -n "$ac_ct_OTOOL64"; then
13936   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941   IFS=$as_save_IFS
13942   test -z "$as_dir" && as_dir=.
13943     for ac_exec_ext in '' $ac_executable_extensions; do
13944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945     ac_cv_prog_ac_ct_OTOOL64="otool64"
13946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947     break 2
13948   fi
13949 done
13950   done
13951 IFS=$as_save_IFS
13952
13953 fi
13954 fi
13955 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13956 if test -n "$ac_ct_OTOOL64"; then
13957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13958 $as_echo "$ac_ct_OTOOL64" >&6; }
13959 else
13960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13962 fi
13963
13964   if test "x$ac_ct_OTOOL64" = x; then
13965     OTOOL64=":"
13966   else
13967     case $cross_compiling:$ac_tool_warned in
13968 yes:)
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13971 ac_tool_warned=yes ;;
13972 esac
13973     OTOOL64=$ac_ct_OTOOL64
13974   fi
13975 else
13976   OTOOL64="$ac_cv_prog_OTOOL64"
13977 fi
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14006 $as_echo_n "checking for -single_module linker flag... " >&6; }
14007 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14008   $as_echo_n "(cached) " >&6
14009 else
14010   lt_cv_apple_cc_single_mod=no
14011       if test -z "${LT_MULTI_MODULE}"; then
14012         # By default we will add the -single_module flag. You can override
14013         # by either setting the environment variable LT_MULTI_MODULE
14014         # non-empty at configure time, or by adding -multi_module to the
14015         # link flags.
14016         rm -rf libconftest.dylib*
14017         echo "int foo(void){return 1;}" > conftest.c
14018         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14019 -dynamiclib -Wl,-single_module conftest.c" >&5
14020         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14021           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14022         _lt_result=$?
14023         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14024           lt_cv_apple_cc_single_mod=yes
14025         else
14026           cat conftest.err >&5
14027         fi
14028         rm -rf libconftest.dylib*
14029         rm -f conftest.*
14030       fi
14031 fi
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14036 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14037   $as_echo_n "(cached) " >&6
14038 else
14039   lt_cv_ld_exported_symbols_list=no
14040       save_LDFLAGS=$LDFLAGS
14041       echo "_main" > conftest.sym
14042       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14043       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045
14046 int
14047 main ()
14048 {
14049
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_link "$LINENO"; then :
14055   lt_cv_ld_exported_symbols_list=yes
14056 else
14057   lt_cv_ld_exported_symbols_list=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext \
14060     conftest$ac_exeext conftest.$ac_ext
14061         LDFLAGS="$save_LDFLAGS"
14062
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14065 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14066     case $host_os in
14067     rhapsody* | darwin1.[012])
14068       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14069     darwin1.*)
14070       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14071     darwin*) # darwin 5.x on
14072       # if running on 10.5 or later, the deployment target defaults
14073       # to the OS version, if on x86, and 10.4, the deployment
14074       # target defaults to 10.4. Don't you love it?
14075       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14076         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14077           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14078         10.[012]*)
14079           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14080         10.*)
14081           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14082       esac
14083     ;;
14084   esac
14085     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14086       _lt_dar_single_mod='$single_module'
14087     fi
14088     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14089       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14090     else
14091       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14092     fi
14093     if test "$DSYMUTIL" != ":"; then
14094       _lt_dsymutil='~$DSYMUTIL $lib || :'
14095     else
14096       _lt_dsymutil=
14097     fi
14098     ;;
14099   esac
14100
14101 for ac_header in dlfcn.h
14102 do :
14103   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14104 "
14105 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14106   cat >>confdefs.h <<_ACEOF
14107 #define HAVE_DLFCN_H 1
14108 _ACEOF
14109
14110 fi
14111
14112 done
14113
14114
14115
14116 ac_ext=cpp
14117 ac_cpp='$CXXCPP $CPPFLAGS'
14118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14121 if test -z "$CXX"; then
14122   if test -n "$CCC"; then
14123     CXX=$CCC
14124   else
14125     if test -n "$ac_tool_prefix"; then
14126   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14127   do
14128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if test "${ac_cv_prog_CXX+set}" = set; then :
14133   $as_echo_n "(cached) " >&6
14134 else
14135   if test -n "$CXX"; then
14136   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14137 else
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14140 do
14141   IFS=$as_save_IFS
14142   test -z "$as_dir" && as_dir=.
14143     for ac_exec_ext in '' $ac_executable_extensions; do
14144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14145     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147     break 2
14148   fi
14149 done
14150   done
14151 IFS=$as_save_IFS
14152
14153 fi
14154 fi
14155 CXX=$ac_cv_prog_CXX
14156 if test -n "$CXX"; then
14157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14158 $as_echo "$CXX" >&6; }
14159 else
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14162 fi
14163
14164
14165     test -n "$CXX" && break
14166   done
14167 fi
14168 if test -z "$CXX"; then
14169   ac_ct_CXX=$CXX
14170   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14171 do
14172   # Extract the first word of "$ac_prog", so it can be a program name with args.
14173 set dummy $ac_prog; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   if test -n "$ac_ct_CXX"; then
14180   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185   IFS=$as_save_IFS
14186   test -z "$as_dir" && as_dir=.
14187     for ac_exec_ext in '' $ac_executable_extensions; do
14188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14189     ac_cv_prog_ac_ct_CXX="$ac_prog"
14190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191     break 2
14192   fi
14193 done
14194   done
14195 IFS=$as_save_IFS
14196
14197 fi
14198 fi
14199 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14200 if test -n "$ac_ct_CXX"; then
14201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14202 $as_echo "$ac_ct_CXX" >&6; }
14203 else
14204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14206 fi
14207
14208
14209   test -n "$ac_ct_CXX" && break
14210 done
14211
14212   if test "x$ac_ct_CXX" = x; then
14213     CXX="g++"
14214   else
14215     case $cross_compiling:$ac_tool_warned in
14216 yes:)
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14219 ac_tool_warned=yes ;;
14220 esac
14221     CXX=$ac_ct_CXX
14222   fi
14223 fi
14224
14225   fi
14226 fi
14227 # Provide some information about the compiler.
14228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14229 set X $ac_compile
14230 ac_compiler=$2
14231 for ac_option in --version -v -V -qversion; do
14232   { { ac_try="$ac_compiler $ac_option >&5"
14233 case "(($ac_try" in
14234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235   *) ac_try_echo=$ac_try;;
14236 esac
14237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14238 $as_echo "$ac_try_echo"; } >&5
14239   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14240   ac_status=$?
14241   if test -s conftest.err; then
14242     sed '10a\
14243 ... rest of stderr output deleted ...
14244          10q' conftest.err >conftest.er1
14245     cat conftest.er1 >&5
14246   fi
14247   rm -f conftest.er1 conftest.err
14248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249   test $ac_status = 0; }
14250 done
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14253 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14254 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14255   $as_echo_n "(cached) " >&6
14256 else
14257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h.  */
14259
14260 int
14261 main ()
14262 {
14263 #ifndef __GNUC__
14264        choke me
14265 #endif
14266
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_cxx_try_compile "$LINENO"; then :
14272   ac_compiler_gnu=yes
14273 else
14274   ac_compiler_gnu=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14278
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14281 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14282 if test $ac_compiler_gnu = yes; then
14283   GXX=yes
14284 else
14285   GXX=
14286 fi
14287 ac_test_CXXFLAGS=${CXXFLAGS+set}
14288 ac_save_CXXFLAGS=$CXXFLAGS
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14290 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14291 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14295    ac_cxx_werror_flag=yes
14296    ac_cv_prog_cxx_g=no
14297    CXXFLAGS="-g"
14298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h.  */
14300
14301 int
14302 main ()
14303 {
14304
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_cxx_try_compile "$LINENO"; then :
14310   ac_cv_prog_cxx_g=yes
14311 else
14312   CXXFLAGS=""
14313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h.  */
14315
14316 int
14317 main ()
14318 {
14319
14320   ;
14321   return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_cxx_try_compile "$LINENO"; then :
14325
14326 else
14327   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14328          CXXFLAGS="-g"
14329          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h.  */
14331
14332 int
14333 main ()
14334 {
14335
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_cxx_try_compile "$LINENO"; then :
14341   ac_cv_prog_cxx_g=yes
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 fi
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14351 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14352 if test "$ac_test_CXXFLAGS" = set; then
14353   CXXFLAGS=$ac_save_CXXFLAGS
14354 elif test $ac_cv_prog_cxx_g = yes; then
14355   if test "$GXX" = yes; then
14356     CXXFLAGS="-g -O2"
14357   else
14358     CXXFLAGS="-g"
14359   fi
14360 else
14361   if test "$GXX" = yes; then
14362     CXXFLAGS="-O2"
14363   else
14364     CXXFLAGS=
14365   fi
14366 fi
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14374     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14375     (test "X$CXX" != "Xg++"))) ; then
14376   ac_ext=cpp
14377 ac_cpp='$CXXCPP $CPPFLAGS'
14378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14382 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14383 if test -z "$CXXCPP"; then
14384   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14385   $as_echo_n "(cached) " >&6
14386 else
14387       # Double quotes because CXXCPP needs to be expanded
14388     for CXXCPP in "$CXX -E" "/lib/cpp"
14389     do
14390       ac_preproc_ok=false
14391 for ac_cxx_preproc_warn_flag in '' yes
14392 do
14393   # Use a header file that comes with gcc, so configuring glibc
14394   # with a fresh cross-compiler works.
14395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14396   # <limits.h> exists even on freestanding compilers.
14397   # On the NeXT, cc -E runs the code through the compiler's parser,
14398   # not just through cpp. "Syntax error" is here to catch this case.
14399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h.  */
14401 #ifdef __STDC__
14402 # include <limits.h>
14403 #else
14404 # include <assert.h>
14405 #endif
14406                      Syntax error
14407 _ACEOF
14408 if ac_fn_cxx_try_cpp "$LINENO"; then :
14409
14410 else
14411   # Broken: fails on valid input.
14412 continue
14413 fi
14414 rm -f conftest.err conftest.$ac_ext
14415
14416   # OK, works on sane cases.  Now check whether nonexistent headers
14417   # can be detected and how.
14418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h.  */
14420 #include <ac_nonexistent.h>
14421 _ACEOF
14422 if ac_fn_cxx_try_cpp "$LINENO"; then :
14423   # Broken: success on invalid input.
14424 continue
14425 else
14426   # Passes both tests.
14427 ac_preproc_ok=:
14428 break
14429 fi
14430 rm -f conftest.err conftest.$ac_ext
14431
14432 done
14433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14434 rm -f conftest.err conftest.$ac_ext
14435 if $ac_preproc_ok; then :
14436   break
14437 fi
14438
14439     done
14440     ac_cv_prog_CXXCPP=$CXXCPP
14441
14442 fi
14443   CXXCPP=$ac_cv_prog_CXXCPP
14444 else
14445   ac_cv_prog_CXXCPP=$CXXCPP
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14448 $as_echo "$CXXCPP" >&6; }
14449 ac_preproc_ok=false
14450 for ac_cxx_preproc_warn_flag in '' yes
14451 do
14452   # Use a header file that comes with gcc, so configuring glibc
14453   # with a fresh cross-compiler works.
14454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14455   # <limits.h> exists even on freestanding compilers.
14456   # On the NeXT, cc -E runs the code through the compiler's parser,
14457   # not just through cpp. "Syntax error" is here to catch this case.
14458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h.  */
14460 #ifdef __STDC__
14461 # include <limits.h>
14462 #else
14463 # include <assert.h>
14464 #endif
14465                      Syntax error
14466 _ACEOF
14467 if ac_fn_cxx_try_cpp "$LINENO"; then :
14468
14469 else
14470   # Broken: fails on valid input.
14471 continue
14472 fi
14473 rm -f conftest.err conftest.$ac_ext
14474
14475   # OK, works on sane cases.  Now check whether nonexistent headers
14476   # can be detected and how.
14477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h.  */
14479 #include <ac_nonexistent.h>
14480 _ACEOF
14481 if ac_fn_cxx_try_cpp "$LINENO"; then :
14482   # Broken: success on invalid input.
14483 continue
14484 else
14485   # Passes both tests.
14486 ac_preproc_ok=:
14487 break
14488 fi
14489 rm -f conftest.err conftest.$ac_ext
14490
14491 done
14492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14493 rm -f conftest.err conftest.$ac_ext
14494 if $ac_preproc_ok; then :
14495
14496 else
14497   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14499 _lt_caught_CXX_error=yes; }
14500 fi
14501
14502 ac_ext=c
14503 ac_cpp='$CPP $CPPFLAGS'
14504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14507
14508 else
14509   _lt_caught_CXX_error=yes
14510 fi
14511
14512
14513
14514
14515
14516 ac_ext=f
14517 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14518 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14520 if test -n "$ac_tool_prefix"; then
14521   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
14522   do
14523     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14526 $as_echo_n "checking for $ac_word... " >&6; }
14527 if test "${ac_cv_prog_F77+set}" = set; then :
14528   $as_echo_n "(cached) " >&6
14529 else
14530   if test -n "$F77"; then
14531   ac_cv_prog_F77="$F77" # Let the user override the test.
14532 else
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14535 do
14536   IFS=$as_save_IFS
14537   test -z "$as_dir" && as_dir=.
14538     for ac_exec_ext in '' $ac_executable_extensions; do
14539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14540     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14542     break 2
14543   fi
14544 done
14545   done
14546 IFS=$as_save_IFS
14547
14548 fi
14549 fi
14550 F77=$ac_cv_prog_F77
14551 if test -n "$F77"; then
14552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
14553 $as_echo "$F77" >&6; }
14554 else
14555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 $as_echo "no" >&6; }
14557 fi
14558
14559
14560     test -n "$F77" && break
14561   done
14562 fi
14563 if test -z "$F77"; then
14564   ac_ct_F77=$F77
14565   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
14566 do
14567   # Extract the first word of "$ac_prog", so it can be a program name with args.
14568 set dummy $ac_prog; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
14572   $as_echo_n "(cached) " >&6
14573 else
14574   if test -n "$ac_ct_F77"; then
14575   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14576 else
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14579 do
14580   IFS=$as_save_IFS
14581   test -z "$as_dir" && as_dir=.
14582     for ac_exec_ext in '' $ac_executable_extensions; do
14583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14584     ac_cv_prog_ac_ct_F77="$ac_prog"
14585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14586     break 2
14587   fi
14588 done
14589   done
14590 IFS=$as_save_IFS
14591
14592 fi
14593 fi
14594 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14595 if test -n "$ac_ct_F77"; then
14596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
14597 $as_echo "$ac_ct_F77" >&6; }
14598 else
14599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14601 fi
14602
14603
14604   test -n "$ac_ct_F77" && break
14605 done
14606
14607   if test "x$ac_ct_F77" = x; then
14608     F77=""
14609   else
14610     case $cross_compiling:$ac_tool_warned in
14611 yes:)
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14614 ac_tool_warned=yes ;;
14615 esac
14616     F77=$ac_ct_F77
14617   fi
14618 fi
14619
14620
14621 # Provide some information about the compiler.
14622 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
14623 set X $ac_compile
14624 ac_compiler=$2
14625 for ac_option in --version -v -V -qversion; do
14626   { { ac_try="$ac_compiler $ac_option >&5"
14627 case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14632 $as_echo "$ac_try_echo"; } >&5
14633   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14634   ac_status=$?
14635   if test -s conftest.err; then
14636     sed '10a\
14637 ... rest of stderr output deleted ...
14638          10q' conftest.err >conftest.er1
14639     cat conftest.er1 >&5
14640   fi
14641   rm -f conftest.er1 conftest.err
14642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643   test $ac_status = 0; }
14644 done
14645 rm -f a.out
14646
14647 # If we don't use `.F' as extension, the preprocessor is not run on the
14648 # input file.  (Note that this only needs to work for GNU compilers.)
14649 ac_save_ext=$ac_ext
14650 ac_ext=F
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
14652 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
14653 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
14654   $as_echo_n "(cached) " >&6
14655 else
14656   cat > conftest.$ac_ext <<_ACEOF
14657       program main
14658 #ifndef __GNUC__
14659        choke me
14660 #endif
14661
14662       end
14663 _ACEOF
14664 if ac_fn_f77_try_compile "$LINENO"; then :
14665   ac_compiler_gnu=yes
14666 else
14667   ac_compiler_gnu=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14671
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
14674 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
14675 ac_ext=$ac_save_ext
14676 ac_test_FFLAGS=${FFLAGS+set}
14677 ac_save_FFLAGS=$FFLAGS
14678 FFLAGS=
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
14680 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
14681 if test "${ac_cv_prog_f77_g+set}" = set; then :
14682   $as_echo_n "(cached) " >&6
14683 else
14684   FFLAGS=-g
14685 cat > conftest.$ac_ext <<_ACEOF
14686       program main
14687
14688       end
14689 _ACEOF
14690 if ac_fn_f77_try_compile "$LINENO"; then :
14691   ac_cv_prog_f77_g=yes
14692 else
14693   ac_cv_prog_f77_g=no
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14696
14697 fi
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
14699 $as_echo "$ac_cv_prog_f77_g" >&6; }
14700 if test "$ac_test_FFLAGS" = set; then
14701   FFLAGS=$ac_save_FFLAGS
14702 elif test $ac_cv_prog_f77_g = yes; then
14703   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14704     FFLAGS="-g -O2"
14705   else
14706     FFLAGS="-g"
14707   fi
14708 else
14709   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14710     FFLAGS="-O2"
14711   else
14712     FFLAGS=
14713   fi
14714 fi
14715
14716 if test $ac_compiler_gnu = yes; then
14717   G77=yes
14718 else
14719   G77=
14720 fi
14721 ac_ext=c
14722 ac_cpp='$CPP $CPPFLAGS'
14723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14726
14727 if test -z "$F77" || test "X$F77" = "Xno"; then
14728   _lt_disable_F77=yes
14729 fi
14730
14731
14732
14733
14734
14735 # Set options
14736
14737
14738
14739         enable_dlopen=no
14740
14741
14742
14743             # Check whether --enable-shared was given.
14744 if test "${enable_shared+set}" = set; then :
14745   enableval=$enable_shared; p=${PACKAGE-default}
14746     case $enableval in
14747     yes) enable_shared=yes ;;
14748     no) enable_shared=no ;;
14749     *)
14750       enable_shared=no
14751       # Look at the argument we got.  We use all the common list separators.
14752       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14753       for pkg in $enableval; do
14754         IFS="$lt_save_ifs"
14755         if test "X$pkg" = "X$p"; then
14756           enable_shared=yes
14757         fi
14758       done
14759       IFS="$lt_save_ifs"
14760       ;;
14761     esac
14762 else
14763   enable_shared=yes
14764 fi
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774   # Check whether --enable-static was given.
14775 if test "${enable_static+set}" = set; then :
14776   enableval=$enable_static; p=${PACKAGE-default}
14777     case $enableval in
14778     yes) enable_static=yes ;;
14779     no) enable_static=no ;;
14780     *)
14781      enable_static=no
14782       # Look at the argument we got.  We use all the common list separators.
14783       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14784       for pkg in $enableval; do
14785         IFS="$lt_save_ifs"
14786         if test "X$pkg" = "X$p"; then
14787           enable_static=yes
14788         fi
14789       done
14790       IFS="$lt_save_ifs"
14791       ;;
14792     esac
14793 else
14794   enable_static=yes
14795 fi
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806 # Check whether --with-pic was given.
14807 if test "${with_pic+set}" = set; then :
14808   withval=$with_pic; pic_mode="$withval"
14809 else
14810   pic_mode=default
14811 fi
14812
14813
14814 test -z "$pic_mode" && pic_mode=default
14815
14816
14817
14818
14819
14820
14821
14822   # Check whether --enable-fast-install was given.
14823 if test "${enable_fast_install+set}" = set; then :
14824   enableval=$enable_fast_install; p=${PACKAGE-default}
14825     case $enableval in
14826     yes) enable_fast_install=yes ;;
14827     no) enable_fast_install=no ;;
14828     *)
14829       enable_fast_install=no
14830       # Look at the argument we got.  We use all the common list separators.
14831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14832       for pkg in $enableval; do
14833         IFS="$lt_save_ifs"
14834         if test "X$pkg" = "X$p"; then
14835           enable_fast_install=yes
14836         fi
14837       done
14838       IFS="$lt_save_ifs"
14839       ;;
14840     esac
14841 else
14842   enable_fast_install=yes
14843 fi
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855 # This can be used to rebuild libtool when needed
14856 LIBTOOL_DEPS="$ltmain"
14857
14858 # Always use our own libtool.
14859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885 test -z "$LN_S" && LN_S="ln -s"
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900 if test -n "${ZSH_VERSION+set}" ; then
14901    setopt NO_GLOB_SUBST
14902 fi
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14905 $as_echo_n "checking for objdir... " >&6; }
14906 if test "${lt_cv_objdir+set}" = set; then :
14907   $as_echo_n "(cached) " >&6
14908 else
14909   rm -f .libs 2>/dev/null
14910 mkdir .libs 2>/dev/null
14911 if test -d .libs; then
14912   lt_cv_objdir=.libs
14913 else
14914   # MS-DOS does not allow filenames that begin with a dot.
14915   lt_cv_objdir=_libs
14916 fi
14917 rmdir .libs 2>/dev/null
14918 fi
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14920 $as_echo "$lt_cv_objdir" >&6; }
14921 objdir=$lt_cv_objdir
14922
14923
14924
14925
14926
14927 cat >>confdefs.h <<_ACEOF
14928 #define LT_OBJDIR "$lt_cv_objdir/"
14929 _ACEOF
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947 case $host_os in
14948 aix3*)
14949   # AIX sometimes has problems with the GCC collect2 program.  For some
14950   # reason, if we set the COLLECT_NAMES environment variable, the problems
14951   # vanish in a puff of smoke.
14952   if test "X${COLLECT_NAMES+set}" != Xset; then
14953     COLLECT_NAMES=
14954     export COLLECT_NAMES
14955   fi
14956   ;;
14957 esac
14958
14959 # Sed substitution that helps us do robust quoting.  It backslashifies
14960 # metacharacters that are still active within double-quoted strings.
14961 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14962
14963 # Same as above, but do not quote variable references.
14964 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14965
14966 # Sed substitution to delay expansion of an escaped shell variable in a
14967 # double_quote_subst'ed string.
14968 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14969
14970 # Sed substitution to delay expansion of an escaped single quote.
14971 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14972
14973 # Sed substitution to avoid accidental globbing in evaled expressions
14974 no_glob_subst='s/\*/\\\*/g'
14975
14976 # Global variables:
14977 ofile=libtool
14978 can_build_shared=yes
14979
14980 # All known linkers require a `.a' archive for static linking (except MSVC,
14981 # which needs '.lib').
14982 libext=a
14983
14984 with_gnu_ld="$lt_cv_prog_gnu_ld"
14985
14986 old_CC="$CC"
14987 old_CFLAGS="$CFLAGS"
14988
14989 # Set sane defaults for various variables
14990 test -z "$CC" && CC=cc
14991 test -z "$LTCC" && LTCC=$CC
14992 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14993 test -z "$LD" && LD=ld
14994 test -z "$ac_objext" && ac_objext=o
14995
14996 for cc_temp in $compiler""; do
14997   case $cc_temp in
14998     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14999     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15000     \-*) ;;
15001     *) break;;
15002   esac
15003 done
15004 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15005
15006
15007 # Only perform the check for file, if the check method requires it
15008 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15009 case $deplibs_check_method in
15010 file_magic*)
15011   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15013 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15015   $as_echo_n "(cached) " >&6
15016 else
15017   case $MAGIC_CMD in
15018 [\\/*] |  ?:[\\/]*)
15019   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15020   ;;
15021 *)
15022   lt_save_MAGIC_CMD="$MAGIC_CMD"
15023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15024   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15025   for ac_dir in $ac_dummy; do
15026     IFS="$lt_save_ifs"
15027     test -z "$ac_dir" && ac_dir=.
15028     if test -f $ac_dir/${ac_tool_prefix}file; then
15029       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15030       if test -n "$file_magic_test_file"; then
15031         case $deplibs_check_method in
15032         "file_magic "*)
15033           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15034           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15035           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15036             $EGREP "$file_magic_regex" > /dev/null; then
15037             :
15038           else
15039             cat <<_LT_EOF 1>&2
15040
15041 *** Warning: the command libtool uses to detect shared libraries,
15042 *** $file_magic_cmd, produces output that libtool cannot recognize.
15043 *** The result is that libtool may fail to recognize shared libraries
15044 *** as such.  This will affect the creation of libtool libraries that
15045 *** depend on shared libraries, but programs linked with such libtool
15046 *** libraries will work regardless of this problem.  Nevertheless, you
15047 *** may want to report the problem to your system manager and/or to
15048 *** bug-libtool@gnu.org
15049
15050 _LT_EOF
15051           fi ;;
15052         esac
15053       fi
15054       break
15055     fi
15056   done
15057   IFS="$lt_save_ifs"
15058   MAGIC_CMD="$lt_save_MAGIC_CMD"
15059   ;;
15060 esac
15061 fi
15062
15063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15064 if test -n "$MAGIC_CMD"; then
15065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15066 $as_echo "$MAGIC_CMD" >&6; }
15067 else
15068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 $as_echo "no" >&6; }
15070 fi
15071
15072
15073
15074
15075
15076 if test -z "$lt_cv_path_MAGIC_CMD"; then
15077   if test -n "$ac_tool_prefix"; then
15078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15079 $as_echo_n "checking for file... " >&6; }
15080 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15081   $as_echo_n "(cached) " >&6
15082 else
15083   case $MAGIC_CMD in
15084 [\\/*] |  ?:[\\/]*)
15085   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15086   ;;
15087 *)
15088   lt_save_MAGIC_CMD="$MAGIC_CMD"
15089   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15090   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15091   for ac_dir in $ac_dummy; do
15092     IFS="$lt_save_ifs"
15093     test -z "$ac_dir" && ac_dir=.
15094     if test -f $ac_dir/file; then
15095       lt_cv_path_MAGIC_CMD="$ac_dir/file"
15096       if test -n "$file_magic_test_file"; then
15097         case $deplibs_check_method in
15098         "file_magic "*)
15099           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15100           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15101           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15102             $EGREP "$file_magic_regex" > /dev/null; then
15103             :
15104           else
15105             cat <<_LT_EOF 1>&2
15106
15107 *** Warning: the command libtool uses to detect shared libraries,
15108 *** $file_magic_cmd, produces output that libtool cannot recognize.
15109 *** The result is that libtool may fail to recognize shared libraries
15110 *** as such.  This will affect the creation of libtool libraries that
15111 *** depend on shared libraries, but programs linked with such libtool
15112 *** libraries will work regardless of this problem.  Nevertheless, you
15113 *** may want to report the problem to your system manager and/or to
15114 *** bug-libtool@gnu.org
15115
15116 _LT_EOF
15117           fi ;;
15118         esac
15119       fi
15120       break
15121     fi
15122   done
15123   IFS="$lt_save_ifs"
15124   MAGIC_CMD="$lt_save_MAGIC_CMD"
15125   ;;
15126 esac
15127 fi
15128
15129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15130 if test -n "$MAGIC_CMD"; then
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15132 $as_echo "$MAGIC_CMD" >&6; }
15133 else
15134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135 $as_echo "no" >&6; }
15136 fi
15137
15138
15139   else
15140     MAGIC_CMD=:
15141   fi
15142 fi
15143
15144   fi
15145   ;;
15146 esac
15147
15148 # Use C for the default configuration in the libtool script
15149
15150 lt_save_CC="$CC"
15151 ac_ext=c
15152 ac_cpp='$CPP $CPPFLAGS'
15153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15156
15157
15158 # Source file extension for C test sources.
15159 ac_ext=c
15160
15161 # Object file extension for compiled C test sources.
15162 objext=o
15163 objext=$objext
15164
15165 # Code to be used in simple compile tests
15166 lt_simple_compile_test_code="int some_variable = 0;"
15167
15168 # Code to be used in simple link tests
15169 lt_simple_link_test_code='int main(){return(0);}'
15170
15171
15172
15173
15174
15175
15176
15177 # If no C compiler was specified, use CC.
15178 LTCC=${LTCC-"$CC"}
15179
15180 # If no C compiler flags were specified, use CFLAGS.
15181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15182
15183 # Allow CC to be a program name with arguments.
15184 compiler=$CC
15185
15186 # Save the default compiler, since it gets overwritten when the other
15187 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15188 compiler_DEFAULT=$CC
15189
15190 # save warnings/boilerplate of simple test code
15191 ac_outfile=conftest.$ac_objext
15192 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15193 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15194 _lt_compiler_boilerplate=`cat conftest.err`
15195 $RM conftest*
15196
15197 ac_outfile=conftest.$ac_objext
15198 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15199 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15200 _lt_linker_boilerplate=`cat conftest.err`
15201 $RM -r conftest*
15202
15203
15204 if test -n "$compiler"; then
15205
15206 lt_prog_compiler_no_builtin_flag=
15207
15208 if test "$GCC" = yes; then
15209   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15210
15211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15212 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15213 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15214   $as_echo_n "(cached) " >&6
15215 else
15216   lt_cv_prog_compiler_rtti_exceptions=no
15217    ac_outfile=conftest.$ac_objext
15218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15219    lt_compiler_flag="-fno-rtti -fno-exceptions"
15220    # Insert the option either (1) after the last *FLAGS variable, or
15221    # (2) before a word containing "conftest.", or (3) at the end.
15222    # Note that $ac_compile itself does not contain backslashes and begins
15223    # with a dollar sign (not a hyphen), so the echo should work correctly.
15224    # The option is referenced via a variable to avoid confusing sed.
15225    lt_compile=`echo "$ac_compile" | $SED \
15226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15228    -e 's:$: $lt_compiler_flag:'`
15229    (eval echo "\"\$as_me:15229: $lt_compile\"" >&5)
15230    (eval "$lt_compile" 2>conftest.err)
15231    ac_status=$?
15232    cat conftest.err >&5
15233    echo "$as_me:15233: \$? = $ac_status" >&5
15234    if (exit $ac_status) && test -s "$ac_outfile"; then
15235      # The compiler can only warn and ignore the option if not recognized
15236      # So say no if there are warnings other than the usual output.
15237      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15238      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15239      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15240        lt_cv_prog_compiler_rtti_exceptions=yes
15241      fi
15242    fi
15243    $RM conftest*
15244
15245 fi
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15247 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15248
15249 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15250     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15251 else
15252     :
15253 fi
15254
15255 fi
15256
15257
15258
15259
15260
15261
15262   lt_prog_compiler_wl=
15263 lt_prog_compiler_pic=
15264 lt_prog_compiler_static=
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15268
15269   if test "$GCC" = yes; then
15270     lt_prog_compiler_wl='-Wl,'
15271     lt_prog_compiler_static='-static'
15272
15273     case $host_os in
15274       aix*)
15275       # All AIX code is PIC.
15276       if test "$host_cpu" = ia64; then
15277         # AIX 5 now supports IA64 processor
15278         lt_prog_compiler_static='-Bstatic'
15279       fi
15280       ;;
15281
15282     amigaos*)
15283       case $host_cpu in
15284       powerpc)
15285             # see comment about AmigaOS4 .so support
15286             lt_prog_compiler_pic='-fPIC'
15287         ;;
15288       m68k)
15289             # FIXME: we need at least 68020 code to build shared libraries, but
15290             # adding the `-m68020' flag to GCC prevents building anything better,
15291             # like `-m68040'.
15292             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15293         ;;
15294       esac
15295       ;;
15296
15297     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15298       # PIC is the default for these OSes.
15299       ;;
15300
15301     mingw* | cygwin* | pw32* | os2* | cegcc*)
15302       # This hack is so that the source file can tell whether it is being
15303       # built for inclusion in a dll (and should export symbols for example).
15304       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15305       # (--disable-auto-import) libraries
15306       lt_prog_compiler_pic='-DDLL_EXPORT'
15307       ;;
15308
15309     darwin* | rhapsody*)
15310       # PIC is the default on this platform
15311       # Common symbols not allowed in MH_DYLIB files
15312       lt_prog_compiler_pic='-fno-common'
15313       ;;
15314
15315     hpux*)
15316       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15317       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15318       # sets the default TLS model and affects inlining.
15319       case $host_cpu in
15320       hppa*64*)
15321         # +Z the default
15322         ;;
15323       *)
15324         lt_prog_compiler_pic='-fPIC'
15325         ;;
15326       esac
15327       ;;
15328
15329     interix[3-9]*)
15330       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15331       # Instead, we relocate shared libraries at runtime.
15332       ;;
15333
15334     msdosdjgpp*)
15335       # Just because we use GCC doesn't mean we suddenly get shared libraries
15336       # on systems that don't support them.
15337       lt_prog_compiler_can_build_shared=no
15338       enable_shared=no
15339       ;;
15340
15341     *nto* | *qnx*)
15342       # QNX uses GNU C++, but need to define -shared option too, otherwise
15343       # it will coredump.
15344       lt_prog_compiler_pic='-fPIC -shared'
15345       ;;
15346
15347     sysv4*MP*)
15348       if test -d /usr/nec; then
15349         lt_prog_compiler_pic=-Kconform_pic
15350       fi
15351       ;;
15352
15353     *)
15354       lt_prog_compiler_pic='-fPIC'
15355       ;;
15356     esac
15357   else
15358     # PORTME Check for flag to pass linker flags through the system compiler.
15359     case $host_os in
15360     aix*)
15361       lt_prog_compiler_wl='-Wl,'
15362       if test "$host_cpu" = ia64; then
15363         # AIX 5 now supports IA64 processor
15364         lt_prog_compiler_static='-Bstatic'
15365       else
15366         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15367       fi
15368       ;;
15369
15370     mingw* | cygwin* | pw32* | os2* | cegcc*)
15371       # This hack is so that the source file can tell whether it is being
15372       # built for inclusion in a dll (and should export symbols for example).
15373       lt_prog_compiler_pic='-DDLL_EXPORT'
15374       ;;
15375
15376     hpux9* | hpux10* | hpux11*)
15377       lt_prog_compiler_wl='-Wl,'
15378       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15379       # not for PA HP-UX.
15380       case $host_cpu in
15381       hppa*64*|ia64*)
15382         # +Z the default
15383         ;;
15384       *)
15385         lt_prog_compiler_pic='+Z'
15386         ;;
15387       esac
15388       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15389       lt_prog_compiler_static='${wl}-a ${wl}archive'
15390       ;;
15391
15392     irix5* | irix6* | nonstopux*)
15393       lt_prog_compiler_wl='-Wl,'
15394       # PIC (with -KPIC) is the default.
15395       lt_prog_compiler_static='-non_shared'
15396       ;;
15397
15398     linux* | k*bsd*-gnu)
15399       case $cc_basename in
15400       # old Intel for x86_64 which still supported -KPIC.
15401       ecc*)
15402         lt_prog_compiler_wl='-Wl,'
15403         lt_prog_compiler_pic='-KPIC'
15404         lt_prog_compiler_static='-static'
15405         ;;
15406       # icc used to be incompatible with GCC.
15407       # ICC 10 doesn't accept -KPIC any more.
15408       icc* | ifort*)
15409         lt_prog_compiler_wl='-Wl,'
15410         lt_prog_compiler_pic='-fPIC'
15411         lt_prog_compiler_static='-static'
15412         ;;
15413       # Lahey Fortran 8.1.
15414       lf95*)
15415         lt_prog_compiler_wl='-Wl,'
15416         lt_prog_compiler_pic='--shared'
15417         lt_prog_compiler_static='--static'
15418         ;;
15419       pgcc* | pgf77* | pgf90* | pgf95*)
15420         # Portland Group compilers (*not* the Pentium gcc compiler,
15421         # which looks to be a dead project)
15422         lt_prog_compiler_wl='-Wl,'
15423         lt_prog_compiler_pic='-fpic'
15424         lt_prog_compiler_static='-Bstatic'
15425         ;;
15426       ccc*)
15427         lt_prog_compiler_wl='-Wl,'
15428         # All Alpha code is PIC.
15429         lt_prog_compiler_static='-non_shared'
15430         ;;
15431       xl*)
15432         # IBM XL C 8.0/Fortran 10.1 on PPC
15433         lt_prog_compiler_wl='-Wl,'
15434         lt_prog_compiler_pic='-qpic'
15435         lt_prog_compiler_static='-qstaticlink'
15436         ;;
15437       *)
15438         case `$CC -V 2>&1 | sed 5q` in
15439         *Sun\ C*)
15440           # Sun C 5.9
15441           lt_prog_compiler_pic='-KPIC'
15442           lt_prog_compiler_static='-Bstatic'
15443           lt_prog_compiler_wl='-Wl,'
15444           ;;
15445         *Sun\ F*)
15446           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15447           lt_prog_compiler_pic='-KPIC'
15448           lt_prog_compiler_static='-Bstatic'
15449           lt_prog_compiler_wl=''
15450           ;;
15451         esac
15452         ;;
15453       esac
15454       ;;
15455
15456     newsos6)
15457       lt_prog_compiler_pic='-KPIC'
15458       lt_prog_compiler_static='-Bstatic'
15459       ;;
15460
15461     *nto* | *qnx*)
15462       # QNX uses GNU C++, but need to define -shared option too, otherwise
15463       # it will coredump.
15464       lt_prog_compiler_pic='-fPIC -shared'
15465       ;;
15466
15467     osf3* | osf4* | osf5*)
15468       lt_prog_compiler_wl='-Wl,'
15469       # All OSF/1 code is PIC.
15470       lt_prog_compiler_static='-non_shared'
15471       ;;
15472
15473     rdos*)
15474       lt_prog_compiler_static='-non_shared'
15475       ;;
15476
15477     solaris*)
15478       lt_prog_compiler_pic='-KPIC'
15479       lt_prog_compiler_static='-Bstatic'
15480       case $cc_basename in
15481       f77* | f90* | f95*)
15482         lt_prog_compiler_wl='-Qoption ld ';;
15483       *)
15484         lt_prog_compiler_wl='-Wl,';;
15485       esac
15486       ;;
15487
15488     sunos4*)
15489       lt_prog_compiler_wl='-Qoption ld '
15490       lt_prog_compiler_pic='-PIC'
15491       lt_prog_compiler_static='-Bstatic'
15492       ;;
15493
15494     sysv4 | sysv4.2uw2* | sysv4.3*)
15495       lt_prog_compiler_wl='-Wl,'
15496       lt_prog_compiler_pic='-KPIC'
15497       lt_prog_compiler_static='-Bstatic'
15498       ;;
15499
15500     sysv4*MP*)
15501       if test -d /usr/nec ;then
15502         lt_prog_compiler_pic='-Kconform_pic'
15503         lt_prog_compiler_static='-Bstatic'
15504       fi
15505       ;;
15506
15507     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15508       lt_prog_compiler_wl='-Wl,'
15509       lt_prog_compiler_pic='-KPIC'
15510       lt_prog_compiler_static='-Bstatic'
15511       ;;
15512
15513     unicos*)
15514       lt_prog_compiler_wl='-Wl,'
15515       lt_prog_compiler_can_build_shared=no
15516       ;;
15517
15518     uts4*)
15519       lt_prog_compiler_pic='-pic'
15520       lt_prog_compiler_static='-Bstatic'
15521       ;;
15522
15523     *)
15524       lt_prog_compiler_can_build_shared=no
15525       ;;
15526     esac
15527   fi
15528
15529 case $host_os in
15530   # For platforms which do not support PIC, -DPIC is meaningless:
15531   *djgpp*)
15532     lt_prog_compiler_pic=
15533     ;;
15534   *)
15535     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15536     ;;
15537 esac
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15539 $as_echo "$lt_prog_compiler_pic" >&6; }
15540
15541
15542
15543
15544
15545
15546 #
15547 # Check to make sure the PIC flag actually works.
15548 #
15549 if test -n "$lt_prog_compiler_pic"; then
15550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15551 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15552 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15553   $as_echo_n "(cached) " >&6
15554 else
15555   lt_cv_prog_compiler_pic_works=no
15556    ac_outfile=conftest.$ac_objext
15557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15558    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15559    # Insert the option either (1) after the last *FLAGS variable, or
15560    # (2) before a word containing "conftest.", or (3) at the end.
15561    # Note that $ac_compile itself does not contain backslashes and begins
15562    # with a dollar sign (not a hyphen), so the echo should work correctly.
15563    # The option is referenced via a variable to avoid confusing sed.
15564    lt_compile=`echo "$ac_compile" | $SED \
15565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15567    -e 's:$: $lt_compiler_flag:'`
15568    (eval echo "\"\$as_me:15568: $lt_compile\"" >&5)
15569    (eval "$lt_compile" 2>conftest.err)
15570    ac_status=$?
15571    cat conftest.err >&5
15572    echo "$as_me:15572: \$? = $ac_status" >&5
15573    if (exit $ac_status) && test -s "$ac_outfile"; then
15574      # The compiler can only warn and ignore the option if not recognized
15575      # So say no if there are warnings other than the usual output.
15576      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15577      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15578      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15579        lt_cv_prog_compiler_pic_works=yes
15580      fi
15581    fi
15582    $RM conftest*
15583
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15586 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15587
15588 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15589     case $lt_prog_compiler_pic in
15590      "" | " "*) ;;
15591      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15592      esac
15593 else
15594     lt_prog_compiler_pic=
15595      lt_prog_compiler_can_build_shared=no
15596 fi
15597
15598 fi
15599
15600
15601
15602
15603
15604
15605 #
15606 # Check to make sure the static flag actually works.
15607 #
15608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15610 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15611 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15612   $as_echo_n "(cached) " >&6
15613 else
15614   lt_cv_prog_compiler_static_works=no
15615    save_LDFLAGS="$LDFLAGS"
15616    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15617    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15618    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15619      # The linker can only warn and ignore the option if not recognized
15620      # So say no if there are warnings
15621      if test -s conftest.err; then
15622        # Append any errors to the config.log.
15623        cat conftest.err 1>&5
15624        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15625        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15626        if diff conftest.exp conftest.er2 >/dev/null; then
15627          lt_cv_prog_compiler_static_works=yes
15628        fi
15629      else
15630        lt_cv_prog_compiler_static_works=yes
15631      fi
15632    fi
15633    $RM -r conftest*
15634    LDFLAGS="$save_LDFLAGS"
15635
15636 fi
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15638 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15639
15640 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15641     :
15642 else
15643     lt_prog_compiler_static=
15644 fi
15645
15646
15647
15648
15649
15650
15651
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15654 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15655   $as_echo_n "(cached) " >&6
15656 else
15657   lt_cv_prog_compiler_c_o=no
15658    $RM -r conftest 2>/dev/null
15659    mkdir conftest
15660    cd conftest
15661    mkdir out
15662    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15663
15664    lt_compiler_flag="-o out/conftest2.$ac_objext"
15665    # Insert the option either (1) after the last *FLAGS variable, or
15666    # (2) before a word containing "conftest.", or (3) at the end.
15667    # Note that $ac_compile itself does not contain backslashes and begins
15668    # with a dollar sign (not a hyphen), so the echo should work correctly.
15669    lt_compile=`echo "$ac_compile" | $SED \
15670    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15671    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15672    -e 's:$: $lt_compiler_flag:'`
15673    (eval echo "\"\$as_me:15673: $lt_compile\"" >&5)
15674    (eval "$lt_compile" 2>out/conftest.err)
15675    ac_status=$?
15676    cat out/conftest.err >&5
15677    echo "$as_me:15677: \$? = $ac_status" >&5
15678    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15679    then
15680      # The compiler can only warn and ignore the option if not recognized
15681      # So say no if there are warnings
15682      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15683      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15684      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15685        lt_cv_prog_compiler_c_o=yes
15686      fi
15687    fi
15688    chmod u+w . 2>&5
15689    $RM conftest*
15690    # SGI C++ compiler will create directory out/ii_files/ for
15691    # template instantiation
15692    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15693    $RM out/* && rmdir out
15694    cd ..
15695    $RM -r conftest
15696    $RM conftest*
15697
15698 fi
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15700 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15701
15702
15703
15704
15705
15706
15707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15709 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15710   $as_echo_n "(cached) " >&6
15711 else
15712   lt_cv_prog_compiler_c_o=no
15713    $RM -r conftest 2>/dev/null
15714    mkdir conftest
15715    cd conftest
15716    mkdir out
15717    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15718
15719    lt_compiler_flag="-o out/conftest2.$ac_objext"
15720    # Insert the option either (1) after the last *FLAGS variable, or
15721    # (2) before a word containing "conftest.", or (3) at the end.
15722    # Note that $ac_compile itself does not contain backslashes and begins
15723    # with a dollar sign (not a hyphen), so the echo should work correctly.
15724    lt_compile=`echo "$ac_compile" | $SED \
15725    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15727    -e 's:$: $lt_compiler_flag:'`
15728    (eval echo "\"\$as_me:15728: $lt_compile\"" >&5)
15729    (eval "$lt_compile" 2>out/conftest.err)
15730    ac_status=$?
15731    cat out/conftest.err >&5
15732    echo "$as_me:15732: \$? = $ac_status" >&5
15733    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15734    then
15735      # The compiler can only warn and ignore the option if not recognized
15736      # So say no if there are warnings
15737      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15738      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15739      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15740        lt_cv_prog_compiler_c_o=yes
15741      fi
15742    fi
15743    chmod u+w . 2>&5
15744    $RM conftest*
15745    # SGI C++ compiler will create directory out/ii_files/ for
15746    # template instantiation
15747    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15748    $RM out/* && rmdir out
15749    cd ..
15750    $RM -r conftest
15751    $RM conftest*
15752
15753 fi
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15755 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15756
15757
15758
15759
15760 hard_links="nottested"
15761 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15762   # do not overwrite the value of need_locks provided by the user
15763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15764 $as_echo_n "checking if we can lock with hard links... " >&6; }
15765   hard_links=yes
15766   $RM conftest*
15767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15768   touch conftest.a
15769   ln conftest.a conftest.b 2>&5 || hard_links=no
15770   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15772 $as_echo "$hard_links" >&6; }
15773   if test "$hard_links" = no; then
15774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15775 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15776     need_locks=warn
15777   fi
15778 else
15779   need_locks=no
15780 fi
15781
15782
15783
15784
15785
15786
15787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15788 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15789
15790   runpath_var=
15791   allow_undefined_flag=
15792   always_export_symbols=no
15793   archive_cmds=
15794   archive_expsym_cmds=
15795   compiler_needs_object=no
15796   enable_shared_with_static_runtimes=no
15797   export_dynamic_flag_spec=
15798   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15799   hardcode_automatic=no
15800   hardcode_direct=no
15801   hardcode_direct_absolute=no
15802   hardcode_libdir_flag_spec=
15803   hardcode_libdir_flag_spec_ld=
15804   hardcode_libdir_separator=
15805   hardcode_minus_L=no
15806   hardcode_shlibpath_var=unsupported
15807   inherit_rpath=no
15808   link_all_deplibs=unknown
15809   module_cmds=
15810   module_expsym_cmds=
15811   old_archive_from_new_cmds=
15812   old_archive_from_expsyms_cmds=
15813   thread_safe_flag_spec=
15814   whole_archive_flag_spec=
15815   # include_expsyms should be a list of space-separated symbols to be *always*
15816   # included in the symbol list
15817   include_expsyms=
15818   # exclude_expsyms can be an extended regexp of symbols to exclude
15819   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15820   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15821   # as well as any symbol that contains `d'.
15822   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15823   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15824   # platforms (ab)use it in PIC code, but their linkers get confused if
15825   # the symbol is explicitly referenced.  Since portable code cannot
15826   # rely on this symbol name, it's probably fine to never include it in
15827   # preloaded symbol tables.
15828   # Exclude shared library initialization/finalization symbols.
15829   extract_expsyms_cmds=
15830
15831   case $host_os in
15832   cygwin* | mingw* | pw32* | cegcc*)
15833     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15834     # When not using gcc, we currently assume that we are using
15835     # Microsoft Visual C++.
15836     if test "$GCC" != yes; then
15837       with_gnu_ld=no
15838     fi
15839     ;;
15840   interix*)
15841     # we just hope/assume this is gcc and not c89 (= MSVC++)
15842     with_gnu_ld=yes
15843     ;;
15844   openbsd*)
15845     with_gnu_ld=no
15846     ;;
15847   esac
15848
15849   ld_shlibs=yes
15850   if test "$with_gnu_ld" = yes; then
15851     # If archive_cmds runs LD, not CC, wlarc should be empty
15852     wlarc='${wl}'
15853
15854     # Set some defaults for GNU ld with shared library support. These
15855     # are reset later if shared libraries are not supported. Putting them
15856     # here allows them to be overridden if necessary.
15857     runpath_var=LD_RUN_PATH
15858     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15859     export_dynamic_flag_spec='${wl}--export-dynamic'
15860     # ancient GNU ld didn't support --whole-archive et. al.
15861     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15862       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15863     else
15864       whole_archive_flag_spec=
15865     fi
15866     supports_anon_versioning=no
15867     case `$LD -v 2>&1` in
15868       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15869       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15870       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15871       *\ 2.11.*) ;; # other 2.11 versions
15872       *) supports_anon_versioning=yes ;;
15873     esac
15874
15875     # See if GNU ld supports shared libraries.
15876     case $host_os in
15877     aix[3-9]*)
15878       # On AIX/PPC, the GNU linker is very broken
15879       if test "$host_cpu" != ia64; then
15880         ld_shlibs=no
15881         cat <<_LT_EOF 1>&2
15882
15883 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15884 *** to be unable to reliably create shared libraries on AIX.
15885 *** Therefore, libtool is disabling shared libraries support.  If you
15886 *** really care for shared libraries, you may want to modify your PATH
15887 *** so that a non-GNU linker is found, and then restart.
15888
15889 _LT_EOF
15890       fi
15891       ;;
15892
15893     amigaos*)
15894       case $host_cpu in
15895       powerpc)
15896             # see comment about AmigaOS4 .so support
15897             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898             archive_expsym_cmds=''
15899         ;;
15900       m68k)
15901             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)'
15902             hardcode_libdir_flag_spec='-L$libdir'
15903             hardcode_minus_L=yes
15904         ;;
15905       esac
15906       ;;
15907
15908     beos*)
15909       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15910         allow_undefined_flag=unsupported
15911         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15912         # support --undefined.  This deserves some investigation.  FIXME
15913         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15914       else
15915         ld_shlibs=no
15916       fi
15917       ;;
15918
15919     cygwin* | mingw* | pw32* | cegcc*)
15920       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15921       # as there is no search path for DLLs.
15922       hardcode_libdir_flag_spec='-L$libdir'
15923       allow_undefined_flag=unsupported
15924       always_export_symbols=no
15925       enable_shared_with_static_runtimes=yes
15926       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15927
15928       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15929         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15930         # If the export-symbols file already is a .def file (1st line
15931         # is EXPORTS), use it as is; otherwise, prepend...
15932         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15933           cp $export_symbols $output_objdir/$soname.def;
15934         else
15935           echo EXPORTS > $output_objdir/$soname.def;
15936           cat $export_symbols >> $output_objdir/$soname.def;
15937         fi~
15938         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15939       else
15940         ld_shlibs=no
15941       fi
15942       ;;
15943
15944     interix[3-9]*)
15945       hardcode_direct=no
15946       hardcode_shlibpath_var=no
15947       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15948       export_dynamic_flag_spec='${wl}-E'
15949       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15950       # Instead, shared libraries are loaded at an image base (0x10000000 by
15951       # default) and relocated if they conflict, which is a slow very memory
15952       # consuming and fragmenting process.  To avoid this, we pick a random,
15953       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15954       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15955       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15956       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'
15957       ;;
15958
15959     gnu* | linux* | tpf* | k*bsd*-gnu)
15960       tmp_diet=no
15961       if test "$host_os" = linux-dietlibc; then
15962         case $cc_basename in
15963           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15964         esac
15965       fi
15966       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15967          && test "$tmp_diet" = no
15968       then
15969         tmp_addflag=
15970         tmp_sharedflag='-shared'
15971         case $cc_basename,$host_cpu in
15972         pgcc*)                          # Portland Group C compiler
15973           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'
15974           tmp_addflag=' $pic_flag'
15975           ;;
15976         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15977           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'
15978           tmp_addflag=' $pic_flag -Mnomain' ;;
15979         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15980           tmp_addflag=' -i_dynamic' ;;
15981         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15982           tmp_addflag=' -i_dynamic -nofor_main' ;;
15983         ifc* | ifort*)                  # Intel Fortran compiler
15984           tmp_addflag=' -nofor_main' ;;
15985         lf95*)                          # Lahey Fortran 8.1
15986           whole_archive_flag_spec=
15987           tmp_sharedflag='--shared' ;;
15988         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
15989           tmp_sharedflag='-qmkshrobj'
15990           tmp_addflag= ;;
15991         esac
15992         case `$CC -V 2>&1 | sed 5q` in
15993         *Sun\ C*)                       # Sun C 5.9
15994           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'
15995           compiler_needs_object=yes
15996           tmp_sharedflag='-G' ;;
15997         *Sun\ F*)                       # Sun Fortran 8.3
15998           tmp_sharedflag='-G' ;;
15999         esac
16000         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001
16002         if test "x$supports_anon_versioning" = xyes; then
16003           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16004             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16005             echo "local: *; };" >> $output_objdir/$libname.ver~
16006             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16007         fi
16008
16009         case $cc_basename in
16010         xlf*)
16011           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16012           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16013           hardcode_libdir_flag_spec=
16014           hardcode_libdir_flag_spec_ld='-rpath $libdir'
16015           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16016           if test "x$supports_anon_versioning" = xyes; then
16017             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16018               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16019               echo "local: *; };" >> $output_objdir/$libname.ver~
16020               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16021           fi
16022           ;;
16023         esac
16024       else
16025         ld_shlibs=no
16026       fi
16027       ;;
16028
16029     netbsd*)
16030       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16031         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16032         wlarc=
16033       else
16034         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16036       fi
16037       ;;
16038
16039     solaris*)
16040       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16041         ld_shlibs=no
16042         cat <<_LT_EOF 1>&2
16043
16044 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16045 *** create shared libraries on Solaris systems.  Therefore, libtool
16046 *** is disabling shared libraries support.  We urge you to upgrade GNU
16047 *** binutils to release 2.9.1 or newer.  Another option is to modify
16048 *** your PATH or compiler configuration so that the native linker is
16049 *** used, and then restart.
16050
16051 _LT_EOF
16052       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16053         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16055       else
16056         ld_shlibs=no
16057       fi
16058       ;;
16059
16060     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16061       case `$LD -v 2>&1` in
16062         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16063         ld_shlibs=no
16064         cat <<_LT_EOF 1>&2
16065
16066 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16067 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16068 *** is disabling shared libraries support.  We urge you to upgrade GNU
16069 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16070 *** your PATH or compiler configuration so that the native linker is
16071 *** used, and then restart.
16072
16073 _LT_EOF
16074         ;;
16075         *)
16076           # For security reasons, it is highly recommended that you always
16077           # use absolute paths for naming shared libraries, and exclude the
16078           # DT_RUNPATH tag from executables and libraries.  But doing so
16079           # requires that you compile everything twice, which is a pain.
16080           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16081             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16082             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084           else
16085             ld_shlibs=no
16086           fi
16087         ;;
16088       esac
16089       ;;
16090
16091     sunos4*)
16092       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16093       wlarc=
16094       hardcode_direct=yes
16095       hardcode_shlibpath_var=no
16096       ;;
16097
16098     *)
16099       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16100         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16102       else
16103         ld_shlibs=no
16104       fi
16105       ;;
16106     esac
16107
16108     if test "$ld_shlibs" = no; then
16109       runpath_var=
16110       hardcode_libdir_flag_spec=
16111       export_dynamic_flag_spec=
16112       whole_archive_flag_spec=
16113     fi
16114   else
16115     # PORTME fill in a description of your system's linker (not GNU ld)
16116     case $host_os in
16117     aix3*)
16118       allow_undefined_flag=unsupported
16119       always_export_symbols=yes
16120       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'
16121       # Note: this linker hardcodes the directories in LIBPATH if there
16122       # are no directories specified by -L.
16123       hardcode_minus_L=yes
16124       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16125         # Neither direct hardcoding nor static linking is supported with a
16126         # broken collect2.
16127         hardcode_direct=unsupported
16128       fi
16129       ;;
16130
16131     aix[4-9]*)
16132       if test "$host_cpu" = ia64; then
16133         # On IA64, the linker does run time linking by default, so we don't
16134         # have to do anything special.
16135         aix_use_runtimelinking=no
16136         exp_sym_flag='-Bexport'
16137         no_entry_flag=""
16138       else
16139         # If we're using GNU nm, then we don't want the "-C" option.
16140         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16141         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16142           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'
16143         else
16144           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'
16145         fi
16146         aix_use_runtimelinking=no
16147
16148         # Test if we are trying to use run time linking or normal
16149         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16150         # need to do runtime linking.
16151         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16152           for ld_flag in $LDFLAGS; do
16153           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16154             aix_use_runtimelinking=yes
16155             break
16156           fi
16157           done
16158           ;;
16159         esac
16160
16161         exp_sym_flag='-bexport'
16162         no_entry_flag='-bnoentry'
16163       fi
16164
16165       # When large executables or shared objects are built, AIX ld can
16166       # have problems creating the table of contents.  If linking a library
16167       # or program results in "error TOC overflow" add -mminimal-toc to
16168       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16169       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16170
16171       archive_cmds=''
16172       hardcode_direct=yes
16173       hardcode_direct_absolute=yes
16174       hardcode_libdir_separator=':'
16175       link_all_deplibs=yes
16176       file_list_spec='${wl}-f,'
16177
16178       if test "$GCC" = yes; then
16179         case $host_os in aix4.[012]|aix4.[012].*)
16180         # We only want to do this on AIX 4.2 and lower, the check
16181         # below for broken collect2 doesn't work under 4.3+
16182           collect2name=`${CC} -print-prog-name=collect2`
16183           if test -f "$collect2name" &&
16184            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16185           then
16186           # We have reworked collect2
16187           :
16188           else
16189           # We have old collect2
16190           hardcode_direct=unsupported
16191           # It fails to find uninstalled libraries when the uninstalled
16192           # path is not listed in the libpath.  Setting hardcode_minus_L
16193           # to unsupported forces relinking
16194           hardcode_minus_L=yes
16195           hardcode_libdir_flag_spec='-L$libdir'
16196           hardcode_libdir_separator=
16197           fi
16198           ;;
16199         esac
16200         shared_flag='-shared'
16201         if test "$aix_use_runtimelinking" = yes; then
16202           shared_flag="$shared_flag "'${wl}-G'
16203         fi
16204       else
16205         # not using gcc
16206         if test "$host_cpu" = ia64; then
16207         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16208         # chokes on -Wl,-G. The following line is correct:
16209           shared_flag='-G'
16210         else
16211           if test "$aix_use_runtimelinking" = yes; then
16212             shared_flag='${wl}-G'
16213           else
16214             shared_flag='${wl}-bM:SRE'
16215           fi
16216         fi
16217       fi
16218
16219       export_dynamic_flag_spec='${wl}-bexpall'
16220       # It seems that -bexpall does not export symbols beginning with
16221       # underscore (_), so it is better to generate a list of symbols to export.
16222       always_export_symbols=yes
16223       if test "$aix_use_runtimelinking" = yes; then
16224         # Warning - without using the other runtime loading flags (-brtl),
16225         # -berok will link without error, but may produce a broken library.
16226         allow_undefined_flag='-berok'
16227         # Determine the default libpath from the value encoded in an
16228         # empty executable.
16229         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h.  */
16231
16232 int
16233 main ()
16234 {
16235
16236   ;
16237   return 0;
16238 }
16239 _ACEOF
16240 if ac_fn_c_try_link "$LINENO"; then :
16241
16242 lt_aix_libpath_sed='
16243     /Import File Strings/,/^$/ {
16244         /^0/ {
16245             s/^0  *\(.*\)$/\1/
16246             p
16247         }
16248     }'
16249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16250 # Check for a 64-bit object if we didn't find anything.
16251 if test -z "$aix_libpath"; then
16252   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16253 fi
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext \
16256     conftest$ac_exeext conftest.$ac_ext
16257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16258
16259         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16260         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"
16261       else
16262         if test "$host_cpu" = ia64; then
16263           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16264           allow_undefined_flag="-z nodefs"
16265           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"
16266         else
16267          # Determine the default libpath from the value encoded in an
16268          # empty executable.
16269          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h.  */
16271
16272 int
16273 main ()
16274 {
16275
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"; then :
16281
16282 lt_aix_libpath_sed='
16283     /Import File Strings/,/^$/ {
16284         /^0/ {
16285             s/^0  *\(.*\)$/\1/
16286             p
16287         }
16288     }'
16289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16290 # Check for a 64-bit object if we didn't find anything.
16291 if test -z "$aix_libpath"; then
16292   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16293 fi
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext \
16296     conftest$ac_exeext conftest.$ac_ext
16297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16298
16299          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16300           # Warning - without using the other run time loading flags,
16301           # -berok will link without error, but may produce a broken library.
16302           no_undefined_flag=' ${wl}-bernotok'
16303           allow_undefined_flag=' ${wl}-berok'
16304           # Exported symbols can be pulled into shared objects from archives
16305           whole_archive_flag_spec='$convenience'
16306           archive_cmds_need_lc=yes
16307           # This is similar to how AIX traditionally builds its shared libraries.
16308           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'
16309         fi
16310       fi
16311       ;;
16312
16313     amigaos*)
16314       case $host_cpu in
16315       powerpc)
16316             # see comment about AmigaOS4 .so support
16317             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16318             archive_expsym_cmds=''
16319         ;;
16320       m68k)
16321             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)'
16322             hardcode_libdir_flag_spec='-L$libdir'
16323             hardcode_minus_L=yes
16324         ;;
16325       esac
16326       ;;
16327
16328     bsdi[45]*)
16329       export_dynamic_flag_spec=-rdynamic
16330       ;;
16331
16332     cygwin* | mingw* | pw32* | cegcc*)
16333       # When not using gcc, we currently assume that we are using
16334       # Microsoft Visual C++.
16335       # hardcode_libdir_flag_spec is actually meaningless, as there is
16336       # no search path for DLLs.
16337       hardcode_libdir_flag_spec=' '
16338       allow_undefined_flag=unsupported
16339       # Tell ltmain to make .lib files, not .a files.
16340       libext=lib
16341       # Tell ltmain to make .dll files, not .so files.
16342       shrext_cmds=".dll"
16343       # FIXME: Setting linknames here is a bad hack.
16344       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16345       # The linker will automatically build a .lib file if we build a DLL.
16346       old_archive_from_new_cmds='true'
16347       # FIXME: Should let the user specify the lib program.
16348       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16349       fix_srcfile_path='`cygpath -w "$srcfile"`'
16350       enable_shared_with_static_runtimes=yes
16351       ;;
16352
16353     darwin* | rhapsody*)
16354
16355
16356   archive_cmds_need_lc=no
16357   hardcode_direct=no
16358   hardcode_automatic=yes
16359   hardcode_shlibpath_var=unsupported
16360   whole_archive_flag_spec=''
16361   link_all_deplibs=yes
16362   allow_undefined_flag="$_lt_dar_allow_undefined"
16363   case $cc_basename in
16364      ifort*) _lt_dar_can_shared=yes ;;
16365      *) _lt_dar_can_shared=$GCC ;;
16366   esac
16367   if test "$_lt_dar_can_shared" = "yes"; then
16368     output_verbose_link_cmd=echo
16369     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16370     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16371     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}"
16372     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}"
16373
16374   else
16375   ld_shlibs=no
16376   fi
16377
16378       ;;
16379
16380     dgux*)
16381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382       hardcode_libdir_flag_spec='-L$libdir'
16383       hardcode_shlibpath_var=no
16384       ;;
16385
16386     freebsd1*)
16387       ld_shlibs=no
16388       ;;
16389
16390     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16391     # support.  Future versions do this automatically, but an explicit c++rt0.o
16392     # does not break anything, and helps significantly (at the cost of a little
16393     # extra space).
16394     freebsd2.2*)
16395       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16396       hardcode_libdir_flag_spec='-R$libdir'
16397       hardcode_direct=yes
16398       hardcode_shlibpath_var=no
16399       ;;
16400
16401     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16402     freebsd2*)
16403       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16404       hardcode_direct=yes
16405       hardcode_minus_L=yes
16406       hardcode_shlibpath_var=no
16407       ;;
16408
16409     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16410     freebsd* | dragonfly*)
16411       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16412       hardcode_libdir_flag_spec='-R$libdir'
16413       hardcode_direct=yes
16414       hardcode_shlibpath_var=no
16415       ;;
16416
16417     hpux9*)
16418       if test "$GCC" = yes; then
16419         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'
16420       else
16421         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'
16422       fi
16423       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16424       hardcode_libdir_separator=:
16425       hardcode_direct=yes
16426
16427       # hardcode_minus_L: Not really in the search PATH,
16428       # but as the default location of the library.
16429       hardcode_minus_L=yes
16430       export_dynamic_flag_spec='${wl}-E'
16431       ;;
16432
16433     hpux10*)
16434       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16435         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16436       else
16437         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16438       fi
16439       if test "$with_gnu_ld" = no; then
16440         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16441         hardcode_libdir_flag_spec_ld='+b $libdir'
16442         hardcode_libdir_separator=:
16443         hardcode_direct=yes
16444         hardcode_direct_absolute=yes
16445         export_dynamic_flag_spec='${wl}-E'
16446         # hardcode_minus_L: Not really in the search PATH,
16447         # but as the default location of the library.
16448         hardcode_minus_L=yes
16449       fi
16450       ;;
16451
16452     hpux11*)
16453       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16454         case $host_cpu in
16455         hppa*64*)
16456           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16457           ;;
16458         ia64*)
16459           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16460           ;;
16461         *)
16462           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16463           ;;
16464         esac
16465       else
16466         case $host_cpu in
16467         hppa*64*)
16468           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16469           ;;
16470         ia64*)
16471           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16472           ;;
16473         *)
16474           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16475           ;;
16476         esac
16477       fi
16478       if test "$with_gnu_ld" = no; then
16479         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16480         hardcode_libdir_separator=:
16481
16482         case $host_cpu in
16483         hppa*64*|ia64*)
16484           hardcode_direct=no
16485           hardcode_shlibpath_var=no
16486           ;;
16487         *)
16488           hardcode_direct=yes
16489           hardcode_direct_absolute=yes
16490           export_dynamic_flag_spec='${wl}-E'
16491
16492           # hardcode_minus_L: Not really in the search PATH,
16493           # but as the default location of the library.
16494           hardcode_minus_L=yes
16495           ;;
16496         esac
16497       fi
16498       ;;
16499
16500     irix5* | irix6* | nonstopux*)
16501       if test "$GCC" = yes; then
16502         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'
16503         # Try to use the -exported_symbol ld option, if it does not
16504         # work, assume that -exports_file does not work either and
16505         # implicitly export all symbols.
16506         save_LDFLAGS="$LDFLAGS"
16507         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16508         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h.  */
16510 int foo(void) {}
16511 _ACEOF
16512 if ac_fn_c_try_link "$LINENO"; then :
16513   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'
16514
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext \
16517     conftest$ac_exeext conftest.$ac_ext
16518         LDFLAGS="$save_LDFLAGS"
16519       else
16520         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'
16521         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'
16522       fi
16523       archive_cmds_need_lc='no'
16524       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16525       hardcode_libdir_separator=:
16526       inherit_rpath=yes
16527       link_all_deplibs=yes
16528       ;;
16529
16530     netbsd*)
16531       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16532         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16533       else
16534         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16535       fi
16536       hardcode_libdir_flag_spec='-R$libdir'
16537       hardcode_direct=yes
16538       hardcode_shlibpath_var=no
16539       ;;
16540
16541     newsos6)
16542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543       hardcode_direct=yes
16544       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16545       hardcode_libdir_separator=:
16546       hardcode_shlibpath_var=no
16547       ;;
16548
16549     *nto* | *qnx*)
16550       ;;
16551
16552     openbsd*)
16553       if test -f /usr/libexec/ld.so; then
16554         hardcode_direct=yes
16555         hardcode_shlibpath_var=no
16556         hardcode_direct_absolute=yes
16557         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16558           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16559           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16560           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16561           export_dynamic_flag_spec='${wl}-E'
16562         else
16563           case $host_os in
16564            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16565              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16566              hardcode_libdir_flag_spec='-R$libdir'
16567              ;;
16568            *)
16569              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16570              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16571              ;;
16572           esac
16573         fi
16574       else
16575         ld_shlibs=no
16576       fi
16577       ;;
16578
16579     os2*)
16580       hardcode_libdir_flag_spec='-L$libdir'
16581       hardcode_minus_L=yes
16582       allow_undefined_flag=unsupported
16583       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'
16584       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16585       ;;
16586
16587     osf3*)
16588       if test "$GCC" = yes; then
16589         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16590         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'
16591       else
16592         allow_undefined_flag=' -expect_unresolved \*'
16593         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'
16594       fi
16595       archive_cmds_need_lc='no'
16596       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16597       hardcode_libdir_separator=:
16598       ;;
16599
16600     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16601       if test "$GCC" = yes; then
16602         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16603         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'
16604         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16605       else
16606         allow_undefined_flag=' -expect_unresolved \*'
16607         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'
16608         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~
16609         $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'
16610
16611         # Both c and cxx compiler support -rpath directly
16612         hardcode_libdir_flag_spec='-rpath $libdir'
16613       fi
16614       archive_cmds_need_lc='no'
16615       hardcode_libdir_separator=:
16616       ;;
16617
16618     solaris*)
16619       no_undefined_flag=' -z defs'
16620       if test "$GCC" = yes; then
16621         wlarc='${wl}'
16622         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16623         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16624           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16625       else
16626         case `$CC -V 2>&1` in
16627         *"Compilers 5.0"*)
16628           wlarc=''
16629           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16631           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16632           ;;
16633         *)
16634           wlarc='${wl}'
16635           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16636           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16637           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16638           ;;
16639         esac
16640       fi
16641       hardcode_libdir_flag_spec='-R$libdir'
16642       hardcode_shlibpath_var=no
16643       case $host_os in
16644       solaris2.[0-5] | solaris2.[0-5].*) ;;
16645       *)
16646         # The compiler driver will combine and reorder linker options,
16647         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16648         # but is careful enough not to reorder.
16649         # Supported since Solaris 2.6 (maybe 2.5.1?)
16650         if test "$GCC" = yes; then
16651           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16652         else
16653           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16654         fi
16655         ;;
16656       esac
16657       link_all_deplibs=yes
16658       ;;
16659
16660     sunos4*)
16661       if test "x$host_vendor" = xsequent; then
16662         # Use $CC to link under sequent, because it throws in some extra .o
16663         # files that make .init and .fini sections work.
16664         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16665       else
16666         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16667       fi
16668       hardcode_libdir_flag_spec='-L$libdir'
16669       hardcode_direct=yes
16670       hardcode_minus_L=yes
16671       hardcode_shlibpath_var=no
16672       ;;
16673
16674     sysv4)
16675       case $host_vendor in
16676         sni)
16677           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678           hardcode_direct=yes # is this really true???
16679         ;;
16680         siemens)
16681           ## LD is ld it makes a PLAMLIB
16682           ## CC just makes a GrossModule.
16683           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16684           reload_cmds='$CC -r -o $output$reload_objs'
16685           hardcode_direct=no
16686         ;;
16687         motorola)
16688           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16690         ;;
16691       esac
16692       runpath_var='LD_RUN_PATH'
16693       hardcode_shlibpath_var=no
16694       ;;
16695
16696     sysv4.3*)
16697       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698       hardcode_shlibpath_var=no
16699       export_dynamic_flag_spec='-Bexport'
16700       ;;
16701
16702     sysv4*MP*)
16703       if test -d /usr/nec; then
16704         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16705         hardcode_shlibpath_var=no
16706         runpath_var=LD_RUN_PATH
16707         hardcode_runpath_var=yes
16708         ld_shlibs=yes
16709       fi
16710       ;;
16711
16712     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16713       no_undefined_flag='${wl}-z,text'
16714       archive_cmds_need_lc=no
16715       hardcode_shlibpath_var=no
16716       runpath_var='LD_RUN_PATH'
16717
16718       if test "$GCC" = yes; then
16719         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16720         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721       else
16722         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16723         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16724       fi
16725       ;;
16726
16727     sysv5* | sco3.2v5* | sco5v6*)
16728       # Note: We can NOT use -z defs as we might desire, because we do not
16729       # link with -lc, and that would cause any symbols used from libc to
16730       # always be unresolved, which means just about no library would
16731       # ever link correctly.  If we're not using GNU ld we use -z text
16732       # though, which does catch some bad symbols but isn't as heavy-handed
16733       # as -z defs.
16734       no_undefined_flag='${wl}-z,text'
16735       allow_undefined_flag='${wl}-z,nodefs'
16736       archive_cmds_need_lc=no
16737       hardcode_shlibpath_var=no
16738       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16739       hardcode_libdir_separator=':'
16740       link_all_deplibs=yes
16741       export_dynamic_flag_spec='${wl}-Bexport'
16742       runpath_var='LD_RUN_PATH'
16743
16744       if test "$GCC" = yes; then
16745         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16746         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16747       else
16748         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16750       fi
16751       ;;
16752
16753     uts4*)
16754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16755       hardcode_libdir_flag_spec='-L$libdir'
16756       hardcode_shlibpath_var=no
16757       ;;
16758
16759     *)
16760       ld_shlibs=no
16761       ;;
16762     esac
16763
16764     if test x$host_vendor = xsni; then
16765       case $host in
16766       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16767         export_dynamic_flag_spec='${wl}-Blargedynsym'
16768         ;;
16769       esac
16770     fi
16771   fi
16772
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16774 $as_echo "$ld_shlibs" >&6; }
16775 test "$ld_shlibs" = no && can_build_shared=no
16776
16777 with_gnu_ld=$with_gnu_ld
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793 #
16794 # Do we need to explicitly link libc?
16795 #
16796 case "x$archive_cmds_need_lc" in
16797 x|xyes)
16798   # Assume -lc should be added
16799   archive_cmds_need_lc=yes
16800
16801   if test "$enable_shared" = yes && test "$GCC" = yes; then
16802     case $archive_cmds in
16803     *'~'*)
16804       # FIXME: we may have to deal with multi-command sequences.
16805       ;;
16806     '$CC '*)
16807       # Test whether the compiler implicitly links with -lc since on some
16808       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16809       # to ld, don't add -lc before -lgcc.
16810       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16811 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16812       $RM conftest*
16813       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16814
16815       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16816   (eval $ac_compile) 2>&5
16817   ac_status=$?
16818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819   test $ac_status = 0; } 2>conftest.err; then
16820         soname=conftest
16821         lib=conftest
16822         libobjs=conftest.$ac_objext
16823         deplibs=
16824         wl=$lt_prog_compiler_wl
16825         pic_flag=$lt_prog_compiler_pic
16826         compiler_flags=-v
16827         linker_flags=-v
16828         verstring=
16829         output_objdir=.
16830         libname=conftest
16831         lt_save_allow_undefined_flag=$allow_undefined_flag
16832         allow_undefined_flag=
16833         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16834   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16835   ac_status=$?
16836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16837   test $ac_status = 0; }
16838         then
16839           archive_cmds_need_lc=no
16840         else
16841           archive_cmds_need_lc=yes
16842         fi
16843         allow_undefined_flag=$lt_save_allow_undefined_flag
16844       else
16845         cat conftest.err 1>&5
16846       fi
16847       $RM conftest*
16848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
16849 $as_echo "$archive_cmds_need_lc" >&6; }
16850       ;;
16851     esac
16852   fi
16853   ;;
16854 esac
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17014
17015 if test "$GCC" = yes; then
17016   case $host_os in
17017     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17018     *) lt_awk_arg="/^libraries:/" ;;
17019   esac
17020   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17021   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
17022     # if the path contains ";" then we assume it to be the separator
17023     # otherwise default to the standard path separator (i.e. ":") - it is
17024     # assumed that no part of a normal pathname contains ";" but that should
17025     # okay in the real world where ";" in dirpaths is itself problematic.
17026     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
17027   else
17028     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17029   fi
17030   # Ok, now we have the path, separated by spaces, we can step through it
17031   # and add multilib dir if necessary.
17032   lt_tmp_lt_search_path_spec=
17033   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17034   for lt_sys_path in $lt_search_path_spec; do
17035     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17036       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17037     else
17038       test -d "$lt_sys_path" && \
17039         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17040     fi
17041   done
17042   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
17043 BEGIN {RS=" "; FS="/|\n";} {
17044   lt_foo="";
17045   lt_count=0;
17046   for (lt_i = NF; lt_i > 0; lt_i--) {
17047     if ($lt_i != "" && $lt_i != ".") {
17048       if ($lt_i == "..") {
17049         lt_count++;
17050       } else {
17051         if (lt_count == 0) {
17052           lt_foo="/" $lt_i lt_foo;
17053         } else {
17054           lt_count--;
17055         }
17056       }
17057     }
17058   }
17059   if (lt_foo != "") { lt_freq[lt_foo]++; }
17060   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17061 }'`
17062   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
17063 else
17064   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17065 fi
17066 library_names_spec=
17067 libname_spec='lib$name'
17068 soname_spec=
17069 shrext_cmds=".so"
17070 postinstall_cmds=
17071 postuninstall_cmds=
17072 finish_cmds=
17073 finish_eval=
17074 shlibpath_var=
17075 shlibpath_overrides_runpath=unknown
17076 version_type=none
17077 dynamic_linker="$host_os ld.so"
17078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17079 need_lib_prefix=unknown
17080 hardcode_into_libs=no
17081
17082 # when you set need_version to no, make sure it does not cause -set_version
17083 # flags to be left without arguments
17084 need_version=unknown
17085
17086 case $host_os in
17087 aix3*)
17088   version_type=linux
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17090   shlibpath_var=LIBPATH
17091
17092   # AIX 3 has no versioning support, so we append a major version to the name.
17093   soname_spec='${libname}${release}${shared_ext}$major'
17094   ;;
17095
17096 aix[4-9]*)
17097   version_type=linux
17098   need_lib_prefix=no
17099   need_version=no
17100   hardcode_into_libs=yes
17101   if test "$host_cpu" = ia64; then
17102     # AIX 5 supports IA64
17103     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17104     shlibpath_var=LD_LIBRARY_PATH
17105   else
17106     # With GCC up to 2.95.x, collect2 would create an import file
17107     # for dependence libraries.  The import file would start with
17108     # the line `#! .'.  This would cause the generated library to
17109     # depend on `.', always an invalid library.  This was fixed in
17110     # development snapshots of GCC prior to 3.0.
17111     case $host_os in
17112       aix4 | aix4.[01] | aix4.[01].*)
17113       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17114            echo ' yes '
17115            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17116         :
17117       else
17118         can_build_shared=no
17119       fi
17120       ;;
17121     esac
17122     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17123     # soname into executable. Probably we can add versioning support to
17124     # collect2, so additional links can be useful in future.
17125     if test "$aix_use_runtimelinking" = yes; then
17126       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17127       # instead of lib<name>.a to let people know that these are not
17128       # typical AIX shared libraries.
17129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130     else
17131       # We preserve .a as extension for shared libraries through AIX4.2
17132       # and later when we are not doing run time linking.
17133       library_names_spec='${libname}${release}.a $libname.a'
17134       soname_spec='${libname}${release}${shared_ext}$major'
17135     fi
17136     shlibpath_var=LIBPATH
17137   fi
17138   ;;
17139
17140 amigaos*)
17141   case $host_cpu in
17142   powerpc)
17143     # Since July 2007 AmigaOS4 officially supports .so libraries.
17144     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146     ;;
17147   m68k)
17148     library_names_spec='$libname.ixlibrary $libname.a'
17149     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17150     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'
17151     ;;
17152   esac
17153   ;;
17154
17155 beos*)
17156   library_names_spec='${libname}${shared_ext}'
17157   dynamic_linker="$host_os ld.so"
17158   shlibpath_var=LIBRARY_PATH
17159   ;;
17160
17161 bsdi[45]*)
17162   version_type=linux
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17169   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17170   # the default ld.so.conf also contains /usr/contrib/lib and
17171   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17172   # libtool to hard-code these into programs
17173   ;;
17174
17175 cygwin* | mingw* | pw32* | cegcc*)
17176   version_type=windows
17177   shrext_cmds=".dll"
17178   need_version=no
17179   need_lib_prefix=no
17180
17181   case $GCC,$host_os in
17182   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17183     library_names_spec='$libname.dll.a'
17184     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17185     postinstall_cmds='base_file=`basename \${file}`~
17186       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17187       dldir=$destdir/`dirname \$dlpath`~
17188       test -d \$dldir || mkdir -p \$dldir~
17189       $install_prog $dir/$dlname \$dldir/$dlname~
17190       chmod a+x \$dldir/$dlname~
17191       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17192         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17193       fi'
17194     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17195       dlpath=$dir/\$dldll~
17196        $RM \$dlpath'
17197     shlibpath_overrides_runpath=yes
17198
17199     case $host_os in
17200     cygwin*)
17201       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17202       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17203       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17204       ;;
17205     mingw* | cegcc*)
17206       # MinGW DLLs use traditional 'lib' prefix
17207       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17208       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17209       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17210         # It is most probably a Windows format PATH printed by
17211         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17212         # path with ; separators, and with drive letters. We can handle the
17213         # drive letters (cygwin fileutils understands them), so leave them,
17214         # especially as we might pass files found there to a mingw objdump,
17215         # which wouldn't understand a cygwinified path. Ahh.
17216         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17217       else
17218         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17219       fi
17220       ;;
17221     pw32*)
17222       # pw32 DLLs use 'pw' prefix rather than 'lib'
17223       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17224       ;;
17225     esac
17226     ;;
17227
17228   *)
17229     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17230     ;;
17231   esac
17232   dynamic_linker='Win32 ld.exe'
17233   # FIXME: first we should search . and the directory the executable is in
17234   shlibpath_var=PATH
17235   ;;
17236
17237 darwin* | rhapsody*)
17238   dynamic_linker="$host_os dyld"
17239   version_type=darwin
17240   need_lib_prefix=no
17241   need_version=no
17242   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17243   soname_spec='${libname}${release}${major}$shared_ext'
17244   shlibpath_overrides_runpath=yes
17245   shlibpath_var=DYLD_LIBRARY_PATH
17246   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17247
17248   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17249   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17250   ;;
17251
17252 dgux*)
17253   version_type=linux
17254   need_lib_prefix=no
17255   need_version=no
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17257   soname_spec='${libname}${release}${shared_ext}$major'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   ;;
17260
17261 freebsd1*)
17262   dynamic_linker=no
17263   ;;
17264
17265 freebsd* | dragonfly*)
17266   # DragonFly does not have aout.  When/if they implement a new
17267   # versioning mechanism, adjust this.
17268   if test -x /usr/bin/objformat; then
17269     objformat=`/usr/bin/objformat`
17270   else
17271     case $host_os in
17272     freebsd[123]*) objformat=aout ;;
17273     *) objformat=elf ;;
17274     esac
17275   fi
17276   version_type=freebsd-$objformat
17277   case $version_type in
17278     freebsd-elf*)
17279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17280       need_version=no
17281       need_lib_prefix=no
17282       ;;
17283     freebsd-*)
17284       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17285       need_version=yes
17286       ;;
17287   esac
17288   shlibpath_var=LD_LIBRARY_PATH
17289   case $host_os in
17290   freebsd2*)
17291     shlibpath_overrides_runpath=yes
17292     ;;
17293   freebsd3.[01]* | freebsdelf3.[01]*)
17294     shlibpath_overrides_runpath=yes
17295     hardcode_into_libs=yes
17296     ;;
17297   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17298   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17299     shlibpath_overrides_runpath=no
17300     hardcode_into_libs=yes
17301     ;;
17302   *) # from 4.6 on, and DragonFly
17303     shlibpath_overrides_runpath=yes
17304     hardcode_into_libs=yes
17305     ;;
17306   esac
17307   ;;
17308
17309 gnu*)
17310   version_type=linux
17311   need_lib_prefix=no
17312   need_version=no
17313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17314   soname_spec='${libname}${release}${shared_ext}$major'
17315   shlibpath_var=LD_LIBRARY_PATH
17316   hardcode_into_libs=yes
17317   ;;
17318
17319 hpux9* | hpux10* | hpux11*)
17320   # Give a soname corresponding to the major version so that dld.sl refuses to
17321   # link against other versions.
17322   version_type=sunos
17323   need_lib_prefix=no
17324   need_version=no
17325   case $host_cpu in
17326   ia64*)
17327     shrext_cmds='.so'
17328     hardcode_into_libs=yes
17329     dynamic_linker="$host_os dld.so"
17330     shlibpath_var=LD_LIBRARY_PATH
17331     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333     soname_spec='${libname}${release}${shared_ext}$major'
17334     if test "X$HPUX_IA64_MODE" = X32; then
17335       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17336     else
17337       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17338     fi
17339     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17340     ;;
17341   hppa*64*)
17342     shrext_cmds='.sl'
17343     hardcode_into_libs=yes
17344     dynamic_linker="$host_os dld.sl"
17345     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348     soname_spec='${libname}${release}${shared_ext}$major'
17349     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17350     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17351     ;;
17352   *)
17353     shrext_cmds='.sl'
17354     dynamic_linker="$host_os dld.sl"
17355     shlibpath_var=SHLIB_PATH
17356     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358     soname_spec='${libname}${release}${shared_ext}$major'
17359     ;;
17360   esac
17361   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17362   postinstall_cmds='chmod 555 $lib'
17363   ;;
17364
17365 interix[3-9]*)
17366   version_type=linux
17367   need_lib_prefix=no
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17372   shlibpath_var=LD_LIBRARY_PATH
17373   shlibpath_overrides_runpath=no
17374   hardcode_into_libs=yes
17375   ;;
17376
17377 irix5* | irix6* | nonstopux*)
17378   case $host_os in
17379     nonstopux*) version_type=nonstopux ;;
17380     *)
17381         if test "$lt_cv_prog_gnu_ld" = yes; then
17382                 version_type=linux
17383         else
17384                 version_type=irix
17385         fi ;;
17386   esac
17387   need_lib_prefix=no
17388   need_version=no
17389   soname_spec='${libname}${release}${shared_ext}$major'
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17391   case $host_os in
17392   irix5* | nonstopux*)
17393     libsuff= shlibsuff=
17394     ;;
17395   *)
17396     case $LD in # libtool.m4 will add one of these switches to LD
17397     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17398       libsuff= shlibsuff= libmagic=32-bit;;
17399     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17400       libsuff=32 shlibsuff=N32 libmagic=N32;;
17401     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17402       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17403     *) libsuff= shlibsuff= libmagic=never-match;;
17404     esac
17405     ;;
17406   esac
17407   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17408   shlibpath_overrides_runpath=no
17409   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17410   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17411   hardcode_into_libs=yes
17412   ;;
17413
17414 # No shared lib support for Linux oldld, aout, or coff.
17415 linux*oldld* | linux*aout* | linux*coff*)
17416   dynamic_linker=no
17417   ;;
17418
17419 # This must be Linux ELF.
17420 linux* | k*bsd*-gnu)
17421   version_type=linux
17422   need_lib_prefix=no
17423   need_version=no
17424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425   soname_spec='${libname}${release}${shared_ext}$major'
17426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17427   shlibpath_var=LD_LIBRARY_PATH
17428   shlibpath_overrides_runpath=no
17429   # Some binutils ld are patched to set DT_RUNPATH
17430   save_LDFLAGS=$LDFLAGS
17431   save_libdir=$libdir
17432   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17433        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h.  */
17436
17437 int
17438 main ()
17439 {
17440
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 if ac_fn_c_try_link "$LINENO"; then :
17446   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17447   shlibpath_overrides_runpath=yes
17448 fi
17449 fi
17450 rm -f core conftest.err conftest.$ac_objext \
17451     conftest$ac_exeext conftest.$ac_ext
17452   LDFLAGS=$save_LDFLAGS
17453   libdir=$save_libdir
17454
17455   # This implies no fast_install, which is unacceptable.
17456   # Some rework will be needed to allow for fast_install
17457   # before this can be enabled.
17458   hardcode_into_libs=yes
17459
17460   # Append ld.so.conf contents to the search path
17461   if test -f /etc/ld.so.conf; then
17462     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' ' '`
17463     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17464   fi
17465
17466   # We used to test for /lib/ld.so.1 and disable shared libraries on
17467   # powerpc, because MkLinux only supported shared libraries with the
17468   # GNU dynamic linker.  Since this was broken with cross compilers,
17469   # most powerpc-linux boxes support dynamic linking these days and
17470   # people can always --disable-shared, the test was removed, and we
17471   # assume the GNU/Linux dynamic linker is in use.
17472   dynamic_linker='GNU/Linux ld.so'
17473   ;;
17474
17475 netbsd*)
17476   version_type=sunos
17477   need_lib_prefix=no
17478   need_version=no
17479   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17481     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17482     dynamic_linker='NetBSD (a.out) ld.so'
17483   else
17484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17485     soname_spec='${libname}${release}${shared_ext}$major'
17486     dynamic_linker='NetBSD ld.elf_so'
17487   fi
17488   shlibpath_var=LD_LIBRARY_PATH
17489   shlibpath_overrides_runpath=yes
17490   hardcode_into_libs=yes
17491   ;;
17492
17493 newsos6)
17494   version_type=linux
17495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496   shlibpath_var=LD_LIBRARY_PATH
17497   shlibpath_overrides_runpath=yes
17498   ;;
17499
17500 *nto* | *qnx*)
17501   version_type=qnx
17502   need_lib_prefix=no
17503   need_version=no
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505   soname_spec='${libname}${release}${shared_ext}$major'
17506   shlibpath_var=LD_LIBRARY_PATH
17507   shlibpath_overrides_runpath=no
17508   hardcode_into_libs=yes
17509   dynamic_linker='ldqnx.so'
17510   ;;
17511
17512 openbsd*)
17513   version_type=sunos
17514   sys_lib_dlsearch_path_spec="/usr/lib"
17515   need_lib_prefix=no
17516   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17517   case $host_os in
17518     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17519     *)                          need_version=no  ;;
17520   esac
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17522   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17523   shlibpath_var=LD_LIBRARY_PATH
17524   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17525     case $host_os in
17526       openbsd2.[89] | openbsd2.[89].*)
17527         shlibpath_overrides_runpath=no
17528         ;;
17529       *)
17530         shlibpath_overrides_runpath=yes
17531         ;;
17532       esac
17533   else
17534     shlibpath_overrides_runpath=yes
17535   fi
17536   ;;
17537
17538 os2*)
17539   libname_spec='$name'
17540   shrext_cmds=".dll"
17541   need_lib_prefix=no
17542   library_names_spec='$libname${shared_ext} $libname.a'
17543   dynamic_linker='OS/2 ld.exe'
17544   shlibpath_var=LIBPATH
17545   ;;
17546
17547 osf3* | osf4* | osf5*)
17548   version_type=osf
17549   need_lib_prefix=no
17550   need_version=no
17551   soname_spec='${libname}${release}${shared_ext}$major'
17552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553   shlibpath_var=LD_LIBRARY_PATH
17554   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17555   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17556   ;;
17557
17558 rdos*)
17559   dynamic_linker=no
17560   ;;
17561
17562 solaris*)
17563   version_type=linux
17564   need_lib_prefix=no
17565   need_version=no
17566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567   soname_spec='${libname}${release}${shared_ext}$major'
17568   shlibpath_var=LD_LIBRARY_PATH
17569   shlibpath_overrides_runpath=yes
17570   hardcode_into_libs=yes
17571   # ldd complains unless libraries are executable
17572   postinstall_cmds='chmod +x $lib'
17573   ;;
17574
17575 sunos4*)
17576   version_type=sunos
17577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17578   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17579   shlibpath_var=LD_LIBRARY_PATH
17580   shlibpath_overrides_runpath=yes
17581   if test "$with_gnu_ld" = yes; then
17582     need_lib_prefix=no
17583   fi
17584   need_version=yes
17585   ;;
17586
17587 sysv4 | sysv4.3*)
17588   version_type=linux
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590   soname_spec='${libname}${release}${shared_ext}$major'
17591   shlibpath_var=LD_LIBRARY_PATH
17592   case $host_vendor in
17593     sni)
17594       shlibpath_overrides_runpath=no
17595       need_lib_prefix=no
17596       runpath_var=LD_RUN_PATH
17597       ;;
17598     siemens)
17599       need_lib_prefix=no
17600       ;;
17601     motorola)
17602       need_lib_prefix=no
17603       need_version=no
17604       shlibpath_overrides_runpath=no
17605       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17606       ;;
17607   esac
17608   ;;
17609
17610 sysv4*MP*)
17611   if test -d /usr/nec ;then
17612     version_type=linux
17613     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17614     soname_spec='$libname${shared_ext}.$major'
17615     shlibpath_var=LD_LIBRARY_PATH
17616   fi
17617   ;;
17618
17619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17620   version_type=freebsd-elf
17621   need_lib_prefix=no
17622   need_version=no
17623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17624   soname_spec='${libname}${release}${shared_ext}$major'
17625   shlibpath_var=LD_LIBRARY_PATH
17626   shlibpath_overrides_runpath=yes
17627   hardcode_into_libs=yes
17628   if test "$with_gnu_ld" = yes; then
17629     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17630   else
17631     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17632     case $host_os in
17633       sco3.2v5*)
17634         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17635         ;;
17636     esac
17637   fi
17638   sys_lib_dlsearch_path_spec='/usr/lib'
17639   ;;
17640
17641 tpf*)
17642   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17643   version_type=linux
17644   need_lib_prefix=no
17645   need_version=no
17646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647   shlibpath_var=LD_LIBRARY_PATH
17648   shlibpath_overrides_runpath=no
17649   hardcode_into_libs=yes
17650   ;;
17651
17652 uts4*)
17653   version_type=linux
17654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655   soname_spec='${libname}${release}${shared_ext}$major'
17656   shlibpath_var=LD_LIBRARY_PATH
17657   ;;
17658
17659 *)
17660   dynamic_linker=no
17661   ;;
17662 esac
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17664 $as_echo "$dynamic_linker" >&6; }
17665 test "$dynamic_linker" = no && can_build_shared=no
17666
17667 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17668 if test "$GCC" = yes; then
17669   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17670 fi
17671
17672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17673   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17674 fi
17675 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17676   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17677 fi
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17766 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17767 hardcode_action=
17768 if test -n "$hardcode_libdir_flag_spec" ||
17769    test -n "$runpath_var" ||
17770    test "X$hardcode_automatic" = "Xyes" ; then
17771
17772   # We can hardcode non-existent directories.
17773   if test "$hardcode_direct" != no &&
17774      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17775      # have to relink, otherwise we might link with an installed library
17776      # when we should be linking with a yet-to-be-installed one
17777      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17778      test "$hardcode_minus_L" != no; then
17779     # Linking always hardcodes the temporary library directory.
17780     hardcode_action=relink
17781   else
17782     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17783     hardcode_action=immediate
17784   fi
17785 else
17786   # We cannot hardcode anything, or else we can only hardcode existing
17787   # directories.
17788   hardcode_action=unsupported
17789 fi
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17791 $as_echo "$hardcode_action" >&6; }
17792
17793 if test "$hardcode_action" = relink ||
17794    test "$inherit_rpath" = yes; then
17795   # Fast installation is not supported
17796   enable_fast_install=no
17797 elif test "$shlibpath_overrides_runpath" = yes ||
17798      test "$enable_shared" = no; then
17799   # Fast installation is not necessary
17800   enable_fast_install=needless
17801 fi
17802
17803
17804
17805
17806
17807
17808   if test "x$enable_dlopen" != xyes; then
17809   enable_dlopen=unknown
17810   enable_dlopen_self=unknown
17811   enable_dlopen_self_static=unknown
17812 else
17813   lt_cv_dlopen=no
17814   lt_cv_dlopen_libs=
17815
17816   case $host_os in
17817   beos*)
17818     lt_cv_dlopen="load_add_on"
17819     lt_cv_dlopen_libs=
17820     lt_cv_dlopen_self=yes
17821     ;;
17822
17823   mingw* | pw32* | cegcc*)
17824     lt_cv_dlopen="LoadLibrary"
17825     lt_cv_dlopen_libs=
17826     ;;
17827
17828   cygwin*)
17829     lt_cv_dlopen="dlopen"
17830     lt_cv_dlopen_libs=
17831     ;;
17832
17833   darwin*)
17834   # if libdl is installed we need to link against it
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17838   $as_echo_n "(cached) " >&6
17839 else
17840   ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-ldl  $LIBS"
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h.  */
17844
17845 /* Override any GCC internal prototype to avoid an error.
17846    Use char because int might match the return type of a GCC
17847    builtin and then its argument prototype would still apply.  */
17848 #ifdef __cplusplus
17849 extern "C"
17850 #endif
17851 char dlopen ();
17852 int
17853 main ()
17854 {
17855 return dlopen ();
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 if ac_fn_c_try_link "$LINENO"; then :
17861   ac_cv_lib_dl_dlopen=yes
17862 else
17863   ac_cv_lib_dl_dlopen=no
17864 fi
17865 rm -f core conftest.err conftest.$ac_objext \
17866     conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17868 fi
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17870 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17871 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17872   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17873 else
17874
17875     lt_cv_dlopen="dyld"
17876     lt_cv_dlopen_libs=
17877     lt_cv_dlopen_self=yes
17878
17879 fi
17880
17881     ;;
17882
17883   *)
17884     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17885 if test "x$ac_cv_func_shl_load" = x""yes; then :
17886   lt_cv_dlopen="shl_load"
17887 else
17888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17889 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17891   $as_echo_n "(cached) " >&6
17892 else
17893   ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-ldld  $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h.  */
17897
17898 /* Override any GCC internal prototype to avoid an error.
17899    Use char because int might match the return type of a GCC
17900    builtin and then its argument prototype would still apply.  */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char shl_load ();
17905 int
17906 main ()
17907 {
17908 return shl_load ();
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914   ac_cv_lib_dld_shl_load=yes
17915 else
17916   ac_cv_lib_dld_shl_load=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919     conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17923 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17924 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17925   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17926 else
17927   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17928 if test "x$ac_cv_func_dlopen" = x""yes; then :
17929   lt_cv_dlopen="dlopen"
17930 else
17931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17932 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17934   $as_echo_n "(cached) " >&6
17935 else
17936   ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-ldl  $LIBS"
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h.  */
17940
17941 /* Override any GCC internal prototype to avoid an error.
17942    Use char because int might match the return type of a GCC
17943    builtin and then its argument prototype would still apply.  */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char dlopen ();
17948 int
17949 main ()
17950 {
17951 return dlopen ();
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 if ac_fn_c_try_link "$LINENO"; then :
17957   ac_cv_lib_dl_dlopen=yes
17958 else
17959   ac_cv_lib_dl_dlopen=no
17960 fi
17961 rm -f core conftest.err conftest.$ac_objext \
17962     conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17968   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17969 else
17970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17973   $as_echo_n "(cached) " >&6
17974 else
17975   ac_check_lib_save_LIBS=$LIBS
17976 LIBS="-lsvld  $LIBS"
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h.  */
17979
17980 /* Override any GCC internal prototype to avoid an error.
17981    Use char because int might match the return type of a GCC
17982    builtin and then its argument prototype would still apply.  */
17983 #ifdef __cplusplus
17984 extern "C"
17985 #endif
17986 char dlopen ();
17987 int
17988 main ()
17989 {
17990 return dlopen ();
17991   ;
17992   return 0;
17993 }
17994 _ACEOF
17995 if ac_fn_c_try_link "$LINENO"; then :
17996   ac_cv_lib_svld_dlopen=yes
17997 else
17998   ac_cv_lib_svld_dlopen=no
17999 fi
18000 rm -f core conftest.err conftest.$ac_objext \
18001     conftest$ac_exeext conftest.$ac_ext
18002 LIBS=$ac_check_lib_save_LIBS
18003 fi
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18005 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18006 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18007   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18008 else
18009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18010 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18012   $as_echo_n "(cached) " >&6
18013 else
18014   ac_check_lib_save_LIBS=$LIBS
18015 LIBS="-ldld  $LIBS"
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h.  */
18018
18019 /* Override any GCC internal prototype to avoid an error.
18020    Use char because int might match the return type of a GCC
18021    builtin and then its argument prototype would still apply.  */
18022 #ifdef __cplusplus
18023 extern "C"
18024 #endif
18025 char dld_link ();
18026 int
18027 main ()
18028 {
18029 return dld_link ();
18030   ;
18031   return 0;
18032 }
18033 _ACEOF
18034 if ac_fn_c_try_link "$LINENO"; then :
18035   ac_cv_lib_dld_dld_link=yes
18036 else
18037   ac_cv_lib_dld_dld_link=no
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext \
18040     conftest$ac_exeext conftest.$ac_ext
18041 LIBS=$ac_check_lib_save_LIBS
18042 fi
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18044 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18045 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18046   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18047 fi
18048
18049
18050 fi
18051
18052
18053 fi
18054
18055
18056 fi
18057
18058
18059 fi
18060
18061
18062 fi
18063
18064     ;;
18065   esac
18066
18067   if test "x$lt_cv_dlopen" != xno; then
18068     enable_dlopen=yes
18069   else
18070     enable_dlopen=no
18071   fi
18072
18073   case $lt_cv_dlopen in
18074   dlopen)
18075     save_CPPFLAGS="$CPPFLAGS"
18076     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18077
18078     save_LDFLAGS="$LDFLAGS"
18079     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18080
18081     save_LIBS="$LIBS"
18082     LIBS="$lt_cv_dlopen_libs $LIBS"
18083
18084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18085 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18086 if test "${lt_cv_dlopen_self+set}" = set; then :
18087   $as_echo_n "(cached) " >&6
18088 else
18089           if test "$cross_compiling" = yes; then :
18090   lt_cv_dlopen_self=cross
18091 else
18092   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18093   lt_status=$lt_dlunknown
18094   cat > conftest.$ac_ext <<_LT_EOF
18095 #line 18095 "configure"
18096 #include "confdefs.h"
18097
18098 #if HAVE_DLFCN_H
18099 #include <dlfcn.h>
18100 #endif
18101
18102 #include <stdio.h>
18103
18104 #ifdef RTLD_GLOBAL
18105 #  define LT_DLGLOBAL           RTLD_GLOBAL
18106 #else
18107 #  ifdef DL_GLOBAL
18108 #    define LT_DLGLOBAL         DL_GLOBAL
18109 #  else
18110 #    define LT_DLGLOBAL         0
18111 #  endif
18112 #endif
18113
18114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18115    find out it does not work in some platform. */
18116 #ifndef LT_DLLAZY_OR_NOW
18117 #  ifdef RTLD_LAZY
18118 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18119 #  else
18120 #    ifdef DL_LAZY
18121 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18122 #    else
18123 #      ifdef RTLD_NOW
18124 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18125 #      else
18126 #        ifdef DL_NOW
18127 #          define LT_DLLAZY_OR_NOW      DL_NOW
18128 #        else
18129 #          define LT_DLLAZY_OR_NOW      0
18130 #        endif
18131 #      endif
18132 #    endif
18133 #  endif
18134 #endif
18135
18136 void fnord() { int i=42;}
18137 int main ()
18138 {
18139   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18140   int status = $lt_dlunknown;
18141
18142   if (self)
18143     {
18144       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18145       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18146       /* dlclose (self); */
18147     }
18148   else
18149     puts (dlerror ());
18150
18151   return status;
18152 }
18153 _LT_EOF
18154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18155   (eval $ac_link) 2>&5
18156   ac_status=$?
18157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18158   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18159     (./conftest; exit; ) >&5 2>/dev/null
18160     lt_status=$?
18161     case x$lt_status in
18162       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18163       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18164       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18165     esac
18166   else :
18167     # compilation failed
18168     lt_cv_dlopen_self=no
18169   fi
18170 fi
18171 rm -fr conftest*
18172
18173
18174 fi
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18176 $as_echo "$lt_cv_dlopen_self" >&6; }
18177
18178     if test "x$lt_cv_dlopen_self" = xyes; then
18179       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18182 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18183   $as_echo_n "(cached) " >&6
18184 else
18185           if test "$cross_compiling" = yes; then :
18186   lt_cv_dlopen_self_static=cross
18187 else
18188   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18189   lt_status=$lt_dlunknown
18190   cat > conftest.$ac_ext <<_LT_EOF
18191 #line 18191 "configure"
18192 #include "confdefs.h"
18193
18194 #if HAVE_DLFCN_H
18195 #include <dlfcn.h>
18196 #endif
18197
18198 #include <stdio.h>
18199
18200 #ifdef RTLD_GLOBAL
18201 #  define LT_DLGLOBAL           RTLD_GLOBAL
18202 #else
18203 #  ifdef DL_GLOBAL
18204 #    define LT_DLGLOBAL         DL_GLOBAL
18205 #  else
18206 #    define LT_DLGLOBAL         0
18207 #  endif
18208 #endif
18209
18210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18211    find out it does not work in some platform. */
18212 #ifndef LT_DLLAZY_OR_NOW
18213 #  ifdef RTLD_LAZY
18214 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18215 #  else
18216 #    ifdef DL_LAZY
18217 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18218 #    else
18219 #      ifdef RTLD_NOW
18220 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18221 #      else
18222 #        ifdef DL_NOW
18223 #          define LT_DLLAZY_OR_NOW      DL_NOW
18224 #        else
18225 #          define LT_DLLAZY_OR_NOW      0
18226 #        endif
18227 #      endif
18228 #    endif
18229 #  endif
18230 #endif
18231
18232 void fnord() { int i=42;}
18233 int main ()
18234 {
18235   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18236   int status = $lt_dlunknown;
18237
18238   if (self)
18239     {
18240       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18241       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18242       /* dlclose (self); */
18243     }
18244   else
18245     puts (dlerror ());
18246
18247   return status;
18248 }
18249 _LT_EOF
18250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18251   (eval $ac_link) 2>&5
18252   ac_status=$?
18253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18255     (./conftest; exit; ) >&5 2>/dev/null
18256     lt_status=$?
18257     case x$lt_status in
18258       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18259       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18260       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18261     esac
18262   else :
18263     # compilation failed
18264     lt_cv_dlopen_self_static=no
18265   fi
18266 fi
18267 rm -fr conftest*
18268
18269
18270 fi
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18273     fi
18274
18275     CPPFLAGS="$save_CPPFLAGS"
18276     LDFLAGS="$save_LDFLAGS"
18277     LIBS="$save_LIBS"
18278     ;;
18279   esac
18280
18281   case $lt_cv_dlopen_self in
18282   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18283   *) enable_dlopen_self=unknown ;;
18284   esac
18285
18286   case $lt_cv_dlopen_self_static in
18287   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18288   *) enable_dlopen_self_static=unknown ;;
18289   esac
18290 fi
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308 striplib=
18309 old_striplib=
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18313   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18314   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18317 else
18318 # FIXME - insert some real tests, host_os isn't really good enough
18319   case $host_os in
18320   darwin*)
18321     if test -n "$STRIP" ; then
18322       striplib="$STRIP -x"
18323       old_striplib="$STRIP -S"
18324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18325 $as_echo "yes" >&6; }
18326     else
18327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329     fi
18330     ;;
18331   *)
18332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18334     ;;
18335   esac
18336 fi
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349   # Report which library types will actually be built
18350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18353 $as_echo "$can_build_shared" >&6; }
18354
18355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18356 $as_echo_n "checking whether to build shared libraries... " >&6; }
18357   test "$can_build_shared" = "no" && enable_shared=no
18358
18359   # On AIX, shared libraries and static libraries use the same namespace, and
18360   # are all built from PIC.
18361   case $host_os in
18362   aix3*)
18363     test "$enable_shared" = yes && enable_static=no
18364     if test -n "$RANLIB"; then
18365       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18366       postinstall_cmds='$RANLIB $lib'
18367     fi
18368     ;;
18369
18370   aix[4-9]*)
18371     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18372       test "$enable_shared" = yes && enable_static=no
18373     fi
18374     ;;
18375   esac
18376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18377 $as_echo "$enable_shared" >&6; }
18378
18379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18380 $as_echo_n "checking whether to build static libraries... " >&6; }
18381   # Make sure either enable_shared or enable_static is yes.
18382   test "$enable_shared" = yes || enable_static=yes
18383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18384 $as_echo "$enable_static" >&6; }
18385
18386
18387
18388
18389 fi
18390 ac_ext=c
18391 ac_cpp='$CPP $CPPFLAGS'
18392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18395
18396 CC="$lt_save_CC"
18397
18398
18399 ac_ext=cpp
18400 ac_cpp='$CXXCPP $CPPFLAGS'
18401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18404
18405 archive_cmds_need_lc_CXX=no
18406 allow_undefined_flag_CXX=
18407 always_export_symbols_CXX=no
18408 archive_expsym_cmds_CXX=
18409 compiler_needs_object_CXX=no
18410 export_dynamic_flag_spec_CXX=
18411 hardcode_direct_CXX=no
18412 hardcode_direct_absolute_CXX=no
18413 hardcode_libdir_flag_spec_CXX=
18414 hardcode_libdir_flag_spec_ld_CXX=
18415 hardcode_libdir_separator_CXX=
18416 hardcode_minus_L_CXX=no
18417 hardcode_shlibpath_var_CXX=unsupported
18418 hardcode_automatic_CXX=no
18419 inherit_rpath_CXX=no
18420 module_cmds_CXX=
18421 module_expsym_cmds_CXX=
18422 link_all_deplibs_CXX=unknown
18423 old_archive_cmds_CXX=$old_archive_cmds
18424 no_undefined_flag_CXX=
18425 whole_archive_flag_spec_CXX=
18426 enable_shared_with_static_runtimes_CXX=no
18427
18428 # Source file extension for C++ test sources.
18429 ac_ext=cpp
18430
18431 # Object file extension for compiled C++ test sources.
18432 objext=o
18433 objext_CXX=$objext
18434
18435 # No sense in running all these tests if we already determined that
18436 # the CXX compiler isn't working.  Some variables (like enable_shared)
18437 # are currently assumed to apply to all compilers on this platform,
18438 # and will be corrupted by setting them based on a non-working compiler.
18439 if test "$_lt_caught_CXX_error" != yes; then
18440   # Code to be used in simple compile tests
18441   lt_simple_compile_test_code="int some_variable = 0;"
18442
18443   # Code to be used in simple link tests
18444   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18445
18446   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18447
18448
18449
18450
18451
18452
18453 # If no C compiler was specified, use CC.
18454 LTCC=${LTCC-"$CC"}
18455
18456 # If no C compiler flags were specified, use CFLAGS.
18457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18458
18459 # Allow CC to be a program name with arguments.
18460 compiler=$CC
18461
18462
18463   # save warnings/boilerplate of simple test code
18464   ac_outfile=conftest.$ac_objext
18465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18467 _lt_compiler_boilerplate=`cat conftest.err`
18468 $RM conftest*
18469
18470   ac_outfile=conftest.$ac_objext
18471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18473 _lt_linker_boilerplate=`cat conftest.err`
18474 $RM -r conftest*
18475
18476
18477   # Allow CC to be a program name with arguments.
18478   lt_save_CC=$CC
18479   lt_save_LD=$LD
18480   lt_save_GCC=$GCC
18481   GCC=$GXX
18482   lt_save_with_gnu_ld=$with_gnu_ld
18483   lt_save_path_LD=$lt_cv_path_LD
18484   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18485     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18486   else
18487     $as_unset lt_cv_prog_gnu_ld
18488   fi
18489   if test -n "${lt_cv_path_LDCXX+set}"; then
18490     lt_cv_path_LD=$lt_cv_path_LDCXX
18491   else
18492     $as_unset lt_cv_path_LD
18493   fi
18494   test -z "${LDCXX+set}" || LD=$LDCXX
18495   CC=${CXX-"c++"}
18496   compiler=$CC
18497   compiler_CXX=$CC
18498   for cc_temp in $compiler""; do
18499   case $cc_temp in
18500     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18501     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18502     \-*) ;;
18503     *) break;;
18504   esac
18505 done
18506 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18507
18508
18509   if test -n "$compiler"; then
18510     # We don't want -fno-exception when compiling C++ code, so set the
18511     # no_builtin_flag separately
18512     if test "$GXX" = yes; then
18513       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18514     else
18515       lt_prog_compiler_no_builtin_flag_CXX=
18516     fi
18517
18518     if test "$GXX" = yes; then
18519       # Set up default GNU C++ configuration
18520
18521
18522
18523 # Check whether --with-gnu-ld was given.
18524 if test "${with_gnu_ld+set}" = set; then :
18525   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18526 else
18527   with_gnu_ld=no
18528 fi
18529
18530 ac_prog=ld
18531 if test "$GCC" = yes; then
18532   # Check if gcc -print-prog-name=ld gives a path.
18533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18534 $as_echo_n "checking for ld used by $CC... " >&6; }
18535   case $host in
18536   *-*-mingw*)
18537     # gcc leaves a trailing carriage return which upsets mingw
18538     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18539   *)
18540     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18541   esac
18542   case $ac_prog in
18543     # Accept absolute paths.
18544     [\\/]* | ?:[\\/]*)
18545       re_direlt='/[^/][^/]*/\.\./'
18546       # Canonicalize the pathname of ld
18547       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18548       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18549         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18550       done
18551       test -z "$LD" && LD="$ac_prog"
18552       ;;
18553   "")
18554     # If it fails, then pretend we aren't using GCC.
18555     ac_prog=ld
18556     ;;
18557   *)
18558     # If it is relative, then search for the first ld in PATH.
18559     with_gnu_ld=unknown
18560     ;;
18561   esac
18562 elif test "$with_gnu_ld" = yes; then
18563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18564 $as_echo_n "checking for GNU ld... " >&6; }
18565 else
18566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18567 $as_echo_n "checking for non-GNU ld... " >&6; }
18568 fi
18569 if test "${lt_cv_path_LD+set}" = set; then :
18570   $as_echo_n "(cached) " >&6
18571 else
18572   if test -z "$LD"; then
18573   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18574   for ac_dir in $PATH; do
18575     IFS="$lt_save_ifs"
18576     test -z "$ac_dir" && ac_dir=.
18577     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18578       lt_cv_path_LD="$ac_dir/$ac_prog"
18579       # Check to see if the program is GNU ld.  I'd rather use --version,
18580       # but apparently some variants of GNU ld only accept -v.
18581       # Break only if it was the GNU/non-GNU ld that we prefer.
18582       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18583       *GNU* | *'with BFD'*)
18584         test "$with_gnu_ld" != no && break
18585         ;;
18586       *)
18587         test "$with_gnu_ld" != yes && break
18588         ;;
18589       esac
18590     fi
18591   done
18592   IFS="$lt_save_ifs"
18593 else
18594   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18595 fi
18596 fi
18597
18598 LD="$lt_cv_path_LD"
18599 if test -n "$LD"; then
18600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18601 $as_echo "$LD" >&6; }
18602 else
18603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604 $as_echo "no" >&6; }
18605 fi
18606 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18608 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18609 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18610   $as_echo_n "(cached) " >&6
18611 else
18612   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18613 case `$LD -v 2>&1 </dev/null` in
18614 *GNU* | *'with BFD'*)
18615   lt_cv_prog_gnu_ld=yes
18616   ;;
18617 *)
18618   lt_cv_prog_gnu_ld=no
18619   ;;
18620 esac
18621 fi
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18623 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18624 with_gnu_ld=$lt_cv_prog_gnu_ld
18625
18626
18627
18628
18629
18630
18631
18632       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18633       # archiving commands below assume that GNU ld is being used.
18634       if test "$with_gnu_ld" = yes; then
18635         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18636         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'
18637
18638         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18639         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18640
18641         # If archive_cmds runs LD, not CC, wlarc should be empty
18642         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18643         #     investigate it a little bit more. (MM)
18644         wlarc='${wl}'
18645
18646         # ancient GNU ld didn't support --whole-archive et. al.
18647         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18648           $GREP 'no-whole-archive' > /dev/null; then
18649           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18650         else
18651           whole_archive_flag_spec_CXX=
18652         fi
18653       else
18654         with_gnu_ld=no
18655         wlarc=
18656
18657         # A generic and very simple default shared library creation
18658         # command for GNU C++ for the case where it uses the native
18659         # linker, instead of GNU ld.  If possible, this setting should
18660         # overridden to take advantage of the native linker features on
18661         # the platform it is being used on.
18662         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18663       fi
18664
18665       # Commands to make compiler produce verbose output that lists
18666       # what "hidden" libraries, object files and flags are used when
18667       # linking a shared library.
18668       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18669
18670     else
18671       GXX=no
18672       with_gnu_ld=no
18673       wlarc=
18674     fi
18675
18676     # PORTME: fill in a description of your system's C++ link characteristics
18677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18678 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18679     ld_shlibs_CXX=yes
18680     case $host_os in
18681       aix3*)
18682         # FIXME: insert proper C++ library support
18683         ld_shlibs_CXX=no
18684         ;;
18685       aix[4-9]*)
18686         if test "$host_cpu" = ia64; then
18687           # On IA64, the linker does run time linking by default, so we don't
18688           # have to do anything special.
18689           aix_use_runtimelinking=no
18690           exp_sym_flag='-Bexport'
18691           no_entry_flag=""
18692         else
18693           aix_use_runtimelinking=no
18694
18695           # Test if we are trying to use run time linking or normal
18696           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18697           # need to do runtime linking.
18698           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18699             for ld_flag in $LDFLAGS; do
18700               case $ld_flag in
18701               *-brtl*)
18702                 aix_use_runtimelinking=yes
18703                 break
18704                 ;;
18705               esac
18706             done
18707             ;;
18708           esac
18709
18710           exp_sym_flag='-bexport'
18711           no_entry_flag='-bnoentry'
18712         fi
18713
18714         # When large executables or shared objects are built, AIX ld can
18715         # have problems creating the table of contents.  If linking a library
18716         # or program results in "error TOC overflow" add -mminimal-toc to
18717         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18718         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18719
18720         archive_cmds_CXX=''
18721         hardcode_direct_CXX=yes
18722         hardcode_direct_absolute_CXX=yes
18723         hardcode_libdir_separator_CXX=':'
18724         link_all_deplibs_CXX=yes
18725         file_list_spec_CXX='${wl}-f,'
18726
18727         if test "$GXX" = yes; then
18728           case $host_os in aix4.[012]|aix4.[012].*)
18729           # We only want to do this on AIX 4.2 and lower, the check
18730           # below for broken collect2 doesn't work under 4.3+
18731           collect2name=`${CC} -print-prog-name=collect2`
18732           if test -f "$collect2name" &&
18733              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18734           then
18735             # We have reworked collect2
18736             :
18737           else
18738             # We have old collect2
18739             hardcode_direct_CXX=unsupported
18740             # It fails to find uninstalled libraries when the uninstalled
18741             # path is not listed in the libpath.  Setting hardcode_minus_L
18742             # to unsupported forces relinking
18743             hardcode_minus_L_CXX=yes
18744             hardcode_libdir_flag_spec_CXX='-L$libdir'
18745             hardcode_libdir_separator_CXX=
18746           fi
18747           esac
18748           shared_flag='-shared'
18749           if test "$aix_use_runtimelinking" = yes; then
18750             shared_flag="$shared_flag "'${wl}-G'
18751           fi
18752         else
18753           # not using gcc
18754           if test "$host_cpu" = ia64; then
18755           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18756           # chokes on -Wl,-G. The following line is correct:
18757           shared_flag='-G'
18758           else
18759             if test "$aix_use_runtimelinking" = yes; then
18760               shared_flag='${wl}-G'
18761             else
18762               shared_flag='${wl}-bM:SRE'
18763             fi
18764           fi
18765         fi
18766
18767         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18768         # It seems that -bexpall does not export symbols beginning with
18769         # underscore (_), so it is better to generate a list of symbols to
18770         # export.
18771         always_export_symbols_CXX=yes
18772         if test "$aix_use_runtimelinking" = yes; then
18773           # Warning - without using the other runtime loading flags (-brtl),
18774           # -berok will link without error, but may produce a broken library.
18775           allow_undefined_flag_CXX='-berok'
18776           # Determine the default libpath from the value encoded in an empty
18777           # executable.
18778           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h.  */
18780
18781 int
18782 main ()
18783 {
18784
18785   ;
18786   return 0;
18787 }
18788 _ACEOF
18789 if ac_fn_cxx_try_link "$LINENO"; then :
18790
18791 lt_aix_libpath_sed='
18792     /Import File Strings/,/^$/ {
18793         /^0/ {
18794             s/^0  *\(.*\)$/\1/
18795             p
18796         }
18797     }'
18798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18799 # Check for a 64-bit object if we didn't find anything.
18800 if test -z "$aix_libpath"; then
18801   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18802 fi
18803 fi
18804 rm -f core conftest.err conftest.$ac_objext \
18805     conftest$ac_exeext conftest.$ac_ext
18806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18807
18808           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18809
18810           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"
18811         else
18812           if test "$host_cpu" = ia64; then
18813             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18814             allow_undefined_flag_CXX="-z nodefs"
18815             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"
18816           else
18817             # Determine the default libpath from the value encoded in an
18818             # empty executable.
18819             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h.  */
18821
18822 int
18823 main ()
18824 {
18825
18826   ;
18827   return 0;
18828 }
18829 _ACEOF
18830 if ac_fn_cxx_try_link "$LINENO"; then :
18831
18832 lt_aix_libpath_sed='
18833     /Import File Strings/,/^$/ {
18834         /^0/ {
18835             s/^0  *\(.*\)$/\1/
18836             p
18837         }
18838     }'
18839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18840 # Check for a 64-bit object if we didn't find anything.
18841 if test -z "$aix_libpath"; then
18842   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18843 fi
18844 fi
18845 rm -f core conftest.err conftest.$ac_objext \
18846     conftest$ac_exeext conftest.$ac_ext
18847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18848
18849             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18850             # Warning - without using the other run time loading flags,
18851             # -berok will link without error, but may produce a broken library.
18852             no_undefined_flag_CXX=' ${wl}-bernotok'
18853             allow_undefined_flag_CXX=' ${wl}-berok'
18854             # Exported symbols can be pulled into shared objects from archives
18855             whole_archive_flag_spec_CXX='$convenience'
18856             archive_cmds_need_lc_CXX=yes
18857             # This is similar to how AIX traditionally builds its shared
18858             # libraries.
18859             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'
18860           fi
18861         fi
18862         ;;
18863
18864       beos*)
18865         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18866           allow_undefined_flag_CXX=unsupported
18867           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18868           # support --undefined.  This deserves some investigation.  FIXME
18869           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18870         else
18871           ld_shlibs_CXX=no
18872         fi
18873         ;;
18874
18875       chorus*)
18876         case $cc_basename in
18877           *)
18878           # FIXME: insert proper C++ library support
18879           ld_shlibs_CXX=no
18880           ;;
18881         esac
18882         ;;
18883
18884       cygwin* | mingw* | pw32* | cegcc*)
18885         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18886         # as there is no search path for DLLs.
18887         hardcode_libdir_flag_spec_CXX='-L$libdir'
18888         allow_undefined_flag_CXX=unsupported
18889         always_export_symbols_CXX=no
18890         enable_shared_with_static_runtimes_CXX=yes
18891
18892         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18893           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'
18894           # If the export-symbols file already is a .def file (1st line
18895           # is EXPORTS), use it as is; otherwise, prepend...
18896           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18897             cp $export_symbols $output_objdir/$soname.def;
18898           else
18899             echo EXPORTS > $output_objdir/$soname.def;
18900             cat $export_symbols >> $output_objdir/$soname.def;
18901           fi~
18902           $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'
18903         else
18904           ld_shlibs_CXX=no
18905         fi
18906         ;;
18907       darwin* | rhapsody*)
18908
18909
18910   archive_cmds_need_lc_CXX=no
18911   hardcode_direct_CXX=no
18912   hardcode_automatic_CXX=yes
18913   hardcode_shlibpath_var_CXX=unsupported
18914   whole_archive_flag_spec_CXX=''
18915   link_all_deplibs_CXX=yes
18916   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18917   case $cc_basename in
18918      ifort*) _lt_dar_can_shared=yes ;;
18919      *) _lt_dar_can_shared=$GCC ;;
18920   esac
18921   if test "$_lt_dar_can_shared" = "yes"; then
18922     output_verbose_link_cmd=echo
18923     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}"
18924     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18925     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}"
18926     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}"
18927        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18928       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}"
18929       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}"
18930     fi
18931
18932   else
18933   ld_shlibs_CXX=no
18934   fi
18935
18936         ;;
18937
18938       dgux*)
18939         case $cc_basename in
18940           ec++*)
18941             # FIXME: insert proper C++ library support
18942             ld_shlibs_CXX=no
18943             ;;
18944           ghcx*)
18945             # Green Hills C++ Compiler
18946             # FIXME: insert proper C++ library support
18947             ld_shlibs_CXX=no
18948             ;;
18949           *)
18950             # FIXME: insert proper C++ library support
18951             ld_shlibs_CXX=no
18952             ;;
18953         esac
18954         ;;
18955
18956       freebsd[12]*)
18957         # C++ shared libraries reported to be fairly broken before
18958         # switch to ELF
18959         ld_shlibs_CXX=no
18960         ;;
18961
18962       freebsd-elf*)
18963         archive_cmds_need_lc_CXX=no
18964         ;;
18965
18966       freebsd* | dragonfly*)
18967         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968         # conventions
18969         ld_shlibs_CXX=yes
18970         ;;
18971
18972       gnu*)
18973         ;;
18974
18975       hpux9*)
18976         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18977         hardcode_libdir_separator_CXX=:
18978         export_dynamic_flag_spec_CXX='${wl}-E'
18979         hardcode_direct_CXX=yes
18980         hardcode_minus_L_CXX=yes # Not in the search PATH,
18981                                              # but as the default
18982                                              # location of the library.
18983
18984         case $cc_basename in
18985           CC*)
18986             # FIXME: insert proper C++ library support
18987             ld_shlibs_CXX=no
18988             ;;
18989           aCC*)
18990             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'
18991             # Commands to make compiler produce verbose output that lists
18992             # what "hidden" libraries, object files and flags are used when
18993             # linking a shared library.
18994             #
18995             # There doesn't appear to be a way to prevent this compiler from
18996             # explicitly linking system object files so we need to strip them
18997             # from the output so that they don't get included in the library
18998             # dependencies.
18999             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'
19000             ;;
19001           *)
19002             if test "$GXX" = yes; then
19003               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'
19004             else
19005               # FIXME: insert proper C++ library support
19006               ld_shlibs_CXX=no
19007             fi
19008             ;;
19009         esac
19010         ;;
19011
19012       hpux10*|hpux11*)
19013         if test $with_gnu_ld = no; then
19014           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19015           hardcode_libdir_separator_CXX=:
19016
19017           case $host_cpu in
19018             hppa*64*|ia64*)
19019               ;;
19020             *)
19021               export_dynamic_flag_spec_CXX='${wl}-E'
19022               ;;
19023           esac
19024         fi
19025         case $host_cpu in
19026           hppa*64*|ia64*)
19027             hardcode_direct_CXX=no
19028             hardcode_shlibpath_var_CXX=no
19029             ;;
19030           *)
19031             hardcode_direct_CXX=yes
19032             hardcode_direct_absolute_CXX=yes
19033             hardcode_minus_L_CXX=yes # Not in the search PATH,
19034                                                  # but as the default
19035                                                  # location of the library.
19036             ;;
19037         esac
19038
19039         case $cc_basename in
19040           CC*)
19041             # FIXME: insert proper C++ library support
19042             ld_shlibs_CXX=no
19043             ;;
19044           aCC*)
19045             case $host_cpu in
19046               hppa*64*)
19047                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19048                 ;;
19049               ia64*)
19050                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051                 ;;
19052               *)
19053                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054                 ;;
19055             esac
19056             # Commands to make compiler produce verbose output that lists
19057             # what "hidden" libraries, object files and flags are used when
19058             # linking a shared library.
19059             #
19060             # There doesn't appear to be a way to prevent this compiler from
19061             # explicitly linking system object files so we need to strip them
19062             # from the output so that they don't get included in the library
19063             # dependencies.
19064             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'
19065             ;;
19066           *)
19067             if test "$GXX" = yes; then
19068               if test $with_gnu_ld = no; then
19069                 case $host_cpu in
19070                   hppa*64*)
19071                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19072                     ;;
19073                   ia64*)
19074                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19075                     ;;
19076                   *)
19077                     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'
19078                     ;;
19079                 esac
19080               fi
19081             else
19082               # FIXME: insert proper C++ library support
19083               ld_shlibs_CXX=no
19084             fi
19085             ;;
19086         esac
19087         ;;
19088
19089       interix[3-9]*)
19090         hardcode_direct_CXX=no
19091         hardcode_shlibpath_var_CXX=no
19092         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19093         export_dynamic_flag_spec_CXX='${wl}-E'
19094         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19095         # Instead, shared libraries are loaded at an image base (0x10000000 by
19096         # default) and relocated if they conflict, which is a slow very memory
19097         # consuming and fragmenting process.  To avoid this, we pick a random,
19098         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19099         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19100         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'
19101         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'
19102         ;;
19103       irix5* | irix6*)
19104         case $cc_basename in
19105           CC*)
19106             # SGI C++
19107             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'
19108
19109             # Archives containing C++ object files must be created using
19110             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19111             # necessary to make sure instantiated templates are included
19112             # in the archive.
19113             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19114             ;;
19115           *)
19116             if test "$GXX" = yes; then
19117               if test "$with_gnu_ld" = no; then
19118                 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'
19119               else
19120                 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'
19121               fi
19122             fi
19123             link_all_deplibs_CXX=yes
19124             ;;
19125         esac
19126         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19127         hardcode_libdir_separator_CXX=:
19128         inherit_rpath_CXX=yes
19129         ;;
19130
19131       linux* | k*bsd*-gnu)
19132         case $cc_basename in
19133           KCC*)
19134             # Kuck and Associates, Inc. (KAI) C++ Compiler
19135
19136             # KCC will only create a shared library if the output file
19137             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19138             # to its proper name (with version) after linking.
19139             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'
19140             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'
19141             # Commands to make compiler produce verbose output that lists
19142             # what "hidden" libraries, object files and flags are used when
19143             # linking a shared library.
19144             #
19145             # There doesn't appear to be a way to prevent this compiler from
19146             # explicitly linking system object files so we need to strip them
19147             # from the output so that they don't get included in the library
19148             # dependencies.
19149             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'
19150
19151             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19152             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19153
19154             # Archives containing C++ object files must be created using
19155             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19156             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19157             ;;
19158           icpc* | ecpc* )
19159             # Intel C++
19160             with_gnu_ld=yes
19161             # version 8.0 and above of icpc choke on multiply defined symbols
19162             # if we add $predep_objects and $postdep_objects, however 7.1 and
19163             # earlier do not add the objects themselves.
19164             case `$CC -V 2>&1` in
19165               *"Version 7."*)
19166                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19167                 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'
19168                 ;;
19169               *)  # Version 8.0 or newer
19170                 tmp_idyn=
19171                 case $host_cpu in
19172                   ia64*) tmp_idyn=' -i_dynamic';;
19173                 esac
19174                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175                 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'
19176                 ;;
19177             esac
19178             archive_cmds_need_lc_CXX=no
19179             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19180             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19181             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19182             ;;
19183           pgCC* | pgcpp*)
19184             # Portland Group C++ compiler
19185             case `$CC -V` in
19186             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
19187               prelink_cmds_CXX='tpldir=Template.dir~
19188                 rm -rf $tpldir~
19189                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19190                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19191               old_archive_cmds_CXX='tpldir=Template.dir~
19192                 rm -rf $tpldir~
19193                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19194                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19195                 $RANLIB $oldlib'
19196               archive_cmds_CXX='tpldir=Template.dir~
19197                 rm -rf $tpldir~
19198                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19199                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19200               archive_expsym_cmds_CXX='tpldir=Template.dir~
19201                 rm -rf $tpldir~
19202                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19203                 $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'
19204               ;;
19205             *) # Version 6 will use weak symbols
19206               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19207               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'
19208               ;;
19209             esac
19210
19211             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19212             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213             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'
19214             ;;
19215           cxx*)
19216             # Compaq C++
19217             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218             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'
19219
19220             runpath_var=LD_RUN_PATH
19221             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19222             hardcode_libdir_separator_CXX=:
19223
19224             # Commands to make compiler produce verbose output that lists
19225             # what "hidden" libraries, object files and flags are used when
19226             # linking a shared library.
19227             #
19228             # There doesn't appear to be a way to prevent this compiler from
19229             # explicitly linking system object files so we need to strip them
19230             # from the output so that they don't get included in the library
19231             # dependencies.
19232             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'
19233             ;;
19234           xl*)
19235             # IBM XL 8.0 on PPC, with GNU ld
19236             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19237             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19238             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239             if test "x$supports_anon_versioning" = xyes; then
19240               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19241                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242                 echo "local: *; };" >> $output_objdir/$libname.ver~
19243                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244             fi
19245             ;;
19246           *)
19247             case `$CC -V 2>&1 | sed 5q` in
19248             *Sun\ C*)
19249               # Sun C++ 5.9
19250               no_undefined_flag_CXX=' -zdefs'
19251               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252               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'
19253               hardcode_libdir_flag_spec_CXX='-R$libdir'
19254               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'
19255               compiler_needs_object_CXX=yes
19256
19257               # Not sure whether something based on
19258               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19259               # would be better.
19260               output_verbose_link_cmd='echo'
19261
19262               # Archives containing C++ object files must be created using
19263               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19264               # necessary to make sure instantiated templates are included
19265               # in the archive.
19266               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19267               ;;
19268             esac
19269             ;;
19270         esac
19271         ;;
19272
19273       lynxos*)
19274         # FIXME: insert proper C++ library support
19275         ld_shlibs_CXX=no
19276         ;;
19277
19278       m88k*)
19279         # FIXME: insert proper C++ library support
19280         ld_shlibs_CXX=no
19281         ;;
19282
19283       mvs*)
19284         case $cc_basename in
19285           cxx*)
19286             # FIXME: insert proper C++ library support
19287             ld_shlibs_CXX=no
19288             ;;
19289           *)
19290             # FIXME: insert proper C++ library support
19291             ld_shlibs_CXX=no
19292             ;;
19293         esac
19294         ;;
19295
19296       netbsd*)
19297         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19298           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19299           wlarc=
19300           hardcode_libdir_flag_spec_CXX='-R$libdir'
19301           hardcode_direct_CXX=yes
19302           hardcode_shlibpath_var_CXX=no
19303         fi
19304         # Workaround some broken pre-1.5 toolchains
19305         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19306         ;;
19307
19308       *nto* | *qnx*)
19309         ld_shlibs_CXX=yes
19310         ;;
19311
19312       openbsd2*)
19313         # C++ shared libraries are fairly broken
19314         ld_shlibs_CXX=no
19315         ;;
19316
19317       openbsd*)
19318         if test -f /usr/libexec/ld.so; then
19319           hardcode_direct_CXX=yes
19320           hardcode_shlibpath_var_CXX=no
19321           hardcode_direct_absolute_CXX=yes
19322           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19323           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19324           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19325             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19326             export_dynamic_flag_spec_CXX='${wl}-E'
19327             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19328           fi
19329           output_verbose_link_cmd=echo
19330         else
19331           ld_shlibs_CXX=no
19332         fi
19333         ;;
19334
19335       osf3* | osf4* | osf5*)
19336         case $cc_basename in
19337           KCC*)
19338             # Kuck and Associates, Inc. (KAI) C++ Compiler
19339
19340             # KCC will only create a shared library if the output file
19341             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342             # to its proper name (with version) after linking.
19343             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'
19344
19345             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19346             hardcode_libdir_separator_CXX=:
19347
19348             # Archives containing C++ object files must be created using
19349             # the KAI C++ compiler.
19350             case $host in
19351               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19352               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19353             esac
19354             ;;
19355           RCC*)
19356             # Rational C++ 2.4.1
19357             # FIXME: insert proper C++ library support
19358             ld_shlibs_CXX=no
19359             ;;
19360           cxx*)
19361             case $host in
19362               osf3*)
19363                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19364                 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'
19365                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19366                 ;;
19367               *)
19368                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19369                 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'
19370                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19371                   echo "-hidden">> $lib.exp~
19372                   $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~
19373                   $RM $lib.exp'
19374                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375                 ;;
19376             esac
19377
19378             hardcode_libdir_separator_CXX=:
19379
19380             # Commands to make compiler produce verbose output that lists
19381             # what "hidden" libraries, object files and flags are used when
19382             # linking a shared library.
19383             #
19384             # There doesn't appear to be a way to prevent this compiler from
19385             # explicitly linking system object files so we need to strip them
19386             # from the output so that they don't get included in the library
19387             # dependencies.
19388             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'
19389             ;;
19390           *)
19391             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19392               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19393               case $host in
19394                 osf3*)
19395                   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'
19396                   ;;
19397                 *)
19398                   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'
19399                   ;;
19400               esac
19401
19402               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19403               hardcode_libdir_separator_CXX=:
19404
19405               # Commands to make compiler produce verbose output that lists
19406               # what "hidden" libraries, object files and flags are used when
19407               # linking a shared library.
19408               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19409
19410             else
19411               # FIXME: insert proper C++ library support
19412               ld_shlibs_CXX=no
19413             fi
19414             ;;
19415         esac
19416         ;;
19417
19418       psos*)
19419         # FIXME: insert proper C++ library support
19420         ld_shlibs_CXX=no
19421         ;;
19422
19423       sunos4*)
19424         case $cc_basename in
19425           CC*)
19426             # Sun C++ 4.x
19427             # FIXME: insert proper C++ library support
19428             ld_shlibs_CXX=no
19429             ;;
19430           lcc*)
19431             # Lucid
19432             # FIXME: insert proper C++ library support
19433             ld_shlibs_CXX=no
19434             ;;
19435           *)
19436             # FIXME: insert proper C++ library support
19437             ld_shlibs_CXX=no
19438             ;;
19439         esac
19440         ;;
19441
19442       solaris*)
19443         case $cc_basename in
19444           CC*)
19445             # Sun C++ 4.2, 5.x and Centerline C++
19446             archive_cmds_need_lc_CXX=yes
19447             no_undefined_flag_CXX=' -zdefs'
19448             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19449             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19450               $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'
19451
19452             hardcode_libdir_flag_spec_CXX='-R$libdir'
19453             hardcode_shlibpath_var_CXX=no
19454             case $host_os in
19455               solaris2.[0-5] | solaris2.[0-5].*) ;;
19456               *)
19457                 # The compiler driver will combine and reorder linker options,
19458                 # but understands `-z linker_flag'.
19459                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19460                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19461                 ;;
19462             esac
19463             link_all_deplibs_CXX=yes
19464
19465             output_verbose_link_cmd='echo'
19466
19467             # Archives containing C++ object files must be created using
19468             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19469             # necessary to make sure instantiated templates are included
19470             # in the archive.
19471             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19472             ;;
19473           gcx*)
19474             # Green Hills C++ Compiler
19475             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19476
19477             # The C++ compiler must be used to create the archive.
19478             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19479             ;;
19480           *)
19481             # GNU C++ compiler with Solaris linker
19482             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19483               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19484               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19485                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19486                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19487                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19488
19489                 # Commands to make compiler produce verbose output that lists
19490                 # what "hidden" libraries, object files and flags are used when
19491                 # linking a shared library.
19492                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19493               else
19494                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19495                 # platform.
19496                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19497                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19498                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19499
19500                 # Commands to make compiler produce verbose output that lists
19501                 # what "hidden" libraries, object files and flags are used when
19502                 # linking a shared library.
19503                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19504               fi
19505
19506               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19507               case $host_os in
19508                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19509                 *)
19510                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19511                   ;;
19512               esac
19513             fi
19514             ;;
19515         esac
19516         ;;
19517
19518     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19519       no_undefined_flag_CXX='${wl}-z,text'
19520       archive_cmds_need_lc_CXX=no
19521       hardcode_shlibpath_var_CXX=no
19522       runpath_var='LD_RUN_PATH'
19523
19524       case $cc_basename in
19525         CC*)
19526           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19528           ;;
19529         *)
19530           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532           ;;
19533       esac
19534       ;;
19535
19536       sysv5* | sco3.2v5* | sco5v6*)
19537         # Note: We can NOT use -z defs as we might desire, because we do not
19538         # link with -lc, and that would cause any symbols used from libc to
19539         # always be unresolved, which means just about no library would
19540         # ever link correctly.  If we're not using GNU ld we use -z text
19541         # though, which does catch some bad symbols but isn't as heavy-handed
19542         # as -z defs.
19543         no_undefined_flag_CXX='${wl}-z,text'
19544         allow_undefined_flag_CXX='${wl}-z,nodefs'
19545         archive_cmds_need_lc_CXX=no
19546         hardcode_shlibpath_var_CXX=no
19547         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19548         hardcode_libdir_separator_CXX=':'
19549         link_all_deplibs_CXX=yes
19550         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19551         runpath_var='LD_RUN_PATH'
19552
19553         case $cc_basename in
19554           CC*)
19555             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557             ;;
19558           *)
19559             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561             ;;
19562         esac
19563       ;;
19564
19565       tandem*)
19566         case $cc_basename in
19567           NCC*)
19568             # NonStop-UX NCC 3.20
19569             # FIXME: insert proper C++ library support
19570             ld_shlibs_CXX=no
19571             ;;
19572           *)
19573             # FIXME: insert proper C++ library support
19574             ld_shlibs_CXX=no
19575             ;;
19576         esac
19577         ;;
19578
19579       vxworks*)
19580         # FIXME: insert proper C++ library support
19581         ld_shlibs_CXX=no
19582         ;;
19583
19584       *)
19585         # FIXME: insert proper C++ library support
19586         ld_shlibs_CXX=no
19587         ;;
19588     esac
19589
19590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19591 $as_echo "$ld_shlibs_CXX" >&6; }
19592     test "$ld_shlibs_CXX" = no && can_build_shared=no
19593
19594     GCC_CXX="$GXX"
19595     LD_CXX="$LD"
19596
19597     ## CAVEAT EMPTOR:
19598     ## There is no encapsulation within the following macros, do not change
19599     ## the running order or otherwise move them around unless you know exactly
19600     ## what you are doing...
19601     # Dependencies to place before and after the object being linked:
19602 predep_objects_CXX=
19603 postdep_objects_CXX=
19604 predeps_CXX=
19605 postdeps_CXX=
19606 compiler_lib_search_path_CXX=
19607
19608 cat > conftest.$ac_ext <<_LT_EOF
19609 class Foo
19610 {
19611 public:
19612   Foo (void) { a = 0; }
19613 private:
19614   int a;
19615 };
19616 _LT_EOF
19617
19618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19619   (eval $ac_compile) 2>&5
19620   ac_status=$?
19621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622   test $ac_status = 0; }; then
19623   # Parse the compiler output and extract the necessary
19624   # objects, libraries and library flags.
19625
19626   # Sentinel used to keep track of whether or not we are before
19627   # the conftest object file.
19628   pre_test_object_deps_done=no
19629
19630   for p in `eval "$output_verbose_link_cmd"`; do
19631     case $p in
19632
19633     -L* | -R* | -l*)
19634        # Some compilers place space between "-{L,R}" and the path.
19635        # Remove the space.
19636        if test $p = "-L" ||
19637           test $p = "-R"; then
19638          prev=$p
19639          continue
19640        else
19641          prev=
19642        fi
19643
19644        if test "$pre_test_object_deps_done" = no; then
19645          case $p in
19646          -L* | -R*)
19647            # Internal compiler library paths should come after those
19648            # provided the user.  The postdeps already come after the
19649            # user supplied libs so there is no need to process them.
19650            if test -z "$compiler_lib_search_path_CXX"; then
19651              compiler_lib_search_path_CXX="${prev}${p}"
19652            else
19653              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19654            fi
19655            ;;
19656          # The "-l" case would never come before the object being
19657          # linked, so don't bother handling this case.
19658          esac
19659        else
19660          if test -z "$postdeps_CXX"; then
19661            postdeps_CXX="${prev}${p}"
19662          else
19663            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19664          fi
19665        fi
19666        ;;
19667
19668     *.$objext)
19669        # This assumes that the test object file only shows up
19670        # once in the compiler output.
19671        if test "$p" = "conftest.$objext"; then
19672          pre_test_object_deps_done=yes
19673          continue
19674        fi
19675
19676        if test "$pre_test_object_deps_done" = no; then
19677          if test -z "$predep_objects_CXX"; then
19678            predep_objects_CXX="$p"
19679          else
19680            predep_objects_CXX="$predep_objects_CXX $p"
19681          fi
19682        else
19683          if test -z "$postdep_objects_CXX"; then
19684            postdep_objects_CXX="$p"
19685          else
19686            postdep_objects_CXX="$postdep_objects_CXX $p"
19687          fi
19688        fi
19689        ;;
19690
19691     *) ;; # Ignore the rest.
19692
19693     esac
19694   done
19695
19696   # Clean up.
19697   rm -f a.out a.exe
19698 else
19699   echo "libtool.m4: error: problem compiling CXX test program"
19700 fi
19701
19702 $RM -f confest.$objext
19703
19704 # PORTME: override above test on systems where it is broken
19705 case $host_os in
19706 interix[3-9]*)
19707   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19708   # hack all around it, let's just trust "g++" to DTRT.
19709   predep_objects_CXX=
19710   postdep_objects_CXX=
19711   postdeps_CXX=
19712   ;;
19713
19714 linux*)
19715   case `$CC -V 2>&1 | sed 5q` in
19716   *Sun\ C*)
19717     # Sun C++ 5.9
19718
19719     # The more standards-conforming stlport4 library is
19720     # incompatible with the Cstd library. Avoid specifying
19721     # it if it's in CXXFLAGS. Ignore libCrun as
19722     # -library=stlport4 depends on it.
19723     case " $CXX $CXXFLAGS " in
19724     *" -library=stlport4 "*)
19725       solaris_use_stlport4=yes
19726       ;;
19727     esac
19728
19729     if test "$solaris_use_stlport4" != yes; then
19730       postdeps_CXX='-library=Cstd -library=Crun'
19731     fi
19732     ;;
19733   esac
19734   ;;
19735
19736 solaris*)
19737   case $cc_basename in
19738   CC*)
19739     # The more standards-conforming stlport4 library is
19740     # incompatible with the Cstd library. Avoid specifying
19741     # it if it's in CXXFLAGS. Ignore libCrun as
19742     # -library=stlport4 depends on it.
19743     case " $CXX $CXXFLAGS " in
19744     *" -library=stlport4 "*)
19745       solaris_use_stlport4=yes
19746       ;;
19747     esac
19748
19749     # Adding this requires a known-good setup of shared libraries for
19750     # Sun compiler versions before 5.6, else PIC objects from an old
19751     # archive will be linked into the output, leading to subtle bugs.
19752     if test "$solaris_use_stlport4" != yes; then
19753       postdeps_CXX='-library=Cstd -library=Crun'
19754     fi
19755     ;;
19756   esac
19757   ;;
19758 esac
19759
19760
19761 case " $postdeps_CXX " in
19762 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19763 esac
19764  compiler_lib_search_dirs_CXX=
19765 if test -n "${compiler_lib_search_path_CXX}"; then
19766  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19767 fi
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799     lt_prog_compiler_wl_CXX=
19800 lt_prog_compiler_pic_CXX=
19801 lt_prog_compiler_static_CXX=
19802
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19804 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19805
19806   # C++ specific cases for pic, static, wl, etc.
19807   if test "$GXX" = yes; then
19808     lt_prog_compiler_wl_CXX='-Wl,'
19809     lt_prog_compiler_static_CXX='-static'
19810
19811     case $host_os in
19812     aix*)
19813       # All AIX code is PIC.
19814       if test "$host_cpu" = ia64; then
19815         # AIX 5 now supports IA64 processor
19816         lt_prog_compiler_static_CXX='-Bstatic'
19817       fi
19818       ;;
19819
19820     amigaos*)
19821       case $host_cpu in
19822       powerpc)
19823             # see comment about AmigaOS4 .so support
19824             lt_prog_compiler_pic_CXX='-fPIC'
19825         ;;
19826       m68k)
19827             # FIXME: we need at least 68020 code to build shared libraries, but
19828             # adding the `-m68020' flag to GCC prevents building anything better,
19829             # like `-m68040'.
19830             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19831         ;;
19832       esac
19833       ;;
19834
19835     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19836       # PIC is the default for these OSes.
19837       ;;
19838     mingw* | cygwin* | os2* | pw32* | cegcc*)
19839       # This hack is so that the source file can tell whether it is being
19840       # built for inclusion in a dll (and should export symbols for example).
19841       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19842       # (--disable-auto-import) libraries
19843       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19844       ;;
19845     darwin* | rhapsody*)
19846       # PIC is the default on this platform
19847       # Common symbols not allowed in MH_DYLIB files
19848       lt_prog_compiler_pic_CXX='-fno-common'
19849       ;;
19850     *djgpp*)
19851       # DJGPP does not support shared libraries at all
19852       lt_prog_compiler_pic_CXX=
19853       ;;
19854     interix[3-9]*)
19855       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19856       # Instead, we relocate shared libraries at runtime.
19857       ;;
19858     sysv4*MP*)
19859       if test -d /usr/nec; then
19860         lt_prog_compiler_pic_CXX=-Kconform_pic
19861       fi
19862       ;;
19863     hpux*)
19864       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19865       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19866       # sets the default TLS model and affects inlining.
19867       case $host_cpu in
19868       hppa*64*)
19869         ;;
19870       *)
19871         lt_prog_compiler_pic_CXX='-fPIC'
19872         ;;
19873       esac
19874       ;;
19875     *qnx* | *nto*)
19876       # QNX uses GNU C++, but need to define -shared option too, otherwise
19877       # it will coredump.
19878       lt_prog_compiler_pic_CXX='-fPIC -shared'
19879       ;;
19880     *)
19881       lt_prog_compiler_pic_CXX='-fPIC'
19882       ;;
19883     esac
19884   else
19885     case $host_os in
19886       aix[4-9]*)
19887         # All AIX code is PIC.
19888         if test "$host_cpu" = ia64; then
19889           # AIX 5 now supports IA64 processor
19890           lt_prog_compiler_static_CXX='-Bstatic'
19891         else
19892           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19893         fi
19894         ;;
19895       chorus*)
19896         case $cc_basename in
19897         cxch68*)
19898           # Green Hills C++ Compiler
19899           # _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"
19900           ;;
19901         esac
19902         ;;
19903       dgux*)
19904         case $cc_basename in
19905           ec++*)
19906             lt_prog_compiler_pic_CXX='-KPIC'
19907             ;;
19908           ghcx*)
19909             # Green Hills C++ Compiler
19910             lt_prog_compiler_pic_CXX='-pic'
19911             ;;
19912           *)
19913             ;;
19914         esac
19915         ;;
19916       freebsd* | dragonfly*)
19917         # FreeBSD uses GNU C++
19918         ;;
19919       hpux9* | hpux10* | hpux11*)
19920         case $cc_basename in
19921           CC*)
19922             lt_prog_compiler_wl_CXX='-Wl,'
19923             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19924             if test "$host_cpu" != ia64; then
19925               lt_prog_compiler_pic_CXX='+Z'
19926             fi
19927             ;;
19928           aCC*)
19929             lt_prog_compiler_wl_CXX='-Wl,'
19930             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19931             case $host_cpu in
19932             hppa*64*|ia64*)
19933               # +Z the default
19934               ;;
19935             *)
19936               lt_prog_compiler_pic_CXX='+Z'
19937               ;;
19938             esac
19939             ;;
19940           *)
19941             ;;
19942         esac
19943         ;;
19944       interix*)
19945         # This is c89, which is MS Visual C++ (no shared libs)
19946         # Anyone wants to do a port?
19947         ;;
19948       irix5* | irix6* | nonstopux*)
19949         case $cc_basename in
19950           CC*)
19951             lt_prog_compiler_wl_CXX='-Wl,'
19952             lt_prog_compiler_static_CXX='-non_shared'
19953             # CC pic flag -KPIC is the default.
19954             ;;
19955           *)
19956             ;;
19957         esac
19958         ;;
19959       linux* | k*bsd*-gnu)
19960         case $cc_basename in
19961           KCC*)
19962             # KAI C++ Compiler
19963             lt_prog_compiler_wl_CXX='--backend -Wl,'
19964             lt_prog_compiler_pic_CXX='-fPIC'
19965             ;;
19966           ecpc* )
19967             # old Intel C++ for x86_64 which still supported -KPIC.
19968             lt_prog_compiler_wl_CXX='-Wl,'
19969             lt_prog_compiler_pic_CXX='-KPIC'
19970             lt_prog_compiler_static_CXX='-static'
19971             ;;
19972           icpc* )
19973             # Intel C++, used to be incompatible with GCC.
19974             # ICC 10 doesn't accept -KPIC any more.
19975             lt_prog_compiler_wl_CXX='-Wl,'
19976             lt_prog_compiler_pic_CXX='-fPIC'
19977             lt_prog_compiler_static_CXX='-static'
19978             ;;
19979           pgCC* | pgcpp*)
19980             # Portland Group C++ compiler
19981             lt_prog_compiler_wl_CXX='-Wl,'
19982             lt_prog_compiler_pic_CXX='-fpic'
19983             lt_prog_compiler_static_CXX='-Bstatic'
19984             ;;
19985           cxx*)
19986             # Compaq C++
19987             # Make sure the PIC flag is empty.  It appears that all Alpha
19988             # Linux and Compaq Tru64 Unix objects are PIC.
19989             lt_prog_compiler_pic_CXX=
19990             lt_prog_compiler_static_CXX='-non_shared'
19991             ;;
19992           xlc* | xlC*)
19993             # IBM XL 8.0 on PPC
19994             lt_prog_compiler_wl_CXX='-Wl,'
19995             lt_prog_compiler_pic_CXX='-qpic'
19996             lt_prog_compiler_static_CXX='-qstaticlink'
19997             ;;
19998           *)
19999             case `$CC -V 2>&1 | sed 5q` in
20000             *Sun\ C*)
20001               # Sun C++ 5.9
20002               lt_prog_compiler_pic_CXX='-KPIC'
20003               lt_prog_compiler_static_CXX='-Bstatic'
20004               lt_prog_compiler_wl_CXX='-Qoption ld '
20005               ;;
20006             esac
20007             ;;
20008         esac
20009         ;;
20010       lynxos*)
20011         ;;
20012       m88k*)
20013         ;;
20014       mvs*)
20015         case $cc_basename in
20016           cxx*)
20017             lt_prog_compiler_pic_CXX='-W c,exportall'
20018             ;;
20019           *)
20020             ;;
20021         esac
20022         ;;
20023       netbsd*)
20024         ;;
20025       *qnx* | *nto*)
20026         # QNX uses GNU C++, but need to define -shared option too, otherwise
20027         # it will coredump.
20028         lt_prog_compiler_pic_CXX='-fPIC -shared'
20029         ;;
20030       osf3* | osf4* | osf5*)
20031         case $cc_basename in
20032           KCC*)
20033             lt_prog_compiler_wl_CXX='--backend -Wl,'
20034             ;;
20035           RCC*)
20036             # Rational C++ 2.4.1
20037             lt_prog_compiler_pic_CXX='-pic'
20038             ;;
20039           cxx*)
20040             # Digital/Compaq C++
20041             lt_prog_compiler_wl_CXX='-Wl,'
20042             # Make sure the PIC flag is empty.  It appears that all Alpha
20043             # Linux and Compaq Tru64 Unix objects are PIC.
20044             lt_prog_compiler_pic_CXX=
20045             lt_prog_compiler_static_CXX='-non_shared'
20046             ;;
20047           *)
20048             ;;
20049         esac
20050         ;;
20051       psos*)
20052         ;;
20053       solaris*)
20054         case $cc_basename in
20055           CC*)
20056             # Sun C++ 4.2, 5.x and Centerline C++
20057             lt_prog_compiler_pic_CXX='-KPIC'
20058             lt_prog_compiler_static_CXX='-Bstatic'
20059             lt_prog_compiler_wl_CXX='-Qoption ld '
20060             ;;
20061           gcx*)
20062             # Green Hills C++ Compiler
20063             lt_prog_compiler_pic_CXX='-PIC'
20064             ;;
20065           *)
20066             ;;
20067         esac
20068         ;;
20069       sunos4*)
20070         case $cc_basename in
20071           CC*)
20072             # Sun C++ 4.x
20073             lt_prog_compiler_pic_CXX='-pic'
20074             lt_prog_compiler_static_CXX='-Bstatic'
20075             ;;
20076           lcc*)
20077             # Lucid
20078             lt_prog_compiler_pic_CXX='-pic'
20079             ;;
20080           *)
20081             ;;
20082         esac
20083         ;;
20084       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20085         case $cc_basename in
20086           CC*)
20087             lt_prog_compiler_wl_CXX='-Wl,'
20088             lt_prog_compiler_pic_CXX='-KPIC'
20089             lt_prog_compiler_static_CXX='-Bstatic'
20090             ;;
20091         esac
20092         ;;
20093       tandem*)
20094         case $cc_basename in
20095           NCC*)
20096             # NonStop-UX NCC 3.20
20097             lt_prog_compiler_pic_CXX='-KPIC'
20098             ;;
20099           *)
20100             ;;
20101         esac
20102         ;;
20103       vxworks*)
20104         ;;
20105       *)
20106         lt_prog_compiler_can_build_shared_CXX=no
20107         ;;
20108     esac
20109   fi
20110
20111 case $host_os in
20112   # For platforms which do not support PIC, -DPIC is meaningless:
20113   *djgpp*)
20114     lt_prog_compiler_pic_CXX=
20115     ;;
20116   *)
20117     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20118     ;;
20119 esac
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20121 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20122
20123
20124
20125 #
20126 # Check to make sure the PIC flag actually works.
20127 #
20128 if test -n "$lt_prog_compiler_pic_CXX"; then
20129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20130 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20131 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20132   $as_echo_n "(cached) " >&6
20133 else
20134   lt_cv_prog_compiler_pic_works_CXX=no
20135    ac_outfile=conftest.$ac_objext
20136    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20137    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20138    # Insert the option either (1) after the last *FLAGS variable, or
20139    # (2) before a word containing "conftest.", or (3) at the end.
20140    # Note that $ac_compile itself does not contain backslashes and begins
20141    # with a dollar sign (not a hyphen), so the echo should work correctly.
20142    # The option is referenced via a variable to avoid confusing sed.
20143    lt_compile=`echo "$ac_compile" | $SED \
20144    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20146    -e 's:$: $lt_compiler_flag:'`
20147    (eval echo "\"\$as_me:20147: $lt_compile\"" >&5)
20148    (eval "$lt_compile" 2>conftest.err)
20149    ac_status=$?
20150    cat conftest.err >&5
20151    echo "$as_me:20151: \$? = $ac_status" >&5
20152    if (exit $ac_status) && test -s "$ac_outfile"; then
20153      # The compiler can only warn and ignore the option if not recognized
20154      # So say no if there are warnings other than the usual output.
20155      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20156      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20157      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20158        lt_cv_prog_compiler_pic_works_CXX=yes
20159      fi
20160    fi
20161    $RM conftest*
20162
20163 fi
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20165 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20166
20167 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20168     case $lt_prog_compiler_pic_CXX in
20169      "" | " "*) ;;
20170      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20171      esac
20172 else
20173     lt_prog_compiler_pic_CXX=
20174      lt_prog_compiler_can_build_shared_CXX=no
20175 fi
20176
20177 fi
20178
20179
20180
20181 #
20182 # Check to make sure the static flag actually works.
20183 #
20184 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20186 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20187 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20188   $as_echo_n "(cached) " >&6
20189 else
20190   lt_cv_prog_compiler_static_works_CXX=no
20191    save_LDFLAGS="$LDFLAGS"
20192    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20193    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20194    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20195      # The linker can only warn and ignore the option if not recognized
20196      # So say no if there are warnings
20197      if test -s conftest.err; then
20198        # Append any errors to the config.log.
20199        cat conftest.err 1>&5
20200        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20201        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20202        if diff conftest.exp conftest.er2 >/dev/null; then
20203          lt_cv_prog_compiler_static_works_CXX=yes
20204        fi
20205      else
20206        lt_cv_prog_compiler_static_works_CXX=yes
20207      fi
20208    fi
20209    $RM -r conftest*
20210    LDFLAGS="$save_LDFLAGS"
20211
20212 fi
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20214 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20215
20216 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20217     :
20218 else
20219     lt_prog_compiler_static_CXX=
20220 fi
20221
20222
20223
20224
20225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20226 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20227 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20228   $as_echo_n "(cached) " >&6
20229 else
20230   lt_cv_prog_compiler_c_o_CXX=no
20231    $RM -r conftest 2>/dev/null
20232    mkdir conftest
20233    cd conftest
20234    mkdir out
20235    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20236
20237    lt_compiler_flag="-o out/conftest2.$ac_objext"
20238    # Insert the option either (1) after the last *FLAGS variable, or
20239    # (2) before a word containing "conftest.", or (3) at the end.
20240    # Note that $ac_compile itself does not contain backslashes and begins
20241    # with a dollar sign (not a hyphen), so the echo should work correctly.
20242    lt_compile=`echo "$ac_compile" | $SED \
20243    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20244    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20245    -e 's:$: $lt_compiler_flag:'`
20246    (eval echo "\"\$as_me:20246: $lt_compile\"" >&5)
20247    (eval "$lt_compile" 2>out/conftest.err)
20248    ac_status=$?
20249    cat out/conftest.err >&5
20250    echo "$as_me:20250: \$? = $ac_status" >&5
20251    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20252    then
20253      # The compiler can only warn and ignore the option if not recognized
20254      # So say no if there are warnings
20255      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20256      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20257      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20258        lt_cv_prog_compiler_c_o_CXX=yes
20259      fi
20260    fi
20261    chmod u+w . 2>&5
20262    $RM conftest*
20263    # SGI C++ compiler will create directory out/ii_files/ for
20264    # template instantiation
20265    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20266    $RM out/* && rmdir out
20267    cd ..
20268    $RM -r conftest
20269    $RM conftest*
20270
20271 fi
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20273 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20274
20275
20276
20277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20279 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282   lt_cv_prog_compiler_c_o_CXX=no
20283    $RM -r conftest 2>/dev/null
20284    mkdir conftest
20285    cd conftest
20286    mkdir out
20287    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20288
20289    lt_compiler_flag="-o out/conftest2.$ac_objext"
20290    # Insert the option either (1) after the last *FLAGS variable, or
20291    # (2) before a word containing "conftest.", or (3) at the end.
20292    # Note that $ac_compile itself does not contain backslashes and begins
20293    # with a dollar sign (not a hyphen), so the echo should work correctly.
20294    lt_compile=`echo "$ac_compile" | $SED \
20295    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20296    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20297    -e 's:$: $lt_compiler_flag:'`
20298    (eval echo "\"\$as_me:20298: $lt_compile\"" >&5)
20299    (eval "$lt_compile" 2>out/conftest.err)
20300    ac_status=$?
20301    cat out/conftest.err >&5
20302    echo "$as_me:20302: \$? = $ac_status" >&5
20303    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20304    then
20305      # The compiler can only warn and ignore the option if not recognized
20306      # So say no if there are warnings
20307      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20308      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20309      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20310        lt_cv_prog_compiler_c_o_CXX=yes
20311      fi
20312    fi
20313    chmod u+w . 2>&5
20314    $RM conftest*
20315    # SGI C++ compiler will create directory out/ii_files/ for
20316    # template instantiation
20317    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20318    $RM out/* && rmdir out
20319    cd ..
20320    $RM -r conftest
20321    $RM conftest*
20322
20323 fi
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20325 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20326
20327
20328
20329
20330 hard_links="nottested"
20331 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20332   # do not overwrite the value of need_locks provided by the user
20333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20334 $as_echo_n "checking if we can lock with hard links... " >&6; }
20335   hard_links=yes
20336   $RM conftest*
20337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20338   touch conftest.a
20339   ln conftest.a conftest.b 2>&5 || hard_links=no
20340   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20342 $as_echo "$hard_links" >&6; }
20343   if test "$hard_links" = no; then
20344     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20345 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20346     need_locks=warn
20347   fi
20348 else
20349   need_locks=no
20350 fi
20351
20352
20353
20354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20356
20357   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20358   case $host_os in
20359   aix[4-9]*)
20360     # If we're using GNU nm, then we don't want the "-C" option.
20361     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20362     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20363       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'
20364     else
20365       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'
20366     fi
20367     ;;
20368   pw32*)
20369     export_symbols_cmds_CXX="$ltdll_cmds"
20370   ;;
20371   cygwin* | mingw* | cegcc*)
20372     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'
20373   ;;
20374   *)
20375     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20376   ;;
20377   esac
20378   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20379
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20381 $as_echo "$ld_shlibs_CXX" >&6; }
20382 test "$ld_shlibs_CXX" = no && can_build_shared=no
20383
20384 with_gnu_ld_CXX=$with_gnu_ld
20385
20386
20387
20388
20389
20390
20391 #
20392 # Do we need to explicitly link libc?
20393 #
20394 case "x$archive_cmds_need_lc_CXX" in
20395 x|xyes)
20396   # Assume -lc should be added
20397   archive_cmds_need_lc_CXX=yes
20398
20399   if test "$enable_shared" = yes && test "$GCC" = yes; then
20400     case $archive_cmds_CXX in
20401     *'~'*)
20402       # FIXME: we may have to deal with multi-command sequences.
20403       ;;
20404     '$CC '*)
20405       # Test whether the compiler implicitly links with -lc since on some
20406       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20407       # to ld, don't add -lc before -lgcc.
20408       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20409 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20410       $RM conftest*
20411       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20412
20413       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20414   (eval $ac_compile) 2>&5
20415   ac_status=$?
20416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417   test $ac_status = 0; } 2>conftest.err; then
20418         soname=conftest
20419         lib=conftest
20420         libobjs=conftest.$ac_objext
20421         deplibs=
20422         wl=$lt_prog_compiler_wl_CXX
20423         pic_flag=$lt_prog_compiler_pic_CXX
20424         compiler_flags=-v
20425         linker_flags=-v
20426         verstring=
20427         output_objdir=.
20428         libname=conftest
20429         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20430         allow_undefined_flag_CXX=
20431         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20432   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20433   ac_status=$?
20434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20435   test $ac_status = 0; }
20436         then
20437           archive_cmds_need_lc_CXX=no
20438         else
20439           archive_cmds_need_lc_CXX=yes
20440         fi
20441         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20442       else
20443         cat conftest.err 1>&5
20444       fi
20445       $RM conftest*
20446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
20447 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
20448       ;;
20449     esac
20450   fi
20451   ;;
20452 esac
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20518 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20519
20520 library_names_spec=
20521 libname_spec='lib$name'
20522 soname_spec=
20523 shrext_cmds=".so"
20524 postinstall_cmds=
20525 postuninstall_cmds=
20526 finish_cmds=
20527 finish_eval=
20528 shlibpath_var=
20529 shlibpath_overrides_runpath=unknown
20530 version_type=none
20531 dynamic_linker="$host_os ld.so"
20532 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20533 need_lib_prefix=unknown
20534 hardcode_into_libs=no
20535
20536 # when you set need_version to no, make sure it does not cause -set_version
20537 # flags to be left without arguments
20538 need_version=unknown
20539
20540 case $host_os in
20541 aix3*)
20542   version_type=linux
20543   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20544   shlibpath_var=LIBPATH
20545
20546   # AIX 3 has no versioning support, so we append a major version to the name.
20547   soname_spec='${libname}${release}${shared_ext}$major'
20548   ;;
20549
20550 aix[4-9]*)
20551   version_type=linux
20552   need_lib_prefix=no
20553   need_version=no
20554   hardcode_into_libs=yes
20555   if test "$host_cpu" = ia64; then
20556     # AIX 5 supports IA64
20557     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20558     shlibpath_var=LD_LIBRARY_PATH
20559   else
20560     # With GCC up to 2.95.x, collect2 would create an import file
20561     # for dependence libraries.  The import file would start with
20562     # the line `#! .'.  This would cause the generated library to
20563     # depend on `.', always an invalid library.  This was fixed in
20564     # development snapshots of GCC prior to 3.0.
20565     case $host_os in
20566       aix4 | aix4.[01] | aix4.[01].*)
20567       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20568            echo ' yes '
20569            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20570         :
20571       else
20572         can_build_shared=no
20573       fi
20574       ;;
20575     esac
20576     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20577     # soname into executable. Probably we can add versioning support to
20578     # collect2, so additional links can be useful in future.
20579     if test "$aix_use_runtimelinking" = yes; then
20580       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20581       # instead of lib<name>.a to let people know that these are not
20582       # typical AIX shared libraries.
20583       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20584     else
20585       # We preserve .a as extension for shared libraries through AIX4.2
20586       # and later when we are not doing run time linking.
20587       library_names_spec='${libname}${release}.a $libname.a'
20588       soname_spec='${libname}${release}${shared_ext}$major'
20589     fi
20590     shlibpath_var=LIBPATH
20591   fi
20592   ;;
20593
20594 amigaos*)
20595   case $host_cpu in
20596   powerpc)
20597     # Since July 2007 AmigaOS4 officially supports .so libraries.
20598     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600     ;;
20601   m68k)
20602     library_names_spec='$libname.ixlibrary $libname.a'
20603     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20604     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'
20605     ;;
20606   esac
20607   ;;
20608
20609 beos*)
20610   library_names_spec='${libname}${shared_ext}'
20611   dynamic_linker="$host_os ld.so"
20612   shlibpath_var=LIBRARY_PATH
20613   ;;
20614
20615 bsdi[45]*)
20616   version_type=linux
20617   need_version=no
20618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619   soname_spec='${libname}${release}${shared_ext}$major'
20620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20621   shlibpath_var=LD_LIBRARY_PATH
20622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20624   # the default ld.so.conf also contains /usr/contrib/lib and
20625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20626   # libtool to hard-code these into programs
20627   ;;
20628
20629 cygwin* | mingw* | pw32* | cegcc*)
20630   version_type=windows
20631   shrext_cmds=".dll"
20632   need_version=no
20633   need_lib_prefix=no
20634
20635   case $GCC,$host_os in
20636   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20637     library_names_spec='$libname.dll.a'
20638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20639     postinstall_cmds='base_file=`basename \${file}`~
20640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20641       dldir=$destdir/`dirname \$dlpath`~
20642       test -d \$dldir || mkdir -p \$dldir~
20643       $install_prog $dir/$dlname \$dldir/$dlname~
20644       chmod a+x \$dldir/$dlname~
20645       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20646         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20647       fi'
20648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20649       dlpath=$dir/\$dldll~
20650        $RM \$dlpath'
20651     shlibpath_overrides_runpath=yes
20652
20653     case $host_os in
20654     cygwin*)
20655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20657       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20658       ;;
20659     mingw* | cegcc*)
20660       # MinGW DLLs use traditional 'lib' prefix
20661       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20662       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20663       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20664         # It is most probably a Windows format PATH printed by
20665         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20666         # path with ; separators, and with drive letters. We can handle the
20667         # drive letters (cygwin fileutils understands them), so leave them,
20668         # especially as we might pass files found there to a mingw objdump,
20669         # which wouldn't understand a cygwinified path. Ahh.
20670         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20671       else
20672         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20673       fi
20674       ;;
20675     pw32*)
20676       # pw32 DLLs use 'pw' prefix rather than 'lib'
20677       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20678       ;;
20679     esac
20680     ;;
20681
20682   *)
20683     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20684     ;;
20685   esac
20686   dynamic_linker='Win32 ld.exe'
20687   # FIXME: first we should search . and the directory the executable is in
20688   shlibpath_var=PATH
20689   ;;
20690
20691 darwin* | rhapsody*)
20692   dynamic_linker="$host_os dyld"
20693   version_type=darwin
20694   need_lib_prefix=no
20695   need_version=no
20696   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20697   soname_spec='${libname}${release}${major}$shared_ext'
20698   shlibpath_overrides_runpath=yes
20699   shlibpath_var=DYLD_LIBRARY_PATH
20700   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20701
20702   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20703   ;;
20704
20705 dgux*)
20706   version_type=linux
20707   need_lib_prefix=no
20708   need_version=no
20709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20710   soname_spec='${libname}${release}${shared_ext}$major'
20711   shlibpath_var=LD_LIBRARY_PATH
20712   ;;
20713
20714 freebsd1*)
20715   dynamic_linker=no
20716   ;;
20717
20718 freebsd* | dragonfly*)
20719   # DragonFly does not have aout.  When/if they implement a new
20720   # versioning mechanism, adjust this.
20721   if test -x /usr/bin/objformat; then
20722     objformat=`/usr/bin/objformat`
20723   else
20724     case $host_os in
20725     freebsd[123]*) objformat=aout ;;
20726     *) objformat=elf ;;
20727     esac
20728   fi
20729   version_type=freebsd-$objformat
20730   case $version_type in
20731     freebsd-elf*)
20732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20733       need_version=no
20734       need_lib_prefix=no
20735       ;;
20736     freebsd-*)
20737       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20738       need_version=yes
20739       ;;
20740   esac
20741   shlibpath_var=LD_LIBRARY_PATH
20742   case $host_os in
20743   freebsd2*)
20744     shlibpath_overrides_runpath=yes
20745     ;;
20746   freebsd3.[01]* | freebsdelf3.[01]*)
20747     shlibpath_overrides_runpath=yes
20748     hardcode_into_libs=yes
20749     ;;
20750   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20751   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20752     shlibpath_overrides_runpath=no
20753     hardcode_into_libs=yes
20754     ;;
20755   *) # from 4.6 on, and DragonFly
20756     shlibpath_overrides_runpath=yes
20757     hardcode_into_libs=yes
20758     ;;
20759   esac
20760   ;;
20761
20762 gnu*)
20763   version_type=linux
20764   need_lib_prefix=no
20765   need_version=no
20766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20767   soname_spec='${libname}${release}${shared_ext}$major'
20768   shlibpath_var=LD_LIBRARY_PATH
20769   hardcode_into_libs=yes
20770   ;;
20771
20772 hpux9* | hpux10* | hpux11*)
20773   # Give a soname corresponding to the major version so that dld.sl refuses to
20774   # link against other versions.
20775   version_type=sunos
20776   need_lib_prefix=no
20777   need_version=no
20778   case $host_cpu in
20779   ia64*)
20780     shrext_cmds='.so'
20781     hardcode_into_libs=yes
20782     dynamic_linker="$host_os dld.so"
20783     shlibpath_var=LD_LIBRARY_PATH
20784     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20786     soname_spec='${libname}${release}${shared_ext}$major'
20787     if test "X$HPUX_IA64_MODE" = X32; then
20788       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20789     else
20790       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20791     fi
20792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20793     ;;
20794   hppa*64*)
20795     shrext_cmds='.sl'
20796     hardcode_into_libs=yes
20797     dynamic_linker="$host_os dld.sl"
20798     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20799     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801     soname_spec='${libname}${release}${shared_ext}$major'
20802     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20803     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20804     ;;
20805   *)
20806     shrext_cmds='.sl'
20807     dynamic_linker="$host_os dld.sl"
20808     shlibpath_var=SHLIB_PATH
20809     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20811     soname_spec='${libname}${release}${shared_ext}$major'
20812     ;;
20813   esac
20814   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20815   postinstall_cmds='chmod 555 $lib'
20816   ;;
20817
20818 interix[3-9]*)
20819   version_type=linux
20820   need_lib_prefix=no
20821   need_version=no
20822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20823   soname_spec='${libname}${release}${shared_ext}$major'
20824   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20825   shlibpath_var=LD_LIBRARY_PATH
20826   shlibpath_overrides_runpath=no
20827   hardcode_into_libs=yes
20828   ;;
20829
20830 irix5* | irix6* | nonstopux*)
20831   case $host_os in
20832     nonstopux*) version_type=nonstopux ;;
20833     *)
20834         if test "$lt_cv_prog_gnu_ld" = yes; then
20835                 version_type=linux
20836         else
20837                 version_type=irix
20838         fi ;;
20839   esac
20840   need_lib_prefix=no
20841   need_version=no
20842   soname_spec='${libname}${release}${shared_ext}$major'
20843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20844   case $host_os in
20845   irix5* | nonstopux*)
20846     libsuff= shlibsuff=
20847     ;;
20848   *)
20849     case $LD in # libtool.m4 will add one of these switches to LD
20850     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20851       libsuff= shlibsuff= libmagic=32-bit;;
20852     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20853       libsuff=32 shlibsuff=N32 libmagic=N32;;
20854     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20855       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20856     *) libsuff= shlibsuff= libmagic=never-match;;
20857     esac
20858     ;;
20859   esac
20860   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20861   shlibpath_overrides_runpath=no
20862   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20863   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20864   hardcode_into_libs=yes
20865   ;;
20866
20867 # No shared lib support for Linux oldld, aout, or coff.
20868 linux*oldld* | linux*aout* | linux*coff*)
20869   dynamic_linker=no
20870   ;;
20871
20872 # This must be Linux ELF.
20873 linux* | k*bsd*-gnu)
20874   version_type=linux
20875   need_lib_prefix=no
20876   need_version=no
20877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878   soname_spec='${libname}${release}${shared_ext}$major'
20879   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20880   shlibpath_var=LD_LIBRARY_PATH
20881   shlibpath_overrides_runpath=no
20882   # Some binutils ld are patched to set DT_RUNPATH
20883   save_LDFLAGS=$LDFLAGS
20884   save_libdir=$libdir
20885   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20886        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h.  */
20889
20890 int
20891 main ()
20892 {
20893
20894   ;
20895   return 0;
20896 }
20897 _ACEOF
20898 if ac_fn_cxx_try_link "$LINENO"; then :
20899   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20900   shlibpath_overrides_runpath=yes
20901 fi
20902 fi
20903 rm -f core conftest.err conftest.$ac_objext \
20904     conftest$ac_exeext conftest.$ac_ext
20905   LDFLAGS=$save_LDFLAGS
20906   libdir=$save_libdir
20907
20908   # This implies no fast_install, which is unacceptable.
20909   # Some rework will be needed to allow for fast_install
20910   # before this can be enabled.
20911   hardcode_into_libs=yes
20912
20913   # Append ld.so.conf contents to the search path
20914   if test -f /etc/ld.so.conf; then
20915     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' ' '`
20916     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20917   fi
20918
20919   # We used to test for /lib/ld.so.1 and disable shared libraries on
20920   # powerpc, because MkLinux only supported shared libraries with the
20921   # GNU dynamic linker.  Since this was broken with cross compilers,
20922   # most powerpc-linux boxes support dynamic linking these days and
20923   # people can always --disable-shared, the test was removed, and we
20924   # assume the GNU/Linux dynamic linker is in use.
20925   dynamic_linker='GNU/Linux ld.so'
20926   ;;
20927
20928 netbsd*)
20929   version_type=sunos
20930   need_lib_prefix=no
20931   need_version=no
20932   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20935     dynamic_linker='NetBSD (a.out) ld.so'
20936   else
20937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20938     soname_spec='${libname}${release}${shared_ext}$major'
20939     dynamic_linker='NetBSD ld.elf_so'
20940   fi
20941   shlibpath_var=LD_LIBRARY_PATH
20942   shlibpath_overrides_runpath=yes
20943   hardcode_into_libs=yes
20944   ;;
20945
20946 newsos6)
20947   version_type=linux
20948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949   shlibpath_var=LD_LIBRARY_PATH
20950   shlibpath_overrides_runpath=yes
20951   ;;
20952
20953 *nto* | *qnx*)
20954   version_type=qnx
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   shlibpath_overrides_runpath=no
20961   hardcode_into_libs=yes
20962   dynamic_linker='ldqnx.so'
20963   ;;
20964
20965 openbsd*)
20966   version_type=sunos
20967   sys_lib_dlsearch_path_spec="/usr/lib"
20968   need_lib_prefix=no
20969   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20970   case $host_os in
20971     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20972     *)                          need_version=no  ;;
20973   esac
20974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20976   shlibpath_var=LD_LIBRARY_PATH
20977   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20978     case $host_os in
20979       openbsd2.[89] | openbsd2.[89].*)
20980         shlibpath_overrides_runpath=no
20981         ;;
20982       *)
20983         shlibpath_overrides_runpath=yes
20984         ;;
20985       esac
20986   else
20987     shlibpath_overrides_runpath=yes
20988   fi
20989   ;;
20990
20991 os2*)
20992   libname_spec='$name'
20993   shrext_cmds=".dll"
20994   need_lib_prefix=no
20995   library_names_spec='$libname${shared_ext} $libname.a'
20996   dynamic_linker='OS/2 ld.exe'
20997   shlibpath_var=LIBPATH
20998   ;;
20999
21000 osf3* | osf4* | osf5*)
21001   version_type=osf
21002   need_lib_prefix=no
21003   need_version=no
21004   soname_spec='${libname}${release}${shared_ext}$major'
21005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006   shlibpath_var=LD_LIBRARY_PATH
21007   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21008   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21009   ;;
21010
21011 rdos*)
21012   dynamic_linker=no
21013   ;;
21014
21015 solaris*)
21016   version_type=linux
21017   need_lib_prefix=no
21018   need_version=no
21019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020   soname_spec='${libname}${release}${shared_ext}$major'
21021   shlibpath_var=LD_LIBRARY_PATH
21022   shlibpath_overrides_runpath=yes
21023   hardcode_into_libs=yes
21024   # ldd complains unless libraries are executable
21025   postinstall_cmds='chmod +x $lib'
21026   ;;
21027
21028 sunos4*)
21029   version_type=sunos
21030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21032   shlibpath_var=LD_LIBRARY_PATH
21033   shlibpath_overrides_runpath=yes
21034   if test "$with_gnu_ld" = yes; then
21035     need_lib_prefix=no
21036   fi
21037   need_version=yes
21038   ;;
21039
21040 sysv4 | sysv4.3*)
21041   version_type=linux
21042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043   soname_spec='${libname}${release}${shared_ext}$major'
21044   shlibpath_var=LD_LIBRARY_PATH
21045   case $host_vendor in
21046     sni)
21047       shlibpath_overrides_runpath=no
21048       need_lib_prefix=no
21049       runpath_var=LD_RUN_PATH
21050       ;;
21051     siemens)
21052       need_lib_prefix=no
21053       ;;
21054     motorola)
21055       need_lib_prefix=no
21056       need_version=no
21057       shlibpath_overrides_runpath=no
21058       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21059       ;;
21060   esac
21061   ;;
21062
21063 sysv4*MP*)
21064   if test -d /usr/nec ;then
21065     version_type=linux
21066     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21067     soname_spec='$libname${shared_ext}.$major'
21068     shlibpath_var=LD_LIBRARY_PATH
21069   fi
21070   ;;
21071
21072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21073   version_type=freebsd-elf
21074   need_lib_prefix=no
21075   need_version=no
21076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21077   soname_spec='${libname}${release}${shared_ext}$major'
21078   shlibpath_var=LD_LIBRARY_PATH
21079   shlibpath_overrides_runpath=yes
21080   hardcode_into_libs=yes
21081   if test "$with_gnu_ld" = yes; then
21082     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21083   else
21084     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21085     case $host_os in
21086       sco3.2v5*)
21087         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21088         ;;
21089     esac
21090   fi
21091   sys_lib_dlsearch_path_spec='/usr/lib'
21092   ;;
21093
21094 tpf*)
21095   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21096   version_type=linux
21097   need_lib_prefix=no
21098   need_version=no
21099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100   shlibpath_var=LD_LIBRARY_PATH
21101   shlibpath_overrides_runpath=no
21102   hardcode_into_libs=yes
21103   ;;
21104
21105 uts4*)
21106   version_type=linux
21107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108   soname_spec='${libname}${release}${shared_ext}$major'
21109   shlibpath_var=LD_LIBRARY_PATH
21110   ;;
21111
21112 *)
21113   dynamic_linker=no
21114   ;;
21115 esac
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21117 $as_echo "$dynamic_linker" >&6; }
21118 test "$dynamic_linker" = no && can_build_shared=no
21119
21120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21121 if test "$GCC" = yes; then
21122   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21123 fi
21124
21125 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21126   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21127 fi
21128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21129   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21130 fi
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21169 hardcode_action_CXX=
21170 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21171    test -n "$runpath_var_CXX" ||
21172    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21173
21174   # We can hardcode non-existent directories.
21175   if test "$hardcode_direct_CXX" != no &&
21176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21177      # have to relink, otherwise we might link with an installed library
21178      # when we should be linking with a yet-to-be-installed one
21179      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21180      test "$hardcode_minus_L_CXX" != no; then
21181     # Linking always hardcodes the temporary library directory.
21182     hardcode_action_CXX=relink
21183   else
21184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21185     hardcode_action_CXX=immediate
21186   fi
21187 else
21188   # We cannot hardcode anything, or else we can only hardcode existing
21189   # directories.
21190   hardcode_action_CXX=unsupported
21191 fi
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21193 $as_echo "$hardcode_action_CXX" >&6; }
21194
21195 if test "$hardcode_action_CXX" = relink ||
21196    test "$inherit_rpath_CXX" = yes; then
21197   # Fast installation is not supported
21198   enable_fast_install=no
21199 elif test "$shlibpath_overrides_runpath" = yes ||
21200      test "$enable_shared" = no; then
21201   # Fast installation is not necessary
21202   enable_fast_install=needless
21203 fi
21204
21205
21206
21207
21208
21209
21210
21211   fi # test -n "$compiler"
21212
21213   CC=$lt_save_CC
21214   LDCXX=$LD
21215   LD=$lt_save_LD
21216   GCC=$lt_save_GCC
21217   with_gnu_ld=$lt_save_with_gnu_ld
21218   lt_cv_path_LDCXX=$lt_cv_path_LD
21219   lt_cv_path_LD=$lt_save_path_LD
21220   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21221   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21222 fi # test "$_lt_caught_CXX_error" != yes
21223
21224 ac_ext=c
21225 ac_cpp='$CPP $CPPFLAGS'
21226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21229
21230
21231
21232       ac_ext=f
21233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21236
21237
21238 archive_cmds_need_lc_F77=no
21239 allow_undefined_flag_F77=
21240 always_export_symbols_F77=no
21241 archive_expsym_cmds_F77=
21242 export_dynamic_flag_spec_F77=
21243 hardcode_direct_F77=no
21244 hardcode_direct_absolute_F77=no
21245 hardcode_libdir_flag_spec_F77=
21246 hardcode_libdir_flag_spec_ld_F77=
21247 hardcode_libdir_separator_F77=
21248 hardcode_minus_L_F77=no
21249 hardcode_automatic_F77=no
21250 inherit_rpath_F77=no
21251 module_cmds_F77=
21252 module_expsym_cmds_F77=
21253 link_all_deplibs_F77=unknown
21254 old_archive_cmds_F77=$old_archive_cmds
21255 no_undefined_flag_F77=
21256 whole_archive_flag_spec_F77=
21257 enable_shared_with_static_runtimes_F77=no
21258
21259 # Source file extension for f77 test sources.
21260 ac_ext=f
21261
21262 # Object file extension for compiled f77 test sources.
21263 objext=o
21264 objext_F77=$objext
21265
21266 # No sense in running all these tests if we already determined that
21267 # the F77 compiler isn't working.  Some variables (like enable_shared)
21268 # are currently assumed to apply to all compilers on this platform,
21269 # and will be corrupted by setting them based on a non-working compiler.
21270 if test "$_lt_disable_F77" != yes; then
21271   # Code to be used in simple compile tests
21272   lt_simple_compile_test_code="\
21273       subroutine t
21274       return
21275       end
21276 "
21277
21278   # Code to be used in simple link tests
21279   lt_simple_link_test_code="\
21280       program t
21281       end
21282 "
21283
21284   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21285
21286
21287
21288
21289
21290
21291 # If no C compiler was specified, use CC.
21292 LTCC=${LTCC-"$CC"}
21293
21294 # If no C compiler flags were specified, use CFLAGS.
21295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21296
21297 # Allow CC to be a program name with arguments.
21298 compiler=$CC
21299
21300
21301   # save warnings/boilerplate of simple test code
21302   ac_outfile=conftest.$ac_objext
21303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21305 _lt_compiler_boilerplate=`cat conftest.err`
21306 $RM conftest*
21307
21308   ac_outfile=conftest.$ac_objext
21309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21311 _lt_linker_boilerplate=`cat conftest.err`
21312 $RM -r conftest*
21313
21314
21315   # Allow CC to be a program name with arguments.
21316   lt_save_CC="$CC"
21317   lt_save_GCC=$GCC
21318   CC=${F77-"f77"}
21319   compiler=$CC
21320   compiler_F77=$CC
21321   for cc_temp in $compiler""; do
21322   case $cc_temp in
21323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21325     \-*) ;;
21326     *) break;;
21327   esac
21328 done
21329 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21330
21331   GCC=$G77
21332   if test -n "$compiler"; then
21333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21334 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21336 $as_echo "$can_build_shared" >&6; }
21337
21338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21339 $as_echo_n "checking whether to build shared libraries... " >&6; }
21340     test "$can_build_shared" = "no" && enable_shared=no
21341
21342     # On AIX, shared libraries and static libraries use the same namespace, and
21343     # are all built from PIC.
21344     case $host_os in
21345       aix3*)
21346         test "$enable_shared" = yes && enable_static=no
21347         if test -n "$RANLIB"; then
21348           archive_cmds="$archive_cmds~\$RANLIB \$lib"
21349           postinstall_cmds='$RANLIB $lib'
21350         fi
21351         ;;
21352       aix[4-9]*)
21353         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21354           test "$enable_shared" = yes && enable_static=no
21355         fi
21356         ;;
21357     esac
21358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21359 $as_echo "$enable_shared" >&6; }
21360
21361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21362 $as_echo_n "checking whether to build static libraries... " >&6; }
21363     # Make sure either enable_shared or enable_static is yes.
21364     test "$enable_shared" = yes || enable_static=yes
21365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21366 $as_echo "$enable_static" >&6; }
21367
21368     GCC_F77="$G77"
21369     LD_F77="$LD"
21370
21371     ## CAVEAT EMPTOR:
21372     ## There is no encapsulation within the following macros, do not change
21373     ## the running order or otherwise move them around unless you know exactly
21374     ## what you are doing...
21375     lt_prog_compiler_wl_F77=
21376 lt_prog_compiler_pic_F77=
21377 lt_prog_compiler_static_F77=
21378
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21380 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21381
21382   if test "$GCC" = yes; then
21383     lt_prog_compiler_wl_F77='-Wl,'
21384     lt_prog_compiler_static_F77='-static'
21385
21386     case $host_os in
21387       aix*)
21388       # All AIX code is PIC.
21389       if test "$host_cpu" = ia64; then
21390         # AIX 5 now supports IA64 processor
21391         lt_prog_compiler_static_F77='-Bstatic'
21392       fi
21393       ;;
21394
21395     amigaos*)
21396       case $host_cpu in
21397       powerpc)
21398             # see comment about AmigaOS4 .so support
21399             lt_prog_compiler_pic_F77='-fPIC'
21400         ;;
21401       m68k)
21402             # FIXME: we need at least 68020 code to build shared libraries, but
21403             # adding the `-m68020' flag to GCC prevents building anything better,
21404             # like `-m68040'.
21405             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21406         ;;
21407       esac
21408       ;;
21409
21410     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21411       # PIC is the default for these OSes.
21412       ;;
21413
21414     mingw* | cygwin* | pw32* | os2* | cegcc*)
21415       # This hack is so that the source file can tell whether it is being
21416       # built for inclusion in a dll (and should export symbols for example).
21417       # Although the cygwin gcc ignores -fPIC, still need this for old-style
21418       # (--disable-auto-import) libraries
21419       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21420       ;;
21421
21422     darwin* | rhapsody*)
21423       # PIC is the default on this platform
21424       # Common symbols not allowed in MH_DYLIB files
21425       lt_prog_compiler_pic_F77='-fno-common'
21426       ;;
21427
21428     hpux*)
21429       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21430       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21431       # sets the default TLS model and affects inlining.
21432       case $host_cpu in
21433       hppa*64*)
21434         # +Z the default
21435         ;;
21436       *)
21437         lt_prog_compiler_pic_F77='-fPIC'
21438         ;;
21439       esac
21440       ;;
21441
21442     interix[3-9]*)
21443       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21444       # Instead, we relocate shared libraries at runtime.
21445       ;;
21446
21447     msdosdjgpp*)
21448       # Just because we use GCC doesn't mean we suddenly get shared libraries
21449       # on systems that don't support them.
21450       lt_prog_compiler_can_build_shared_F77=no
21451       enable_shared=no
21452       ;;
21453
21454     *nto* | *qnx*)
21455       # QNX uses GNU C++, but need to define -shared option too, otherwise
21456       # it will coredump.
21457       lt_prog_compiler_pic_F77='-fPIC -shared'
21458       ;;
21459
21460     sysv4*MP*)
21461       if test -d /usr/nec; then
21462         lt_prog_compiler_pic_F77=-Kconform_pic
21463       fi
21464       ;;
21465
21466     *)
21467       lt_prog_compiler_pic_F77='-fPIC'
21468       ;;
21469     esac
21470   else
21471     # PORTME Check for flag to pass linker flags through the system compiler.
21472     case $host_os in
21473     aix*)
21474       lt_prog_compiler_wl_F77='-Wl,'
21475       if test "$host_cpu" = ia64; then
21476         # AIX 5 now supports IA64 processor
21477         lt_prog_compiler_static_F77='-Bstatic'
21478       else
21479         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21480       fi
21481       ;;
21482
21483     mingw* | cygwin* | pw32* | os2* | cegcc*)
21484       # This hack is so that the source file can tell whether it is being
21485       # built for inclusion in a dll (and should export symbols for example).
21486       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21487       ;;
21488
21489     hpux9* | hpux10* | hpux11*)
21490       lt_prog_compiler_wl_F77='-Wl,'
21491       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21492       # not for PA HP-UX.
21493       case $host_cpu in
21494       hppa*64*|ia64*)
21495         # +Z the default
21496         ;;
21497       *)
21498         lt_prog_compiler_pic_F77='+Z'
21499         ;;
21500       esac
21501       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21502       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21503       ;;
21504
21505     irix5* | irix6* | nonstopux*)
21506       lt_prog_compiler_wl_F77='-Wl,'
21507       # PIC (with -KPIC) is the default.
21508       lt_prog_compiler_static_F77='-non_shared'
21509       ;;
21510
21511     linux* | k*bsd*-gnu)
21512       case $cc_basename in
21513       # old Intel for x86_64 which still supported -KPIC.
21514       ecc*)
21515         lt_prog_compiler_wl_F77='-Wl,'
21516         lt_prog_compiler_pic_F77='-KPIC'
21517         lt_prog_compiler_static_F77='-static'
21518         ;;
21519       # icc used to be incompatible with GCC.
21520       # ICC 10 doesn't accept -KPIC any more.
21521       icc* | ifort*)
21522         lt_prog_compiler_wl_F77='-Wl,'
21523         lt_prog_compiler_pic_F77='-fPIC'
21524         lt_prog_compiler_static_F77='-static'
21525         ;;
21526       # Lahey Fortran 8.1.
21527       lf95*)
21528         lt_prog_compiler_wl_F77='-Wl,'
21529         lt_prog_compiler_pic_F77='--shared'
21530         lt_prog_compiler_static_F77='--static'
21531         ;;
21532       pgcc* | pgf77* | pgf90* | pgf95*)
21533         # Portland Group compilers (*not* the Pentium gcc compiler,
21534         # which looks to be a dead project)
21535         lt_prog_compiler_wl_F77='-Wl,'
21536         lt_prog_compiler_pic_F77='-fpic'
21537         lt_prog_compiler_static_F77='-Bstatic'
21538         ;;
21539       ccc*)
21540         lt_prog_compiler_wl_F77='-Wl,'
21541         # All Alpha code is PIC.
21542         lt_prog_compiler_static_F77='-non_shared'
21543         ;;
21544       xl*)
21545         # IBM XL C 8.0/Fortran 10.1 on PPC
21546         lt_prog_compiler_wl_F77='-Wl,'
21547         lt_prog_compiler_pic_F77='-qpic'
21548         lt_prog_compiler_static_F77='-qstaticlink'
21549         ;;
21550       *)
21551         case `$CC -V 2>&1 | sed 5q` in
21552         *Sun\ C*)
21553           # Sun C 5.9
21554           lt_prog_compiler_pic_F77='-KPIC'
21555           lt_prog_compiler_static_F77='-Bstatic'
21556           lt_prog_compiler_wl_F77='-Wl,'
21557           ;;
21558         *Sun\ F*)
21559           # Sun Fortran 8.3 passes all unrecognized flags to the linker
21560           lt_prog_compiler_pic_F77='-KPIC'
21561           lt_prog_compiler_static_F77='-Bstatic'
21562           lt_prog_compiler_wl_F77=''
21563           ;;
21564         esac
21565         ;;
21566       esac
21567       ;;
21568
21569     newsos6)
21570       lt_prog_compiler_pic_F77='-KPIC'
21571       lt_prog_compiler_static_F77='-Bstatic'
21572       ;;
21573
21574     *nto* | *qnx*)
21575       # QNX uses GNU C++, but need to define -shared option too, otherwise
21576       # it will coredump.
21577       lt_prog_compiler_pic_F77='-fPIC -shared'
21578       ;;
21579
21580     osf3* | osf4* | osf5*)
21581       lt_prog_compiler_wl_F77='-Wl,'
21582       # All OSF/1 code is PIC.
21583       lt_prog_compiler_static_F77='-non_shared'
21584       ;;
21585
21586     rdos*)
21587       lt_prog_compiler_static_F77='-non_shared'
21588       ;;
21589
21590     solaris*)
21591       lt_prog_compiler_pic_F77='-KPIC'
21592       lt_prog_compiler_static_F77='-Bstatic'
21593       case $cc_basename in
21594       f77* | f90* | f95*)
21595         lt_prog_compiler_wl_F77='-Qoption ld ';;
21596       *)
21597         lt_prog_compiler_wl_F77='-Wl,';;
21598       esac
21599       ;;
21600
21601     sunos4*)
21602       lt_prog_compiler_wl_F77='-Qoption ld '
21603       lt_prog_compiler_pic_F77='-PIC'
21604       lt_prog_compiler_static_F77='-Bstatic'
21605       ;;
21606
21607     sysv4 | sysv4.2uw2* | sysv4.3*)
21608       lt_prog_compiler_wl_F77='-Wl,'
21609       lt_prog_compiler_pic_F77='-KPIC'
21610       lt_prog_compiler_static_F77='-Bstatic'
21611       ;;
21612
21613     sysv4*MP*)
21614       if test -d /usr/nec ;then
21615         lt_prog_compiler_pic_F77='-Kconform_pic'
21616         lt_prog_compiler_static_F77='-Bstatic'
21617       fi
21618       ;;
21619
21620     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21621       lt_prog_compiler_wl_F77='-Wl,'
21622       lt_prog_compiler_pic_F77='-KPIC'
21623       lt_prog_compiler_static_F77='-Bstatic'
21624       ;;
21625
21626     unicos*)
21627       lt_prog_compiler_wl_F77='-Wl,'
21628       lt_prog_compiler_can_build_shared_F77=no
21629       ;;
21630
21631     uts4*)
21632       lt_prog_compiler_pic_F77='-pic'
21633       lt_prog_compiler_static_F77='-Bstatic'
21634       ;;
21635
21636     *)
21637       lt_prog_compiler_can_build_shared_F77=no
21638       ;;
21639     esac
21640   fi
21641
21642 case $host_os in
21643   # For platforms which do not support PIC, -DPIC is meaningless:
21644   *djgpp*)
21645     lt_prog_compiler_pic_F77=
21646     ;;
21647   *)
21648     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21649     ;;
21650 esac
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
21652 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
21653
21654
21655
21656 #
21657 # Check to make sure the PIC flag actually works.
21658 #
21659 if test -n "$lt_prog_compiler_pic_F77"; then
21660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21661 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
21662 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
21663   $as_echo_n "(cached) " >&6
21664 else
21665   lt_cv_prog_compiler_pic_works_F77=no
21666    ac_outfile=conftest.$ac_objext
21667    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21668    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21669    # Insert the option either (1) after the last *FLAGS variable, or
21670    # (2) before a word containing "conftest.", or (3) at the end.
21671    # Note that $ac_compile itself does not contain backslashes and begins
21672    # with a dollar sign (not a hyphen), so the echo should work correctly.
21673    # The option is referenced via a variable to avoid confusing sed.
21674    lt_compile=`echo "$ac_compile" | $SED \
21675    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21677    -e 's:$: $lt_compiler_flag:'`
21678    (eval echo "\"\$as_me:21678: $lt_compile\"" >&5)
21679    (eval "$lt_compile" 2>conftest.err)
21680    ac_status=$?
21681    cat conftest.err >&5
21682    echo "$as_me:21682: \$? = $ac_status" >&5
21683    if (exit $ac_status) && test -s "$ac_outfile"; then
21684      # The compiler can only warn and ignore the option if not recognized
21685      # So say no if there are warnings other than the usual output.
21686      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21687      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21688      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21689        lt_cv_prog_compiler_pic_works_F77=yes
21690      fi
21691    fi
21692    $RM conftest*
21693
21694 fi
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21696 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
21697
21698 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21699     case $lt_prog_compiler_pic_F77 in
21700      "" | " "*) ;;
21701      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21702      esac
21703 else
21704     lt_prog_compiler_pic_F77=
21705      lt_prog_compiler_can_build_shared_F77=no
21706 fi
21707
21708 fi
21709
21710
21711
21712 #
21713 # Check to make sure the static flag actually works.
21714 #
21715 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21718 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
21719   $as_echo_n "(cached) " >&6
21720 else
21721   lt_cv_prog_compiler_static_works_F77=no
21722    save_LDFLAGS="$LDFLAGS"
21723    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21724    echo "$lt_simple_link_test_code" > conftest.$ac_ext
21725    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21726      # The linker can only warn and ignore the option if not recognized
21727      # So say no if there are warnings
21728      if test -s conftest.err; then
21729        # Append any errors to the config.log.
21730        cat conftest.err 1>&5
21731        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21732        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21733        if diff conftest.exp conftest.er2 >/dev/null; then
21734          lt_cv_prog_compiler_static_works_F77=yes
21735        fi
21736      else
21737        lt_cv_prog_compiler_static_works_F77=yes
21738      fi
21739    fi
21740    $RM -r conftest*
21741    LDFLAGS="$save_LDFLAGS"
21742
21743 fi
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
21745 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
21746
21747 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21748     :
21749 else
21750     lt_prog_compiler_static_F77=
21751 fi
21752
21753
21754
21755
21756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21758 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
21759   $as_echo_n "(cached) " >&6
21760 else
21761   lt_cv_prog_compiler_c_o_F77=no
21762    $RM -r conftest 2>/dev/null
21763    mkdir conftest
21764    cd conftest
21765    mkdir out
21766    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21767
21768    lt_compiler_flag="-o out/conftest2.$ac_objext"
21769    # Insert the option either (1) after the last *FLAGS variable, or
21770    # (2) before a word containing "conftest.", or (3) at the end.
21771    # Note that $ac_compile itself does not contain backslashes and begins
21772    # with a dollar sign (not a hyphen), so the echo should work correctly.
21773    lt_compile=`echo "$ac_compile" | $SED \
21774    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21776    -e 's:$: $lt_compiler_flag:'`
21777    (eval echo "\"\$as_me:21777: $lt_compile\"" >&5)
21778    (eval "$lt_compile" 2>out/conftest.err)
21779    ac_status=$?
21780    cat out/conftest.err >&5
21781    echo "$as_me:21781: \$? = $ac_status" >&5
21782    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21783    then
21784      # The compiler can only warn and ignore the option if not recognized
21785      # So say no if there are warnings
21786      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21787      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21788      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21789        lt_cv_prog_compiler_c_o_F77=yes
21790      fi
21791    fi
21792    chmod u+w . 2>&5
21793    $RM conftest*
21794    # SGI C++ compiler will create directory out/ii_files/ for
21795    # template instantiation
21796    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21797    $RM out/* && rmdir out
21798    cd ..
21799    $RM -r conftest
21800    $RM conftest*
21801
21802 fi
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
21804 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
21805
21806
21807
21808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21809 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21810 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
21811   $as_echo_n "(cached) " >&6
21812 else
21813   lt_cv_prog_compiler_c_o_F77=no
21814    $RM -r conftest 2>/dev/null
21815    mkdir conftest
21816    cd conftest
21817    mkdir out
21818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21819
21820    lt_compiler_flag="-o out/conftest2.$ac_objext"
21821    # Insert the option either (1) after the last *FLAGS variable, or
21822    # (2) before a word containing "conftest.", or (3) at the end.
21823    # Note that $ac_compile itself does not contain backslashes and begins
21824    # with a dollar sign (not a hyphen), so the echo should work correctly.
21825    lt_compile=`echo "$ac_compile" | $SED \
21826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21828    -e 's:$: $lt_compiler_flag:'`
21829    (eval echo "\"\$as_me:21829: $lt_compile\"" >&5)
21830    (eval "$lt_compile" 2>out/conftest.err)
21831    ac_status=$?
21832    cat out/conftest.err >&5
21833    echo "$as_me:21833: \$? = $ac_status" >&5
21834    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21835    then
21836      # The compiler can only warn and ignore the option if not recognized
21837      # So say no if there are warnings
21838      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21839      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21840      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21841        lt_cv_prog_compiler_c_o_F77=yes
21842      fi
21843    fi
21844    chmod u+w . 2>&5
21845    $RM conftest*
21846    # SGI C++ compiler will create directory out/ii_files/ for
21847    # template instantiation
21848    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21849    $RM out/* && rmdir out
21850    cd ..
21851    $RM -r conftest
21852    $RM conftest*
21853
21854 fi
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
21856 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
21857
21858
21859
21860
21861 hard_links="nottested"
21862 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21863   # do not overwrite the value of need_locks provided by the user
21864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21865 $as_echo_n "checking if we can lock with hard links... " >&6; }
21866   hard_links=yes
21867   $RM conftest*
21868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21869   touch conftest.a
21870   ln conftest.a conftest.b 2>&5 || hard_links=no
21871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21873 $as_echo "$hard_links" >&6; }
21874   if test "$hard_links" = no; then
21875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21876 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21877     need_locks=warn
21878   fi
21879 else
21880   need_locks=no
21881 fi
21882
21883
21884
21885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21887
21888   runpath_var=
21889   allow_undefined_flag_F77=
21890   always_export_symbols_F77=no
21891   archive_cmds_F77=
21892   archive_expsym_cmds_F77=
21893   compiler_needs_object_F77=no
21894   enable_shared_with_static_runtimes_F77=no
21895   export_dynamic_flag_spec_F77=
21896   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21897   hardcode_automatic_F77=no
21898   hardcode_direct_F77=no
21899   hardcode_direct_absolute_F77=no
21900   hardcode_libdir_flag_spec_F77=
21901   hardcode_libdir_flag_spec_ld_F77=
21902   hardcode_libdir_separator_F77=
21903   hardcode_minus_L_F77=no
21904   hardcode_shlibpath_var_F77=unsupported
21905   inherit_rpath_F77=no
21906   link_all_deplibs_F77=unknown
21907   module_cmds_F77=
21908   module_expsym_cmds_F77=
21909   old_archive_from_new_cmds_F77=
21910   old_archive_from_expsyms_cmds_F77=
21911   thread_safe_flag_spec_F77=
21912   whole_archive_flag_spec_F77=
21913   # include_expsyms should be a list of space-separated symbols to be *always*
21914   # included in the symbol list
21915   include_expsyms_F77=
21916   # exclude_expsyms can be an extended regexp of symbols to exclude
21917   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21918   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21919   # as well as any symbol that contains `d'.
21920   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21921   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21922   # platforms (ab)use it in PIC code, but their linkers get confused if
21923   # the symbol is explicitly referenced.  Since portable code cannot
21924   # rely on this symbol name, it's probably fine to never include it in
21925   # preloaded symbol tables.
21926   # Exclude shared library initialization/finalization symbols.
21927   extract_expsyms_cmds=
21928
21929   case $host_os in
21930   cygwin* | mingw* | pw32* | cegcc*)
21931     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21932     # When not using gcc, we currently assume that we are using
21933     # Microsoft Visual C++.
21934     if test "$GCC" != yes; then
21935       with_gnu_ld=no
21936     fi
21937     ;;
21938   interix*)
21939     # we just hope/assume this is gcc and not c89 (= MSVC++)
21940     with_gnu_ld=yes
21941     ;;
21942   openbsd*)
21943     with_gnu_ld=no
21944     ;;
21945   esac
21946
21947   ld_shlibs_F77=yes
21948   if test "$with_gnu_ld" = yes; then
21949     # If archive_cmds runs LD, not CC, wlarc should be empty
21950     wlarc='${wl}'
21951
21952     # Set some defaults for GNU ld with shared library support. These
21953     # are reset later if shared libraries are not supported. Putting them
21954     # here allows them to be overridden if necessary.
21955     runpath_var=LD_RUN_PATH
21956     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21957     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21958     # ancient GNU ld didn't support --whole-archive et. al.
21959     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21960       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21961     else
21962       whole_archive_flag_spec_F77=
21963     fi
21964     supports_anon_versioning=no
21965     case `$LD -v 2>&1` in
21966       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21967       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21968       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21969       *\ 2.11.*) ;; # other 2.11 versions
21970       *) supports_anon_versioning=yes ;;
21971     esac
21972
21973     # See if GNU ld supports shared libraries.
21974     case $host_os in
21975     aix[3-9]*)
21976       # On AIX/PPC, the GNU linker is very broken
21977       if test "$host_cpu" != ia64; then
21978         ld_shlibs_F77=no
21979         cat <<_LT_EOF 1>&2
21980
21981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21982 *** to be unable to reliably create shared libraries on AIX.
21983 *** Therefore, libtool is disabling shared libraries support.  If you
21984 *** really care for shared libraries, you may want to modify your PATH
21985 *** so that a non-GNU linker is found, and then restart.
21986
21987 _LT_EOF
21988       fi
21989       ;;
21990
21991     amigaos*)
21992       case $host_cpu in
21993       powerpc)
21994             # see comment about AmigaOS4 .so support
21995             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21996             archive_expsym_cmds_F77=''
21997         ;;
21998       m68k)
21999             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)'
22000             hardcode_libdir_flag_spec_F77='-L$libdir'
22001             hardcode_minus_L_F77=yes
22002         ;;
22003       esac
22004       ;;
22005
22006     beos*)
22007       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22008         allow_undefined_flag_F77=unsupported
22009         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22010         # support --undefined.  This deserves some investigation.  FIXME
22011         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22012       else
22013         ld_shlibs_F77=no
22014       fi
22015       ;;
22016
22017     cygwin* | mingw* | pw32* | cegcc*)
22018       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22019       # as there is no search path for DLLs.
22020       hardcode_libdir_flag_spec_F77='-L$libdir'
22021       allow_undefined_flag_F77=unsupported
22022       always_export_symbols_F77=no
22023       enable_shared_with_static_runtimes_F77=yes
22024       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22025
22026       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22027         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22028         # If the export-symbols file already is a .def file (1st line
22029         # is EXPORTS), use it as is; otherwise, prepend...
22030         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22031           cp $export_symbols $output_objdir/$soname.def;
22032         else
22033           echo EXPORTS > $output_objdir/$soname.def;
22034           cat $export_symbols >> $output_objdir/$soname.def;
22035         fi~
22036         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22037       else
22038         ld_shlibs_F77=no
22039       fi
22040       ;;
22041
22042     interix[3-9]*)
22043       hardcode_direct_F77=no
22044       hardcode_shlibpath_var_F77=no
22045       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22046       export_dynamic_flag_spec_F77='${wl}-E'
22047       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22048       # Instead, shared libraries are loaded at an image base (0x10000000 by
22049       # default) and relocated if they conflict, which is a slow very memory
22050       # consuming and fragmenting process.  To avoid this, we pick a random,
22051       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22052       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22053       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'
22054       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'
22055       ;;
22056
22057     gnu* | linux* | tpf* | k*bsd*-gnu)
22058       tmp_diet=no
22059       if test "$host_os" = linux-dietlibc; then
22060         case $cc_basename in
22061           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
22062         esac
22063       fi
22064       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22065          && test "$tmp_diet" = no
22066       then
22067         tmp_addflag=
22068         tmp_sharedflag='-shared'
22069         case $cc_basename,$host_cpu in
22070         pgcc*)                          # Portland Group C compiler
22071           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'
22072           tmp_addflag=' $pic_flag'
22073           ;;
22074         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22075           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'
22076           tmp_addflag=' $pic_flag -Mnomain' ;;
22077         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
22078           tmp_addflag=' -i_dynamic' ;;
22079         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22080           tmp_addflag=' -i_dynamic -nofor_main' ;;
22081         ifc* | ifort*)                  # Intel Fortran compiler
22082           tmp_addflag=' -nofor_main' ;;
22083         lf95*)                          # Lahey Fortran 8.1
22084           whole_archive_flag_spec_F77=
22085           tmp_sharedflag='--shared' ;;
22086         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
22087           tmp_sharedflag='-qmkshrobj'
22088           tmp_addflag= ;;
22089         esac
22090         case `$CC -V 2>&1 | sed 5q` in
22091         *Sun\ C*)                       # Sun C 5.9
22092           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'
22093           compiler_needs_object_F77=yes
22094           tmp_sharedflag='-G' ;;
22095         *Sun\ F*)                       # Sun Fortran 8.3
22096           tmp_sharedflag='-G' ;;
22097         esac
22098         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22099
22100         if test "x$supports_anon_versioning" = xyes; then
22101           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22102             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22103             echo "local: *; };" >> $output_objdir/$libname.ver~
22104             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22105         fi
22106
22107         case $cc_basename in
22108         xlf*)
22109           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22110           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22111           hardcode_libdir_flag_spec_F77=
22112           hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22113           archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22114           if test "x$supports_anon_versioning" = xyes; then
22115             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22116               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22117               echo "local: *; };" >> $output_objdir/$libname.ver~
22118               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22119           fi
22120           ;;
22121         esac
22122       else
22123         ld_shlibs_F77=no
22124       fi
22125       ;;
22126
22127     netbsd*)
22128       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22129         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22130         wlarc=
22131       else
22132         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22133         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22134       fi
22135       ;;
22136
22137     solaris*)
22138       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22139         ld_shlibs_F77=no
22140         cat <<_LT_EOF 1>&2
22141
22142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22143 *** create shared libraries on Solaris systems.  Therefore, libtool
22144 *** is disabling shared libraries support.  We urge you to upgrade GNU
22145 *** binutils to release 2.9.1 or newer.  Another option is to modify
22146 *** your PATH or compiler configuration so that the native linker is
22147 *** used, and then restart.
22148
22149 _LT_EOF
22150       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22151         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22152         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22153       else
22154         ld_shlibs_F77=no
22155       fi
22156       ;;
22157
22158     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22159       case `$LD -v 2>&1` in
22160         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22161         ld_shlibs_F77=no
22162         cat <<_LT_EOF 1>&2
22163
22164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22165 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22166 *** is disabling shared libraries support.  We urge you to upgrade GNU
22167 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22168 *** your PATH or compiler configuration so that the native linker is
22169 *** used, and then restart.
22170
22171 _LT_EOF
22172         ;;
22173         *)
22174           # For security reasons, it is highly recommended that you always
22175           # use absolute paths for naming shared libraries, and exclude the
22176           # DT_RUNPATH tag from executables and libraries.  But doing so
22177           # requires that you compile everything twice, which is a pain.
22178           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22179             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22180             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22181             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22182           else
22183             ld_shlibs_F77=no
22184           fi
22185         ;;
22186       esac
22187       ;;
22188
22189     sunos4*)
22190       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22191       wlarc=
22192       hardcode_direct_F77=yes
22193       hardcode_shlibpath_var_F77=no
22194       ;;
22195
22196     *)
22197       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22198         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22199         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22200       else
22201         ld_shlibs_F77=no
22202       fi
22203       ;;
22204     esac
22205
22206     if test "$ld_shlibs_F77" = no; then
22207       runpath_var=
22208       hardcode_libdir_flag_spec_F77=
22209       export_dynamic_flag_spec_F77=
22210       whole_archive_flag_spec_F77=
22211     fi
22212   else
22213     # PORTME fill in a description of your system's linker (not GNU ld)
22214     case $host_os in
22215     aix3*)
22216       allow_undefined_flag_F77=unsupported
22217       always_export_symbols_F77=yes
22218       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'
22219       # Note: this linker hardcodes the directories in LIBPATH if there
22220       # are no directories specified by -L.
22221       hardcode_minus_L_F77=yes
22222       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22223         # Neither direct hardcoding nor static linking is supported with a
22224         # broken collect2.
22225         hardcode_direct_F77=unsupported
22226       fi
22227       ;;
22228
22229     aix[4-9]*)
22230       if test "$host_cpu" = ia64; then
22231         # On IA64, the linker does run time linking by default, so we don't
22232         # have to do anything special.
22233         aix_use_runtimelinking=no
22234         exp_sym_flag='-Bexport'
22235         no_entry_flag=""
22236       else
22237         # If we're using GNU nm, then we don't want the "-C" option.
22238         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22239         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22240           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'
22241         else
22242           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'
22243         fi
22244         aix_use_runtimelinking=no
22245
22246         # Test if we are trying to use run time linking or normal
22247         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22248         # need to do runtime linking.
22249         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22250           for ld_flag in $LDFLAGS; do
22251           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22252             aix_use_runtimelinking=yes
22253             break
22254           fi
22255           done
22256           ;;
22257         esac
22258
22259         exp_sym_flag='-bexport'
22260         no_entry_flag='-bnoentry'
22261       fi
22262
22263       # When large executables or shared objects are built, AIX ld can
22264       # have problems creating the table of contents.  If linking a library
22265       # or program results in "error TOC overflow" add -mminimal-toc to
22266       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22267       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22268
22269       archive_cmds_F77=''
22270       hardcode_direct_F77=yes
22271       hardcode_direct_absolute_F77=yes
22272       hardcode_libdir_separator_F77=':'
22273       link_all_deplibs_F77=yes
22274       file_list_spec_F77='${wl}-f,'
22275
22276       if test "$GCC" = yes; then
22277         case $host_os in aix4.[012]|aix4.[012].*)
22278         # We only want to do this on AIX 4.2 and lower, the check
22279         # below for broken collect2 doesn't work under 4.3+
22280           collect2name=`${CC} -print-prog-name=collect2`
22281           if test -f "$collect2name" &&
22282            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22283           then
22284           # We have reworked collect2
22285           :
22286           else
22287           # We have old collect2
22288           hardcode_direct_F77=unsupported
22289           # It fails to find uninstalled libraries when the uninstalled
22290           # path is not listed in the libpath.  Setting hardcode_minus_L
22291           # to unsupported forces relinking
22292           hardcode_minus_L_F77=yes
22293           hardcode_libdir_flag_spec_F77='-L$libdir'
22294           hardcode_libdir_separator_F77=
22295           fi
22296           ;;
22297         esac
22298         shared_flag='-shared'
22299         if test "$aix_use_runtimelinking" = yes; then
22300           shared_flag="$shared_flag "'${wl}-G'
22301         fi
22302       else
22303         # not using gcc
22304         if test "$host_cpu" = ia64; then
22305         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22306         # chokes on -Wl,-G. The following line is correct:
22307           shared_flag='-G'
22308         else
22309           if test "$aix_use_runtimelinking" = yes; then
22310             shared_flag='${wl}-G'
22311           else
22312             shared_flag='${wl}-bM:SRE'
22313           fi
22314         fi
22315       fi
22316
22317       export_dynamic_flag_spec_F77='${wl}-bexpall'
22318       # It seems that -bexpall does not export symbols beginning with
22319       # underscore (_), so it is better to generate a list of symbols to export.
22320       always_export_symbols_F77=yes
22321       if test "$aix_use_runtimelinking" = yes; then
22322         # Warning - without using the other runtime loading flags (-brtl),
22323         # -berok will link without error, but may produce a broken library.
22324         allow_undefined_flag_F77='-berok'
22325         # Determine the default libpath from the value encoded in an
22326         # empty executable.
22327         cat > conftest.$ac_ext <<_ACEOF
22328       program main
22329
22330       end
22331 _ACEOF
22332 if ac_fn_f77_try_link "$LINENO"; then :
22333
22334 lt_aix_libpath_sed='
22335     /Import File Strings/,/^$/ {
22336         /^0/ {
22337             s/^0  *\(.*\)$/\1/
22338             p
22339         }
22340     }'
22341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22342 # Check for a 64-bit object if we didn't find anything.
22343 if test -z "$aix_libpath"; then
22344   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22345 fi
22346 fi
22347 rm -f core conftest.err conftest.$ac_objext \
22348     conftest$ac_exeext conftest.$ac_ext
22349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22350
22351         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22352         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"
22353       else
22354         if test "$host_cpu" = ia64; then
22355           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22356           allow_undefined_flag_F77="-z nodefs"
22357           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"
22358         else
22359          # Determine the default libpath from the value encoded in an
22360          # empty executable.
22361          cat > conftest.$ac_ext <<_ACEOF
22362       program main
22363
22364       end
22365 _ACEOF
22366 if ac_fn_f77_try_link "$LINENO"; then :
22367
22368 lt_aix_libpath_sed='
22369     /Import File Strings/,/^$/ {
22370         /^0/ {
22371             s/^0  *\(.*\)$/\1/
22372             p
22373         }
22374     }'
22375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22376 # Check for a 64-bit object if we didn't find anything.
22377 if test -z "$aix_libpath"; then
22378   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22379 fi
22380 fi
22381 rm -f core conftest.err conftest.$ac_objext \
22382     conftest$ac_exeext conftest.$ac_ext
22383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22384
22385          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22386           # Warning - without using the other run time loading flags,
22387           # -berok will link without error, but may produce a broken library.
22388           no_undefined_flag_F77=' ${wl}-bernotok'
22389           allow_undefined_flag_F77=' ${wl}-berok'
22390           # Exported symbols can be pulled into shared objects from archives
22391           whole_archive_flag_spec_F77='$convenience'
22392           archive_cmds_need_lc_F77=yes
22393           # This is similar to how AIX traditionally builds its shared libraries.
22394           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'
22395         fi
22396       fi
22397       ;;
22398
22399     amigaos*)
22400       case $host_cpu in
22401       powerpc)
22402             # see comment about AmigaOS4 .so support
22403             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22404             archive_expsym_cmds_F77=''
22405         ;;
22406       m68k)
22407             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)'
22408             hardcode_libdir_flag_spec_F77='-L$libdir'
22409             hardcode_minus_L_F77=yes
22410         ;;
22411       esac
22412       ;;
22413
22414     bsdi[45]*)
22415       export_dynamic_flag_spec_F77=-rdynamic
22416       ;;
22417
22418     cygwin* | mingw* | pw32* | cegcc*)
22419       # When not using gcc, we currently assume that we are using
22420       # Microsoft Visual C++.
22421       # hardcode_libdir_flag_spec is actually meaningless, as there is
22422       # no search path for DLLs.
22423       hardcode_libdir_flag_spec_F77=' '
22424       allow_undefined_flag_F77=unsupported
22425       # Tell ltmain to make .lib files, not .a files.
22426       libext=lib
22427       # Tell ltmain to make .dll files, not .so files.
22428       shrext_cmds=".dll"
22429       # FIXME: Setting linknames here is a bad hack.
22430       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22431       # The linker will automatically build a .lib file if we build a DLL.
22432       old_archive_from_new_cmds_F77='true'
22433       # FIXME: Should let the user specify the lib program.
22434       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22435       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22436       enable_shared_with_static_runtimes_F77=yes
22437       ;;
22438
22439     darwin* | rhapsody*)
22440
22441
22442   archive_cmds_need_lc_F77=no
22443   hardcode_direct_F77=no
22444   hardcode_automatic_F77=yes
22445   hardcode_shlibpath_var_F77=unsupported
22446   whole_archive_flag_spec_F77=''
22447   link_all_deplibs_F77=yes
22448   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
22449   case $cc_basename in
22450      ifort*) _lt_dar_can_shared=yes ;;
22451      *) _lt_dar_can_shared=$GCC ;;
22452   esac
22453   if test "$_lt_dar_can_shared" = "yes"; then
22454     output_verbose_link_cmd=echo
22455     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}"
22456     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22457     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}"
22458     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}"
22459
22460   else
22461   ld_shlibs_F77=no
22462   fi
22463
22464       ;;
22465
22466     dgux*)
22467       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468       hardcode_libdir_flag_spec_F77='-L$libdir'
22469       hardcode_shlibpath_var_F77=no
22470       ;;
22471
22472     freebsd1*)
22473       ld_shlibs_F77=no
22474       ;;
22475
22476     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22477     # support.  Future versions do this automatically, but an explicit c++rt0.o
22478     # does not break anything, and helps significantly (at the cost of a little
22479     # extra space).
22480     freebsd2.2*)
22481       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22482       hardcode_libdir_flag_spec_F77='-R$libdir'
22483       hardcode_direct_F77=yes
22484       hardcode_shlibpath_var_F77=no
22485       ;;
22486
22487     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22488     freebsd2*)
22489       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22490       hardcode_direct_F77=yes
22491       hardcode_minus_L_F77=yes
22492       hardcode_shlibpath_var_F77=no
22493       ;;
22494
22495     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22496     freebsd* | dragonfly*)
22497       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22498       hardcode_libdir_flag_spec_F77='-R$libdir'
22499       hardcode_direct_F77=yes
22500       hardcode_shlibpath_var_F77=no
22501       ;;
22502
22503     hpux9*)
22504       if test "$GCC" = yes; then
22505         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'
22506       else
22507         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'
22508       fi
22509       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22510       hardcode_libdir_separator_F77=:
22511       hardcode_direct_F77=yes
22512
22513       # hardcode_minus_L: Not really in the search PATH,
22514       # but as the default location of the library.
22515       hardcode_minus_L_F77=yes
22516       export_dynamic_flag_spec_F77='${wl}-E'
22517       ;;
22518
22519     hpux10*)
22520       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22521         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22522       else
22523         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22524       fi
22525       if test "$with_gnu_ld" = no; then
22526         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22527         hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22528         hardcode_libdir_separator_F77=:
22529         hardcode_direct_F77=yes
22530         hardcode_direct_absolute_F77=yes
22531         export_dynamic_flag_spec_F77='${wl}-E'
22532         # hardcode_minus_L: Not really in the search PATH,
22533         # but as the default location of the library.
22534         hardcode_minus_L_F77=yes
22535       fi
22536       ;;
22537
22538     hpux11*)
22539       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22540         case $host_cpu in
22541         hppa*64*)
22542           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22543           ;;
22544         ia64*)
22545           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22546           ;;
22547         *)
22548           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22549           ;;
22550         esac
22551       else
22552         case $host_cpu in
22553         hppa*64*)
22554           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22555           ;;
22556         ia64*)
22557           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22558           ;;
22559         *)
22560           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22561           ;;
22562         esac
22563       fi
22564       if test "$with_gnu_ld" = no; then
22565         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22566         hardcode_libdir_separator_F77=:
22567
22568         case $host_cpu in
22569         hppa*64*|ia64*)
22570           hardcode_direct_F77=no
22571           hardcode_shlibpath_var_F77=no
22572           ;;
22573         *)
22574           hardcode_direct_F77=yes
22575           hardcode_direct_absolute_F77=yes
22576           export_dynamic_flag_spec_F77='${wl}-E'
22577
22578           # hardcode_minus_L: Not really in the search PATH,
22579           # but as the default location of the library.
22580           hardcode_minus_L_F77=yes
22581           ;;
22582         esac
22583       fi
22584       ;;
22585
22586     irix5* | irix6* | nonstopux*)
22587       if test "$GCC" = yes; then
22588         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'
22589         # Try to use the -exported_symbol ld option, if it does not
22590         # work, assume that -exports_file does not work either and
22591         # implicitly export all symbols.
22592         save_LDFLAGS="$LDFLAGS"
22593         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22594         cat > conftest.$ac_ext <<_ACEOF
22595 int foo(void) {}
22596 _ACEOF
22597 if ac_fn_f77_try_link "$LINENO"; then :
22598   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'
22599
22600 fi
22601 rm -f core conftest.err conftest.$ac_objext \
22602     conftest$ac_exeext conftest.$ac_ext
22603         LDFLAGS="$save_LDFLAGS"
22604       else
22605         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'
22606         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'
22607       fi
22608       archive_cmds_need_lc_F77='no'
22609       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22610       hardcode_libdir_separator_F77=:
22611       inherit_rpath_F77=yes
22612       link_all_deplibs_F77=yes
22613       ;;
22614
22615     netbsd*)
22616       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22617         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22618       else
22619         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22620       fi
22621       hardcode_libdir_flag_spec_F77='-R$libdir'
22622       hardcode_direct_F77=yes
22623       hardcode_shlibpath_var_F77=no
22624       ;;
22625
22626     newsos6)
22627       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22628       hardcode_direct_F77=yes
22629       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22630       hardcode_libdir_separator_F77=:
22631       hardcode_shlibpath_var_F77=no
22632       ;;
22633
22634     *nto* | *qnx*)
22635       ;;
22636
22637     openbsd*)
22638       if test -f /usr/libexec/ld.so; then
22639         hardcode_direct_F77=yes
22640         hardcode_shlibpath_var_F77=no
22641         hardcode_direct_absolute_F77=yes
22642         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22643           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22644           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22645           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22646           export_dynamic_flag_spec_F77='${wl}-E'
22647         else
22648           case $host_os in
22649            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22650              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22651              hardcode_libdir_flag_spec_F77='-R$libdir'
22652              ;;
22653            *)
22654              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22655              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22656              ;;
22657           esac
22658         fi
22659       else
22660         ld_shlibs_F77=no
22661       fi
22662       ;;
22663
22664     os2*)
22665       hardcode_libdir_flag_spec_F77='-L$libdir'
22666       hardcode_minus_L_F77=yes
22667       allow_undefined_flag_F77=unsupported
22668       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'
22669       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22670       ;;
22671
22672     osf3*)
22673       if test "$GCC" = yes; then
22674         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22675         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'
22676       else
22677         allow_undefined_flag_F77=' -expect_unresolved \*'
22678         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'
22679       fi
22680       archive_cmds_need_lc_F77='no'
22681       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22682       hardcode_libdir_separator_F77=:
22683       ;;
22684
22685     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22686       if test "$GCC" = yes; then
22687         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22688         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'
22689         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22690       else
22691         allow_undefined_flag_F77=' -expect_unresolved \*'
22692         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'
22693         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~
22694         $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'
22695
22696         # Both c and cxx compiler support -rpath directly
22697         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22698       fi
22699       archive_cmds_need_lc_F77='no'
22700       hardcode_libdir_separator_F77=:
22701       ;;
22702
22703     solaris*)
22704       no_undefined_flag_F77=' -z defs'
22705       if test "$GCC" = yes; then
22706         wlarc='${wl}'
22707         archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22708         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22709           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22710       else
22711         case `$CC -V 2>&1` in
22712         *"Compilers 5.0"*)
22713           wlarc=''
22714           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22715           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22716           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
22717           ;;
22718         *)
22719           wlarc='${wl}'
22720           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
22721           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22722           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22723           ;;
22724         esac
22725       fi
22726       hardcode_libdir_flag_spec_F77='-R$libdir'
22727       hardcode_shlibpath_var_F77=no
22728       case $host_os in
22729       solaris2.[0-5] | solaris2.[0-5].*) ;;
22730       *)
22731         # The compiler driver will combine and reorder linker options,
22732         # but understands `-z linker_flag'.  GCC discards it without `$wl',
22733         # but is careful enough not to reorder.
22734         # Supported since Solaris 2.6 (maybe 2.5.1?)
22735         if test "$GCC" = yes; then
22736           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22737         else
22738           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22739         fi
22740         ;;
22741       esac
22742       link_all_deplibs_F77=yes
22743       ;;
22744
22745     sunos4*)
22746       if test "x$host_vendor" = xsequent; then
22747         # Use $CC to link under sequent, because it throws in some extra .o
22748         # files that make .init and .fini sections work.
22749         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22750       else
22751         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22752       fi
22753       hardcode_libdir_flag_spec_F77='-L$libdir'
22754       hardcode_direct_F77=yes
22755       hardcode_minus_L_F77=yes
22756       hardcode_shlibpath_var_F77=no
22757       ;;
22758
22759     sysv4)
22760       case $host_vendor in
22761         sni)
22762           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22763           hardcode_direct_F77=yes # is this really true???
22764         ;;
22765         siemens)
22766           ## LD is ld it makes a PLAMLIB
22767           ## CC just makes a GrossModule.
22768           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22769           reload_cmds_F77='$CC -r -o $output$reload_objs'
22770           hardcode_direct_F77=no
22771         ;;
22772         motorola)
22773           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22774           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22775         ;;
22776       esac
22777       runpath_var='LD_RUN_PATH'
22778       hardcode_shlibpath_var_F77=no
22779       ;;
22780
22781     sysv4.3*)
22782       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22783       hardcode_shlibpath_var_F77=no
22784       export_dynamic_flag_spec_F77='-Bexport'
22785       ;;
22786
22787     sysv4*MP*)
22788       if test -d /usr/nec; then
22789         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22790         hardcode_shlibpath_var_F77=no
22791         runpath_var=LD_RUN_PATH
22792         hardcode_runpath_var=yes
22793         ld_shlibs_F77=yes
22794       fi
22795       ;;
22796
22797     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22798       no_undefined_flag_F77='${wl}-z,text'
22799       archive_cmds_need_lc_F77=no
22800       hardcode_shlibpath_var_F77=no
22801       runpath_var='LD_RUN_PATH'
22802
22803       if test "$GCC" = yes; then
22804         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22805         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22806       else
22807         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22808         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22809       fi
22810       ;;
22811
22812     sysv5* | sco3.2v5* | sco5v6*)
22813       # Note: We can NOT use -z defs as we might desire, because we do not
22814       # link with -lc, and that would cause any symbols used from libc to
22815       # always be unresolved, which means just about no library would
22816       # ever link correctly.  If we're not using GNU ld we use -z text
22817       # though, which does catch some bad symbols but isn't as heavy-handed
22818       # as -z defs.
22819       no_undefined_flag_F77='${wl}-z,text'
22820       allow_undefined_flag_F77='${wl}-z,nodefs'
22821       archive_cmds_need_lc_F77=no
22822       hardcode_shlibpath_var_F77=no
22823       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
22824       hardcode_libdir_separator_F77=':'
22825       link_all_deplibs_F77=yes
22826       export_dynamic_flag_spec_F77='${wl}-Bexport'
22827       runpath_var='LD_RUN_PATH'
22828
22829       if test "$GCC" = yes; then
22830         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22831         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22832       else
22833         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22834         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22835       fi
22836       ;;
22837
22838     uts4*)
22839       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22840       hardcode_libdir_flag_spec_F77='-L$libdir'
22841       hardcode_shlibpath_var_F77=no
22842       ;;
22843
22844     *)
22845       ld_shlibs_F77=no
22846       ;;
22847     esac
22848
22849     if test x$host_vendor = xsni; then
22850       case $host in
22851       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22852         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
22853         ;;
22854       esac
22855     fi
22856   fi
22857
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
22859 $as_echo "$ld_shlibs_F77" >&6; }
22860 test "$ld_shlibs_F77" = no && can_build_shared=no
22861
22862 with_gnu_ld_F77=$with_gnu_ld
22863
22864
22865
22866
22867
22868
22869 #
22870 # Do we need to explicitly link libc?
22871 #
22872 case "x$archive_cmds_need_lc_F77" in
22873 x|xyes)
22874   # Assume -lc should be added
22875   archive_cmds_need_lc_F77=yes
22876
22877   if test "$enable_shared" = yes && test "$GCC" = yes; then
22878     case $archive_cmds_F77 in
22879     *'~'*)
22880       # FIXME: we may have to deal with multi-command sequences.
22881       ;;
22882     '$CC '*)
22883       # Test whether the compiler implicitly links with -lc since on some
22884       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22885       # to ld, don't add -lc before -lgcc.
22886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22887 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22888       $RM conftest*
22889       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22890
22891       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22892   (eval $ac_compile) 2>&5
22893   ac_status=$?
22894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895   test $ac_status = 0; } 2>conftest.err; then
22896         soname=conftest
22897         lib=conftest
22898         libobjs=conftest.$ac_objext
22899         deplibs=
22900         wl=$lt_prog_compiler_wl_F77
22901         pic_flag=$lt_prog_compiler_pic_F77
22902         compiler_flags=-v
22903         linker_flags=-v
22904         verstring=
22905         output_objdir=.
22906         libname=conftest
22907         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22908         allow_undefined_flag_F77=
22909         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22910   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22911   ac_status=$?
22912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22913   test $ac_status = 0; }
22914         then
22915           archive_cmds_need_lc_F77=no
22916         else
22917           archive_cmds_need_lc_F77=yes
22918         fi
22919         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22920       else
22921         cat conftest.err 1>&5
22922       fi
22923       $RM conftest*
22924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
22925 $as_echo "$archive_cmds_need_lc_F77" >&6; }
22926       ;;
22927     esac
22928   fi
22929   ;;
22930 esac
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22996 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22997
22998 library_names_spec=
22999 libname_spec='lib$name'
23000 soname_spec=
23001 shrext_cmds=".so"
23002 postinstall_cmds=
23003 postuninstall_cmds=
23004 finish_cmds=
23005 finish_eval=
23006 shlibpath_var=
23007 shlibpath_overrides_runpath=unknown
23008 version_type=none
23009 dynamic_linker="$host_os ld.so"
23010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23011 need_lib_prefix=unknown
23012 hardcode_into_libs=no
23013
23014 # when you set need_version to no, make sure it does not cause -set_version
23015 # flags to be left without arguments
23016 need_version=unknown
23017
23018 case $host_os in
23019 aix3*)
23020   version_type=linux
23021   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23022   shlibpath_var=LIBPATH
23023
23024   # AIX 3 has no versioning support, so we append a major version to the name.
23025   soname_spec='${libname}${release}${shared_ext}$major'
23026   ;;
23027
23028 aix[4-9]*)
23029   version_type=linux
23030   need_lib_prefix=no
23031   need_version=no
23032   hardcode_into_libs=yes
23033   if test "$host_cpu" = ia64; then
23034     # AIX 5 supports IA64
23035     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23036     shlibpath_var=LD_LIBRARY_PATH
23037   else
23038     # With GCC up to 2.95.x, collect2 would create an import file
23039     # for dependence libraries.  The import file would start with
23040     # the line `#! .'.  This would cause the generated library to
23041     # depend on `.', always an invalid library.  This was fixed in
23042     # development snapshots of GCC prior to 3.0.
23043     case $host_os in
23044       aix4 | aix4.[01] | aix4.[01].*)
23045       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23046            echo ' yes '
23047            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23048         :
23049       else
23050         can_build_shared=no
23051       fi
23052       ;;
23053     esac
23054     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23055     # soname into executable. Probably we can add versioning support to
23056     # collect2, so additional links can be useful in future.
23057     if test "$aix_use_runtimelinking" = yes; then
23058       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23059       # instead of lib<name>.a to let people know that these are not
23060       # typical AIX shared libraries.
23061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23062     else
23063       # We preserve .a as extension for shared libraries through AIX4.2
23064       # and later when we are not doing run time linking.
23065       library_names_spec='${libname}${release}.a $libname.a'
23066       soname_spec='${libname}${release}${shared_ext}$major'
23067     fi
23068     shlibpath_var=LIBPATH
23069   fi
23070   ;;
23071
23072 amigaos*)
23073   case $host_cpu in
23074   powerpc)
23075     # Since July 2007 AmigaOS4 officially supports .so libraries.
23076     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23078     ;;
23079   m68k)
23080     library_names_spec='$libname.ixlibrary $libname.a'
23081     # Create ${libname}_ixlibrary.a entries in /sys/libs.
23082     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'
23083     ;;
23084   esac
23085   ;;
23086
23087 beos*)
23088   library_names_spec='${libname}${shared_ext}'
23089   dynamic_linker="$host_os ld.so"
23090   shlibpath_var=LIBRARY_PATH
23091   ;;
23092
23093 bsdi[45]*)
23094   version_type=linux
23095   need_version=no
23096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097   soname_spec='${libname}${release}${shared_ext}$major'
23098   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23099   shlibpath_var=LD_LIBRARY_PATH
23100   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23101   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23102   # the default ld.so.conf also contains /usr/contrib/lib and
23103   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23104   # libtool to hard-code these into programs
23105   ;;
23106
23107 cygwin* | mingw* | pw32* | cegcc*)
23108   version_type=windows
23109   shrext_cmds=".dll"
23110   need_version=no
23111   need_lib_prefix=no
23112
23113   case $GCC,$host_os in
23114   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
23115     library_names_spec='$libname.dll.a'
23116     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23117     postinstall_cmds='base_file=`basename \${file}`~
23118       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23119       dldir=$destdir/`dirname \$dlpath`~
23120       test -d \$dldir || mkdir -p \$dldir~
23121       $install_prog $dir/$dlname \$dldir/$dlname~
23122       chmod a+x \$dldir/$dlname~
23123       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23124         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23125       fi'
23126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23127       dlpath=$dir/\$dldll~
23128        $RM \$dlpath'
23129     shlibpath_overrides_runpath=yes
23130
23131     case $host_os in
23132     cygwin*)
23133       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23134       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23135       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23136       ;;
23137     mingw* | cegcc*)
23138       # MinGW DLLs use traditional 'lib' prefix
23139       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23140       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23141       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23142         # It is most probably a Windows format PATH printed by
23143         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23144         # path with ; separators, and with drive letters. We can handle the
23145         # drive letters (cygwin fileutils understands them), so leave them,
23146         # especially as we might pass files found there to a mingw objdump,
23147         # which wouldn't understand a cygwinified path. Ahh.
23148         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23149       else
23150         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23151       fi
23152       ;;
23153     pw32*)
23154       # pw32 DLLs use 'pw' prefix rather than 'lib'
23155       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23156       ;;
23157     esac
23158     ;;
23159
23160   *)
23161     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23162     ;;
23163   esac
23164   dynamic_linker='Win32 ld.exe'
23165   # FIXME: first we should search . and the directory the executable is in
23166   shlibpath_var=PATH
23167   ;;
23168
23169 darwin* | rhapsody*)
23170   dynamic_linker="$host_os dyld"
23171   version_type=darwin
23172   need_lib_prefix=no
23173   need_version=no
23174   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23175   soname_spec='${libname}${release}${major}$shared_ext'
23176   shlibpath_overrides_runpath=yes
23177   shlibpath_var=DYLD_LIBRARY_PATH
23178   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23179
23180   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23181   ;;
23182
23183 dgux*)
23184   version_type=linux
23185   need_lib_prefix=no
23186   need_version=no
23187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23188   soname_spec='${libname}${release}${shared_ext}$major'
23189   shlibpath_var=LD_LIBRARY_PATH
23190   ;;
23191
23192 freebsd1*)
23193   dynamic_linker=no
23194   ;;
23195
23196 freebsd* | dragonfly*)
23197   # DragonFly does not have aout.  When/if they implement a new
23198   # versioning mechanism, adjust this.
23199   if test -x /usr/bin/objformat; then
23200     objformat=`/usr/bin/objformat`
23201   else
23202     case $host_os in
23203     freebsd[123]*) objformat=aout ;;
23204     *) objformat=elf ;;
23205     esac
23206   fi
23207   version_type=freebsd-$objformat
23208   case $version_type in
23209     freebsd-elf*)
23210       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23211       need_version=no
23212       need_lib_prefix=no
23213       ;;
23214     freebsd-*)
23215       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23216       need_version=yes
23217       ;;
23218   esac
23219   shlibpath_var=LD_LIBRARY_PATH
23220   case $host_os in
23221   freebsd2*)
23222     shlibpath_overrides_runpath=yes
23223     ;;
23224   freebsd3.[01]* | freebsdelf3.[01]*)
23225     shlibpath_overrides_runpath=yes
23226     hardcode_into_libs=yes
23227     ;;
23228   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23229   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23230     shlibpath_overrides_runpath=no
23231     hardcode_into_libs=yes
23232     ;;
23233   *) # from 4.6 on, and DragonFly
23234     shlibpath_overrides_runpath=yes
23235     hardcode_into_libs=yes
23236     ;;
23237   esac
23238   ;;
23239
23240 gnu*)
23241   version_type=linux
23242   need_lib_prefix=no
23243   need_version=no
23244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23245   soname_spec='${libname}${release}${shared_ext}$major'
23246   shlibpath_var=LD_LIBRARY_PATH
23247   hardcode_into_libs=yes
23248   ;;
23249
23250 hpux9* | hpux10* | hpux11*)
23251   # Give a soname corresponding to the major version so that dld.sl refuses to
23252   # link against other versions.
23253   version_type=sunos
23254   need_lib_prefix=no
23255   need_version=no
23256   case $host_cpu in
23257   ia64*)
23258     shrext_cmds='.so'
23259     hardcode_into_libs=yes
23260     dynamic_linker="$host_os dld.so"
23261     shlibpath_var=LD_LIBRARY_PATH
23262     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23264     soname_spec='${libname}${release}${shared_ext}$major'
23265     if test "X$HPUX_IA64_MODE" = X32; then
23266       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23267     else
23268       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23269     fi
23270     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23271     ;;
23272   hppa*64*)
23273     shrext_cmds='.sl'
23274     hardcode_into_libs=yes
23275     dynamic_linker="$host_os dld.sl"
23276     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23277     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23279     soname_spec='${libname}${release}${shared_ext}$major'
23280     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23281     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23282     ;;
23283   *)
23284     shrext_cmds='.sl'
23285     dynamic_linker="$host_os dld.sl"
23286     shlibpath_var=SHLIB_PATH
23287     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23289     soname_spec='${libname}${release}${shared_ext}$major'
23290     ;;
23291   esac
23292   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23293   postinstall_cmds='chmod 555 $lib'
23294   ;;
23295
23296 interix[3-9]*)
23297   version_type=linux
23298   need_lib_prefix=no
23299   need_version=no
23300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23301   soname_spec='${libname}${release}${shared_ext}$major'
23302   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23303   shlibpath_var=LD_LIBRARY_PATH
23304   shlibpath_overrides_runpath=no
23305   hardcode_into_libs=yes
23306   ;;
23307
23308 irix5* | irix6* | nonstopux*)
23309   case $host_os in
23310     nonstopux*) version_type=nonstopux ;;
23311     *)
23312         if test "$lt_cv_prog_gnu_ld" = yes; then
23313                 version_type=linux
23314         else
23315                 version_type=irix
23316         fi ;;
23317   esac
23318   need_lib_prefix=no
23319   need_version=no
23320   soname_spec='${libname}${release}${shared_ext}$major'
23321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23322   case $host_os in
23323   irix5* | nonstopux*)
23324     libsuff= shlibsuff=
23325     ;;
23326   *)
23327     case $LD in # libtool.m4 will add one of these switches to LD
23328     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23329       libsuff= shlibsuff= libmagic=32-bit;;
23330     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23331       libsuff=32 shlibsuff=N32 libmagic=N32;;
23332     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23333       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23334     *) libsuff= shlibsuff= libmagic=never-match;;
23335     esac
23336     ;;
23337   esac
23338   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23339   shlibpath_overrides_runpath=no
23340   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23341   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23342   hardcode_into_libs=yes
23343   ;;
23344
23345 # No shared lib support for Linux oldld, aout, or coff.
23346 linux*oldld* | linux*aout* | linux*coff*)
23347   dynamic_linker=no
23348   ;;
23349
23350 # This must be Linux ELF.
23351 linux* | k*bsd*-gnu)
23352   version_type=linux
23353   need_lib_prefix=no
23354   need_version=no
23355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23356   soname_spec='${libname}${release}${shared_ext}$major'
23357   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23358   shlibpath_var=LD_LIBRARY_PATH
23359   shlibpath_overrides_runpath=no
23360   # Some binutils ld are patched to set DT_RUNPATH
23361   save_LDFLAGS=$LDFLAGS
23362   save_libdir=$libdir
23363   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
23364        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
23365   cat > conftest.$ac_ext <<_ACEOF
23366       program main
23367
23368       end
23369 _ACEOF
23370 if ac_fn_f77_try_link "$LINENO"; then :
23371   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23372   shlibpath_overrides_runpath=yes
23373 fi
23374 fi
23375 rm -f core conftest.err conftest.$ac_objext \
23376     conftest$ac_exeext conftest.$ac_ext
23377   LDFLAGS=$save_LDFLAGS
23378   libdir=$save_libdir
23379
23380   # This implies no fast_install, which is unacceptable.
23381   # Some rework will be needed to allow for fast_install
23382   # before this can be enabled.
23383   hardcode_into_libs=yes
23384
23385   # Append ld.so.conf contents to the search path
23386   if test -f /etc/ld.so.conf; then
23387     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' ' '`
23388     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23389   fi
23390
23391   # We used to test for /lib/ld.so.1 and disable shared libraries on
23392   # powerpc, because MkLinux only supported shared libraries with the
23393   # GNU dynamic linker.  Since this was broken with cross compilers,
23394   # most powerpc-linux boxes support dynamic linking these days and
23395   # people can always --disable-shared, the test was removed, and we
23396   # assume the GNU/Linux dynamic linker is in use.
23397   dynamic_linker='GNU/Linux ld.so'
23398   ;;
23399
23400 netbsd*)
23401   version_type=sunos
23402   need_lib_prefix=no
23403   need_version=no
23404   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23406     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23407     dynamic_linker='NetBSD (a.out) ld.so'
23408   else
23409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23410     soname_spec='${libname}${release}${shared_ext}$major'
23411     dynamic_linker='NetBSD ld.elf_so'
23412   fi
23413   shlibpath_var=LD_LIBRARY_PATH
23414   shlibpath_overrides_runpath=yes
23415   hardcode_into_libs=yes
23416   ;;
23417
23418 newsos6)
23419   version_type=linux
23420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23421   shlibpath_var=LD_LIBRARY_PATH
23422   shlibpath_overrides_runpath=yes
23423   ;;
23424
23425 *nto* | *qnx*)
23426   version_type=qnx
23427   need_lib_prefix=no
23428   need_version=no
23429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23430   soname_spec='${libname}${release}${shared_ext}$major'
23431   shlibpath_var=LD_LIBRARY_PATH
23432   shlibpath_overrides_runpath=no
23433   hardcode_into_libs=yes
23434   dynamic_linker='ldqnx.so'
23435   ;;
23436
23437 openbsd*)
23438   version_type=sunos
23439   sys_lib_dlsearch_path_spec="/usr/lib"
23440   need_lib_prefix=no
23441   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23442   case $host_os in
23443     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
23444     *)                          need_version=no  ;;
23445   esac
23446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23447   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23448   shlibpath_var=LD_LIBRARY_PATH
23449   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23450     case $host_os in
23451       openbsd2.[89] | openbsd2.[89].*)
23452         shlibpath_overrides_runpath=no
23453         ;;
23454       *)
23455         shlibpath_overrides_runpath=yes
23456         ;;
23457       esac
23458   else
23459     shlibpath_overrides_runpath=yes
23460   fi
23461   ;;
23462
23463 os2*)
23464   libname_spec='$name'
23465   shrext_cmds=".dll"
23466   need_lib_prefix=no
23467   library_names_spec='$libname${shared_ext} $libname.a'
23468   dynamic_linker='OS/2 ld.exe'
23469   shlibpath_var=LIBPATH
23470   ;;
23471
23472 osf3* | osf4* | osf5*)
23473   version_type=osf
23474   need_lib_prefix=no
23475   need_version=no
23476   soname_spec='${libname}${release}${shared_ext}$major'
23477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23478   shlibpath_var=LD_LIBRARY_PATH
23479   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23480   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23481   ;;
23482
23483 rdos*)
23484   dynamic_linker=no
23485   ;;
23486
23487 solaris*)
23488   version_type=linux
23489   need_lib_prefix=no
23490   need_version=no
23491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23492   soname_spec='${libname}${release}${shared_ext}$major'
23493   shlibpath_var=LD_LIBRARY_PATH
23494   shlibpath_overrides_runpath=yes
23495   hardcode_into_libs=yes
23496   # ldd complains unless libraries are executable
23497   postinstall_cmds='chmod +x $lib'
23498   ;;
23499
23500 sunos4*)
23501   version_type=sunos
23502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23503   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23504   shlibpath_var=LD_LIBRARY_PATH
23505   shlibpath_overrides_runpath=yes
23506   if test "$with_gnu_ld" = yes; then
23507     need_lib_prefix=no
23508   fi
23509   need_version=yes
23510   ;;
23511
23512 sysv4 | sysv4.3*)
23513   version_type=linux
23514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515   soname_spec='${libname}${release}${shared_ext}$major'
23516   shlibpath_var=LD_LIBRARY_PATH
23517   case $host_vendor in
23518     sni)
23519       shlibpath_overrides_runpath=no
23520       need_lib_prefix=no
23521       runpath_var=LD_RUN_PATH
23522       ;;
23523     siemens)
23524       need_lib_prefix=no
23525       ;;
23526     motorola)
23527       need_lib_prefix=no
23528       need_version=no
23529       shlibpath_overrides_runpath=no
23530       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23531       ;;
23532   esac
23533   ;;
23534
23535 sysv4*MP*)
23536   if test -d /usr/nec ;then
23537     version_type=linux
23538     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23539     soname_spec='$libname${shared_ext}.$major'
23540     shlibpath_var=LD_LIBRARY_PATH
23541   fi
23542   ;;
23543
23544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23545   version_type=freebsd-elf
23546   need_lib_prefix=no
23547   need_version=no
23548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23549   soname_spec='${libname}${release}${shared_ext}$major'
23550   shlibpath_var=LD_LIBRARY_PATH
23551   shlibpath_overrides_runpath=yes
23552   hardcode_into_libs=yes
23553   if test "$with_gnu_ld" = yes; then
23554     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23555   else
23556     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23557     case $host_os in
23558       sco3.2v5*)
23559         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23560         ;;
23561     esac
23562   fi
23563   sys_lib_dlsearch_path_spec='/usr/lib'
23564   ;;
23565
23566 tpf*)
23567   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
23568   version_type=linux
23569   need_lib_prefix=no
23570   need_version=no
23571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23572   shlibpath_var=LD_LIBRARY_PATH
23573   shlibpath_overrides_runpath=no
23574   hardcode_into_libs=yes
23575   ;;
23576
23577 uts4*)
23578   version_type=linux
23579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23580   soname_spec='${libname}${release}${shared_ext}$major'
23581   shlibpath_var=LD_LIBRARY_PATH
23582   ;;
23583
23584 *)
23585   dynamic_linker=no
23586   ;;
23587 esac
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23589 $as_echo "$dynamic_linker" >&6; }
23590 test "$dynamic_linker" = no && can_build_shared=no
23591
23592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23593 if test "$GCC" = yes; then
23594   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23595 fi
23596
23597 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23598   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23599 fi
23600 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23601   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23602 fi
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23640 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23641 hardcode_action_F77=
23642 if test -n "$hardcode_libdir_flag_spec_F77" ||
23643    test -n "$runpath_var_F77" ||
23644    test "X$hardcode_automatic_F77" = "Xyes" ; then
23645
23646   # We can hardcode non-existent directories.
23647   if test "$hardcode_direct_F77" != no &&
23648      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23649      # have to relink, otherwise we might link with an installed library
23650      # when we should be linking with a yet-to-be-installed one
23651      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23652      test "$hardcode_minus_L_F77" != no; then
23653     # Linking always hardcodes the temporary library directory.
23654     hardcode_action_F77=relink
23655   else
23656     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23657     hardcode_action_F77=immediate
23658   fi
23659 else
23660   # We cannot hardcode anything, or else we can only hardcode existing
23661   # directories.
23662   hardcode_action_F77=unsupported
23663 fi
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
23665 $as_echo "$hardcode_action_F77" >&6; }
23666
23667 if test "$hardcode_action_F77" = relink ||
23668    test "$inherit_rpath_F77" = yes; then
23669   # Fast installation is not supported
23670   enable_fast_install=no
23671 elif test "$shlibpath_overrides_runpath" = yes ||
23672      test "$enable_shared" = no; then
23673   # Fast installation is not necessary
23674   enable_fast_install=needless
23675 fi
23676
23677
23678
23679
23680
23681
23682
23683   fi # test -n "$compiler"
23684
23685   GCC=$lt_save_GCC
23686   CC="$lt_save_CC"
23687 fi # test "$_lt_disable_F77" != yes
23688
23689 ac_ext=c
23690 ac_cpp='$CPP $CPPFLAGS'
23691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705         ac_config_commands="$ac_config_commands libtool"
23706
23707
23708
23709
23710 # Only expand once:
23711
23712
23713
23714 # Generate an error here if attempting to build both shared and static when
23715 # $libname.a is in $library_names_spec (as mentioned above), rather than
23716 # wait for ar or ld to fail.
23717 #
23718 if test "$enable_shared" = yes && test "$enable_static" = yes; then
23719   case $library_names_spec in
23720     *libname.a*)
23721       as_fn_error "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
23722       ;;
23723   esac
23724 fi
23725
23726  if test "$enable_static" = yes; then
23727   ENABLE_STATIC_TRUE=
23728   ENABLE_STATIC_FALSE='#'
23729 else
23730   ENABLE_STATIC_TRUE='#'
23731   ENABLE_STATIC_FALSE=
23732 fi
23733
23734
23735
23736 # Many of these library and header checks are for the benefit of
23737 # supplementary programs.  libgmp doesn't use anything too weird.
23738
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23740 $as_echo_n "checking for ANSI C header files... " >&6; }
23741 if test "${ac_cv_header_stdc+set}" = set; then :
23742   $as_echo_n "(cached) " >&6
23743 else
23744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23745 /* end confdefs.h.  */
23746 #include <stdlib.h>
23747 #include <stdarg.h>
23748 #include <string.h>
23749 #include <float.h>
23750
23751 int
23752 main ()
23753 {
23754
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 if ac_fn_c_try_compile "$LINENO"; then :
23760   ac_cv_header_stdc=yes
23761 else
23762   ac_cv_header_stdc=no
23763 fi
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765
23766 if test $ac_cv_header_stdc = yes; then
23767   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h.  */
23770 #include <string.h>
23771
23772 _ACEOF
23773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23774   $EGREP "memchr" >/dev/null 2>&1; then :
23775
23776 else
23777   ac_cv_header_stdc=no
23778 fi
23779 rm -f conftest*
23780
23781 fi
23782
23783 if test $ac_cv_header_stdc = yes; then
23784   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h.  */
23787 #include <stdlib.h>
23788
23789 _ACEOF
23790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23791   $EGREP "free" >/dev/null 2>&1; then :
23792
23793 else
23794   ac_cv_header_stdc=no
23795 fi
23796 rm -f conftest*
23797
23798 fi
23799
23800 if test $ac_cv_header_stdc = yes; then
23801   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23802   if test "$cross_compiling" = yes; then :
23803   :
23804 else
23805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23806 /* end confdefs.h.  */
23807 #include <ctype.h>
23808 #include <stdlib.h>
23809 #if ((' ' & 0x0FF) == 0x020)
23810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23812 #else
23813 # define ISLOWER(c) \
23814                    (('a' <= (c) && (c) <= 'i') \
23815                      || ('j' <= (c) && (c) <= 'r') \
23816                      || ('s' <= (c) && (c) <= 'z'))
23817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23818 #endif
23819
23820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23821 int
23822 main ()
23823 {
23824   int i;
23825   for (i = 0; i < 256; i++)
23826     if (XOR (islower (i), ISLOWER (i))
23827         || toupper (i) != TOUPPER (i))
23828       return 2;
23829   return 0;
23830 }
23831 _ACEOF
23832 if ac_fn_c_try_run "$LINENO"; then :
23833
23834 else
23835   ac_cv_header_stdc=no
23836 fi
23837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23838   conftest.$ac_objext conftest.beam conftest.$ac_ext
23839 fi
23840
23841 fi
23842 fi
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23844 $as_echo "$ac_cv_header_stdc" >&6; }
23845 if test $ac_cv_header_stdc = yes; then
23846
23847 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23848
23849 fi
23850
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23852 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23853 if test "${ac_cv_header_time+set}" = set; then :
23854   $as_echo_n "(cached) " >&6
23855 else
23856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23857 /* end confdefs.h.  */
23858 #include <sys/types.h>
23859 #include <sys/time.h>
23860 #include <time.h>
23861
23862 int
23863 main ()
23864 {
23865 if ((struct tm *) 0)
23866 return 0;
23867   ;
23868   return 0;
23869 }
23870 _ACEOF
23871 if ac_fn_c_try_compile "$LINENO"; then :
23872   ac_cv_header_time=yes
23873 else
23874   ac_cv_header_time=no
23875 fi
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 fi
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23879 $as_echo "$ac_cv_header_time" >&6; }
23880 if test $ac_cv_header_time = yes; then
23881
23882 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23883
23884 fi
23885
23886
23887 # Reasons for testing:
23888 #   float.h - not in SunOS bundled cc
23889 #   invent.h - IRIX specific
23890 #   langinfo.h - X/Open standard only, not in djgpp for instance
23891 #   locale.h - old systems won't have this
23892 #   nl_types.h - X/Open standard only, not in djgpp for instance
23893 #       (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
23894 #   sys/attributes.h - IRIX specific
23895 #   sys/iograph.h - IRIX specific
23896 #   sys/mman.h - not in Cray Unicos
23897 #   sys/param.h - not in mingw
23898 #   sys/processor.h - solaris specific, though also present in macos
23899 #   sys/pstat.h - HPUX specific
23900 #   sys/resource.h - not in mingw
23901 #   sys/sysctl.h - not in mingw
23902 #   sys/sysinfo.h - OSF specific
23903 #   sys/syssgi.h - IRIX specific
23904 #   sys/systemcfg.h - AIX specific
23905 #   sys/time.h - autoconf suggests testing, don't know anywhere without it
23906 #   sys/times.h - not in mingw
23907 #   machine/hal_sysinfo.h - OSF specific
23908 #
23909 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
23910 # default tests
23911 #
23912 for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
23913 do :
23914   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23916 eval as_val=\$$as_ac_Header
23917    if test "x$as_val" = x""yes; then :
23918   cat >>confdefs.h <<_ACEOF
23919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23920 _ACEOF
23921
23922 fi
23923
23924 done
23925
23926
23927 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
23928 for ac_header in sys/resource.h
23929 do :
23930   ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
23931 # include <sys/time.h>
23932 # include <time.h>
23933 #else
23934 # if HAVE_SYS_TIME_H
23935 #  include <sys/time.h>
23936 # else
23937 #  include <time.h>
23938 # endif
23939 #endif
23940 "
23941 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
23942   cat >>confdefs.h <<_ACEOF
23943 #define HAVE_SYS_RESOURCE_H 1
23944 _ACEOF
23945
23946 fi
23947
23948 done
23949
23950
23951 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
23952 for ac_header in sys/sysctl.h
23953 do :
23954   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
23955 # include <sys/param.h>
23956 #endif
23957 "
23958 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
23959   cat >>confdefs.h <<_ACEOF
23960 #define HAVE_SYS_SYSCTL_H 1
23961 _ACEOF
23962
23963 fi
23964
23965 done
23966
23967
23968 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
23969 for ac_header in machine/hal_sysinfo.h
23970 do :
23971   ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
23972 # include <sys/sysinfo.h>
23973 #endif
23974 "
23975 if test "x$ac_cv_header_machine_hal_sysinfo_h" = x""yes; then :
23976   cat >>confdefs.h <<_ACEOF
23977 #define HAVE_MACHINE_HAL_SYSINFO_H 1
23978 _ACEOF
23979
23980 fi
23981
23982 done
23983
23984
23985 # Reasons for testing:
23986 #   optarg - not declared in mingw
23987 #   fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
23988 #   sys_errlist, sys_nerr - not declared in SunOS 4
23989 #
23990 # optarg should be in unistd.h and the rest in stdio.h, both of which are
23991 # in the autoconf default includes.
23992 #
23993 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
23994 # to the man page (but aren't), in glibc they're in stdio.h.
23995 #
23996 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
23997 if test "x$ac_cv_have_decl_fgetc" = x""yes; then :
23998   ac_have_decl=1
23999 else
24000   ac_have_decl=0
24001 fi
24002
24003 cat >>confdefs.h <<_ACEOF
24004 #define HAVE_DECL_FGETC $ac_have_decl
24005 _ACEOF
24006 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
24007 if test "x$ac_cv_have_decl_fscanf" = x""yes; then :
24008   ac_have_decl=1
24009 else
24010   ac_have_decl=0
24011 fi
24012
24013 cat >>confdefs.h <<_ACEOF
24014 #define HAVE_DECL_FSCANF $ac_have_decl
24015 _ACEOF
24016 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
24017 if test "x$ac_cv_have_decl_optarg" = x""yes; then :
24018   ac_have_decl=1
24019 else
24020   ac_have_decl=0
24021 fi
24022
24023 cat >>confdefs.h <<_ACEOF
24024 #define HAVE_DECL_OPTARG $ac_have_decl
24025 _ACEOF
24026 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
24027 if test "x$ac_cv_have_decl_ungetc" = x""yes; then :
24028   ac_have_decl=1
24029 else
24030   ac_have_decl=0
24031 fi
24032
24033 cat >>confdefs.h <<_ACEOF
24034 #define HAVE_DECL_UNGETC $ac_have_decl
24035 _ACEOF
24036 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
24037 if test "x$ac_cv_have_decl_vfprintf" = x""yes; then :
24038   ac_have_decl=1
24039 else
24040   ac_have_decl=0
24041 fi
24042
24043 cat >>confdefs.h <<_ACEOF
24044 #define HAVE_DECL_VFPRINTF $ac_have_decl
24045 _ACEOF
24046
24047 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
24048 #include <errno.h>
24049 "
24050 if test "x$ac_cv_have_decl_sys_errlist" = x""yes; then :
24051   ac_have_decl=1
24052 else
24053   ac_have_decl=0
24054 fi
24055
24056 cat >>confdefs.h <<_ACEOF
24057 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
24058 _ACEOF
24059 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
24060 #include <errno.h>
24061 "
24062 if test "x$ac_cv_have_decl_sys_nerr" = x""yes; then :
24063   ac_have_decl=1
24064 else
24065   ac_have_decl=0
24066 fi
24067
24068 cat >>confdefs.h <<_ACEOF
24069 #define HAVE_DECL_SYS_NERR $ac_have_decl
24070 _ACEOF
24071
24072
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24074 $as_echo_n "checking return type of signal handlers... " >&6; }
24075 if test "${ac_cv_type_signal+set}" = set; then :
24076   $as_echo_n "(cached) " >&6
24077 else
24078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24079 /* end confdefs.h.  */
24080 #include <sys/types.h>
24081 #include <signal.h>
24082
24083 int
24084 main ()
24085 {
24086 return *(signal (0, 0)) (0) == 1;
24087   ;
24088   return 0;
24089 }
24090 _ACEOF
24091 if ac_fn_c_try_compile "$LINENO"; then :
24092   ac_cv_type_signal=int
24093 else
24094   ac_cv_type_signal=void
24095 fi
24096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24097 fi
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24099 $as_echo "$ac_cv_type_signal" >&6; }
24100
24101 cat >>confdefs.h <<_ACEOF
24102 #define RETSIGTYPE $ac_cv_type_signal
24103 _ACEOF
24104
24105
24106
24107 # Reasons for testing:
24108 #   intmax_t       - C99
24109 #   long double    - not in the HP bundled K&R cc
24110 #   long long      - only in reasonably recent compilers
24111 #   ptrdiff_t      - seems to be everywhere, maybe don't need to check this
24112 #   quad_t         - BSD specific
24113 #   uint_least32_t - C99
24114 #
24115 # the default includes are sufficient for all these types
24116 #
24117 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24118 if test "x$ac_cv_type_intmax_t" = x""yes; then :
24119
24120 cat >>confdefs.h <<_ACEOF
24121 #define HAVE_INTMAX_T 1
24122 _ACEOF
24123
24124
24125 fi
24126 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
24127 if test "x$ac_cv_type_long_double" = x""yes; then :
24128
24129 cat >>confdefs.h <<_ACEOF
24130 #define HAVE_LONG_DOUBLE 1
24131 _ACEOF
24132
24133
24134 fi
24135 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
24136 if test "x$ac_cv_type_long_long" = x""yes; then :
24137
24138 cat >>confdefs.h <<_ACEOF
24139 #define HAVE_LONG_LONG 1
24140 _ACEOF
24141
24142
24143 fi
24144 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24145 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
24146
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_PTRDIFF_T 1
24149 _ACEOF
24150
24151
24152 fi
24153 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
24154 if test "x$ac_cv_type_quad_t" = x""yes; then :
24155
24156 cat >>confdefs.h <<_ACEOF
24157 #define HAVE_QUAD_T 1
24158 _ACEOF
24159
24160
24161 fi
24162 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
24163 if test "x$ac_cv_type_uint_least32_t" = x""yes; then :
24164
24165 cat >>confdefs.h <<_ACEOF
24166 #define HAVE_UINT_LEAST32_T 1
24167 _ACEOF
24168
24169
24170 fi
24171 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24172 if test "x$ac_cv_type_intptr_t" = x""yes; then :
24173
24174 cat >>confdefs.h <<_ACEOF
24175 #define HAVE_INTPTR_T 1
24176 _ACEOF
24177
24178
24179 fi
24180
24181
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
24183 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
24184 if test "${ac_cv_c_stringize+set}" = set; then :
24185   $as_echo_n "(cached) " >&6
24186 else
24187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188 /* end confdefs.h.  */
24189 #define x(y) #y
24190
24191 char *s = x(teststring);
24192 _ACEOF
24193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24194   $EGREP "#teststring" >/dev/null 2>&1; then :
24195   ac_cv_c_stringize=no
24196 else
24197   ac_cv_c_stringize=yes
24198 fi
24199 rm -f conftest*
24200
24201 fi
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
24203 $as_echo "$ac_cv_c_stringize" >&6; }
24204 if test $ac_cv_c_stringize = yes; then
24205
24206 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
24207
24208 fi
24209
24210
24211 # FIXME: Really want #ifndef __cplusplus around the #define volatile
24212 # replacement autoconf gives, since volatile is always available in C++.
24213 # But we don't use it in C++ currently.
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
24215 $as_echo_n "checking for working volatile... " >&6; }
24216 if test "${ac_cv_c_volatile+set}" = set; then :
24217   $as_echo_n "(cached) " >&6
24218 else
24219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24220 /* end confdefs.h.  */
24221
24222 int
24223 main ()
24224 {
24225
24226 volatile int x;
24227 int * volatile y = (int *) 0;
24228 return !x && !y;
24229   ;
24230   return 0;
24231 }
24232 _ACEOF
24233 if ac_fn_c_try_compile "$LINENO"; then :
24234   ac_cv_c_volatile=yes
24235 else
24236   ac_cv_c_volatile=no
24237 fi
24238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24239 fi
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
24241 $as_echo "$ac_cv_c_volatile" >&6; }
24242 if test $ac_cv_c_volatile = no; then
24243
24244 $as_echo "#define volatile /**/" >>confdefs.h
24245
24246 fi
24247
24248
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24250 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24251 if test "${ac_cv_c_restrict+set}" = set; then :
24252   $as_echo_n "(cached) " >&6
24253 else
24254   ac_cv_c_restrict=no
24255    # The order here caters to the fact that C++ does not require restrict.
24256    for ac_kw in __restrict __restrict__ _Restrict restrict; do
24257      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24258 /* end confdefs.h.  */
24259 typedef int * int_ptr;
24260         int foo (int_ptr $ac_kw ip) {
24261         return ip[0];
24262        }
24263 int
24264 main ()
24265 {
24266 int s[1];
24267         int * $ac_kw t = s;
24268         t[0] = 0;
24269         return foo(t)
24270   ;
24271   return 0;
24272 }
24273 _ACEOF
24274 if ac_fn_c_try_compile "$LINENO"; then :
24275   ac_cv_c_restrict=$ac_kw
24276 fi
24277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278      test "$ac_cv_c_restrict" != no && break
24279    done
24280
24281 fi
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24283 $as_echo "$ac_cv_c_restrict" >&6; }
24284
24285  case $ac_cv_c_restrict in
24286    restrict) ;;
24287    no) $as_echo "#define restrict /**/" >>confdefs.h
24288  ;;
24289    *)  cat >>confdefs.h <<_ACEOF
24290 #define restrict $ac_cv_c_restrict
24291 _ACEOF
24292  ;;
24293  esac
24294
24295
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
24297 $as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
24298 if test "${gmp_cv_c_stdarg+set}" = set; then :
24299   $as_echo_n "(cached) " >&6
24300 else
24301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24302 /* end confdefs.h.  */
24303 #include <stdarg.h>
24304 int foo (int x, ...)
24305 {
24306   va_list  ap;
24307   int      y;
24308   va_start (ap, x);
24309   y = va_arg (ap, int);
24310   va_end (ap);
24311   return y;
24312 }
24313 int
24314 main ()
24315 {
24316
24317   ;
24318   return 0;
24319 }
24320 _ACEOF
24321 if ac_fn_c_try_compile "$LINENO"; then :
24322   gmp_cv_c_stdarg=yes
24323 else
24324   gmp_cv_c_stdarg=no
24325 fi
24326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
24330 $as_echo "$gmp_cv_c_stdarg" >&6; }
24331 if test $gmp_cv_c_stdarg = yes; then
24332
24333 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
24334
24335 fi
24336
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
24338 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
24339 if test "${gmp_cv_c_attribute_const+set}" = set; then :
24340   $as_echo_n "(cached) " >&6
24341 else
24342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h.  */
24344 int foo (int x) __attribute__ ((const));
24345 int
24346 main ()
24347 {
24348
24349   ;
24350   return 0;
24351 }
24352 _ACEOF
24353 if ac_fn_c_try_compile "$LINENO"; then :
24354   gmp_cv_c_attribute_const=yes
24355 else
24356   gmp_cv_c_attribute_const=no
24357 fi
24358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
24362 $as_echo "$gmp_cv_c_attribute_const" >&6; }
24363 if test $gmp_cv_c_attribute_const = yes; then
24364
24365 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
24366
24367 fi
24368
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
24370 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
24371 if test "${gmp_cv_c_attribute_malloc+set}" = set; then :
24372   $as_echo_n "(cached) " >&6
24373 else
24374   cat >conftest.c <<EOF
24375 void *foo (int x) __attribute__ ((malloc));
24376 EOF
24377 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
24378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
24379   (eval $gmp_compile) 2>&5
24380   ac_status=$?
24381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382   test $ac_status = 0; }; then
24383   if grep "attribute directive ignored" conftest.out >/dev/null; then
24384     gmp_cv_c_attribute_malloc=no
24385   else
24386     gmp_cv_c_attribute_malloc=yes
24387   fi
24388 else
24389   gmp_cv_c_attribute_malloc=no
24390 fi
24391 cat conftest.out >&5
24392 rm -f conftest*
24393
24394 fi
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
24396 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
24397 if test $gmp_cv_c_attribute_malloc = yes; then
24398
24399 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
24400
24401 fi
24402
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
24404 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
24405 if test "${gmp_cv_c_attribute_mode+set}" = set; then :
24406   $as_echo_n "(cached) " >&6
24407 else
24408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h.  */
24410 typedef int SItype __attribute__ ((mode (SI)));
24411 int
24412 main ()
24413 {
24414
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 if ac_fn_c_try_compile "$LINENO"; then :
24420   gmp_cv_c_attribute_mode=yes
24421 else
24422   gmp_cv_c_attribute_mode=no
24423 fi
24424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24425
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
24428 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
24429 if test $gmp_cv_c_attribute_mode = yes; then
24430
24431 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
24432
24433 fi
24434
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
24436 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
24437 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then :
24438   $as_echo_n "(cached) " >&6
24439 else
24440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h.  */
24442 void foo (int x) __attribute__ ((noreturn));
24443 int
24444 main ()
24445 {
24446
24447   ;
24448   return 0;
24449 }
24450 _ACEOF
24451 if ac_fn_c_try_compile "$LINENO"; then :
24452   gmp_cv_c_attribute_noreturn=yes
24453 else
24454   gmp_cv_c_attribute_noreturn=no
24455 fi
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457
24458 fi
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
24460 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
24461 if test $gmp_cv_c_attribute_noreturn = yes; then
24462
24463 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
24464
24465 fi
24466
24467
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24469 $as_echo_n "checking for inline... " >&6; }
24470 if test "${ac_cv_c_inline+set}" = set; then :
24471   $as_echo_n "(cached) " >&6
24472 else
24473   ac_cv_c_inline=no
24474 for ac_kw in inline __inline__ __inline; do
24475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h.  */
24477 #ifndef __cplusplus
24478 typedef int foo_t;
24479 static $ac_kw foo_t static_foo () {return 0; }
24480 $ac_kw foo_t foo () {return 0; }
24481 #endif
24482
24483 _ACEOF
24484 if ac_fn_c_try_compile "$LINENO"; then :
24485   ac_cv_c_inline=$ac_kw
24486 fi
24487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24488   test "$ac_cv_c_inline" != no && break
24489 done
24490
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24493 $as_echo "$ac_cv_c_inline" >&6; }
24494
24495 case $ac_cv_c_inline in
24496   inline | yes) ;;
24497   *)
24498     case $ac_cv_c_inline in
24499       no) ac_val=;;
24500       *) ac_val=$ac_cv_c_inline;;
24501     esac
24502     cat >>confdefs.h <<_ACEOF
24503 #ifndef __cplusplus
24504 #define inline $ac_val
24505 #endif
24506 _ACEOF
24507     ;;
24508 esac
24509
24510
24511 case $ac_cv_c_inline in
24512 no) ;;
24513 *)
24514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24515 /* end confdefs.h.  */
24516 #define __GMP_WITHIN_CONFIGURE_INLINE 1
24517 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
24518 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24519 #define GMP_LIMB_BITS 123
24520 $DEFN_LONG_LONG_LIMB
24521 #include "$srcdir/gmp-h.in"
24522
24523 #ifndef __GMP_EXTERN_INLINE
24524 die die die
24525 #endif
24526
24527 int
24528 main ()
24529 {
24530
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 if ac_fn_c_try_compile "$LINENO"; then :
24536
24537 else
24538   case $ac_cv_c_inline in
24539   yes) tmp_inline=inline ;;
24540   *)   tmp_inline=$ac_cv_c_inline ;;
24541   esac
24542   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
24543 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
24544 fi
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546   ;;
24547 esac
24548
24549
24550 # from libtool
24551 LIBM=
24552 case $host in
24553 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
24554   # These system don't have libm, or don't need it
24555   ;;
24556 *-ncr-sysv4.3*)
24557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
24558 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
24559 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
24560   $as_echo_n "(cached) " >&6
24561 else
24562   ac_check_lib_save_LIBS=$LIBS
24563 LIBS="-lmw  $LIBS"
24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24565 /* end confdefs.h.  */
24566
24567 /* Override any GCC internal prototype to avoid an error.
24568    Use char because int might match the return type of a GCC
24569    builtin and then its argument prototype would still apply.  */
24570 #ifdef __cplusplus
24571 extern "C"
24572 #endif
24573 char _mwvalidcheckl ();
24574 int
24575 main ()
24576 {
24577 return _mwvalidcheckl ();
24578   ;
24579   return 0;
24580 }
24581 _ACEOF
24582 if ac_fn_c_try_link "$LINENO"; then :
24583   ac_cv_lib_mw__mwvalidcheckl=yes
24584 else
24585   ac_cv_lib_mw__mwvalidcheckl=no
24586 fi
24587 rm -f core conftest.err conftest.$ac_objext \
24588     conftest$ac_exeext conftest.$ac_ext
24589 LIBS=$ac_check_lib_save_LIBS
24590 fi
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
24592 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
24593 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
24594   LIBM="-lmw"
24595 fi
24596
24597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
24598 $as_echo_n "checking for cos in -lm... " >&6; }
24599 if test "${ac_cv_lib_m_cos+set}" = set; then :
24600   $as_echo_n "(cached) " >&6
24601 else
24602   ac_check_lib_save_LIBS=$LIBS
24603 LIBS="-lm  $LIBS"
24604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h.  */
24606
24607 /* Override any GCC internal prototype to avoid an error.
24608    Use char because int might match the return type of a GCC
24609    builtin and then its argument prototype would still apply.  */
24610 #ifdef __cplusplus
24611 extern "C"
24612 #endif
24613 char cos ();
24614 int
24615 main ()
24616 {
24617 return cos ();
24618   ;
24619   return 0;
24620 }
24621 _ACEOF
24622 if ac_fn_c_try_link "$LINENO"; then :
24623   ac_cv_lib_m_cos=yes
24624 else
24625   ac_cv_lib_m_cos=no
24626 fi
24627 rm -f core conftest.err conftest.$ac_objext \
24628     conftest$ac_exeext conftest.$ac_ext
24629 LIBS=$ac_check_lib_save_LIBS
24630 fi
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
24632 $as_echo "$ac_cv_lib_m_cos" >&6; }
24633 if test "x$ac_cv_lib_m_cos" = x""yes; then :
24634   LIBM="$LIBM -lm"
24635 fi
24636
24637   ;;
24638 *)
24639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
24640 $as_echo_n "checking for cos in -lm... " >&6; }
24641 if test "${ac_cv_lib_m_cos+set}" = set; then :
24642   $as_echo_n "(cached) " >&6
24643 else
24644   ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lm  $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h.  */
24648
24649 /* Override any GCC internal prototype to avoid an error.
24650    Use char because int might match the return type of a GCC
24651    builtin and then its argument prototype would still apply.  */
24652 #ifdef __cplusplus
24653 extern "C"
24654 #endif
24655 char cos ();
24656 int
24657 main ()
24658 {
24659 return cos ();
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 if ac_fn_c_try_link "$LINENO"; then :
24665   ac_cv_lib_m_cos=yes
24666 else
24667   ac_cv_lib_m_cos=no
24668 fi
24669 rm -f core conftest.err conftest.$ac_objext \
24670     conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24672 fi
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
24674 $as_echo "$ac_cv_lib_m_cos" >&6; }
24675 if test "x$ac_cv_lib_m_cos" = x""yes; then :
24676   LIBM="-lm"
24677 fi
24678
24679   ;;
24680 esac
24681
24682
24683
24684
24685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24686 # for constant arguments.  Useless!
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
24688 $as_echo_n "checking for working alloca.h... " >&6; }
24689 if test "${gmp_cv_header_alloca+set}" = set; then :
24690   $as_echo_n "(cached) " >&6
24691 else
24692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693 /* end confdefs.h.  */
24694 #include <alloca.h>
24695 int
24696 main ()
24697 {
24698 char *p = (char *) alloca (2 * sizeof (int));
24699   ;
24700   return 0;
24701 }
24702 _ACEOF
24703 if ac_fn_c_try_link "$LINENO"; then :
24704   gmp_cv_header_alloca=yes
24705 else
24706   gmp_cv_header_alloca=no
24707 fi
24708 rm -f core conftest.err conftest.$ac_objext \
24709     conftest$ac_exeext conftest.$ac_ext
24710 fi
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
24712 $as_echo "$gmp_cv_header_alloca" >&6; }
24713 if test $gmp_cv_header_alloca = yes; then
24714
24715 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
24716
24717 fi
24718
24719
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
24721 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
24722 if test "${gmp_cv_func_alloca+set}" = set; then :
24723   $as_echo_n "(cached) " >&6
24724 else
24725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24726 /* end confdefs.h.  */
24727 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
24728 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24729 #define GMP_LIMB_BITS 123
24730 $DEFN_LONG_LONG_LIMB
24731 #include "$srcdir/gmp-h.in"
24732
24733 #include "$srcdir/gmp-impl.h"
24734
24735 int
24736 main ()
24737 {
24738 char *p = (char *) alloca (1);
24739   ;
24740   return 0;
24741 }
24742 _ACEOF
24743 if ac_fn_c_try_link "$LINENO"; then :
24744   gmp_cv_func_alloca=yes
24745 else
24746   gmp_cv_func_alloca=no
24747 fi
24748 rm -f core conftest.err conftest.$ac_objext \
24749     conftest$ac_exeext conftest.$ac_ext
24750 fi
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
24752 $as_echo "$gmp_cv_func_alloca" >&6; }
24753 if test $gmp_cv_func_alloca = yes; then
24754
24755 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
24756
24757 fi
24758
24759
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
24761 $as_echo_n "checking how to allocate temporary memory... " >&6; }
24762 if test "${gmp_cv_option_alloca+set}" = set; then :
24763   $as_echo_n "(cached) " >&6
24764 else
24765   case $enable_alloca in
24766   yes)
24767     gmp_cv_option_alloca=alloca
24768     ;;
24769   no)
24770     gmp_cv_option_alloca=malloc-reentrant
24771     ;;
24772   reentrant | notreentrant)
24773     case $gmp_cv_func_alloca in
24774     yes)  gmp_cv_option_alloca=alloca ;;
24775     *)    gmp_cv_option_alloca=malloc-$enable_alloca ;;
24776     esac
24777     ;;
24778   *)
24779     gmp_cv_option_alloca=$enable_alloca
24780     ;;
24781 esac
24782
24783 fi
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
24785 $as_echo "$gmp_cv_option_alloca" >&6; }
24786
24787
24788
24789 case $gmp_cv_option_alloca in
24790   alloca)
24791     if test $gmp_cv_func_alloca = no; then
24792       as_fn_error "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
24793     fi
24794     $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
24795
24796     TAL_OBJECT=tal-reent$U.lo
24797     ;;
24798   malloc-reentrant)
24799     $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
24800
24801     TAL_OBJECT=tal-reent$U.lo
24802     ;;
24803   malloc-notreentrant)
24804     $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
24805
24806     TAL_OBJECT=tal-notreent$U.lo
24807     ;;
24808   debug)
24809     $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
24810
24811     TAL_OBJECT=tal-debug$U.lo
24812     ;;
24813   *)
24814     # checks at the start of configure.in should protect us
24815     as_fn_error "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
24816     ;;
24817 esac
24818
24819
24820
24821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h.  */
24823 #include <stdio.h>
24824 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
24825 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24826 #define GMP_LIMB_BITS 123
24827 $DEFN_LONG_LONG_LIMB
24828 #include "$srcdir/gmp-h.in"
24829
24830 #if ! _GMP_H_HAVE_FILE
24831 die die die
24832 #endif
24833
24834 int
24835 main ()
24836 {
24837
24838   ;
24839   return 0;
24840 }
24841 _ACEOF
24842 if ac_fn_c_try_compile "$LINENO"; then :
24843
24844 else
24845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
24846 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
24847 fi
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849
24850
24851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24852 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24853 if test "${ac_cv_c_bigendian+set}" = set; then :
24854   $as_echo_n "(cached) " >&6
24855 else
24856   ac_cv_c_bigendian=unknown
24857     # See if we're dealing with a universal compiler.
24858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h.  */
24860 #ifndef __APPLE_CC__
24861                not a universal capable compiler
24862              #endif
24863              typedef int dummy;
24864
24865 _ACEOF
24866 if ac_fn_c_try_compile "$LINENO"; then :
24867
24868         # Check for potential -arch flags.  It is not universal unless
24869         # there are at least two -arch flags with different values.
24870         ac_arch=
24871         ac_prev=
24872         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24873          if test -n "$ac_prev"; then
24874            case $ac_word in
24875              i?86 | x86_64 | ppc | ppc64)
24876                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24877                  ac_arch=$ac_word
24878                else
24879                  ac_cv_c_bigendian=universal
24880                  break
24881                fi
24882                ;;
24883            esac
24884            ac_prev=
24885          elif test "x$ac_word" = "x-arch"; then
24886            ac_prev=arch
24887          fi
24888        done
24889 fi
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891     if test $ac_cv_c_bigendian = unknown; then
24892       # See if sys/param.h defines the BYTE_ORDER macro.
24893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24894 /* end confdefs.h.  */
24895 #include <sys/types.h>
24896              #include <sys/param.h>
24897
24898 int
24899 main ()
24900 {
24901 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24902                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24903                      && LITTLE_ENDIAN)
24904               bogus endian macros
24905              #endif
24906
24907   ;
24908   return 0;
24909 }
24910 _ACEOF
24911 if ac_fn_c_try_compile "$LINENO"; then :
24912   # It does; now see whether it defined to BIG_ENDIAN or not.
24913          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h.  */
24915 #include <sys/types.h>
24916                 #include <sys/param.h>
24917
24918 int
24919 main ()
24920 {
24921 #if BYTE_ORDER != BIG_ENDIAN
24922                  not big endian
24923                 #endif
24924
24925   ;
24926   return 0;
24927 }
24928 _ACEOF
24929 if ac_fn_c_try_compile "$LINENO"; then :
24930   ac_cv_c_bigendian=yes
24931 else
24932   ac_cv_c_bigendian=no
24933 fi
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935 fi
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937     fi
24938     if test $ac_cv_c_bigendian = unknown; then
24939       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24940       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941 /* end confdefs.h.  */
24942 #include <limits.h>
24943
24944 int
24945 main ()
24946 {
24947 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24948               bogus endian macros
24949              #endif
24950
24951   ;
24952   return 0;
24953 }
24954 _ACEOF
24955 if ac_fn_c_try_compile "$LINENO"; then :
24956   # It does; now see whether it defined to _BIG_ENDIAN or not.
24957          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h.  */
24959 #include <limits.h>
24960
24961 int
24962 main ()
24963 {
24964 #ifndef _BIG_ENDIAN
24965                  not big endian
24966                 #endif
24967
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 if ac_fn_c_try_compile "$LINENO"; then :
24973   ac_cv_c_bigendian=yes
24974 else
24975   ac_cv_c_bigendian=no
24976 fi
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 fi
24979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980     fi
24981     if test $ac_cv_c_bigendian = unknown; then
24982       # Compile a test program.
24983       if test "$cross_compiling" = yes; then :
24984   # Try to guess by grepping values from an object file.
24985          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24986 /* end confdefs.h.  */
24987 short int ascii_mm[] =
24988                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24989                 short int ascii_ii[] =
24990                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24991                 int use_ascii (int i) {
24992                   return ascii_mm[i] + ascii_ii[i];
24993                 }
24994                 short int ebcdic_ii[] =
24995                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24996                 short int ebcdic_mm[] =
24997                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24998                 int use_ebcdic (int i) {
24999                   return ebcdic_mm[i] + ebcdic_ii[i];
25000                 }
25001                 extern int foo;
25002
25003 int
25004 main ()
25005 {
25006 return use_ascii (foo) == use_ebcdic (foo);
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 if ac_fn_c_try_compile "$LINENO"; then :
25012   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25013               ac_cv_c_bigendian=yes
25014             fi
25015             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25016               if test "$ac_cv_c_bigendian" = unknown; then
25017                 ac_cv_c_bigendian=no
25018               else
25019                 # finding both strings is unlikely to happen, but who knows?
25020                 ac_cv_c_bigendian=unknown
25021               fi
25022             fi
25023 fi
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025 else
25026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25027 /* end confdefs.h.  */
25028 $ac_includes_default
25029 int
25030 main ()
25031 {
25032
25033              /* Are we little or big endian?  From Harbison&Steele.  */
25034              union
25035              {
25036                long int l;
25037                char c[sizeof (long int)];
25038              } u;
25039              u.l = 1;
25040              return u.c[sizeof (long int) - 1] == 1;
25041
25042   ;
25043   return 0;
25044 }
25045 _ACEOF
25046 if ac_fn_c_try_run "$LINENO"; then :
25047   ac_cv_c_bigendian=no
25048 else
25049   ac_cv_c_bigendian=yes
25050 fi
25051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25052   conftest.$ac_objext conftest.beam conftest.$ac_ext
25053 fi
25054
25055     fi
25056 fi
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25058 $as_echo "$ac_cv_c_bigendian" >&6; }
25059  case $ac_cv_c_bigendian in #(
25060    yes)
25061      $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
25062
25063
25064 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
25065 ;; #(
25066    no)
25067      $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
25068
25069
25070 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
25071
25072    ;; #(
25073    universal)
25074
25075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25076
25077      ;; #(
25078    *)
25079      : ;;
25080  esac
25081
25082
25083
25084
25085
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
25087 $as_echo_n "checking format of \`double' floating point... " >&6; }
25088 if test "${gmp_cv_c_double_format+set}" = set; then :
25089   $as_echo_n "(cached) " >&6
25090 else
25091   gmp_cv_c_double_format=unknown
25092 cat >conftest.c <<\EOF
25093 struct {
25094   char    before[8];
25095   double  x;
25096   char    after[8];
25097 } foo = {
25098   { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
25099   -123456789.0,
25100   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
25101 };
25102 EOF
25103 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
25104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25105   (eval $gmp_compile) 2>&5
25106   ac_status=$?
25107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108   test $ac_status = 0; }; then
25109 cat >conftest.awk <<\EOF
25110
25111 BEGIN {
25112   found = 0
25113 }
25114
25115 {
25116   for (f = 2; f <= NF; f++)
25117     {
25118       for (i = 0; i < 23; i++)
25119         got[i] = got[i+1];
25120       got[23] = $f;
25121
25122       # match the special begin and end sequences
25123       if (got[0] != "001") continue
25124       if (got[1] != "043") continue
25125       if (got[2] != "105") continue
25126       if (got[3] != "147") continue
25127       if (got[4] != "211") continue
25128       if (got[5] != "253") continue
25129       if (got[6] != "315") continue
25130       if (got[7] != "357") continue
25131       if (got[16] != "376") continue
25132       if (got[17] != "334") continue
25133       if (got[18] != "272") continue
25134       if (got[19] != "230") continue
25135       if (got[20] != "166") continue
25136       if (got[21] != "124") continue
25137       if (got[22] != "062") continue
25138       if (got[23] != "020") continue
25139
25140       saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
25141
25142       if (got[8]  == "000" &&  \
25143           got[9]  == "000" &&  \
25144           got[10] == "000" &&  \
25145           got[11] == "124" &&  \
25146           got[12] == "064" &&  \
25147           got[13] == "157" &&  \
25148           got[14] == "235" &&  \
25149           got[15] == "301")
25150         {
25151           print "IEEE little endian"
25152           found = 1
25153           exit
25154         }
25155
25156       # Little endian with the two 4-byte halves swapped, as used by ARM
25157       # when the chip is in little endian mode.
25158       #
25159       if (got[8]  == "064" &&  \
25160           got[9]  == "157" &&  \
25161           got[10] == "235" &&  \
25162           got[11] == "301" &&  \
25163           got[12] == "000" &&  \
25164           got[13] == "000" &&  \
25165           got[14] == "000" &&  \
25166           got[15] == "124")
25167         {
25168           print "IEEE little endian, swapped halves"
25169           found = 1
25170           exit
25171         }
25172
25173       # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
25174       # the last byte, whereas 124 is correct.  Not sure where the bug
25175       # actually lies, but a running program didn't seem to get a full
25176       # mantissa worth of working bits.
25177       #
25178       # We match this case explicitly so we can give a nice result message,
25179       # but we deliberately exclude it from the normal IEEE double setups
25180       # since it's too broken.
25181       #
25182       if (got[8]  == "064" &&  \
25183           got[9]  == "157" &&  \
25184           got[10] == "235" &&  \
25185           got[11] == "301" &&  \
25186           got[12] == "000" &&  \
25187           got[13] == "000" &&  \
25188           got[14] == "000" &&  \
25189           got[15] == "000")
25190         {
25191           print "bad ARM software floats"
25192           found = 1
25193           exit
25194         }
25195
25196       if (got[8]  == "301" &&  \
25197           got[9]  == "235" &&  \
25198           got[10] == "157" &&  \
25199           got[11] == "064" &&  \
25200           got[12] == "124" &&  \
25201           got[13] == "000" &&  \
25202           got[14] == "000" &&  \
25203           got[15] == "000")
25204         {
25205           print "IEEE big endian"
25206           found = 1
25207           exit
25208         }
25209
25210       if (got[8]  == "353" &&  \
25211           got[9]  == "315" &&  \
25212           got[10] == "242" &&  \
25213           got[11] == "171" &&  \
25214           got[12] == "000" &&  \
25215           got[13] == "240" &&  \
25216           got[14] == "000" &&  \
25217           got[15] == "000")
25218         {
25219           print "VAX D"
25220           found = 1
25221           exit
25222         }
25223
25224       if (got[8]  == "275" &&  \
25225           got[9]  == "301" &&  \
25226           got[10] == "064" &&  \
25227           got[11] == "157" &&  \
25228           got[12] == "000" &&  \
25229           got[13] == "124" &&  \
25230           got[14] == "000" &&  \
25231           got[15] == "000")
25232         {
25233           print "VAX G"
25234           found = 1
25235           exit
25236         }
25237
25238       if (got[8]  == "300" &&  \
25239           got[9]  == "033" &&  \
25240           got[10] == "353" &&  \
25241           got[11] == "171" &&  \
25242           got[12] == "242" &&  \
25243           got[13] == "240" &&  \
25244           got[14] == "000" &&  \
25245           got[15] == "000")
25246         {
25247           print "Cray CFP"
25248           found = 1
25249           exit
25250         }
25251     }
25252 }
25253
25254 END {
25255   if (! found)
25256     print "unknown", saw
25257 }
25258
25259 EOF
25260   gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
25261   case $gmp_cv_c_double_format in
25262   unknown*)
25263     echo "cannot match anything, conftest.$OBJEXT contains" >&5
25264     od -b conftest.$OBJEXT >&5
25265     ;;
25266   esac
25267 else
25268   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
25269 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
25270 fi
25271 rm -f conftest*
25272
25273 fi
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
25275 $as_echo "$gmp_cv_c_double_format" >&6; }
25276
25277
25278
25279 case $gmp_cv_c_double_format in
25280   "IEEE big endian")
25281     $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
25282
25283
25284 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
25285
25286     ;;
25287   "IEEE little endian")
25288     $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
25289
25290
25291 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
25292
25293     ;;
25294   "IEEE little endian, swapped halves")
25295     $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
25296  ;;
25297   "VAX D")
25298     $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
25299  ;;
25300   "VAX G")
25301     $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
25302  ;;
25303   "Cray CFP")
25304     $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
25305  ;;
25306   "bad ARM software floats")
25307     ;;
25308   unknown*)
25309     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
25310 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
25311     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
25312 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
25313     ;;
25314   *)
25315     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
25316 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
25317     ;;
25318 esac
25319
25320
25321
25322 # Reasons for testing:
25323 #   alarm - not in mingw
25324 #   attr_get - IRIX specific
25325 #   clock_gettime - not in glibc 2.2.4, only very recent systems
25326 #   cputime - not in glibc
25327 #   getsysinfo - OSF specific
25328 #   getrusage - not in mingw
25329 #   gettimeofday - not in mingw
25330 #   mmap - not in mingw, djgpp
25331 #   nl_langinfo - X/Open standard only, not in djgpp for instance
25332 #   obstack_vprintf - glibc specific
25333 #   processor_info - solaris specific
25334 #   pstat_getprocessor - HPUX specific (10.x and up)
25335 #   raise - an ANSI-ism, though probably almost universal by now
25336 #   read_real_time - AIX specific
25337 #   sigaction - not in mingw
25338 #   sigaltstack - not in mingw, or old AIX (reputedly)
25339 #   sigstack - not in mingw
25340 #   strerror - not in SunOS
25341 #   strnlen - glibc extension (some other systems too)
25342 #   syssgi - IRIX specific
25343 #   times - not in mingw
25344 #
25345 # clock_gettime is in librt on *-*-osf5.1.  We could look for it
25346 # there, but that's not worth bothering with unless it has a decent
25347 # resolution (in a quick test clock_getres said only 1 millisecond).
25348 #
25349 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
25350 # replacement setups it gives.  It detects a faulty strnlen on AIX, but
25351 # missing out on that test is ok since our only use of strnlen is in
25352 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
25353 # vsnprintf.
25354 #
25355 for ac_func in alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
25356 do :
25357   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25359 eval as_val=\$$as_ac_var
25360    if test "x$as_val" = x""yes; then :
25361   cat >>confdefs.h <<_ACEOF
25362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25363 _ACEOF
25364
25365 fi
25366 done
25367
25368
25369
25370 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25371 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
25372   gmp_vsnprintf_exists=yes
25373 else
25374   gmp_vsnprintf_exists=no
25375 fi
25376
25377 if test "$gmp_vsnprintf_exists" = no; then
25378   gmp_cv_func_vsnprintf=no
25379 else
25380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
25381 $as_echo_n "checking whether vsnprintf works... " >&6; }
25382 if test "${gmp_cv_func_vsnprintf+set}" = set; then :
25383   $as_echo_n "(cached) " >&6
25384 else
25385   gmp_cv_func_vsnprintf=yes
25386    for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
25387      if test "$cross_compiling" = yes; then :
25388   gmp_cv_func_vsnprintf=probably; break
25389 else
25390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25391 /* end confdefs.h.  */
25392
25393 #include <string.h>  /* for strcmp */
25394 #include <stdio.h>   /* for vsnprintf */
25395
25396 #if HAVE_STDARG
25397 #include <stdarg.h>
25398 #else
25399 #include <varargs.h>
25400 #endif
25401
25402 int
25403 #if HAVE_STDARG
25404 check (const char *fmt, ...)
25405 #else
25406 check (va_alist)
25407      va_dcl
25408 #endif
25409 {
25410   static char  buf[128];
25411   va_list  ap;
25412   int      ret;
25413
25414 #if HAVE_STDARG
25415   va_start (ap, fmt);
25416 #else
25417   char *fmt;
25418   va_start (ap);
25419   fmt = va_arg (ap, char *);
25420 #endif
25421
25422   ret = vsnprintf (buf, 4, fmt, ap);
25423
25424   if (strcmp (buf, "hel") != 0)
25425     exit (1);
25426
25427   /* allowed return values */
25428   if (ret != -1 && ret != 3 && ret != 11)
25429     exit (2);
25430
25431   return 0;
25432 }
25433
25434 int
25435 main ()
25436 {
25437 $i
25438   exit (0);
25439 }
25440
25441 _ACEOF
25442 if ac_fn_c_try_run "$LINENO"; then :
25443   :
25444 else
25445   gmp_cv_func_vsnprintf=no; break
25446 fi
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25448   conftest.$ac_objext conftest.beam conftest.$ac_ext
25449 fi
25450
25451   done
25452
25453 fi
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
25455 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
25456   if test "$gmp_cv_func_vsnprintf" = probably; then
25457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
25458 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
25459   fi
25460   if test "$gmp_cv_func_vsnprintf" != no; then
25461
25462 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
25463
25464   fi
25465 fi
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
25468 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
25469 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then :
25470   $as_echo_n "(cached) " >&6
25471 else
25472   case $host in
25473   *-*-hpux9 | *-*-hpux9.*)
25474      gmp_cv_func_sscanf_writable_input=yes ;;
25475   *) gmp_cv_func_sscanf_writable_input=no  ;;
25476 esac
25477
25478 fi
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
25480 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
25481 case $gmp_cv_func_sscanf_writable_input in
25482   yes)
25483 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
25484  ;;
25485   no)  ;;
25486   *)   as_fn_error "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
25487 esac
25488
25489
25490 # Reasons for checking:
25491 #   pst_processor psp_iticksperclktick - not in hpux 9
25492 #
25493 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
25494 "
25495 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = x""yes; then :
25496
25497 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
25498
25499 fi
25500
25501
25502 # C++ tests, when required
25503 #
25504 if test $enable_cxx = yes; then
25505   ac_ext=cpp
25506 ac_cpp='$CXXCPP $CPPFLAGS'
25507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25510
25511
25512   # Reasons for testing:
25513   #   <sstream> - not in g++ 2.95.2
25514   #   std::locale - not in g++ 2.95.4
25515   #
25516
25517 for ac_header in sstream
25518 do :
25519   ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
25520 if test "x$ac_cv_header_sstream" = x""yes; then :
25521   cat >>confdefs.h <<_ACEOF
25522 #define HAVE_SSTREAM 1
25523 _ACEOF
25524
25525 fi
25526
25527 done
25528
25529   ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
25530 "
25531 if test "x$ac_cv_type_std__locale" = x""yes; then :
25532
25533 cat >>confdefs.h <<_ACEOF
25534 #define HAVE_STD__LOCALE 1
25535 _ACEOF
25536
25537
25538 fi
25539
25540
25541   ac_ext=c
25542 ac_cpp='$CPP $CPPFLAGS'
25543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25546
25547 fi
25548
25549
25550 # Pick the correct source files in $path and link them to mpn/.
25551 # $gmp_mpn_functions lists all functions we need.
25552 #
25553 # The rule is to find a file with the function name and a .asm, .S,
25554 # .s, or .c extension.  Certain multi-function files with special names
25555 # can provide some functions too.  (mpn/Makefile.am passes
25556 # -DOPERATION_<func> to get them to generate the right code.)
25557
25558 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
25559 #       can optionally provide the latter as an extra entrypoint.  Likewise
25560 #       divrem_1 and pre_divrem_1.
25561
25562 gmp_mpn_functions_optional="umul udiv                                   \
25563   invert_limb sqr_diagonal                                              \
25564   mul_2 mul_3 mul_4                                                     \
25565   addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8        \
25566   addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n                     \
25567   addlsh2_n sublsh2_n rsblsh2_n                                         \
25568   addlsh_n sublsh_n rsblsh_n                                            \
25569   add_n_sub_n addaddmul_1msb0"
25570
25571 gmp_mpn_functions="$extra_functions                                        \
25572   add add_1 add_n sub sub_1 sub_n neg com mul_1 addmul_1                   \
25573   submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2     \
25574   fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump             \
25575   mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc                                  \
25576   mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul           \
25577   random random2 pow_1                                                     \
25578   rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp         \
25579   perfsqr perfpow                                                          \
25580   gcd_1 gcd gcdext_1 gcdext gcd_lehmer gcd_subdiv_step                     \
25581   gcdext_lehmer gcdext_subdiv_step                                         \
25582   div_q tdiv_qr jacbase get_d                                              \
25583   matrix22_mul hgcd2 hgcd mullo_n mullo_basecase                           \
25584   toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul                   \
25585   toom33_mul toom43_mul toom53_mul toom63_mul                              \
25586   toom44_mul                                                               \
25587   toom6h_mul toom6_sqr toom8h_mul toom8_sqr                                \
25588   toom_couple_handling                                                     \
25589   toom2_sqr toom3_sqr toom4_sqr                                            \
25590   toom_eval_dgr3_pm1 toom_eval_dgr3_pm2                                    \
25591   toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp           \
25592   toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts        \
25593   toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts      \
25594   invertappr invert binvert mulmod_bnm1 sqrmod_bnm1                        \
25595   sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q                                 \
25596   dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q                                 \
25597   mu_div_qr mu_divappr_q mu_div_q                                          \
25598   bdiv_q_1                                                                 \
25599   sbpi1_bdiv_q sbpi1_bdiv_qr                                               \
25600   dcpi1_bdiv_q dcpi1_bdiv_qr                                               \
25601   mu_bdiv_q mu_bdiv_qr                                                     \
25602   bdiv_q bdiv_qr                                                           \
25603   divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec subcnd_n    \
25604   redc_1_sec trialdiv remove                                               \
25605   and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n                     \
25606   copyi copyd zero                                                         \
25607   $gmp_mpn_functions_optional"
25608
25609
25610
25611 # the list of all object files used by mpn/Makefile.in and the
25612 # top-level Makefile.in, respectively
25613 mpn_objects=
25614 mpn_objs_in_libgmp=
25615
25616 # links from the sources, to be removed by "make distclean"
25617 gmp_srclinks=
25618
25619
25620 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
25621 # build directory.  If $srcdir is relative then we use a relative path too,
25622 # so the two trees can be moved together.
25623 case $srcdir in
25624   [\\/]* | ?:[\\/]*)  # absolute, as per autoconf
25625     mpn_relative_top_srcdir=$srcdir ;;
25626   *)                    # relative
25627     mpn_relative_top_srcdir=../$srcdir ;;
25628 esac
25629
25630
25631
25632
25633
25634
25635 # Fat binary setups.
25636 #
25637 # We proceed through each $fat_path directory, and look for $fat_function
25638 # routines there.  Those found are incorporated in the build by generating a
25639 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
25640 # suitable function renaming, and adding that to $mpn_objects (the same as a
25641 # normal mpn file).
25642 #
25643 # fat.h is generated with macros to let internal calls to each $fat_function
25644 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
25645 # setup that structure, on a per-directory basis ready for
25646 # mpn/<cpu>/fat/fat.c.
25647 #
25648 # fat.h includes thresholds listed in $fat_thresholds, extracted from
25649 # gmp-mparam.h in each directory.  An overall maximum for each threshold is
25650 # established, for use in making fixed size arrays of temporary space.
25651 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
25652 #
25653 # It'd be possible to do some of this manually, but when there's more than a
25654 # few functions and a few directories it becomes very tedious, and very
25655 # prone to having some routine accidentally omitted.  On that basis it seems
25656 # best to automate as much as possible, even if the code to do so is a bit
25657 # ugly.
25658 #
25659
25660 if test -n "$fat_path"; then
25661   # Usually the mpn build directory is created with mpn/Makefile
25662   # instantiation, but we want to write to it sooner.
25663   mkdir mpn 2>/dev/null
25664
25665   echo "/* fat.h - setups for fat binaries." >fat.h
25666   echo "   Generated by configure - DO NOT EDIT.  */" >>fat.h
25667
25668
25669 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
25670
25671
25672 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
25673
25674
25675   # Don't want normal copies of fat functions
25676   for tmp_fn in $fat_functions; do
25677     remove_from_list_tmp=
25678 for remove_from_list_i in $gmp_mpn_functions; do
25679   if test $remove_from_list_i = $tmp_fn; then :;
25680   else
25681      remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
25682   fi
25683 done
25684 gmp_mpn_functions=$remove_from_list_tmp
25685
25686     remove_from_list_tmp=
25687 for remove_from_list_i in $gmp_mpn_functions_optional; do
25688   if test $remove_from_list_i = $tmp_fn; then :;
25689   else
25690      remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
25691   fi
25692 done
25693 gmp_mpn_functions_optional=$remove_from_list_tmp
25694
25695   done
25696
25697   for tmp_fn in $fat_functions; do
25698     case $tmp_fn in
25699   dive_1)       tmp_fbase=divexact_1 ;;
25700   diveby3)      tmp_fbase=divexact_by3c ;;
25701   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25702   mode1o)       tmp_fbase=modexact_1c_odd ;;
25703   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
25704   *)            tmp_fbase=$tmp_fn ;;
25705 esac
25706
25707     echo "
25708 #ifndef OPERATION_$tmp_fn
25709 #undef  mpn_$tmp_fbase
25710 #define mpn_$tmp_fbase  (*__gmpn_cpuvec.$tmp_fbase)
25711 #endif
25712 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
25713     # encourage various macros to use fat functions
25714     cat >>confdefs.h <<_ACEOF
25715 #define HAVE_NATIVE_$tmp_fbase 1
25716 _ACEOF
25717
25718   done
25719
25720   echo "" >>fat.h
25721   echo "/* variable thresholds */" >>fat.h
25722   for tmp_tn in $fat_thresholds; do
25723     echo "#undef  $tmp_tn" >>fat.h
25724     echo "#define $tmp_tn  CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
25725   done
25726
25727   echo "
25728 /* Copy all fields into __gmpn_cpuvec.
25729    memcpy is not used because it might operate byte-wise (depending on its
25730    implementation), and we need the function pointer writes to be atomic.
25731    "volatile" discourages the compiler from trying to optimize this.  */
25732 #define CPUVEC_INSTALL(vec) \\
25733   do { \\
25734     volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
25735   for tmp_fn in $fat_functions; do
25736     case $tmp_fn in
25737   dive_1)       tmp_fbase=divexact_1 ;;
25738   diveby3)      tmp_fbase=divexact_by3c ;;
25739   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25740   mode1o)       tmp_fbase=modexact_1c_odd ;;
25741   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
25742   *)            tmp_fbase=$tmp_fn ;;
25743 esac
25744
25745     echo "    p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
25746   done
25747   for tmp_tn in $fat_thresholds; do
25748     tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
25749     echo "    p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
25750   done
25751   echo "  } while (0)" >>fat.h
25752
25753   echo "
25754 /* A helper to check all fields are filled. */
25755 #define ASSERT_CPUVEC(vec) \\
25756   do { \\" >>fat.h
25757   for tmp_fn in $fat_functions; do
25758     case $tmp_fn in
25759   dive_1)       tmp_fbase=divexact_1 ;;
25760   diveby3)      tmp_fbase=divexact_by3c ;;
25761   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25762   mode1o)       tmp_fbase=modexact_1c_odd ;;
25763   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
25764   *)            tmp_fbase=$tmp_fn ;;
25765 esac
25766
25767     echo "    ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
25768   done
25769   for tmp_tn in $fat_thresholds; do
25770     tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
25771     echo "    ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
25772   done
25773   echo "  } while (0)" >>fat.h
25774
25775   echo "
25776 /* Call ITERATE(field) for each fat threshold field. */
25777 #define ITERATE_FAT_THRESHOLDS() \\
25778   do { \\" >>fat.h
25779   for tmp_tn in $fat_thresholds; do
25780     tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
25781     echo "    ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
25782   done
25783   echo "  } while (0)" >>fat.h
25784
25785   for tmp_dir in $fat_path; do
25786     CPUVEC_SETUP=
25787     THRESH_ASM_SETUP=
25788     echo "" >>fat.h
25789     tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
25790
25791     # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
25792     # (rather than a suffix) for the generated file names, and abbreviate.
25793     case $tmp_suffix in
25794       pentium)       tmp_prefix=p   ;;
25795       pentium_mmx)   tmp_prefix=pm  ;;
25796       p6_mmx)        tmp_prefix=p2  ;;
25797       p6_p3mmx)      tmp_prefix=p3  ;;
25798       pentium4)      tmp_prefix=p4  ;;
25799       pentium4_mmx)  tmp_prefix=p4m ;;
25800       pentium4_sse2) tmp_prefix=p4s ;;
25801       k6_mmx)        tmp_prefix=k6m ;;
25802       k6_k62mmx)     tmp_prefix=k62 ;;
25803       k7_mmx)        tmp_prefix=k7m ;;
25804       *)             tmp_prefix=$tmp_suffix ;;
25805     esac
25806
25807     # Extract desired thresholds from gmp-mparam.h file in this directory,
25808     # if present.
25809     tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
25810     if test -f $tmp_mparam; then
25811       for tmp_tn in $fat_thresholds; do
25812         tmp_thresh=`sed -n "s/^#define $tmp_tn[         ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
25813         if test -n "$tmp_thresh"; then
25814           THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
25815 "
25816           CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
25817 "
25818           eval tmp_limit=\$${tmp_tn}_LIMIT
25819           if test -z "$tmp_limit"; then
25820             tmp_limit=0
25821           fi
25822           if test $tmp_thresh -gt $tmp_limit; then
25823             eval ${tmp_tn}_LIMIT=$tmp_thresh
25824           fi
25825         fi
25826       done
25827     fi
25828
25829     for tmp_fn in $fat_functions; do
25830       # functions that can be provided by multi-function files
25831 tmp_mulfunc=
25832 case $tmp_fn in
25833   add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
25834   addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
25835   popcount|hamdist)  tmp_mulfunc="popham"    ;;
25836   and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
25837                      tmp_mulfunc="logops_n"  ;;
25838   lshift|rshift)     tmp_mulfunc="lorrshift";;
25839   addlsh1_n)
25840                      tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
25841   sublsh1_n)
25842                      tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
25843   rsblsh1_n)
25844                      tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
25845   addlsh2_n)
25846                      tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
25847   sublsh2_n)
25848                      tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
25849   rsblsh2_n)
25850                      tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
25851   addlsh_n)
25852                      tmp_mulfunc="aorslsh_n aorrlsh_n";;
25853   sublsh_n)
25854                      tmp_mulfunc="aorslsh_n sorrlsh_n";;
25855   rsblsh_n)
25856                      tmp_mulfunc="aorrlsh_n sorrlsh_n";;
25857   rsh1add_n|rsh1sub_n)
25858                      tmp_mulfunc="rsh1aors_n";;
25859 esac
25860
25861
25862       for tmp_base in $tmp_fn $tmp_mulfunc; do
25863         for tmp_ext in asm S s c; do
25864           tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
25865           if test -f $tmp_file; then
25866
25867             mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
25868             mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
25869
25870             case $tmp_fn in
25871   dive_1)       tmp_fbase=divexact_1 ;;
25872   diveby3)      tmp_fbase=divexact_by3c ;;
25873   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25874   mode1o)       tmp_fbase=modexact_1c_odd ;;
25875   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
25876   *)            tmp_fbase=$tmp_fn ;;
25877 esac
25878
25879
25880             # carry-in variant, eg. divrem_1c or modexact_1c_odd
25881             case $tmp_fbase in
25882               *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
25883               *)    tmp_fbasec=${tmp_fbase}c ;;
25884             esac
25885
25886             # Create a little file doing an include from srcdir.  The
25887             # OPERATION and renamings aren't all needed all the time, but
25888             # they don't hurt if unused.
25889             #
25890             # FIXME: Should generate these via config.status commands.
25891             # Would need them all in one AC_CONFIG_COMMANDS though, since
25892             # that macro doesn't accept a set of separate commands generated
25893             # by shell code.
25894             #
25895             case $tmp_ext in
25896               asm)
25897                 # hide the d-n-l from autoconf's error checking
25898                 tmp_d_n_l=d""nl
25899                 echo "$tmp_d_n_l  mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
25900 $tmp_d_n_l  Generated by configure - DO NOT EDIT.
25901
25902 define(OPERATION_$tmp_fn)
25903 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
25904 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
25905 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
25906
25907 $tmp_d_n_l  For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
25908 ifdef(\`__gmpn_modexact_1_odd',,
25909 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
25910
25911 $THRESH_ASM_SETUP
25912 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
25913 " >mpn/${tmp_prefix}_$tmp_fn.asm
25914                 ;;
25915               c)
25916                 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
25917    Generated by configure - DO NOT EDIT. */
25918
25919 #define OPERATION_$tmp_fn 1
25920 #define __gmpn_$tmp_fbase           __gmpn_${tmp_fbase}_$tmp_suffix
25921 #define __gmpn_$tmp_fbasec          __gmpn_${tmp_fbasec}_${tmp_suffix}
25922 #define __gmpn_preinv_${tmp_fbase}  __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
25923
25924 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
25925 " >mpn/${tmp_prefix}_$tmp_fn.c
25926                 ;;
25927             esac
25928
25929             # Prototype, and append to CPUVEC_SETUP for this directory.
25930             echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
25931             CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
25932 "
25933             # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
25934             if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
25935               echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
25936               CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
25937 "
25938             fi
25939           fi
25940         done
25941       done
25942     done
25943
25944     # Emit CPUVEC_SETUP for this directory
25945     echo "" >>fat.h
25946     echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
25947     echo "  do { \\" >>fat.h
25948     echo "$CPUVEC_SETUP  } while (0)" >>fat.h
25949   done
25950
25951   # Emit threshold limits
25952   echo "" >>fat.h
25953   for tmp_tn in $fat_thresholds; do
25954     eval tmp_limit=\$${tmp_tn}_LIMIT
25955     echo "#define ${tmp_tn}_LIMIT  $tmp_limit" >>fat.h
25956   done
25957 fi
25958
25959
25960 # Normal binary setups.
25961 #
25962
25963 for tmp_ext in asm S s c; do
25964   eval found_$tmp_ext=no
25965 done
25966
25967 for tmp_fn in $gmp_mpn_functions; do
25968   for tmp_ext in asm S s c; do
25969     test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
25970   done
25971
25972   # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
25973   # mpn_preinv_mod_1 by mod_1.asm.
25974   case $tmp_fn in
25975   pre_divrem_1)
25976     if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
25977   pre_mod_1)
25978     if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
25979   esac
25980
25981   # functions that can be provided by multi-function files
25982 tmp_mulfunc=
25983 case $tmp_fn in
25984   add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
25985   addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
25986   popcount|hamdist)  tmp_mulfunc="popham"    ;;
25987   and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
25988                      tmp_mulfunc="logops_n"  ;;
25989   lshift|rshift)     tmp_mulfunc="lorrshift";;
25990   addlsh1_n)
25991                      tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
25992   sublsh1_n)
25993                      tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
25994   rsblsh1_n)
25995                      tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
25996   addlsh2_n)
25997                      tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
25998   sublsh2_n)
25999                      tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26000   rsblsh2_n)
26001                      tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26002   addlsh_n)
26003                      tmp_mulfunc="aorslsh_n aorrlsh_n";;
26004   sublsh_n)
26005                      tmp_mulfunc="aorslsh_n sorrlsh_n";;
26006   rsblsh_n)
26007                      tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26008   rsh1add_n|rsh1sub_n)
26009                      tmp_mulfunc="rsh1aors_n";;
26010 esac
26011
26012
26013   found=no
26014   for tmp_dir in $path; do
26015     for tmp_base in $tmp_fn $tmp_mulfunc; do
26016       for tmp_ext in asm S s c; do
26017         tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26018         if test -f $tmp_file; then
26019
26020           # For a nails build, check if the file supports our nail bits.
26021           # Generic code always supports all nails.
26022           #
26023           # FIXME: When a multi-function file is selected to provide one of
26024           # the nails-neutral routines, like logops_n for and_n, the
26025           # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
26026           # all functions in that file, even if they haven't all been
26027           # nailified.  Not sure what to do about this, it's only really a
26028           # problem for logops_n, and it's not too terrible to insist those
26029           # get nailified always.
26030           #
26031           if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
26032             case $tmp_fn in
26033               and_n | ior_n | xor_n | andn_n | \
26034               copyi | copyd | \
26035               popcount | hamdist | \
26036               udiv | udiv_w_sdiv | umul | \
26037               cntlz | invert_limb)
26038                 # these operations are either unaffected by nails or defined
26039                 # to operate on full limbs
26040                 ;;
26041               *)
26042                 nails=`sed -n 's/^[     ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
26043                 for n in $nails; do
26044                   case $n in
26045                   *-*)
26046                     n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
26047                     n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
26048                     ;;
26049                   *)
26050                     n_start=$n
26051                     n_end=$n
26052                     ;;
26053                   esac
26054                   if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
26055                     found=yes
26056                     break
26057                   fi
26058                 done
26059                 if test $found != yes; then
26060                   continue
26061                 fi
26062                 ;;
26063             esac
26064           fi
26065
26066           found=yes
26067           eval found_$tmp_ext=yes
26068
26069           if test $tmp_ext = c; then
26070             tmp_u='$U'
26071           else
26072             tmp_u=
26073           fi
26074
26075           mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
26076           mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
26077           ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
26078
26079           gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
26080
26081           # Duplicate AC_DEFINEs are harmless, so it doesn't matter
26082           # that multi-function files get grepped here repeatedly.
26083           # The PROLOGUE pattern excludes the optional second parameter.
26084           gmp_ep=`
26085             sed -n 's/^[        ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
26086             sed -n 's/^[        ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
26087           `
26088           for gmp_tmp in $gmp_ep; do
26089             cat >>confdefs.h <<_ACEOF
26090 #define HAVE_NATIVE_$gmp_tmp 1
26091 _ACEOF
26092
26093             eval HAVE_NATIVE_$gmp_tmp=yes
26094           done
26095
26096           case $tmp_fn in
26097           sqr_basecase) sqr_basecase_source=$tmp_file ;;
26098           esac
26099
26100           break
26101         fi
26102       done
26103       if test $found = yes; then break ; fi
26104     done
26105     if test $found = yes; then break ; fi
26106   done
26107
26108   if test $found = no; then
26109     for tmp_optional in $gmp_mpn_functions_optional; do
26110       if test $tmp_optional = $tmp_fn; then
26111         found=yes
26112       fi
26113     done
26114     if test $found = no; then
26115       as_fn_error "no version of $tmp_fn found in path: $path" "$LINENO" 5
26116     fi
26117   fi
26118 done
26119
26120 # All cycle counters are .asm files currently
26121 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
26122   found_asm=yes
26123 fi
26124
26125
26126
26127
26128
26129 # Don't demand an m4 unless it's actually needed.
26130 if test $found_asm = yes; then
26131
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
26133 $as_echo_n "checking for suitable m4... " >&6; }
26134 if test "${gmp_cv_prog_m4+set}" = set; then :
26135   $as_echo_n "(cached) " >&6
26136 else
26137   if test -n "$M4"; then
26138   gmp_cv_prog_m4="$M4"
26139 else
26140   cat >conftest.m4 <<\EOF
26141 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
26142 ``bad: $# not supported (SunOS /usr/bin/m4)
26143 '')ifelse(eval(89),89,`define(t2,Y)',
26144 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
26145 ')ifelse(t1`'t2,YY,`good
26146 ')
26147 EOF
26148   echo "trying m4" >&5
26149   gmp_tmp_val=`(m4 conftest.m4) 2>&5`
26150   echo "$gmp_tmp_val" >&5
26151   if test "$gmp_tmp_val" = good; then
26152     gmp_cv_prog_m4="m4"
26153   else
26154     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
26155     ac_dummy="$PATH:/usr/5bin"
26156     for ac_dir in $ac_dummy; do
26157       test -z "$ac_dir" && ac_dir=.
26158       echo "trying $ac_dir/m4" >&5
26159       gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
26160       echo "$gmp_tmp_val" >&5
26161       if test "$gmp_tmp_val" = good; then
26162         gmp_cv_prog_m4="$ac_dir/m4"
26163         break
26164       fi
26165     done
26166     IFS="$ac_save_ifs"
26167     if test -z "$gmp_cv_prog_m4"; then
26168       as_fn_error "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
26169     fi
26170   fi
26171   rm -f conftest.m4
26172 fi
26173 fi
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
26175 $as_echo "$gmp_cv_prog_m4" >&6; }
26176 M4="$gmp_cv_prog_m4"
26177
26178
26179
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
26181 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
26182 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then :
26183   $as_echo_n "(cached) " >&6
26184 else
26185   # hide the d-n-l from autoconf's error checking
26186 tmp_d_n_l=d""nl
26187 cat >conftest.m4 <<EOF
26188 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
26189 EOF
26190 echo test input is >&5
26191 cat conftest.m4 >&5
26192 tmp_chars=`$M4 conftest.m4 | wc -c`
26193 echo produces $tmp_chars chars output >&5
26194 rm -f conftest.m4
26195 if test $tmp_chars = 0; then
26196   gmp_cv_m4_m4wrap_spurious=no
26197 else
26198   gmp_cv_m4_m4wrap_spurious=yes
26199 fi
26200
26201 fi
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
26203 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
26204
26205 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
26206
26207
26208 else
26209   M4=m4-not-needed
26210 fi
26211
26212 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
26213 if test $found_asm = no && test $found_S = no; then
26214   gmp_asm_syntax_testing=no
26215 fi
26216
26217 if test "$gmp_asm_syntax_testing" != no; then
26218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
26219 $as_echo_n "checking how to switch to text section... " >&6; }
26220 if test "${gmp_cv_asm_text+set}" = set; then :
26221   $as_echo_n "(cached) " >&6
26222 else
26223   for i in ".text" ".code" ".csect .text[PR]"; do
26224   echo "trying $i" >&5
26225   cat >conftest.s <<EOF
26226         $i
26227 EOF
26228 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26230   (eval $gmp_assemble) 2>&5
26231   ac_status=$?
26232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233   test $ac_status = 0; }; then
26234   cat conftest.out >&5
26235   gmp_cv_asm_text=$i
26236      rm -f conftest*
26237      break
26238 else
26239   cat conftest.out >&5
26240   echo "configure: failed program was:" >&5
26241   cat conftest.s >&5
26242   :
26243 fi
26244 rm -f conftest*
26245
26246 done
26247 if test -z "$gmp_cv_asm_text"; then
26248   as_fn_error "Cannot determine text section directive" "$LINENO" 5
26249 fi
26250
26251 fi
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
26253 $as_echo "$gmp_cv_asm_text" >&6; }
26254 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
26255
26256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
26257 $as_echo_n "checking how to switch to data section... " >&6; }
26258 if test "${gmp_cv_asm_data+set}" = set; then :
26259   $as_echo_n "(cached) " >&6
26260 else
26261   case $host in
26262   *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
26263   *)        gmp_cv_asm_data=".data" ;;
26264 esac
26265
26266 fi
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
26268 $as_echo "$gmp_cv_asm_data" >&6; }
26269 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
26270
26271
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
26273 $as_echo_n "checking for assembler label suffix... " >&6; }
26274 if test "${gmp_cv_asm_label_suffix+set}" = set; then :
26275   $as_echo_n "(cached) " >&6
26276 else
26277   gmp_cv_asm_label_suffix=unknown
26278 for i in "" ":"; do
26279   echo "trying $i" >&5
26280   cat >conftest.s <<EOF
26281         $gmp_cv_asm_text
26282 somelabel$i
26283 EOF
26284 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26286   (eval $gmp_assemble) 2>&5
26287   ac_status=$?
26288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26289   test $ac_status = 0; }; then
26290   cat conftest.out >&5
26291   gmp_cv_asm_label_suffix=$i
26292      rm -f conftest*
26293      break
26294 else
26295   cat conftest.out >&5
26296   echo "configure: failed program was:" >&5
26297   cat conftest.s >&5
26298   cat conftest.out >&5
26299 fi
26300 rm -f conftest*
26301
26302 done
26303 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
26304   as_fn_error "Cannot determine label suffix" "$LINENO" 5
26305 fi
26306
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
26309 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
26310 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
26311
26312
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
26314 $as_echo_n "checking for assembler global directive... " >&6; }
26315 if test "${gmp_cv_asm_globl+set}" = set; then :
26316   $as_echo_n "(cached) " >&6
26317 else
26318   case $host in
26319   hppa*-*-*)     gmp_cv_asm_globl=.export ;;
26320   ia64*-*-* | itanium-*-* | itanium2-*-*)  gmp_cv_asm_globl=.global ;;
26321   *)             gmp_cv_asm_globl=.globl  ;;
26322 esac
26323
26324 fi
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
26326 $as_echo "$gmp_cv_asm_globl" >&6; }
26327 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
26328
26329
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
26331 $as_echo_n "checking for assembler global directive attribute... " >&6; }
26332 if test "${gmp_cv_asm_globl_attr+set}" = set; then :
26333   $as_echo_n "(cached) " >&6
26334 else
26335   case $gmp_cv_asm_globl in
26336   .export) gmp_cv_asm_globl_attr=",entry" ;;
26337   *)       gmp_cv_asm_globl_attr="" ;;
26338 esac
26339
26340 fi
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
26342 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
26343 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
26344
26345
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
26347 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
26348 if test "${gmp_cv_asm_underscore+set}" = set; then :
26349   $as_echo_n "(cached) " >&6
26350 else
26351   gmp_cv_asm_underscore="unknown"
26352 cat >conftest.c <<EOF
26353 int gurkmacka;
26354 EOF
26355 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
26356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26357   (eval $gmp_compile) 2>&5
26358   ac_status=$?
26359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26360   test $ac_status = 0; }; then
26361   $NM conftest.$OBJEXT >conftest.out
26362   if grep _gurkmacka conftest.out >/dev/null; then
26363     gmp_cv_asm_underscore=yes
26364   elif grep gurkmacka conftest.out >/dev/null; then
26365     gmp_cv_asm_underscore=no
26366   else
26367     echo "configure: $NM doesn't have gurkmacka:" >&5
26368     cat conftest.out >&5
26369   fi
26370 else
26371   echo "configure: failed program was:" >&5
26372   cat conftest.c >&5
26373 fi
26374 rm -f conftest*
26375
26376 fi
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
26378 $as_echo "$gmp_cv_asm_underscore" >&6; }
26379 case $gmp_cv_asm_underscore in
26380   yes)
26381
26382 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
26383  ;;
26384   no)
26385
26386 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
26387  ;;
26388   *)
26389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
26390 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
26391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
26392 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
26393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
26394 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
26395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
26396 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
26397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
26398 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
26399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
26400 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
26401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
26402 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
26403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&5
26404 $as_echo "$as_me: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&2;}
26405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
26406 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
26407
26408 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
26409
26410     ;;
26411 esac
26412
26413
26414
26415
26416
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
26418 $as_echo_n "checking how to switch to read-only data section... " >&6; }
26419 if test "${gmp_cv_asm_rodata+set}" = set; then :
26420   $as_echo_n "(cached) " >&6
26421 else
26422
26423 case $host in
26424 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
26425   gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
26426 *)
26427   gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
26428 esac
26429
26430 cat >conftest.c <<EOF
26431 const int foo = 123;
26432 EOF
26433 echo "Test program:" >&5
26434 cat conftest.c >&5
26435 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
26436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26437   (eval $gmp_compile) 2>&5
26438   ac_status=$?
26439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440   test $ac_status = 0; }; then
26441   echo "Compiler output:" >&5
26442   cat conftest.s >&5
26443   if test $gmp_cv_asm_underscore = yes; then
26444     tmp_gsym_prefix=_
26445   else
26446     tmp_gsym_prefix=
26447   fi
26448   # must see our label
26449   if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
26450     # take the last directive before our label (hence skipping segments
26451     # getting debugging info etc)
26452     tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
26453                         /^[.    ]*data/p
26454                         /^[.    ]*rdata/p
26455                         /^[.    ]*text/p
26456                         /^[.    ]*section/p
26457                         /^[.    ]*csect/p
26458                         /^[.    ]*CSECT/p" conftest.s | sed -n '$p'`
26459     echo "Match: $tmp_match" >&5
26460     if test -n "$tmp_match"; then
26461       gmp_cv_asm_rodata=$tmp_match
26462     fi
26463   else
26464     echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
26465   fi
26466 fi
26467 rm -f conftest*
26468
26469 fi
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
26471 $as_echo "$gmp_cv_asm_rodata" >&6; }
26472 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
26473
26474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
26475 $as_echo_n "checking for assembler .type directive... " >&6; }
26476 if test "${gmp_cv_asm_type+set}" = set; then :
26477   $as_echo_n "(cached) " >&6
26478 else
26479   gmp_cv_asm_type=
26480 for gmp_tmp_prefix in @ \# %; do
26481   cat >conftest.s <<EOF
26482         .type   sym,${gmp_tmp_prefix}function
26483 EOF
26484 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26486   (eval $gmp_assemble) 2>&5
26487   ac_status=$?
26488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26489   test $ac_status = 0; }; then
26490   cat conftest.out >&5
26491   if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
26492     else
26493       gmp_cv_asm_type=".type    \$1,${gmp_tmp_prefix}\$2"
26494       break
26495     fi
26496 else
26497   cat conftest.out >&5
26498   echo "configure: failed program was:" >&5
26499   cat conftest.s >&5
26500   :
26501 fi
26502 rm -f conftest*
26503
26504 done
26505 rm -f conftest*
26506
26507 fi
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
26509 $as_echo "$gmp_cv_asm_type" >&6; }
26510 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
26511
26512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
26513 $as_echo_n "checking for assembler .size directive... " >&6; }
26514 if test "${gmp_cv_asm_size+set}" = set; then :
26515   $as_echo_n "(cached) " >&6
26516 else
26517   gmp_cv_asm_size=
26518 cat >conftest.s <<EOF
26519         .size   sym,1
26520 EOF
26521 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26523   (eval $gmp_assemble) 2>&5
26524   ac_status=$?
26525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26526   test $ac_status = 0; }; then
26527   cat conftest.out >&5
26528   if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
26529   else
26530     gmp_cv_asm_size=".size      \$1,\$2"
26531   fi
26532 else
26533   cat conftest.out >&5
26534   echo "configure: failed program was:" >&5
26535   cat conftest.s >&5
26536   :
26537 fi
26538 rm -f conftest*
26539
26540
26541 fi
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
26543 $as_echo "$gmp_cv_asm_size" >&6; }
26544 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
26545
26546
26547
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
26550 $as_echo_n "checking for assembler local label prefix... " >&6; }
26551 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then :
26552   $as_echo_n "(cached) " >&6
26553 else
26554   gmp_tmp_pre_appears=yes
26555 for gmp_tmp_pre in L .L $L $ L$; do
26556   echo "Trying $gmp_tmp_pre" >&5
26557   cat >conftest.s <<EOF
26558         $gmp_cv_asm_text
26559 dummy${gmp_cv_asm_label_suffix}
26560 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
26561 EOF
26562 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26564   (eval $gmp_assemble) 2>&5
26565   ac_status=$?
26566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567   test $ac_status = 0; }; then
26568   cat conftest.out >&5
26569   if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
26570     cat conftest.nm >&5
26571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
26572 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
26573     break
26574   fi
26575   cat conftest.nm >&5
26576   if grep gurkmacka conftest.nm >/dev/null; then : ; else
26577     # no mention of the symbol, this is good
26578     echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
26579     gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
26580     gmp_tmp_pre_appears=no
26581     break
26582   fi
26583   if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
26584     # symbol mentioned as a local, use this if nothing better
26585     echo "$gmp_tmp_pre label is local but still in object file" >&5
26586     if test -z "$gmp_cv_asm_lsym_prefix"; then
26587       gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
26588     fi
26589   else
26590     echo "$gmp_tmp_pre label is something unknown" >&5
26591   fi
26592
26593 else
26594   cat conftest.out >&5
26595   echo "configure: failed program was:" >&5
26596   cat conftest.s >&5
26597   :
26598 fi
26599 rm -f conftest*
26600
26601 done
26602 rm -f conftest*
26603 if test -z "$gmp_cv_asm_lsym_prefix"; then
26604   gmp_cv_asm_lsym_prefix=L
26605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
26606 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
26607 fi
26608 # for development purposes, note whether we got a purely temporary local label
26609 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
26610
26611 fi
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
26613 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
26614 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
26615
26616 cat >>confdefs.h <<_ACEOF
26617 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
26618 _ACEOF
26619
26620
26621
26622
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
26624 $as_echo_n "checking for assembler byte directive... " >&6; }
26625 if test "${gmp_cv_asm_byte+set}" = set; then :
26626   $as_echo_n "(cached) " >&6
26627 else
26628   for i in .byte data1; do
26629   echo "trying $i" >&5
26630   cat >conftest.s <<EOF
26631         $gmp_cv_asm_data
26632         $i      0
26633
26634 EOF
26635 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26637   (eval $gmp_assemble) 2>&5
26638   ac_status=$?
26639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640   test $ac_status = 0; }; then
26641   cat conftest.out >&5
26642   gmp_cv_asm_byte=$i
26643      rm -f conftest*
26644      break
26645 else
26646   cat conftest.out >&5
26647   echo "configure: failed program was:" >&5
26648   cat conftest.s >&5
26649   cat conftest.out >&5
26650 fi
26651 rm -f conftest*
26652
26653 done
26654 if test -z "$gmp_cv_asm_byte"; then
26655   as_fn_error "Cannot determine how to emit a data byte" "$LINENO" 5
26656 fi
26657
26658 fi
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
26660 $as_echo "$gmp_cv_asm_byte" >&6; }
26661
26662
26663
26664
26665
26666
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
26668 $as_echo_n "checking how to define a 32-bit word... " >&6; }
26669 if test "${gmp_cv_asm_w32+set}" = set; then :
26670   $as_echo_n "(cached) " >&6
26671 else
26672   case $host in
26673   *-*-hpux*)
26674     # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
26675     # that it's at 0x0.  We'll have to declare another symbol before the
26676     # .long/.word and look at the distance between the two symbols.  The
26677     # only problem is that the sed expression(s) barfs (on Solaris, for
26678     # example) for the symbol with value 0.  For now, HPUX uses .word.
26679     gmp_cv_asm_w32=".word"
26680     ;;
26681   *-*-*)
26682     gmp_tmp_val=
26683     for gmp_tmp_op in .long .word data4; do
26684       cat >conftest.s <<EOF
26685         $gmp_cv_asm_data
26686         $gmp_cv_asm_globl       foo
26687         $gmp_tmp_op     0
26688 foo$gmp_cv_asm_label_suffix
26689         $gmp_cv_asm_byte        0
26690 EOF
26691 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26693   (eval $gmp_assemble) 2>&5
26694   ac_status=$?
26695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696   test $ac_status = 0; }; then
26697   cat conftest.out >&5
26698   gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
26699           sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
26700         if test "$gmp_tmp_val" = 4; then
26701           gmp_cv_asm_w32="$gmp_tmp_op"
26702           break
26703         fi
26704 else
26705   cat conftest.out >&5
26706   echo "configure: failed program was:" >&5
26707   cat conftest.s >&5
26708   :
26709 fi
26710 rm -f conftest*
26711
26712     done
26713     rm -f conftest*
26714     ;;
26715 esac
26716 if test -z "$gmp_cv_asm_w32"; then
26717   as_fn_error "cannot determine how to define a 32-bit word" "$LINENO" 5
26718 fi
26719
26720 fi
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
26722 $as_echo "$gmp_cv_asm_w32" >&6; }
26723 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
26724
26725
26726
26727
26728
26729
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
26731 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
26732 if test "${gmp_cv_asm_align_log+set}" = set; then :
26733   $as_echo_n "(cached) " >&6
26734 else
26735   cat >conftest.s <<EOF
26736         $gmp_cv_asm_data
26737         .align  4
26738         $gmp_cv_asm_globl       foo
26739         $gmp_cv_asm_byte        1
26740         .align  4
26741 foo$gmp_cv_asm_label_suffix
26742         $gmp_cv_asm_byte        2
26743 EOF
26744 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26746   (eval $gmp_assemble) 2>&5
26747   ac_status=$?
26748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26749   test $ac_status = 0; }; then
26750   cat conftest.out >&5
26751   gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
26752      sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
26753   if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
26754     gmp_cv_asm_align_log=yes
26755   else
26756     gmp_cv_asm_align_log=no
26757   fi
26758 else
26759   cat conftest.out >&5
26760   echo "configure: failed program was:" >&5
26761   cat conftest.s >&5
26762   as_fn_error "cannot assemble alignment test" "$LINENO" 5
26763 fi
26764 rm -f conftest*
26765
26766 fi
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
26768 $as_echo "$gmp_cv_asm_align_log" >&6; }
26769
26770
26771 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
26772
26773
26774
26775   case $host in
26776     hppa*-*-*)
26777       # for both pa32 and pa64
26778
26779 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
26780
26781       ;;
26782     ia64*-*-* | itanium-*-* | itanium2-*-*)
26783       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
26784 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
26785 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then :
26786   $as_echo_n "(cached) " >&6
26787 else
26788   cat >conftest.awk <<\EOF
26789 BEGIN {
26790   want[0]  = "011"
26791   want[1]  = "160"
26792   want[2]  = "074"
26793   want[3]  = "040"
26794   want[4]  = "000"
26795   want[5]  = "040"
26796   want[6]  = "020"
26797   want[7]  = "221"
26798   want[8]  = "114"
26799   want[9]  = "000"
26800   want[10] = "100"
26801   want[11] = "200"
26802   want[12] = "122"
26803   want[13] = "261"
26804   want[14] = "000"
26805   want[15] = "200"
26806
26807   want[16] = "000"
26808   want[17] = "004"
26809   want[18] = "000"
26810   want[19] = "000"
26811   want[20] = "000"
26812   want[21] = "000"
26813   want[22] = "002"
26814   want[23] = "000"
26815   want[24] = "000"
26816   want[25] = "000"
26817   want[26] = "000"
26818   want[27] = "001"
26819   want[28] = "000"
26820   want[29] = "000"
26821   want[30] = "000"
26822   want[31] = "014"
26823
26824   want[32] = "011"
26825   want[33] = "270"
26826   want[34] = "140"
26827   want[35] = "062"
26828   want[36] = "000"
26829   want[37] = "040"
26830   want[38] = "240"
26831   want[39] = "331"
26832   want[40] = "160"
26833   want[41] = "000"
26834   want[42] = "100"
26835   want[43] = "240"
26836   want[44] = "343"
26837   want[45] = "371"
26838   want[46] = "000"
26839   want[47] = "200"
26840
26841   result = "yes"
26842 }
26843 {
26844   for (f = 2; f <= NF; f++)
26845     {
26846       for (i = 0; i < 47; i++)
26847         got[i] = got[i+1];
26848       got[47] = $f;
26849
26850       found = 1
26851       for (i = 0; i < 48; i++)
26852         if (got[i] != want[i])
26853           {
26854             found = 0
26855             break
26856           }
26857       if (found)
26858         {
26859           result = "no"
26860           exit
26861         }
26862     }
26863 }
26864 END {
26865   print result
26866 }
26867 EOF
26868 cat >conftest.s <<EOF
26869         .text
26870         .align  32
26871 { .mmi; add     r14 = r15, r16
26872         add     r17 = r18, r19
26873         add     r20 = r21, r22 ;; }
26874         .align  32
26875 { .mmi; add     r23 = r24, r25
26876         add     r26 = r27, r28
26877         add     r29 = r30, r31 ;; }
26878
26879 EOF
26880 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26882   (eval $gmp_assemble) 2>&5
26883   ac_status=$?
26884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885   test $ac_status = 0; }; then
26886   cat conftest.out >&5
26887   gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26888 else
26889   cat conftest.out >&5
26890   echo "configure: failed program was:" >&5
26891   cat conftest.s >&5
26892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26893 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26894    gmp_cv_asm_ia64_align_ok=yes
26895 fi
26896 rm -f conftest*
26897
26898
26899 fi
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
26901 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
26902
26903 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
26904
26905
26906       ;;
26907     m68k-*-* | m68[0-9][0-9][0-9]-*-*)
26908
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
26910 $as_echo_n "checking assembler instruction and register style... " >&6; }
26911 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then :
26912   $as_echo_n "(cached) " >&6
26913 else
26914   for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
26915   cat >conftest.s <<EOF
26916         $gmp_cv_asm_text
26917         $i
26918 EOF
26919 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26921   (eval $gmp_assemble) 2>&5
26922   ac_status=$?
26923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924   test $ac_status = 0; }; then
26925   cat conftest.out >&5
26926   gmp_cv_asm_m68k_instruction=$i
26927     rm -f conftest*
26928     break
26929 else
26930   cat conftest.out >&5
26931   echo "configure: failed program was:" >&5
26932   cat conftest.s >&5
26933   :
26934 fi
26935 rm -f conftest*
26936
26937 done
26938 if test -z "$gmp_cv_asm_m68k_instruction"; then
26939   as_fn_error "cannot determine assembler instruction and register style" "$LINENO" 5
26940 fi
26941
26942 fi
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
26944 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
26945 case $gmp_cv_asm_m68k_instruction in
26946 "addl d0,d1")    want_dot_size=no;  want_register_percent=no  ;;
26947 "addl %d0,%d1")  want_dot_size=no;  want_register_percent=yes ;;
26948 "add.l d0,d1")   want_dot_size=yes; want_register_percent=no  ;;
26949 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
26950 *) as_fn_error "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
26951 esac
26952
26953 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
26954
26955
26956 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
26957
26958
26959
26960
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
26962 $as_echo_n "checking assembler addressing style... " >&6; }
26963 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then :
26964   $as_echo_n "(cached) " >&6
26965 else
26966   case $gmp_cv_asm_m68k_instruction in
26967 addl*)  movel=movel ;;
26968 add.l*) movel=move.l ;;
26969 *) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
26970 esac
26971 case $gmp_cv_asm_m68k_instruction in
26972 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
26973 *"d0,d1")   dreg=d0;  areg=a0  ;;
26974 *) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
26975 esac
26976 cat >conftest.s <<EOF
26977         $gmp_cv_asm_text
26978         $movel  $dreg, $areg@-
26979 EOF
26980 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26982   (eval $gmp_assemble) 2>&5
26983   ac_status=$?
26984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26985   test $ac_status = 0; }; then
26986   cat conftest.out >&5
26987   gmp_cv_asm_m68k_addressing=mit
26988 else
26989   cat conftest.out >&5
26990   echo "configure: failed program was:" >&5
26991   cat conftest.s >&5
26992   cat >conftest.s <<EOF
26993         $gmp_cv_asm_text
26994         $movel  $dreg, -($areg)
26995 EOF
26996 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26998   (eval $gmp_assemble) 2>&5
26999   ac_status=$?
27000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001   test $ac_status = 0; }; then
27002   cat conftest.out >&5
27003   gmp_cv_asm_m68k_addressing=motorola
27004 else
27005   cat conftest.out >&5
27006   echo "configure: failed program was:" >&5
27007   cat conftest.s >&5
27008   as_fn_error "cannot determine assembler addressing style" "$LINENO" 5
27009 fi
27010 rm -f conftest*
27011
27012 fi
27013 rm -f conftest*
27014
27015
27016 fi
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
27018 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
27019
27020 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
27021
27022
27023
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
27025 $as_echo_n "checking assembler shortest branches... " >&6; }
27026 if test "${gmp_cv_asm_m68k_branches+set}" = set; then :
27027   $as_echo_n "(cached) " >&6
27028 else
27029   for i in jra jbra bra; do
27030   cat >conftest.s <<EOF
27031         $gmp_cv_asm_text
27032 foo$gmp_cv_asm_label_suffix
27033         $i      foo
27034 EOF
27035 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27037   (eval $gmp_assemble) 2>&5
27038   ac_status=$?
27039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040   test $ac_status = 0; }; then
27041   cat conftest.out >&5
27042   gmp_cv_asm_m68k_branches=$i
27043   rm -f conftest*
27044   break
27045 else
27046   cat conftest.out >&5
27047   echo "configure: failed program was:" >&5
27048   cat conftest.s >&5
27049   :
27050 fi
27051 rm -f conftest*
27052
27053 done
27054 if test -z "$gmp_cv_asm_m68k_branches"; then
27055   as_fn_error "cannot determine assembler branching style" "$LINENO" 5
27056 fi
27057
27058 fi
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
27060 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
27061
27062 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
27063
27064
27065       ;;
27066     powerpc*-*-* | power[3-9]-*-*)
27067
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
27069 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
27070 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then :
27071   $as_echo_n "(cached) " >&6
27072 else
27073   gmp_cv_asm_powerpc_pic=yes
27074 cat >conftest.c <<EOF
27075 int foo;
27076 int *bar() { return &foo; }
27077 EOF
27078 echo "Test program:" >&5
27079 cat conftest.c >&5
27080 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27082   (eval $gmp_compile) 2>&5
27083   ac_status=$?
27084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27085   test $ac_status = 0; }; then
27086   echo "Compiler output:" >&5
27087   cat conftest.s >&5
27088   if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
27089     gmp_cv_asm_powerpc_pic=no
27090   fi
27091   if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
27092     gmp_cv_asm_powerpc_pic=no
27093   fi
27094 fi
27095 rm -f conftest*
27096
27097 fi
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
27099 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
27100
27101 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
27102
27103
27104
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
27106 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
27107 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then :
27108   $as_echo_n "(cached) " >&6
27109 else
27110   cat >conftest.s <<EOF
27111         $gmp_cv_asm_text
27112         mtctr   6
27113 EOF
27114 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27116   (eval $gmp_assemble) 2>&5
27117   ac_status=$?
27118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119   test $ac_status = 0; }; then
27120   cat conftest.out >&5
27121   gmp_cv_asm_powerpc_r_registers=no
27122 else
27123   cat conftest.out >&5
27124   echo "configure: failed program was:" >&5
27125   cat conftest.s >&5
27126   cat >conftest.s <<EOF
27127         $gmp_cv_asm_text
27128         mtctr   r6
27129 EOF
27130 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27132   (eval $gmp_assemble) 2>&5
27133   ac_status=$?
27134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27135   test $ac_status = 0; }; then
27136   cat conftest.out >&5
27137   gmp_cv_asm_powerpc_r_registers=yes
27138 else
27139   cat conftest.out >&5
27140   echo "configure: failed program was:" >&5
27141   cat conftest.s >&5
27142   as_fn_error "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
27143 fi
27144 rm -f conftest*
27145
27146 fi
27147 rm -f conftest*
27148
27149 fi
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
27151 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
27152
27153
27154 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
27155
27156
27157
27158 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
27159
27160       case $host in
27161         *-*-aix*)
27162           case $ABI in
27163             64 | aix64)
27164 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
27165  ;;
27166             *)
27167 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
27168  ;;
27169           esac
27170           ;;
27171         *-*-linux* | *-*-*bsd*)
27172           case $ABI in
27173             mode64)
27174 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
27175  ;;
27176             mode32 | 32)
27177 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
27178  ;;
27179           esac
27180           ;;
27181         *-*-darwin*)
27182           case $ABI in
27183             mode64)
27184 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
27185  ;;
27186             mode32 | 32)
27187 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
27188  ;;
27189           esac
27190           ;;
27191         *)
27192           # Assume unrecognized operating system is the powerpc eABI
27193
27194 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
27195
27196           ;;
27197       esac
27198       ;;
27199     power*-*-aix*)
27200
27201 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
27202
27203       ;;
27204     sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
27205       case $ABI in
27206         64)
27207
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
27209 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
27210 if test "${gmp_cv_asm_sparc_register+set}" = set; then :
27211   $as_echo_n "(cached) " >&6
27212 else
27213   cat >conftest.s <<EOF
27214         $gmp_cv_asm_text
27215         .register       %g2,#scratch
27216
27217 EOF
27218 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27220   (eval $gmp_assemble) 2>&5
27221   ac_status=$?
27222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223   test $ac_status = 0; }; then
27224   cat conftest.out >&5
27225   gmp_cv_asm_sparc_register=yes
27226 else
27227   cat conftest.out >&5
27228   echo "configure: failed program was:" >&5
27229   cat conftest.s >&5
27230   gmp_cv_asm_sparc_register=no
27231 fi
27232 rm -f conftest*
27233
27234 fi
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
27236 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
27237
27238
27239 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
27240
27241
27242           ;;
27243       esac
27244       ;;
27245     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
27246
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
27248 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
27249 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then :
27250   $as_echo_n "(cached) " >&6
27251 else
27252   cat >conftest.s <<EOF
27253         $gmp_cv_asm_text
27254         .align  4, 0x90
27255         .byte   0
27256         .align  4, 0x90
27257 EOF
27258 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27260   (eval $gmp_assemble) 2>&5
27261   ac_status=$?
27262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27263   test $ac_status = 0; }; then
27264   cat conftest.out >&5
27265   if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
27266   echo "Supressing this warning by omitting 0x90" 1>&5
27267   gmp_cv_asm_align_fill_0x90=no
27268 else
27269   gmp_cv_asm_align_fill_0x90=yes
27270 fi
27271 else
27272   cat conftest.out >&5
27273   echo "configure: failed program was:" >&5
27274   cat conftest.s >&5
27275   gmp_cv_asm_align_fill_0x90=no
27276 fi
27277 rm -f conftest*
27278
27279 fi
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
27281 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
27282
27283
27284 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
27285
27286
27287       case $ABI in
27288         32)
27289
27290 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
27291
27292           $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
27293
27294
27295
27296
27297
27298
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
27300 $as_echo_n "checking for assembler COFF type directives... " >&6; }
27301 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then :
27302   $as_echo_n "(cached) " >&6
27303 else
27304   cat >conftest.s <<EOF
27305         $gmp_cv_asm_text
27306         $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
27307         .def    ${tmp_gsym_prefix}foo
27308         .scl    2
27309         .type   32
27310         .endef
27311 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
27312
27313 EOF
27314 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27316   (eval $gmp_assemble) 2>&5
27317   ac_status=$?
27318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27319   test $ac_status = 0; }; then
27320   cat conftest.out >&5
27321   gmp_cv_asm_x86_coff_type=yes
27322 else
27323   cat conftest.out >&5
27324   echo "configure: failed program was:" >&5
27325   cat conftest.s >&5
27326   gmp_cv_asm_x86_coff_type=no
27327 fi
27328 rm -f conftest*
27329
27330
27331 fi
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
27333 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
27334 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
27335
27336
27337
27338
27339
27340
27341
27342
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
27344 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
27345 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then :
27346   $as_echo_n "(cached) " >&6
27347 else
27348   gmp_cv_asm_x86_got_underscore="not applicable"
27349 if test $gmp_cv_asm_underscore = yes; then
27350   tmp_gsym_prefix=_
27351 else
27352   tmp_gsym_prefix=
27353 fi
27354 for tmp_underscore in "" "_"; do
27355   cat >conftest.s <<EOF
27356         $gmp_cv_asm_text
27357         $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
27358 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
27359         addl    $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
27360 EOF
27361   gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
27362   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27363   (eval $gmp_compile) 2>&5
27364   ac_status=$?
27365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366   test $ac_status = 0; }; then
27367     if test "$tmp_underscore" = "_"; then
27368       gmp_cv_asm_x86_got_underscore=yes
27369     else
27370       gmp_cv_asm_x86_got_underscore=no
27371     fi
27372     break
27373   fi
27374 done
27375 rm -f conftest* a.out b.out a.exe a_out.exe
27376
27377 fi
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
27379 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
27380 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
27381
27382 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27383
27384 else
27385
27386 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27387
27388 fi
27389
27390
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
27392 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
27393 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then :
27394   $as_echo_n "(cached) " >&6
27395 else
27396   cat >conftest.s <<EOF
27397         $gmp_cv_asm_text
27398         shldl   %cl, %eax, %ebx
27399 EOF
27400 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27402   (eval $gmp_assemble) 2>&5
27403   ac_status=$?
27404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27405   test $ac_status = 0; }; then
27406   cat conftest.out >&5
27407   gmp_cv_asm_x86_shldl_cl=yes
27408 else
27409   cat conftest.out >&5
27410   echo "configure: failed program was:" >&5
27411   cat conftest.s >&5
27412   gmp_cv_asm_x86_shldl_cl=no
27413 fi
27414 rm -f conftest*
27415
27416
27417 fi
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
27419 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
27420 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
27421
27422 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
27423
27424 else
27425
27426 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
27427
27428 fi
27429
27430           case $enable_profiling in
27431             prof | gprof)  # Check whether --enable-shared was given.
27432 if test "${enable_shared+set}" = set; then :
27433   enableval=$enable_shared; p=${PACKAGE-default}
27434     case $enableval in
27435     yes) enable_shared=yes ;;
27436     no) enable_shared=no ;;
27437     *)
27438       enable_shared=no
27439       # Look at the argument we got.  We use all the common list separators.
27440       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
27441       for pkg in $enableval; do
27442         IFS="$lt_save_ifs"
27443         if test "X$pkg" = "X$p"; then
27444           enable_shared=yes
27445         fi
27446       done
27447       IFS="$lt_save_ifs"
27448       ;;
27449     esac
27450 else
27451   enable_shared=yes
27452 fi
27453
27454
27455
27456
27457
27458
27459
27460
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
27462 $as_echo_n "checking how to call x86 mcount... " >&6; }
27463 cat >conftest.c <<EOF
27464 foo(){bar();}
27465 EOF
27466
27467 if test "$enable_static" = yes; then
27468   gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
27469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
27470   (eval $gmp_asmout_compile) 2>&5
27471   ac_status=$?
27472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473   test $ac_status = 0; }; then
27474     if grep '\.data' conftest.s >/dev/null; then
27475       mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27476     else
27477       mcount_nonpic_reg=
27478     fi
27479     mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
27480     if test -z "$mcount_nonpic_call"; then
27481       as_fn_error "Cannot find mcount call for non-PIC" "$LINENO" 5
27482     fi
27483   else
27484     as_fn_error "Cannot compile test program for non-PIC" "$LINENO" 5
27485   fi
27486 fi
27487
27488 if test "$enable_shared" = yes; then
27489   gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
27490   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
27491   (eval $gmp_asmout_compile) 2>&5
27492   ac_status=$?
27493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27494   test $ac_status = 0; }; then
27495     if grep '\.data' conftest.s >/dev/null; then
27496       case $lt_prog_compiler_pic in
27497         *-DDLL_EXPORT*)
27498           # Windows DLLs have non-PIC style mcount
27499           mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27500           ;;
27501         *)
27502           mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27503           ;;
27504       esac
27505     else
27506       mcount_pic_reg=
27507     fi
27508     mcount_pic_call=`grep 'call.*mcount' conftest.s`
27509     if test -z "$mcount_pic_call"; then
27510       as_fn_error "Cannot find mcount call for PIC" "$LINENO" 5
27511     fi
27512   else
27513     as_fn_error "Cannot compile test program for PIC" "$LINENO" 5
27514   fi
27515 fi
27516
27517
27518 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
27519
27520
27521 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
27522
27523
27524 echo "define(<MCOUNT_PIC_REG>,    <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
27525
27526
27527 echo "define(<MCOUNT_PIC_CALL>,   <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
27528
27529
27530 rm -f conftest.*
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
27532 $as_echo "determined" >&6; }
27533  ;;
27534           esac
27535           case $host in
27536             *-*-darwin*)
27537
27538 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
27539  ;;
27540           esac
27541           ;;
27542         64)
27543
27544 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
27545
27546           $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
27547
27548           case $host in
27549             *-*-darwin*)
27550
27551 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
27552  ;;
27553           esac
27554           ;;
27555       esac
27556       ;;
27557   esac
27558 fi
27559
27560 # For --enable-minithres, prepend "minithres" to path so that its special
27561 # gmp-mparam.h will be used.
27562 if test $enable_minithres = yes; then
27563   path="minithres $path"
27564 fi
27565
27566 # Create link for gmp-mparam.h.
27567 gmp_mparam_source=
27568 for gmp_mparam_dir in $path; do
27569   test "$no_create" = yes || rm -f gmp-mparam.h
27570   tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
27571   if test -f $tmp_file; then
27572     ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
27573
27574     gmp_srclinks="$gmp_srclinks gmp-mparam.h"
27575     gmp_mparam_source=$tmp_file
27576     break
27577   fi
27578 done
27579 if test -z "$gmp_mparam_source"; then
27580   as_fn_error "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
27581 fi
27582
27583 # For a helpful message from tune/tuneup.c
27584 gmp_mparam_suggest=$gmp_mparam_source
27585 if test "$gmp_mparam_dir" = generic; then
27586   for i in $path; do break; done
27587   if test "$i" != generic; then
27588     gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
27589   fi
27590 fi
27591
27592 cat >>confdefs.h <<_ACEOF
27593 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
27594 _ACEOF
27595
27596
27597
27598 # Copy any SQR_TOOM2_THRESHOLD from gmp-mparam.h to config.m4.
27599 # Some versions of sqr_basecase.asm use this.
27600 # Fat binaries do this on a per-file basis, so skip in that case.
27601 #
27602 if test -z "$fat_path"; then
27603   tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_TOOM2_THRESHOLD[      ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
27604   if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
27605
27606 echo "define(<SQR_TOOM2_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
27607
27608   fi
27609 fi
27610
27611
27612 # Sizes of some types, needed at preprocessing time.
27613 #
27614 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
27615 # be slightly rash, but it's true everywhere we know of and ought to be true
27616 # of any sensible system.  In a generic C build, grepping LONG_BIT out of
27617 # <limits.h> might be an alternative, for maximum portability.
27618 #
27619 # The cast to long int works around a bug in the HP C Compiler
27620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27622 # This bug is HP SR number 8606223364.
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
27624 $as_echo_n "checking size of void *... " >&6; }
27625 if test "${ac_cv_sizeof_void_p+set}" = set; then :
27626   $as_echo_n "(cached) " >&6
27627 else
27628   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
27629
27630 else
27631   if test "$ac_cv_type_void_p" = yes; then
27632      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27634 { as_fn_set_status 77
27635 as_fn_error "cannot compute sizeof (void *)
27636 See \`config.log' for more details." "$LINENO" 5; }; }
27637    else
27638      ac_cv_sizeof_void_p=0
27639    fi
27640 fi
27641
27642 fi
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
27644 $as_echo "$ac_cv_sizeof_void_p" >&6; }
27645
27646
27647
27648 cat >>confdefs.h <<_ACEOF
27649 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
27650 _ACEOF
27651
27652
27653 # The cast to long int works around a bug in the HP C Compiler
27654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27656 # This bug is HP SR number 8606223364.
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
27658 $as_echo_n "checking size of unsigned short... " >&6; }
27659 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
27660   $as_echo_n "(cached) " >&6
27661 else
27662   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
27663
27664 else
27665   if test "$ac_cv_type_unsigned_short" = yes; then
27666      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27668 { as_fn_set_status 77
27669 as_fn_error "cannot compute sizeof (unsigned short)
27670 See \`config.log' for more details." "$LINENO" 5; }; }
27671    else
27672      ac_cv_sizeof_unsigned_short=0
27673    fi
27674 fi
27675
27676 fi
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
27678 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
27679
27680
27681
27682 cat >>confdefs.h <<_ACEOF
27683 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
27684 _ACEOF
27685
27686
27687 # The cast to long int works around a bug in the HP C Compiler
27688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27690 # This bug is HP SR number 8606223364.
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
27692 $as_echo_n "checking size of unsigned... " >&6; }
27693 if test "${ac_cv_sizeof_unsigned+set}" = set; then :
27694   $as_echo_n "(cached) " >&6
27695 else
27696   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
27697
27698 else
27699   if test "$ac_cv_type_unsigned" = yes; then
27700      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27702 { as_fn_set_status 77
27703 as_fn_error "cannot compute sizeof (unsigned)
27704 See \`config.log' for more details." "$LINENO" 5; }; }
27705    else
27706      ac_cv_sizeof_unsigned=0
27707    fi
27708 fi
27709
27710 fi
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
27712 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
27713
27714
27715
27716 cat >>confdefs.h <<_ACEOF
27717 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
27718 _ACEOF
27719
27720
27721 # The cast to long int works around a bug in the HP C Compiler
27722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27724 # This bug is HP SR number 8606223364.
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27726 $as_echo_n "checking size of unsigned long... " >&6; }
27727 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
27728   $as_echo_n "(cached) " >&6
27729 else
27730   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
27731
27732 else
27733   if test "$ac_cv_type_unsigned_long" = yes; then
27734      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27736 { as_fn_set_status 77
27737 as_fn_error "cannot compute sizeof (unsigned long)
27738 See \`config.log' for more details." "$LINENO" 5; }; }
27739    else
27740      ac_cv_sizeof_unsigned_long=0
27741    fi
27742 fi
27743
27744 fi
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27746 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27747
27748
27749
27750 cat >>confdefs.h <<_ACEOF
27751 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27752 _ACEOF
27753
27754
27755 # The cast to long int works around a bug in the HP C Compiler
27756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27758 # This bug is HP SR number 8606223364.
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
27760 $as_echo_n "checking size of mp_limb_t... " >&6; }
27761 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
27762   $as_echo_n "(cached) " >&6
27763 else
27764   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t"        "#define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
27765 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27766 #define GMP_LIMB_BITS 123
27767 $DEFN_LONG_LONG_LIMB
27768 #include \"$srcdir/gmp-h.in\"
27769
27770 "; then :
27771
27772 else
27773   if test "$ac_cv_type_mp_limb_t" = yes; then
27774      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27776 { as_fn_set_status 77
27777 as_fn_error "cannot compute sizeof (mp_limb_t)
27778 See \`config.log' for more details." "$LINENO" 5; }; }
27779    else
27780      ac_cv_sizeof_mp_limb_t=0
27781    fi
27782 fi
27783
27784 fi
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
27786 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
27787
27788
27789
27790 cat >>confdefs.h <<_ACEOF
27791 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
27792 _ACEOF
27793
27794
27795 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
27796   as_fn_error "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
27797 fi
27798 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
27799
27800
27801 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
27802
27803
27804 # Check compiler limb size matches gmp-mparam.h
27805 #
27806 # FIXME: Some of the cycle counter objects in the tune directory depend on
27807 # the size of ulong, it'd be possible to check that here, though a mismatch
27808 # probably wouldn't want to be fatal, none of the libgmp assembler code
27809 # depends on ulong.
27810 #
27811 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[  ][      ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
27812 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
27813   if test "$test_CFLAGS" = set; then
27814     as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
27815 in this configuration expects $mparam_bits bits.
27816 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
27817 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
27818   else
27819     as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
27820 in this configuration expects $mparam_bits bits." "$LINENO" 5
27821   fi
27822 fi
27823
27824
27825 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
27826
27827
27828 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
27829
27830
27831 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
27832
27833
27834
27835 # Exclude the mpn random functions from mpbsd since that would drag in the
27836 # top-level rand things, all of which are unnecessary for libmp.  There's
27837 # other unnecessary objects too actually, if we could be bothered figuring
27838 # out exactly which they are.
27839 #
27840 mpn_objs_in_libmp=
27841 for i in $mpn_objs_in_libgmp; do
27842   case $i in
27843   *random*) ;;
27844   *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
27845   esac
27846 done
27847
27848
27849
27850
27851
27852
27853
27854 # A recompiled sqr_basecase for use in the tune program, if necessary.
27855 TUNE_SQR_OBJ=
27856 test -d tune || mkdir tune
27857 case $sqr_basecase_source in
27858   *.asm)
27859     sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
27860     if test -n "$sqr_max"; then
27861       TUNE_SQR_OBJ=sqr_asm.o
27862
27863 cat >>confdefs.h <<_ACEOF
27864 #define TUNE_SQR_TOOM2_MAX $sqr_max
27865 _ACEOF
27866
27867     fi
27868     cat >tune/sqr_basecase.c <<EOF
27869 /* not sure that an empty file can compile, so put in a dummy */
27870 int sqr_basecase_dummy;
27871 EOF
27872     ;;
27873   *.c)
27874     TUNE_SQR_OBJ=
27875     $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
27876
27877     cat >tune/sqr_basecase.c <<EOF
27878 #define TUNE_PROGRAM_BUILD 1
27879 #define TUNE_PROGRAM_BUILD_SQR 1
27880 #include "mpn/sqr_basecase.c"
27881 EOF
27882     ;;
27883 esac
27884
27885
27886
27887 # Configs for demos/pexpr.c.
27888 #
27889 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
27890
27891 case $ac_cv_func_clock in
27892 yes) HAVE_CLOCK_01=1
27893  ;;
27894 no)  HAVE_CLOCK_01=0 ;;
27895 esac
27896
27897 case $ac_cv_func_cputime in
27898 yes) HAVE_CPUTIME_01=1
27899  ;;
27900 no)  HAVE_CPUTIME_01=0 ;;
27901 esac
27902
27903 case $ac_cv_func_getrusage in
27904 yes) HAVE_GETRUSAGE_01=1
27905  ;;
27906 no)  HAVE_GETRUSAGE_01=0 ;;
27907 esac
27908
27909 case $ac_cv_func_gettimeofday in
27910 yes) HAVE_GETTIMEOFDAY_01=1
27911  ;;
27912 no)  HAVE_GETTIMEOFDAY_01=0 ;;
27913 esac
27914
27915 case $ac_cv_func_sigaction in
27916 yes) HAVE_SIGACTION_01=1
27917  ;;
27918 no)  HAVE_SIGACTION_01=0 ;;
27919 esac
27920
27921 case $ac_cv_func_sigaltstack in
27922 yes) HAVE_SIGALTSTACK_01=1
27923  ;;
27924 no)  HAVE_SIGALTSTACK_01=0 ;;
27925 esac
27926
27927 case $ac_cv_func_sigstack in
27928 yes) HAVE_SIGSTACK_01=1
27929  ;;
27930 no)  HAVE_SIGSTACK_01=0 ;;
27931 esac
27932
27933
27934 case $ac_cv_header_sys_resource_h in
27935 yes) HAVE_SYS_RESOURCE_H_01=1
27936  ;;
27937 no)  HAVE_SYS_RESOURCE_H_01=0 ;;
27938 esac
27939
27940
27941 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
27942 "
27943 if test "x$ac_cv_type_stack_t" = x""yes; then :
27944
27945 cat >>confdefs.h <<_ACEOF
27946 #define HAVE_STACK_T 1
27947 _ACEOF
27948
27949 HAVE_STACK_T_01=1
27950 else
27951   HAVE_STACK_T_01=0
27952 fi
27953
27954
27955
27956 # Configs for demos/calc directory
27957 #
27958 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
27959 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
27960 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
27961 # which would look very strange.
27962 #
27963 # -lcurses is required by libreadline.  On a typical SVR4 style system this
27964 # normally doesn't have to be given explicitly, since libreadline.so will
27965 # have a NEEDED record for it.  But if someone for some reason is using only
27966 # a static libreadline.a then we must give -lcurses.  Readline (as of
27967 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
27968 # necessary dependencies.
27969 #
27970 # On a couple of systems we've seen libreadline available, but the headers
27971 # not in the default include path, so check for readline/readline.h.  We've
27972 # also seen readline/history.h missing, not sure if that's just a broken
27973 # install or a very old version, but check that too.
27974 #
27975 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
27976
27977 LIBCURSES=
27978 if test $with_readline != no; then
27979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
27980 $as_echo_n "checking for tputs in -lncurses... " >&6; }
27981 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then :
27982   $as_echo_n "(cached) " >&6
27983 else
27984   ac_check_lib_save_LIBS=$LIBS
27985 LIBS="-lncurses  $LIBS"
27986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27987 /* end confdefs.h.  */
27988
27989 /* Override any GCC internal prototype to avoid an error.
27990    Use char because int might match the return type of a GCC
27991    builtin and then its argument prototype would still apply.  */
27992 #ifdef __cplusplus
27993 extern "C"
27994 #endif
27995 char tputs ();
27996 int
27997 main ()
27998 {
27999 return tputs ();
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 if ac_fn_c_try_link "$LINENO"; then :
28005   ac_cv_lib_ncurses_tputs=yes
28006 else
28007   ac_cv_lib_ncurses_tputs=no
28008 fi
28009 rm -f core conftest.err conftest.$ac_objext \
28010     conftest$ac_exeext conftest.$ac_ext
28011 LIBS=$ac_check_lib_save_LIBS
28012 fi
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
28014 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
28015 if test "x$ac_cv_lib_ncurses_tputs" = x""yes; then :
28016   LIBCURSES=-lncurses
28017 else
28018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
28019 $as_echo_n "checking for tputs in -lcurses... " >&6; }
28020 if test "${ac_cv_lib_curses_tputs+set}" = set; then :
28021   $as_echo_n "(cached) " >&6
28022 else
28023   ac_check_lib_save_LIBS=$LIBS
28024 LIBS="-lcurses  $LIBS"
28025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28026 /* end confdefs.h.  */
28027
28028 /* Override any GCC internal prototype to avoid an error.
28029    Use char because int might match the return type of a GCC
28030    builtin and then its argument prototype would still apply.  */
28031 #ifdef __cplusplus
28032 extern "C"
28033 #endif
28034 char tputs ();
28035 int
28036 main ()
28037 {
28038 return tputs ();
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 if ac_fn_c_try_link "$LINENO"; then :
28044   ac_cv_lib_curses_tputs=yes
28045 else
28046   ac_cv_lib_curses_tputs=no
28047 fi
28048 rm -f core conftest.err conftest.$ac_objext \
28049     conftest$ac_exeext conftest.$ac_ext
28050 LIBS=$ac_check_lib_save_LIBS
28051 fi
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
28053 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
28054 if test "x$ac_cv_lib_curses_tputs" = x""yes; then :
28055   LIBCURSES=-lcurses
28056 fi
28057
28058 fi
28059
28060 fi
28061
28062 use_readline=$with_readline
28063 if test $with_readline = detect; then
28064   use_readline=no
28065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
28066 $as_echo_n "checking for readline in -lreadline... " >&6; }
28067 if test "${ac_cv_lib_readline_readline+set}" = set; then :
28068   $as_echo_n "(cached) " >&6
28069 else
28070   ac_check_lib_save_LIBS=$LIBS
28071 LIBS="-lreadline $LIBCURSES $LIBS"
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h.  */
28074
28075 /* Override any GCC internal prototype to avoid an error.
28076    Use char because int might match the return type of a GCC
28077    builtin and then its argument prototype would still apply.  */
28078 #ifdef __cplusplus
28079 extern "C"
28080 #endif
28081 char readline ();
28082 int
28083 main ()
28084 {
28085 return readline ();
28086   ;
28087   return 0;
28088 }
28089 _ACEOF
28090 if ac_fn_c_try_link "$LINENO"; then :
28091   ac_cv_lib_readline_readline=yes
28092 else
28093   ac_cv_lib_readline_readline=no
28094 fi
28095 rm -f core conftest.err conftest.$ac_objext \
28096     conftest$ac_exeext conftest.$ac_ext
28097 LIBS=$ac_check_lib_save_LIBS
28098 fi
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
28100 $as_echo "$ac_cv_lib_readline_readline" >&6; }
28101 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
28102   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
28103 if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
28104   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
28105 if test "x$ac_cv_header_readline_history_h" = x""yes; then :
28106   use_readline=yes
28107 fi
28108
28109
28110 fi
28111
28112
28113 fi
28114
28115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
28116 $as_echo_n "checking readline detected... " >&6; }
28117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
28118 $as_echo "$use_readline" >&6; }
28119 fi
28120 if test $use_readline = yes; then
28121   WITH_READLINE_01=1
28122
28123   LIBREADLINE=-lreadline
28124
28125 else
28126   WITH_READLINE_01=0
28127 fi
28128 for ac_prog in 'bison -y' byacc
28129 do
28130   # Extract the first word of "$ac_prog", so it can be a program name with args.
28131 set dummy $ac_prog; ac_word=$2
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28133 $as_echo_n "checking for $ac_word... " >&6; }
28134 if test "${ac_cv_prog_YACC+set}" = set; then :
28135   $as_echo_n "(cached) " >&6
28136 else
28137   if test -n "$YACC"; then
28138   ac_cv_prog_YACC="$YACC" # Let the user override the test.
28139 else
28140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28141 for as_dir in $PATH
28142 do
28143   IFS=$as_save_IFS
28144   test -z "$as_dir" && as_dir=.
28145     for ac_exec_ext in '' $ac_executable_extensions; do
28146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28147     ac_cv_prog_YACC="$ac_prog"
28148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28149     break 2
28150   fi
28151 done
28152   done
28153 IFS=$as_save_IFS
28154
28155 fi
28156 fi
28157 YACC=$ac_cv_prog_YACC
28158 if test -n "$YACC"; then
28159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
28160 $as_echo "$YACC" >&6; }
28161 else
28162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28163 $as_echo "no" >&6; }
28164 fi
28165
28166
28167   test -n "$YACC" && break
28168 done
28169 test -n "$YACC" || YACC="yacc"
28170
28171 for ac_prog in flex lex
28172 do
28173   # Extract the first word of "$ac_prog", so it can be a program name with args.
28174 set dummy $ac_prog; ac_word=$2
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28176 $as_echo_n "checking for $ac_word... " >&6; }
28177 if test "${ac_cv_prog_LEX+set}" = set; then :
28178   $as_echo_n "(cached) " >&6
28179 else
28180   if test -n "$LEX"; then
28181   ac_cv_prog_LEX="$LEX" # Let the user override the test.
28182 else
28183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28184 for as_dir in $PATH
28185 do
28186   IFS=$as_save_IFS
28187   test -z "$as_dir" && as_dir=.
28188     for ac_exec_ext in '' $ac_executable_extensions; do
28189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28190     ac_cv_prog_LEX="$ac_prog"
28191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28192     break 2
28193   fi
28194 done
28195   done
28196 IFS=$as_save_IFS
28197
28198 fi
28199 fi
28200 LEX=$ac_cv_prog_LEX
28201 if test -n "$LEX"; then
28202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
28203 $as_echo "$LEX" >&6; }
28204 else
28205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28206 $as_echo "no" >&6; }
28207 fi
28208
28209
28210   test -n "$LEX" && break
28211 done
28212 test -n "$LEX" || LEX=":"
28213
28214 if test "x$LEX" != "x:"; then
28215   cat >conftest.l <<_ACEOF
28216 %%
28217 a { ECHO; }
28218 b { REJECT; }
28219 c { yymore (); }
28220 d { yyless (1); }
28221 e { yyless (input () != 0); }
28222 f { unput (yytext[0]); }
28223 . { BEGIN INITIAL; }
28224 %%
28225 #ifdef YYTEXT_POINTER
28226 extern char *yytext;
28227 #endif
28228 int
28229 main (void)
28230 {
28231   return ! yylex () + ! yywrap ();
28232 }
28233 _ACEOF
28234 { { ac_try="$LEX conftest.l"
28235 case "(($ac_try" in
28236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237   *) ac_try_echo=$ac_try;;
28238 esac
28239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28240 $as_echo "$ac_try_echo"; } >&5
28241   (eval "$LEX conftest.l") 2>&5
28242   ac_status=$?
28243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244   test $ac_status = 0; }
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
28246 $as_echo_n "checking lex output file root... " >&6; }
28247 if test "${ac_cv_prog_lex_root+set}" = set; then :
28248   $as_echo_n "(cached) " >&6
28249 else
28250
28251 if test -f lex.yy.c; then
28252   ac_cv_prog_lex_root=lex.yy
28253 elif test -f lexyy.c; then
28254   ac_cv_prog_lex_root=lexyy
28255 else
28256   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
28257 fi
28258 fi
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
28260 $as_echo "$ac_cv_prog_lex_root" >&6; }
28261 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
28262
28263 if test -z "${LEXLIB+set}"; then
28264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
28265 $as_echo_n "checking lex library... " >&6; }
28266 if test "${ac_cv_lib_lex+set}" = set; then :
28267   $as_echo_n "(cached) " >&6
28268 else
28269
28270     ac_save_LIBS=$LIBS
28271     ac_cv_lib_lex='none needed'
28272     for ac_lib in '' -lfl -ll; do
28273       LIBS="$ac_lib $ac_save_LIBS"
28274       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28275 /* end confdefs.h.  */
28276 `cat $LEX_OUTPUT_ROOT.c`
28277 _ACEOF
28278 if ac_fn_c_try_link "$LINENO"; then :
28279   ac_cv_lib_lex=$ac_lib
28280 fi
28281 rm -f core conftest.err conftest.$ac_objext \
28282     conftest$ac_exeext conftest.$ac_ext
28283       test "$ac_cv_lib_lex" != 'none needed' && break
28284     done
28285     LIBS=$ac_save_LIBS
28286
28287 fi
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
28289 $as_echo "$ac_cv_lib_lex" >&6; }
28290   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
28291 fi
28292
28293
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
28295 $as_echo_n "checking whether yytext is a pointer... " >&6; }
28296 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
28297   $as_echo_n "(cached) " >&6
28298 else
28299   # POSIX says lex can declare yytext either as a pointer or an array; the
28300 # default is implementation-dependent.  Figure out which it is, since
28301 # not all implementations provide the %pointer and %array declarations.
28302 ac_cv_prog_lex_yytext_pointer=no
28303 ac_save_LIBS=$LIBS
28304 LIBS="$LEXLIB $ac_save_LIBS"
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h.  */
28307 #define YYTEXT_POINTER 1
28308 `cat $LEX_OUTPUT_ROOT.c`
28309 _ACEOF
28310 if ac_fn_c_try_link "$LINENO"; then :
28311   ac_cv_prog_lex_yytext_pointer=yes
28312 fi
28313 rm -f core conftest.err conftest.$ac_objext \
28314     conftest$ac_exeext conftest.$ac_ext
28315 LIBS=$ac_save_LIBS
28316
28317 fi
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
28319 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
28320 if test $ac_cv_prog_lex_yytext_pointer = yes; then
28321
28322 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
28323
28324 fi
28325 rm -f conftest.l $LEX_OUTPUT_ROOT.c
28326
28327 fi
28328 if test "$LEX" = :; then
28329   LEX=${am_missing_run}flex
28330 fi
28331
28332 # Configs for demos/expr directory
28333 #
28334 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
28335 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
28336 # called.  (Automake 1.8.4 doesn't, at least not when the only library is in
28337 # an EXTRA_LIBRARIES.)
28338 #
28339 if test -n "$ac_tool_prefix"; then
28340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
28341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28343 $as_echo_n "checking for $ac_word... " >&6; }
28344 if test "${ac_cv_prog_RANLIB+set}" = set; then :
28345   $as_echo_n "(cached) " >&6
28346 else
28347   if test -n "$RANLIB"; then
28348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
28349 else
28350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28351 for as_dir in $PATH
28352 do
28353   IFS=$as_save_IFS
28354   test -z "$as_dir" && as_dir=.
28355     for ac_exec_ext in '' $ac_executable_extensions; do
28356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
28358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28359     break 2
28360   fi
28361 done
28362   done
28363 IFS=$as_save_IFS
28364
28365 fi
28366 fi
28367 RANLIB=$ac_cv_prog_RANLIB
28368 if test -n "$RANLIB"; then
28369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
28370 $as_echo "$RANLIB" >&6; }
28371 else
28372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28374 fi
28375
28376
28377 fi
28378 if test -z "$ac_cv_prog_RANLIB"; then
28379   ac_ct_RANLIB=$RANLIB
28380   # Extract the first word of "ranlib", so it can be a program name with args.
28381 set dummy ranlib; ac_word=$2
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28383 $as_echo_n "checking for $ac_word... " >&6; }
28384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
28385   $as_echo_n "(cached) " >&6
28386 else
28387   if test -n "$ac_ct_RANLIB"; then
28388   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
28389 else
28390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28391 for as_dir in $PATH
28392 do
28393   IFS=$as_save_IFS
28394   test -z "$as_dir" && as_dir=.
28395     for ac_exec_ext in '' $ac_executable_extensions; do
28396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28397     ac_cv_prog_ac_ct_RANLIB="ranlib"
28398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28399     break 2
28400   fi
28401 done
28402   done
28403 IFS=$as_save_IFS
28404
28405 fi
28406 fi
28407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
28408 if test -n "$ac_ct_RANLIB"; then
28409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
28410 $as_echo "$ac_ct_RANLIB" >&6; }
28411 else
28412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28413 $as_echo "no" >&6; }
28414 fi
28415
28416   if test "x$ac_ct_RANLIB" = x; then
28417     RANLIB=":"
28418   else
28419     case $cross_compiling:$ac_tool_warned in
28420 yes:)
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28423 ac_tool_warned=yes ;;
28424 esac
28425     RANLIB=$ac_ct_RANLIB
28426   fi
28427 else
28428   RANLIB="$ac_cv_prog_RANLIB"
28429 fi
28430
28431
28432
28433 # Create config.m4.
28434
28435 echo "creating $gmp_configm4"
28436 echo "d""nl $gmp_configm4.  Generated automatically by configure." > $gmp_configm4
28437 if test -f $gmp_tmpconfigm4; then
28438   echo "changequote(<,>)" >> $gmp_configm4
28439   echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
28440   cat $gmp_tmpconfigm4 >> $gmp_configm4
28441   echo ">)" >> $gmp_configm4
28442   echo "changequote(\`,')" >> $gmp_configm4
28443   rm $gmp_tmpconfigm4
28444 fi
28445 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
28446 if test -f $gmp_tmpconfigm4i; then
28447   cat $gmp_tmpconfigm4i >> $gmp_configm4
28448   rm $gmp_tmpconfigm4i
28449 fi
28450 if test -f $gmp_tmpconfigm4p; then
28451   cat $gmp_tmpconfigm4p >> $gmp_configm4
28452   rm $gmp_tmpconfigm4p
28453 fi
28454 echo "')" >> $gmp_configm4
28455 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
28456
28457
28458 # Create Makefiles
28459 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
28460 #        Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
28461
28462 ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
28463
28464 cat >confcache <<\_ACEOF
28465 # This file is a shell script that caches the results of configure
28466 # tests run on this system so they can be shared between configure
28467 # scripts and configure runs, see configure's option --config-cache.
28468 # It is not useful on other systems.  If it contains results you don't
28469 # want to keep, you may remove or edit it.
28470 #
28471 # config.status only pays attention to the cache file if you give it
28472 # the --recheck option to rerun configure.
28473 #
28474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28476 # following values.
28477
28478 _ACEOF
28479
28480 # The following way of writing the cache mishandles newlines in values,
28481 # but we know of no workaround that is simple, portable, and efficient.
28482 # So, we kill variables containing newlines.
28483 # Ultrix sh set writes to stderr and can't be redirected directly,
28484 # and sets the high bit in the cache file unless we assign to the vars.
28485 (
28486   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28487     eval ac_val=\$$ac_var
28488     case $ac_val in #(
28489     *${as_nl}*)
28490       case $ac_var in #(
28491       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28493       esac
28494       case $ac_var in #(
28495       _ | IFS | as_nl) ;; #(
28496       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28497       *) { eval $ac_var=; unset $ac_var;} ;;
28498       esac ;;
28499     esac
28500   done
28501
28502   (set) 2>&1 |
28503     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28504     *${as_nl}ac_space=\ *)
28505       # `set' does not quote correctly, so add quotes: double-quote
28506       # substitution turns \\\\ into \\, and sed turns \\ into \.
28507       sed -n \
28508         "s/'/'\\\\''/g;
28509           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28510       ;; #(
28511     *)
28512       # `set' quotes correctly as required by POSIX, so do not add quotes.
28513       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28514       ;;
28515     esac |
28516     sort
28517 ) |
28518   sed '
28519      /^ac_cv_env_/b end
28520      t clear
28521      :clear
28522      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28523      t end
28524      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28525      :end' >>confcache
28526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28527   if test -w "$cache_file"; then
28528     test "x$cache_file" != "x/dev/null" &&
28529       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28530 $as_echo "$as_me: updating cache $cache_file" >&6;}
28531     cat confcache >$cache_file
28532   else
28533     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28535   fi
28536 fi
28537 rm -f confcache
28538
28539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28540 # Let make expand exec_prefix.
28541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28542
28543 DEFS=-DHAVE_CONFIG_H
28544
28545 ac_libobjs=
28546 ac_ltlibobjs=
28547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28548   # 1. Remove the extension, and $U if already installed.
28549   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28550   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28551   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28552   #    will be set to the directory where LIBOBJS objects are built.
28553   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28554   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28555 done
28556 LIBOBJS=$ac_libobjs
28557
28558 LTLIBOBJS=$ac_ltlibobjs
28559
28560
28561  if test -n "$EXEEXT"; then
28562   am__EXEEXT_TRUE=
28563   am__EXEEXT_FALSE='#'
28564 else
28565   am__EXEEXT_TRUE='#'
28566   am__EXEEXT_FALSE=
28567 fi
28568
28569 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28570   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
28571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28572 fi
28573 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
28574   as_fn_error "conditional \"WANT_MPBSD\" was never defined.
28575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28576 fi
28577 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
28578   as_fn_error "conditional \"WANT_CXX\" was never defined.
28579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28580 fi
28581 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
28582   as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
28583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28584 fi
28585
28586
28587 : ${CONFIG_STATUS=./config.status}
28588 ac_write_fail=0
28589 ac_clean_files_save=$ac_clean_files
28590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28592 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28593 as_write_fail=0
28594 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28595 #! $SHELL
28596 # Generated by $as_me.
28597 # Run this file to recreate the current configuration.
28598 # Compiler output produced by configure, useful for debugging
28599 # configure, is in config.log if it exists.
28600
28601 debug=false
28602 ac_cs_recheck=false
28603 ac_cs_silent=false
28604
28605 SHELL=\${CONFIG_SHELL-$SHELL}
28606 export SHELL
28607 _ASEOF
28608 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28609 ## -------------------- ##
28610 ## M4sh Initialization. ##
28611 ## -------------------- ##
28612
28613 # Be more Bourne compatible
28614 DUALCASE=1; export DUALCASE # for MKS sh
28615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28616   emulate sh
28617   NULLCMD=:
28618   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28619   # is contrary to our usage.  Disable this feature.
28620   alias -g '${1+"$@"}'='"$@"'
28621   setopt NO_GLOB_SUBST
28622 else
28623   case `(set -o) 2>/dev/null` in #(
28624   *posix*) :
28625     set -o posix ;; #(
28626   *) :
28627      ;;
28628 esac
28629 fi
28630
28631
28632 as_nl='
28633 '
28634 export as_nl
28635 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28636 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28639 # Prefer a ksh shell builtin over an external printf program on Solaris,
28640 # but without wasting forks for bash or zsh.
28641 if test -z "$BASH_VERSION$ZSH_VERSION" \
28642     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28643   as_echo='print -r --'
28644   as_echo_n='print -rn --'
28645 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28646   as_echo='printf %s\n'
28647   as_echo_n='printf %s'
28648 else
28649   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28650     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28651     as_echo_n='/usr/ucb/echo -n'
28652   else
28653     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28654     as_echo_n_body='eval
28655       arg=$1;
28656       case $arg in #(
28657       *"$as_nl"*)
28658         expr "X$arg" : "X\\(.*\\)$as_nl";
28659         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28660       esac;
28661       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28662     '
28663     export as_echo_n_body
28664     as_echo_n='sh -c $as_echo_n_body as_echo'
28665   fi
28666   export as_echo_body
28667   as_echo='sh -c $as_echo_body as_echo'
28668 fi
28669
28670 # The user is always right.
28671 if test "${PATH_SEPARATOR+set}" != set; then
28672   PATH_SEPARATOR=:
28673   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28674     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28675       PATH_SEPARATOR=';'
28676   }
28677 fi
28678
28679
28680 # IFS
28681 # We need space, tab and new line, in precisely that order.  Quoting is
28682 # there to prevent editors from complaining about space-tab.
28683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28684 # splitting by setting IFS to empty value.)
28685 IFS=" ""        $as_nl"
28686
28687 # Find who we are.  Look in the path if we contain no directory separator.
28688 case $0 in #((
28689   *[\\/]* ) as_myself=$0 ;;
28690   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28691 for as_dir in $PATH
28692 do
28693   IFS=$as_save_IFS
28694   test -z "$as_dir" && as_dir=.
28695     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28696   done
28697 IFS=$as_save_IFS
28698
28699      ;;
28700 esac
28701 # We did not find ourselves, most probably we were run as `sh COMMAND'
28702 # in which case we are not to be found in the path.
28703 if test "x$as_myself" = x; then
28704   as_myself=$0
28705 fi
28706 if test ! -f "$as_myself"; then
28707   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28708   exit 1
28709 fi
28710
28711 # Unset variables that we do not need and which cause bugs (e.g. in
28712 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28713 # suppresses any "Segmentation fault" message there.  '((' could
28714 # trigger a bug in pdksh 5.2.14.
28715 for as_var in BASH_ENV ENV MAIL MAILPATH
28716 do eval test x\${$as_var+set} = xset \
28717   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28718 done
28719 PS1='$ '
28720 PS2='> '
28721 PS4='+ '
28722
28723 # NLS nuisances.
28724 LC_ALL=C
28725 export LC_ALL
28726 LANGUAGE=C
28727 export LANGUAGE
28728
28729 # CDPATH.
28730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28731
28732
28733 # as_fn_error ERROR [LINENO LOG_FD]
28734 # ---------------------------------
28735 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28736 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28737 # script with status $?, using 1 if that was 0.
28738 as_fn_error ()
28739 {
28740   as_status=$?; test $as_status -eq 0 && as_status=1
28741   if test "$3"; then
28742     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28743     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28744   fi
28745   $as_echo "$as_me: error: $1" >&2
28746   as_fn_exit $as_status
28747 } # as_fn_error
28748
28749
28750 # as_fn_set_status STATUS
28751 # -----------------------
28752 # Set $? to STATUS, without forking.
28753 as_fn_set_status ()
28754 {
28755   return $1
28756 } # as_fn_set_status
28757
28758 # as_fn_exit STATUS
28759 # -----------------
28760 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28761 as_fn_exit ()
28762 {
28763   set +e
28764   as_fn_set_status $1
28765   exit $1
28766 } # as_fn_exit
28767
28768 # as_fn_unset VAR
28769 # ---------------
28770 # Portably unset VAR.
28771 as_fn_unset ()
28772 {
28773   { eval $1=; unset $1;}
28774 }
28775 as_unset=as_fn_unset
28776 # as_fn_append VAR VALUE
28777 # ----------------------
28778 # Append the text in VALUE to the end of the definition contained in VAR. Take
28779 # advantage of any shell optimizations that allow amortized linear growth over
28780 # repeated appends, instead of the typical quadratic growth present in naive
28781 # implementations.
28782 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28783   eval 'as_fn_append ()
28784   {
28785     eval $1+=\$2
28786   }'
28787 else
28788   as_fn_append ()
28789   {
28790     eval $1=\$$1\$2
28791   }
28792 fi # as_fn_append
28793
28794 # as_fn_arith ARG...
28795 # ------------------
28796 # Perform arithmetic evaluation on the ARGs, and store the result in the
28797 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28798 # must be portable across $(()) and expr.
28799 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28800   eval 'as_fn_arith ()
28801   {
28802     as_val=$(( $* ))
28803   }'
28804 else
28805   as_fn_arith ()
28806   {
28807     as_val=`expr "$@" || test $? -eq 1`
28808   }
28809 fi # as_fn_arith
28810
28811
28812 if expr a : '\(a\)' >/dev/null 2>&1 &&
28813    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28814   as_expr=expr
28815 else
28816   as_expr=false
28817 fi
28818
28819 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28820   as_basename=basename
28821 else
28822   as_basename=false
28823 fi
28824
28825 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28826   as_dirname=dirname
28827 else
28828   as_dirname=false
28829 fi
28830
28831 as_me=`$as_basename -- "$0" ||
28832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28833          X"$0" : 'X\(//\)$' \| \
28834          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28835 $as_echo X/"$0" |
28836     sed '/^.*\/\([^/][^/]*\)\/*$/{
28837             s//\1/
28838             q
28839           }
28840           /^X\/\(\/\/\)$/{
28841             s//\1/
28842             q
28843           }
28844           /^X\/\(\/\).*/{
28845             s//\1/
28846             q
28847           }
28848           s/.*/./; q'`
28849
28850 # Avoid depending upon Character Ranges.
28851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28854 as_cr_digits='0123456789'
28855 as_cr_alnum=$as_cr_Letters$as_cr_digits
28856
28857 ECHO_C= ECHO_N= ECHO_T=
28858 case `echo -n x` in #(((((
28859 -n*)
28860   case `echo 'xy\c'` in
28861   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28862   xy)  ECHO_C='\c';;
28863   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28864        ECHO_T=' ';;
28865   esac;;
28866 *)
28867   ECHO_N='-n';;
28868 esac
28869
28870 rm -f conf$$ conf$$.exe conf$$.file
28871 if test -d conf$$.dir; then
28872   rm -f conf$$.dir/conf$$.file
28873 else
28874   rm -f conf$$.dir
28875   mkdir conf$$.dir 2>/dev/null
28876 fi
28877 if (echo >conf$$.file) 2>/dev/null; then
28878   if ln -s conf$$.file conf$$ 2>/dev/null; then
28879     as_ln_s='ln -s'
28880     # ... but there are two gotchas:
28881     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28882     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28883     # In both cases, we have to default to `cp -p'.
28884     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28885       as_ln_s='cp -p'
28886   elif ln conf$$.file conf$$ 2>/dev/null; then
28887     as_ln_s=ln
28888   else
28889     as_ln_s='cp -p'
28890   fi
28891 else
28892   as_ln_s='cp -p'
28893 fi
28894 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28895 rmdir conf$$.dir 2>/dev/null
28896
28897
28898 # as_fn_mkdir_p
28899 # -------------
28900 # Create "$as_dir" as a directory, including parents if necessary.
28901 as_fn_mkdir_p ()
28902 {
28903
28904   case $as_dir in #(
28905   -*) as_dir=./$as_dir;;
28906   esac
28907   test -d "$as_dir" || eval $as_mkdir_p || {
28908     as_dirs=
28909     while :; do
28910       case $as_dir in #(
28911       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28912       *) as_qdir=$as_dir;;
28913       esac
28914       as_dirs="'$as_qdir' $as_dirs"
28915       as_dir=`$as_dirname -- "$as_dir" ||
28916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28917          X"$as_dir" : 'X\(//\)[^/]' \| \
28918          X"$as_dir" : 'X\(//\)$' \| \
28919          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28920 $as_echo X"$as_dir" |
28921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28922             s//\1/
28923             q
28924           }
28925           /^X\(\/\/\)[^/].*/{
28926             s//\1/
28927             q
28928           }
28929           /^X\(\/\/\)$/{
28930             s//\1/
28931             q
28932           }
28933           /^X\(\/\).*/{
28934             s//\1/
28935             q
28936           }
28937           s/.*/./; q'`
28938       test -d "$as_dir" && break
28939     done
28940     test -z "$as_dirs" || eval "mkdir $as_dirs"
28941   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28942
28943
28944 } # as_fn_mkdir_p
28945 if mkdir -p . 2>/dev/null; then
28946   as_mkdir_p='mkdir -p "$as_dir"'
28947 else
28948   test -d ./-p && rmdir ./-p
28949   as_mkdir_p=false
28950 fi
28951
28952 if test -x / >/dev/null 2>&1; then
28953   as_test_x='test -x'
28954 else
28955   if ls -dL / >/dev/null 2>&1; then
28956     as_ls_L_option=L
28957   else
28958     as_ls_L_option=
28959   fi
28960   as_test_x='
28961     eval sh -c '\''
28962       if test -d "$1"; then
28963         test -d "$1/.";
28964       else
28965         case $1 in #(
28966         -*)set "./$1";;
28967         esac;
28968         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28969         ???[sx]*):;;*)false;;esac;fi
28970     '\'' sh
28971   '
28972 fi
28973 as_executable_p=$as_test_x
28974
28975 # Sed expression to map a string onto a valid CPP name.
28976 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28977
28978 # Sed expression to map a string onto a valid variable name.
28979 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28980
28981
28982 exec 6>&1
28983 ## ----------------------------------- ##
28984 ## Main body of $CONFIG_STATUS script. ##
28985 ## ----------------------------------- ##
28986 _ASEOF
28987 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28988
28989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28990 # Save the log message, to keep $0 and so on meaningful, and to
28991 # report actual input values of CONFIG_FILES etc. instead of their
28992 # values after options handling.
28993 ac_log="
28994 This file was extended by GNU MP $as_me 5.0.1, which was
28995 generated by GNU Autoconf 2.65.  Invocation command line was
28996
28997   CONFIG_FILES    = $CONFIG_FILES
28998   CONFIG_HEADERS  = $CONFIG_HEADERS
28999   CONFIG_LINKS    = $CONFIG_LINKS
29000   CONFIG_COMMANDS = $CONFIG_COMMANDS
29001   $ $0 $@
29002
29003 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29004 "
29005
29006 _ACEOF
29007
29008 case $ac_config_files in *"
29009 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29010 esac
29011
29012 case $ac_config_headers in *"
29013 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29014 esac
29015
29016
29017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29018 # Files that config.status was made for.
29019 config_files="$ac_config_files"
29020 config_headers="$ac_config_headers"
29021 config_links="$ac_config_links"
29022 config_commands="$ac_config_commands"
29023
29024 _ACEOF
29025
29026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29027 ac_cs_usage="\
29028 \`$as_me' instantiates files and other configuration actions
29029 from templates according to the current configuration.  Unless the files
29030 and actions are specified as TAGs, all are instantiated by default.
29031
29032 Usage: $0 [OPTION]... [TAG]...
29033
29034   -h, --help       print this help, then exit
29035   -V, --version    print version number and configuration settings, then exit
29036       --config     print configuration, then exit
29037   -q, --quiet, --silent
29038                    do not print progress messages
29039   -d, --debug      don't remove temporary files
29040       --recheck    update $as_me by reconfiguring in the same conditions
29041       --file=FILE[:TEMPLATE]
29042                    instantiate the configuration file FILE
29043       --header=FILE[:TEMPLATE]
29044                    instantiate the configuration header FILE
29045
29046 Configuration files:
29047 $config_files
29048
29049 Configuration headers:
29050 $config_headers
29051
29052 Configuration links:
29053 $config_links
29054
29055 Configuration commands:
29056 $config_commands
29057
29058 Report bugs to <gmp-bugs@gmplib.org>.
29059 GNU MP home page: <http://www.gnu.org/software/gmp/>.
29060 General help using GNU software: <http://www.gnu.org/gethelp/>."
29061
29062 _ACEOF
29063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29064 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29065 ac_cs_version="\\
29066 GNU MP config.status 5.0.1
29067 configured by $0, generated by GNU Autoconf 2.65,
29068   with options \\"\$ac_cs_config\\"
29069
29070 Copyright (C) 2009 Free Software Foundation, Inc.
29071 This config.status script is free software; the Free Software Foundation
29072 gives unlimited permission to copy, distribute and modify it."
29073
29074 ac_pwd='$ac_pwd'
29075 srcdir='$srcdir'
29076 INSTALL='$INSTALL'
29077 MKDIR_P='$MKDIR_P'
29078 AWK='$AWK'
29079 test -n "\$AWK" || AWK=awk
29080 _ACEOF
29081
29082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29083 # The default lists apply if the user does not specify any file.
29084 ac_need_defaults=:
29085 while test $# != 0
29086 do
29087   case $1 in
29088   --*=*)
29089     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29090     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29091     ac_shift=:
29092     ;;
29093   *)
29094     ac_option=$1
29095     ac_optarg=$2
29096     ac_shift=shift
29097     ;;
29098   esac
29099
29100   case $ac_option in
29101   # Handling of the options.
29102   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29103     ac_cs_recheck=: ;;
29104   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29105     $as_echo "$ac_cs_version"; exit ;;
29106   --config | --confi | --conf | --con | --co | --c )
29107     $as_echo "$ac_cs_config"; exit ;;
29108   --debug | --debu | --deb | --de | --d | -d )
29109     debug=: ;;
29110   --file | --fil | --fi | --f )
29111     $ac_shift
29112     case $ac_optarg in
29113     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29114     esac
29115     as_fn_append CONFIG_FILES " '$ac_optarg'"
29116     ac_need_defaults=false;;
29117   --header | --heade | --head | --hea )
29118     $ac_shift
29119     case $ac_optarg in
29120     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29121     esac
29122     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29123     ac_need_defaults=false;;
29124   --he | --h)
29125     # Conflict between --help and --header
29126     as_fn_error "ambiguous option: \`$1'
29127 Try \`$0 --help' for more information.";;
29128   --help | --hel | -h )
29129     $as_echo "$ac_cs_usage"; exit ;;
29130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29131   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29132     ac_cs_silent=: ;;
29133
29134   # This is an error.
29135   -*) as_fn_error "unrecognized option: \`$1'
29136 Try \`$0 --help' for more information." ;;
29137
29138   *) as_fn_append ac_config_targets " $1"
29139      ac_need_defaults=false ;;
29140
29141   esac
29142   shift
29143 done
29144
29145 ac_configure_extra_args=
29146
29147 if $ac_cs_silent; then
29148   exec 6>/dev/null
29149   ac_configure_extra_args="$ac_configure_extra_args --silent"
29150 fi
29151
29152 _ACEOF
29153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29154 if \$ac_cs_recheck; then
29155   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29156   shift
29157   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29158   CONFIG_SHELL='$SHELL'
29159   export CONFIG_SHELL
29160   exec "\$@"
29161 fi
29162
29163 _ACEOF
29164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29165 exec 5>>config.log
29166 {
29167   echo
29168   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29169 ## Running $as_me. ##
29170 _ASBOX
29171   $as_echo "$ac_log"
29172 } >&5
29173
29174 _ACEOF
29175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29176 #
29177 # INIT-COMMANDS
29178 #
29179
29180
29181 # The HP-UX ksh and POSIX shell print the target directory to stdout
29182 # if CDPATH is set.
29183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29184
29185 sed_quote_subst='$sed_quote_subst'
29186 double_quote_subst='$double_quote_subst'
29187 delay_variable_subst='$delay_variable_subst'
29188 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29189 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
29190 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29191 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29192 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29193 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29194 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29195 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29196 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29197 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29198 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29199 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29200 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29201 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29202 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29203 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29204 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29205 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29206 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29207 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29208 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29209 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29210 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29211 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29212 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29213 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29214 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29215 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29216 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29217 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29218 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29219 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29220 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29221 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29222 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29223 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29224 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29225 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29226 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29227 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29228 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29229 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29230 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29231 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29232 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29234 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"`'
29235 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"`'
29236 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29237 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29238 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29239 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29240 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29241 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29242 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29243 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29244 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29245 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29246 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29247 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29248 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29249 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29250 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29251 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29252 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29253 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29254 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29255 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29256 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29257 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29258 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29259 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29260 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29261 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29262 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29263 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29264 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29265 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29266 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29267 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29268 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29269 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29270 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29271 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29272 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29273 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29274 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29275 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29276 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29277 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29278 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29279 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29280 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29281 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29282 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29283 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29284 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29285 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29286 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29287 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29288 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29289 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29290 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29291 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29292 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29293 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29294 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29295 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29296 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29297 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29298 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29299 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29300 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29301 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29302 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29303 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29304 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29305 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29306 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29307 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29308 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29309 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29310 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29311 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29312 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29313 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29314 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29315 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
29316 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29317 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29318 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29319 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
29320 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29321 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
29322 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29323 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
29324 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29325 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
29326 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29327 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
29328 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29329 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
29330 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29331 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
29332 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29333 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
29334 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29335 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
29336 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29337 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29338 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29339 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29340 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29341 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
29342 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29343 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29344 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29345 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29346 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29347 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29348 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29349 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29350 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29351 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29352 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29353 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29354 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29355 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
29356 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29357 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
29358 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29359 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
29360 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29361 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29362 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29363 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
29364 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29365 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
29366 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29367 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
29368 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29369 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
29370 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29371 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
29372 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29373 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
29374 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29375 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
29376 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29377 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
29378 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29379 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
29380 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29381 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
29382 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29383 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
29384 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29385 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29386 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29387 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
29388 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29389 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
29390 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29391 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29392 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29393 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29394 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29395 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
29396 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29397 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
29398 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29399 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
29400 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29401 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
29402 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29403 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
29404 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29405 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
29406 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29407 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
29408
29409 LTCC='$LTCC'
29410 LTCFLAGS='$LTCFLAGS'
29411 compiler='$compiler_DEFAULT'
29412
29413 # Quote evaled strings.
29414 for var in NM \
29415 SED \
29416 GREP \
29417 EGREP \
29418 FGREP \
29419 LD \
29420 LN_S \
29421 lt_SP2NL \
29422 lt_NL2SP \
29423 reload_flag \
29424 deplibs_check_method \
29425 file_magic_cmd \
29426 AR \
29427 AR_FLAGS \
29428 STRIP \
29429 RANLIB \
29430 CC \
29431 CFLAGS \
29432 compiler \
29433 lt_cv_sys_global_symbol_pipe \
29434 lt_cv_sys_global_symbol_to_cdecl \
29435 lt_cv_sys_global_symbol_to_c_name_address \
29436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29437 SHELL \
29438 ECHO \
29439 lt_prog_compiler_no_builtin_flag \
29440 lt_prog_compiler_wl \
29441 lt_prog_compiler_pic \
29442 lt_prog_compiler_static \
29443 lt_cv_prog_compiler_c_o \
29444 need_locks \
29445 DSYMUTIL \
29446 NMEDIT \
29447 LIPO \
29448 OTOOL \
29449 OTOOL64 \
29450 shrext_cmds \
29451 export_dynamic_flag_spec \
29452 whole_archive_flag_spec \
29453 compiler_needs_object \
29454 with_gnu_ld \
29455 allow_undefined_flag \
29456 no_undefined_flag \
29457 hardcode_libdir_flag_spec \
29458 hardcode_libdir_flag_spec_ld \
29459 hardcode_libdir_separator \
29460 fix_srcfile_path \
29461 exclude_expsyms \
29462 include_expsyms \
29463 file_list_spec \
29464 variables_saved_for_relink \
29465 libname_spec \
29466 library_names_spec \
29467 soname_spec \
29468 finish_eval \
29469 old_striplib \
29470 striplib \
29471 compiler_lib_search_dirs \
29472 predep_objects \
29473 postdep_objects \
29474 predeps \
29475 postdeps \
29476 compiler_lib_search_path \
29477 LD_CXX \
29478 LD_F77 \
29479 compiler_CXX \
29480 compiler_F77 \
29481 lt_prog_compiler_no_builtin_flag_CXX \
29482 lt_prog_compiler_no_builtin_flag_F77 \
29483 lt_prog_compiler_wl_CXX \
29484 lt_prog_compiler_wl_F77 \
29485 lt_prog_compiler_pic_CXX \
29486 lt_prog_compiler_pic_F77 \
29487 lt_prog_compiler_static_CXX \
29488 lt_prog_compiler_static_F77 \
29489 lt_cv_prog_compiler_c_o_CXX \
29490 lt_cv_prog_compiler_c_o_F77 \
29491 export_dynamic_flag_spec_CXX \
29492 export_dynamic_flag_spec_F77 \
29493 whole_archive_flag_spec_CXX \
29494 whole_archive_flag_spec_F77 \
29495 compiler_needs_object_CXX \
29496 compiler_needs_object_F77 \
29497 with_gnu_ld_CXX \
29498 with_gnu_ld_F77 \
29499 allow_undefined_flag_CXX \
29500 allow_undefined_flag_F77 \
29501 no_undefined_flag_CXX \
29502 no_undefined_flag_F77 \
29503 hardcode_libdir_flag_spec_CXX \
29504 hardcode_libdir_flag_spec_F77 \
29505 hardcode_libdir_flag_spec_ld_CXX \
29506 hardcode_libdir_flag_spec_ld_F77 \
29507 hardcode_libdir_separator_CXX \
29508 hardcode_libdir_separator_F77 \
29509 fix_srcfile_path_CXX \
29510 fix_srcfile_path_F77 \
29511 exclude_expsyms_CXX \
29512 exclude_expsyms_F77 \
29513 include_expsyms_CXX \
29514 include_expsyms_F77 \
29515 file_list_spec_CXX \
29516 file_list_spec_F77 \
29517 compiler_lib_search_dirs_CXX \
29518 compiler_lib_search_dirs_F77 \
29519 predep_objects_CXX \
29520 predep_objects_F77 \
29521 postdep_objects_CXX \
29522 postdep_objects_F77 \
29523 predeps_CXX \
29524 predeps_F77 \
29525 postdeps_CXX \
29526 postdeps_F77 \
29527 compiler_lib_search_path_CXX \
29528 compiler_lib_search_path_F77; do
29529     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29530     *[\\\\\\\`\\"\\\$]*)
29531       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29532       ;;
29533     *)
29534       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29535       ;;
29536     esac
29537 done
29538
29539 # Double-quote double-evaled strings.
29540 for var in reload_cmds \
29541 old_postinstall_cmds \
29542 old_postuninstall_cmds \
29543 old_archive_cmds \
29544 extract_expsyms_cmds \
29545 old_archive_from_new_cmds \
29546 old_archive_from_expsyms_cmds \
29547 archive_cmds \
29548 archive_expsym_cmds \
29549 module_cmds \
29550 module_expsym_cmds \
29551 export_symbols_cmds \
29552 prelink_cmds \
29553 postinstall_cmds \
29554 postuninstall_cmds \
29555 finish_cmds \
29556 sys_lib_search_path_spec \
29557 sys_lib_dlsearch_path_spec \
29558 old_archive_cmds_CXX \
29559 old_archive_cmds_F77 \
29560 old_archive_from_new_cmds_CXX \
29561 old_archive_from_new_cmds_F77 \
29562 old_archive_from_expsyms_cmds_CXX \
29563 old_archive_from_expsyms_cmds_F77 \
29564 archive_cmds_CXX \
29565 archive_cmds_F77 \
29566 archive_expsym_cmds_CXX \
29567 archive_expsym_cmds_F77 \
29568 module_cmds_CXX \
29569 module_cmds_F77 \
29570 module_expsym_cmds_CXX \
29571 module_expsym_cmds_F77 \
29572 export_symbols_cmds_CXX \
29573 export_symbols_cmds_F77 \
29574 prelink_cmds_CXX \
29575 prelink_cmds_F77; do
29576     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29577     *[\\\\\\\`\\"\\\$]*)
29578       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29579       ;;
29580     *)
29581       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29582       ;;
29583     esac
29584 done
29585
29586 # Fix-up fallback echo if it was mangled by the above quoting rules.
29587 case \$lt_ECHO in
29588 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29589   ;;
29590 esac
29591
29592 ac_aux_dir='$ac_aux_dir'
29593 xsi_shell='$xsi_shell'
29594 lt_shell_append='$lt_shell_append'
29595
29596 # See if we are running on zsh, and set the options which allow our
29597 # commands through without removal of \ escapes INIT.
29598 if test -n "\${ZSH_VERSION+set}" ; then
29599    setopt NO_GLOB_SUBST
29600 fi
29601
29602
29603     PACKAGE='$PACKAGE'
29604     VERSION='$VERSION'
29605     TIMESTAMP='$TIMESTAMP'
29606     RM='$RM'
29607     ofile='$ofile'
29608
29609
29610
29611
29612
29613
29614
29615
29616 _ACEOF
29617
29618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29619
29620 # Handling of arguments.
29621 for ac_config_target in $ac_config_targets
29622 do
29623   case $ac_config_target in
29624     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29625     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29626     "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
29627     "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
29628     "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
29629     "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
29630     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29631     "mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
29632     "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
29633     "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
29634     "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
29635     "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
29636     "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
29637     "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
29638     "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
29639     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29640     "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
29641     "tests/mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
29642     "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
29643     "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
29644     "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
29645     "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
29646     "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
29647     "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
29648     "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
29649     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29650     "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
29651     "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
29652     "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
29653     "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
29654     "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
29655     "mp.h") CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
29656
29657   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29658   esac
29659 done
29660
29661
29662 # If the user did not use the arguments to specify the items to instantiate,
29663 # then the envvar interface is used.  Set only those that are not.
29664 # We use the long form for the default assignment because of an extremely
29665 # bizarre bug on SunOS 4.1.3.
29666 if $ac_need_defaults; then
29667   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29668   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29669   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29670   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29671 fi
29672
29673 # Have a temporary directory for convenience.  Make it in the build tree
29674 # simply because there is no reason against having it here, and in addition,
29675 # creating and moving files from /tmp can sometimes cause problems.
29676 # Hook for its removal unless debugging.
29677 # Note that there is a small window in which the directory will not be cleaned:
29678 # after its creation but before its name has been assigned to `$tmp'.
29679 $debug ||
29680 {
29681   tmp=
29682   trap 'exit_status=$?
29683   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29684 ' 0
29685   trap 'as_fn_exit 1' 1 2 13 15
29686 }
29687 # Create a (secure) tmp directory for tmp files.
29688
29689 {
29690   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29691   test -n "$tmp" && test -d "$tmp"
29692 }  ||
29693 {
29694   tmp=./conf$$-$RANDOM
29695   (umask 077 && mkdir "$tmp")
29696 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29697
29698 # Set up the scripts for CONFIG_FILES section.
29699 # No need to generate them if there are no CONFIG_FILES.
29700 # This happens for instance with `./config.status config.h'.
29701 if test -n "$CONFIG_FILES"; then
29702
29703
29704 ac_cr=`echo X | tr X '\015'`
29705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29706 # But we know of no other shell where ac_cr would be empty at this
29707 # point, so we can use a bashism as a fallback.
29708 if test "x$ac_cr" = x; then
29709   eval ac_cr=\$\'\\r\'
29710 fi
29711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29713   ac_cs_awk_cr='\r'
29714 else
29715   ac_cs_awk_cr=$ac_cr
29716 fi
29717
29718 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29719 _ACEOF
29720
29721
29722 {
29723   echo "cat >conf$$subs.awk <<_ACEOF" &&
29724   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29725   echo "_ACEOF"
29726 } >conf$$subs.sh ||
29727   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29729 ac_delim='%!_!# '
29730 for ac_last_try in false false false false false :; do
29731   . ./conf$$subs.sh ||
29732     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29733
29734   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29735   if test $ac_delim_n = $ac_delim_num; then
29736     break
29737   elif $ac_last_try; then
29738     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29739   else
29740     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29741   fi
29742 done
29743 rm -f conf$$subs.sh
29744
29745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29746 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29747 _ACEOF
29748 sed -n '
29749 h
29750 s/^/S["/; s/!.*/"]=/
29751 p
29752 g
29753 s/^[^!]*!//
29754 :repl
29755 t repl
29756 s/'"$ac_delim"'$//
29757 t delim
29758 :nl
29759 h
29760 s/\(.\{148\}\)..*/\1/
29761 t more1
29762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29763 p
29764 n
29765 b repl
29766 :more1
29767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29768 p
29769 g
29770 s/.\{148\}//
29771 t nl
29772 :delim
29773 h
29774 s/\(.\{148\}\)..*/\1/
29775 t more2
29776 s/["\\]/\\&/g; s/^/"/; s/$/"/
29777 p
29778 b
29779 :more2
29780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29781 p
29782 g
29783 s/.\{148\}//
29784 t delim
29785 ' <conf$$subs.awk | sed '
29786 /^[^""]/{
29787   N
29788   s/\n//
29789 }
29790 ' >>$CONFIG_STATUS || ac_write_fail=1
29791 rm -f conf$$subs.awk
29792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29793 _ACAWK
29794 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29795   for (key in S) S_is_set[key] = 1
29796   FS = "\a"
29797
29798 }
29799 {
29800   line = $ 0
29801   nfields = split(line, field, "@")
29802   substed = 0
29803   len = length(field[1])
29804   for (i = 2; i < nfields; i++) {
29805     key = field[i]
29806     keylen = length(key)
29807     if (S_is_set[key]) {
29808       value = S[key]
29809       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29810       len += length(value) + length(field[++i])
29811       substed = 1
29812     } else
29813       len += 1 + keylen
29814   }
29815
29816   print line
29817 }
29818
29819 _ACAWK
29820 _ACEOF
29821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29823   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29824 else
29825   cat
29826 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29827   || as_fn_error "could not setup config files machinery" "$LINENO" 5
29828 _ACEOF
29829
29830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29832 # trailing colons and then remove the whole line if VPATH becomes empty
29833 # (actually we leave an empty line to preserve line numbers).
29834 if test "x$srcdir" = x.; then
29835   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29836 s/:*\$(srcdir):*/:/
29837 s/:*\${srcdir}:*/:/
29838 s/:*@srcdir@:*/:/
29839 s/^\([^=]*=[     ]*\):*/\1/
29840 s/:*$//
29841 s/^[^=]*=[       ]*$//
29842 }'
29843 fi
29844
29845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29846 fi # test -n "$CONFIG_FILES"
29847
29848 # Set up the scripts for CONFIG_HEADERS section.
29849 # No need to generate them if there are no CONFIG_HEADERS.
29850 # This happens for instance with `./config.status Makefile'.
29851 if test -n "$CONFIG_HEADERS"; then
29852 cat >"$tmp/defines.awk" <<\_ACAWK ||
29853 BEGIN {
29854 _ACEOF
29855
29856 # Transform confdefs.h into an awk script `defines.awk', embedded as
29857 # here-document in config.status, that substitutes the proper values into
29858 # config.h.in to produce config.h.
29859
29860 # Create a delimiter string that does not exist in confdefs.h, to ease
29861 # handling of long lines.
29862 ac_delim='%!_!# '
29863 for ac_last_try in false false :; do
29864   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29865   if test -z "$ac_t"; then
29866     break
29867   elif $ac_last_try; then
29868     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29869   else
29870     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29871   fi
29872 done
29873
29874 # For the awk script, D is an array of macro values keyed by name,
29875 # likewise P contains macro parameters if any.  Preserve backslash
29876 # newline sequences.
29877
29878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29879 sed -n '
29880 s/.\{148\}/&'"$ac_delim"'/g
29881 t rset
29882 :rset
29883 s/^[     ]*#[    ]*define[       ][      ]*/ /
29884 t def
29885 d
29886 :def
29887 s/\\$//
29888 t bsnl
29889 s/["\\]/\\&/g
29890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29891 D["\1"]=" \3"/p
29892 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29893 d
29894 :bsnl
29895 s/["\\]/\\&/g
29896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29897 D["\1"]=" \3\\\\\\n"\\/p
29898 t cont
29899 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29900 t cont
29901 d
29902 :cont
29903 n
29904 s/.\{148\}/&'"$ac_delim"'/g
29905 t clear
29906 :clear
29907 s/\\$//
29908 t bsnlc
29909 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29910 d
29911 :bsnlc
29912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29913 b cont
29914 ' <confdefs.h | sed '
29915 s/'"$ac_delim"'/"\\\
29916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29917
29918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29919   for (key in D) D_is_set[key] = 1
29920   FS = "\a"
29921 }
29922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29923   line = \$ 0
29924   split(line, arg, " ")
29925   if (arg[1] == "#") {
29926     defundef = arg[2]
29927     mac1 = arg[3]
29928   } else {
29929     defundef = substr(arg[1], 2)
29930     mac1 = arg[2]
29931   }
29932   split(mac1, mac2, "(") #)
29933   macro = mac2[1]
29934   prefix = substr(line, 1, index(line, defundef) - 1)
29935   if (D_is_set[macro]) {
29936     # Preserve the white space surrounding the "#".
29937     print prefix "define", macro P[macro] D[macro]
29938     next
29939   } else {
29940     # Replace #undef with comments.  This is necessary, for example,
29941     # in the case of _POSIX_SOURCE, which is predefined and required
29942     # on some systems where configure will not decide to define it.
29943     if (defundef == "undef") {
29944       print "/*", prefix defundef, macro, "*/"
29945       next
29946     }
29947   }
29948 }
29949 { print }
29950 _ACAWK
29951 _ACEOF
29952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29953   as_fn_error "could not setup config headers machinery" "$LINENO" 5
29954 fi # test -n "$CONFIG_HEADERS"
29955
29956
29957 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29958 shift
29959 for ac_tag
29960 do
29961   case $ac_tag in
29962   :[FHLC]) ac_mode=$ac_tag; continue;;
29963   esac
29964   case $ac_mode$ac_tag in
29965   :[FHL]*:*);;
29966   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29967   :[FH]-) ac_tag=-:-;;
29968   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29969   esac
29970   ac_save_IFS=$IFS
29971   IFS=:
29972   set x $ac_tag
29973   IFS=$ac_save_IFS
29974   shift
29975   ac_file=$1
29976   shift
29977
29978   case $ac_mode in
29979   :L) ac_source=$1;;
29980   :[FH])
29981     ac_file_inputs=
29982     for ac_f
29983     do
29984       case $ac_f in
29985       -) ac_f="$tmp/stdin";;
29986       *) # Look for the file first in the build tree, then in the source tree
29987          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29988          # because $ac_f cannot contain `:'.
29989          test -f "$ac_f" ||
29990            case $ac_f in
29991            [\\/$]*) false;;
29992            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29993            esac ||
29994            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29995       esac
29996       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29997       as_fn_append ac_file_inputs " '$ac_f'"
29998     done
29999
30000     # Let's still pretend it is `configure' which instantiates (i.e., don't
30001     # use $as_me), people would be surprised to read:
30002     #    /* config.h.  Generated by config.status.  */
30003     configure_input='Generated from '`
30004           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30005         `' by configure.'
30006     if test x"$ac_file" != x-; then
30007       configure_input="$ac_file.  $configure_input"
30008       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30009 $as_echo "$as_me: creating $ac_file" >&6;}
30010     fi
30011     # Neutralize special characters interpreted by sed in replacement strings.
30012     case $configure_input in #(
30013     *\&* | *\|* | *\\* )
30014        ac_sed_conf_input=`$as_echo "$configure_input" |
30015        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30016     *) ac_sed_conf_input=$configure_input;;
30017     esac
30018
30019     case $ac_tag in
30020     *:-:* | *:-) cat >"$tmp/stdin" \
30021       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30022     esac
30023     ;;
30024   esac
30025
30026   ac_dir=`$as_dirname -- "$ac_file" ||
30027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30028          X"$ac_file" : 'X\(//\)[^/]' \| \
30029          X"$ac_file" : 'X\(//\)$' \| \
30030          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30031 $as_echo X"$ac_file" |
30032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30033             s//\1/
30034             q
30035           }
30036           /^X\(\/\/\)[^/].*/{
30037             s//\1/
30038             q
30039           }
30040           /^X\(\/\/\)$/{
30041             s//\1/
30042             q
30043           }
30044           /^X\(\/\).*/{
30045             s//\1/
30046             q
30047           }
30048           s/.*/./; q'`
30049   as_dir="$ac_dir"; as_fn_mkdir_p
30050   ac_builddir=.
30051
30052 case "$ac_dir" in
30053 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30054 *)
30055   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30056   # A ".." for each directory in $ac_dir_suffix.
30057   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30058   case $ac_top_builddir_sub in
30059   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30060   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30061   esac ;;
30062 esac
30063 ac_abs_top_builddir=$ac_pwd
30064 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30065 # for backward compatibility:
30066 ac_top_builddir=$ac_top_build_prefix
30067
30068 case $srcdir in
30069   .)  # We are building in place.
30070     ac_srcdir=.
30071     ac_top_srcdir=$ac_top_builddir_sub
30072     ac_abs_top_srcdir=$ac_pwd ;;
30073   [\\/]* | ?:[\\/]* )  # Absolute name.
30074     ac_srcdir=$srcdir$ac_dir_suffix;
30075     ac_top_srcdir=$srcdir
30076     ac_abs_top_srcdir=$srcdir ;;
30077   *) # Relative name.
30078     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30079     ac_top_srcdir=$ac_top_build_prefix$srcdir
30080     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30081 esac
30082 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30083
30084
30085   case $ac_mode in
30086   :F)
30087   #
30088   # CONFIG_FILE
30089   #
30090
30091   case $INSTALL in
30092   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30093   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30094   esac
30095   ac_MKDIR_P=$MKDIR_P
30096   case $MKDIR_P in
30097   [\\/$]* | ?:[\\/]* ) ;;
30098   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30099   esac
30100 _ACEOF
30101
30102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30103 # If the template does not know about datarootdir, expand it.
30104 # FIXME: This hack should be removed a few years after 2.60.
30105 ac_datarootdir_hack=; ac_datarootdir_seen=
30106 ac_sed_dataroot='
30107 /datarootdir/ {
30108   p
30109   q
30110 }
30111 /@datadir@/p
30112 /@docdir@/p
30113 /@infodir@/p
30114 /@localedir@/p
30115 /@mandir@/p'
30116 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30117 *datarootdir*) ac_datarootdir_seen=yes;;
30118 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30120 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30121 _ACEOF
30122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30123   ac_datarootdir_hack='
30124   s&@datadir@&$datadir&g
30125   s&@docdir@&$docdir&g
30126   s&@infodir@&$infodir&g
30127   s&@localedir@&$localedir&g
30128   s&@mandir@&$mandir&g
30129   s&\\\${datarootdir}&$datarootdir&g' ;;
30130 esac
30131 _ACEOF
30132
30133 # Neutralize VPATH when `$srcdir' = `.'.
30134 # Shell code in configure.ac might set extrasub.
30135 # FIXME: do we really want to maintain this feature?
30136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30137 ac_sed_extra="$ac_vpsub
30138 $extrasub
30139 _ACEOF
30140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30141 :t
30142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30143 s|@configure_input@|$ac_sed_conf_input|;t t
30144 s&@top_builddir@&$ac_top_builddir_sub&;t t
30145 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30146 s&@srcdir@&$ac_srcdir&;t t
30147 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30148 s&@top_srcdir@&$ac_top_srcdir&;t t
30149 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30150 s&@builddir@&$ac_builddir&;t t
30151 s&@abs_builddir@&$ac_abs_builddir&;t t
30152 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30153 s&@INSTALL@&$ac_INSTALL&;t t
30154 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30155 $ac_datarootdir_hack
30156 "
30157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30158   || as_fn_error "could not create $ac_file" "$LINENO" 5
30159
30160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30161   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30162   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30164 which seems to be undefined.  Please make sure it is defined." >&5
30165 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30166 which seems to be undefined.  Please make sure it is defined." >&2;}
30167
30168   rm -f "$tmp/stdin"
30169   case $ac_file in
30170   -) cat "$tmp/out" && rm -f "$tmp/out";;
30171   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30172   esac \
30173   || as_fn_error "could not create $ac_file" "$LINENO" 5
30174  ;;
30175   :H)
30176   #
30177   # CONFIG_HEADER
30178   #
30179   if test x"$ac_file" != x-; then
30180     {
30181       $as_echo "/* $configure_input  */" \
30182       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30183     } >"$tmp/config.h" \
30184       || as_fn_error "could not create $ac_file" "$LINENO" 5
30185     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30186       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30187 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30188     else
30189       rm -f "$ac_file"
30190       mv "$tmp/config.h" "$ac_file" \
30191         || as_fn_error "could not create $ac_file" "$LINENO" 5
30192     fi
30193   else
30194     $as_echo "/* $configure_input  */" \
30195       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30196       || as_fn_error "could not create -" "$LINENO" 5
30197   fi
30198 # Compute "$ac_file"'s index in $config_headers.
30199 _am_arg="$ac_file"
30200 _am_stamp_count=1
30201 for _am_header in $config_headers :; do
30202   case $_am_header in
30203     $_am_arg | $_am_arg:* )
30204       break ;;
30205     * )
30206       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30207   esac
30208 done
30209 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30210 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30211          X"$_am_arg" : 'X\(//\)[^/]' \| \
30212          X"$_am_arg" : 'X\(//\)$' \| \
30213          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30214 $as_echo X"$_am_arg" |
30215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30216             s//\1/
30217             q
30218           }
30219           /^X\(\/\/\)[^/].*/{
30220             s//\1/
30221             q
30222           }
30223           /^X\(\/\/\)$/{
30224             s//\1/
30225             q
30226           }
30227           /^X\(\/\).*/{
30228             s//\1/
30229             q
30230           }
30231           s/.*/./; q'`/stamp-h$_am_stamp_count
30232  ;;
30233   :L)
30234   #
30235   # CONFIG_LINK
30236   #
30237
30238   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30239     :
30240   else
30241     # Prefer the file from the source tree if names are identical.
30242     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30243       ac_source=$srcdir/$ac_source
30244     fi
30245
30246     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30247 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30248
30249     if test ! -r "$ac_source"; then
30250       as_fn_error "$ac_source: file not found" "$LINENO" 5
30251     fi
30252     rm -f "$ac_file"
30253
30254     # Try a relative symlink, then a hard link, then a copy.
30255     case $srcdir in
30256     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30257         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30258     esac
30259     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30260       ln "$ac_source" "$ac_file" 2>/dev/null ||
30261       cp -p "$ac_source" "$ac_file" ||
30262       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30263   fi
30264  ;;
30265   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30266 $as_echo "$as_me: executing $ac_file commands" >&6;}
30267  ;;
30268   esac
30269
30270
30271   case $ac_file$ac_mode in
30272     "libtool":C)
30273
30274     # See if we are running on zsh, and set the options which allow our
30275     # commands through without removal of \ escapes.
30276     if test -n "${ZSH_VERSION+set}" ; then
30277       setopt NO_GLOB_SUBST
30278     fi
30279
30280     cfgfile="${ofile}T"
30281     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30282     $RM "$cfgfile"
30283
30284     cat <<_LT_EOF >> "$cfgfile"
30285 #! $SHELL
30286
30287 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30288 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30290 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30291 #
30292 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30293 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30294 #   Written by Gordon Matzigkeit, 1996
30295 #
30296 #   This file is part of GNU Libtool.
30297 #
30298 # GNU Libtool is free software; you can redistribute it and/or
30299 # modify it under the terms of the GNU General Public License as
30300 # published by the Free Software Foundation; either version 2 of
30301 # the License, or (at your option) any later version.
30302 #
30303 # As a special exception to the GNU General Public License,
30304 # if you distribute this file as part of a program or library that
30305 # is built using GNU Libtool, you may include this file under the
30306 # same distribution terms that you use for the rest of that program.
30307 #
30308 # GNU Libtool is distributed in the hope that it will be useful,
30309 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30311 # GNU General Public License for more details.
30312 #
30313 # You should have received a copy of the GNU General Public License
30314 # along with GNU Libtool; see the file COPYING.  If not, a copy
30315 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30316 # obtained by writing to the Free Software Foundation, Inc.,
30317 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30318
30319
30320 # The names of the tagged configurations supported by this script.
30321 available_tags="CXX F77 "
30322
30323 # ### BEGIN LIBTOOL CONFIG
30324
30325 # A BSD- or MS-compatible name lister.
30326 NM=$lt_NM
30327
30328 # Assembler program.
30329 AS=$AS
30330
30331 # DLL creation program.
30332 DLLTOOL=$DLLTOOL
30333
30334 # Object dumper program.
30335 OBJDUMP=$OBJDUMP
30336
30337 # Which release of libtool.m4 was used?
30338 macro_version=$macro_version
30339 macro_revision=$macro_revision
30340
30341 # Whether or not to build shared libraries.
30342 build_libtool_libs=$enable_shared
30343
30344 # Whether or not to build static libraries.
30345 build_old_libs=$enable_static
30346
30347 # What type of objects to build.
30348 pic_mode=$pic_mode
30349
30350 # Whether or not to optimize for fast installation.
30351 fast_install=$enable_fast_install
30352
30353 # The host system.
30354 host_alias=$host_alias
30355 host=$host
30356 host_os=$host_os
30357
30358 # The build system.
30359 build_alias=$build_alias
30360 build=$build
30361 build_os=$build_os
30362
30363 # A sed program that does not truncate output.
30364 SED=$lt_SED
30365
30366 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30367 Xsed="\$SED -e 1s/^X//"
30368
30369 # A grep program that handles long lines.
30370 GREP=$lt_GREP
30371
30372 # An ERE matcher.
30373 EGREP=$lt_EGREP
30374
30375 # A literal string matcher.
30376 FGREP=$lt_FGREP
30377
30378 # Whether we need soft or hard links.
30379 LN_S=$lt_LN_S
30380
30381 # What is the maximum length of a command?
30382 max_cmd_len=$max_cmd_len
30383
30384 # Object file suffix (normally "o").
30385 objext=$ac_objext
30386
30387 # Executable file suffix (normally "").
30388 exeext=$exeext
30389
30390 # whether the shell understands "unset".
30391 lt_unset=$lt_unset
30392
30393 # turn spaces into newlines.
30394 SP2NL=$lt_lt_SP2NL
30395
30396 # turn newlines into spaces.
30397 NL2SP=$lt_lt_NL2SP
30398
30399 # How to create reloadable object files.
30400 reload_flag=$lt_reload_flag
30401 reload_cmds=$lt_reload_cmds
30402
30403 # Method to check whether dependent libraries are shared objects.
30404 deplibs_check_method=$lt_deplibs_check_method
30405
30406 # Command to use when deplibs_check_method == "file_magic".
30407 file_magic_cmd=$lt_file_magic_cmd
30408
30409 # The archiver.
30410 AR=$lt_AR
30411 AR_FLAGS=$lt_AR_FLAGS
30412
30413 # A symbol stripping program.
30414 STRIP=$lt_STRIP
30415
30416 # Commands used to install an old-style archive.
30417 RANLIB=$lt_RANLIB
30418 old_postinstall_cmds=$lt_old_postinstall_cmds
30419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30420
30421 # A C compiler.
30422 LTCC=$lt_CC
30423
30424 # LTCC compiler flags.
30425 LTCFLAGS=$lt_CFLAGS
30426
30427 # Take the output of nm and produce a listing of raw symbols and C names.
30428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30429
30430 # Transform the output of nm in a proper C declaration.
30431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30432
30433 # Transform the output of nm in a C name address pair.
30434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30435
30436 # Transform the output of nm in a C name address pair when lib prefix is needed.
30437 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30438
30439 # The name of the directory that contains temporary libtool files.
30440 objdir=$objdir
30441
30442 # Shell to use when invoking shell scripts.
30443 SHELL=$lt_SHELL
30444
30445 # An echo program that does not interpret backslashes.
30446 ECHO=$lt_ECHO
30447
30448 # Used to examine libraries when file_magic_cmd begins with "file".
30449 MAGIC_CMD=$MAGIC_CMD
30450
30451 # Must we lock files when doing compilation?
30452 need_locks=$lt_need_locks
30453
30454 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30455 DSYMUTIL=$lt_DSYMUTIL
30456
30457 # Tool to change global to local symbols on Mac OS X.
30458 NMEDIT=$lt_NMEDIT
30459
30460 # Tool to manipulate fat objects and archives on Mac OS X.
30461 LIPO=$lt_LIPO
30462
30463 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30464 OTOOL=$lt_OTOOL
30465
30466 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30467 OTOOL64=$lt_OTOOL64
30468
30469 # Old archive suffix (normally "a").
30470 libext=$libext
30471
30472 # Shared library suffix (normally ".so").
30473 shrext_cmds=$lt_shrext_cmds
30474
30475 # The commands to extract the exported symbol list from a shared archive.
30476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30477
30478 # Variables whose values should be saved in libtool wrapper scripts and
30479 # restored at link time.
30480 variables_saved_for_relink=$lt_variables_saved_for_relink
30481
30482 # Do we need the "lib" prefix for modules?
30483 need_lib_prefix=$need_lib_prefix
30484
30485 # Do we need a version for libraries?
30486 need_version=$need_version
30487
30488 # Library versioning type.
30489 version_type=$version_type
30490
30491 # Shared library runtime path variable.
30492 runpath_var=$runpath_var
30493
30494 # Shared library path variable.
30495 shlibpath_var=$shlibpath_var
30496
30497 # Is shlibpath searched before the hard-coded library search path?
30498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30499
30500 # Format of library name prefix.
30501 libname_spec=$lt_libname_spec
30502
30503 # List of archive names.  First name is the real one, the rest are links.
30504 # The last name is the one that the linker finds with -lNAME
30505 library_names_spec=$lt_library_names_spec
30506
30507 # The coded name of the library, if different from the real name.
30508 soname_spec=$lt_soname_spec
30509
30510 # Command to use after installation of a shared archive.
30511 postinstall_cmds=$lt_postinstall_cmds
30512
30513 # Command to use after uninstallation of a shared archive.
30514 postuninstall_cmds=$lt_postuninstall_cmds
30515
30516 # Commands used to finish a libtool library installation in a directory.
30517 finish_cmds=$lt_finish_cmds
30518
30519 # As "finish_cmds", except a single script fragment to be evaled but
30520 # not shown.
30521 finish_eval=$lt_finish_eval
30522
30523 # Whether we should hardcode library paths into libraries.
30524 hardcode_into_libs=$hardcode_into_libs
30525
30526 # Compile-time system search path for libraries.
30527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30528
30529 # Run-time system search path for libraries.
30530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30531
30532 # Whether dlopen is supported.
30533 dlopen_support=$enable_dlopen
30534
30535 # Whether dlopen of programs is supported.
30536 dlopen_self=$enable_dlopen_self
30537
30538 # Whether dlopen of statically linked programs is supported.
30539 dlopen_self_static=$enable_dlopen_self_static
30540
30541 # Commands to strip libraries.
30542 old_striplib=$lt_old_striplib
30543 striplib=$lt_striplib
30544
30545
30546 # The linker used to build libraries.
30547 LD=$lt_LD
30548
30549 # Commands used to build an old-style archive.
30550 old_archive_cmds=$lt_old_archive_cmds
30551
30552 # A language specific compiler.
30553 CC=$lt_compiler
30554
30555 # Is the compiler the GNU compiler?
30556 with_gcc=$GCC
30557
30558 # Compiler flag to turn off builtin functions.
30559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30560
30561 # How to pass a linker flag through the compiler.
30562 wl=$lt_lt_prog_compiler_wl
30563
30564 # Additional compiler flags for building library objects.
30565 pic_flag=$lt_lt_prog_compiler_pic
30566
30567 # Compiler flag to prevent dynamic linking.
30568 link_static_flag=$lt_lt_prog_compiler_static
30569
30570 # Does compiler simultaneously support -c and -o options?
30571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30572
30573 # Whether or not to add -lc for building shared libraries.
30574 build_libtool_need_lc=$archive_cmds_need_lc
30575
30576 # Whether or not to disallow shared libs when runtime libs are static.
30577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30578
30579 # Compiler flag to allow reflexive dlopens.
30580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30581
30582 # Compiler flag to generate shared objects directly from archives.
30583 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30584
30585 # Whether the compiler copes with passing no objects directly.
30586 compiler_needs_object=$lt_compiler_needs_object
30587
30588 # Create an old-style archive from a shared archive.
30589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30590
30591 # Create a temporary old-style archive to link instead of a shared archive.
30592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30593
30594 # Commands used to build a shared archive.
30595 archive_cmds=$lt_archive_cmds
30596 archive_expsym_cmds=$lt_archive_expsym_cmds
30597
30598 # Commands used to build a loadable module if different from building
30599 # a shared archive.
30600 module_cmds=$lt_module_cmds
30601 module_expsym_cmds=$lt_module_expsym_cmds
30602
30603 # Whether we are building with GNU ld or not.
30604 with_gnu_ld=$lt_with_gnu_ld
30605
30606 # Flag that allows shared libraries with undefined symbols to be built.
30607 allow_undefined_flag=$lt_allow_undefined_flag
30608
30609 # Flag that enforces no undefined symbols.
30610 no_undefined_flag=$lt_no_undefined_flag
30611
30612 # Flag to hardcode \$libdir into a binary during linking.
30613 # This must work even if \$libdir does not exist
30614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30615
30616 # If ld is used when linking, flag to hardcode \$libdir into a binary
30617 # during linking.  This must work even if \$libdir does not exist.
30618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30619
30620 # Whether we need a single "-rpath" flag with a separated argument.
30621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30622
30623 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30624 # DIR into the resulting binary.
30625 hardcode_direct=$hardcode_direct
30626
30627 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30628 # DIR into the resulting binary and the resulting library dependency is
30629 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30630 # library is relocated.
30631 hardcode_direct_absolute=$hardcode_direct_absolute
30632
30633 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30634 # into the resulting binary.
30635 hardcode_minus_L=$hardcode_minus_L
30636
30637 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30638 # into the resulting binary.
30639 hardcode_shlibpath_var=$hardcode_shlibpath_var
30640
30641 # Set to "yes" if building a shared library automatically hardcodes DIR
30642 # into the library and all subsequent libraries and executables linked
30643 # against it.
30644 hardcode_automatic=$hardcode_automatic
30645
30646 # Set to yes if linker adds runtime paths of dependent libraries
30647 # to runtime path list.
30648 inherit_rpath=$inherit_rpath
30649
30650 # Whether libtool must link a program against all its dependency libraries.
30651 link_all_deplibs=$link_all_deplibs
30652
30653 # Fix the shell variable \$srcfile for the compiler.
30654 fix_srcfile_path=$lt_fix_srcfile_path
30655
30656 # Set to "yes" if exported symbols are required.
30657 always_export_symbols=$always_export_symbols
30658
30659 # The commands to list exported symbols.
30660 export_symbols_cmds=$lt_export_symbols_cmds
30661
30662 # Symbols that should not be listed in the preloaded symbols.
30663 exclude_expsyms=$lt_exclude_expsyms
30664
30665 # Symbols that must always be exported.
30666 include_expsyms=$lt_include_expsyms
30667
30668 # Commands necessary for linking programs (against libraries) with templates.
30669 prelink_cmds=$lt_prelink_cmds
30670
30671 # Specify filename containing input files.
30672 file_list_spec=$lt_file_list_spec
30673
30674 # How to hardcode a shared library path into an executable.
30675 hardcode_action=$hardcode_action
30676
30677 # The directories searched by this compiler when creating a shared library.
30678 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30679
30680 # Dependencies to place before and after the objects being linked to
30681 # create a shared library.
30682 predep_objects=$lt_predep_objects
30683 postdep_objects=$lt_postdep_objects
30684 predeps=$lt_predeps
30685 postdeps=$lt_postdeps
30686
30687 # The library search path used internally by the compiler when linking
30688 # a shared library.
30689 compiler_lib_search_path=$lt_compiler_lib_search_path
30690
30691 # ### END LIBTOOL CONFIG
30692
30693 _LT_EOF
30694
30695   case $host_os in
30696   aix3*)
30697     cat <<\_LT_EOF >> "$cfgfile"
30698 # AIX sometimes has problems with the GCC collect2 program.  For some
30699 # reason, if we set the COLLECT_NAMES environment variable, the problems
30700 # vanish in a puff of smoke.
30701 if test "X${COLLECT_NAMES+set}" != Xset; then
30702   COLLECT_NAMES=
30703   export COLLECT_NAMES
30704 fi
30705 _LT_EOF
30706     ;;
30707   esac
30708
30709
30710 ltmain="$ac_aux_dir/ltmain.sh"
30711
30712
30713   # We use sed instead of cat because bash on DJGPP gets confused if
30714   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30715   # text mode, it properly converts lines to CR/LF.  This bash problem
30716   # is reportedly fixed, but why not run on old versions too?
30717   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30718     || (rm -f "$cfgfile"; exit 1)
30719
30720   case $xsi_shell in
30721   yes)
30722     cat << \_LT_EOF >> "$cfgfile"
30723
30724 # func_dirname file append nondir_replacement
30725 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30726 # otherwise set result to NONDIR_REPLACEMENT.
30727 func_dirname ()
30728 {
30729   case ${1} in
30730     */*) func_dirname_result="${1%/*}${2}" ;;
30731     *  ) func_dirname_result="${3}" ;;
30732   esac
30733 }
30734
30735 # func_basename file
30736 func_basename ()
30737 {
30738   func_basename_result="${1##*/}"
30739 }
30740
30741 # func_dirname_and_basename file append nondir_replacement
30742 # perform func_basename and func_dirname in a single function
30743 # call:
30744 #   dirname:  Compute the dirname of FILE.  If nonempty,
30745 #             add APPEND to the result, otherwise set result
30746 #             to NONDIR_REPLACEMENT.
30747 #             value returned in "$func_dirname_result"
30748 #   basename: Compute filename of FILE.
30749 #             value retuned in "$func_basename_result"
30750 # Implementation must be kept synchronized with func_dirname
30751 # and func_basename. For efficiency, we do not delegate to
30752 # those functions but instead duplicate the functionality here.
30753 func_dirname_and_basename ()
30754 {
30755   case ${1} in
30756     */*) func_dirname_result="${1%/*}${2}" ;;
30757     *  ) func_dirname_result="${3}" ;;
30758   esac
30759   func_basename_result="${1##*/}"
30760 }
30761
30762 # func_stripname prefix suffix name
30763 # strip PREFIX and SUFFIX off of NAME.
30764 # PREFIX and SUFFIX must not contain globbing or regex special
30765 # characters, hashes, percent signs, but SUFFIX may contain a leading
30766 # dot (in which case that matches only a dot).
30767 func_stripname ()
30768 {
30769   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30770   # positional parameters, so assign one to ordinary parameter first.
30771   func_stripname_result=${3}
30772   func_stripname_result=${func_stripname_result#"${1}"}
30773   func_stripname_result=${func_stripname_result%"${2}"}
30774 }
30775
30776 # func_opt_split
30777 func_opt_split ()
30778 {
30779   func_opt_split_opt=${1%%=*}
30780   func_opt_split_arg=${1#*=}
30781 }
30782
30783 # func_lo2o object
30784 func_lo2o ()
30785 {
30786   case ${1} in
30787     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30788     *)    func_lo2o_result=${1} ;;
30789   esac
30790 }
30791
30792 # func_xform libobj-or-source
30793 func_xform ()
30794 {
30795   func_xform_result=${1%.*}.lo
30796 }
30797
30798 # func_arith arithmetic-term...
30799 func_arith ()
30800 {
30801   func_arith_result=$(( $* ))
30802 }
30803
30804 # func_len string
30805 # STRING may not start with a hyphen.
30806 func_len ()
30807 {
30808   func_len_result=${#1}
30809 }
30810
30811 _LT_EOF
30812     ;;
30813   *) # Bourne compatible functions.
30814     cat << \_LT_EOF >> "$cfgfile"
30815
30816 # func_dirname file append nondir_replacement
30817 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30818 # otherwise set result to NONDIR_REPLACEMENT.
30819 func_dirname ()
30820 {
30821   # Extract subdirectory from the argument.
30822   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30823   if test "X$func_dirname_result" = "X${1}"; then
30824     func_dirname_result="${3}"
30825   else
30826     func_dirname_result="$func_dirname_result${2}"
30827   fi
30828 }
30829
30830 # func_basename file
30831 func_basename ()
30832 {
30833   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30834 }
30835
30836
30837 # func_stripname prefix suffix name
30838 # strip PREFIX and SUFFIX off of NAME.
30839 # PREFIX and SUFFIX must not contain globbing or regex special
30840 # characters, hashes, percent signs, but SUFFIX may contain a leading
30841 # dot (in which case that matches only a dot).
30842 # func_strip_suffix prefix name
30843 func_stripname ()
30844 {
30845   case ${2} in
30846     .*) func_stripname_result=`$ECHO "X${3}" \
30847            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30848     *)  func_stripname_result=`$ECHO "X${3}" \
30849            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30850   esac
30851 }
30852
30853 # sed scripts:
30854 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30855 my_sed_long_arg='1s/^-[^=]*=//'
30856
30857 # func_opt_split
30858 func_opt_split ()
30859 {
30860   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30861   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30862 }
30863
30864 # func_lo2o object
30865 func_lo2o ()
30866 {
30867   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30868 }
30869
30870 # func_xform libobj-or-source
30871 func_xform ()
30872 {
30873   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
30874 }
30875
30876 # func_arith arithmetic-term...
30877 func_arith ()
30878 {
30879   func_arith_result=`expr "$@"`
30880 }
30881
30882 # func_len string
30883 # STRING may not start with a hyphen.
30884 func_len ()
30885 {
30886   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30887 }
30888
30889 _LT_EOF
30890 esac
30891
30892 case $lt_shell_append in
30893   yes)
30894     cat << \_LT_EOF >> "$cfgfile"
30895
30896 # func_append var value
30897 # Append VALUE to the end of shell variable VAR.
30898 func_append ()
30899 {
30900   eval "$1+=\$2"
30901 }
30902 _LT_EOF
30903     ;;
30904   *)
30905     cat << \_LT_EOF >> "$cfgfile"
30906
30907 # func_append var value
30908 # Append VALUE to the end of shell variable VAR.
30909 func_append ()
30910 {
30911   eval "$1=\$$1\$2"
30912 }
30913
30914 _LT_EOF
30915     ;;
30916   esac
30917
30918
30919   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30920     || (rm -f "$cfgfile"; exit 1)
30921
30922   mv -f "$cfgfile" "$ofile" ||
30923     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30924   chmod +x "$ofile"
30925
30926
30927     cat <<_LT_EOF >> "$ofile"
30928
30929 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30930
30931 # The linker used to build libraries.
30932 LD=$lt_LD_CXX
30933
30934 # Commands used to build an old-style archive.
30935 old_archive_cmds=$lt_old_archive_cmds_CXX
30936
30937 # A language specific compiler.
30938 CC=$lt_compiler_CXX
30939
30940 # Is the compiler the GNU compiler?
30941 with_gcc=$GCC_CXX
30942
30943 # Compiler flag to turn off builtin functions.
30944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30945
30946 # How to pass a linker flag through the compiler.
30947 wl=$lt_lt_prog_compiler_wl_CXX
30948
30949 # Additional compiler flags for building library objects.
30950 pic_flag=$lt_lt_prog_compiler_pic_CXX
30951
30952 # Compiler flag to prevent dynamic linking.
30953 link_static_flag=$lt_lt_prog_compiler_static_CXX
30954
30955 # Does compiler simultaneously support -c and -o options?
30956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30957
30958 # Whether or not to add -lc for building shared libraries.
30959 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30960
30961 # Whether or not to disallow shared libs when runtime libs are static.
30962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30963
30964 # Compiler flag to allow reflexive dlopens.
30965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30966
30967 # Compiler flag to generate shared objects directly from archives.
30968 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30969
30970 # Whether the compiler copes with passing no objects directly.
30971 compiler_needs_object=$lt_compiler_needs_object_CXX
30972
30973 # Create an old-style archive from a shared archive.
30974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30975
30976 # Create a temporary old-style archive to link instead of a shared archive.
30977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30978
30979 # Commands used to build a shared archive.
30980 archive_cmds=$lt_archive_cmds_CXX
30981 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30982
30983 # Commands used to build a loadable module if different from building
30984 # a shared archive.
30985 module_cmds=$lt_module_cmds_CXX
30986 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30987
30988 # Whether we are building with GNU ld or not.
30989 with_gnu_ld=$lt_with_gnu_ld_CXX
30990
30991 # Flag that allows shared libraries with undefined symbols to be built.
30992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30993
30994 # Flag that enforces no undefined symbols.
30995 no_undefined_flag=$lt_no_undefined_flag_CXX
30996
30997 # Flag to hardcode \$libdir into a binary during linking.
30998 # This must work even if \$libdir does not exist
30999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31000
31001 # If ld is used when linking, flag to hardcode \$libdir into a binary
31002 # during linking.  This must work even if \$libdir does not exist.
31003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31004
31005 # Whether we need a single "-rpath" flag with a separated argument.
31006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31007
31008 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31009 # DIR into the resulting binary.
31010 hardcode_direct=$hardcode_direct_CXX
31011
31012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31013 # DIR into the resulting binary and the resulting library dependency is
31014 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31015 # library is relocated.
31016 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31017
31018 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31019 # into the resulting binary.
31020 hardcode_minus_L=$hardcode_minus_L_CXX
31021
31022 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31023 # into the resulting binary.
31024 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31025
31026 # Set to "yes" if building a shared library automatically hardcodes DIR
31027 # into the library and all subsequent libraries and executables linked
31028 # against it.
31029 hardcode_automatic=$hardcode_automatic_CXX
31030
31031 # Set to yes if linker adds runtime paths of dependent libraries
31032 # to runtime path list.
31033 inherit_rpath=$inherit_rpath_CXX
31034
31035 # Whether libtool must link a program against all its dependency libraries.
31036 link_all_deplibs=$link_all_deplibs_CXX
31037
31038 # Fix the shell variable \$srcfile for the compiler.
31039 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31040
31041 # Set to "yes" if exported symbols are required.
31042 always_export_symbols=$always_export_symbols_CXX
31043
31044 # The commands to list exported symbols.
31045 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31046
31047 # Symbols that should not be listed in the preloaded symbols.
31048 exclude_expsyms=$lt_exclude_expsyms_CXX
31049
31050 # Symbols that must always be exported.
31051 include_expsyms=$lt_include_expsyms_CXX
31052
31053 # Commands necessary for linking programs (against libraries) with templates.
31054 prelink_cmds=$lt_prelink_cmds_CXX
31055
31056 # Specify filename containing input files.
31057 file_list_spec=$lt_file_list_spec_CXX
31058
31059 # How to hardcode a shared library path into an executable.
31060 hardcode_action=$hardcode_action_CXX
31061
31062 # The directories searched by this compiler when creating a shared library.
31063 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31064
31065 # Dependencies to place before and after the objects being linked to
31066 # create a shared library.
31067 predep_objects=$lt_predep_objects_CXX
31068 postdep_objects=$lt_postdep_objects_CXX
31069 predeps=$lt_predeps_CXX
31070 postdeps=$lt_postdeps_CXX
31071
31072 # The library search path used internally by the compiler when linking
31073 # a shared library.
31074 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31075
31076 # ### END LIBTOOL TAG CONFIG: CXX
31077 _LT_EOF
31078
31079
31080     cat <<_LT_EOF >> "$ofile"
31081
31082 # ### BEGIN LIBTOOL TAG CONFIG: F77
31083
31084 # The linker used to build libraries.
31085 LD=$lt_LD_F77
31086
31087 # Commands used to build an old-style archive.
31088 old_archive_cmds=$lt_old_archive_cmds_F77
31089
31090 # A language specific compiler.
31091 CC=$lt_compiler_F77
31092
31093 # Is the compiler the GNU compiler?
31094 with_gcc=$GCC_F77
31095
31096 # Compiler flag to turn off builtin functions.
31097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
31098
31099 # How to pass a linker flag through the compiler.
31100 wl=$lt_lt_prog_compiler_wl_F77
31101
31102 # Additional compiler flags for building library objects.
31103 pic_flag=$lt_lt_prog_compiler_pic_F77
31104
31105 # Compiler flag to prevent dynamic linking.
31106 link_static_flag=$lt_lt_prog_compiler_static_F77
31107
31108 # Does compiler simultaneously support -c and -o options?
31109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
31110
31111 # Whether or not to add -lc for building shared libraries.
31112 build_libtool_need_lc=$archive_cmds_need_lc_F77
31113
31114 # Whether or not to disallow shared libs when runtime libs are static.
31115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
31116
31117 # Compiler flag to allow reflexive dlopens.
31118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
31119
31120 # Compiler flag to generate shared objects directly from archives.
31121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
31122
31123 # Whether the compiler copes with passing no objects directly.
31124 compiler_needs_object=$lt_compiler_needs_object_F77
31125
31126 # Create an old-style archive from a shared archive.
31127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
31128
31129 # Create a temporary old-style archive to link instead of a shared archive.
31130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
31131
31132 # Commands used to build a shared archive.
31133 archive_cmds=$lt_archive_cmds_F77
31134 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
31135
31136 # Commands used to build a loadable module if different from building
31137 # a shared archive.
31138 module_cmds=$lt_module_cmds_F77
31139 module_expsym_cmds=$lt_module_expsym_cmds_F77
31140
31141 # Whether we are building with GNU ld or not.
31142 with_gnu_ld=$lt_with_gnu_ld_F77
31143
31144 # Flag that allows shared libraries with undefined symbols to be built.
31145 allow_undefined_flag=$lt_allow_undefined_flag_F77
31146
31147 # Flag that enforces no undefined symbols.
31148 no_undefined_flag=$lt_no_undefined_flag_F77
31149
31150 # Flag to hardcode \$libdir into a binary during linking.
31151 # This must work even if \$libdir does not exist
31152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
31153
31154 # If ld is used when linking, flag to hardcode \$libdir into a binary
31155 # during linking.  This must work even if \$libdir does not exist.
31156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
31157
31158 # Whether we need a single "-rpath" flag with a separated argument.
31159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
31160
31161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31162 # DIR into the resulting binary.
31163 hardcode_direct=$hardcode_direct_F77
31164
31165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31166 # DIR into the resulting binary and the resulting library dependency is
31167 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31168 # library is relocated.
31169 hardcode_direct_absolute=$hardcode_direct_absolute_F77
31170
31171 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31172 # into the resulting binary.
31173 hardcode_minus_L=$hardcode_minus_L_F77
31174
31175 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31176 # into the resulting binary.
31177 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
31178
31179 # Set to "yes" if building a shared library automatically hardcodes DIR
31180 # into the library and all subsequent libraries and executables linked
31181 # against it.
31182 hardcode_automatic=$hardcode_automatic_F77
31183
31184 # Set to yes if linker adds runtime paths of dependent libraries
31185 # to runtime path list.
31186 inherit_rpath=$inherit_rpath_F77
31187
31188 # Whether libtool must link a program against all its dependency libraries.
31189 link_all_deplibs=$link_all_deplibs_F77
31190
31191 # Fix the shell variable \$srcfile for the compiler.
31192 fix_srcfile_path=$lt_fix_srcfile_path_F77
31193
31194 # Set to "yes" if exported symbols are required.
31195 always_export_symbols=$always_export_symbols_F77
31196
31197 # The commands to list exported symbols.
31198 export_symbols_cmds=$lt_export_symbols_cmds_F77
31199
31200 # Symbols that should not be listed in the preloaded symbols.
31201 exclude_expsyms=$lt_exclude_expsyms_F77
31202
31203 # Symbols that must always be exported.
31204 include_expsyms=$lt_include_expsyms_F77
31205
31206 # Commands necessary for linking programs (against libraries) with templates.
31207 prelink_cmds=$lt_prelink_cmds_F77
31208
31209 # Specify filename containing input files.
31210 file_list_spec=$lt_file_list_spec_F77
31211
31212 # How to hardcode a shared library path into an executable.
31213 hardcode_action=$hardcode_action_F77
31214
31215 # The directories searched by this compiler when creating a shared library.
31216 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
31217
31218 # Dependencies to place before and after the objects being linked to
31219 # create a shared library.
31220 predep_objects=$lt_predep_objects_F77
31221 postdep_objects=$lt_postdep_objects_F77
31222 predeps=$lt_predeps_F77
31223 postdeps=$lt_postdeps_F77
31224
31225 # The library search path used internally by the compiler when linking
31226 # a shared library.
31227 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
31228
31229 # ### END LIBTOOL TAG CONFIG: F77
31230 _LT_EOF
31231
31232  ;;
31233
31234   esac
31235 done # for ac_tag
31236
31237
31238 as_fn_exit 0
31239 _ACEOF
31240 ac_clean_files=$ac_clean_files_save
31241
31242 test $ac_write_fail = 0 ||
31243   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31244
31245
31246 # configure is writing to config.log, and then calls config.status.
31247 # config.status does its own redirection, appending to config.log.
31248 # Unfortunately, on DOS this fails, as config.log is still kept open
31249 # by configure, so config.status won't be able to write to it; its
31250 # output is simply discarded.  So we exec the FD to /dev/null,
31251 # effectively closing config.log, so it can be properly (re)opened and
31252 # appended to by config.status.  When coming back to configure, we
31253 # need to make the FD available again.
31254 if test "$no_create" != yes; then
31255   ac_cs_success=:
31256   ac_config_status_args=
31257   test "$silent" = yes &&
31258     ac_config_status_args="$ac_config_status_args --quiet"
31259   exec 5>/dev/null
31260   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31261   exec 5>>config.log
31262   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31263   # would make configure fail if this is the last instruction.
31264   $ac_cs_success || as_fn_exit $?
31265 fi
31266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31267   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31269 fi
31270