Import upstream 5.1.3.
[platform/upstream/gmp.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for GNU MP 5.1.3.
5 #
6 # Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
7 #
8 #
9 #
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007, 2008, 2009, 2010, 2011, 2012, 2013 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-1996, 1998-2012 Free Software Foundation, Inc.
31 #
32 #
33 # This configure script is free software; the Free Software Foundation
34 # gives unlimited permission to copy, distribute and modify it.
35 ## -------------------- ##
36 ## M4sh Initialization. ##
37 ## -------------------- ##
38
39 # Be more Bourne compatible
40 DUALCASE=1; export DUALCASE # for MKS sh
41 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42   emulate sh
43   NULLCMD=:
44   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45   # is contrary to our usage.  Disable this feature.
46   alias -g '${1+"$@"}'='"$@"'
47   setopt NO_GLOB_SUBST
48 else
49   case `(set -o) 2>/dev/null` in #(
50   *posix*) :
51     set -o posix ;; #(
52   *) :
53      ;;
54 esac
55 fi
56
57
58 as_nl='
59 '
60 export as_nl
61 # Printing a long string crashes Solaris 7 /usr/bin/printf.
62 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
63 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
64 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
65 # Prefer a ksh shell builtin over an external printf program on Solaris,
66 # but without wasting forks for bash or zsh.
67 if test -z "$BASH_VERSION$ZSH_VERSION" \
68     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
69   as_echo='print -r --'
70   as_echo_n='print -rn --'
71 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72   as_echo='printf %s\n'
73   as_echo_n='printf %s'
74 else
75   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
76     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
77     as_echo_n='/usr/ucb/echo -n'
78   else
79     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
80     as_echo_n_body='eval
81       arg=$1;
82       case $arg in #(
83       *"$as_nl"*)
84         expr "X$arg" : "X\\(.*\\)$as_nl";
85         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
86       esac;
87       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
88     '
89     export as_echo_n_body
90     as_echo_n='sh -c $as_echo_n_body as_echo'
91   fi
92   export as_echo_body
93   as_echo='sh -c $as_echo_body as_echo'
94 fi
95
96 # The user is always right.
97 if test "${PATH_SEPARATOR+set}" != set; then
98   PATH_SEPARATOR=:
99   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
100     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
101       PATH_SEPARATOR=';'
102   }
103 fi
104
105
106 # IFS
107 # We need space, tab and new line, in precisely that order.  Quoting is
108 # there to prevent editors from complaining about space-tab.
109 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
110 # splitting by setting IFS to empty value.)
111 IFS=" ""        $as_nl"
112
113 # Find who we are.  Look in the path if we contain no directory separator.
114 as_myself=
115 case $0 in #((
116   *[\\/]* ) as_myself=$0 ;;
117   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH
119 do
120   IFS=$as_save_IFS
121   test -z "$as_dir" && as_dir=.
122     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123   done
124 IFS=$as_save_IFS
125
126      ;;
127 esac
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
131   as_myself=$0
132 fi
133 if test ! -f "$as_myself"; then
134   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
135   exit 1
136 fi
137
138 # Unset variables that we do not need and which cause bugs (e.g. in
139 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
140 # suppresses any "Segmentation fault" message there.  '((' could
141 # trigger a bug in pdksh 5.2.14.
142 for as_var in BASH_ENV ENV MAIL MAILPATH
143 do eval test x\${$as_var+set} = xset \
144   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
145 done
146 PS1='$ '
147 PS2='> '
148 PS4='+ '
149
150 # NLS nuisances.
151 LC_ALL=C
152 export LC_ALL
153 LANGUAGE=C
154 export LANGUAGE
155
156 # CDPATH.
157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
158
159 # Use a proper internal environment variable to ensure we don't fall
160   # into an infinite loop, continuously re-executing ourselves.
161   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
162     _as_can_reexec=no; export _as_can_reexec;
163     # We cannot yet assume a decent shell, so we have to provide a
164 # neutralization value for shells without unset; and this also
165 # works around shells that cannot unset nonexistent variables.
166 # Preserve -v and -x to the replacement shell.
167 BASH_ENV=/dev/null
168 ENV=/dev/null
169 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
170 case $- in # ((((
171   *v*x* | *x*v* ) as_opts=-vx ;;
172   *v* ) as_opts=-v ;;
173   *x* ) as_opts=-x ;;
174   * ) as_opts= ;;
175 esac
176 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
177 # Admittedly, this is quite paranoid, since all the known shells bail
178 # out after a failed `exec'.
179 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
180 as_fn_exit 255
181   fi
182   # We don't want this to propagate to other subprocesses.
183           { _as_can_reexec=; unset _as_can_reexec;}
184 if test "x$CONFIG_SHELL" = x; then
185   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
186   emulate sh
187   NULLCMD=:
188   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
189   # is contrary to our usage.  Disable this feature.
190   alias -g '\${1+\"\$@\"}'='\"\$@\"'
191   setopt NO_GLOB_SUBST
192 else
193   case \`(set -o) 2>/dev/null\` in #(
194   *posix*) :
195     set -o posix ;; #(
196   *) :
197      ;;
198 esac
199 fi
200 "
201   as_required="as_fn_return () { (exit \$1); }
202 as_fn_success () { as_fn_return 0; }
203 as_fn_failure () { as_fn_return 1; }
204 as_fn_ret_success () { return 0; }
205 as_fn_ret_failure () { return 1; }
206
207 exitcode=0
208 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
209 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
210 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
211 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
212 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
213
214 else
215   exitcode=1; echo positional parameters were not saved.
216 fi
217 test x\$exitcode = x0 || exit 1
218 test -x / || exit 1"
219   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
220   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
221   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
222   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
223 test \$(( 1 + 1 )) = 2 || exit 1
224
225   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
226     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
227     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
228     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
229     PATH=/empty FPATH=/empty; export PATH FPATH
230     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
231       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
232   if (eval "$as_required") 2>/dev/null; then :
233   as_have_required=yes
234 else
235   as_have_required=no
236 fi
237   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
238
239 else
240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 as_found=false
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 do
244   IFS=$as_save_IFS
245   test -z "$as_dir" && as_dir=.
246   as_found=:
247   case $as_dir in #(
248          /*)
249            for as_base in sh bash ksh sh5; do
250              # Try only shells that exist, to save several forks.
251              as_shell=$as_dir/$as_base
252              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
253                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
254   CONFIG_SHELL=$as_shell as_have_required=yes
255                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
256   break 2
257 fi
258 fi
259            done;;
260        esac
261   as_found=false
262 done
263 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
264               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
265   CONFIG_SHELL=$SHELL as_have_required=yes
266 fi; }
267 IFS=$as_save_IFS
268
269
270       if test "x$CONFIG_SHELL" != x; then :
271   export CONFIG_SHELL
272              # We cannot yet assume a decent shell, so we have to provide a
273 # neutralization value for shells without unset; and this also
274 # works around shells that cannot unset nonexistent variables.
275 # Preserve -v and -x to the replacement shell.
276 BASH_ENV=/dev/null
277 ENV=/dev/null
278 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
279 case $- in # ((((
280   *v*x* | *x*v* ) as_opts=-vx ;;
281   *v* ) as_opts=-v ;;
282   *x* ) as_opts=-x ;;
283   * ) as_opts= ;;
284 esac
285 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
286 # Admittedly, this is quite paranoid, since all the known shells bail
287 # out after a failed `exec'.
288 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
289 exit 255
290 fi
291
292     if test x$as_have_required = xno; then :
293   $as_echo "$0: This script requires a shell more modern than all"
294   $as_echo "$0: the shells that I found on your system."
295   if test x${ZSH_VERSION+set} = xset ; then
296     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
297     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
298   else
299     $as_echo "$0: Please tell bug-autoconf@gnu.org and
300 $0: gmp-bugs@gmplib.org, see
301 $0: http://gmplib.org/manual/Reporting-Bugs.html about your
302 $0: system, including any error possibly output before this
303 $0: message. Then install a modern shell, or manually run
304 $0: the script under such a shell if you do have one."
305   fi
306   exit 1
307 fi
308 fi
309 fi
310 SHELL=${CONFIG_SHELL-/bin/sh}
311 export SHELL
312 # Unset more variables known to interfere with behavior of common tools.
313 CLICOLOR_FORCE= GREP_OPTIONS=
314 unset CLICOLOR_FORCE GREP_OPTIONS
315
316 ## --------------------- ##
317 ## M4sh Shell Functions. ##
318 ## --------------------- ##
319 # as_fn_unset VAR
320 # ---------------
321 # Portably unset VAR.
322 as_fn_unset ()
323 {
324   { eval $1=; unset $1;}
325 }
326 as_unset=as_fn_unset
327
328 # as_fn_set_status STATUS
329 # -----------------------
330 # Set $? to STATUS, without forking.
331 as_fn_set_status ()
332 {
333   return $1
334 } # as_fn_set_status
335
336 # as_fn_exit STATUS
337 # -----------------
338 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
339 as_fn_exit ()
340 {
341   set +e
342   as_fn_set_status $1
343   exit $1
344 } # as_fn_exit
345
346 # as_fn_mkdir_p
347 # -------------
348 # Create "$as_dir" as a directory, including parents if necessary.
349 as_fn_mkdir_p ()
350 {
351
352   case $as_dir in #(
353   -*) as_dir=./$as_dir;;
354   esac
355   test -d "$as_dir" || eval $as_mkdir_p || {
356     as_dirs=
357     while :; do
358       case $as_dir in #(
359       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
360       *) as_qdir=$as_dir;;
361       esac
362       as_dirs="'$as_qdir' $as_dirs"
363       as_dir=`$as_dirname -- "$as_dir" ||
364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
365          X"$as_dir" : 'X\(//\)[^/]' \| \
366          X"$as_dir" : 'X\(//\)$' \| \
367          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
368 $as_echo X"$as_dir" |
369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
370             s//\1/
371             q
372           }
373           /^X\(\/\/\)[^/].*/{
374             s//\1/
375             q
376           }
377           /^X\(\/\/\)$/{
378             s//\1/
379             q
380           }
381           /^X\(\/\).*/{
382             s//\1/
383             q
384           }
385           s/.*/./; q'`
386       test -d "$as_dir" && break
387     done
388     test -z "$as_dirs" || eval "mkdir $as_dirs"
389   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
390
391
392 } # as_fn_mkdir_p
393
394 # as_fn_executable_p FILE
395 # -----------------------
396 # Test if FILE is an executable regular file.
397 as_fn_executable_p ()
398 {
399   test -f "$1" && test -x "$1"
400 } # as_fn_executable_p
401 # as_fn_append VAR VALUE
402 # ----------------------
403 # Append the text in VALUE to the end of the definition contained in VAR. Take
404 # advantage of any shell optimizations that allow amortized linear growth over
405 # repeated appends, instead of the typical quadratic growth present in naive
406 # implementations.
407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
408   eval 'as_fn_append ()
409   {
410     eval $1+=\$2
411   }'
412 else
413   as_fn_append ()
414   {
415     eval $1=\$$1\$2
416   }
417 fi # as_fn_append
418
419 # as_fn_arith ARG...
420 # ------------------
421 # Perform arithmetic evaluation on the ARGs, and store the result in the
422 # global $as_val. Take advantage of shells that can avoid forks. The arguments
423 # must be portable across $(()) and expr.
424 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
425   eval 'as_fn_arith ()
426   {
427     as_val=$(( $* ))
428   }'
429 else
430   as_fn_arith ()
431   {
432     as_val=`expr "$@" || test $? -eq 1`
433   }
434 fi # as_fn_arith
435
436
437 # as_fn_error STATUS ERROR [LINENO LOG_FD]
438 # ----------------------------------------
439 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
440 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
441 # script with STATUS, using 1 if that was 0.
442 as_fn_error ()
443 {
444   as_status=$1; test $as_status -eq 0 && as_status=1
445   if test "$4"; then
446     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
447     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
448   fi
449   $as_echo "$as_me: error: $2" >&2
450   as_fn_exit $as_status
451 } # as_fn_error
452
453 if expr a : '\(a\)' >/dev/null 2>&1 &&
454    test "X`expr 00001 : '.*\(...\)'`" = X001; then
455   as_expr=expr
456 else
457   as_expr=false
458 fi
459
460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
461   as_basename=basename
462 else
463   as_basename=false
464 fi
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 as_me=`$as_basename -- "$0" ||
473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
474          X"$0" : 'X\(//\)$' \| \
475          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
476 $as_echo X/"$0" |
477     sed '/^.*\/\([^/][^/]*\)\/*$/{
478             s//\1/
479             q
480           }
481           /^X\/\(\/\/\)$/{
482             s//\1/
483             q
484           }
485           /^X\/\(\/\).*/{
486             s//\1/
487             q
488           }
489           s/.*/./; q'`
490
491 # Avoid depending upon Character Ranges.
492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
495 as_cr_digits='0123456789'
496 as_cr_alnum=$as_cr_Letters$as_cr_digits
497
498
499   as_lineno_1=$LINENO as_lineno_1a=$LINENO
500   as_lineno_2=$LINENO as_lineno_2a=$LINENO
501   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
502   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
503   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
504   sed -n '
505     p
506     /[$]LINENO/=
507   ' <$as_myself |
508     sed '
509       s/[$]LINENO.*/&-/
510       t lineno
511       b
512       :lineno
513       N
514       :loop
515       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516       t loop
517       s/-\n.*//
518     ' >$as_me.lineno &&
519   chmod +x "$as_me.lineno" ||
520     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
521
522   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
523   # already done that, so ensure we don't try to do so again and fall
524   # in an infinite loop.  This has already happened in practice.
525   _as_can_reexec=no; export _as_can_reexec
526   # Don't try to exec as it changes $[0], causing all sort of problems
527   # (the dirname of $[0] is not the place where we might find the
528   # original and so on.  Autoconf is especially sensitive to this).
529   . "./$as_me.lineno"
530   # Exit status is that of the last command.
531   exit
532 }
533
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
536 -n*)
537   case `echo 'xy\c'` in
538   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
539   xy)  ECHO_C='\c';;
540   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
541        ECHO_T=' ';;
542   esac;;
543 *)
544   ECHO_N='-n';;
545 esac
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549   rm -f conf$$.dir/conf$$.file
550 else
551   rm -f conf$$.dir
552   mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555   if ln -s conf$$.file conf$$ 2>/dev/null; then
556     as_ln_s='ln -s'
557     # ... but there are two gotchas:
558     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560     # In both cases, we have to default to `cp -pR'.
561     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562       as_ln_s='cp -pR'
563   elif ln conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s=ln
565   else
566     as_ln_s='cp -pR'
567   fi
568 else
569   as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575   as_mkdir_p='mkdir -p "$as_dir"'
576 else
577   test -d ./-p && rmdir ./-p
578   as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590 SHELL=${CONFIG_SHELL-/bin/sh}
591
592
593 test -n "$DJDIR" || exec 7<&0 </dev/null
594 exec 6>&1
595
596 # Name of the host.
597 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
598 # so uname gets run too.
599 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
600
601 #
602 # Initializations.
603 #
604 ac_default_prefix=/usr/local
605 ac_clean_files=
606 ac_config_libobj_dir=.
607 LIBOBJS=
608 cross_compiling=no
609 subdirs=
610 MFLAGS=
611 MAKEFLAGS=
612
613 # Identity of this package.
614 PACKAGE_NAME='GNU MP'
615 PACKAGE_TARNAME='gmp'
616 PACKAGE_VERSION='5.1.3'
617 PACKAGE_STRING='GNU MP 5.1.3'
618 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html'
619 PACKAGE_URL='http://www.gnu.org/software/gmp/'
620
621 ac_unique_file="gmp-impl.h"
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stdio.h>
625 #ifdef HAVE_SYS_TYPES_H
626 # include <sys/types.h>
627 #endif
628 #ifdef HAVE_SYS_STAT_H
629 # include <sys/stat.h>
630 #endif
631 #ifdef STDC_HEADERS
632 # include <stdlib.h>
633 # include <stddef.h>
634 #else
635 # ifdef HAVE_STDLIB_H
636 #  include <stdlib.h>
637 # endif
638 #endif
639 #ifdef HAVE_STRING_H
640 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
641 #  include <memory.h>
642 # endif
643 # include <string.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_INTTYPES_H
649 # include <inttypes.h>
650 #endif
651 #ifdef HAVE_STDINT_H
652 # include <stdint.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 LEXLIB
663 LEX_OUTPUT_ROOT
664 LEX
665 YFLAGS
666 YACC
667 LIBREADLINE
668 WITH_READLINE_01
669 LIBCURSES
670 HAVE_STACK_T_01
671 HAVE_SYS_RESOURCE_H_01
672 HAVE_SIGSTACK_01
673 HAVE_SIGALTSTACK_01
674 HAVE_SIGACTION_01
675 HAVE_GETTIMEOFDAY_01
676 HAVE_GETRUSAGE_01
677 HAVE_CPUTIME_01
678 HAVE_CLOCK_01
679 TUNE_SQR_OBJ
680 gmp_srclinks
681 mpn_objs_in_libgmp
682 mpn_objects
683 GMP_LIMB_BITS
684 M4
685 TUNE_LIBS
686 TAL_OBJECT
687 LIBM
688 ENABLE_STATIC_FALSE
689 ENABLE_STATIC_TRUE
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 ac_ct_AR
698 LN_S
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 LIBGMP_DLL
704 OBJDUMP
705 DLLTOOL
706 AS
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 AR
711 ASMFLAGS
712 EGREP
713 GREP
714 CXXCPP
715 WANT_CXX_FALSE
716 WANT_CXX_TRUE
717 ac_ct_CXX
718 CXXFLAGS
719 CXX
720 CCAS
721 LIBM_FOR_BUILD
722 U_FOR_BUILD
723 EXEEXT_FOR_BUILD
724 CPP_FOR_BUILD
725 CC_FOR_BUILD
726 CPP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 DEFN_LONG_LONG_LIMB
735 CALLING_CONVENTIONS_OBJS
736 SPEED_CYCLECOUNTER_OBJ
737 LIBGMPXX_LDFLAGS
738 LIBGMP_LDFLAGS
739 GMP_LDFLAGS
740 HAVE_HOST_CPU_FAMILY_powerpc
741 HAVE_HOST_CPU_FAMILY_power
742 ABI
743 GMP_NAIL_BITS
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_maintainer_mode
820 enable_assert
821 enable_alloca
822 enable_cxx
823 enable_assembly
824 enable_fft
825 enable_old_fft_full
826 enable_nails
827 enable_profiling
828 with_readline
829 enable_fat
830 enable_minithres
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_gnu_ld
836 with_sysroot
837 enable_libtool_lock
838 '
839       ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 ABI
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CPP
849 CC_FOR_BUILD
850 CPP_FOR_BUILD
851 CXX
852 CXXFLAGS
853 CCC
854 CXXCPP
855 M4
856 YACC
857 YFLAGS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912   # If the previous option needs an argument, assign it.
913   if test -n "$ac_prev"; then
914     eval $ac_prev=\$ac_option
915     ac_prev=
916     continue
917   fi
918
919   case $ac_option in
920   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921   *=)   ac_optarg= ;;
922   *)    ac_optarg=yes ;;
923   esac
924
925   # Accept the important Cygnus configure options, so we can diagnose typos.
926
927   case $ac_dashdash$ac_option in
928   --)
929     ac_dashdash=yes ;;
930
931   -bindir | --bindir | --bindi | --bind | --bin | --bi)
932     ac_prev=bindir ;;
933   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934     bindir=$ac_optarg ;;
935
936   -build | --build | --buil | --bui | --bu)
937     ac_prev=build_alias ;;
938   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939     build_alias=$ac_optarg ;;
940
941   -cache-file | --cache-file | --cache-fil | --cache-fi \
942   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943     ac_prev=cache_file ;;
944   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946     cache_file=$ac_optarg ;;
947
948   --config-cache | -C)
949     cache_file=config.cache ;;
950
951   -datadir | --datadir | --datadi | --datad)
952     ac_prev=datadir ;;
953   -datadir=* | --datadir=* | --datadi=* | --datad=*)
954     datadir=$ac_optarg ;;
955
956   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957   | --dataroo | --dataro | --datar)
958     ac_prev=datarootdir ;;
959   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961     datarootdir=$ac_optarg ;;
962
963   -disable-* | --disable-*)
964     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965     # Reject names that are not valid shell variable names.
966     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967       as_fn_error $? "invalid feature name: $ac_useropt"
968     ac_useropt_orig=$ac_useropt
969     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970     case $ac_user_opts in
971       *"
972 "enable_$ac_useropt"
973 "*) ;;
974       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975          ac_unrecognized_sep=', ';;
976     esac
977     eval enable_$ac_useropt=no ;;
978
979   -docdir | --docdir | --docdi | --doc | --do)
980     ac_prev=docdir ;;
981   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982     docdir=$ac_optarg ;;
983
984   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985     ac_prev=dvidir ;;
986   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987     dvidir=$ac_optarg ;;
988
989   -enable-* | --enable-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid feature name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "enable_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007   | --exec | --exe | --ex)
1008     ac_prev=exec_prefix ;;
1009   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011   | --exec=* | --exe=* | --ex=*)
1012     exec_prefix=$ac_optarg ;;
1013
1014   -gas | --gas | --ga | --g)
1015     # Obsolete; use --with-gas.
1016     with_gas=yes ;;
1017
1018   -help | --help | --hel | --he | -h)
1019     ac_init_help=long ;;
1020   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021     ac_init_help=recursive ;;
1022   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023     ac_init_help=short ;;
1024
1025   -host | --host | --hos | --ho)
1026     ac_prev=host_alias ;;
1027   -host=* | --host=* | --hos=* | --ho=*)
1028     host_alias=$ac_optarg ;;
1029
1030   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031     ac_prev=htmldir ;;
1032   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033   | --ht=*)
1034     htmldir=$ac_optarg ;;
1035
1036   -includedir | --includedir | --includedi | --included | --include \
1037   | --includ | --inclu | --incl | --inc)
1038     ac_prev=includedir ;;
1039   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040   | --includ=* | --inclu=* | --incl=* | --inc=*)
1041     includedir=$ac_optarg ;;
1042
1043   -infodir | --infodir | --infodi | --infod | --info | --inf)
1044     ac_prev=infodir ;;
1045   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046     infodir=$ac_optarg ;;
1047
1048   -libdir | --libdir | --libdi | --libd)
1049     ac_prev=libdir ;;
1050   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051     libdir=$ac_optarg ;;
1052
1053   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054   | --libexe | --libex | --libe)
1055     ac_prev=libexecdir ;;
1056   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057   | --libexe=* | --libex=* | --libe=*)
1058     libexecdir=$ac_optarg ;;
1059
1060   -localedir | --localedir | --localedi | --localed | --locale)
1061     ac_prev=localedir ;;
1062   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063     localedir=$ac_optarg ;;
1064
1065   -localstatedir | --localstatedir | --localstatedi | --localstated \
1066   | --localstate | --localstat | --localsta | --localst | --locals)
1067     ac_prev=localstatedir ;;
1068   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070     localstatedir=$ac_optarg ;;
1071
1072   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073     ac_prev=mandir ;;
1074   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075     mandir=$ac_optarg ;;
1076
1077   -nfp | --nfp | --nf)
1078     # Obsolete; use --without-fp.
1079     with_fp=no ;;
1080
1081   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082   | --no-cr | --no-c | -n)
1083     no_create=yes ;;
1084
1085   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087     no_recursion=yes ;;
1088
1089   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091   | --oldin | --oldi | --old | --ol | --o)
1092     ac_prev=oldincludedir ;;
1093   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096     oldincludedir=$ac_optarg ;;
1097
1098   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099     ac_prev=prefix ;;
1100   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101     prefix=$ac_optarg ;;
1102
1103   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104   | --program-pre | --program-pr | --program-p)
1105     ac_prev=program_prefix ;;
1106   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108     program_prefix=$ac_optarg ;;
1109
1110   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111   | --program-suf | --program-su | --program-s)
1112     ac_prev=program_suffix ;;
1113   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115     program_suffix=$ac_optarg ;;
1116
1117   -program-transform-name | --program-transform-name \
1118   | --program-transform-nam | --program-transform-na \
1119   | --program-transform-n | --program-transform- \
1120   | --program-transform | --program-transfor \
1121   | --program-transfo | --program-transf \
1122   | --program-trans | --program-tran \
1123   | --progr-tra | --program-tr | --program-t)
1124     ac_prev=program_transform_name ;;
1125   -program-transform-name=* | --program-transform-name=* \
1126   | --program-transform-nam=* | --program-transform-na=* \
1127   | --program-transform-n=* | --program-transform-=* \
1128   | --program-transform=* | --program-transfor=* \
1129   | --program-transfo=* | --program-transf=* \
1130   | --program-trans=* | --program-tran=* \
1131   | --progr-tra=* | --program-tr=* | --program-t=*)
1132     program_transform_name=$ac_optarg ;;
1133
1134   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135     ac_prev=pdfdir ;;
1136   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137     pdfdir=$ac_optarg ;;
1138
1139   -psdir | --psdir | --psdi | --psd | --ps)
1140     ac_prev=psdir ;;
1141   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142     psdir=$ac_optarg ;;
1143
1144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145   | -silent | --silent | --silen | --sile | --sil)
1146     silent=yes ;;
1147
1148   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149     ac_prev=sbindir ;;
1150   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151   | --sbi=* | --sb=*)
1152     sbindir=$ac_optarg ;;
1153
1154   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156   | --sharedst | --shareds | --shared | --share | --shar \
1157   | --sha | --sh)
1158     ac_prev=sharedstatedir ;;
1159   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162   | --sha=* | --sh=*)
1163     sharedstatedir=$ac_optarg ;;
1164
1165   -site | --site | --sit)
1166     ac_prev=site ;;
1167   -site=* | --site=* | --sit=*)
1168     site=$ac_optarg ;;
1169
1170   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171     ac_prev=srcdir ;;
1172   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173     srcdir=$ac_optarg ;;
1174
1175   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176   | --syscon | --sysco | --sysc | --sys | --sy)
1177     ac_prev=sysconfdir ;;
1178   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180     sysconfdir=$ac_optarg ;;
1181
1182   -target | --target | --targe | --targ | --tar | --ta | --t)
1183     ac_prev=target_alias ;;
1184   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185     target_alias=$ac_optarg ;;
1186
1187   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188     verbose=yes ;;
1189
1190   -version | --version | --versio | --versi | --vers | -V)
1191     ac_init_version=: ;;
1192
1193   -with-* | --with-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=\$ac_optarg ;;
1208
1209   -without-* | --without-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     case $ac_envvar in #(
1251       '' | [0-9]* | *[!_$as_cr_alnum]* )
1252       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253     esac
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274   case $enable_option_checking in
1275     no) ;;
1276     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278   esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283                 datadir sysconfdir sharedstatedir localstatedir includedir \
1284                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285                 libdir localedir mandir
1286 do
1287   eval ac_val=\$$ac_var
1288   # Remove trailing slashes.
1289   case $ac_val in
1290     */ )
1291       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292       eval $ac_var=\$ac_val;;
1293   esac
1294   # Be sure to have absolute directory names.
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329   as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334   ac_srcdir_defaulted=yes
1335   # Try the directory containing this script, then the parent directory.
1336   ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338          X"$as_myself" : 'X\(//\)[^/]' \| \
1339          X"$as_myself" : 'X\(//\)$' \| \
1340          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)[^/].*/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\).*/{
1355             s//\1/
1356             q
1357           }
1358           s/.*/./; q'`
1359   srcdir=$ac_confdir
1360   if test ! -r "$srcdir/$ac_unique_file"; then
1361     srcdir=..
1362   fi
1363 else
1364   ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373         pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376   srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_env_${ac_var}_value=\$${ac_var}
1387   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395   # Omit some internal or obsolete options to make the list less imposing.
1396   # This message is too long to be a string in the A/UX 3.1 sh.
1397   cat <<_ACEOF
1398 \`configure' configures GNU MP 5.1.3 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408   -h, --help              display this help and exit
1409       --help=short        display options specific to this package
1410       --help=recursive    display the short help of all the included packages
1411   -V, --version           display version information and exit
1412   -q, --quiet, --silent   do not print \`checking ...' messages
1413       --cache-file=FILE   cache test results in FILE [disabled]
1414   -C, --config-cache      alias for \`--cache-file=config.cache'
1415   -n, --no-create         do not create output files
1416       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419   --prefix=PREFIX         install architecture-independent files in PREFIX
1420                           [$ac_default_prefix]
1421   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                           [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432   --bindir=DIR            user executables [EPREFIX/bin]
1433   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434   --libexecdir=DIR        program executables [EPREFIX/libexec]
1435   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438   --libdir=DIR            object code libraries [EPREFIX/lib]
1439   --includedir=DIR        C header files [PREFIX/include]
1440   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443   --infodir=DIR           info documentation [DATAROOTDIR/info]
1444   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445   --mandir=DIR            man documentation [DATAROOTDIR/man]
1446   --docdir=DIR            documentation root [DATAROOTDIR/doc/gmp]
1447   --htmldir=DIR           html documentation [DOCDIR]
1448   --dvidir=DIR            dvi documentation [DOCDIR]
1449   --pdfdir=DIR            pdf documentation [DOCDIR]
1450   --psdir=DIR             ps documentation [DOCDIR]
1451 _ACEOF
1452
1453   cat <<\_ACEOF
1454
1455 Program names:
1456   --program-prefix=PREFIX            prepend PREFIX to installed program names
1457   --program-suffix=SUFFIX            append SUFFIX to installed program names
1458   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460 System types:
1461   --build=BUILD     configure for building on BUILD [guessed]
1462   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467   case $ac_init_help in
1468      short | recursive ) echo "Configuration of GNU MP 5.1.3:";;
1469    esac
1470   cat <<\_ACEOF
1471
1472 Optional Features:
1473   --disable-option-checking  ignore unrecognized --enable/--with options
1474   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476   --enable-maintainer-mode  enable make rules and dependencies not useful
1477                           (and sometimes confusing) to the casual installer
1478   --enable-assert         enable ASSERT checking [[default=no]]
1479   --enable-alloca         how to get temp memory [[default=reentrant]]
1480   --enable-cxx            enable C++ support [[default=no]]
1481   --enable-assembly       enable the use of assembly loops [[default=yes]]
1482   --enable-fft            enable FFTs for multiplication [[default=yes]]
1483   --enable-old-fft-full   enable old mpn_mul_fft_full for multiplication
1484                           [[default=no]]
1485   --enable-nails          use nails on limbs [[default=no]]
1486   --enable-profiling      build with profiler support [[default=no]]
1487   --enable-fat            build a fat binary on systems that support it
1488                           [[default=no]]
1489   --enable-minithres      choose minimal thresholds for testing [[default=no]]
1490   --enable-shared[=PKGS]  build shared libraries [default=yes]
1491   --enable-static[=PKGS]  build static libraries [default=yes]
1492   --enable-fast-install[=PKGS]
1493                           optimize for fast installation [default=yes]
1494   --disable-libtool-lock  avoid locking (might break parallel builds)
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-readline         readline support in calc demo program
1500                           [[default=detect]]
1501   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                           both]
1503   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1504   --with-sysroot=DIR Search for dependent libraries within DIR
1505                         (or the compiler's sysroot if not specified).
1506
1507 Some influential environment variables:
1508   ABI         desired ABI (for processors supporting more than one ABI)
1509   CC          C compiler command
1510   CFLAGS      C compiler flags
1511   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512               nonstandard directory <lib dir>
1513   LIBS        libraries to pass to the linker, e.g. -l<library>
1514   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CPP         C preprocessor
1517   CC_FOR_BUILD
1518               build system C compiler
1519   CPP_FOR_BUILD
1520               build system C preprocessor
1521   CXX         C++ compiler command
1522   CXXFLAGS    C++ compiler flags
1523   CXXCPP      C++ preprocessor
1524   M4          m4 macro processor
1525   YACC        The `Yet Another Compiler Compiler' implementation to use.
1526               Defaults to the first program found out of: `bison -y', `byacc',
1527               `yacc'.
1528   YFLAGS      The list of arguments that will be passed by default to $YACC.
1529               This script will default YFLAGS to the empty string to avoid a
1530               default value of `-d' given by some make applications.
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
1536 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1537 General help using GNU software: <http://www.gnu.org/gethelp/>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543   # If there are subdirs, report their specific --help.
1544   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545     test -d "$ac_dir" ||
1546       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547       continue
1548     ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554   # A ".." for each directory in $ac_dir_suffix.
1555   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556   case $ac_top_builddir_sub in
1557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559   esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567   .)  # We are building in place.
1568     ac_srcdir=.
1569     ac_top_srcdir=$ac_top_builddir_sub
1570     ac_abs_top_srcdir=$ac_pwd ;;
1571   [\\/]* | ?:[\\/]* )  # Absolute name.
1572     ac_srcdir=$srcdir$ac_dir_suffix;
1573     ac_top_srcdir=$srcdir
1574     ac_abs_top_srcdir=$srcdir ;;
1575   *) # Relative name.
1576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577     ac_top_srcdir=$ac_top_build_prefix$srcdir
1578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582     cd "$ac_dir" || { ac_status=$?; continue; }
1583     # Check for guested configure.
1584     if test -f "$ac_srcdir/configure.gnu"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587     elif test -f "$ac_srcdir/configure"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure" --help=recursive
1590     else
1591       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592     fi || ac_status=$?
1593     cd "$ac_pwd" || { ac_status=$?; break; }
1594   done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599   cat <<\_ACEOF
1600 GNU MP configure 5.1.3
1601 generated by GNU Autoconf 2.69
1602
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606
1607
1608
1609 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1610 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
1611
1612 This file is part of the GNU MP Library.
1613
1614 The GNU MP Library is free software; you can redistribute it and/or modify
1615 it under the terms of the GNU Lesser General Public License as published
1616 by the Free Software Foundation; either version 3 of the License, or (at
1617 your option) any later version.
1618
1619 The GNU MP Library is distributed in the hope that it will be useful, but
1620 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1621 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1622 License for more details.
1623
1624 You should have received a copy of the GNU Lesser General Public License
1625 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
1626
1627 _ACEOF
1628   exit
1629 fi
1630
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1634
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext
1642   if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_compile") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_c_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest.$ac_objext; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666         ac_retval=1
1667 fi
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687   ac_status=$?
1688   if test -s conftest.err; then
1689     grep -v '^ *+' conftest.err >conftest.er1
1690     cat conftest.er1 >&5
1691     mv -f conftest.er1 conftest.err
1692   fi
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } > conftest.i && {
1695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696          test ! -s conftest.err
1697        }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703     ac_retval=1
1704 fi
1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706   as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_cxx_try_compile LINENO
1711 # ----------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_cxx_try_compile ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   rm -f conftest.$ac_objext
1717   if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_compile") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && {
1733          test -z "$ac_cxx_werror_flag" ||
1734          test ! -s conftest.err
1735        } && test -s conftest.$ac_objext; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741         ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_cxx_try_compile
1747
1748 # ac_fn_cxx_try_cpp LINENO
1749 # ------------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_cpp ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } > conftest.i && {
1770          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1771          test ! -s conftest.err
1772        }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778     ac_retval=1
1779 fi
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_cxx_try_cpp
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   rm -f conftest.$ac_objext conftest$ac_exeext
1792   if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_link") 2>conftest.err
1800   ac_status=$?
1801   if test -s conftest.err; then
1802     grep -v '^ *+' conftest.err >conftest.er1
1803     cat conftest.er1 >&5
1804     mv -f conftest.er1 conftest.err
1805   fi
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && {
1808          test -z "$ac_c_werror_flag" ||
1809          test ! -s conftest.err
1810        } && test -s conftest$ac_exeext && {
1811          test "$cross_compiling" = yes ||
1812          test -x conftest$ac_exeext
1813        }; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819         ac_retval=1
1820 fi
1821   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823   # interfere with the next link command; also delete a directory that is
1824   # left behind by Apple's compiler.  We do this before executing the actions.
1825   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827   as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841   $as_echo_n "(cached) " >&6
1842 else
1843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h.  */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849   eval "$3=yes"
1850 else
1851   eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1866 ac_fn_c_try_run ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872   *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876   (eval "$ac_link") 2>&5
1877   ac_status=$?
1878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880   { { case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_try") 2>&5
1887   ac_status=$?
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; }; }; then :
1890   ac_retval=0
1891 else
1892   $as_echo "$as_me: program exited with status $ac_status" >&5
1893        $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896        ac_retval=$ac_status
1897 fi
1898   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900   as_fn_set_status $ac_retval
1901
1902 } # ac_fn_c_try_run
1903
1904 # ac_fn_c_check_func LINENO FUNC VAR
1905 # ----------------------------------
1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907 ac_fn_c_check_func ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913   $as_echo_n "(cached) " >&6
1914 else
1915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1919 #define $2 innocuous_$2
1920
1921 /* System header to define __stub macros and hopefully few prototypes,
1922     which can conflict with char $2 (); below.
1923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924     <limits.h> exists even on freestanding compilers.  */
1925
1926 #ifdef __STDC__
1927 # include <limits.h>
1928 #else
1929 # include <assert.h>
1930 #endif
1931
1932 #undef $2
1933
1934 /* Override any GCC internal prototype to avoid an error.
1935    Use char because int might match the return type of a GCC
1936    builtin and then its argument prototype would still apply.  */
1937 #ifdef __cplusplus
1938 extern "C"
1939 #endif
1940 char $2 ();
1941 /* The GNU C library defines this for functions which it implements
1942     to always fail with ENOSYS.  Some functions are actually named
1943     something starting with __ and the normal name is an alias.  */
1944 #if defined __stub_$2 || defined __stub___$2
1945 choke me
1946 #endif
1947
1948 int
1949 main ()
1950 {
1951 return $2 ();
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_link "$LINENO"; then :
1957   eval "$3=yes"
1958 else
1959   eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext \
1962     conftest$ac_exeext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_func
1970
1971 # ac_fn_cxx_try_link LINENO
1972 # -------------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_link ()
1975 {
1976   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977   rm -f conftest.$ac_objext conftest$ac_exeext
1978   if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981   *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985   (eval "$ac_link") 2>conftest.err
1986   ac_status=$?
1987   if test -s conftest.err; then
1988     grep -v '^ *+' conftest.err >conftest.er1
1989     cat conftest.er1 >&5
1990     mv -f conftest.er1 conftest.err
1991   fi
1992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993   test $ac_status = 0; } && {
1994          test -z "$ac_cxx_werror_flag" ||
1995          test ! -s conftest.err
1996        } && test -s conftest$ac_exeext && {
1997          test "$cross_compiling" = yes ||
1998          test -x conftest$ac_exeext
1999        }; then :
2000   ac_retval=0
2001 else
2002   $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004
2005         ac_retval=1
2006 fi
2007   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009   # interfere with the next link command; also delete a directory that is
2010   # left behind by Apple's compiler.  We do this before executing the actions.
2011   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013   as_fn_set_status $ac_retval
2014
2015 } # ac_fn_cxx_try_link
2016
2017 # ac_fn_f77_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_f77_try_link ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   rm -f conftest.$ac_objext conftest$ac_exeext
2024   if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_link") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && {
2040          test -z "$ac_f77_werror_flag" ||
2041          test ! -s conftest.err
2042        } && test -s conftest$ac_exeext && {
2043          test "$cross_compiling" = yes ||
2044          test -x conftest$ac_exeext
2045        }; then :
2046   ac_retval=0
2047 else
2048   $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051         ac_retval=1
2052 fi
2053   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055   # interfere with the next link command; also delete a directory that is
2056   # left behind by Apple's compiler.  We do this before executing the actions.
2057   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059   as_fn_set_status $ac_retval
2060
2061 } # ac_fn_f77_try_link
2062
2063 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # -------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2067 # accordingly.
2068 ac_fn_c_check_header_mongrel ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   if eval \${$3+:} false; then :
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075   $as_echo_n "(cached) " >&6
2076 fi
2077 eval ac_res=\$$3
2078                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 else
2081   # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $4
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090   ac_header_compiler=yes
2091 else
2092   ac_header_compiler=no
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2097
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_c_try_cpp "$LINENO"; then :
2106   ac_header_preproc=yes
2107 else
2108   ac_header_preproc=no
2109 fi
2110 rm -f conftest.err conftest.i conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2113
2114 # So?  What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116   yes:no: )
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121     ;;
2122   no:yes:* )
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2134 ## Report this to gmp-bugs@gmplib.org ##
2135 ## ssssssssssssssssssssssssssssssssss ##"
2136      ) | sed "s/^/$as_me: WARNING:     /" >&2
2137     ;;
2138 esac
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142   $as_echo_n "(cached) " >&6
2143 else
2144   eval "$3=\$ac_header_compiler"
2145 fi
2146 eval ac_res=\$$3
2147                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 fi
2150   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152 } # ac_fn_c_check_header_mongrel
2153
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2157 # accordingly.
2158 ac_fn_c_check_decl ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   as_decl_name=`echo $2|sed 's/ *(.*//'`
2162   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166   $as_echo_n "(cached) " >&6
2167 else
2168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 int
2172 main ()
2173 {
2174 #ifndef $as_decl_name
2175 #ifdef __cplusplus
2176   (void) $as_decl_use;
2177 #else
2178   (void) $as_decl_name;
2179 #endif
2180 #endif
2181
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187   eval "$3=yes"
2188 else
2189   eval "$3=no"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 fi
2193 eval ac_res=\$$3
2194                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198 } # ac_fn_c_check_decl
2199
2200 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2201 # -------------------------------------------
2202 # Tests whether TYPE exists after having included INCLUDES, setting cache
2203 # variable VAR accordingly.
2204 ac_fn_c_check_type ()
2205 {
2206   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210   $as_echo_n "(cached) " >&6
2211 else
2212   eval "$3=no"
2213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h.  */
2215 $4
2216 int
2217 main ()
2218 {
2219 if (sizeof ($2))
2220          return 0;
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 int
2230 main ()
2231 {
2232 if (sizeof (($2)))
2233             return 0;
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239
2240 else
2241   eval "$3=yes"
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 eval ac_res=\$$3
2248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251
2252 } # ac_fn_c_check_type
2253
2254 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2255 # ----------------------------------------------------
2256 # Tries to find if the field MEMBER exists in type AGGR, after including
2257 # INCLUDES, setting cache variable VAR accordingly.
2258 ac_fn_c_check_member ()
2259 {
2260   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2262 $as_echo_n "checking for $2.$3... " >&6; }
2263 if eval \${$4+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $5
2269 int
2270 main ()
2271 {
2272 static $2 ac_aggr;
2273 if (ac_aggr.$3)
2274 return 0;
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   eval "$4=yes"
2281 else
2282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $5
2285 int
2286 main ()
2287 {
2288 static $2 ac_aggr;
2289 if (sizeof ac_aggr.$3)
2290 return 0;
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   eval "$4=yes"
2297 else
2298   eval "$4=no"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$4
2305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309 } # ac_fn_c_check_member
2310
2311 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2312 # ---------------------------------------------------------
2313 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2314 # the include files in INCLUDES and setting the cache variable VAR
2315 # accordingly.
2316 ac_fn_cxx_check_header_mongrel ()
2317 {
2318   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319   if eval \${$3+:} false; then :
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval \${$3+:} false; then :
2323   $as_echo_n "(cached) " >&6
2324 fi
2325 eval ac_res=\$$3
2326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 else
2329   # Is the header compilable?
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2331 $as_echo_n "checking $2 usability... " >&6; }
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_cxx_try_compile "$LINENO"; then :
2338   ac_header_compiler=yes
2339 else
2340   ac_header_compiler=no
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2344 $as_echo "$ac_header_compiler" >&6; }
2345
2346 # Is the header present?
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2348 $as_echo_n "checking $2 presence... " >&6; }
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h.  */
2351 #include <$2>
2352 _ACEOF
2353 if ac_fn_cxx_try_cpp "$LINENO"; then :
2354   ac_header_preproc=yes
2355 else
2356   ac_header_preproc=no
2357 fi
2358 rm -f conftest.err conftest.i conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2360 $as_echo "$ac_header_preproc" >&6; }
2361
2362 # So?  What about this header?
2363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2364   yes:no: )
2365     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2366 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2368 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2369     ;;
2370   no:yes:* )
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2372 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2374 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2376 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2378 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2380 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2381 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2382 ## Report this to gmp-bugs@gmplib.org ##
2383 ## ssssssssssssssssssssssssssssssssss ##"
2384      ) | sed "s/^/$as_me: WARNING:     /" >&2
2385     ;;
2386 esac
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388 $as_echo_n "checking for $2... " >&6; }
2389 if eval \${$3+:} false; then :
2390   $as_echo_n "(cached) " >&6
2391 else
2392   eval "$3=\$ac_header_compiler"
2393 fi
2394 eval ac_res=\$$3
2395                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 fi
2398   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399
2400 } # ac_fn_cxx_check_header_mongrel
2401
2402 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2403 # ---------------------------------------------
2404 # Tests whether TYPE exists after having included INCLUDES, setting cache
2405 # variable VAR accordingly.
2406 ac_fn_cxx_check_type ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=no"
2415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h.  */
2417 $4
2418 int
2419 main ()
2420 {
2421 if (sizeof ($2))
2422          return 0;
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_cxx_try_compile "$LINENO"; then :
2428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h.  */
2430 $4
2431 int
2432 main ()
2433 {
2434 if (sizeof (($2)))
2435             return 0;
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2441
2442 else
2443   eval "$3=yes"
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453
2454 } # ac_fn_cxx_check_type
2455
2456 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2457 # --------------------------------------------
2458 # Tries to find the compile-time value of EXPR in a program that includes
2459 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2460 # computed
2461 ac_fn_c_compute_int ()
2462 {
2463   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464   if test "$cross_compiling" = yes; then
2465     # Depending upon the size, compute the lo and hi bounds.
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 $4
2469 int
2470 main ()
2471 {
2472 static int test_array [1 - 2 * !(($2) >= 0)];
2473 test_array [0] = 0;
2474 return test_array [0];
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481   ac_lo=0 ac_mid=0
2482   while :; do
2483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h.  */
2485 $4
2486 int
2487 main ()
2488 {
2489 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2490 test_array [0] = 0;
2491 return test_array [0];
2492
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498   ac_hi=$ac_mid; break
2499 else
2500   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2501                         if test $ac_lo -le $ac_mid; then
2502                           ac_lo= ac_hi=
2503                           break
2504                         fi
2505                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508   done
2509 else
2510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h.  */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) < 0)];
2517 test_array [0] = 0;
2518 return test_array [0];
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   ac_hi=-1 ac_mid=-1
2526   while :; do
2527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h.  */
2529 $4
2530 int
2531 main ()
2532 {
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2534 test_array [0] = 0;
2535 return test_array [0];
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   ac_lo=$ac_mid; break
2543 else
2544   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2545                         if test $ac_mid -le $ac_hi; then
2546                           ac_lo= ac_hi=
2547                           break
2548                         fi
2549                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552   done
2553 else
2554   ac_lo= ac_hi=
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 # Binary search between lo and hi bounds.
2560 while test "x$ac_lo" != "x$ac_hi"; do
2561   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h.  */
2564 $4
2565 int
2566 main ()
2567 {
2568 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2569 test_array [0] = 0;
2570 return test_array [0];
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 if ac_fn_c_try_compile "$LINENO"; then :
2577   ac_hi=$ac_mid
2578 else
2579   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 done
2583 case $ac_lo in #((
2584 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2585 '') ac_retval=1 ;;
2586 esac
2587   else
2588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h.  */
2590 $4
2591 static long int longval () { return $2; }
2592 static unsigned long int ulongval () { return $2; }
2593 #include <stdio.h>
2594 #include <stdlib.h>
2595 int
2596 main ()
2597 {
2598
2599   FILE *f = fopen ("conftest.val", "w");
2600   if (! f)
2601     return 1;
2602   if (($2) < 0)
2603     {
2604       long int i = longval ();
2605       if (i != ($2))
2606         return 1;
2607       fprintf (f, "%ld", i);
2608     }
2609   else
2610     {
2611       unsigned long int i = ulongval ();
2612       if (i != ($2))
2613         return 1;
2614       fprintf (f, "%lu", i);
2615     }
2616   /* Do not output a trailing newline, as this causes \r\n confusion
2617      on some platforms.  */
2618   return ferror (f) || fclose (f) != 0;
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_c_try_run "$LINENO"; then :
2625   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2626 else
2627   ac_retval=1
2628 fi
2629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2630   conftest.$ac_objext conftest.beam conftest.$ac_ext
2631 rm -f conftest.val
2632
2633   fi
2634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2635   as_fn_set_status $ac_retval
2636
2637 } # ac_fn_c_compute_int
2638 cat >config.log <<_ACEOF
2639 This file contains any messages produced by compilers while
2640 running configure, to aid debugging if configure makes a mistake.
2641
2642 It was created by GNU MP $as_me 5.1.3, which was
2643 generated by GNU Autoconf 2.69.  Invocation command line was
2644
2645   $ $0 $@
2646
2647 _ACEOF
2648 exec 5>>config.log
2649 {
2650 cat <<_ASUNAME
2651 ## --------- ##
2652 ## Platform. ##
2653 ## --------- ##
2654
2655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2660
2661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2662 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2663
2664 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2665 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2667 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2668 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2669 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2670 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2671
2672 _ASUNAME
2673
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677   IFS=$as_save_IFS
2678   test -z "$as_dir" && as_dir=.
2679     $as_echo "PATH: $as_dir"
2680   done
2681 IFS=$as_save_IFS
2682
2683 } >&5
2684
2685 cat >&5 <<_ACEOF
2686
2687
2688 ## ----------- ##
2689 ## Core tests. ##
2690 ## ----------- ##
2691
2692 _ACEOF
2693
2694
2695 # Keep a trace of the command line.
2696 # Strip out --no-create and --no-recursion so they do not pile up.
2697 # Strip out --silent because we don't want to record it for future runs.
2698 # Also quote any args containing shell meta-characters.
2699 # Make two passes to allow for proper duplicate-argument suppression.
2700 ac_configure_args=
2701 ac_configure_args0=
2702 ac_configure_args1=
2703 ac_must_keep_next=false
2704 for ac_pass in 1 2
2705 do
2706   for ac_arg
2707   do
2708     case $ac_arg in
2709     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2710     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2711     | -silent | --silent | --silen | --sile | --sil)
2712       continue ;;
2713     *\'*)
2714       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2715     esac
2716     case $ac_pass in
2717     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2718     2)
2719       as_fn_append ac_configure_args1 " '$ac_arg'"
2720       if test $ac_must_keep_next = true; then
2721         ac_must_keep_next=false # Got value, back to normal.
2722       else
2723         case $ac_arg in
2724           *=* | --config-cache | -C | -disable-* | --disable-* \
2725           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2726           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2727           | -with-* | --with-* | -without-* | --without-* | --x)
2728             case "$ac_configure_args0 " in
2729               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2730             esac
2731             ;;
2732           -* ) ac_must_keep_next=true ;;
2733         esac
2734       fi
2735       as_fn_append ac_configure_args " '$ac_arg'"
2736       ;;
2737     esac
2738   done
2739 done
2740 { ac_configure_args0=; unset ac_configure_args0;}
2741 { ac_configure_args1=; unset ac_configure_args1;}
2742
2743 # When interrupted or exit'd, cleanup temporary files, and complete
2744 # config.log.  We remove comments because anyway the quotes in there
2745 # would cause problems or look ugly.
2746 # WARNING: Use '\'' to represent an apostrophe within the trap.
2747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2748 trap 'exit_status=$?
2749   # Save into config.log some information that might help in debugging.
2750   {
2751     echo
2752
2753     $as_echo "## ---------------- ##
2754 ## Cache variables. ##
2755 ## ---------------- ##"
2756     echo
2757     # The following way of writing the cache mishandles newlines in values,
2758 (
2759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2760     eval ac_val=\$$ac_var
2761     case $ac_val in #(
2762     *${as_nl}*)
2763       case $ac_var in #(
2764       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2766       esac
2767       case $ac_var in #(
2768       _ | IFS | as_nl) ;; #(
2769       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2770       *) { eval $ac_var=; unset $ac_var;} ;;
2771       esac ;;
2772     esac
2773   done
2774   (set) 2>&1 |
2775     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2776     *${as_nl}ac_space=\ *)
2777       sed -n \
2778         "s/'\''/'\''\\\\'\'''\''/g;
2779           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2780       ;; #(
2781     *)
2782       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2783       ;;
2784     esac |
2785     sort
2786 )
2787     echo
2788
2789     $as_echo "## ----------------- ##
2790 ## Output variables. ##
2791 ## ----------------- ##"
2792     echo
2793     for ac_var in $ac_subst_vars
2794     do
2795       eval ac_val=\$$ac_var
2796       case $ac_val in
2797       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2798       esac
2799       $as_echo "$ac_var='\''$ac_val'\''"
2800     done | sort
2801     echo
2802
2803     if test -n "$ac_subst_files"; then
2804       $as_echo "## ------------------- ##
2805 ## File substitutions. ##
2806 ## ------------------- ##"
2807       echo
2808       for ac_var in $ac_subst_files
2809       do
2810         eval ac_val=\$$ac_var
2811         case $ac_val in
2812         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2813         esac
2814         $as_echo "$ac_var='\''$ac_val'\''"
2815       done | sort
2816       echo
2817     fi
2818
2819     if test -s confdefs.h; then
2820       $as_echo "## ----------- ##
2821 ## confdefs.h. ##
2822 ## ----------- ##"
2823       echo
2824       cat confdefs.h
2825       echo
2826     fi
2827     test "$ac_signal" != 0 &&
2828       $as_echo "$as_me: caught signal $ac_signal"
2829     $as_echo "$as_me: exit $exit_status"
2830   } >&5
2831   rm -f core *.core core.conftest.* &&
2832     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2833     exit $exit_status
2834 ' 0
2835 for ac_signal in 1 2 13 15; do
2836   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2837 done
2838 ac_signal=0
2839
2840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2841 rm -f -r conftest* confdefs.h
2842
2843 $as_echo "/* confdefs.h */" > confdefs.h
2844
2845 # Predefined preprocessor variables.
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_NAME "$PACKAGE_NAME"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2857 _ACEOF
2858
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_STRING "$PACKAGE_STRING"
2861 _ACEOF
2862
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2865 _ACEOF
2866
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_URL "$PACKAGE_URL"
2869 _ACEOF
2870
2871
2872 # Let the site file select an alternate cache file if it wants to.
2873 # Prefer an explicitly selected file to automatically selected ones.
2874 ac_site_file1=NONE
2875 ac_site_file2=NONE
2876 if test -n "$CONFIG_SITE"; then
2877   # We do not want a PATH search for config.site.
2878   case $CONFIG_SITE in #((
2879     -*)  ac_site_file1=./$CONFIG_SITE;;
2880     */*) ac_site_file1=$CONFIG_SITE;;
2881     *)   ac_site_file1=./$CONFIG_SITE;;
2882   esac
2883 elif test "x$prefix" != xNONE; then
2884   ac_site_file1=$prefix/share/config.site
2885   ac_site_file2=$prefix/etc/config.site
2886 else
2887   ac_site_file1=$ac_default_prefix/share/config.site
2888   ac_site_file2=$ac_default_prefix/etc/config.site
2889 fi
2890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2891 do
2892   test "x$ac_site_file" = xNONE && continue
2893   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2894     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2896     sed 's/^/| /' "$ac_site_file" >&5
2897     . "$ac_site_file" \
2898       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "failed to load site script $ac_site_file
2901 See \`config.log' for more details" "$LINENO" 5; }
2902   fi
2903 done
2904
2905 if test -r "$cache_file"; then
2906   # Some versions of bash will fail to source /dev/null (special files
2907   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2908   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2909     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2910 $as_echo "$as_me: loading cache $cache_file" >&6;}
2911     case $cache_file in
2912       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2913       *)                      . "./$cache_file";;
2914     esac
2915   fi
2916 else
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2918 $as_echo "$as_me: creating cache $cache_file" >&6;}
2919   >$cache_file
2920 fi
2921
2922 # Check that the precious variables saved in the cache have kept the same
2923 # value.
2924 ac_cache_corrupted=false
2925 for ac_var in $ac_precious_vars; do
2926   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2927   eval ac_new_set=\$ac_env_${ac_var}_set
2928   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2929   eval ac_new_val=\$ac_env_${ac_var}_value
2930   case $ac_old_set,$ac_new_set in
2931     set,)
2932       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2933 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2934       ac_cache_corrupted=: ;;
2935     ,set)
2936       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2937 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2938       ac_cache_corrupted=: ;;
2939     ,);;
2940     *)
2941       if test "x$ac_old_val" != "x$ac_new_val"; then
2942         # differences in whitespace do not lead to failure.
2943         ac_old_val_w=`echo x $ac_old_val`
2944         ac_new_val_w=`echo x $ac_new_val`
2945         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2946           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2947 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2948           ac_cache_corrupted=:
2949         else
2950           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2951 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2952           eval $ac_var=\$ac_old_val
2953         fi
2954         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2955 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2956         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2957 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2958       fi;;
2959   esac
2960   # Pass precious variables to config.status.
2961   if test "$ac_new_set" = set; then
2962     case $ac_new_val in
2963     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2964     *) ac_arg=$ac_var=$ac_new_val ;;
2965     esac
2966     case " $ac_configure_args " in
2967       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2968       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2969     esac
2970   fi
2971 done
2972 if $ac_cache_corrupted; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2976 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2977   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2978 fi
2979 ## -------------------- ##
2980 ## Main body of script. ##
2981 ## -------------------- ##
2982
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999 # If --target is not used then $target_alias is empty, but if say
3000 # "./configure athlon-pc-freebsd3.5" is used, then all three of
3001 # $build_alias, $host_alias and $target_alias are set to
3002 # "athlon-pc-freebsd3.5".
3003 #
3004 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
3005   as_fn_error $? "--target is not appropriate for GMP
3006 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
3007 explicitly.  Use --host if cross-compiling (see \"Installing GMP\" in the
3008 manual for more on this)." "$LINENO" 5
3009 fi
3010
3011 gmp_configm4="config.m4"
3012 gmp_tmpconfigm4=cnfm4.tmp
3013 gmp_tmpconfigm4i=cnfm4i.tmp
3014 gmp_tmpconfigm4p=cnfm4p.tmp
3015 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
3016
3017 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
3018 # The pattern here tests for an absolute path the same way as
3019 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
3020 case $srcdir in
3021 [\\/]* | ?:[\\/]* )  tmp="$srcdir"    ;;
3022 *)                       tmp="../$srcdir" ;;
3023 esac
3024 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3025
3026 # All CPUs use asm-defs.m4
3027 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3028
3029
3030 ac_aux_dir=
3031 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3032   if test -f "$ac_dir/install-sh"; then
3033     ac_aux_dir=$ac_dir
3034     ac_install_sh="$ac_aux_dir/install-sh -c"
3035     break
3036   elif test -f "$ac_dir/install.sh"; then
3037     ac_aux_dir=$ac_dir
3038     ac_install_sh="$ac_aux_dir/install.sh -c"
3039     break
3040   elif test -f "$ac_dir/shtool"; then
3041     ac_aux_dir=$ac_dir
3042     ac_install_sh="$ac_aux_dir/shtool install -c"
3043     break
3044   fi
3045 done
3046 if test -z "$ac_aux_dir"; then
3047   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3048 fi
3049
3050 # These three variables are undocumented and unsupported,
3051 # and are intended to be withdrawn in a future Autoconf release.
3052 # They can cause serious problems if a builder's source tree is in a directory
3053 # whose full name contains unusual characters.
3054 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3055 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3056 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3057
3058
3059 # Make sure we can run config.sub.
3060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3061   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3062
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3064 $as_echo_n "checking build system type... " >&6; }
3065 if ${ac_cv_build+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   ac_build_alias=$build_alias
3069 test "x$ac_build_alias" = x &&
3070   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3071 test "x$ac_build_alias" = x &&
3072   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3074   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3075
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3078 $as_echo "$ac_cv_build" >&6; }
3079 case $ac_cv_build in
3080 *-*-*) ;;
3081 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3082 esac
3083 build=$ac_cv_build
3084 ac_save_IFS=$IFS; IFS='-'
3085 set x $ac_cv_build
3086 shift
3087 build_cpu=$1
3088 build_vendor=$2
3089 shift; shift
3090 # Remember, the first character of IFS is used to create $*,
3091 # except with old shells:
3092 build_os=$*
3093 IFS=$ac_save_IFS
3094 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3095
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3098 $as_echo_n "checking host system type... " >&6; }
3099 if ${ac_cv_host+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test "x$host_alias" = x; then
3103   ac_cv_host=$ac_cv_build
3104 else
3105   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3106     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3107 fi
3108
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3111 $as_echo "$ac_cv_host" >&6; }
3112 case $ac_cv_host in
3113 *-*-*) ;;
3114 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3115 esac
3116 host=$ac_cv_host
3117 ac_save_IFS=$IFS; IFS='-'
3118 set x $ac_cv_host
3119 shift
3120 host_cpu=$1
3121 host_vendor=$2
3122 shift; shift
3123 # Remember, the first character of IFS is used to create $*,
3124 # except with old shells:
3125 host_os=$*
3126 IFS=$ac_save_IFS
3127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3128
3129
3130
3131 am__api_version='1.11'
3132
3133 # Find a good install program.  We prefer a C program (faster),
3134 # so one script is as good as another.  But avoid the broken or
3135 # incompatible versions:
3136 # SysV /etc/install, /usr/sbin/install
3137 # SunOS /usr/etc/install
3138 # IRIX /sbin/install
3139 # AIX /bin/install
3140 # AmigaOS /C/install, which installs bootblocks on floppy discs
3141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3144 # OS/2's system install, which has a completely different semantic
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 # Reject install programs that cannot install multiple files.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3149 if test -z "$INSTALL"; then
3150 if ${ac_cv_path_install+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     # Account for people who put trailing slashes in PATH elements.
3159 case $as_dir/ in #((
3160   ./ | .// | /[cC]/* | \
3161   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3162   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3163   /usr/ucb/* ) ;;
3164   *)
3165     # OSF1 and SCO ODT 3.0 have their own names for install.
3166     # Don't use installbsd from OSF since it installs stuff as root
3167     # by default.
3168     for ac_prog in ginstall scoinst install; do
3169       for ac_exec_ext in '' $ac_executable_extensions; do
3170         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3171           if test $ac_prog = install &&
3172             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3173             # AIX install.  It has an incompatible calling convention.
3174             :
3175           elif test $ac_prog = install &&
3176             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177             # program-specific install script used by HP pwplus--don't use.
3178             :
3179           else
3180             rm -rf conftest.one conftest.two conftest.dir
3181             echo one > conftest.one
3182             echo two > conftest.two
3183             mkdir conftest.dir
3184             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3185               test -s conftest.one && test -s conftest.two &&
3186               test -s conftest.dir/conftest.one &&
3187               test -s conftest.dir/conftest.two
3188             then
3189               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3190               break 3
3191             fi
3192           fi
3193         fi
3194       done
3195     done
3196     ;;
3197 esac
3198
3199   done
3200 IFS=$as_save_IFS
3201
3202 rm -rf conftest.one conftest.two conftest.dir
3203
3204 fi
3205   if test "${ac_cv_path_install+set}" = set; then
3206     INSTALL=$ac_cv_path_install
3207   else
3208     # As a last resort, use the slow shell script.  Don't cache a
3209     # value for INSTALL within a source directory, because that will
3210     # break other packages using the cache if that directory is
3211     # removed, or if the value is a relative name.
3212     INSTALL=$ac_install_sh
3213   fi
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3216 $as_echo "$INSTALL" >&6; }
3217
3218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3219 # It thinks the first close brace ends the variable substitution.
3220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3221
3222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3223
3224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3225
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3227 $as_echo_n "checking whether build environment is sane... " >&6; }
3228 # Just in case
3229 sleep 1
3230 echo timestamp > conftest.file
3231 # Reject unsafe characters in $srcdir or the absolute working directory
3232 # name.  Accept space and tab only in the latter.
3233 am_lf='
3234 '
3235 case `pwd` in
3236   *[\\\"\#\$\&\'\`$am_lf]*)
3237     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3238 esac
3239 case $srcdir in
3240   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3241     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3242 esac
3243
3244 # Do `set' in a subshell so we don't clobber the current shell's
3245 # arguments.  Must try -L first in case configure is actually a
3246 # symlink; some systems play weird games with the mod time of symlinks
3247 # (eg FreeBSD returns the mod time of the symlink's containing
3248 # directory).
3249 if (
3250    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3251    if test "$*" = "X"; then
3252       # -L didn't work.
3253       set X `ls -t "$srcdir/configure" conftest.file`
3254    fi
3255    rm -f conftest.file
3256    if test "$*" != "X $srcdir/configure conftest.file" \
3257       && test "$*" != "X conftest.file $srcdir/configure"; then
3258
3259       # If neither matched, then we have a broken ls.  This can happen
3260       # if, for instance, CONFIG_SHELL is bash and it inherits a
3261       # broken ls alias from the environment.  This has actually
3262       # happened.  Such a system could not be considered "sane".
3263       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3264 alias in your environment" "$LINENO" 5
3265    fi
3266
3267    test "$2" = conftest.file
3268    )
3269 then
3270    # Ok.
3271    :
3272 else
3273    as_fn_error $? "newly created file is older than distributed files!
3274 Check your system clock" "$LINENO" 5
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278 test "$program_prefix" != NONE &&
3279   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3280 # Use a double $ so make ignores it.
3281 test "$program_suffix" != NONE &&
3282   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3283 # Double any \ or $.
3284 # By default was `s,x,x', remove it if useless.
3285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3287
3288 # expand $ac_aux_dir to an absolute path
3289 am_aux_dir=`cd $ac_aux_dir && pwd`
3290
3291 if test x"${MISSING+set}" != xset; then
3292   case $am_aux_dir in
3293   *\ * | *\     *)
3294     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3295   *)
3296     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3297   esac
3298 fi
3299 # Use eval to expand $SHELL
3300 if eval "$MISSING --run true"; then
3301   am_missing_run="$MISSING --run "
3302 else
3303   am_missing_run=
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3305 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3306 fi
3307
3308 if test x"${install_sh}" != xset; then
3309   case $am_aux_dir in
3310   *\ * | *\     *)
3311     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3312   *)
3313     install_sh="\${SHELL} $am_aux_dir/install-sh"
3314   esac
3315 fi
3316
3317 # Installed binaries are usually stripped using `strip' when the user
3318 # run `make install-strip'.  However `strip' might not be the right
3319 # tool to use in cross-compilation environments, therefore Automake
3320 # will honor the `STRIP' environment variable to overrule this program.
3321 if test "$cross_compiling" != no; then
3322   if test -n "$ac_tool_prefix"; then
3323   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}strip; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_STRIP+:} false; then :
3328   $as_echo_n "(cached) " >&6
3329 else
3330   if test -n "$STRIP"; then
3331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338     for ac_exec_ext in '' $ac_executable_extensions; do
3339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345   done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 STRIP=$ac_cv_prog_STRIP
3351 if test -n "$STRIP"; then
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3353 $as_echo "$STRIP" >&6; }
3354 else
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 fi
3361 if test -z "$ac_cv_prog_STRIP"; then
3362   ac_ct_STRIP=$STRIP
3363   # Extract the first word of "strip", so it can be a program name with args.
3364 set dummy strip; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3368   $as_echo_n "(cached) " >&6
3369 else
3370   if test -n "$ac_ct_STRIP"; then
3371   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378     for ac_exec_ext in '' $ac_executable_extensions; do
3379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380     ac_cv_prog_ac_ct_STRIP="strip"
3381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385   done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3391 if test -n "$ac_ct_STRIP"; then
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3393 $as_echo "$ac_ct_STRIP" >&6; }
3394 else
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399   if test "x$ac_ct_STRIP" = x; then
3400     STRIP=":"
3401   else
3402     case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408     STRIP=$ac_ct_STRIP
3409   fi
3410 else
3411   STRIP="$ac_cv_prog_STRIP"
3412 fi
3413
3414 fi
3415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3418 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3419 if test -z "$MKDIR_P"; then
3420   if ${ac_cv_path_mkdir+:} false; then :
3421   $as_echo_n "(cached) " >&6
3422 else
3423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_prog in mkdir gmkdir; do
3429          for ac_exec_ext in '' $ac_executable_extensions; do
3430            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3431            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3432              'mkdir (GNU coreutils) '* | \
3433              'mkdir (coreutils) '* | \
3434              'mkdir (fileutils) '4.1*)
3435                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3436                break 3;;
3437            esac
3438          done
3439        done
3440   done
3441 IFS=$as_save_IFS
3442
3443 fi
3444
3445   test -d ./--version && rmdir ./--version
3446   if test "${ac_cv_path_mkdir+set}" = set; then
3447     MKDIR_P="$ac_cv_path_mkdir -p"
3448   else
3449     # As a last resort, use the slow shell script.  Don't cache a
3450     # value for MKDIR_P within a source directory, because that will
3451     # break other packages using the cache if that directory is
3452     # removed, or if the value is a relative name.
3453     MKDIR_P="$ac_install_sh -d"
3454   fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3457 $as_echo "$MKDIR_P" >&6; }
3458
3459 mkdir_p="$MKDIR_P"
3460 case $mkdir_p in
3461   [\\/$]* | ?:[\\/]*) ;;
3462   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3463 esac
3464
3465 for ac_prog in gawk mawk nawk awk
3466 do
3467   # Extract the first word of "$ac_prog", so it can be a program name with args.
3468 set dummy $ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_AWK+:} false; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test -n "$AWK"; then
3475   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482     for ac_exec_ext in '' $ac_executable_extensions; do
3483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484     ac_cv_prog_AWK="$ac_prog"
3485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489   done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 AWK=$ac_cv_prog_AWK
3495 if test -n "$AWK"; then
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3497 $as_echo "$AWK" >&6; }
3498 else
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503
3504   test -n "$AWK" && break
3505 done
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3509 set x ${MAKE-make}
3510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   cat >conftest.make <<\_ACEOF
3515 SHELL = /bin/sh
3516 all:
3517         @echo '@@@%%%=$(MAKE)=@@@%%%'
3518 _ACEOF
3519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3521   *@@@%%%=?*=@@@%%%*)
3522     eval ac_cv_prog_make_${ac_make}_set=yes;;
3523   *)
3524     eval ac_cv_prog_make_${ac_make}_set=no;;
3525 esac
3526 rm -f conftest.make
3527 fi
3528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3531   SET_MAKE=
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535   SET_MAKE="MAKE=${MAKE-make}"
3536 fi
3537
3538 rm -rf .tst 2>/dev/null
3539 mkdir .tst 2>/dev/null
3540 if test -d .tst; then
3541   am__leading_dot=.
3542 else
3543   am__leading_dot=_
3544 fi
3545 rmdir .tst 2>/dev/null
3546
3547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3548   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3549   # is not polluted with repeated "-I."
3550   am__isrc=' -I$(srcdir)'
3551   # test to see if srcdir already configured
3552   if test -f $srcdir/config.status; then
3553     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3554   fi
3555 fi
3556
3557 # test whether we have cygpath
3558 if test -z "$CYGPATH_W"; then
3559   if (cygpath --version) >/dev/null 2>/dev/null; then
3560     CYGPATH_W='cygpath -w'
3561   else
3562     CYGPATH_W=echo
3563   fi
3564 fi
3565
3566
3567 # Define the identity of the package.
3568  PACKAGE='gmp'
3569  VERSION='5.1.3'
3570
3571
3572 cat >>confdefs.h <<_ACEOF
3573 #define PACKAGE "$PACKAGE"
3574 _ACEOF
3575
3576
3577 cat >>confdefs.h <<_ACEOF
3578 #define VERSION "$VERSION"
3579 _ACEOF
3580
3581 # Some tools Automake needs.
3582
3583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3584
3585
3586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3587
3588
3589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3590
3591
3592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3593
3594
3595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3596
3597 # We need awk for the "check" target.  The system "awk" is bad on
3598 # some platforms.
3599 # Always define AMTAR for backward compatibility.  Yes, it's still used
3600 # in the wild :-(  We should find a proper way to deprecate it ...
3601 AMTAR='$${TAR-tar}'
3602
3603 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3604
3605
3606
3607
3608
3609 ac_config_headers="$ac_config_headers config.h:config.in"
3610
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3613 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3614     # Check whether --enable-maintainer-mode was given.
3615 if test "${enable_maintainer_mode+set}" = set; then :
3616   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3617 else
3618   USE_MAINTAINER_MODE=no
3619 fi
3620
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3622 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3623    if test $USE_MAINTAINER_MODE = yes; then
3624   MAINTAINER_MODE_TRUE=
3625   MAINTAINER_MODE_FALSE='#'
3626 else
3627   MAINTAINER_MODE_TRUE='#'
3628   MAINTAINER_MODE_FALSE=
3629 fi
3630
3631   MAINT=$MAINTAINER_MODE_TRUE
3632
3633
3634
3635
3636 # Check whether --enable-assert was given.
3637 if test "${enable_assert+set}" = set; then :
3638   enableval=$enable_assert; case $enableval in
3639 yes|no) ;;
3640 *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3641 esac
3642 else
3643   enable_assert=no
3644 fi
3645
3646
3647 if test "$enable_assert" = "yes"; then
3648
3649 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3650
3651   want_assert_01=1
3652 else
3653   want_assert_01=0
3654 fi
3655
3656 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3657
3658
3659
3660 # Check whether --enable-alloca was given.
3661 if test "${enable_alloca+set}" = set; then :
3662   enableval=$enable_alloca; case $enableval in
3663 alloca|malloc-reentrant|malloc-notreentrant) ;;
3664 yes|no|reentrant|notreentrant) ;;
3665 debug) ;;
3666 *)
3667   as_fn_error $? "bad value $enableval for --enable-alloca, need one of:
3668 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3669 esac
3670 else
3671   enable_alloca=reentrant
3672 fi
3673
3674
3675
3676 # IMPROVE ME: The default for C++ is disabled.  The tests currently
3677 # performed below for a working C++ compiler are not particularly strong,
3678 # and in general can't be expected to get the right setup on their own.  The
3679 # most significant problem is getting the ABI the same.  Defaulting CXXFLAGS
3680 # to CFLAGS takes only a small step towards this.  It's also probably worth
3681 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3682 # work together.  Some rather broken C++ installations were encountered
3683 # during testing, and though such things clearly aren't GMP's problem, if
3684 # --enable-cxx=detect were to be the default then some careful checks of
3685 # which, if any, C++ compiler on the system is up to scratch would be
3686 # wanted.
3687 #
3688 # Check whether --enable-cxx was given.
3689 if test "${enable_cxx+set}" = set; then :
3690   enableval=$enable_cxx; case $enableval in
3691 yes|no|detect) ;;
3692 *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3693 esac
3694 else
3695   enable_cxx=no
3696 fi
3697
3698
3699
3700 # Check whether --enable-assembly was given.
3701 if test "${enable_assembly+set}" = set; then :
3702   enableval=$enable_assembly; case $enableval in
3703 yes|no) ;;
3704 *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;;
3705 esac
3706 else
3707   enable_assembly=yes
3708 fi
3709
3710
3711 if test "$enable_assembly" = "yes"; then
3712
3713 $as_echo "#define WANT_ASSEMBLY 1" >>confdefs.h
3714
3715 fi
3716
3717
3718 # Check whether --enable-fft was given.
3719 if test "${enable_fft+set}" = set; then :
3720   enableval=$enable_fft; case $enableval in
3721 yes|no) ;;
3722 *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3723 esac
3724 else
3725   enable_fft=yes
3726 fi
3727
3728
3729 if test "$enable_fft" = "yes"; then
3730
3731 $as_echo "#define WANT_FFT 1" >>confdefs.h
3732
3733 fi
3734
3735
3736 # Check whether --enable-old-fft-full was given.
3737 if test "${enable_old_fft_full+set}" = set; then :
3738   enableval=$enable_old_fft_full; case $enableval in
3739 yes|no) ;;
3740 *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3741 esac
3742 else
3743   enable_old_fft_full=no
3744 fi
3745
3746
3747 if test "$enable_old_fft_full" = "yes"; then
3748
3749 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3750
3751 fi
3752
3753
3754 # Check whether --enable-nails was given.
3755 if test "${enable_nails+set}" = set; then :
3756   enableval=$enable_nails; case $enableval in
3757 yes|no|[02468]|[0-9][02468]) ;;
3758 *[13579])
3759   as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3760 *)
3761   as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3762 esac
3763 else
3764   enable_nails=no
3765 fi
3766
3767
3768 case $enable_nails in
3769 yes) GMP_NAIL_BITS=2 ;;
3770 no)  GMP_NAIL_BITS=0 ;;
3771 *)   GMP_NAIL_BITS=$enable_nails ;;
3772 esac
3773
3774
3775
3776 # Check whether --enable-profiling was given.
3777 if test "${enable_profiling+set}" = set; then :
3778   enableval=$enable_profiling; case $enableval in
3779 no|prof|gprof|instrument) ;;
3780 *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3781 esac
3782 else
3783   enable_profiling=no
3784 fi
3785
3786
3787 case $enable_profiling in
3788   prof)
3789
3790 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3791
3792     ;;
3793   gprof)
3794
3795 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3796
3797     ;;
3798   instrument)
3799
3800 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3801
3802     ;;
3803 esac
3804
3805
3806 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3807
3808
3809 # -fomit-frame-pointer is incompatible with -pg on some chips
3810 if test "$enable_profiling" = gprof; then
3811   fomit_frame_pointer=
3812 else
3813   fomit_frame_pointer="-fomit-frame-pointer"
3814 fi
3815
3816
3817
3818 # Check whether --with-readline was given.
3819 if test "${with_readline+set}" = set; then :
3820   withval=$with_readline; case $withval in
3821 yes|no|detect) ;;
3822 *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3823 esac
3824 else
3825   with_readline=detect
3826 fi
3827
3828
3829
3830 # Check whether --enable-fat was given.
3831 if test "${enable_fat+set}" = set; then :
3832   enableval=$enable_fat; case $enableval in
3833 yes|no) ;;
3834 *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3835 esac
3836 else
3837   enable_fat=no
3838 fi
3839
3840
3841
3842 # Check whether --enable-minithres was given.
3843 if test "${enable_minithres+set}" = set; then :
3844   enableval=$enable_minithres; case $enableval in
3845 yes|no) ;;
3846 *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3847 esac
3848 else
3849   enable_minithres=no
3850 fi
3851
3852
3853
3854 if test $enable_fat = yes && test $enable_assembly = no ; then
3855   as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5
3856 fi
3857
3858
3859 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3860 cat >>confdefs.h <<_ACEOF
3861 #define HAVE_HOST_CPU_$tmp_host 1
3862 _ACEOF
3863
3864
3865 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
3866
3867
3868
3869
3870
3871
3872 # Table of compilers, options, and mpn paths.  This code has various related
3873 # purposes
3874 #
3875 #   - better default CC/CFLAGS selections than autoconf otherwise gives
3876 #   - default CC/CFLAGS selections for extra CPU types specific to GMP
3877 #   - a few tests for known bad compilers
3878 #   - choice of ABIs on suitable systems
3879 #   - selection of corresponding mpn search path
3880 #
3881 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
3882 # called.  User selections of CC etc are respected.
3883 #
3884 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
3885 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
3886 # them cache their results, which is not wanted.
3887 #
3888 # The ABI selection mechanism is unique to GMP.  All that reaches autoconf
3889 # is a different selection of CC/CFLAGS according to the best ABI the system
3890 # supports, and/or what the user selects.  Naturally the mpn assembler code
3891 # selected is very dependent on the ABI.
3892 #
3893 # The closest the standard tools come to a notion of ABI is something like
3894 # "sparc64" which encodes a CPU and an ABI together.  This doesn't seem to
3895 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
3896 # separate from the ABI used on them.
3897 #
3898 #
3899 # The variables set here are
3900 #
3901 #   cclist              the compiler choices
3902 #   xx_cflags           flags for compiler xx
3903 #   xx_cflags_maybe     flags for compiler xx, if they work
3904 #   xx_cppflags         cpp flags for compiler xx
3905 #   xx_cflags_optlist   list of sets of optional flags
3906 #   xx_cflags_yyy       set yyy of optional flags for compiler xx
3907 #   xx_ldflags          -Wc,-foo flags for libtool linking with compiler xx
3908 #   ar_flags            extra flags for $AR
3909 #   nm_flags            extra flags for $NM
3910 #   limb                limb size, can be "longlong"
3911 #   path                mpn search path
3912 #   extra_functions     extra mpn functions
3913 #   fat_path            fat binary mpn search path [if fat binary desired]
3914 #   fat_functions       fat functions
3915 #   fat_thresholds      fat thresholds
3916 #
3917 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
3918 # tried, and the first flag that works will be used.  An optlist like "arch
3919 # cpu optimize" can be used to get multiple independent sets of flags tried.
3920 # The first that works from each will be used.  If no flag in a set works
3921 # then nothing from that set is added.
3922 #
3923 # For multiple ABIs, the scheme extends as follows.
3924 #
3925 #   abilist               set of ABI choices
3926 #   cclist_aa             compiler choices in ABI aa
3927 #   xx_aa_cflags          flags for xx in ABI aa
3928 #   xx_aa_cflags_maybe    flags for xx in ABI aa, if they work
3929 #   xx_aa_cppflags        cpp flags for xx in ABI aa
3930 #   xx_aa_cflags_optlist  list of sets of optional flags in ABI aa
3931 #   xx_aa_cflags_yyy      set yyy of optional flags for compiler xx in ABI aa
3932 #   xx_aa_ldflags         -Wc,-foo flags for libtool linking
3933 #   ar_aa_flags           extra flags for $AR in ABI aa
3934 #   nm_aa_flags           extra flags for $NM in ABI aa
3935 #   limb_aa               limb size in ABI aa, can be "longlong"
3936 #   path_aa               mpn search path in ABI aa
3937 #   extra_functions_aa    extra mpn functions in ABI aa
3938 #
3939 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
3940 # in ablist, if an xx_aa_cflags for that ABI isn't given.  For example if
3941 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
3942 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
3943 # defined.  This makes it easy to add some 64-bit compilers and flags to an
3944 # unadorned 32-bit set.
3945 #
3946 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
3947 # ABI.  It won't work to have some needing long long and some not, since a
3948 # single instantiated gmp.h will be used by both.
3949 #
3950 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
3951 # also set here, with an ABI suffix.
3952 #
3953 #
3954 #
3955 # A table-driven approach like this to mapping cpu type to good compiler
3956 # options is a bit of a maintenance burden, but there's not much uniformity
3957 # between options specifications on different compilers.  Some sort of
3958 # separately updatable tool might be cute.
3959 #
3960 # The use of lots of variables like this, direct and indirect, tends to
3961 # obscure when and how various things are done, but unfortunately it's
3962 # pretty much the only way.  If shell subroutines were portable then actual
3963 # code like "if this .. do that" could be written, but attempting the same
3964 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
3965 # hugely bloat the output.
3966
3967
3968
3969
3970 # abilist needs to be non-empty, "standard" is just a generic name here
3971 abilist="standard"
3972
3973 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
3974 # c89 over cc here.  But note that on HP-UX c89 provides a castrated
3975 # environment, and would want to be excluded somehow.  Maybe
3976 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
3977 # we don't need to worry.
3978 #
3979 cclist="gcc cc"
3980
3981 gcc_cflags="-O2 -pedantic"
3982 gcc_64_cflags="-O2 -pedantic"
3983 cc_cflags="-O"
3984 cc_64_cflags="-O"
3985
3986 SPEED_CYCLECOUNTER_OBJ=
3987 cyclecounter_size=2
3988
3989 HAVE_HOST_CPU_FAMILY_power=0
3990
3991 HAVE_HOST_CPU_FAMILY_powerpc=0
3992
3993
3994 case $host in
3995
3996   a29k*-*-*)
3997     path="a29k"
3998     ;;
3999
4000
4001   alpha*-*-*)
4002     $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
4003
4004     case $host_cpu in
4005       alphaev5* | alphapca5*)
4006         path="alpha/ev5 alpha" ;;
4007       alphaev67 | alphaev68 | alphaev7*)
4008         path="alpha/ev67 alpha/ev6 alpha" ;;
4009       alphaev6)
4010         path="alpha/ev6 alpha" ;;
4011       *)
4012         path="alpha" ;;
4013     esac
4014     extra_functions="cntlz"
4015     gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4016     gcc_cflags_oldas="-Wa,-oldas"     # see GMP_GCC_WA_OLDAS.
4017
4018     # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4019     # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4020     # gcc 3.0 adds nothing.
4021     # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4022     # gcc 3.2 adds nothing.
4023     #
4024     # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4025     # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS.  Each
4026     # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4027     #
4028     case $host_cpu in
4029       alpha)        gcc_cflags_cpu="-mcpu=ev4" ;;
4030       alphaev5)     gcc_cflags_cpu="-mcpu=ev5" ;;
4031       alphaev56)    gcc_cflags_cpu="-mcpu=ev56" ;;
4032       alphapca56 | alphapca57)
4033                     gcc_cflags_cpu="-mcpu=pca56" ;;
4034       alphaev6)     gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4035       alphaev67 | alphaev68 | alphaev7*)
4036                     gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4037     esac
4038
4039     # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4040     # accepting -mcpu=ev6, but not putting the assembler in the right mode
4041     # for what it produces.  We need to do this for it, and need to do it
4042     # before testing the -mcpu options.
4043     #
4044     # On old versions of gcc, which don't know -mcpu=, we believe an
4045     # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4046     # the right mode for our .asm files and longlong.h asm blocks.
4047     #
4048     # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4049     # which is at least as high as the code gcc will generate.  gcc
4050     # establishes what it needs with a ".arch" directive, our command line
4051     # option seems to override that.
4052     #
4053     # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4054     # ctlz and cttz (in 2.10.0 at least).
4055     #
4056     # OSF `as' accepts ev68 but stupidly treats it as ev4.  -arch only seems
4057     # to affect insns like ldbu which are expanded as macros when necessary.
4058     # Insns like ctlz which were never available as macros are always
4059     # accepted and always generate their plain code.
4060     #
4061     case $host_cpu in
4062       alpha)        gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4063       alphaev5)     gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4064       alphaev56)    gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4065       alphapca56 | alphapca57)
4066                     gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4067       alphaev6)     gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4068       alphaev67 | alphaev68 | alphaev7*)
4069                     gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4070     esac
4071
4072     # It might be better to ask "cc" whether it's Cray C or DEC C,
4073     # instead of relying on the OS part of $host.  But it's hard to
4074     # imagine either of those compilers anywhere except their native
4075     # systems.
4076     #
4077
4078 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4079
4080     case $host in
4081       *-cray-unicos*)
4082         cc_cflags="-O"          # no -g, it silently disables all optimizations
4083
4084 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4085
4086         # Don't perform any assembly syntax tests on this beast.
4087         gmp_asm_syntax_testing=no
4088         ;;
4089       *-*-osf*)
4090
4091 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4092
4093         cc_cflags=""
4094         cc_cflags_optlist="opt cpu"
4095
4096         # not sure if -fast works on old versions, so make it optional
4097         cc_cflags_opt="-fast -O2"
4098
4099         # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4100         # Compaq C V6.3-029 adds ev67.
4101         #
4102         case $host_cpu in
4103           alpha)       cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4104           alphaev5)    cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4105           alphaev56)   cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4106           alphapca56 | alphapca57)
4107             cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4108           alphaev6)    cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4109           alphaev67 | alphaev68 | alphaev7*)
4110             cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4111         esac
4112         ;;
4113       *)
4114
4115 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4116
4117         ;;
4118     esac
4119
4120     case $host in
4121       *-*-unicos*)
4122         # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4123         ;;
4124       *)
4125         SPEED_CYCLECOUNTER_OBJ=alpha.lo
4126         cyclecounter_size=1 ;;
4127     esac
4128     ;;
4129
4130
4131   # Cray vector machines.
4132   # This must come after alpha* so that we can recognize present and future
4133   # vector processors with a wildcard.
4134   *-cray-unicos*)
4135     gmp_asm_syntax_testing=no
4136     cclist="cc"
4137     # We used to have -hscalar0 here as a workaround for miscompilation of
4138     # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4139     # -hscalar0 causes disastrously poor code to be generated.
4140     cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4141     path="cray"
4142     ;;
4143
4144
4145   arm*-*-*)
4146     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4147     gcc_cflags_optlist="arch tune"
4148     gcc_cflags_maybe="-marm"
4149     gcc_testlist="gcc-arm-umodsi"
4150
4151 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4152
4153     CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
4154
4155     case $host_cpu in
4156       armsa1 | armv4*)
4157         path="arm"
4158         gcc_cflags_arch="-march=armv4"
4159         ;;
4160       armxscale | arm926 | arm946 | arm966 | arm1026 | armv5*)
4161         path="arm/v5 arm"
4162         gcc_cflags_arch="-march=armv5"
4163         ;;
4164       arm11mpcore | arm1136 | arm1176 | armv6*)
4165         path="arm/v6 arm/v5 arm"
4166         gcc_cflags_arch="-march=armv6"
4167         ;;
4168       arm1156)
4169         path="arm/v6t2 arm/v6 arm/v5 arm"
4170         gcc_cflags_arch="-march=armv6t2"
4171         ;;
4172       armcortexa9)
4173         path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4174         gcc_cflags_arch="-march=armv7-a"
4175         gcc_cflags_tune="-mtune=cortex-a9"
4176         ;;
4177       armcortexa15)
4178         path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4179         gcc_cflags_arch="-march=armv7-a"
4180         gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4181         ;;
4182       armcortexa5 | armcortexa8 | armv7a*)
4183         path="arm/v6t2 arm/v6 arm/v5 arm"
4184         gcc_cflags_arch="-march=armv7-a"
4185         ;;
4186       *)
4187         path="arm"
4188         ;;
4189     esac
4190     ;;
4191
4192
4193   clipper*-*-*)
4194     path="clipper"
4195     ;;
4196
4197
4198   # Fujitsu
4199   f30[01]-fujitsu-sysv*)
4200     cclist="gcc vcc"
4201     # FIXME: flags for vcc?
4202     vcc_cflags="-g"
4203     path="fujitsu"
4204     ;;
4205
4206
4207   hppa*-*-*)
4208     # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4209     # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4210     # possible.
4211     #
4212     # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4213     # (64-bit), but not both, so there's no option to choose the desired
4214     # mode, we must instead detect which of the two it is.  This is done by
4215     # checking sizeof(long), either 4 or 8 bytes respectively.  Do this in
4216     # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4217     #
4218     gcc_cflags_optlist="arch"
4219     gcc_testlist="sizeof-long-4"
4220     SPEED_CYCLECOUNTER_OBJ=hppa.lo
4221     cyclecounter_size=1
4222
4223     # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4224     # (Can't remember why this isn't done already, have to check what .asm
4225     # files are available in each and how they run on a typical 2.0 cpu.)
4226     #
4227     case $host_cpu in
4228       hppa1.0*)    path="pa32" ;;
4229       hppa7000*)   path="pa32/hppa1_1 pa32" ;;
4230       hppa2.0* | hppa64)
4231                    path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4232       *)           # default to 7100
4233                    path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4234     esac
4235
4236     # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4237     # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4238     #
4239     # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4240     # be saved by the kernel on an old system.  Actually gcc (as of 3.2)
4241     # only adds a few float instructions with -mpa-risc-2-0, so it would
4242     # probably be safe, but let's not take the chance.  In any case, a
4243     # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4244     #
4245     case $host_cpu in
4246       hppa1.0*)           gcc_cflags_arch="-mpa-risc-1-0" ;;
4247       *)                  # default to 7100
4248                           gcc_cflags_arch="-mpa-risc-1-1" ;;
4249     esac
4250
4251     case $host_cpu in
4252       hppa1.0*)    cc_cflags="+O2" ;;
4253       *)           # default to 7100
4254                    cc_cflags="+DA1.1 +O2" ;;
4255     esac
4256
4257     case $host in
4258       hppa2.0*-*-* | hppa64-*-*)
4259         cclist_20n="gcc cc"
4260         abilist="2.0n 1.0"
4261         path_20n="pa64"
4262         limb_20n=longlong
4263         any_20n_testlist="sizeof-long-4"
4264         SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4265         cyclecounter_size_20n=2
4266
4267         # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4268         # used.  Assembler support for 2.0 is essential though, for our asm
4269         # files.
4270         gcc_20n_cflags="$gcc_cflags"
4271         gcc_20n_cflags_optlist="arch"
4272         gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4273         gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4274
4275         cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4276         cc_20n_testlist="hpc-hppa-2-0"
4277
4278         # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4279         # hppa2.0n, on the assumption that that the latter indicates a
4280         # desire for ABI=2.0n.
4281         case $host in
4282         hppa2.0n-*-*) ;;
4283         *)
4284           # HPUX 10 and earlier cannot run 2.0w.  Not sure about other
4285           # systems (GNU/Linux for instance), but lets assume they're ok.
4286           case $host in
4287             *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4288             *-*-linux*)  abilist="1.0" ;; # due to linux permanent kernel bug
4289             *)    abilist="2.0w $abilist" ;;
4290           esac
4291
4292           cclist_20w="gcc cc"
4293           gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0"
4294           cc_20w_cflags="+DD64 +O2"
4295           cc_20w_testlist="hpc-hppa-2-0"
4296           path_20w="pa64"
4297           any_20w_testlist="sizeof-long-8"
4298           SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4299           cyclecounter_size_20w=2
4300           ;;
4301         esac
4302         ;;
4303     esac
4304     ;;
4305
4306
4307   i960*-*-*)
4308     path="i960"
4309     ;;
4310
4311
4312   ia64*-*-* | itanium-*-* | itanium2-*-*)
4313     abilist="64"
4314
4315 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4316
4317     SPEED_CYCLECOUNTER_OBJ=ia64.lo
4318     any_32_testlist="sizeof-long-4"
4319
4320     case $host_cpu in
4321       itanium)   path="ia64/itanium  ia64" ;;
4322       itanium2)  path="ia64/itanium2 ia64" ;;
4323       *)         path="ia64" ;;
4324     esac
4325
4326     gcc_64_cflags_optlist="tune"
4327     gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4328
4329     # gcc pre-release 3.4 adds -mtune itanium and itanium2
4330     case $host_cpu in
4331       itanium)   gcc_cflags_tune="-mtune=itanium" ;;
4332       itanium2)  gcc_cflags_tune="-mtune=itanium2" ;;
4333     esac
4334
4335     case $host in
4336       *-*-linux*)
4337         cclist="gcc icc"
4338         icc_cflags="-no-gcc"
4339         icc_cflags_optlist="opt"
4340         # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4341         # But icc miscompiles GMP at any optimization level, at higher levels
4342         # it miscompiles more files...
4343         icc_cflags_opt="-O2 -O1"
4344         ;;
4345
4346       *-*-hpux*)
4347         # HP cc sometimes gets internal errors if the optimization level is
4348         # too high.  GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4349         # let us use whatever seems to work.
4350         #
4351         abilist="32 64"
4352         any_64_testlist="sizeof-long-8"
4353
4354         cclist_32="gcc cc"
4355         path_32="ia64"
4356         cc_32_cflags=""
4357         cc_32_cflags_optlist="opt"
4358         cc_32_cflags_opt="+O3 +O2 +O1"
4359         gcc_32_cflags="$gcc_cflags -milp32"
4360         limb_32=longlong
4361         SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4362         cyclecounter_size_32=2
4363
4364         # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4365         # but also need it in CFLAGS for linking programs, since automake
4366         # only uses CFLAGS when linking, not CPPFLAGS.
4367         # FIXME: Maybe should use cc_64_ldflags for this, but that would
4368         # need GMP_LDFLAGS used consistently by all the programs.
4369         #
4370         cc_64_cflags="+DD64"
4371         cc_64_cppflags="+DD64"
4372         cc_64_cflags_optlist="opt"
4373         cc_64_cflags_opt="+O3 +O2 +O1"
4374         gcc_64_cflags="$gcc_cflags -mlp64"
4375         ;;
4376     esac
4377     ;;
4378
4379
4380   # Motorola 68k
4381   #
4382   m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4383     $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4384
4385
4386 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4387
4388     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4389     gcc_cflags_optlist="arch"
4390
4391     # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4392     # gcc 2.95 adds -mcpu32, -m68060.
4393     # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4394     #
4395     case $host_cpu in
4396     m68020)  gcc_cflags_arch="-m68020" ;;
4397     m68030)  gcc_cflags_arch="-m68030" ;;
4398     m68040)  gcc_cflags_arch="-m68040" ;;
4399     m68060)  gcc_cflags_arch="-m68060 -m68000" ;;
4400     m68360)  gcc_cflags_arch="-mcpu32 -m68000" ;;
4401     *)       gcc_cflags_arch="-m68000" ;;
4402     esac
4403
4404     # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4405     # tested.  Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4406     # the bitfield instructions.
4407     case $host_cpu in
4408     m680[234]0 | m68360)  path="m68k/mc68020 m68k" ;;
4409     *)                      path="m68k" ;;
4410     esac
4411     ;;
4412
4413
4414   # Motorola 88k
4415   m88k*-*-*)
4416     path="m88k"
4417     ;;
4418   m88110*-*-*)
4419     gcc_cflags="$gcc_cflags -m88110"
4420     path="m88k/mc88110 m88k"
4421     ;;
4422
4423
4424   # National Semiconductor 32k
4425   ns32k*-*-*)
4426     path="ns32k"
4427     ;;
4428
4429
4430   # IRIX 5 and earlier can only run 32-bit o32.
4431   #
4432   # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64.  n32 is
4433   # preferred over 64, but only because that's been the default in past
4434   # versions of GMP.  The two are equally efficient.
4435   #
4436   # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4437   # supporting n32 or 64.
4438   #
4439   # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4440   # right options to use when linking (both cc and gcc), so no need for
4441   # anything special from us.
4442   #
4443   mips*-*-*)
4444     abilist="o32"
4445     gcc_cflags_optlist="abi"
4446     gcc_cflags_abi="-mabi=32"
4447     gcc_testlist="gcc-mips-o32"
4448     path="mips32"
4449     cc_cflags="-O2 -o32"   # no -g, it disables all optimizations
4450     # this suits both mips32 and mips64
4451
4452 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4453
4454
4455     case $host in
4456       mips64*-*-* | mips*-*-irix[6789]*)
4457         abilist="n32 64 o32"
4458
4459         cclist_n32="gcc cc"
4460         gcc_n32_cflags="$gcc_cflags -mabi=n32"
4461         cc_n32_cflags="-O2 -n32"        # no -g, it disables all optimizations
4462         limb_n32=longlong
4463         path_n32="mips64"
4464
4465         cclist_64="gcc cc"
4466         gcc_64_cflags="$gcc_cflags -mabi=64"
4467         gcc_64_ldflags="-Wc,-mabi=64"
4468         cc_64_cflags="-O2 -64"          # no -g, it disables all optimizations
4469         cc_64_ldflags="-Wc,-64"
4470         path_64="mips64"
4471         ;;
4472     esac
4473     ;;
4474
4475
4476   # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4477   # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4478   # used.
4479   #
4480   # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4481   # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4482   # and so always ends up running the plain preprocessor anyway.  This could
4483   # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4484   # preprocessing is done separately, and this is only a speedup, the normal
4485   # preprocessor gets run if there's any problems.
4486   #
4487   # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4488   # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4489   # the assembler in the right mode.  In any case -Wa,-mppc is not good, for
4490   # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4491   # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4492   # comes out with fsel fail.
4493   #
4494   # (Note also that the darwin assembler doesn't accept "-mppc", so any
4495   # -Wa,-mppc was used only if it worked.  The right flag on darwin would be
4496   # "-arch ppc" or some such, but that's already the default.)
4497   #
4498   powerpc*-*-* | power[3-9]-*-*)
4499     $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4500
4501     HAVE_HOST_CPU_FAMILY_powerpc=1
4502     abilist="32"
4503     cclist="gcc cc"
4504     cc_cflags="-O2"
4505     gcc_32_cflags="$gcc_cflags -mpowerpc"
4506     gcc_cflags_optlist="precomp subtype asm cpu"
4507     gcc_cflags_precomp="-no-cpp-precomp"
4508     gcc_cflags_subtype="-force_cpusubtype_ALL"  # for vmx on darwin
4509     gcc_cflags_asm=""
4510     gcc_cflags_cpu=""
4511     vmx_path=""
4512
4513     # grab this object, though it's not a true cycle counter routine
4514     SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4515     cyclecounter_size=0
4516
4517     case $host_cpu in
4518       powerpc740 | powerpc750)
4519         path="powerpc32/750 powerpc32" ;;
4520       powerpc7400 | powerpc7410)
4521         path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4522       powerpc74[45]?)
4523         path="powerpc32/vmx powerpc32" ;;
4524       *)
4525         path="powerpc32" ;;
4526     esac
4527
4528     case $host_cpu in
4529       powerpc401)   gcc_cflags_cpu="-mcpu=401" ;;
4530       powerpc403)   gcc_cflags_cpu="-mcpu=403"
4531                     xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4532       powerpc405)   gcc_cflags_cpu="-mcpu=405" ;;
4533       powerpc505)   gcc_cflags_cpu="-mcpu=505" ;;
4534       powerpc601)   gcc_cflags_cpu="-mcpu=601"
4535                     xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4536       powerpc602)   gcc_cflags_cpu="-mcpu=602"
4537                     xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4538       powerpc603)   gcc_cflags_cpu="-mcpu=603"
4539                     xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4540       powerpc603e)  gcc_cflags_cpu="-mcpu=603e -mcpu=603"
4541                     xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4542       powerpc604)   gcc_cflags_cpu="-mcpu=604"
4543                     xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4544       powerpc604e)  gcc_cflags_cpu="-mcpu=604e -mcpu=604"
4545                     xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4546       powerpc620)   gcc_cflags_cpu="-mcpu=620" ;;
4547       powerpc630)   gcc_cflags_cpu="-mcpu=630"
4548                     xlc_cflags_arch="-qarch=pwr3"
4549                     cpu_path="p3 p3-p7" ;;
4550       powerpc740)   gcc_cflags_cpu="-mcpu=740" ;;
4551       powerpc7400 | powerpc7410)
4552                     gcc_cflags_asm="-Wa,-maltivec"
4553                     gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4554       powerpc74[45]?)
4555                     gcc_cflags_asm="-Wa,-maltivec"
4556                     gcc_cflags_cpu="-mcpu=7450" ;;
4557       powerpc750)   gcc_cflags_cpu="-mcpu=750" ;;
4558       powerpc801)   gcc_cflags_cpu="-mcpu=801" ;;
4559       powerpc821)   gcc_cflags_cpu="-mcpu=821" ;;
4560       powerpc823)   gcc_cflags_cpu="-mcpu=823" ;;
4561       powerpc860)   gcc_cflags_cpu="-mcpu=860" ;;
4562       powerpc970)   gcc_cflags_cpu="-mtune=970"
4563                     xlc_cflags_arch="-qarch=970 -qarch=pwr3"
4564                     vmx_path="powerpc64/vmx"
4565                     cpu_path="p4 p3-p7" ;;
4566       power4)       gcc_cflags_cpu="-mtune=power4"
4567                     xlc_cflags_arch="-qarch=pwr4"
4568                     cpu_path="p4 p3-p7" ;;
4569       power5)       gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4570                     xlc_cflags_arch="-qarch=pwr5"
4571                     cpu_path="p5 p4 p3-p7" ;;
4572       power6)       gcc_cflags_cpu="-mtune=power6"
4573                     xlc_cflags_arch="-qarch=pwr6"
4574                     cpu_path="p6 p3-p7" ;;
4575       power7)       gcc_cflags_cpu="-mtune=power7 -mtune=power5"
4576                     xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
4577                     cpu_path="p7 p5 p4 p3-p7" ;;
4578     esac
4579
4580     case $host in
4581       *-*-aix*)
4582         cclist="gcc xlc cc"
4583         gcc_32_cflags_maybe="-maix32"
4584         xlc_cflags="-O2 -qmaxmem=20000"
4585         xlc_cflags_optlist="arch"
4586         xlc_32_cflags_maybe="-q32"
4587         ar_32_flags="-X32"
4588         nm_32_flags="-X32"
4589     esac
4590
4591     case $host in
4592       powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4593         case $host in
4594           *-*-aix*)
4595             # On AIX a true 64-bit ABI is available.
4596             # Need -Wc to pass object type flags through to the linker.
4597             abilist="mode64 $abilist"
4598             cclist_mode64="gcc xlc"
4599             gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64"
4600             gcc_mode64_cflags_optlist="cpu"
4601             gcc_mode64_ldflags="-Wc,-maix64"
4602             xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000"
4603             xlc_mode64_cflags_optlist="arch"
4604             xlc_mode64_ldflags="-Wc,-q64"
4605             # Must indicate object type to ar and nm
4606             ar_mode64_flags="-X64"
4607             nm_mode64_flags="-X64"
4608             path_mode64=""
4609             p=""
4610             for i in $cpu_path
4611               do path_mode64="${path_mode64}powerpc64/mode64/$i "
4612                  path_mode64="${path_mode64}powerpc64/$i "
4613                  p="${p} powerpc32/$i "
4614               done
4615             path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4616             path="$p $path"
4617             # grab this object, though it's not a true cycle counter routine
4618             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4619             cyclecounter_size_mode64=0
4620             ;;
4621           *-*-darwin*)
4622             # On Darwin we can use 64-bit instructions with a longlong limb,
4623             # but the chip still in 32-bit mode.
4624             # In theory this can be used on any OS which knows how to save
4625             # 64-bit registers in a context switch.
4626             #
4627             # Note that we must use -mpowerpc64 with gcc, since the
4628             # longlong.h macros expect limb operands in a single 64-bit
4629             # register, not two 32-bit registers as would be given for a
4630             # long long without -mpowerpc64.  In theory we could detect and
4631             # accommodate both styles, but the proper 64-bit registers will
4632             # be fastest and are what we really want to use.
4633             #
4634             # One would think -mpowerpc64 would set the assembler in the right
4635             # mode to handle 64-bit instructions.  But for that, also
4636             # -force_cpusubtype_ALL is needed.
4637             #
4638             # Do not use -fast for Darwin, it actually adds options
4639             # incompatible with a shared library.
4640             #
4641             abilist="mode64 mode32 $abilist"
4642             gcc_32_cflags_maybe="-m32"
4643             gcc_cflags_opt="-O3 -O2 -O1"        # will this become used?
4644             cclist_mode32="gcc"
4645             gcc_mode32_cflags_maybe="-m32"
4646             gcc_mode32_cflags="-mpowerpc64"
4647             gcc_mode32_cflags_optlist="subtype cpu opt"
4648             gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4649             gcc_mode32_cflags_opt="-O3 -O2 -O1"
4650             limb_mode32=longlong
4651             cclist_mode64="gcc"
4652             gcc_mode64_cflags="-m64"
4653             gcc_mode64_cflags_optlist="cpu opt"
4654             gcc_mode64_cflags_opt="-O3 -O2 -O1"
4655             path_mode64=""
4656             path_mode32=""
4657             p=""
4658             for i in $cpu_path
4659               do path_mode64="${path_mode64}powerpc64/mode64/$i "
4660                  path_mode64="${path_mode64}powerpc64/$i "
4661                  path_mode32="${path_mode32}powerpc64/mode32/$i "
4662                  path_mode32="${path_mode32}powerpc64/$i "
4663                  p="${p} powerpc32/$i "
4664               done
4665             path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4666             path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4667             path="$p $path"
4668             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4669             cyclecounter_size_mode64=0
4670             any_mode64_testlist="sizeof-long-8"
4671             ;;
4672           *-*-linux* | *-*-*bsd*)
4673             # On GNU/Linux, assume the processor is in 64-bit mode.  Some
4674             # environments have a gcc that is always in 64-bit mode, while
4675             # others require -m64, hence the use of cflags_maybe.  The
4676             # sizeof-long-8 test checks the mode is right (for the no option
4677             # case).
4678             #
4679             # -mpowerpc64 is not used, since it should be the default in
4680             # 64-bit mode.  (We need its effect for the various longlong.h
4681             # asm macros to be right of course.)
4682             #
4683             # gcc64 was an early port of gcc to 64-bit mode, but should be
4684             # obsolete before too long.  We prefer plain gcc when it knows
4685             # 64-bits.
4686             #
4687             abilist="mode64 mode32 $abilist"
4688             gcc_32_cflags_maybe="-m32"
4689             cclist_mode32="gcc"
4690             gcc_mode32_cflags_maybe="-m32"
4691             gcc_mode32_cflags="-mpowerpc64"
4692             gcc_mode32_cflags_optlist="cpu opt"
4693             gcc_mode32_cflags_opt="-O3 -O2 -O1"
4694             limb_mode32=longlong
4695             cclist_mode64="gcc gcc64"
4696             gcc_mode64_cflags_maybe="-m64"
4697             gcc_mode64_cflags_optlist="cpu opt"
4698             gcc_mode64_cflags_opt="-O3 -O2 -O1"
4699             path_mode64=""
4700             path_mode32=""
4701             p=""
4702             for i in $cpu_path
4703               do path_mode64="${path_mode64}powerpc64/mode64/$i "
4704                  path_mode64="${path_mode64}powerpc64/$i "
4705                  path_mode32="${path_mode32}powerpc64/mode32/$i "
4706                  path_mode32="${path_mode32}powerpc64/$i "
4707                  p="${p} powerpc32/$i "
4708               done
4709             path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4710             path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4711             path="$p $path"
4712             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4713             cyclecounter_size_mode64=0
4714             any_mode64_testlist="sizeof-long-8"
4715             ;;
4716         esac
4717         ;;
4718     esac
4719     ;;
4720
4721
4722   # POWER 32-bit
4723   power-*-* | power[12]-*-* | power2sc-*-*)
4724     $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4725
4726     HAVE_HOST_CPU_FAMILY_power=1
4727     cclist="gcc"
4728     extra_functions="udiv_w_sdiv"
4729     path="power"
4730
4731     # gcc 2.7.2 knows rios1, rios2, rsc
4732     #
4733     # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4734     # there needs to be a fallback to just -mpower.
4735     #
4736     gcc_cflags_optlist="cpu"
4737     case $host in
4738       power-*-*)    gcc_cflags_cpu="-mcpu=power -mpower" ;;
4739       power1-*-*)   gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4740       power2-*-*)   gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4741       power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc   -mpower" ;;
4742     esac
4743     case $host in
4744     *-*-aix*)
4745       cclist="gcc xlc"
4746       xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4747       ;;
4748     esac
4749     ;;
4750
4751
4752   pyramid-*-*)
4753     path="pyr"
4754     ;;
4755
4756
4757   # IBM System/390 and z/Architecture
4758   s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4759     abilist="32"
4760     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4761     gcc_cflags_optlist="arch"
4762     path="s390_32"
4763     extra_functions="udiv_w_sdiv"
4764     gcc_32_cflags_maybe="-m31"
4765
4766     case $host_cpu in
4767       s390)
4768         ;;
4769       z900 | z900esa)
4770         cpu="z900"
4771         gccarch="$cpu"
4772         path="s390_32/esame/$cpu s390_32/esame s390_32"
4773         gcc_cflags_arch="-march=$gccarch"
4774         cat >>confdefs.h <<_ACEOF
4775 #define HAVE_HOST_CPU_s390_$cpu 1
4776 _ACEOF
4777
4778         $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4779
4780         extra_functions=""
4781         ;;
4782       z990 | z990esa)
4783         cpu="z990"
4784         gccarch="$cpu"
4785         path="s390_32/esame/$cpu s390_32/esame s390_32"
4786         gcc_cflags_arch="-march=$gccarch"
4787         cat >>confdefs.h <<_ACEOF
4788 #define HAVE_HOST_CPU_s390_$cpu 1
4789 _ACEOF
4790
4791         $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4792
4793         extra_functions=""
4794         ;;
4795       z9 | z9esa)
4796         cpu="z9"
4797         gccarch="z9-109"
4798         path="s390_32/esame/$cpu s390_32/esame s390_32"
4799         gcc_cflags_arch="-march=$gccarch"
4800         cat >>confdefs.h <<_ACEOF
4801 #define HAVE_HOST_CPU_s390_$cpu 1
4802 _ACEOF
4803
4804         $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4805
4806         extra_functions=""
4807         ;;
4808       z10 | z10esa)
4809         cpu="z10"
4810         gccarch="z10"
4811         path="s390_32/esame/$cpu s390_32/esame s390_32"
4812         gcc_cflags_arch="-march=$gccarch"
4813         cat >>confdefs.h <<_ACEOF
4814 #define HAVE_HOST_CPU_s390_$cpu 1
4815 _ACEOF
4816
4817         $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4818
4819         extra_functions=""
4820         ;;
4821       z196 | z196esa)
4822         cpu="z196"
4823         gccarch="z196"
4824         path="s390_32/esame/$cpu s390_32/esame s390_32"
4825         gcc_cflags_arch="-march=$gccarch"
4826         cat >>confdefs.h <<_ACEOF
4827 #define HAVE_HOST_CPU_s390_$cpu 1
4828 _ACEOF
4829
4830         $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4831
4832         extra_functions=""
4833         ;;
4834       esac
4835
4836     case $host in
4837       s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4838         abilist="64 32"
4839         cclist_64="gcc"
4840         gcc_64_cflags_optlist="arch"
4841         gcc_64_cflags="$gcc_cflags -m64"
4842         path_64="s390_64/$host_cpu s390_64"
4843         extra_functions=""
4844         ;;
4845       esac
4846     ;;
4847
4848
4849   sh-*-*)   path="sh" ;;
4850   sh[2-4]-*-*)  path="sh/sh2 sh" ;;
4851
4852
4853   *sparc*-*-*)
4854     # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI.  We've
4855     # had various bug reports where users have set CFLAGS for their desired
4856     # mode, but not set our ABI.  For some reason it's sparc where this
4857     # keeps coming up, presumably users there are accustomed to driving the
4858     # compiler mode that way.  The effect of our testlist setting is to
4859     # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4860     # 32-bit mode.
4861     #
4862     abilist="32"
4863     cclist="gcc acc cc"
4864     any_testlist="sizeof-long-4"
4865
4866 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4867
4868
4869     case $host_cpu in
4870       sparcv8 | microsparc | turbosparc)
4871         path="sparc32/v8 sparc32" ;;
4872       supersparc)
4873         path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4874       sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*)
4875         path="sparc32/v9 sparc32/v8 sparc32" ;;
4876       ultrasparct[12345])
4877         path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;;
4878       *)
4879         path="sparc32" ;;
4880     esac
4881
4882     # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4883     # assembler.  Add it explicitly since the solaris assembler won't accept
4884     # our sparc32/v9 asm code without it.  gas accepts -xarch=v8plus too, so
4885     # it can be in the cflags unconditionally (though gas doesn't need it).
4886     #
4887     # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4888     # gcc doesn't know that flag, hence cflags_maybe.  Note that -m32 cannot
4889     # be done through the optlist since the plain cflags would be run first
4890     # and we don't want to require the default mode (whatever it is) works.
4891     #
4892     # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4893     # latter would be used in the 64-bit ABI on systems like "*bsd" where
4894     # abilist="64" only.
4895     #
4896     case $host_cpu in
4897       ultrasparct[345])
4898         gcc_32_cflags="$gcc_cflags -Wa,-xarch=v8plusd" ;;
4899       sparc64 | sparcv9* | ultrasparc*)
4900         gcc_32_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
4901     esac
4902     gcc_32_cflags_maybe="-m32"
4903     gcc_cflags_optlist="cpu"
4904
4905     # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4906     # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4907     #   sparclet, tsc701, v9, ultrasparc.  A warning is given that the
4908     #   plain -m forms will disappear.
4909     # gcc 3.0 adds nothing.
4910     # gcc 3.1 adds nothing.
4911     # gcc 3.2 adds nothing.
4912     # gcc 3.3 adds ultrasparc3.
4913     #
4914     case $host_cpu in
4915       supersparc)           gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
4916       sparcv8 | microsparc | turbosparc)
4917                             gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
4918       sparc64 | sparcv9*)   gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
4919       ultrasparc3)          gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
4920       ultrasparc*)          gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
4921       *)                    gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
4922     esac
4923
4924     # SunPRO cc and acc, and SunOS bundled cc
4925     case $host in
4926       *-*-solaris* | *-*-sunos*)
4927         # Note no -g, it disables all optimizations.
4928         cc_cflags=
4929         cc_cflags_optlist="opt arch cpu"
4930
4931         # SunOS cc doesn't know -xO4, fallback to -O2.
4932         cc_cflags_opt="-xO4 -O2"
4933
4934         # SunOS cc doesn't know -xarch, apparently always generating v7
4935         # code, so make this optional
4936         case $host_cpu in
4937           sparcv8 | microsparc | supersparc | turbosparc)
4938                                               cc_cflags_arch="-xarch=v8" ;;
4939           ultrasparct[345])                 cc_cflags_arch="-xarch=v8plusd" ;;
4940           sparc64 | sparcv9* | ultrasparc*)   cc_cflags_arch="-xarch=v8plus" ;;
4941           *)                                  cc_cflags_arch="-xarch=v7" ;;
4942         esac
4943
4944         # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4945         # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4946         #   micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4947         # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4948         #
4949         # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
4950         # ultrasparc3?
4951         #
4952         case $host_cpu in
4953           supersparc)   cc_cflags_cpu="-xchip=super" ;;
4954           microsparc)   cc_cflags_cpu="-xchip=micro" ;;
4955           turbosparc)   cc_cflags_cpu="-xchip=micro2" ;;
4956           ultrasparc)   cc_cflags_cpu="-xchip=ultra" ;;
4957           ultrasparc2)  cc_cflags_cpu="-xchip=ultra2" ;;
4958           ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
4959           ultrasparc3)  cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4960           *)            cc_cflags_cpu="-xchip=generic" ;;
4961         esac
4962     esac
4963
4964     case $host_cpu in
4965       sparc64 | sparcv9* | ultrasparc*)
4966         case $host in
4967           # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4968           # registers properly, so ABI=32 is left as the only choice.
4969           #
4970           *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
4971
4972           # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
4973           # choice.  In fact they need no special compiler flags, gcc -m64
4974           # is the default, but it doesn't hurt to add it.  v9 CPUs always
4975           # use the sparc64 port, since the plain 32-bit sparc ports don't
4976           # run on a v9.
4977           #
4978           *-*-*bsd*) abilist="64" ;;
4979
4980           # For all other systems, we try both 64 and 32.
4981           #
4982           # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
4983           # In the past sparc64 meant a v9 cpu, but there were no 64-bit
4984           # operations in user mode.  We assume that if "gcc -m64" works
4985           # then the system is suitable.  Hopefully even if someone attempts
4986           # to put a new gcc and/or glibc on an old system it won't run.
4987           #
4988           *) abilist="64 32" ;;
4989         esac
4990
4991         case $host_cpu in
4992           ultrasparc | ultrasparc2 | ultrasparc2i)
4993             path_64="sparc64/ultrasparc1234 sparc64" ;;
4994           ultrasparc[34])
4995             path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
4996           ultrasparct[12345])
4997             path_64="sparc64/ultrasparct1 sparc64" ;;
4998           *)
4999             path_64="sparc64"
5000         esac
5001
5002         cclist_64="gcc"
5003         any_64_testlist="sizeof-long-8"
5004
5005         # gcc -mptr64 is probably implied by -m64, but we're not sure if
5006         # this was always so.  On Solaris in the past we always used both
5007         # "-m64 -mptr64".
5008         #
5009         # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5010         # solaris, but it would seem likely that if gcc is going to generate
5011         # 64-bit code it will have to add that option itself where needed.
5012         # An extra copy of this option should be harmless though, but leave
5013         # it until we're sure.  (Might want -xarch=v9a or -xarch=v9b for the
5014         # higher cpu types instead.)
5015         #
5016         gcc_64_cflags="$gcc_cflags -m64 -mptr64"
5017         gcc_64_ldflags="-Wc,-m64"
5018         gcc_64_cflags_optlist="cpu"
5019
5020         case $host in
5021           *-*-solaris*)
5022             # Sun cc.
5023             #
5024             # We used to have -fast and some fixup options here, but it
5025             # recurrently caused problems with miscompilation.  Of course,
5026             # -fast is documented as miscompiling things for the sake of speed.
5027             #
5028             cclist_64="$cclist_64 cc"
5029             cc_64_cflags="-xO3 -xarch=v9"
5030             cc_64_cflags_optlist="cpu"
5031             ;;
5032         esac
5033
5034         # using the v9 %tick register
5035         SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5036         SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5037         cyclecounter_size_32=2
5038         cyclecounter_size_64=2
5039         ;;
5040     esac
5041     ;;
5042
5043
5044   # VAX
5045   vax*-*-*elf*)
5046     # Use elf conventions (i.e., '%' register prefix, no global prefix)
5047     #
5048
5049 echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i
5050
5051     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5052     path="vax"
5053     extra_functions="udiv_w_sdiv"
5054     ;;
5055   vax*-*-*)
5056     # Default to aout conventions (i.e., no register prefix, '_' global prefix)
5057     #
5058     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5059     path="vax"
5060     extra_functions="udiv_w_sdiv"
5061     ;;
5062
5063
5064   # AMD and Intel x86 configurations, including AMD64
5065   #
5066   # Rumour has it gcc -O2 used to give worse register allocation than just
5067   # -O, but lets assume that's no longer true.
5068   #
5069   # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc.  -m64 is
5070   # the default in such a build (we think), so -m32 is essential for ABI=32.
5071   # This is, of course, done for any $host_cpu, not just x86_64, so we can
5072   # get such a gcc into the right mode to cross-compile to say i486-*-*.
5073   #
5074   # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5075   # it when it works.  We check sizeof(long)==4 to ensure we get the right
5076   # mode, in case -m32 has failed not because it's an old gcc, but because
5077   # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5078   #
5079   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5080     abilist="32"
5081     cclist="gcc icc cc"
5082     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5083     gcc_32_cflags_maybe="-m32"
5084     icc_cflags="-no-gcc"
5085     icc_cflags_optlist="opt"
5086     icc_cflags_opt="-O3 -O2 -O1"
5087     any_32_testlist="sizeof-long-4"
5088     CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5089
5090     # Availability of rdtsc is checked at run-time.
5091     SPEED_CYCLECOUNTER_OBJ=pentium.lo
5092
5093     # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486.  These
5094     #     represent -mcpu= since -m486 doesn't generate 486 specific insns.
5095     # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5096     # gcc 3.0 adds athlon.
5097     # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5098     #     athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5099     # gcc 3.2 adds winchip2.
5100     # gcc 3.3 adds winchip-c6.
5101     # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5102     # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5103     #
5104     # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5105     # old version of mpz/powm.c.  Seems to be fine with the current code, so
5106     # no need for any restrictions on that option.
5107     #
5108     # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5109     # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5110     # that as a fallback.
5111     #
5112     # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5113     # may not be supported by the assembler and/or the OS, and is bad in gcc
5114     # prior to 3.3.  The tests will reject these if no good, so fallbacks
5115     # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5116     # Note the relevant -march types are listed in the optflags handling
5117     # below, be sure to update there if adding new types emitting SSE2.
5118     #
5119     # -mtune is used at the start of each cpu option list to give something
5120     # gcc 3.4 will use, thereby avoiding warnings from -mcpu.  -mcpu forms
5121     # are retained for use by prior gcc.  For example pentium has
5122     # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5123     # -mcpu for prior.  If there's a brand new choice in 3.4 for a chip,
5124     # like k8 for x86_64, then it can be the -mtune at the start, no need to
5125     # duplicate anything.
5126     #
5127     gcc_cflags_optlist="cpu arch"
5128     case $host_cpu in
5129       i386*)
5130         gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5131         gcc_cflags_arch="-march=i386"
5132         path="x86"
5133         ;;
5134       i486*)
5135         gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5136         gcc_cflags_arch="-march=i486"
5137         path="x86/i486 x86"
5138         ;;
5139       i586 | pentium)
5140         gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5141         gcc_cflags_arch="-march=pentium"
5142         path="x86/pentium x86"
5143         ;;
5144       pentiummmx)
5145         gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5146         gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5147         path="x86/pentium/mmx x86/pentium x86"
5148         ;;
5149       i686 | pentiumpro)
5150         gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5151         gcc_cflags_arch="-march=pentiumpro -march=pentium"
5152         path="x86/p6 x86"
5153         ;;
5154       pentium2)
5155         gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5156         gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5157         path="x86/p6/mmx x86/p6 x86"
5158         ;;
5159       pentium3)
5160         gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5161         gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5162         path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5163         ;;
5164       pentiumm)
5165         gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5166         gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5167         path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5168         ;;
5169       k6)
5170         gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5171         gcc_cflags_arch="-march=k6"
5172         path="x86/k6/mmx x86/k6 x86"
5173         ;;
5174       k62)
5175         gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5176         gcc_cflags_arch="-march=k6-2 -march=k6"
5177         path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5178         ;;
5179       k63)
5180         gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5181         gcc_cflags_arch="-march=k6-3 -march=k6"
5182         path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5183         ;;
5184       geode)
5185         gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5186         gcc_cflags_arch="-march=k6-3 -march=k6"
5187         path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5188         ;;
5189       athlon)
5190         # Athlon instruction costs are close to P6 (3 cycle load latency,
5191         # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5192         # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5193         gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5194         gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5195         path="x86/k7/mmx x86/k7 x86"
5196         ;;
5197       i786 | pentium4)
5198         # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5199         # This gets us cmov to eliminate branches.  Maybe "athlon" would be
5200         # a possibility on gcc 3.0.
5201         #
5202         gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5203         gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5204         gcc_64_cflags_cpu="-mtune=nocona"
5205         path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86"
5206         path_64="x86_64/pentium4 x86_64"
5207         ;;
5208       viac32)
5209         # Not sure of the best fallbacks here for -mcpu.
5210         # c3-2 has sse and mmx, so pentium3 is good for -march.
5211         gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5212         gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5213         path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5214         ;;
5215       viac3*)
5216         # Not sure of the best fallbacks here.
5217         gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5218         gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5219         path="x86/pentium/mmx x86/pentium x86"
5220         ;;
5221       athlon64 | k8 | x86_64)
5222         gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5223         gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5224         path="x86/k8 x86/k7/mmx x86/k7 x86"
5225         path_64="x86_64/k8 x86_64"
5226         ;;
5227       k10)
5228         gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
5229         gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5230         path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86"
5231         path_64="x86_64/k10 x86_64/k8 x86_64"
5232         ;;
5233       bobcat)
5234         gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
5235         gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5236         path="x86/bobcat x86/k7/mmx x86/k7 x86"
5237         path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
5238         ;;
5239       bulldozer | bd1)
5240         gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5241         gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5242         path="x86/bd1 x86/k7/mmx x86/k7 x86"
5243         path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5244         ;;
5245       core2)
5246         gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5247         gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5248         path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5249         path_64="x86_64/core2 x86_64"
5250        ;;
5251       corei | coreinhm | coreiwsm)
5252         gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5253         gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5254         path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5255         path_64="x86_64/coreinhm x86_64/core2 x86_64"
5256         ;;
5257       coreisbr | coreihwl | coreibwl)
5258         gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5259         gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5260         path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5261         path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5262         ;;
5263       atom)
5264         gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5265         gcc_cflags_arch="-march=atom -march=pentium3"
5266         path="x86/atom/sse2 x86/atom/mmx x86/atom x86"
5267         path_64="x86_64/atom x86_64"
5268         ;;
5269       nano)
5270         gcc_cflags_cpu="-mtune=nano"
5271         gcc_cflags_arch="-march=nano"
5272         path="x86/nano x86"
5273         path_64="x86_64/nano x86_64"
5274         ;;
5275       *)
5276         gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5277         gcc_cflags_arch="-march=i486"
5278         path="x86"
5279         path_64="x86_64"
5280         ;;
5281     esac
5282
5283     case $host in
5284       athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5285         cclist_64="gcc"
5286         gcc_64_cflags="$gcc_cflags -m64"
5287         gcc_64_cflags_optlist="cpu arch"
5288         CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5289         SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5290         cyclecounter_size_64=2
5291
5292         cclist_x32="gcc"
5293         gcc_x32_cflags="$gcc_cflags -mx32"
5294         gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
5295         CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
5296         SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
5297         cyclecounter_size_x32="$cyclecounter_size_64"
5298         path_x32="$path_64"
5299         limb_x32=longlong
5300         any_x32_testlist="sizeof-long-4"
5301
5302         abilist="64 x32 32"
5303         if test "$enable_assembly" = "yes" ; then
5304             extra_functions_64="invert_limb_table"
5305             extra_functions_x32=$extra_functions_64
5306         fi
5307
5308         case $host in
5309           *-*-solaris*)
5310             # Sun cc.
5311             cclist_64="$cclist_64 cc"
5312             cc_64_cflags="-xO3 -m64"
5313             ;;
5314           *-*-mingw* | *-*-cygwin)
5315             limb_64=longlong
5316             CALLING_CONVENTIONS_OBJS_64=""
5317
5318 $as_echo "#define HOST_DOS64 1" >>confdefs.h
5319
5320             GMP_NONSTD_ABI_64=DOS64
5321             ;;
5322         esac
5323         ;;
5324     esac
5325     ;;
5326
5327
5328   # FIXME: z8kx won't get through config.sub.  Could make 16 versus 32 bit
5329   # limb an ABI option perhaps.
5330   z8kx*-*-*)
5331     path="z8000x"
5332     extra_functions="udiv_w_sdiv"
5333     ;;
5334   z8k*-*-*)
5335     path="z8000"
5336     extra_functions="udiv_w_sdiv"
5337     ;;
5338
5339
5340   # Special CPU "none" used to select generic C, now this is obsolete.
5341   none-*-*)
5342     enable_assembly=no
5343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5
5344 $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;}
5345     ;;
5346
5347 esac
5348
5349 # mingw can be built by the cygwin gcc if -mno-cygwin is added.  For
5350 # convenience add this automatically if it works.  Actual mingw gcc accepts
5351 # -mno-cygwin too, but of course is the default.  mingw only runs on the
5352 # x86s, but allow any CPU here so as to catch "none" too.
5353 #
5354 case $host in
5355   *-*-mingw*)
5356     gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5357     gcc_cflags_nocygwin="-mno-cygwin"
5358     ;;
5359 esac
5360
5361
5362 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5363 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5364
5365 cat >&5 <<EOF
5366 User:
5367 ABI=$ABI
5368 CC=$CC
5369 CFLAGS=$CFLAGS_or_unset
5370 CPPFLAGS=$CPPFLAGS_or_unset
5371 MPN_PATH=$MPN_PATH
5372 GMP:
5373 abilist=$abilist
5374 cclist=$cclist
5375 EOF
5376
5377
5378 test_CFLAGS=${CFLAGS+set}
5379 test_CPPFLAGS=${CPPFLAGS+set}
5380
5381 for abi in $abilist; do
5382   abi_last="$abi"
5383 done
5384
5385 # If the user specifies an ABI then it must be in $abilist, after that
5386 # $abilist is restricted to just that choice.
5387 #
5388 if test -n "$ABI"; then
5389   found=no
5390   for abi in $abilist; do
5391     if test $abi = "$ABI"; then found=yes; break; fi
5392   done
5393   if test $found = no; then
5394     as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5395   fi
5396   abilist="$ABI"
5397 fi
5398
5399 found_compiler=no
5400
5401 for abi in $abilist; do
5402
5403   echo "checking ABI=$abi"
5404
5405   # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5406   # abi2="_64".  For abi=32, will have abi1="_32" and abi2="".  This is how
5407   # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5408   # abilist), but there's no fallback for $gcc_64_cflags.
5409   #
5410   abi1=`echo _$abi | sed 's/[.]//g'`
5411   if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5412
5413   # Compiler choices under this ABI
5414                               eval cclist_chosen=\"\$cclist$abi1\"
5415   test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5416
5417   # If there's a user specified $CC then don't use a list for
5418   # $cclist_chosen, just a single value for $ccbase.
5419   #
5420   if test -n "$CC"; then
5421
5422     # The first word of $CC, stripped of any directory.  For instance
5423     # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5424     #
5425     for ccbase in $CC; do break; done
5426     ccbase=`echo $ccbase | sed 's:.*/::'`
5427
5428     # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5429     # we can do flags defaulting with it.  If not, then $cclist_chosen is
5430     # set to "unrecognised" so no default flags are used.
5431     #
5432     # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5433     # non-symbol characters.  For instance ccbase=my+cc would end up with
5434     # something like cflags="$my+cc_cflags" which would give
5435     # cflags="+cc_cflags" rather than the intended empty string for an
5436     # unknown compiler.
5437     #
5438     found=unrecognised
5439     for i in $cclist_chosen; do
5440       if test "$ccbase" = $i; then
5441         found=$ccbase
5442         break
5443       fi
5444     done
5445     cclist_chosen=$found
5446   fi
5447
5448   for ccbase in $cclist_chosen; do
5449
5450     # When cross compiling, look for a compiler with the $host_alias as a
5451     # prefix, the same way that AC_CHECK_TOOL does.  But don't do this to a
5452     # user-selected $CC.
5453     #
5454     # $cross_compiling will be yes/no/maybe at this point.  Do the host
5455     # prefixing for "maybe" as well as "yes".
5456     #
5457     if test "$cross_compiling" != no && test -z "$CC"; then
5458       cross_compiling_prefix="${host_alias}-"
5459     fi
5460
5461     for ccprefix in $cross_compiling_prefix ""; do
5462
5463       cc="$CC"
5464       test -n "$cc" || cc="$ccprefix$ccbase"
5465
5466       # If the compiler is gcc but installed under another name, then change
5467       # $ccbase so as to use the flags we know for gcc.  This helps for
5468       # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5469       # native cc which is really gcc on NeXT or MacOS-X.
5470       #
5471       # FIXME: There's a slight misfeature here.  If cc is actually gcc but
5472       # gcc is not a known compiler under this $abi then we'll end up
5473       # testing it with no flags and it'll work, but chances are it won't be
5474       # in the right mode for the ABI we desire.  Let's quietly hope this
5475       # doesn't happen.
5476       #
5477       if test $ccbase != gcc; then
5478         cat >conftest.c <<EOF
5479 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5480   choke me
5481 #endif
5482 EOF
5483 gmp_compile="$cc -c conftest.c >&5"
5484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5485   (eval $gmp_compile) 2>&5
5486   ac_status=$?
5487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5488   test $ac_status = 0; }; then
5489   rm -f conftest*
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5491 $as_echo_n "checking whether $cc is gcc... " >&6; }
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5494   ccbase=gcc
5495 else
5496   rm -f conftest*
5497   :
5498 fi
5499
5500       fi
5501
5502       # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5503       # then change $ccbase and make the default xlc flags available.
5504       if test $ccbase != xlc; then
5505         gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5507   (eval $gmp_command) 2>&5
5508   ac_status=$?
5509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510   test $ac_status = 0; }; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5512 $as_echo_n "checking whether $cc is xlc... " >&6; }
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515   ccbase=xlc
5516 else
5517   :
5518 fi
5519
5520       fi
5521
5522       # acc was Sun's first unbundled compiler back in the SunOS days, or
5523       # something like that, but today its man page says it's not meant to
5524       # be used directly (instead via /usr/ucb/cc).  The options are pretty
5525       # much the same as the main SunPRO cc, so share those configs.
5526       #
5527       case $host in
5528         *sparc*-*-solaris* | *sparc*-*-sunos*)
5529           if test "$ccbase" = acc; then ccbase=cc; fi ;;
5530       esac
5531
5532       for tmp_cflags_maybe in yes no; do
5533                              eval cflags=\"\$${ccbase}${abi1}_cflags\"
5534         test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5535
5536         if test "$tmp_cflags_maybe" = yes; then
5537           # don't try cflags_maybe when the user set CFLAGS
5538           if test "$test_CFLAGS" = set; then continue; fi
5539                                      eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5540           test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5541           # don't try cflags_maybe if there's nothing set
5542           if test -z "$cflags_maybe"; then continue; fi
5543           cflags="$cflags_maybe $cflags"
5544         fi
5545
5546         # Any user CFLAGS, even an empty string, takes precedence
5547         if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5548
5549         # Any user CPPFLAGS, even an empty string, takes precedence
5550                                eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5551         test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5552         if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5553
5554         # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5555         # This is convenient, but it's perhaps a bit naughty to modify user
5556         # CFLAGS.
5557         case "$enable_profiling" in
5558           prof)       cflags="$cflags -p" ;;
5559           gprof)      cflags="$cflags -pg" ;;
5560           instrument) cflags="$cflags -finstrument-functions" ;;
5561         esac
5562
5563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5564 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5565 gmp_prog_cc_works=yes
5566
5567 # first see a simple "main()" works, then go on to other checks
5568 if test "$gmp_prog_cc_works" = yes; then
5569   # remove anything that might look like compiler output to our "||" expression
5570   rm -f conftest* a.out b.out a.exe a_out.exe
5571   cat >conftest.c <<EOF
5572
5573 int main () { return 0; }
5574 EOF
5575   echo "Test compile: " >&5
5576   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5578   (eval $gmp_compile) 2>&5
5579   ac_status=$?
5580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581   test $ac_status = 0; }; then
5582     cc_works_part=yes
5583     if test "$cross_compiling" = no; then
5584       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5585   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5586   (eval $ac_try) 2>&5
5587   ac_status=$?
5588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589   test $ac_status = 0; }; }; then :;
5590       else
5591         cc_works_part=norun
5592       fi
5593     fi
5594   else
5595     cc_works_part=no
5596   fi
5597   if test "$cc_works_part" != yes; then
5598     echo "failed program was:" >&5
5599     cat conftest.c >&5
5600   fi
5601   rm -f conftest* a.out b.out a.exe a_out.exe
5602   case $cc_works_part in
5603     yes)
5604
5605       ;;
5606     no)
5607       gmp_prog_cc_works="no"
5608       ;;
5609     norun)
5610       gmp_prog_cc_works="no, program does not run"
5611       ;;
5612   esac
5613 fi
5614
5615
5616
5617
5618 if test "$gmp_prog_cc_works" = yes; then
5619   # remove anything that might look like compiler output to our "||" expression
5620   rm -f conftest* a.out b.out a.exe a_out.exe
5621   cat >conftest.c <<EOF
5622 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5623    (without -maix64), hence detecting an unusable compiler */
5624 void *g() { return (void *) 0; }
5625 void *f() { return g(); }
5626
5627 int main () { return 0; }
5628 EOF
5629   echo "Test compile: function pointer return" >&5
5630   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5631   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5632   (eval $gmp_compile) 2>&5
5633   ac_status=$?
5634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635   test $ac_status = 0; }; then
5636     cc_works_part=yes
5637     if test "$cross_compiling" = no; then
5638       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5639   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643   test $ac_status = 0; }; }; then :;
5644       else
5645         cc_works_part=norun
5646       fi
5647     fi
5648   else
5649     cc_works_part=no
5650   fi
5651   if test "$cc_works_part" != yes; then
5652     echo "failed program was:" >&5
5653     cat conftest.c >&5
5654   fi
5655   rm -f conftest* a.out b.out a.exe a_out.exe
5656   case $cc_works_part in
5657     yes)
5658
5659       ;;
5660     no)
5661       gmp_prog_cc_works="no, function pointer return"
5662       ;;
5663     norun)
5664       gmp_prog_cc_works="no, function pointer return, program does not run"
5665       ;;
5666   esac
5667 fi
5668
5669
5670
5671
5672 if test "$gmp_prog_cc_works" = yes; then
5673   # remove anything that might look like compiler output to our "||" expression
5674   rm -f conftest* a.out b.out a.exe a_out.exe
5675   cat >conftest.c <<EOF
5676 /* The following provokes an invalid instruction syntax from i386 gcc
5677    -march=pentiumpro on Solaris 2.8.  The native sun assembler
5678    requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5679    least) doesn't know.  */
5680 int n;
5681 int cmov () { return (n >= 0 ? n : 0); }
5682
5683 int main () { return 0; }
5684 EOF
5685   echo "Test compile: cmov instruction" >&5
5686   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5687   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5688   (eval $gmp_compile) 2>&5
5689   ac_status=$?
5690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691   test $ac_status = 0; }; then
5692     cc_works_part=yes
5693     if test "$cross_compiling" = no; then
5694       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5695   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5699   test $ac_status = 0; }; }; then :;
5700       else
5701         cc_works_part=norun
5702       fi
5703     fi
5704   else
5705     cc_works_part=no
5706   fi
5707   if test "$cc_works_part" != yes; then
5708     echo "failed program was:" >&5
5709     cat conftest.c >&5
5710   fi
5711   rm -f conftest* a.out b.out a.exe a_out.exe
5712   case $cc_works_part in
5713     yes)
5714
5715       ;;
5716     no)
5717       gmp_prog_cc_works="no, cmov instruction"
5718       ;;
5719     norun)
5720       gmp_prog_cc_works="no, cmov instruction, program does not run"
5721       ;;
5722   esac
5723 fi
5724
5725
5726
5727
5728 if test "$gmp_prog_cc_works" = yes; then
5729   # remove anything that might look like compiler output to our "||" expression
5730   rm -f conftest* a.out b.out a.exe a_out.exe
5731   cat >conftest.c <<EOF
5732 /* The following provokes a linker invocation problem with gcc 3.0.3
5733    on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
5734    option causes gcc to incorrectly select the 32-bit libgcc.a, not
5735    the 64-bit one, and consequently it misses out on the __fixunsdfdi
5736    helper (double -> uint64 conversion).  */
5737 double d;
5738 unsigned long gcc303 () { return (unsigned long) d; }
5739
5740 int main () { return 0; }
5741 EOF
5742   echo "Test compile: double -> ulong conversion" >&5
5743   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5744   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5745   (eval $gmp_compile) 2>&5
5746   ac_status=$?
5747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748   test $ac_status = 0; }; then
5749     cc_works_part=yes
5750     if test "$cross_compiling" = no; then
5751       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5752   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5753   (eval $ac_try) 2>&5
5754   ac_status=$?
5755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756   test $ac_status = 0; }; }; then :;
5757       else
5758         cc_works_part=norun
5759       fi
5760     fi
5761   else
5762     cc_works_part=no
5763   fi
5764   if test "$cc_works_part" != yes; then
5765     echo "failed program was:" >&5
5766     cat conftest.c >&5
5767   fi
5768   rm -f conftest* a.out b.out a.exe a_out.exe
5769   case $cc_works_part in
5770     yes)
5771
5772       ;;
5773     no)
5774       gmp_prog_cc_works="no, double -> ulong conversion"
5775       ;;
5776     norun)
5777       gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5778       ;;
5779   esac
5780 fi
5781
5782
5783
5784
5785 if test "$gmp_prog_cc_works" = yes; then
5786   # remove anything that might look like compiler output to our "||" expression
5787   rm -f conftest* a.out b.out a.exe a_out.exe
5788   cat >conftest.c <<EOF
5789 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5790    the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
5791    instruction, and a negation like this comes out using it.  */
5792 double fneg_data;
5793 unsigned long fneg () { return -fneg_data; }
5794
5795 int main () { return 0; }
5796 EOF
5797   echo "Test compile: double negation" >&5
5798   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5800   (eval $gmp_compile) 2>&5
5801   ac_status=$?
5802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803   test $ac_status = 0; }; then
5804     cc_works_part=yes
5805     if test "$cross_compiling" = no; then
5806       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5807   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5808   (eval $ac_try) 2>&5
5809   ac_status=$?
5810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811   test $ac_status = 0; }; }; then :;
5812       else
5813         cc_works_part=norun
5814       fi
5815     fi
5816   else
5817     cc_works_part=no
5818   fi
5819   if test "$cc_works_part" != yes; then
5820     echo "failed program was:" >&5
5821     cat conftest.c >&5
5822   fi
5823   rm -f conftest* a.out b.out a.exe a_out.exe
5824   case $cc_works_part in
5825     yes)
5826
5827       ;;
5828     no)
5829       gmp_prog_cc_works="no, double negation"
5830       ;;
5831     norun)
5832       gmp_prog_cc_works="no, double negation, program does not run"
5833       ;;
5834   esac
5835 fi
5836
5837
5838
5839
5840 if test "$gmp_prog_cc_works" = yes; then
5841   # remove anything that might look like compiler output to our "||" expression
5842   rm -f conftest* a.out b.out a.exe a_out.exe
5843   cat >conftest.c <<EOF
5844 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5845    (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5846    those instructions.  Not sure how much of the gmp code will come out
5847    wanting sse2, but it's easiest to reject an option we know is bad.  */
5848 double ftod_data;
5849 float ftod () { return (float) ftod_data; }
5850
5851 int main () { return 0; }
5852 EOF
5853   echo "Test compile: double -> float conversion" >&5
5854   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5856   (eval $gmp_compile) 2>&5
5857   ac_status=$?
5858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5859   test $ac_status = 0; }; then
5860     cc_works_part=yes
5861     if test "$cross_compiling" = no; then
5862       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5863   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867   test $ac_status = 0; }; }; then :;
5868       else
5869         cc_works_part=norun
5870       fi
5871     fi
5872   else
5873     cc_works_part=no
5874   fi
5875   if test "$cc_works_part" != yes; then
5876     echo "failed program was:" >&5
5877     cat conftest.c >&5
5878   fi
5879   rm -f conftest* a.out b.out a.exe a_out.exe
5880   case $cc_works_part in
5881     yes)
5882
5883       ;;
5884     no)
5885       gmp_prog_cc_works="no, double -> float conversion"
5886       ;;
5887     norun)
5888       gmp_prog_cc_works="no, double -> float conversion, program does not run"
5889       ;;
5890   esac
5891 fi
5892
5893
5894
5895
5896 if test "$gmp_prog_cc_works" = yes; then
5897   # remove anything that might look like compiler output to our "||" expression
5898   rm -f conftest* a.out b.out a.exe a_out.exe
5899   cat >conftest.c <<EOF
5900 /* The following provokes an internal compiler error from gcc version
5901    "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5902    values being spilled into floating point registers.  The problem doesn't
5903    show up all the time, but has occurred enough in GMP for us to reject
5904    this compiler+flags.  */
5905 #include <string.h>  /* for memcpy */
5906 struct try_t
5907 {
5908  char dst[2];
5909  char size;
5910  long d0, d1, d2, d3, d4, d5, d6;
5911  char overlap;
5912 };
5913 struct try_t param[6];
5914 int
5915 param_init ()
5916 {
5917  struct try_t *p;
5918  memcpy (p, &param[ 2 ], sizeof (*p));
5919  memcpy (p, &param[ 2 ], sizeof (*p));
5920  p->size = 2;
5921  memcpy (p, &param[ 1 ], sizeof (*p));
5922  p->dst[0] = 1;
5923  p->overlap = 2;
5924  memcpy (p, &param[ 3 ], sizeof (*p));
5925  p->dst[0] = 1;
5926  p->overlap = 8;
5927  memcpy (p, &param[ 4 ], sizeof (*p));
5928  memcpy (p, &param[ 4 ], sizeof (*p));
5929  p->overlap = 8;
5930  memcpy (p, &param[ 5 ], sizeof (*p));
5931  memcpy (p, &param[ 5 ], sizeof (*p));
5932  memcpy (p, &param[ 5 ], sizeof (*p));
5933  return 0;
5934 }
5935
5936 int main () { return 0; }
5937 EOF
5938   echo "Test compile: gnupro alpha ev6 char spilling" >&5
5939   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5940   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5941   (eval $gmp_compile) 2>&5
5942   ac_status=$?
5943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944   test $ac_status = 0; }; then
5945     cc_works_part=yes
5946     if test "$cross_compiling" = no; then
5947       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5948   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5949   (eval $ac_try) 2>&5
5950   ac_status=$?
5951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952   test $ac_status = 0; }; }; then :;
5953       else
5954         cc_works_part=norun
5955       fi
5956     fi
5957   else
5958     cc_works_part=no
5959   fi
5960   if test "$cc_works_part" != yes; then
5961     echo "failed program was:" >&5
5962     cat conftest.c >&5
5963   fi
5964   rm -f conftest* a.out b.out a.exe a_out.exe
5965   case $cc_works_part in
5966     yes)
5967
5968       ;;
5969     no)
5970       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5971       ;;
5972     norun)
5973       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5974       ;;
5975   esac
5976 fi
5977
5978
5979
5980
5981 # __builtin_alloca is not available everywhere, check it exists before
5982 # seeing that it works
5983 if test "$gmp_prog_cc_works" = yes; then
5984   # remove anything that might look like compiler output to our "||" expression
5985   rm -f conftest* a.out b.out a.exe a_out.exe
5986   cat >conftest.c <<EOF
5987 int k; int foo () { __builtin_alloca (k); }
5988 EOF
5989   echo "Test compile: __builtin_alloca availability" >&5
5990   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5992   (eval $gmp_compile) 2>&5
5993   ac_status=$?
5994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995   test $ac_status = 0; }; then
5996     cc_works_part=yes
5997     if test "$cross_compiling" = no; then
5998       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5999   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003   test $ac_status = 0; }; }; then :;
6004       else
6005         cc_works_part=norun
6006       fi
6007     fi
6008   else
6009     cc_works_part=no
6010   fi
6011   if test "$cc_works_part" != yes; then
6012     echo "failed program was:" >&5
6013     cat conftest.c >&5
6014   fi
6015   rm -f conftest* a.out b.out a.exe a_out.exe
6016   case $cc_works_part in
6017     yes)
6018       if test "$gmp_prog_cc_works" = yes; then
6019   # remove anything that might look like compiler output to our "||" expression
6020   rm -f conftest* a.out b.out a.exe a_out.exe
6021   cat >conftest.c <<EOF
6022 /* The following provokes an internal compiler error from Itanium HP-UX cc
6023     under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
6024 int k;
6025 int foo ()
6026 {
6027   int i, **a;
6028   a = __builtin_alloca (k);
6029   for (i = 0; i <= k; i++)
6030     a[i] = __builtin_alloca (1 << i);
6031 }
6032
6033 int main () { return 0; }
6034 EOF
6035   echo "Test compile: alloca array" >&5
6036   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6037   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6038   (eval $gmp_compile) 2>&5
6039   ac_status=$?
6040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041   test $ac_status = 0; }; then
6042     cc_works_part=yes
6043     if test "$cross_compiling" = no; then
6044       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6045   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6049   test $ac_status = 0; }; }; then :;
6050       else
6051         cc_works_part=norun
6052       fi
6053     fi
6054   else
6055     cc_works_part=no
6056   fi
6057   if test "$cc_works_part" != yes; then
6058     echo "failed program was:" >&5
6059     cat conftest.c >&5
6060   fi
6061   rm -f conftest* a.out b.out a.exe a_out.exe
6062   case $cc_works_part in
6063     yes)
6064
6065       ;;
6066     no)
6067       gmp_prog_cc_works="no, alloca array"
6068       ;;
6069     norun)
6070       gmp_prog_cc_works="no, alloca array, program does not run"
6071       ;;
6072   esac
6073 fi
6074
6075
6076
6077       ;;
6078     no)
6079
6080       ;;
6081     norun)
6082
6083       ;;
6084   esac
6085 fi
6086
6087
6088 if test "$gmp_prog_cc_works" = yes; then
6089   # remove anything that might look like compiler output to our "||" expression
6090   rm -f conftest* a.out b.out a.exe a_out.exe
6091   cat >conftest.c <<EOF
6092 /* The following provokes an internal error from the assembler on
6093    power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
6094    results in "Internal error related to the source program domain".
6095
6096    For reference it seems to be the combination of nabs+fcirz which is bad,
6097    not either alone.  This sort of thing occurs in mpz/get_str.c with the
6098    way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
6099    if that code changes to a scaled-integer style then we won't need this
6100    test.  */
6101
6102 double fp[1];
6103 int x;
6104 int f ()
6105 {
6106   int a;
6107   a = (x >= 0 ? x : -x);
6108   return a * fp[0];
6109 }
6110
6111 int main () { return 0; }
6112 EOF
6113   echo "Test compile: abs int -> double conversion" >&5
6114   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6115   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6116   (eval $gmp_compile) 2>&5
6117   ac_status=$?
6118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119   test $ac_status = 0; }; then
6120     cc_works_part=yes
6121     if test "$cross_compiling" = no; then
6122       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6123   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6124   (eval $ac_try) 2>&5
6125   ac_status=$?
6126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127   test $ac_status = 0; }; }; then :;
6128       else
6129         cc_works_part=norun
6130       fi
6131     fi
6132   else
6133     cc_works_part=no
6134   fi
6135   if test "$cc_works_part" != yes; then
6136     echo "failed program was:" >&5
6137     cat conftest.c >&5
6138   fi
6139   rm -f conftest* a.out b.out a.exe a_out.exe
6140   case $cc_works_part in
6141     yes)
6142
6143       ;;
6144     no)
6145       gmp_prog_cc_works="no, abs int -> double conversion"
6146       ;;
6147     norun)
6148       gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6149       ;;
6150   esac
6151 fi
6152
6153
6154
6155
6156 if test "$gmp_prog_cc_works" = yes; then
6157   # remove anything that might look like compiler output to our "||" expression
6158   rm -f conftest* a.out b.out a.exe a_out.exe
6159   cat >conftest.c <<EOF
6160 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6161    Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
6162    1666 to segfault with e.g., -O2 -mpowerpc64.  */
6163
6164 #if defined (__GNUC__) && ! defined (__cplusplus)
6165 typedef unsigned long long t1;typedef t1*t2;
6166 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6167 {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;}
6168 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6169 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();}}
6170 h(){}g(){}
6171 #else
6172 int dummy;
6173 #endif
6174
6175 int main () { return 0; }
6176 EOF
6177   echo "Test compile: long long reliability test 1" >&5
6178   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6179   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6180   (eval $gmp_compile) 2>&5
6181   ac_status=$?
6182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183   test $ac_status = 0; }; then
6184     cc_works_part=yes
6185     if test "$cross_compiling" = no; then
6186       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6187   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191   test $ac_status = 0; }; }; then :;
6192       else
6193         cc_works_part=norun
6194       fi
6195     fi
6196   else
6197     cc_works_part=no
6198   fi
6199   if test "$cc_works_part" != yes; then
6200     echo "failed program was:" >&5
6201     cat conftest.c >&5
6202   fi
6203   rm -f conftest* a.out b.out a.exe a_out.exe
6204   case $cc_works_part in
6205     yes)
6206
6207       ;;
6208     no)
6209       gmp_prog_cc_works="no, long long reliability test 1"
6210       ;;
6211     norun)
6212       gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6213       ;;
6214   esac
6215 fi
6216
6217
6218
6219
6220 if test "$gmp_prog_cc_works" = yes; then
6221   # remove anything that might look like compiler output to our "||" expression
6222   rm -f conftest* a.out b.out a.exe a_out.exe
6223   cat >conftest.c <<EOF
6224 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6225    Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
6226    1666 to get an ICE with -O1 -mpowerpc64.  */
6227
6228 #if defined (__GNUC__) && ! defined (__cplusplus)
6229 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();}
6230 g(){}
6231 #else
6232 int dummy;
6233 #endif
6234
6235 int main () { return 0; }
6236 EOF
6237   echo "Test compile: long long reliability test 2" >&5
6238   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6240   (eval $gmp_compile) 2>&5
6241   ac_status=$?
6242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243   test $ac_status = 0; }; then
6244     cc_works_part=yes
6245     if test "$cross_compiling" = no; then
6246       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251   test $ac_status = 0; }; }; then :;
6252       else
6253         cc_works_part=norun
6254       fi
6255     fi
6256   else
6257     cc_works_part=no
6258   fi
6259   if test "$cc_works_part" != yes; then
6260     echo "failed program was:" >&5
6261     cat conftest.c >&5
6262   fi
6263   rm -f conftest* a.out b.out a.exe a_out.exe
6264   case $cc_works_part in
6265     yes)
6266
6267       ;;
6268     no)
6269       gmp_prog_cc_works="no, long long reliability test 2"
6270       ;;
6271     norun)
6272       gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6273       ;;
6274   esac
6275 fi
6276
6277
6278
6279
6280 if test "$gmp_prog_cc_works" = yes; then
6281   # remove anything that might look like compiler output to our "||" expression
6282   rm -f conftest* a.out b.out a.exe a_out.exe
6283   cat >conftest.c <<EOF
6284 /* The following is mis-compiled by HP ia-64 cc version
6285         cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6286    under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
6287    inlined and its return value somehow botched to be 0 instead of 1.  This
6288    arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
6289    level, like +O2 seems ok.  This code needs to be run to show the problem,
6290    but that's fine, the offending cc is a native-only compiler so we don't
6291    have to worry about cross compiling.  */
6292
6293 #if ! defined (__cplusplus)
6294 unsigned long
6295 lshift_com (rp, up, n, cnt)
6296   unsigned long *rp;
6297   unsigned long *up;
6298   long n;
6299   unsigned cnt;
6300 {
6301   unsigned long retval, high_limb, low_limb;
6302   unsigned tnc;
6303   long i;
6304   tnc = 8 * sizeof (unsigned long) - cnt;
6305   low_limb = *up++;
6306   retval = low_limb >> tnc;
6307   high_limb = low_limb << cnt;
6308   for (i = n - 1; i != 0; i--)
6309     {
6310       low_limb = *up++;
6311       *rp++ = ~(high_limb | (low_limb >> tnc));
6312       high_limb = low_limb << cnt;
6313     }
6314   return retval;
6315 }
6316 int
6317 main ()
6318 {
6319   unsigned long cy, rp[2], up[2];
6320   up[0] = ~ 0L;
6321   up[1] = 0;
6322   cy = lshift_com (rp, up, 2L, 1);
6323   if (cy != 1L)
6324     return 1;
6325   return 0;
6326 }
6327 #else
6328 int
6329 main ()
6330 {
6331   return 0;
6332 }
6333 #endif
6334
6335 EOF
6336   echo "Test compile: mpn_lshift_com optimization" >&5
6337   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6339   (eval $gmp_compile) 2>&5
6340   ac_status=$?
6341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342   test $ac_status = 0; }; then
6343     cc_works_part=yes
6344     if test "$cross_compiling" = no; then
6345       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6346   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6347   (eval $ac_try) 2>&5
6348   ac_status=$?
6349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350   test $ac_status = 0; }; }; then :;
6351       else
6352         cc_works_part=norun
6353       fi
6354     fi
6355   else
6356     cc_works_part=no
6357   fi
6358   if test "$cc_works_part" != yes; then
6359     echo "failed program was:" >&5
6360     cat conftest.c >&5
6361   fi
6362   rm -f conftest* a.out b.out a.exe a_out.exe
6363   case $cc_works_part in
6364     yes)
6365
6366       ;;
6367     no)
6368       gmp_prog_cc_works="no, mpn_lshift_com optimization"
6369       ;;
6370     norun)
6371       gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6372       ;;
6373   esac
6374 fi
6375
6376
6377
6378 if test "$gmp_prog_cc_works" = yes; then
6379   # remove anything that might look like compiler output to our "||" expression
6380   rm -f conftest* a.out b.out a.exe a_out.exe
6381   cat >conftest.c <<EOF
6382 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6383     "icc -O3",  After several calls, the function writes parial garbage to
6384     the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
6385     to be run to show the problem, but that's fine, the offending cc is a
6386     native-only compiler so we don't have to worry about cross compiling.  */
6387
6388 #if ! defined (__cplusplus)
6389 #include <stdlib.h>
6390 void
6391 lshift_com (rp, up, n, cnt)
6392   unsigned long *rp;
6393   unsigned long *up;
6394   long n;
6395   unsigned cnt;
6396 {
6397   unsigned long high_limb, low_limb;
6398   unsigned tnc;
6399   long i;
6400   up += n;
6401   rp += n;
6402   tnc = 8 * sizeof (unsigned long) - cnt;
6403   low_limb = *--up;
6404   high_limb = low_limb << cnt;
6405   for (i = n - 1; i != 0; i--)
6406     {
6407       low_limb = *--up;
6408       *--rp = ~(high_limb | (low_limb >> tnc));
6409       high_limb = low_limb << cnt;
6410     }
6411   *--rp = ~high_limb;
6412 }
6413 int
6414 main ()
6415 {
6416   unsigned long *r, *r2;
6417   unsigned long a[88 + 1];
6418   long i;
6419   for (i = 0; i < 88 + 1; i++)
6420     a[i] = ~0L;
6421   r = malloc (10000 * sizeof (unsigned long));
6422   r2 = r;
6423   for (i = 0; i < 528; i += 22)
6424     {
6425       lshift_com (r2, a,
6426                   i / (8 * sizeof (unsigned long)) + 1,
6427                   i % (8 * sizeof (unsigned long)));
6428       r2 += 88 + 1;
6429     }
6430   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6431       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6432     abort ();
6433   return 0;
6434 }
6435 #else
6436 int
6437 main ()
6438 {
6439   return 0;
6440 }
6441 #endif
6442
6443 EOF
6444   echo "Test compile: mpn_lshift_com optimization 2" >&5
6445   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6447   (eval $gmp_compile) 2>&5
6448   ac_status=$?
6449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450   test $ac_status = 0; }; then
6451     cc_works_part=yes
6452     if test "$cross_compiling" = no; then
6453       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6454   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6455   (eval $ac_try) 2>&5
6456   ac_status=$?
6457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458   test $ac_status = 0; }; }; then :;
6459       else
6460         cc_works_part=norun
6461       fi
6462     fi
6463   else
6464     cc_works_part=no
6465   fi
6466   if test "$cc_works_part" != yes; then
6467     echo "failed program was:" >&5
6468     cat conftest.c >&5
6469   fi
6470   rm -f conftest* a.out b.out a.exe a_out.exe
6471   case $cc_works_part in
6472     yes)
6473
6474       ;;
6475     no)
6476       gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6477       ;;
6478     norun)
6479       gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6480       ;;
6481   esac
6482 fi
6483
6484
6485
6486
6487 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6488 # by recent versions of gcc.
6489 #
6490 if test "$gmp_prog_cc_works" = yes; then
6491   case $host in
6492     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6493       # this problem only arises in PIC code, so don't need to test when
6494       # --disable-shared.  We don't necessarily have $enable_shared set to
6495       # yes at this point, it will still be unset for the default (which is
6496       # yes); hence the use of "!= no".
6497       if test "$enable_shared" != no; then
6498         echo "Testing gcc GOT with eax emitted" >&5
6499 cat >conftest.c <<\EOF
6500 int foo;
6501 int bar () { return foo; }
6502 EOF
6503 tmp_got_emitted=no
6504 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6506   (eval $gmp_compile) 2>&5
6507   ac_status=$?
6508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509   test $ac_status = 0; }; then
6510   if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6511     tmp_got_emitted=yes
6512   fi
6513 fi
6514 rm -f conftest.*
6515 echo "Result: $tmp_got_emitted" >&5
6516 if test "$tmp_got_emitted" = yes; then
6517   echo "Testing gas GOT with eax good" >&5
6518 cat >conftest.awk <<\EOF
6519 BEGIN {
6520   want[0]  = "001"
6521   want[1]  = "043"
6522   want[2]  = "105"
6523   want[3]  = "147"
6524   want[4]  = "211"
6525   want[5]  = "253"
6526   want[6]  = "315"
6527   want[7]  = "357"
6528
6529   want[8]  = "005"
6530   want[9]  = "002"
6531   want[10] = "000"
6532   want[11] = "000"
6533   want[12] = "000"
6534
6535   want[13] = "376"
6536   want[14] = "334"
6537   want[15] = "272"
6538   want[16] = "230"
6539   want[17] = "166"
6540   want[18] = "124"
6541   want[19] = "062"
6542   want[20] = "020"
6543
6544   result = "yes"
6545 }
6546 {
6547   for (f = 2; f <= NF; f++)
6548     {
6549       for (i = 0; i < 20; i++)
6550         got[i] = got[i+1];
6551       got[20] = $f;
6552
6553       found = 1
6554       for (i = 0; i < 21; i++)
6555         if (got[i] != want[i])
6556           {
6557             found = 0
6558             break
6559           }
6560       if (found)
6561         {
6562           result = "no"
6563           exit
6564         }
6565     }
6566 }
6567 END {
6568   print result
6569 }
6570 EOF
6571 cat >conftest.s <<\EOF
6572         .text
6573         .byte   1, 35, 69, 103, 137, 171, 205, 239
6574         addl    $_GLOBAL_OFFSET_TABLE_, %eax
6575         .byte   254, 220, 186, 152, 118, 84, 50, 16
6576 EOF
6577 tmp_got_good=yes
6578 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6580   (eval $gmp_compile) 2>&5
6581   ac_status=$?
6582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583   test $ac_status = 0; }; then
6584   tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6585 fi
6586 rm -f conftest.*
6587 echo "Result: $tmp_got_good" >&5
6588 if test "$tmp_got_good" = no; then
6589   gmp_prog_cc_works="no, bad gas GOT with eax"
6590 else
6591   :
6592 fi
6593
6594 else
6595   :
6596 fi
6597
6598       fi
6599       ;;
6600   esac
6601 fi
6602
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6604 $as_echo "$gmp_prog_cc_works" >&6; }
6605 case $gmp_prog_cc_works in
6606   yes)
6607
6608     ;;
6609   *)
6610     continue
6611     ;;
6612 esac
6613
6614
6615         # If we're supposed to be using a "long long" for a limb, check that
6616         # it works.
6617                                   eval limb_chosen=\"\$limb$abi1\"
6618         test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6619         if test "$limb_chosen" = longlong; then
6620           { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6621 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6622 cat >conftest.c <<EOF
6623 long long  foo;
6624 long long  bar () { return foo; }
6625 int main () { return 0; }
6626 EOF
6627 gmp_prog_cc_works=no
6628 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6630   (eval $gmp_compile) 2>&5
6631   ac_status=$?
6632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633   test $ac_status = 0; }; then
6634   gmp_prog_cc_works=yes
6635 else
6636   echo "failed program was:" >&5
6637   cat conftest.c >&5
6638 fi
6639 rm -f conftest* a.out b.out a.exe a_out.exe
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6641 $as_echo "$gmp_prog_cc_works" >&6; }
6642 if test $gmp_prog_cc_works = yes; then
6643   :
6644 else
6645   continue
6646 fi
6647
6648         fi
6649
6650         # The tests to perform on this $cc, if any
6651                                eval testlist=\"\$${ccbase}${abi1}_testlist\"
6652         test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6653         test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6654         test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6655
6656         testlist_pass=yes
6657         for tst in $testlist; do
6658           case $tst in
6659           hpc-hppa-2-0)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6660 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6661 # Bad compiler output:
6662 #   ccom: HP92453-01 G.10.32.05 HP C Compiler
6663 # Good compiler output:
6664 #   ccom: HP92453-01 A.10.32.30 HP C Compiler
6665 # Let A.10.32.30 or higher be ok.
6666 echo >conftest.c
6667 gmp_tmp_vs=`$cc  -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6668 echo "Version string: $gmp_tmp_vs" >&5
6669 rm conftest*
6670 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6671 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6672 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6673 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6674 if test -z "$gmp_tmp_v1"; then
6675   gmp_hpc_64bit=not-applicable
6676 else
6677   gmp_compare_ge=no
6678 if test -n "$gmp_tmp_v1"; then
6679   if test "$gmp_tmp_v1" -gt 10; then
6680     gmp_compare_ge=yes
6681   else
6682     if test "$gmp_tmp_v1" -eq 10; then
6683       if test -n "$gmp_tmp_v2"; then
6684   if test "$gmp_tmp_v2" -gt 32; then
6685     gmp_compare_ge=yes
6686   else
6687     if test "$gmp_tmp_v2" -eq 32; then
6688       if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6689   gmp_compare_ge=yes
6690 fi
6691
6692     fi
6693   fi
6694 fi
6695
6696     fi
6697   fi
6698 fi
6699
6700
6701   gmp_hpc_64bit=$gmp_compare_ge
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6704 $as_echo "$gmp_hpc_64bit" >&6; }
6705 if test $gmp_hpc_64bit = yes; then
6706   :
6707 else
6708   testlist_pass=no
6709 fi
6710  ;;
6711           gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6712 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6713 tmp_version=`$cc --version`
6714 echo "$tmp_version" >&5
6715 case $tmp_version in
6716   2.95 | 2.95.[123])
6717     testlist_pass=no
6718     gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6719   *)
6720     :
6721     gmp_gcc_arm_umodsi_result=yes ;;
6722 esac
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6724 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6725  ;;
6726           gcc-mips-o32)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6727 $as_echo_n "checking whether gcc supports o32... " >&6; }
6728 echo 'int x;' >conftest.c
6729 echo "$cc -mabi=32 -c conftest.c" >&5
6730 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6731   result=yes
6732 else
6733   cat conftest.out >&5
6734   if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6735     result=yes
6736   else
6737     result=no
6738   fi
6739 fi
6740 rm -f conftest.*
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6742 $as_echo "$result" >&6; }
6743 if test $result = yes; then
6744   :
6745 else
6746   testlist_pass=no
6747 fi
6748  ;;
6749           hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6750 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6751 result=no
6752 cat >conftest.s <<EOF
6753         .level 2.0
6754 EOF
6755 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6757   (eval $gmp_compile) 2>&5
6758   ac_status=$?
6759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760   test $ac_status = 0; }; then
6761   result=yes
6762 else
6763   echo "failed program was" >&5
6764   cat conftest.s >&5
6765 fi
6766 rm -f conftest*
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6768 $as_echo "$result" >&6; }
6769 if test "$result" = yes; then
6770   :
6771 else
6772   testlist_pass=no
6773 fi
6774  ;;
6775           sizeof*)       echo "configure: testlist $tst" >&5
6776 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6777 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6779 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6780 cat >conftest.c <<EOF
6781 int
6782 main ()
6783 {
6784   static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6785   test_array[0] = 0;
6786   return 0;
6787 }
6788 EOF
6789 gmp_c_testlist_sizeof=no
6790 gmp_compile="$cc $cflags -c conftest.c >&5"
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6792   (eval $gmp_compile) 2>&5
6793   ac_status=$?
6794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795   test $ac_status = 0; }; then
6796   gmp_c_testlist_sizeof=yes
6797 fi
6798 rm -f conftest*
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6800 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6801 if test $gmp_c_testlist_sizeof = yes; then
6802   :
6803 else
6804   testlist_pass=no
6805 fi
6806  ;;
6807           esac
6808           if test $testlist_pass = no; then break; fi
6809         done
6810
6811         if test $testlist_pass = yes; then
6812           found_compiler=yes
6813           break
6814         fi
6815       done
6816
6817       if test $found_compiler = yes; then break; fi
6818     done
6819
6820     if test $found_compiler = yes; then break; fi
6821   done
6822
6823   if test $found_compiler = yes; then break; fi
6824 done
6825
6826
6827 # If we recognised the CPU, as indicated by $path being set, then insist
6828 # that we have a working compiler, either from our $cclist choices or from
6829 # $CC.  We can't let AC_PROG_CC look around for a compiler because it might
6830 # find one that we've rejected (for not supporting the modes our asm code
6831 # demands, etc).
6832 #
6833 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6834 # fall through and let AC_PROG_CC look around for a compiler too.  This is
6835 # mostly in the interests of following a standard autoconf setup, after all
6836 # we've already tested cc and gcc adequately (hopefully).  As of autoconf
6837 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6838 # C on MS-DOS systems).
6839 #
6840 if test $found_compiler = no && test -n "$path"; then
6841   as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5
6842 fi
6843
6844 case $host in
6845   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
6846     # If the user asked for a fat build, override the path and flags set above
6847     if test $enable_fat = yes; then
6848       gcc_cflags_cpu=""
6849       gcc_cflags_arch=""
6850
6851       fat_functions="add_n addmul_1 bdiv_dbm1c com copyd copyi dive_1 divrem_1
6852                      gcd_1 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2
6853                      mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1
6854                      mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1
6855                      redc_2 rshift sqr_basecase sub_n submul_1"
6856
6857       if test "$abi" = 32; then
6858         extra_functions="$extra_functions fat fat_entry"
6859         path="x86/fat x86"
6860         fat_path="x86 x86/fat x86/i486
6861                   x86/k6 x86/k6/mmx x86/k6/k62mmx
6862                   x86/k7 x86/k7/mmx
6863                   x86/k8 x86/k10 x86/bobcat
6864                   x86/pentium x86/pentium/mmx
6865                   x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6866                   x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
6867                   x86/core2 x86/coreinhm x86/coreisbr
6868                   x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
6869       fi
6870
6871       if test "$abi" = 64; then
6872         gcc_64_cflags=""
6873         extra_functions_64="$extra_functions_64 fat fat_entry"
6874         path_64="x86_64/fat x86_64"
6875         fat_path="x86_64 x86_64/fat
6876                   x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bobcat
6877                   x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr
6878                   x86_64/atom x86_64/nano"
6879         fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n"
6880       fi
6881
6882       fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6883                       SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD
6884                       BMOD_1_TO_MOD_1_THRESHOLD"
6885     fi
6886     ;;
6887 esac
6888
6889
6890 if test $found_compiler = yes; then
6891
6892   # If we're creating CFLAGS, then look for optional additions.  If the user
6893   # set CFLAGS then leave it alone.
6894   #
6895   if test "$test_CFLAGS" != set; then
6896                           eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6897     test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6898
6899     for opt in $optlist; do
6900                              eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6901       test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6902       test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6903
6904       for flag in $optflags; do
6905
6906         # ~ represents a space in an option spec
6907         flag=`echo "$flag" | tr '~' ' '`
6908
6909         case $flag in
6910           -march=pentium4 | -march=k8)
6911             # For -march settings which enable SSE2 we exclude certain bad
6912             # gcc versions and we need an OS knowing how to save xmm regs.
6913             #
6914             # This is only for ABI=32, any 64-bit gcc is good and any OS
6915             # knowing x86_64 will know xmm.
6916             #
6917             # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6918             # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior).  But
6919             # it doesn't hurt to run it anyway, sharing code with the
6920             # pentium4 case.
6921             #
6922             if test "$abi" = 32; then
6923               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6924 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6925 case `$cc $cflags $cppflags -dumpversion` in
6926   3.[012] | 3.[012].*) result=no ;;
6927   *)                     result=yes ;;
6928 esac
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6930 $as_echo "$result" >&6; }
6931 if test "$result" = yes; then
6932   :
6933 else
6934   continue
6935 fi
6936
6937               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
6938 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
6939 if ${gmp_cv_os_x86_xmm+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   if test "$build" = "$host"; then
6943   # remove anything that might look like compiler output to our "||" expression
6944   rm -f conftest* a.out b.out a.exe a_out.exe
6945   cat >conftest.s <<EOF
6946         .text
6947 main:
6948 _main:
6949         .globl  main
6950         .globl  _main
6951         .byte   0x0f, 0x57, 0xc0
6952         xorl    %eax, %eax
6953         ret
6954 EOF
6955   gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
6956   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6957   (eval $gmp_compile) 2>&5
6958   ac_status=$?
6959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960   test $ac_status = 0; }; then
6961     if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6962   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966   test $ac_status = 0; }; }; then
6967       gmp_cv_os_x86_xmm=yes
6968     else
6969       gmp_cv_os_x86_xmm=no
6970     fi
6971   else
6972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
6973 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
6974   fi
6975   rm -f conftest*
6976 fi
6977
6978 if test -z "$gmp_cv_os_x86_xmm"; then
6979   case $host_os in
6980     freebsd[123] | freebsd[123].*)
6981       gmp_cv_os_x86_xmm=no ;;
6982     freebsd*)
6983       gmp_cv_os_x86_xmm=yes ;;
6984     *)
6985       gmp_cv_os_x86_xmm=probably ;;
6986   esac
6987 fi
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
6991 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
6992
6993 if test "$gmp_cv_os_x86_xmm" = probably; then
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
6995 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
6997 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
6998 fi
6999
7000 case $gmp_cv_os_x86_xmm in
7001 no)
7002   continue
7003   ;;
7004 *)
7005
7006   ;;
7007 esac
7008
7009             fi
7010             ;;
7011           -no-cpp-precomp)
7012             # special check, avoiding a warning
7013             if test "$ccbase" = gcc; then
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
7015 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
7016   result=no
7017   cat >conftest.c <<EOF
7018 int main () { return 0; }
7019 EOF
7020   gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
7021   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7022   (eval $gmp_compile) 2>&5
7023   ac_status=$?
7024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025   test $ac_status = 0; }; then
7026     if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
7027     else
7028       result=yes
7029     fi
7030   fi
7031   cat conftest.out >&5
7032   rm -f conftest* a.out b.out a.exe a_out.exe
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7034 $as_echo "$result" >&6; }
7035   if test "$result" = yes; then
7036       cflags="$cflags $flag"
7037                                    break
7038   else
7039       continue
7040   fi
7041 fi
7042
7043             ;;
7044           -Wa,-m*)
7045             case $host in
7046               alpha*-*-*)
7047                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
7048 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
7049 result=no
7050 cat >conftest.c <<EOF
7051 int main () {}
7052 EOF
7053 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7055   (eval $gmp_compile) 2>&5
7056   ac_status=$?
7057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058   test $ac_status = 0; }; then
7059   if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7060   else
7061     result=yes
7062   fi
7063 fi
7064 cat conftest.out >&5
7065 rm -f conftest*
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7067 $as_echo "$result" >&6; }
7068 if test "$result" = yes; then
7069   :
7070 else
7071   continue
7072 fi
7073
7074               ;;
7075             esac
7076             ;;
7077           -Wa,-oldas)
7078             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7079 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7080 result=no
7081 cat >conftest.c <<EOF
7082 EOF
7083 echo "with empty conftest.c" >&5
7084 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7086   (eval $gmp_compile) 2>&5
7087   ac_status=$?
7088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089   test $ac_status = 0; }; then : ;
7090 else
7091   # empty fails
7092   gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7093   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7094   (eval $gmp_compile) 2>&5
7095   ac_status=$?
7096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097   test $ac_status = 0; }; then
7098     # but with -Wa,-oldas it works
7099     result=yes
7100   fi
7101 fi
7102 rm -f conftest*
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7104 $as_echo "$result" >&6; }
7105 if test "$result" = yes; then
7106   cflags="$cflags $flag"
7107                              break
7108 else
7109   continue
7110 fi
7111
7112             ;;
7113         esac
7114
7115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7116 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7117 gmp_prog_cc_works=yes
7118
7119 # first see a simple "main()" works, then go on to other checks
7120 if test "$gmp_prog_cc_works" = yes; then
7121   # remove anything that might look like compiler output to our "||" expression
7122   rm -f conftest* a.out b.out a.exe a_out.exe
7123   cat >conftest.c <<EOF
7124
7125 int main () { return 0; }
7126 EOF
7127   echo "Test compile: " >&5
7128   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7130   (eval $gmp_compile) 2>&5
7131   ac_status=$?
7132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133   test $ac_status = 0; }; then
7134     cc_works_part=yes
7135     if test "$cross_compiling" = no; then
7136       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7137   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7138   (eval $ac_try) 2>&5
7139   ac_status=$?
7140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141   test $ac_status = 0; }; }; then :;
7142       else
7143         cc_works_part=norun
7144       fi
7145     fi
7146   else
7147     cc_works_part=no
7148   fi
7149   if test "$cc_works_part" != yes; then
7150     echo "failed program was:" >&5
7151     cat conftest.c >&5
7152   fi
7153   rm -f conftest* a.out b.out a.exe a_out.exe
7154   case $cc_works_part in
7155     yes)
7156
7157       ;;
7158     no)
7159       gmp_prog_cc_works="no"
7160       ;;
7161     norun)
7162       gmp_prog_cc_works="no, program does not run"
7163       ;;
7164   esac
7165 fi
7166
7167
7168
7169
7170 if test "$gmp_prog_cc_works" = yes; then
7171   # remove anything that might look like compiler output to our "||" expression
7172   rm -f conftest* a.out b.out a.exe a_out.exe
7173   cat >conftest.c <<EOF
7174 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7175    (without -maix64), hence detecting an unusable compiler */
7176 void *g() { return (void *) 0; }
7177 void *f() { return g(); }
7178
7179 int main () { return 0; }
7180 EOF
7181   echo "Test compile: function pointer return" >&5
7182   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7183   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7184   (eval $gmp_compile) 2>&5
7185   ac_status=$?
7186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7187   test $ac_status = 0; }; then
7188     cc_works_part=yes
7189     if test "$cross_compiling" = no; then
7190       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7191   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7192   (eval $ac_try) 2>&5
7193   ac_status=$?
7194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195   test $ac_status = 0; }; }; then :;
7196       else
7197         cc_works_part=norun
7198       fi
7199     fi
7200   else
7201     cc_works_part=no
7202   fi
7203   if test "$cc_works_part" != yes; then
7204     echo "failed program was:" >&5
7205     cat conftest.c >&5
7206   fi
7207   rm -f conftest* a.out b.out a.exe a_out.exe
7208   case $cc_works_part in
7209     yes)
7210
7211       ;;
7212     no)
7213       gmp_prog_cc_works="no, function pointer return"
7214       ;;
7215     norun)
7216       gmp_prog_cc_works="no, function pointer return, program does not run"
7217       ;;
7218   esac
7219 fi
7220
7221
7222
7223
7224 if test "$gmp_prog_cc_works" = yes; then
7225   # remove anything that might look like compiler output to our "||" expression
7226   rm -f conftest* a.out b.out a.exe a_out.exe
7227   cat >conftest.c <<EOF
7228 /* The following provokes an invalid instruction syntax from i386 gcc
7229    -march=pentiumpro on Solaris 2.8.  The native sun assembler
7230    requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7231    least) doesn't know.  */
7232 int n;
7233 int cmov () { return (n >= 0 ? n : 0); }
7234
7235 int main () { return 0; }
7236 EOF
7237   echo "Test compile: cmov instruction" >&5
7238   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7240   (eval $gmp_compile) 2>&5
7241   ac_status=$?
7242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243   test $ac_status = 0; }; then
7244     cc_works_part=yes
7245     if test "$cross_compiling" = no; then
7246       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251   test $ac_status = 0; }; }; then :;
7252       else
7253         cc_works_part=norun
7254       fi
7255     fi
7256   else
7257     cc_works_part=no
7258   fi
7259   if test "$cc_works_part" != yes; then
7260     echo "failed program was:" >&5
7261     cat conftest.c >&5
7262   fi
7263   rm -f conftest* a.out b.out a.exe a_out.exe
7264   case $cc_works_part in
7265     yes)
7266
7267       ;;
7268     no)
7269       gmp_prog_cc_works="no, cmov instruction"
7270       ;;
7271     norun)
7272       gmp_prog_cc_works="no, cmov instruction, program does not run"
7273       ;;
7274   esac
7275 fi
7276
7277
7278
7279
7280 if test "$gmp_prog_cc_works" = yes; then
7281   # remove anything that might look like compiler output to our "||" expression
7282   rm -f conftest* a.out b.out a.exe a_out.exe
7283   cat >conftest.c <<EOF
7284 /* The following provokes a linker invocation problem with gcc 3.0.3
7285    on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
7286    option causes gcc to incorrectly select the 32-bit libgcc.a, not
7287    the 64-bit one, and consequently it misses out on the __fixunsdfdi
7288    helper (double -> uint64 conversion).  */
7289 double d;
7290 unsigned long gcc303 () { return (unsigned long) d; }
7291
7292 int main () { return 0; }
7293 EOF
7294   echo "Test compile: double -> ulong conversion" >&5
7295   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7297   (eval $gmp_compile) 2>&5
7298   ac_status=$?
7299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300   test $ac_status = 0; }; then
7301     cc_works_part=yes
7302     if test "$cross_compiling" = no; then
7303       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7304   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308   test $ac_status = 0; }; }; then :;
7309       else
7310         cc_works_part=norun
7311       fi
7312     fi
7313   else
7314     cc_works_part=no
7315   fi
7316   if test "$cc_works_part" != yes; then
7317     echo "failed program was:" >&5
7318     cat conftest.c >&5
7319   fi
7320   rm -f conftest* a.out b.out a.exe a_out.exe
7321   case $cc_works_part in
7322     yes)
7323
7324       ;;
7325     no)
7326       gmp_prog_cc_works="no, double -> ulong conversion"
7327       ;;
7328     norun)
7329       gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7330       ;;
7331   esac
7332 fi
7333
7334
7335
7336
7337 if test "$gmp_prog_cc_works" = yes; then
7338   # remove anything that might look like compiler output to our "||" expression
7339   rm -f conftest* a.out b.out a.exe a_out.exe
7340   cat >conftest.c <<EOF
7341 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7342    the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
7343    instruction, and a negation like this comes out using it.  */
7344 double fneg_data;
7345 unsigned long fneg () { return -fneg_data; }
7346
7347 int main () { return 0; }
7348 EOF
7349   echo "Test compile: double negation" >&5
7350   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7351   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7352   (eval $gmp_compile) 2>&5
7353   ac_status=$?
7354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355   test $ac_status = 0; }; then
7356     cc_works_part=yes
7357     if test "$cross_compiling" = no; then
7358       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7359   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7360   (eval $ac_try) 2>&5
7361   ac_status=$?
7362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363   test $ac_status = 0; }; }; then :;
7364       else
7365         cc_works_part=norun
7366       fi
7367     fi
7368   else
7369     cc_works_part=no
7370   fi
7371   if test "$cc_works_part" != yes; then
7372     echo "failed program was:" >&5
7373     cat conftest.c >&5
7374   fi
7375   rm -f conftest* a.out b.out a.exe a_out.exe
7376   case $cc_works_part in
7377     yes)
7378
7379       ;;
7380     no)
7381       gmp_prog_cc_works="no, double negation"
7382       ;;
7383     norun)
7384       gmp_prog_cc_works="no, double negation, program does not run"
7385       ;;
7386   esac
7387 fi
7388
7389
7390
7391
7392 if test "$gmp_prog_cc_works" = yes; then
7393   # remove anything that might look like compiler output to our "||" expression
7394   rm -f conftest* a.out b.out a.exe a_out.exe
7395   cat >conftest.c <<EOF
7396 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7397    (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7398    those instructions.  Not sure how much of the gmp code will come out
7399    wanting sse2, but it's easiest to reject an option we know is bad.  */
7400 double ftod_data;
7401 float ftod () { return (float) ftod_data; }
7402
7403 int main () { return 0; }
7404 EOF
7405   echo "Test compile: double -> float conversion" >&5
7406   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7407   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7408   (eval $gmp_compile) 2>&5
7409   ac_status=$?
7410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411   test $ac_status = 0; }; then
7412     cc_works_part=yes
7413     if test "$cross_compiling" = no; then
7414       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7415   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7416   (eval $ac_try) 2>&5
7417   ac_status=$?
7418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419   test $ac_status = 0; }; }; then :;
7420       else
7421         cc_works_part=norun
7422       fi
7423     fi
7424   else
7425     cc_works_part=no
7426   fi
7427   if test "$cc_works_part" != yes; then
7428     echo "failed program was:" >&5
7429     cat conftest.c >&5
7430   fi
7431   rm -f conftest* a.out b.out a.exe a_out.exe
7432   case $cc_works_part in
7433     yes)
7434
7435       ;;
7436     no)
7437       gmp_prog_cc_works="no, double -> float conversion"
7438       ;;
7439     norun)
7440       gmp_prog_cc_works="no, double -> float conversion, program does not run"
7441       ;;
7442   esac
7443 fi
7444
7445
7446
7447
7448 if test "$gmp_prog_cc_works" = yes; then
7449   # remove anything that might look like compiler output to our "||" expression
7450   rm -f conftest* a.out b.out a.exe a_out.exe
7451   cat >conftest.c <<EOF
7452 /* The following provokes an internal compiler error from gcc version
7453    "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7454    values being spilled into floating point registers.  The problem doesn't
7455    show up all the time, but has occurred enough in GMP for us to reject
7456    this compiler+flags.  */
7457 #include <string.h>  /* for memcpy */
7458 struct try_t
7459 {
7460  char dst[2];
7461  char size;
7462  long d0, d1, d2, d3, d4, d5, d6;
7463  char overlap;
7464 };
7465 struct try_t param[6];
7466 int
7467 param_init ()
7468 {
7469  struct try_t *p;
7470  memcpy (p, &param[ 2 ], sizeof (*p));
7471  memcpy (p, &param[ 2 ], sizeof (*p));
7472  p->size = 2;
7473  memcpy (p, &param[ 1 ], sizeof (*p));
7474  p->dst[0] = 1;
7475  p->overlap = 2;
7476  memcpy (p, &param[ 3 ], sizeof (*p));
7477  p->dst[0] = 1;
7478  p->overlap = 8;
7479  memcpy (p, &param[ 4 ], sizeof (*p));
7480  memcpy (p, &param[ 4 ], sizeof (*p));
7481  p->overlap = 8;
7482  memcpy (p, &param[ 5 ], sizeof (*p));
7483  memcpy (p, &param[ 5 ], sizeof (*p));
7484  memcpy (p, &param[ 5 ], sizeof (*p));
7485  return 0;
7486 }
7487
7488 int main () { return 0; }
7489 EOF
7490   echo "Test compile: gnupro alpha ev6 char spilling" >&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
7520       ;;
7521     no)
7522       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7523       ;;
7524     norun)
7525       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7526       ;;
7527   esac
7528 fi
7529
7530
7531
7532
7533 # __builtin_alloca is not available everywhere, check it exists before
7534 # seeing that it works
7535 if test "$gmp_prog_cc_works" = yes; then
7536   # remove anything that might look like compiler output to our "||" expression
7537   rm -f conftest* a.out b.out a.exe a_out.exe
7538   cat >conftest.c <<EOF
7539 int k; int foo () { __builtin_alloca (k); }
7540 EOF
7541   echo "Test compile: __builtin_alloca availability" >&5
7542   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7543   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7544   (eval $gmp_compile) 2>&5
7545   ac_status=$?
7546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547   test $ac_status = 0; }; then
7548     cc_works_part=yes
7549     if test "$cross_compiling" = no; then
7550       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7551   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555   test $ac_status = 0; }; }; then :;
7556       else
7557         cc_works_part=norun
7558       fi
7559     fi
7560   else
7561     cc_works_part=no
7562   fi
7563   if test "$cc_works_part" != yes; then
7564     echo "failed program was:" >&5
7565     cat conftest.c >&5
7566   fi
7567   rm -f conftest* a.out b.out a.exe a_out.exe
7568   case $cc_works_part in
7569     yes)
7570       if test "$gmp_prog_cc_works" = yes; then
7571   # remove anything that might look like compiler output to our "||" expression
7572   rm -f conftest* a.out b.out a.exe a_out.exe
7573   cat >conftest.c <<EOF
7574 /* The following provokes an internal compiler error from Itanium HP-UX cc
7575     under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
7576 int k;
7577 int foo ()
7578 {
7579   int i, **a;
7580   a = __builtin_alloca (k);
7581   for (i = 0; i <= k; i++)
7582     a[i] = __builtin_alloca (1 << i);
7583 }
7584
7585 int main () { return 0; }
7586 EOF
7587   echo "Test compile: alloca array" >&5
7588   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7590   (eval $gmp_compile) 2>&5
7591   ac_status=$?
7592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593   test $ac_status = 0; }; then
7594     cc_works_part=yes
7595     if test "$cross_compiling" = no; then
7596       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7597   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7598   (eval $ac_try) 2>&5
7599   ac_status=$?
7600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601   test $ac_status = 0; }; }; then :;
7602       else
7603         cc_works_part=norun
7604       fi
7605     fi
7606   else
7607     cc_works_part=no
7608   fi
7609   if test "$cc_works_part" != yes; then
7610     echo "failed program was:" >&5
7611     cat conftest.c >&5
7612   fi
7613   rm -f conftest* a.out b.out a.exe a_out.exe
7614   case $cc_works_part in
7615     yes)
7616
7617       ;;
7618     no)
7619       gmp_prog_cc_works="no, alloca array"
7620       ;;
7621     norun)
7622       gmp_prog_cc_works="no, alloca array, program does not run"
7623       ;;
7624   esac
7625 fi
7626
7627
7628
7629       ;;
7630     no)
7631
7632       ;;
7633     norun)
7634
7635       ;;
7636   esac
7637 fi
7638
7639
7640 if test "$gmp_prog_cc_works" = yes; then
7641   # remove anything that might look like compiler output to our "||" expression
7642   rm -f conftest* a.out b.out a.exe a_out.exe
7643   cat >conftest.c <<EOF
7644 /* The following provokes an internal error from the assembler on
7645    power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
7646    results in "Internal error related to the source program domain".
7647
7648    For reference it seems to be the combination of nabs+fcirz which is bad,
7649    not either alone.  This sort of thing occurs in mpz/get_str.c with the
7650    way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
7651    if that code changes to a scaled-integer style then we won't need this
7652    test.  */
7653
7654 double fp[1];
7655 int x;
7656 int f ()
7657 {
7658   int a;
7659   a = (x >= 0 ? x : -x);
7660   return a * fp[0];
7661 }
7662
7663 int main () { return 0; }
7664 EOF
7665   echo "Test compile: abs int -> double conversion" >&5
7666   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7668   (eval $gmp_compile) 2>&5
7669   ac_status=$?
7670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671   test $ac_status = 0; }; then
7672     cc_works_part=yes
7673     if test "$cross_compiling" = no; then
7674       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7675   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7676   (eval $ac_try) 2>&5
7677   ac_status=$?
7678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7679   test $ac_status = 0; }; }; then :;
7680       else
7681         cc_works_part=norun
7682       fi
7683     fi
7684   else
7685     cc_works_part=no
7686   fi
7687   if test "$cc_works_part" != yes; then
7688     echo "failed program was:" >&5
7689     cat conftest.c >&5
7690   fi
7691   rm -f conftest* a.out b.out a.exe a_out.exe
7692   case $cc_works_part in
7693     yes)
7694
7695       ;;
7696     no)
7697       gmp_prog_cc_works="no, abs int -> double conversion"
7698       ;;
7699     norun)
7700       gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7701       ;;
7702   esac
7703 fi
7704
7705
7706
7707
7708 if test "$gmp_prog_cc_works" = yes; then
7709   # remove anything that might look like compiler output to our "||" expression
7710   rm -f conftest* a.out b.out a.exe a_out.exe
7711   cat >conftest.c <<EOF
7712 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7713    Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
7714    1666 to segfault with e.g., -O2 -mpowerpc64.  */
7715
7716 #if defined (__GNUC__) && ! defined (__cplusplus)
7717 typedef unsigned long long t1;typedef t1*t2;
7718 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7719 {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;}
7720 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7721 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();}}
7722 h(){}g(){}
7723 #else
7724 int dummy;
7725 #endif
7726
7727 int main () { return 0; }
7728 EOF
7729   echo "Test compile: long long reliability test 1" >&5
7730   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7732   (eval $gmp_compile) 2>&5
7733   ac_status=$?
7734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735   test $ac_status = 0; }; then
7736     cc_works_part=yes
7737     if test "$cross_compiling" = no; then
7738       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7739   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7740   (eval $ac_try) 2>&5
7741   ac_status=$?
7742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7743   test $ac_status = 0; }; }; then :;
7744       else
7745         cc_works_part=norun
7746       fi
7747     fi
7748   else
7749     cc_works_part=no
7750   fi
7751   if test "$cc_works_part" != yes; then
7752     echo "failed program was:" >&5
7753     cat conftest.c >&5
7754   fi
7755   rm -f conftest* a.out b.out a.exe a_out.exe
7756   case $cc_works_part in
7757     yes)
7758
7759       ;;
7760     no)
7761       gmp_prog_cc_works="no, long long reliability test 1"
7762       ;;
7763     norun)
7764       gmp_prog_cc_works="no, long long reliability test 1, program does not run"
7765       ;;
7766   esac
7767 fi
7768
7769
7770
7771
7772 if test "$gmp_prog_cc_works" = yes; then
7773   # remove anything that might look like compiler output to our "||" expression
7774   rm -f conftest* a.out b.out a.exe a_out.exe
7775   cat >conftest.c <<EOF
7776 /* The following provokes an internal compiler error on powerpc-apple-darwin.
7777    Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
7778    1666 to get an ICE with -O1 -mpowerpc64.  */
7779
7780 #if defined (__GNUC__) && ! defined (__cplusplus)
7781 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();}
7782 g(){}
7783 #else
7784 int dummy;
7785 #endif
7786
7787 int main () { return 0; }
7788 EOF
7789   echo "Test compile: long long reliability test 2" >&5
7790   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7792   (eval $gmp_compile) 2>&5
7793   ac_status=$?
7794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795   test $ac_status = 0; }; then
7796     cc_works_part=yes
7797     if test "$cross_compiling" = no; then
7798       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7799   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7800   (eval $ac_try) 2>&5
7801   ac_status=$?
7802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803   test $ac_status = 0; }; }; then :;
7804       else
7805         cc_works_part=norun
7806       fi
7807     fi
7808   else
7809     cc_works_part=no
7810   fi
7811   if test "$cc_works_part" != yes; then
7812     echo "failed program was:" >&5
7813     cat conftest.c >&5
7814   fi
7815   rm -f conftest* a.out b.out a.exe a_out.exe
7816   case $cc_works_part in
7817     yes)
7818
7819       ;;
7820     no)
7821       gmp_prog_cc_works="no, long long reliability test 2"
7822       ;;
7823     norun)
7824       gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7825       ;;
7826   esac
7827 fi
7828
7829
7830
7831
7832 if test "$gmp_prog_cc_works" = yes; then
7833   # remove anything that might look like compiler output to our "||" expression
7834   rm -f conftest* a.out b.out a.exe a_out.exe
7835   cat >conftest.c <<EOF
7836 /* The following is mis-compiled by HP ia-64 cc version
7837         cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7838    under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
7839    inlined and its return value somehow botched to be 0 instead of 1.  This
7840    arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
7841    level, like +O2 seems ok.  This code needs to be run to show the problem,
7842    but that's fine, the offending cc is a native-only compiler so we don't
7843    have to worry about cross compiling.  */
7844
7845 #if ! defined (__cplusplus)
7846 unsigned long
7847 lshift_com (rp, up, n, cnt)
7848   unsigned long *rp;
7849   unsigned long *up;
7850   long n;
7851   unsigned cnt;
7852 {
7853   unsigned long retval, high_limb, low_limb;
7854   unsigned tnc;
7855   long i;
7856   tnc = 8 * sizeof (unsigned long) - cnt;
7857   low_limb = *up++;
7858   retval = low_limb >> tnc;
7859   high_limb = low_limb << cnt;
7860   for (i = n - 1; i != 0; i--)
7861     {
7862       low_limb = *up++;
7863       *rp++ = ~(high_limb | (low_limb >> tnc));
7864       high_limb = low_limb << cnt;
7865     }
7866   return retval;
7867 }
7868 int
7869 main ()
7870 {
7871   unsigned long cy, rp[2], up[2];
7872   up[0] = ~ 0L;
7873   up[1] = 0;
7874   cy = lshift_com (rp, up, 2L, 1);
7875   if (cy != 1L)
7876     return 1;
7877   return 0;
7878 }
7879 #else
7880 int
7881 main ()
7882 {
7883   return 0;
7884 }
7885 #endif
7886
7887 EOF
7888   echo "Test compile: mpn_lshift_com optimization" >&5
7889   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7891   (eval $gmp_compile) 2>&5
7892   ac_status=$?
7893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894   test $ac_status = 0; }; then
7895     cc_works_part=yes
7896     if test "$cross_compiling" = no; then
7897       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7898   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902   test $ac_status = 0; }; }; then :;
7903       else
7904         cc_works_part=norun
7905       fi
7906     fi
7907   else
7908     cc_works_part=no
7909   fi
7910   if test "$cc_works_part" != yes; then
7911     echo "failed program was:" >&5
7912     cat conftest.c >&5
7913   fi
7914   rm -f conftest* a.out b.out a.exe a_out.exe
7915   case $cc_works_part in
7916     yes)
7917
7918       ;;
7919     no)
7920       gmp_prog_cc_works="no, mpn_lshift_com optimization"
7921       ;;
7922     norun)
7923       gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7924       ;;
7925   esac
7926 fi
7927
7928
7929
7930 if test "$gmp_prog_cc_works" = yes; then
7931   # remove anything that might look like compiler output to our "||" expression
7932   rm -f conftest* a.out b.out a.exe a_out.exe
7933   cat >conftest.c <<EOF
7934 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7935     "icc -O3",  After several calls, the function writes parial garbage to
7936     the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
7937     to be run to show the problem, but that's fine, the offending cc is a
7938     native-only compiler so we don't have to worry about cross compiling.  */
7939
7940 #if ! defined (__cplusplus)
7941 #include <stdlib.h>
7942 void
7943 lshift_com (rp, up, n, cnt)
7944   unsigned long *rp;
7945   unsigned long *up;
7946   long n;
7947   unsigned cnt;
7948 {
7949   unsigned long high_limb, low_limb;
7950   unsigned tnc;
7951   long i;
7952   up += n;
7953   rp += n;
7954   tnc = 8 * sizeof (unsigned long) - cnt;
7955   low_limb = *--up;
7956   high_limb = low_limb << cnt;
7957   for (i = n - 1; i != 0; i--)
7958     {
7959       low_limb = *--up;
7960       *--rp = ~(high_limb | (low_limb >> tnc));
7961       high_limb = low_limb << cnt;
7962     }
7963   *--rp = ~high_limb;
7964 }
7965 int
7966 main ()
7967 {
7968   unsigned long *r, *r2;
7969   unsigned long a[88 + 1];
7970   long i;
7971   for (i = 0; i < 88 + 1; i++)
7972     a[i] = ~0L;
7973   r = malloc (10000 * sizeof (unsigned long));
7974   r2 = r;
7975   for (i = 0; i < 528; i += 22)
7976     {
7977       lshift_com (r2, a,
7978                   i / (8 * sizeof (unsigned long)) + 1,
7979                   i % (8 * sizeof (unsigned long)));
7980       r2 += 88 + 1;
7981     }
7982   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
7983       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
7984     abort ();
7985   return 0;
7986 }
7987 #else
7988 int
7989 main ()
7990 {
7991   return 0;
7992 }
7993 #endif
7994
7995 EOF
7996   echo "Test compile: mpn_lshift_com optimization 2" >&5
7997   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7999   (eval $gmp_compile) 2>&5
8000   ac_status=$?
8001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002   test $ac_status = 0; }; then
8003     cc_works_part=yes
8004     if test "$cross_compiling" = no; then
8005       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8006   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010   test $ac_status = 0; }; }; then :;
8011       else
8012         cc_works_part=norun
8013       fi
8014     fi
8015   else
8016     cc_works_part=no
8017   fi
8018   if test "$cc_works_part" != yes; then
8019     echo "failed program was:" >&5
8020     cat conftest.c >&5
8021   fi
8022   rm -f conftest* a.out b.out a.exe a_out.exe
8023   case $cc_works_part in
8024     yes)
8025
8026       ;;
8027     no)
8028       gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
8029       ;;
8030     norun)
8031       gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
8032       ;;
8033   esac
8034 fi
8035
8036
8037
8038
8039 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
8040 # by recent versions of gcc.
8041 #
8042 if test "$gmp_prog_cc_works" = yes; then
8043   case $host in
8044     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
8045       # this problem only arises in PIC code, so don't need to test when
8046       # --disable-shared.  We don't necessarily have $enable_shared set to
8047       # yes at this point, it will still be unset for the default (which is
8048       # yes); hence the use of "!= no".
8049       if test "$enable_shared" != no; then
8050         echo "Testing gcc GOT with eax emitted" >&5
8051 cat >conftest.c <<\EOF
8052 int foo;
8053 int bar () { return foo; }
8054 EOF
8055 tmp_got_emitted=no
8056 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8058   (eval $gmp_compile) 2>&5
8059   ac_status=$?
8060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061   test $ac_status = 0; }; then
8062   if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8063     tmp_got_emitted=yes
8064   fi
8065 fi
8066 rm -f conftest.*
8067 echo "Result: $tmp_got_emitted" >&5
8068 if test "$tmp_got_emitted" = yes; then
8069   echo "Testing gas GOT with eax good" >&5
8070 cat >conftest.awk <<\EOF
8071 BEGIN {
8072   want[0]  = "001"
8073   want[1]  = "043"
8074   want[2]  = "105"
8075   want[3]  = "147"
8076   want[4]  = "211"
8077   want[5]  = "253"
8078   want[6]  = "315"
8079   want[7]  = "357"
8080
8081   want[8]  = "005"
8082   want[9]  = "002"
8083   want[10] = "000"
8084   want[11] = "000"
8085   want[12] = "000"
8086
8087   want[13] = "376"
8088   want[14] = "334"
8089   want[15] = "272"
8090   want[16] = "230"
8091   want[17] = "166"
8092   want[18] = "124"
8093   want[19] = "062"
8094   want[20] = "020"
8095
8096   result = "yes"
8097 }
8098 {
8099   for (f = 2; f <= NF; f++)
8100     {
8101       for (i = 0; i < 20; i++)
8102         got[i] = got[i+1];
8103       got[20] = $f;
8104
8105       found = 1
8106       for (i = 0; i < 21; i++)
8107         if (got[i] != want[i])
8108           {
8109             found = 0
8110             break
8111           }
8112       if (found)
8113         {
8114           result = "no"
8115           exit
8116         }
8117     }
8118 }
8119 END {
8120   print result
8121 }
8122 EOF
8123 cat >conftest.s <<\EOF
8124         .text
8125         .byte   1, 35, 69, 103, 137, 171, 205, 239
8126         addl    $_GLOBAL_OFFSET_TABLE_, %eax
8127         .byte   254, 220, 186, 152, 118, 84, 50, 16
8128 EOF
8129 tmp_got_good=yes
8130 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8132   (eval $gmp_compile) 2>&5
8133   ac_status=$?
8134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8135   test $ac_status = 0; }; then
8136   tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8137 fi
8138 rm -f conftest.*
8139 echo "Result: $tmp_got_good" >&5
8140 if test "$tmp_got_good" = no; then
8141   gmp_prog_cc_works="no, bad gas GOT with eax"
8142 else
8143   :
8144 fi
8145
8146 else
8147   :
8148 fi
8149
8150       fi
8151       ;;
8152   esac
8153 fi
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8156 $as_echo "$gmp_prog_cc_works" >&6; }
8157 case $gmp_prog_cc_works in
8158   yes)
8159     cflags="$cflags $flag"
8160           break
8161     ;;
8162   *)
8163
8164     ;;
8165 esac
8166
8167       done
8168     done
8169   fi
8170
8171   ABI="$abi"
8172   CC="$cc"
8173   CFLAGS="$cflags"
8174   CPPFLAGS="$cppflags"
8175   eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI\"
8176
8177   # Could easily have this in config.h too, if desired.
8178   ABI_nodots=`echo $ABI | sed 's/\./_/'`
8179
8180 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8181
8182
8183
8184   # GMP_LDFLAGS substitution, selected according to ABI.
8185   # These are needed on libgmp.la and libmp.la, but currently not on
8186   # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8187   #
8188                             eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8189   test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8190
8191
8192
8193
8194   # extra_functions, selected according to ABI
8195                     eval tmp=\"\$extra_functions$abi1\"
8196   test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8197   extra_functions="$tmp"
8198
8199
8200   # Cycle counter, selected according to ABI.
8201   #
8202                     eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8203   test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8204   SPEED_CYCLECOUNTER_OBJ="$tmp"
8205                     eval tmp=\"\$cyclecounter_size$abi1\"
8206   test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8207   cyclecounter_size="$tmp"
8208
8209   if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8210
8211 cat >>confdefs.h <<_ACEOF
8212 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8213 _ACEOF
8214
8215   fi
8216
8217
8218
8219   # Calling conventions checking, selected according to ABI.
8220   #
8221                     eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8222   test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8223   if test "$enable_assembly" = "yes"; then
8224      CALLING_CONVENTIONS_OBJS="$tmp"
8225   else
8226      CALLING_CONVENTIONS_OBJS=""
8227   fi
8228
8229   if test -n "$CALLING_CONVENTIONS_OBJS"; then
8230
8231 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8232
8233   fi
8234
8235
8236 fi
8237
8238
8239 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8240 # according to the ABI and add "generic".
8241 #
8242 if test -n "$MPN_PATH"; then
8243   path="$MPN_PATH"
8244 else
8245                     eval tmp=\"\$path$abi1\"
8246   test -n "$tmp" || eval tmp=\"\$path$abi2\"
8247   path="$tmp generic"
8248 fi
8249
8250
8251 # Long long limb setup for gmp.h.
8252 case $limb_chosen in
8253 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1"    ;;
8254 *)        DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8255 esac
8256
8257
8258
8259 # The C compiler and preprocessor, put into ANSI mode if possible.
8260 ac_ext=c
8261 ac_cpp='$CPP $CPPFLAGS'
8262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8265 if test -n "$ac_tool_prefix"; then
8266   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_CC+:} false; then :
8271   $as_echo_n "(cached) " >&6
8272 else
8273   if test -n "$CC"; then
8274   ac_cv_prog_CC="$CC" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279   IFS=$as_save_IFS
8280   test -z "$as_dir" && as_dir=.
8281     for ac_exec_ext in '' $ac_executable_extensions; do
8282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283     ac_cv_prog_CC="${ac_tool_prefix}gcc"
8284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285     break 2
8286   fi
8287 done
8288   done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 CC=$ac_cv_prog_CC
8294 if test -n "$CC"; then
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8296 $as_echo "$CC" >&6; }
8297 else
8298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8300 fi
8301
8302
8303 fi
8304 if test -z "$ac_cv_prog_CC"; then
8305   ac_ct_CC=$CC
8306   # Extract the first word of "gcc", so it can be a program name with args.
8307 set dummy gcc; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   if test -n "$ac_ct_CC"; then
8314   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321     for ac_exec_ext in '' $ac_executable_extensions; do
8322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323     ac_cv_prog_ac_ct_CC="gcc"
8324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328   done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8334 if test -n "$ac_ct_CC"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8336 $as_echo "$ac_ct_CC" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342   if test "x$ac_ct_CC" = x; then
8343     CC=""
8344   else
8345     case $cross_compiling:$ac_tool_warned in
8346 yes:)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8350 esac
8351     CC=$ac_ct_CC
8352   fi
8353 else
8354   CC="$ac_cv_prog_CC"
8355 fi
8356
8357 if test -z "$CC"; then
8358           if test -n "$ac_tool_prefix"; then
8359     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8360 set dummy ${ac_tool_prefix}cc; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_prog_CC+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   if test -n "$CC"; then
8367   ac_cv_prog_CC="$CC" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372   IFS=$as_save_IFS
8373   test -z "$as_dir" && as_dir=.
8374     for ac_exec_ext in '' $ac_executable_extensions; do
8375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376     ac_cv_prog_CC="${ac_tool_prefix}cc"
8377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378     break 2
8379   fi
8380 done
8381   done
8382 IFS=$as_save_IFS
8383
8384 fi
8385 fi
8386 CC=$ac_cv_prog_CC
8387 if test -n "$CC"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8389 $as_echo "$CC" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396   fi
8397 fi
8398 if test -z "$CC"; then
8399   # Extract the first word of "cc", so it can be a program name with args.
8400 set dummy cc; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_CC+:} false; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   if test -n "$CC"; then
8407   ac_cv_prog_CC="$CC" # Let the user override the test.
8408 else
8409   ac_prog_rejected=no
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415     for ac_exec_ext in '' $ac_executable_extensions; do
8416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8418        ac_prog_rejected=yes
8419        continue
8420      fi
8421     ac_cv_prog_CC="cc"
8422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426   done
8427 IFS=$as_save_IFS
8428
8429 if test $ac_prog_rejected = yes; then
8430   # We found a bogon in the path, so make sure we never use it.
8431   set dummy $ac_cv_prog_CC
8432   shift
8433   if test $# != 0; then
8434     # We chose a different compiler from the bogus one.
8435     # However, it has the same basename, so the bogon will be chosen
8436     # first if we set CC to just the basename; use the full file name.
8437     shift
8438     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8439   fi
8440 fi
8441 fi
8442 fi
8443 CC=$ac_cv_prog_CC
8444 if test -n "$CC"; then
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8446 $as_echo "$CC" >&6; }
8447 else
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451
8452
8453 fi
8454 if test -z "$CC"; then
8455   if test -n "$ac_tool_prefix"; then
8456   for ac_prog in cl.exe
8457   do
8458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_CC+:} false; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   if test -n "$CC"; then
8466   ac_cv_prog_CC="$CC" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471   IFS=$as_save_IFS
8472   test -z "$as_dir" && as_dir=.
8473     for ac_exec_ext in '' $ac_executable_extensions; do
8474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477     break 2
8478   fi
8479 done
8480   done
8481 IFS=$as_save_IFS
8482
8483 fi
8484 fi
8485 CC=$ac_cv_prog_CC
8486 if test -n "$CC"; then
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8488 $as_echo "$CC" >&6; }
8489 else
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492 fi
8493
8494
8495     test -n "$CC" && break
8496   done
8497 fi
8498 if test -z "$CC"; then
8499   ac_ct_CC=$CC
8500   for ac_prog in cl.exe
8501 do
8502   # Extract the first word of "$ac_prog", so it can be a program name with args.
8503 set dummy $ac_prog; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   if test -n "$ac_ct_CC"; then
8510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515   IFS=$as_save_IFS
8516   test -z "$as_dir" && as_dir=.
8517     for ac_exec_ext in '' $ac_executable_extensions; do
8518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519     ac_cv_prog_ac_ct_CC="$ac_prog"
8520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521     break 2
8522   fi
8523 done
8524   done
8525 IFS=$as_save_IFS
8526
8527 fi
8528 fi
8529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8530 if test -n "$ac_ct_CC"; then
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8532 $as_echo "$ac_ct_CC" >&6; }
8533 else
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539   test -n "$ac_ct_CC" && break
8540 done
8541
8542   if test "x$ac_ct_CC" = x; then
8543     CC=""
8544   else
8545     case $cross_compiling:$ac_tool_warned in
8546 yes:)
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8549 ac_tool_warned=yes ;;
8550 esac
8551     CC=$ac_ct_CC
8552   fi
8553 fi
8554
8555 fi
8556
8557
8558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560 as_fn_error $? "no acceptable C compiler found in \$PATH
8561 See \`config.log' for more details" "$LINENO" 5; }
8562
8563 # Provide some information about the compiler.
8564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8565 set X $ac_compile
8566 ac_compiler=$2
8567 for ac_option in --version -v -V -qversion; do
8568   { { ac_try="$ac_compiler $ac_option >&5"
8569 case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8574 $as_echo "$ac_try_echo"; } >&5
8575   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8576   ac_status=$?
8577   if test -s conftest.err; then
8578     sed '10a\
8579 ... rest of stderr output deleted ...
8580          10q' conftest.err >conftest.er1
8581     cat conftest.er1 >&5
8582   fi
8583   rm -f conftest.er1 conftest.err
8584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8585   test $ac_status = 0; }
8586 done
8587
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h.  */
8590
8591 int
8592 main ()
8593 {
8594
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 ac_clean_files_save=$ac_clean_files
8600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8601 # Try to create an executable without -o first, disregard a.out.
8602 # It will help us diagnose broken compilers, and finding out an intuition
8603 # of exeext.
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8605 $as_echo_n "checking whether the C compiler works... " >&6; }
8606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8607
8608 # The possible output files:
8609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8610
8611 ac_rmfiles=
8612 for ac_file in $ac_files
8613 do
8614   case $ac_file in
8615     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8616     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8617   esac
8618 done
8619 rm -f $ac_rmfiles
8620
8621 if { { ac_try="$ac_link_default"
8622 case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8627 $as_echo "$ac_try_echo"; } >&5
8628   (eval "$ac_link_default") 2>&5
8629   ac_status=$?
8630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8631   test $ac_status = 0; }; then :
8632   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8634 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
8635 # so that the user can short-circuit this test for compilers unknown to
8636 # Autoconf.
8637 for ac_file in $ac_files ''
8638 do
8639   test -f "$ac_file" || continue
8640   case $ac_file in
8641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8642         ;;
8643     [ab].out )
8644         # We found the default executable, but exeext='' is most
8645         # certainly right.
8646         break;;
8647     *.* )
8648         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8649         then :; else
8650            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8651         fi
8652         # We set ac_cv_exeext here because the later test for it is not
8653         # safe: cross compilers may not add the suffix if given an `-o'
8654         # argument, so we may need to know it at that point already.
8655         # Even if this section looks crufty: it has the advantage of
8656         # actually working.
8657         break;;
8658     * )
8659         break;;
8660   esac
8661 done
8662 test "$ac_cv_exeext" = no && ac_cv_exeext=
8663
8664 else
8665   ac_file=''
8666 fi
8667 if test -z "$ac_file"; then :
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 $as_echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8675 as_fn_error 77 "C compiler cannot create executables
8676 See \`config.log' for more details" "$LINENO" 5; }
8677 else
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8679 $as_echo "yes" >&6; }
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8682 $as_echo_n "checking for C compiler default output file name... " >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8684 $as_echo "$ac_file" >&6; }
8685 ac_exeext=$ac_cv_exeext
8686
8687 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8688 ac_clean_files=$ac_clean_files_save
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8690 $as_echo_n "checking for suffix of executables... " >&6; }
8691 if { { ac_try="$ac_link"
8692 case "(($ac_try" in
8693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694   *) ac_try_echo=$ac_try;;
8695 esac
8696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8697 $as_echo "$ac_try_echo"; } >&5
8698   (eval "$ac_link") 2>&5
8699   ac_status=$?
8700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8701   test $ac_status = 0; }; then :
8702   # If both `conftest.exe' and `conftest' are `present' (well, observable)
8703 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
8704 # work properly (i.e., refer to `conftest.exe'), while it won't with
8705 # `rm'.
8706 for ac_file in conftest.exe conftest conftest.*; do
8707   test -f "$ac_file" || continue
8708   case $ac_file in
8709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8710     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8711           break;;
8712     * ) break;;
8713   esac
8714 done
8715 else
8716   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8718 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
8719 See \`config.log' for more details" "$LINENO" 5; }
8720 fi
8721 rm -f conftest conftest$ac_cv_exeext
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8723 $as_echo "$ac_cv_exeext" >&6; }
8724
8725 rm -f conftest.$ac_ext
8726 EXEEXT=$ac_cv_exeext
8727 ac_exeext=$EXEEXT
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h.  */
8730 #include <stdio.h>
8731 int
8732 main ()
8733 {
8734 FILE *f = fopen ("conftest.out", "w");
8735  return ferror (f) || fclose (f) != 0;
8736
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 ac_clean_files="$ac_clean_files conftest.out"
8742 # Check that the compiler produces executables we can run.  If not, either
8743 # the compiler is broken, or we cross compile.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8745 $as_echo_n "checking whether we are cross compiling... " >&6; }
8746 if test "$cross_compiling" != yes; then
8747   { { ac_try="$ac_link"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8753 $as_echo "$ac_try_echo"; } >&5
8754   (eval "$ac_link") 2>&5
8755   ac_status=$?
8756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8757   test $ac_status = 0; }
8758   if { ac_try='./conftest$ac_cv_exeext'
8759   { { case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8764 $as_echo "$ac_try_echo"; } >&5
8765   (eval "$ac_try") 2>&5
8766   ac_status=$?
8767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768   test $ac_status = 0; }; }; then
8769     cross_compiling=no
8770   else
8771     if test "$cross_compiling" = maybe; then
8772         cross_compiling=yes
8773     else
8774         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8776 as_fn_error $? "cannot run C compiled programs.
8777 If you meant to cross compile, use \`--host'.
8778 See \`config.log' for more details" "$LINENO" 5; }
8779     fi
8780   fi
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8783 $as_echo "$cross_compiling" >&6; }
8784
8785 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8786 ac_clean_files=$ac_clean_files_save
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8788 $as_echo_n "checking for suffix of object files... " >&6; }
8789 if ${ac_cv_objext+:} false; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h.  */
8794
8795 int
8796 main ()
8797 {
8798
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest.o conftest.obj
8804 if { { ac_try="$ac_compile"
8805 case "(($ac_try" in
8806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807   *) ac_try_echo=$ac_try;;
8808 esac
8809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8810 $as_echo "$ac_try_echo"; } >&5
8811   (eval "$ac_compile") 2>&5
8812   ac_status=$?
8813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8814   test $ac_status = 0; }; then :
8815   for ac_file in conftest.o conftest.obj conftest.*; do
8816   test -f "$ac_file" || continue;
8817   case $ac_file in
8818     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8819     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8820        break;;
8821   esac
8822 done
8823 else
8824   $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8829 as_fn_error $? "cannot compute suffix of object files: cannot compile
8830 See \`config.log' for more details" "$LINENO" 5; }
8831 fi
8832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8835 $as_echo "$ac_cv_objext" >&6; }
8836 OBJEXT=$ac_cv_objext
8837 ac_objext=$OBJEXT
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8839 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8840 if ${ac_cv_c_compiler_gnu+:} false; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h.  */
8845
8846 int
8847 main ()
8848 {
8849 #ifndef __GNUC__
8850        choke me
8851 #endif
8852
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"; then :
8858   ac_compiler_gnu=yes
8859 else
8860   ac_compiler_gnu=no
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8864
8865 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8867 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8868 if test $ac_compiler_gnu = yes; then
8869   GCC=yes
8870 else
8871   GCC=
8872 fi
8873 ac_test_CFLAGS=${CFLAGS+set}
8874 ac_save_CFLAGS=$CFLAGS
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8876 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8877 if ${ac_cv_prog_cc_g+:} false; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   ac_save_c_werror_flag=$ac_c_werror_flag
8881    ac_c_werror_flag=yes
8882    ac_cv_prog_cc_g=no
8883    CFLAGS="-g"
8884    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h.  */
8886
8887 int
8888 main ()
8889 {
8890
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"; then :
8896   ac_cv_prog_cc_g=yes
8897 else
8898   CFLAGS=""
8899       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_compile "$LINENO"; then :
8911
8912 else
8913   ac_c_werror_flag=$ac_save_c_werror_flag
8914          CFLAGS="-g"
8915          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h.  */
8917
8918 int
8919 main ()
8920 {
8921
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_compile "$LINENO"; then :
8927   ac_cv_prog_cc_g=yes
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934    ac_c_werror_flag=$ac_save_c_werror_flag
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8937 $as_echo "$ac_cv_prog_cc_g" >&6; }
8938 if test "$ac_test_CFLAGS" = set; then
8939   CFLAGS=$ac_save_CFLAGS
8940 elif test $ac_cv_prog_cc_g = yes; then
8941   if test "$GCC" = yes; then
8942     CFLAGS="-g -O2"
8943   else
8944     CFLAGS="-g"
8945   fi
8946 else
8947   if test "$GCC" = yes; then
8948     CFLAGS="-O2"
8949   else
8950     CFLAGS=
8951   fi
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8955 if ${ac_cv_prog_cc_c89+:} false; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   ac_cv_prog_cc_c89=no
8959 ac_save_CC=$CC
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962 #include <stdarg.h>
8963 #include <stdio.h>
8964 struct stat;
8965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8966 struct buf { int x; };
8967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8968 static char *e (p, i)
8969      char **p;
8970      int i;
8971 {
8972   return p[i];
8973 }
8974 static char *f (char * (*g) (char **, int), char **p, ...)
8975 {
8976   char *s;
8977   va_list v;
8978   va_start (v,p);
8979   s = g (p, va_arg (v,int));
8980   va_end (v);
8981   return s;
8982 }
8983
8984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8985    function prototypes and stuff, but not '\xHH' hex character constants.
8986    These don't provoke an error unfortunately, instead are silently treated
8987    as 'x'.  The following induces an error, until -std is added to get
8988    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8989    array size at least.  It's necessary to write '\x00'==0 to get something
8990    that's true only with -std.  */
8991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8992
8993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8994    inside strings and character constants.  */
8995 #define FOO(x) 'x'
8996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8997
8998 int test (int i, double x);
8999 struct s1 {int (*f) (int a);};
9000 struct s2 {int (*f) (double a);};
9001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9002 int argc;
9003 char **argv;
9004 int
9005 main ()
9006 {
9007 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9013         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9014 do
9015   CC="$ac_save_CC $ac_arg"
9016   if ac_fn_c_try_compile "$LINENO"; then :
9017   ac_cv_prog_cc_c89=$ac_arg
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext
9020   test "x$ac_cv_prog_cc_c89" != "xno" && break
9021 done
9022 rm -f conftest.$ac_ext
9023 CC=$ac_save_CC
9024
9025 fi
9026 # AC_CACHE_VAL
9027 case "x$ac_cv_prog_cc_c89" in
9028   x)
9029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9030 $as_echo "none needed" >&6; } ;;
9031   xno)
9032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9033 $as_echo "unsupported" >&6; } ;;
9034   *)
9035     CC="$CC $ac_cv_prog_cc_c89"
9036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9038 esac
9039 if test "x$ac_cv_prog_cc_c89" != xno; then :
9040
9041 fi
9042
9043 ac_ext=c
9044 ac_cpp='$CPP $CPPFLAGS'
9045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9048
9049    case $ac_cv_prog_cc_stdc in #(
9050   no) :
9051     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
9052   *) :
9053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9054 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9055 if ${ac_cv_prog_cc_c99+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   ac_cv_prog_cc_c99=no
9059 ac_save_CC=$CC
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h.  */
9062 #include <stdarg.h>
9063 #include <stdbool.h>
9064 #include <stdlib.h>
9065 #include <wchar.h>
9066 #include <stdio.h>
9067
9068 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
9069 #define debug(...) fprintf (stderr, __VA_ARGS__)
9070 #define showlist(...) puts (#__VA_ARGS__)
9071 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9072 static void
9073 test_varargs_macros (void)
9074 {
9075   int x = 1234;
9076   int y = 5678;
9077   debug ("Flag");
9078   debug ("X = %d\n", x);
9079   showlist (The first, second, and third items.);
9080   report (x>y, "x is %d but y is %d", x, y);
9081 }
9082
9083 // Check long long types.
9084 #define BIG64 18446744073709551615ull
9085 #define BIG32 4294967295ul
9086 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9087 #if !BIG_OK
9088   your preprocessor is broken;
9089 #endif
9090 #if BIG_OK
9091 #else
9092   your preprocessor is broken;
9093 #endif
9094 static long long int bignum = -9223372036854775807LL;
9095 static unsigned long long int ubignum = BIG64;
9096
9097 struct incomplete_array
9098 {
9099   int datasize;
9100   double data[];
9101 };
9102
9103 struct named_init {
9104   int number;
9105   const wchar_t *name;
9106   double average;
9107 };
9108
9109 typedef const char *ccp;
9110
9111 static inline int
9112 test_restrict (ccp restrict text)
9113 {
9114   // See if C++-style comments work.
9115   // Iterate through items via the restricted pointer.
9116   // Also check for declarations in for loops.
9117   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9118     continue;
9119   return 0;
9120 }
9121
9122 // Check varargs and va_copy.
9123 static void
9124 test_varargs (const char *format, ...)
9125 {
9126   va_list args;
9127   va_start (args, format);
9128   va_list args_copy;
9129   va_copy (args_copy, args);
9130
9131   const char *str;
9132   int number;
9133   float fnumber;
9134
9135   while (*format)
9136     {
9137       switch (*format++)
9138         {
9139         case 's': // string
9140           str = va_arg (args_copy, const char *);
9141           break;
9142         case 'd': // int
9143           number = va_arg (args_copy, int);
9144           break;
9145         case 'f': // float
9146           fnumber = va_arg (args_copy, double);
9147           break;
9148         default:
9149           break;
9150         }
9151     }
9152   va_end (args_copy);
9153   va_end (args);
9154 }
9155
9156 int
9157 main ()
9158 {
9159
9160   // Check bool.
9161   _Bool success = false;
9162
9163   // Check restrict.
9164   if (test_restrict ("String literal") == 0)
9165     success = true;
9166   char *restrict newvar = "Another string";
9167
9168   // Check varargs.
9169   test_varargs ("s, d' f .", "string", 65, 34.234);
9170   test_varargs_macros ();
9171
9172   // Check flexible array members.
9173   struct incomplete_array *ia =
9174     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9175   ia->datasize = 10;
9176   for (int i = 0; i < ia->datasize; ++i)
9177     ia->data[i] = i * 1.234;
9178
9179   // Check named initializers.
9180   struct named_init ni = {
9181     .number = 34,
9182     .name = L"Test wide string",
9183     .average = 543.34343,
9184   };
9185
9186   ni.number = 58;
9187
9188   int dynamic_array[ni.number];
9189   dynamic_array[ni.number - 1] = 543;
9190
9191   // work around unused variable warnings
9192   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9193           || dynamic_array[ni.number - 1] != 543);
9194
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
9200 do
9201   CC="$ac_save_CC $ac_arg"
9202   if ac_fn_c_try_compile "$LINENO"; then :
9203   ac_cv_prog_cc_c99=$ac_arg
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext
9206   test "x$ac_cv_prog_cc_c99" != "xno" && break
9207 done
9208 rm -f conftest.$ac_ext
9209 CC=$ac_save_CC
9210
9211 fi
9212 # AC_CACHE_VAL
9213 case "x$ac_cv_prog_cc_c99" in
9214   x)
9215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9216 $as_echo "none needed" >&6; } ;;
9217   xno)
9218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9219 $as_echo "unsupported" >&6; } ;;
9220   *)
9221     CC="$CC $ac_cv_prog_cc_c99"
9222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9223 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9224 esac
9225 if test "x$ac_cv_prog_cc_c99" != xno; then :
9226   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9227 else
9228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9230 if ${ac_cv_prog_cc_c89+:} false; then :
9231   $as_echo_n "(cached) " >&6
9232 else
9233   ac_cv_prog_cc_c89=no
9234 ac_save_CC=$CC
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h.  */
9237 #include <stdarg.h>
9238 #include <stdio.h>
9239 struct stat;
9240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9241 struct buf { int x; };
9242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9243 static char *e (p, i)
9244      char **p;
9245      int i;
9246 {
9247   return p[i];
9248 }
9249 static char *f (char * (*g) (char **, int), char **p, ...)
9250 {
9251   char *s;
9252   va_list v;
9253   va_start (v,p);
9254   s = g (p, va_arg (v,int));
9255   va_end (v);
9256   return s;
9257 }
9258
9259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
9260    function prototypes and stuff, but not '\xHH' hex character constants.
9261    These don't provoke an error unfortunately, instead are silently treated
9262    as 'x'.  The following induces an error, until -std is added to get
9263    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
9264    array size at least.  It's necessary to write '\x00'==0 to get something
9265    that's true only with -std.  */
9266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9267
9268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9269    inside strings and character constants.  */
9270 #define FOO(x) 'x'
9271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9272
9273 int test (int i, double x);
9274 struct s1 {int (*f) (int a);};
9275 struct s2 {int (*f) (double a);};
9276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9277 int argc;
9278 char **argv;
9279 int
9280 main ()
9281 {
9282 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9288         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9289 do
9290   CC="$ac_save_CC $ac_arg"
9291   if ac_fn_c_try_compile "$LINENO"; then :
9292   ac_cv_prog_cc_c89=$ac_arg
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext
9295   test "x$ac_cv_prog_cc_c89" != "xno" && break
9296 done
9297 rm -f conftest.$ac_ext
9298 CC=$ac_save_CC
9299
9300 fi
9301 # AC_CACHE_VAL
9302 case "x$ac_cv_prog_cc_c89" in
9303   x)
9304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9305 $as_echo "none needed" >&6; } ;;
9306   xno)
9307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9308 $as_echo "unsupported" >&6; } ;;
9309   *)
9310     CC="$CC $ac_cv_prog_cc_c89"
9311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9313 esac
9314 if test "x$ac_cv_prog_cc_c89" != xno; then :
9315   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9316 else
9317   ac_cv_prog_cc_stdc=no
9318 fi
9319
9320 fi
9321  ;;
9322 esac
9323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9324 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9325   if ${ac_cv_prog_cc_stdc+:} false; then :
9326   $as_echo_n "(cached) " >&6
9327 fi
9328
9329   case $ac_cv_prog_cc_stdc in #(
9330   no) :
9331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9332 $as_echo "unsupported" >&6; } ;; #(
9333   '') :
9334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9335 $as_echo "none needed" >&6; } ;; #(
9336   *) :
9337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9338 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9339 esac
9340
9341 ac_ext=c
9342 ac_cpp='$CPP $CPPFLAGS'
9343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9348 # On Suns, sometimes $CPP names a directory.
9349 if test -n "$CPP" && test -d "$CPP"; then
9350   CPP=
9351 fi
9352 if test -z "$CPP"; then
9353   if ${ac_cv_prog_CPP+:} false; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356       # Double quotes because CPP needs to be expanded
9357     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9358     do
9359       ac_preproc_ok=false
9360 for ac_c_preproc_warn_flag in '' yes
9361 do
9362   # Use a header file that comes with gcc, so configuring glibc
9363   # with a fresh cross-compiler works.
9364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365   # <limits.h> exists even on freestanding compilers.
9366   # On the NeXT, cc -E runs the code through the compiler's parser,
9367   # not just through cpp. "Syntax error" is here to catch this case.
9368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h.  */
9370 #ifdef __STDC__
9371 # include <limits.h>
9372 #else
9373 # include <assert.h>
9374 #endif
9375                      Syntax error
9376 _ACEOF
9377 if ac_fn_c_try_cpp "$LINENO"; then :
9378
9379 else
9380   # Broken: fails on valid input.
9381 continue
9382 fi
9383 rm -f conftest.err conftest.i conftest.$ac_ext
9384
9385   # OK, works on sane cases.  Now check whether nonexistent headers
9386   # can be detected and how.
9387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h.  */
9389 #include <ac_nonexistent.h>
9390 _ACEOF
9391 if ac_fn_c_try_cpp "$LINENO"; then :
9392   # Broken: success on invalid input.
9393 continue
9394 else
9395   # Passes both tests.
9396 ac_preproc_ok=:
9397 break
9398 fi
9399 rm -f conftest.err conftest.i conftest.$ac_ext
9400
9401 done
9402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9403 rm -f conftest.i conftest.err conftest.$ac_ext
9404 if $ac_preproc_ok; then :
9405   break
9406 fi
9407
9408     done
9409     ac_cv_prog_CPP=$CPP
9410
9411 fi
9412   CPP=$ac_cv_prog_CPP
9413 else
9414   ac_cv_prog_CPP=$CPP
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9417 $as_echo "$CPP" >&6; }
9418 ac_preproc_ok=false
9419 for ac_c_preproc_warn_flag in '' yes
9420 do
9421   # Use a header file that comes with gcc, so configuring glibc
9422   # with a fresh cross-compiler works.
9423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424   # <limits.h> exists even on freestanding compilers.
9425   # On the NeXT, cc -E runs the code through the compiler's parser,
9426   # not just through cpp. "Syntax error" is here to catch this case.
9427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h.  */
9429 #ifdef __STDC__
9430 # include <limits.h>
9431 #else
9432 # include <assert.h>
9433 #endif
9434                      Syntax error
9435 _ACEOF
9436 if ac_fn_c_try_cpp "$LINENO"; then :
9437
9438 else
9439   # Broken: fails on valid input.
9440 continue
9441 fi
9442 rm -f conftest.err conftest.i conftest.$ac_ext
9443
9444   # OK, works on sane cases.  Now check whether nonexistent headers
9445   # can be detected and how.
9446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h.  */
9448 #include <ac_nonexistent.h>
9449 _ACEOF
9450 if ac_fn_c_try_cpp "$LINENO"; then :
9451   # Broken: success on invalid input.
9452 continue
9453 else
9454   # Passes both tests.
9455 ac_preproc_ok=:
9456 break
9457 fi
9458 rm -f conftest.err conftest.i conftest.$ac_ext
9459
9460 done
9461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9462 rm -f conftest.i conftest.err conftest.$ac_ext
9463 if $ac_preproc_ok; then :
9464
9465 else
9466   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9468 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9469 See \`config.log' for more details" "$LINENO" 5; }
9470 fi
9471
9472 ac_ext=c
9473 ac_cpp='$CPP $CPPFLAGS'
9474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9477
9478
9479
9480 # The C compiler on the build system, and associated tests.
9481
9482 if test -n "$CC_FOR_BUILD"; then
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9484 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9485 # remove anything that might look like compiler output to our "||" expression
9486 rm -f conftest* a.out b.out a.exe a_out.exe
9487 cat >conftest.c <<EOF
9488 int
9489 main ()
9490 {
9491   exit(0);
9492 }
9493 EOF
9494 gmp_compile="$CC_FOR_BUILD conftest.c"
9495 cc_for_build_works=no
9496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9497   (eval $gmp_compile) 2>&5
9498   ac_status=$?
9499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9500   test $ac_status = 0; }; then
9501   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9502     cc_for_build_works=yes
9503   fi
9504 fi
9505 rm -f conftest* a.out b.out a.exe a_out.exe
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9507 $as_echo "$cc_for_build_works" >&6; }
9508 if test "$cc_for_build_works" = yes; then
9509   :
9510 else
9511   as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9512 fi
9513
9514 elif test -n "$HOST_CC"; then
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9516 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9517 # remove anything that might look like compiler output to our "||" expression
9518 rm -f conftest* a.out b.out a.exe a_out.exe
9519 cat >conftest.c <<EOF
9520 int
9521 main ()
9522 {
9523   exit(0);
9524 }
9525 EOF
9526 gmp_compile="$HOST_CC conftest.c"
9527 cc_for_build_works=no
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9529   (eval $gmp_compile) 2>&5
9530   ac_status=$?
9531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532   test $ac_status = 0; }; then
9533   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9534     cc_for_build_works=yes
9535   fi
9536 fi
9537 rm -f conftest* a.out b.out a.exe a_out.exe
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9539 $as_echo "$cc_for_build_works" >&6; }
9540 if test "$cc_for_build_works" = yes; then
9541   CC_FOR_BUILD=$HOST_CC
9542 else
9543   as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9544 fi
9545
9546 else
9547   for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9549 $as_echo_n "checking build system compiler $i... " >&6; }
9550 # remove anything that might look like compiler output to our "||" expression
9551 rm -f conftest* a.out b.out a.exe a_out.exe
9552 cat >conftest.c <<EOF
9553 int
9554 main ()
9555 {
9556   exit(0);
9557 }
9558 EOF
9559 gmp_compile="$i conftest.c"
9560 cc_for_build_works=no
9561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9562   (eval $gmp_compile) 2>&5
9563   ac_status=$?
9564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9565   test $ac_status = 0; }; then
9566   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9567     cc_for_build_works=yes
9568   fi
9569 fi
9570 rm -f conftest* a.out b.out a.exe a_out.exe
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9572 $as_echo "$cc_for_build_works" >&6; }
9573 if test "$cc_for_build_works" = yes; then
9574   CC_FOR_BUILD=$i
9575        break
9576 else
9577   :
9578 fi
9579
9580   done
9581   if test -z "$CC_FOR_BUILD"; then
9582     as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
9583   fi
9584 fi
9585
9586
9587
9588
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9591 $as_echo_n "checking for build system preprocessor... " >&6; }
9592 if test -z "$CPP_FOR_BUILD"; then
9593   if ${gmp_cv_prog_cpp_for_build+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   cat >conftest.c <<EOF
9597 #define FOO BAR
9598 EOF
9599   for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9600     gmp_compile="$i conftest.c"
9601     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9602   (eval $gmp_compile) 2>&5
9603   ac_status=$?
9604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605   test $ac_status = 0; } >&5 2>&1; then
9606       gmp_cv_prog_cpp_for_build=$i
9607       break
9608     fi
9609   done
9610   rm -f conftest* a.out b.out a.exe a_out.exe
9611   if test -z "$gmp_cv_prog_cpp_for_build"; then
9612     as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
9613   fi
9614
9615 fi
9616
9617   CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9620 $as_echo "$CPP_FOR_BUILD" >&6; }
9621
9622
9623
9624
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9627 $as_echo_n "checking for build system executable suffix... " >&6; }
9628 if ${gmp_cv_prog_exeext_for_build+:} false; then :
9629   $as_echo_n "(cached) " >&6
9630 else
9631   cat >conftest.c <<EOF
9632 int
9633 main ()
9634 {
9635   exit (0);
9636 }
9637 EOF
9638 for i in .exe ,ff8 ""; do
9639   gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9641   (eval $gmp_compile) 2>&5
9642   ac_status=$?
9643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644   test $ac_status = 0; }; then
9645     if (./conftest) 2>&5; then
9646       gmp_cv_prog_exeext_for_build=$i
9647       break
9648     fi
9649   fi
9650 done
9651 rm -f conftest*
9652 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9653   as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
9654 fi
9655
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9658 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9659 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9660
9661
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9664 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9665 if ${gmp_cv_c_for_build_ansi+:} false; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   cat >conftest.c <<EOF
9669 int
9670 main (int argc, char **argv)
9671 {
9672   exit(0);
9673 }
9674 EOF
9675 gmp_compile="$CC_FOR_BUILD conftest.c"
9676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9677   (eval $gmp_compile) 2>&5
9678   ac_status=$?
9679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9680   test $ac_status = 0; }; then
9681   gmp_cv_c_for_build_ansi=yes
9682 else
9683   gmp_cv_c_for_build_ansi=no
9684 fi
9685 rm -f conftest* a.out b.out a.exe a_out.exe
9686
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9689 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9690 if test "$gmp_cv_c_for_build_ansi" = yes; then
9691   U_FOR_BUILD=
9692 else
9693   U_FOR_BUILD=_
9694
9695 fi
9696
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9699 $as_echo_n "checking for build system compiler math library... " >&6; }
9700 if ${gmp_cv_check_libm_for_build+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   cat >conftest.c <<EOF
9704 int
9705 main ()
9706 {
9707   exit(0);
9708 }
9709 double d;
9710 double
9711 foo ()
9712 {
9713   return log (d);
9714 }
9715 EOF
9716 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9718   (eval $gmp_compile) 2>&5
9719   ac_status=$?
9720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9721   test $ac_status = 0; }; then
9722   gmp_cv_check_libm_for_build=-lm
9723 else
9724   gmp_cv_check_libm_for_build=no
9725 fi
9726 rm -f conftest* a.out b.out a.exe a_out.exe
9727
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9730 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9731 case $gmp_cv_check_libm_for_build in
9732   yes) LIBM_FOR_BUILD=-lm
9733  ;;
9734   no)  LIBM_FOR_BUILD= ;;
9735   *)   LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9736 esac
9737
9738
9739
9740 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9741 # Using the compiler is a lot easier than figuring out how to invoke the
9742 # assembler directly.
9743 #
9744 test -n "$CCAS" || CCAS="$CC -c"
9745
9746
9747
9748 # The C++ compiler, if desired.
9749 want_cxx=no
9750 if test $enable_cxx != no; then
9751   test_CXXFLAGS=${CXXFLAGS+set}
9752   ac_ext=cpp
9753 ac_cpp='$CXXCPP $CPPFLAGS'
9754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9757 if test -z "$CXX"; then
9758   if test -n "$CCC"; then
9759     CXX=$CCC
9760   else
9761     if test -n "$ac_tool_prefix"; then
9762   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9763   do
9764     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if ${ac_cv_prog_CXX+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   if test -n "$CXX"; then
9772   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9773 else
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in $PATH
9776 do
9777   IFS=$as_save_IFS
9778   test -z "$as_dir" && as_dir=.
9779     for ac_exec_ext in '' $ac_executable_extensions; do
9780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783     break 2
9784   fi
9785 done
9786   done
9787 IFS=$as_save_IFS
9788
9789 fi
9790 fi
9791 CXX=$ac_cv_prog_CXX
9792 if test -n "$CXX"; then
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9794 $as_echo "$CXX" >&6; }
9795 else
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9799
9800
9801     test -n "$CXX" && break
9802   done
9803 fi
9804 if test -z "$CXX"; then
9805   ac_ct_CXX=$CXX
9806   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9807 do
9808   # Extract the first word of "$ac_prog", so it can be a program name with args.
9809 set dummy $ac_prog; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9813   $as_echo_n "(cached) " >&6
9814 else
9815   if test -n "$ac_ct_CXX"; then
9816   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9817 else
9818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 for as_dir in $PATH
9820 do
9821   IFS=$as_save_IFS
9822   test -z "$as_dir" && as_dir=.
9823     for ac_exec_ext in '' $ac_executable_extensions; do
9824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9825     ac_cv_prog_ac_ct_CXX="$ac_prog"
9826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827     break 2
9828   fi
9829 done
9830   done
9831 IFS=$as_save_IFS
9832
9833 fi
9834 fi
9835 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9836 if test -n "$ac_ct_CXX"; then
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9838 $as_echo "$ac_ct_CXX" >&6; }
9839 else
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9842 fi
9843
9844
9845   test -n "$ac_ct_CXX" && break
9846 done
9847
9848   if test "x$ac_ct_CXX" = x; then
9849     CXX="g++"
9850   else
9851     case $cross_compiling:$ac_tool_warned in
9852 yes:)
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9855 ac_tool_warned=yes ;;
9856 esac
9857     CXX=$ac_ct_CXX
9858   fi
9859 fi
9860
9861   fi
9862 fi
9863 # Provide some information about the compiler.
9864 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9865 set X $ac_compile
9866 ac_compiler=$2
9867 for ac_option in --version -v -V -qversion; do
9868   { { ac_try="$ac_compiler $ac_option >&5"
9869 case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9874 $as_echo "$ac_try_echo"; } >&5
9875   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9876   ac_status=$?
9877   if test -s conftest.err; then
9878     sed '10a\
9879 ... rest of stderr output deleted ...
9880          10q' conftest.err >conftest.er1
9881     cat conftest.er1 >&5
9882   fi
9883   rm -f conftest.er1 conftest.err
9884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885   test $ac_status = 0; }
9886 done
9887
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9889 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9890 if ${ac_cv_cxx_compiler_gnu+:} false; then :
9891   $as_echo_n "(cached) " >&6
9892 else
9893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h.  */
9895
9896 int
9897 main ()
9898 {
9899 #ifndef __GNUC__
9900        choke me
9901 #endif
9902
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 if ac_fn_cxx_try_compile "$LINENO"; then :
9908   ac_compiler_gnu=yes
9909 else
9910   ac_compiler_gnu=no
9911 fi
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9914
9915 fi
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9917 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9918 if test $ac_compiler_gnu = yes; then
9919   GXX=yes
9920 else
9921   GXX=
9922 fi
9923 ac_test_CXXFLAGS=${CXXFLAGS+set}
9924 ac_save_CXXFLAGS=$CXXFLAGS
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9926 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9927 if ${ac_cv_prog_cxx_g+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9931    ac_cxx_werror_flag=yes
9932    ac_cv_prog_cxx_g=no
9933    CXXFLAGS="-g"
9934    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h.  */
9936
9937 int
9938 main ()
9939 {
9940
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_cxx_try_compile "$LINENO"; then :
9946   ac_cv_prog_cxx_g=yes
9947 else
9948   CXXFLAGS=""
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
9962 else
9963   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9964          CXXFLAGS="-g"
9965          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h.  */
9967
9968 int
9969 main ()
9970 {
9971
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_cxx_try_compile "$LINENO"; then :
9977   ac_cv_prog_cxx_g=yes
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9985 fi
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9987 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9988 if test "$ac_test_CXXFLAGS" = set; then
9989   CXXFLAGS=$ac_save_CXXFLAGS
9990 elif test $ac_cv_prog_cxx_g = yes; then
9991   if test "$GXX" = yes; then
9992     CXXFLAGS="-g -O2"
9993   else
9994     CXXFLAGS="-g"
9995   fi
9996 else
9997   if test "$GXX" = yes; then
9998     CXXFLAGS="-O2"
9999   else
10000     CXXFLAGS=
10001   fi
10002 fi
10003 ac_ext=c
10004 ac_cpp='$CPP $CPPFLAGS'
10005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10008
10009
10010   echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
10011   cxxflags_ac_prog_cxx=$CXXFLAGS
10012   cxxflags_list=ac_prog_cxx
10013
10014   # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
10015   # if AC_PROG_CXX thinks that doesn't work.  $CFLAGS stands a good chance
10016   # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10017   #
10018   if test "$test_CXXFLAGS" != set; then
10019     cxxflags_cflags=$CFLAGS
10020     cxxflags_list="cflags $cxxflags_list"
10021     if test "$ac_prog_cxx_g" = no; then
10022       cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10023     fi
10024   fi
10025
10026   # See if the C++ compiler works.  If the user specified CXXFLAGS then all
10027   # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10028   # give a fatal error, just leaves CXX set to a default g++.  If on the
10029   # other hand the user didn't specify CXXFLAGS then we get to try here our
10030   # $cxxflags_list alternatives.
10031   #
10032   # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10033   #
10034   for cxxflags_choice in $cxxflags_list; do
10035     eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10037 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10038 gmp_prog_cxx_works=yes
10039
10040 # start with a plain "main()", then go on to further checks
10041 if test "$gmp_prog_cxx_works" = yes; then
10042   # remove anything that might look like compiler output to our "||" expression
10043   rm -f conftest* a.out b.out a.exe a_out.exe
10044   cat >conftest.cc <<EOF
10045
10046 int main (void) { return 0; }
10047 EOF
10048   echo "Test compile: " >&5
10049   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10051   (eval $gmp_cxxcompile) 2>&5
10052   ac_status=$?
10053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054   test $ac_status = 0; }; then
10055     if test "$cross_compiling" = no; then
10056       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10057   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061   test $ac_status = 0; }; }; then :;
10062       else
10063         gmp_prog_cxx_works="no, program does not run"
10064       fi
10065     fi
10066   else
10067     gmp_prog_cxx_works="no"
10068   fi
10069   case $gmp_prog_cxx_works in
10070     no*)
10071       echo "failed program was:" >&5
10072       cat conftest.cc >&5
10073       ;;
10074   esac
10075   rm -f conftest* a.out b.out a.exe a_out.exe
10076 fi
10077
10078
10079 if test "$gmp_prog_cxx_works" = yes; then
10080   # remove anything that might look like compiler output to our "||" expression
10081   rm -f conftest* a.out b.out a.exe a_out.exe
10082   cat >conftest.cc <<EOF
10083 namespace foo { }
10084 using namespace foo;
10085
10086 int main (void) { return 0; }
10087 EOF
10088   echo "Test compile: namespace" >&5
10089   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10090   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10091   (eval $gmp_cxxcompile) 2>&5
10092   ac_status=$?
10093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10094   test $ac_status = 0; }; then
10095     if test "$cross_compiling" = no; then
10096       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10097   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101   test $ac_status = 0; }; }; then :;
10102       else
10103         gmp_prog_cxx_works="no, namespace, program does not run"
10104       fi
10105     fi
10106   else
10107     gmp_prog_cxx_works="no, namespace"
10108   fi
10109   case $gmp_prog_cxx_works in
10110     no*)
10111       echo "failed program was:" >&5
10112       cat conftest.cc >&5
10113       ;;
10114   esac
10115   rm -f conftest* a.out b.out a.exe a_out.exe
10116 fi
10117
10118
10119 # GMP requires the standard C++ iostream classes
10120 if test "$gmp_prog_cxx_works" = yes; then
10121   # remove anything that might look like compiler output to our "||" expression
10122   rm -f conftest* a.out b.out a.exe a_out.exe
10123   cat >conftest.cc <<EOF
10124 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10125     pre-standard iostream.h. */
10126 #include <iostream>
10127
10128 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10129    mode, since that mode puts cout in the global namespace, not "std".  */
10130 void someoutput (void) { std::cout << 123; }
10131
10132 int main (void) { return 0; }
10133 EOF
10134   echo "Test compile: std iostream" >&5
10135   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10137   (eval $gmp_cxxcompile) 2>&5
10138   ac_status=$?
10139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140   test $ac_status = 0; }; then
10141     if test "$cross_compiling" = no; then
10142       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10143   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10147   test $ac_status = 0; }; }; then :;
10148       else
10149         gmp_prog_cxx_works="no, std iostream, program does not run"
10150       fi
10151     fi
10152   else
10153     gmp_prog_cxx_works="no, std iostream"
10154   fi
10155   case $gmp_prog_cxx_works in
10156     no*)
10157       echo "failed program was:" >&5
10158       cat conftest.cc >&5
10159       ;;
10160   esac
10161   rm -f conftest* a.out b.out a.exe a_out.exe
10162 fi
10163
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10166 $as_echo "$gmp_prog_cxx_works" >&6; }
10167 case $gmp_prog_cxx_works in
10168   yes)
10169     want_cxx=yes
10170       break
10171     ;;
10172   *)
10173
10174     ;;
10175 esac
10176
10177   done
10178
10179   # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10180   if test $want_cxx = no && test $enable_cxx = yes; then
10181     as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5
10182   fi
10183 fi
10184
10185  if test $want_cxx = yes; then
10186   WANT_CXX_TRUE=
10187   WANT_CXX_FALSE='#'
10188 else
10189   WANT_CXX_TRUE='#'
10190   WANT_CXX_FALSE=
10191 fi
10192
10193
10194 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10195 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10196 # hence execute it unconditionally, and that will fail if there's no C++
10197 # compiler (and no generic /lib/cpp).
10198 #
10199 if test $want_cxx = yes; then
10200   ac_ext=cpp
10201 ac_cpp='$CXXCPP $CPPFLAGS'
10202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10206 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10207 if test -z "$CXXCPP"; then
10208   if ${ac_cv_prog_CXXCPP+:} false; then :
10209   $as_echo_n "(cached) " >&6
10210 else
10211       # Double quotes because CXXCPP needs to be expanded
10212     for CXXCPP in "$CXX -E" "/lib/cpp"
10213     do
10214       ac_preproc_ok=false
10215 for ac_cxx_preproc_warn_flag in '' yes
10216 do
10217   # Use a header file that comes with gcc, so configuring glibc
10218   # with a fresh cross-compiler works.
10219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10220   # <limits.h> exists even on freestanding compilers.
10221   # On the NeXT, cc -E runs the code through the compiler's parser,
10222   # not just through cpp. "Syntax error" is here to catch this case.
10223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h.  */
10225 #ifdef __STDC__
10226 # include <limits.h>
10227 #else
10228 # include <assert.h>
10229 #endif
10230                      Syntax error
10231 _ACEOF
10232 if ac_fn_cxx_try_cpp "$LINENO"; then :
10233
10234 else
10235   # Broken: fails on valid input.
10236 continue
10237 fi
10238 rm -f conftest.err conftest.i conftest.$ac_ext
10239
10240   # OK, works on sane cases.  Now check whether nonexistent headers
10241   # can be detected and how.
10242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h.  */
10244 #include <ac_nonexistent.h>
10245 _ACEOF
10246 if ac_fn_cxx_try_cpp "$LINENO"; then :
10247   # Broken: success on invalid input.
10248 continue
10249 else
10250   # Passes both tests.
10251 ac_preproc_ok=:
10252 break
10253 fi
10254 rm -f conftest.err conftest.i conftest.$ac_ext
10255
10256 done
10257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10258 rm -f conftest.i conftest.err conftest.$ac_ext
10259 if $ac_preproc_ok; then :
10260   break
10261 fi
10262
10263     done
10264     ac_cv_prog_CXXCPP=$CXXCPP
10265
10266 fi
10267   CXXCPP=$ac_cv_prog_CXXCPP
10268 else
10269   ac_cv_prog_CXXCPP=$CXXCPP
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10272 $as_echo "$CXXCPP" >&6; }
10273 ac_preproc_ok=false
10274 for ac_cxx_preproc_warn_flag in '' yes
10275 do
10276   # Use a header file that comes with gcc, so configuring glibc
10277   # with a fresh cross-compiler works.
10278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10279   # <limits.h> exists even on freestanding compilers.
10280   # On the NeXT, cc -E runs the code through the compiler's parser,
10281   # not just through cpp. "Syntax error" is here to catch this case.
10282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h.  */
10284 #ifdef __STDC__
10285 # include <limits.h>
10286 #else
10287 # include <assert.h>
10288 #endif
10289                      Syntax error
10290 _ACEOF
10291 if ac_fn_cxx_try_cpp "$LINENO"; then :
10292
10293 else
10294   # Broken: fails on valid input.
10295 continue
10296 fi
10297 rm -f conftest.err conftest.i conftest.$ac_ext
10298
10299   # OK, works on sane cases.  Now check whether nonexistent headers
10300   # can be detected and how.
10301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h.  */
10303 #include <ac_nonexistent.h>
10304 _ACEOF
10305 if ac_fn_cxx_try_cpp "$LINENO"; then :
10306   # Broken: success on invalid input.
10307 continue
10308 else
10309   # Passes both tests.
10310 ac_preproc_ok=:
10311 break
10312 fi
10313 rm -f conftest.err conftest.i conftest.$ac_ext
10314
10315 done
10316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10317 rm -f conftest.i conftest.err conftest.$ac_ext
10318 if $ac_preproc_ok; then :
10319
10320 else
10321   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10323 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10324 See \`config.log' for more details" "$LINENO" 5; }
10325 fi
10326
10327 ac_ext=c
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332
10333 fi
10334
10335
10336 # Path setups for Cray, according to IEEE or CFP.  These must come after
10337 # deciding the compiler.
10338 #
10339
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10342 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10343 if ${ac_cv_path_GREP+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   if test -z "$GREP"; then
10347   ac_path_GREP_found=false
10348   # Loop through the user's path and test for each of PROGNAME-LIST
10349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10351 do
10352   IFS=$as_save_IFS
10353   test -z "$as_dir" && as_dir=.
10354     for ac_prog in grep ggrep; do
10355     for ac_exec_ext in '' $ac_executable_extensions; do
10356       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10357       as_fn_executable_p "$ac_path_GREP" || continue
10358 # Check for GNU ac_path_GREP and select it if it is found.
10359   # Check for GNU $ac_path_GREP
10360 case `"$ac_path_GREP" --version 2>&1` in
10361 *GNU*)
10362   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10363 *)
10364   ac_count=0
10365   $as_echo_n 0123456789 >"conftest.in"
10366   while :
10367   do
10368     cat "conftest.in" "conftest.in" >"conftest.tmp"
10369     mv "conftest.tmp" "conftest.in"
10370     cp "conftest.in" "conftest.nl"
10371     $as_echo 'GREP' >> "conftest.nl"
10372     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10373     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10374     as_fn_arith $ac_count + 1 && ac_count=$as_val
10375     if test $ac_count -gt ${ac_path_GREP_max-0}; then
10376       # Best one so far, save it but keep looking for a better one
10377       ac_cv_path_GREP="$ac_path_GREP"
10378       ac_path_GREP_max=$ac_count
10379     fi
10380     # 10*(2^10) chars as input seems more than enough
10381     test $ac_count -gt 10 && break
10382   done
10383   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10384 esac
10385
10386       $ac_path_GREP_found && break 3
10387     done
10388   done
10389   done
10390 IFS=$as_save_IFS
10391   if test -z "$ac_cv_path_GREP"; then
10392     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10393   fi
10394 else
10395   ac_cv_path_GREP=$GREP
10396 fi
10397
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10400 $as_echo "$ac_cv_path_GREP" >&6; }
10401  GREP="$ac_cv_path_GREP"
10402
10403
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10405 $as_echo_n "checking for egrep... " >&6; }
10406 if ${ac_cv_path_EGREP+:} false; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10410    then ac_cv_path_EGREP="$GREP -E"
10411    else
10412      if test -z "$EGREP"; then
10413   ac_path_EGREP_found=false
10414   # Loop through the user's path and test for each of PROGNAME-LIST
10415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10417 do
10418   IFS=$as_save_IFS
10419   test -z "$as_dir" && as_dir=.
10420     for ac_prog in egrep; do
10421     for ac_exec_ext in '' $ac_executable_extensions; do
10422       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10423       as_fn_executable_p "$ac_path_EGREP" || continue
10424 # Check for GNU ac_path_EGREP and select it if it is found.
10425   # Check for GNU $ac_path_EGREP
10426 case `"$ac_path_EGREP" --version 2>&1` in
10427 *GNU*)
10428   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10429 *)
10430   ac_count=0
10431   $as_echo_n 0123456789 >"conftest.in"
10432   while :
10433   do
10434     cat "conftest.in" "conftest.in" >"conftest.tmp"
10435     mv "conftest.tmp" "conftest.in"
10436     cp "conftest.in" "conftest.nl"
10437     $as_echo 'EGREP' >> "conftest.nl"
10438     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10440     as_fn_arith $ac_count + 1 && ac_count=$as_val
10441     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10442       # Best one so far, save it but keep looking for a better one
10443       ac_cv_path_EGREP="$ac_path_EGREP"
10444       ac_path_EGREP_max=$ac_count
10445     fi
10446     # 10*(2^10) chars as input seems more than enough
10447     test $ac_count -gt 10 && break
10448   done
10449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10450 esac
10451
10452       $ac_path_EGREP_found && break 3
10453     done
10454   done
10455   done
10456 IFS=$as_save_IFS
10457   if test -z "$ac_cv_path_EGREP"; then
10458     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10459   fi
10460 else
10461   ac_cv_path_EGREP=$EGREP
10462 fi
10463
10464    fi
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10467 $as_echo "$ac_cv_path_EGREP" >&6; }
10468  EGREP="$ac_cv_path_EGREP"
10469
10470
10471 case $host_cpu in
10472   c90 | t90)
10473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h.  */
10475 #ifdef _CRAYIEEE
10476 yes
10477 #endif
10478 _ACEOF
10479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10480   $EGREP "yes" >/dev/null 2>&1; then :
10481   add_path="cray/ieee"
10482 else
10483   add_path="cray/cfp"; extra_functions="mulwwc90"
10484 fi
10485 rm -f conftest*
10486
10487     ;;
10488   j90 | sv1)
10489     add_path="cray/cfp"; extra_functions="mulwwj90"
10490     ;;
10491 esac
10492
10493
10494
10495 if test -z "$MPN_PATH"; then
10496   path="$add_path $path"
10497 fi
10498
10499 # For a nail build, also look in "nails" subdirectories.
10500 #
10501 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10502   new_path=
10503   for i in $path; do
10504     case $i in
10505     generic) new_path="$new_path $i" ;;
10506     *)       new_path="$new_path $i/nails $i" ;;
10507     esac
10508   done
10509   path=$new_path
10510 fi
10511
10512
10513 # Put all directories into CPUVEC_list so as to get a full set of
10514 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10515 # empty because mmx and/or sse2 had to be dropped.
10516 #
10517 for i in $fat_path; do
10518   tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10519   CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10520 done
10521
10522
10523 # If there's any sse2 or mmx in the path, check whether the assembler
10524 # supports it, and remove if not.
10525 #
10526 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10527 # enough assembler.
10528 #
10529 case $host in
10530   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
10531     if test "$ABI" = 32; then
10532       case "$path $fat_path" in
10533         *mmx*)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10534 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10535 if ${gmp_cv_asm_x86_mmx+:} false; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   cat >conftest.s <<EOF
10539         .text
10540         movq    %mm0, %mm1
10541 EOF
10542 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10544   (eval $gmp_assemble) 2>&5
10545   ac_status=$?
10546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547   test $ac_status = 0; }; then
10548   cat conftest.out >&5
10549   gmp_cv_asm_x86_mmx=yes
10550 case $host in
10551 *-*-solaris*)
10552   if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10553     if grep "0f 6f c1" conftest.out >/dev/null; then
10554       gmp_cv_asm_x86_mmx=movq-bug
10555     fi
10556   else
10557     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10558 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10559   fi
10560 esac
10561 else
10562   cat conftest.out >&5
10563   echo "configure: failed program was:" >&5
10564   cat conftest.s >&5
10565   gmp_cv_asm_x86_mmx=no
10566 fi
10567 rm -f conftest*
10568
10569 fi
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10571 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10572
10573 case $gmp_cv_asm_x86_mmx in
10574 movq-bug)
10575   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10576 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10578 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10580 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
10582 $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10584 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10585   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10586 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10588 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10590 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10592 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10593   ;;
10594 no)
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10596 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10598 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10600 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
10602 $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10604 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10606 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10607   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10608 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10609   ;;
10610 esac
10611 if test "$gmp_cv_asm_x86_mmx" = yes; then
10612   :
10613 else
10614   tmp_path=
10615 for i in $path; do
10616   case $i in
10617     */*mmx*) ;;
10618     *) tmp_path="$tmp_path $i" ;;
10619   esac
10620 done
10621 path="$tmp_path"
10622
10623 tmp_path=
10624 for i in $fat_path; do
10625   case $i in
10626     */*mmx*) ;;
10627     *) tmp_path="$tmp_path $i" ;;
10628   esac
10629 done
10630 fat_path="$tmp_path"
10631
10632
10633 fi
10634  ;;
10635       esac
10636       case "$path $fat_path" in
10637         *sse2*)  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10638 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10639 if ${gmp_cv_asm_x86_sse2+:} false; then :
10640   $as_echo_n "(cached) " >&6
10641 else
10642   cat >conftest.s <<EOF
10643         .text
10644         paddq   %mm0, %mm1
10645 EOF
10646 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10648   (eval $gmp_assemble) 2>&5
10649   ac_status=$?
10650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10651   test $ac_status = 0; }; then
10652   cat conftest.out >&5
10653   gmp_cv_asm_x86_sse2=yes
10654 else
10655   cat conftest.out >&5
10656   echo "configure: failed program was:" >&5
10657   cat conftest.s >&5
10658   gmp_cv_asm_x86_sse2=no
10659 fi
10660 rm -f conftest*
10661
10662
10663 fi
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10665 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10666 case $gmp_cv_asm_x86_sse2 in
10667 yes)
10668   :
10669   ;;
10670 *)
10671   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10672 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10674 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10676 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
10678 $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10680 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10682 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10684 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10685   tmp_path=
10686 for i in $path; do
10687   case $i in
10688     */sse2) ;;
10689     *) tmp_path="$tmp_path $i" ;;
10690   esac
10691 done
10692 path="$tmp_path"
10693
10694 tmp_path=
10695 for i in $fat_path; do
10696   case $i in
10697     */sse2) ;;
10698     *) tmp_path="$tmp_path $i" ;;
10699   esac
10700 done
10701 fat_path="$tmp_path"
10702
10703
10704   ;;
10705 esac
10706  ;;
10707       esac
10708     fi
10709     ;;
10710 esac
10711
10712
10713 if test "$enable_assembly" = "no"; then
10714   path="generic"
10715   CFLAGS="$CFLAGS -DNO_ASM"
10716 #  for abi in $abilist; do
10717 #    eval unset "path_\$abi"
10718 #    eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
10719 #  done
10720 fi
10721
10722
10723 cat >&5 <<EOF
10724 Decided:
10725 ABI=$ABI
10726 CC=$CC
10727 CFLAGS=$CFLAGS
10728 CPPFLAGS=$CPPFLAGS
10729 GMP_LDFLAGS=$GMP_LDFLAGS
10730 CXX=$CXX
10731 CXXFLAGS=$CXXFLAGS
10732 path=$path
10733 EOF
10734 echo "using ABI=\"$ABI\""
10735 echo "      CC=\"$CC\""
10736 echo "      CFLAGS=\"$CFLAGS\""
10737 echo "      CPPFLAGS=\"$CPPFLAGS\""
10738 if test $want_cxx = yes; then
10739   echo "      CXX=\"$CXX\""
10740   echo "      CXXFLAGS=\"$CXXFLAGS\""
10741 fi
10742 echo "      MPN_PATH=\"$path\""
10743
10744
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10747 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10748 if ${cl_cv_as_noexecstack+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751     cat > conftest.c <<EOF
10752 void foo() {}
10753 EOF
10754   if { ac_try='${CC} $CFLAGS $CPPFLAGS
10755                      -S -o conftest.s conftest.c >/dev/null'
10756   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10760   test $ac_status = 0; }; } \
10761      && grep .note.GNU-stack conftest.s >/dev/null \
10762      && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10763                        -c -o conftest.o conftest.s >/dev/null'
10764   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10765   (eval $ac_try) 2>&5
10766   ac_status=$?
10767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768   test $ac_status = 0; }; }
10769   then
10770     cl_cv_as_noexecstack=yes
10771   else
10772     cl_cv_as_noexecstack=no
10773   fi
10774   rm -f conftest*
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10777 $as_echo "$cl_cv_as_noexecstack" >&6; }
10778   if test "$cl_cv_as_noexecstack" = yes; then
10779     ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10780   fi
10781
10782
10783
10784
10785 gmp_user_AR=$AR
10786 if test -n "$ac_tool_prefix"; then
10787   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10788 set dummy ${ac_tool_prefix}ar; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_prog_AR+:} false; then :
10792   $as_echo_n "(cached) " >&6
10793 else
10794   if test -n "$AR"; then
10795   ac_cv_prog_AR="$AR" # Let the user override the test.
10796 else
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10799 do
10800   IFS=$as_save_IFS
10801   test -z "$as_dir" && as_dir=.
10802     for ac_exec_ext in '' $ac_executable_extensions; do
10803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804     ac_cv_prog_AR="${ac_tool_prefix}ar"
10805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806     break 2
10807   fi
10808 done
10809   done
10810 IFS=$as_save_IFS
10811
10812 fi
10813 fi
10814 AR=$ac_cv_prog_AR
10815 if test -n "$AR"; then
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10817 $as_echo "$AR" >&6; }
10818 else
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821 fi
10822
10823
10824 fi
10825 if test -z "$ac_cv_prog_AR"; then
10826   ac_ct_AR=$AR
10827   # Extract the first word of "ar", so it can be a program name with args.
10828 set dummy ar; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10832   $as_echo_n "(cached) " >&6
10833 else
10834   if test -n "$ac_ct_AR"; then
10835   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10836 else
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10839 do
10840   IFS=$as_save_IFS
10841   test -z "$as_dir" && as_dir=.
10842     for ac_exec_ext in '' $ac_executable_extensions; do
10843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844     ac_cv_prog_ac_ct_AR="ar"
10845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846     break 2
10847   fi
10848 done
10849   done
10850 IFS=$as_save_IFS
10851
10852 fi
10853 fi
10854 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10855 if test -n "$ac_ct_AR"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10857 $as_echo "$ac_ct_AR" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862
10863   if test "x$ac_ct_AR" = x; then
10864     AR="ar"
10865   else
10866     case $cross_compiling:$ac_tool_warned in
10867 yes:)
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10870 ac_tool_warned=yes ;;
10871 esac
10872     AR=$ac_ct_AR
10873   fi
10874 else
10875   AR="$ac_cv_prog_AR"
10876 fi
10877
10878 if test -z "$gmp_user_AR"; then
10879                         eval arflags=\"\$ar${abi1}_flags\"
10880   test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
10881   if test -n "$arflags"; then
10882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
10883 $as_echo_n "checking for extra ar flags... " >&6; }
10884     AR="$AR $arflags"
10885     ac_cv_prog_AR="$AR $arflags"
10886     ac_cv_prog_ac_ct_AR="$AR $arflags"
10887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
10888 $as_echo "$arflags" >&6; }
10889   fi
10890 fi
10891 if test -z "$AR_FLAGS"; then
10892   AR_FLAGS=cq
10893 fi
10894
10895
10896 gmp_user_NM=$NM
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10898 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10899 if ${lt_cv_path_NM+:} false; then :
10900   $as_echo_n "(cached) " >&6
10901 else
10902   if test -n "$NM"; then
10903   # Let the user override the test.
10904   lt_cv_path_NM="$NM"
10905 else
10906   lt_nm_to_check="${ac_tool_prefix}nm"
10907   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10908     lt_nm_to_check="$lt_nm_to_check nm"
10909   fi
10910   for lt_tmp_nm in $lt_nm_to_check; do
10911     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10912     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10913       IFS="$lt_save_ifs"
10914       test -z "$ac_dir" && ac_dir=.
10915       tmp_nm="$ac_dir/$lt_tmp_nm"
10916       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10917         # Check to see if the nm accepts a BSD-compat flag.
10918         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10919         #   nm: unknown option "B" ignored
10920         # Tru64's nm complains that /dev/null is an invalid object file
10921         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10922         */dev/null* | *'Invalid file or object type'*)
10923           lt_cv_path_NM="$tmp_nm -B"
10924           break
10925           ;;
10926         *)
10927           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10928           */dev/null*)
10929             lt_cv_path_NM="$tmp_nm -p"
10930             break
10931             ;;
10932           *)
10933             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10934             continue # so that we can try to find one that supports BSD flags
10935             ;;
10936           esac
10937           ;;
10938         esac
10939       fi
10940     done
10941     IFS="$lt_save_ifs"
10942   done
10943   : ${lt_cv_path_NM=no}
10944 fi
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10947 $as_echo "$lt_cv_path_NM" >&6; }
10948 if test "$lt_cv_path_NM" != "no"; then
10949   NM="$lt_cv_path_NM"
10950 else
10951   # Didn't find any BSD compatible name lister, look for dumpbin.
10952   if test -n "$DUMPBIN"; then :
10953     # Let the user override the test.
10954   else
10955     if test -n "$ac_tool_prefix"; then
10956   for ac_prog in dumpbin "link -dump"
10957   do
10958     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_prog_DUMPBIN+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   if test -n "$DUMPBIN"; then
10966   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971   IFS=$as_save_IFS
10972   test -z "$as_dir" && as_dir=.
10973     for ac_exec_ext in '' $ac_executable_extensions; do
10974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977     break 2
10978   fi
10979 done
10980   done
10981 IFS=$as_save_IFS
10982
10983 fi
10984 fi
10985 DUMPBIN=$ac_cv_prog_DUMPBIN
10986 if test -n "$DUMPBIN"; then
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10988 $as_echo "$DUMPBIN" >&6; }
10989 else
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993
10994
10995     test -n "$DUMPBIN" && break
10996   done
10997 fi
10998 if test -z "$DUMPBIN"; then
10999   ac_ct_DUMPBIN=$DUMPBIN
11000   for ac_prog in dumpbin "link -dump"
11001 do
11002   # Extract the first word of "$ac_prog", so it can be a program name with args.
11003 set dummy $ac_prog; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   if test -n "$ac_ct_DUMPBIN"; then
11010   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015   IFS=$as_save_IFS
11016   test -z "$as_dir" && as_dir=.
11017     for ac_exec_ext in '' $ac_executable_extensions; do
11018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11019     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021     break 2
11022   fi
11023 done
11024   done
11025 IFS=$as_save_IFS
11026
11027 fi
11028 fi
11029 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11030 if test -n "$ac_ct_DUMPBIN"; then
11031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11032 $as_echo "$ac_ct_DUMPBIN" >&6; }
11033 else
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036 fi
11037
11038
11039   test -n "$ac_ct_DUMPBIN" && break
11040 done
11041
11042   if test "x$ac_ct_DUMPBIN" = x; then
11043     DUMPBIN=":"
11044   else
11045     case $cross_compiling:$ac_tool_warned in
11046 yes:)
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11049 ac_tool_warned=yes ;;
11050 esac
11051     DUMPBIN=$ac_ct_DUMPBIN
11052   fi
11053 fi
11054
11055     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11056     *COFF*)
11057       DUMPBIN="$DUMPBIN -symbols"
11058       ;;
11059     *)
11060       DUMPBIN=:
11061       ;;
11062     esac
11063   fi
11064
11065   if test "$DUMPBIN" != ":"; then
11066     NM="$DUMPBIN"
11067   fi
11068 fi
11069 test -z "$NM" && NM=nm
11070
11071
11072
11073
11074
11075
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11077 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11078 if ${lt_cv_nm_interface+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   lt_cv_nm_interface="BSD nm"
11082   echo "int some_variable = 0;" > conftest.$ac_ext
11083   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11084   (eval "$ac_compile" 2>conftest.err)
11085   cat conftest.err >&5
11086   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11087   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11088   cat conftest.err >&5
11089   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11090   cat conftest.out >&5
11091   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11092     lt_cv_nm_interface="MS dumpbin"
11093   fi
11094   rm -f conftest*
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11097 $as_echo "$lt_cv_nm_interface" >&6; }
11098
11099
11100 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11101 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found.  In this
11102 # case run it again to try the native "nm", firstly so that likely locations
11103 # are searched, secondly so that -B or -p are added if necessary for BSD
11104 # format.  This is necessary for instance on OSF with "./configure
11105 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11106 #
11107 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11108   $as_unset lt_cv_path_NM
11109   gmp_save_ac_tool_prefix=$ac_tool_prefix
11110   ac_tool_prefix=
11111   NM=
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11113 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11114 if ${lt_cv_path_NM+:} false; then :
11115   $as_echo_n "(cached) " >&6
11116 else
11117   if test -n "$NM"; then
11118   # Let the user override the test.
11119   lt_cv_path_NM="$NM"
11120 else
11121   lt_nm_to_check="${ac_tool_prefix}nm"
11122   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11123     lt_nm_to_check="$lt_nm_to_check nm"
11124   fi
11125   for lt_tmp_nm in $lt_nm_to_check; do
11126     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11127     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11128       IFS="$lt_save_ifs"
11129       test -z "$ac_dir" && ac_dir=.
11130       tmp_nm="$ac_dir/$lt_tmp_nm"
11131       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11132         # Check to see if the nm accepts a BSD-compat flag.
11133         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11134         #   nm: unknown option "B" ignored
11135         # Tru64's nm complains that /dev/null is an invalid object file
11136         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11137         */dev/null* | *'Invalid file or object type'*)
11138           lt_cv_path_NM="$tmp_nm -B"
11139           break
11140           ;;
11141         *)
11142           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11143           */dev/null*)
11144             lt_cv_path_NM="$tmp_nm -p"
11145             break
11146             ;;
11147           *)
11148             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11149             continue # so that we can try to find one that supports BSD flags
11150             ;;
11151           esac
11152           ;;
11153         esac
11154       fi
11155     done
11156     IFS="$lt_save_ifs"
11157   done
11158   : ${lt_cv_path_NM=no}
11159 fi
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11162 $as_echo "$lt_cv_path_NM" >&6; }
11163 if test "$lt_cv_path_NM" != "no"; then
11164   NM="$lt_cv_path_NM"
11165 else
11166   # Didn't find any BSD compatible name lister, look for dumpbin.
11167   if test -n "$DUMPBIN"; then :
11168     # Let the user override the test.
11169   else
11170     if test -n "$ac_tool_prefix"; then
11171   for ac_prog in dumpbin "link -dump"
11172   do
11173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 $as_echo_n "checking for $ac_word... " >&6; }
11177 if ${ac_cv_prog_DUMPBIN+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   if test -n "$DUMPBIN"; then
11181   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11182 else
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11185 do
11186   IFS=$as_save_IFS
11187   test -z "$as_dir" && as_dir=.
11188     for ac_exec_ext in '' $ac_executable_extensions; do
11189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192     break 2
11193   fi
11194 done
11195   done
11196 IFS=$as_save_IFS
11197
11198 fi
11199 fi
11200 DUMPBIN=$ac_cv_prog_DUMPBIN
11201 if test -n "$DUMPBIN"; then
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11203 $as_echo "$DUMPBIN" >&6; }
11204 else
11205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11207 fi
11208
11209
11210     test -n "$DUMPBIN" && break
11211   done
11212 fi
11213 if test -z "$DUMPBIN"; then
11214   ac_ct_DUMPBIN=$DUMPBIN
11215   for ac_prog in dumpbin "link -dump"
11216 do
11217   # Extract the first word of "$ac_prog", so it can be a program name with args.
11218 set dummy $ac_prog; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11222   $as_echo_n "(cached) " >&6
11223 else
11224   if test -n "$ac_ct_DUMPBIN"; then
11225   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230   IFS=$as_save_IFS
11231   test -z "$as_dir" && as_dir=.
11232     for ac_exec_ext in '' $ac_executable_extensions; do
11233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236     break 2
11237   fi
11238 done
11239   done
11240 IFS=$as_save_IFS
11241
11242 fi
11243 fi
11244 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11245 if test -n "$ac_ct_DUMPBIN"; then
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11247 $as_echo "$ac_ct_DUMPBIN" >&6; }
11248 else
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 fi
11252
11253
11254   test -n "$ac_ct_DUMPBIN" && break
11255 done
11256
11257   if test "x$ac_ct_DUMPBIN" = x; then
11258     DUMPBIN=":"
11259   else
11260     case $cross_compiling:$ac_tool_warned in
11261 yes:)
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11265 esac
11266     DUMPBIN=$ac_ct_DUMPBIN
11267   fi
11268 fi
11269
11270     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11271     *COFF*)
11272       DUMPBIN="$DUMPBIN -symbols"
11273       ;;
11274     *)
11275       DUMPBIN=:
11276       ;;
11277     esac
11278   fi
11279
11280   if test "$DUMPBIN" != ":"; then
11281     NM="$DUMPBIN"
11282   fi
11283 fi
11284 test -z "$NM" && NM=nm
11285
11286
11287
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11289 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11290 if ${lt_cv_nm_interface+:} false; then :
11291   $as_echo_n "(cached) " >&6
11292 else
11293   lt_cv_nm_interface="BSD nm"
11294   echo "int some_variable = 0;" > conftest.$ac_ext
11295   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11296   (eval "$ac_compile" 2>conftest.err)
11297   cat conftest.err >&5
11298   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11299   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11300   cat conftest.err >&5
11301   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11302   cat conftest.out >&5
11303   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11304     lt_cv_nm_interface="MS dumpbin"
11305   fi
11306   rm -f conftest*
11307 fi
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11309 $as_echo "$lt_cv_nm_interface" >&6; }
11310
11311   ac_tool_prefix=$gmp_save_ac_tool_prefix
11312 fi
11313
11314 if test -z "$gmp_user_NM"; then
11315                         eval nmflags=\"\$nm${abi1}_flags\"
11316   test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11317   if test -n "$nmflags"; then
11318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11319 $as_echo_n "checking for extra nm flags... " >&6; }
11320     NM="$NM $nmflags"
11321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11322 $as_echo "$nmflags" >&6; }
11323   fi
11324 fi
11325
11326
11327 case $host in
11328   # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11329   # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11330   # it impossible to build shared and static libraries simultaneously.
11331   # Disable shared libraries by default, but let the user override with
11332   # --enable-shared --disable-static.
11333   #
11334   # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11335   # and *-*-os2* too, but wait for someone to test this before worrying
11336   # about it.  If there is a problem then of course libtool is the right
11337   # place to fix it.
11338   #
11339   *-*-aix[34]*)
11340     if test -z "$enable_shared"; then enable_shared=no; fi ;;
11341 esac
11342
11343
11344 # Configs for Windows DLLs.
11345
11346 enable_win32_dll=yes
11347
11348 case $host in
11349 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11350   if test -n "$ac_tool_prefix"; then
11351   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11352 set dummy ${ac_tool_prefix}as; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_prog_AS+:} false; then :
11356   $as_echo_n "(cached) " >&6
11357 else
11358   if test -n "$AS"; then
11359   ac_cv_prog_AS="$AS" # Let the user override the test.
11360 else
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11363 do
11364   IFS=$as_save_IFS
11365   test -z "$as_dir" && as_dir=.
11366     for ac_exec_ext in '' $ac_executable_extensions; do
11367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11368     ac_cv_prog_AS="${ac_tool_prefix}as"
11369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370     break 2
11371   fi
11372 done
11373   done
11374 IFS=$as_save_IFS
11375
11376 fi
11377 fi
11378 AS=$ac_cv_prog_AS
11379 if test -n "$AS"; then
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11381 $as_echo "$AS" >&6; }
11382 else
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 fi
11386
11387
11388 fi
11389 if test -z "$ac_cv_prog_AS"; then
11390   ac_ct_AS=$AS
11391   # Extract the first word of "as", so it can be a program name with args.
11392 set dummy as; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11396   $as_echo_n "(cached) " >&6
11397 else
11398   if test -n "$ac_ct_AS"; then
11399   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11400 else
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11403 do
11404   IFS=$as_save_IFS
11405   test -z "$as_dir" && as_dir=.
11406     for ac_exec_ext in '' $ac_executable_extensions; do
11407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11408     ac_cv_prog_ac_ct_AS="as"
11409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11410     break 2
11411   fi
11412 done
11413   done
11414 IFS=$as_save_IFS
11415
11416 fi
11417 fi
11418 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11419 if test -n "$ac_ct_AS"; then
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11421 $as_echo "$ac_ct_AS" >&6; }
11422 else
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11425 fi
11426
11427   if test "x$ac_ct_AS" = x; then
11428     AS="false"
11429   else
11430     case $cross_compiling:$ac_tool_warned in
11431 yes:)
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11434 ac_tool_warned=yes ;;
11435 esac
11436     AS=$ac_ct_AS
11437   fi
11438 else
11439   AS="$ac_cv_prog_AS"
11440 fi
11441
11442   if test -n "$ac_tool_prefix"; then
11443   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11444 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446 $as_echo_n "checking for $ac_word... " >&6; }
11447 if ${ac_cv_prog_DLLTOOL+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   if test -n "$DLLTOOL"; then
11451   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11452 else
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456   IFS=$as_save_IFS
11457   test -z "$as_dir" && as_dir=.
11458     for ac_exec_ext in '' $ac_executable_extensions; do
11459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462     break 2
11463   fi
11464 done
11465   done
11466 IFS=$as_save_IFS
11467
11468 fi
11469 fi
11470 DLLTOOL=$ac_cv_prog_DLLTOOL
11471 if test -n "$DLLTOOL"; then
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11473 $as_echo "$DLLTOOL" >&6; }
11474 else
11475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11477 fi
11478
11479
11480 fi
11481 if test -z "$ac_cv_prog_DLLTOOL"; then
11482   ac_ct_DLLTOOL=$DLLTOOL
11483   # Extract the first word of "dlltool", so it can be a program name with args.
11484 set dummy dlltool; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11488   $as_echo_n "(cached) " >&6
11489 else
11490   if test -n "$ac_ct_DLLTOOL"; then
11491   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11492 else
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11495 do
11496   IFS=$as_save_IFS
11497   test -z "$as_dir" && as_dir=.
11498     for ac_exec_ext in '' $ac_executable_extensions; do
11499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502     break 2
11503   fi
11504 done
11505   done
11506 IFS=$as_save_IFS
11507
11508 fi
11509 fi
11510 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11511 if test -n "$ac_ct_DLLTOOL"; then
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11513 $as_echo "$ac_ct_DLLTOOL" >&6; }
11514 else
11515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11517 fi
11518
11519   if test "x$ac_ct_DLLTOOL" = x; then
11520     DLLTOOL="false"
11521   else
11522     case $cross_compiling:$ac_tool_warned in
11523 yes:)
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11526 ac_tool_warned=yes ;;
11527 esac
11528     DLLTOOL=$ac_ct_DLLTOOL
11529   fi
11530 else
11531   DLLTOOL="$ac_cv_prog_DLLTOOL"
11532 fi
11533
11534   if test -n "$ac_tool_prefix"; then
11535   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11536 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if ${ac_cv_prog_OBJDUMP+:} false; then :
11540   $as_echo_n "(cached) " >&6
11541 else
11542   if test -n "$OBJDUMP"; then
11543   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   test -z "$as_dir" && as_dir=.
11550     for ac_exec_ext in '' $ac_executable_extensions; do
11551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554     break 2
11555   fi
11556 done
11557   done
11558 IFS=$as_save_IFS
11559
11560 fi
11561 fi
11562 OBJDUMP=$ac_cv_prog_OBJDUMP
11563 if test -n "$OBJDUMP"; then
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11565 $as_echo "$OBJDUMP" >&6; }
11566 else
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11569 fi
11570
11571
11572 fi
11573 if test -z "$ac_cv_prog_OBJDUMP"; then
11574   ac_ct_OBJDUMP=$OBJDUMP
11575   # Extract the first word of "objdump", so it can be a program name with args.
11576 set dummy objdump; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   if test -n "$ac_ct_OBJDUMP"; then
11583   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11584 else
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11587 do
11588   IFS=$as_save_IFS
11589   test -z "$as_dir" && as_dir=.
11590     for ac_exec_ext in '' $ac_executable_extensions; do
11591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11592     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594     break 2
11595   fi
11596 done
11597   done
11598 IFS=$as_save_IFS
11599
11600 fi
11601 fi
11602 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11603 if test -n "$ac_ct_OBJDUMP"; then
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11605 $as_echo "$ac_ct_OBJDUMP" >&6; }
11606 else
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610
11611   if test "x$ac_ct_OBJDUMP" = x; then
11612     OBJDUMP="false"
11613   else
11614     case $cross_compiling:$ac_tool_warned in
11615 yes:)
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11618 ac_tool_warned=yes ;;
11619 esac
11620     OBJDUMP=$ac_ct_OBJDUMP
11621   fi
11622 else
11623   OBJDUMP="$ac_cv_prog_OBJDUMP"
11624 fi
11625
11626   ;;
11627 esac
11628
11629 test -z "$AS" && AS=as
11630
11631
11632
11633
11634
11635 test -z "$DLLTOOL" && DLLTOOL=dlltool
11636
11637
11638
11639
11640
11641 test -z "$OBJDUMP" && OBJDUMP=objdump
11642
11643
11644
11645
11646
11647
11648
11649
11650 LIBGMP_DLL=0
11651
11652 case $host in
11653   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11654     # By default, build only static.
11655     if test -z "$enable_shared"; then
11656       enable_shared=no
11657     fi
11658     # Don't allow both static and DLL.
11659     if test "$enable_shared" != no && test "$enable_static" != no; then
11660       as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each.
11661 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11662     fi
11663
11664     # "-no-undefined" is required when building a DLL, see documentation on
11665     # AC_LIBTOOL_WIN32_DLL.
11666     #
11667     # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11668     # libgmpxx functions and variables exported.  This is what libtool did
11669     # in the past, and it's convenient for us in the test programs.
11670     #
11671     # Maybe it'd be prudent to check for --export-all-symbols before using
11672     # it, but it seems to have been in ld since at least 2000, and there's
11673     # not really any alternative we want to take up at the moment.
11674     #
11675     # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11676     # a .lib import library, described in the manual.  libgmp-3.dll.def
11677     # corresponds to the libmp-3.dll.def generated by libtool (as a result
11678     # of -export-symbols on that library).
11679     #
11680     # Incidentally, libtool does generate an import library libgmp.dll.a,
11681     # but it's "ar" format and cannot be used by the MS linker.  There
11682     # doesn't seem to be any GNU tool for generating or converting to .lib.
11683     #
11684     # FIXME: The .def files produced by -Wl,output-def include isascii,
11685     # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11686     # inline isascii (used in gmp).  It gives an extern inline for
11687     # __isascii, but for some reason not the plain isascii.
11688     #
11689     if test "$enable_shared" = yes; then
11690       GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11691       LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11692       LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11693       LIBGMP_DLL=1
11694     fi
11695     ;;
11696 esac
11697
11698
11699 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11700 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11701 # _AS_LINENO_PREPARE, but not always.
11702 #
11703 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11704 # and an empty result.  This only happens when invoked as "sh configure",
11705 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11706 #
11707 # FIXME: Newer libtool should have it's own fix for this.
11708 #
11709 if test -z "$CONFIG_SHELL"; then
11710   CONFIG_SHELL=$SHELL
11711 fi
11712
11713 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11714 # mingw and cygwin.  Under --disable-cxx this avoids some error messages
11715 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11716 # Notice that any user-supplied --with-tags setting takes precedence.
11717 #
11718 # FIXME: Is this the right way to get this effect?  Very possibly not, but
11719 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11720 #
11721 if test "${with_tags+set}" != set; then
11722   if test $want_cxx = yes; then
11723     with_tags=CXX
11724   else
11725     with_tags=
11726   fi
11727 fi
11728
11729 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11730 # AC_PROG_F77, even when F77 is not in the selected with_tags.  This is
11731 # probably harmless, but it's unsightly and bloats our configure, so pretend
11732 # AC_PROG_F77 has been expanded already.
11733 #
11734 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11735 # to say what it wants from among supported languages etc.
11736 #
11737
11738
11739 case `pwd` in
11740   *\ * | *\     *)
11741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11743 esac
11744
11745
11746
11747 macro_version='2.4.2'
11748 macro_revision='1.3337'
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762 ltmain="$ac_aux_dir/ltmain.sh"
11763
11764 # Backslashify metacharacters that are still active within
11765 # double-quoted strings.
11766 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11767
11768 # Same as above, but do not quote variable references.
11769 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11770
11771 # Sed substitution to delay expansion of an escaped shell variable in a
11772 # double_quote_subst'ed string.
11773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11774
11775 # Sed substitution to delay expansion of an escaped single quote.
11776 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11777
11778 # Sed substitution to avoid accidental globbing in evaled expressions
11779 no_glob_subst='s/\*/\\\*/g'
11780
11781 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11782 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11784
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11786 $as_echo_n "checking how to print strings... " >&6; }
11787 # Test print first, because it will be a builtin if present.
11788 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11789    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11790   ECHO='print -r --'
11791 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11792   ECHO='printf %s\n'
11793 else
11794   # Use this function as a fallback that always works.
11795   func_fallback_echo ()
11796   {
11797     eval 'cat <<_LTECHO_EOF
11798 $1
11799 _LTECHO_EOF'
11800   }
11801   ECHO='func_fallback_echo'
11802 fi
11803
11804 # func_echo_all arg...
11805 # Invoke $ECHO with all args, space-separated.
11806 func_echo_all ()
11807 {
11808     $ECHO ""
11809 }
11810
11811 case "$ECHO" in
11812   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11813 $as_echo "printf" >&6; } ;;
11814   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11815 $as_echo "print -r" >&6; } ;;
11816   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11817 $as_echo "cat" >&6; } ;;
11818 esac
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11835 if ${ac_cv_path_SED+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11839      for ac_i in 1 2 3 4 5 6 7; do
11840        ac_script="$ac_script$as_nl$ac_script"
11841      done
11842      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11843      { ac_script=; unset ac_script;}
11844      if test -z "$SED"; then
11845   ac_path_SED_found=false
11846   # Loop through the user's path and test for each of PROGNAME-LIST
11847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11849 do
11850   IFS=$as_save_IFS
11851   test -z "$as_dir" && as_dir=.
11852     for ac_prog in sed gsed; do
11853     for ac_exec_ext in '' $ac_executable_extensions; do
11854       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11855       as_fn_executable_p "$ac_path_SED" || continue
11856 # Check for GNU ac_path_SED and select it if it is found.
11857   # Check for GNU $ac_path_SED
11858 case `"$ac_path_SED" --version 2>&1` in
11859 *GNU*)
11860   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11861 *)
11862   ac_count=0
11863   $as_echo_n 0123456789 >"conftest.in"
11864   while :
11865   do
11866     cat "conftest.in" "conftest.in" >"conftest.tmp"
11867     mv "conftest.tmp" "conftest.in"
11868     cp "conftest.in" "conftest.nl"
11869     $as_echo '' >> "conftest.nl"
11870     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11871     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11872     as_fn_arith $ac_count + 1 && ac_count=$as_val
11873     if test $ac_count -gt ${ac_path_SED_max-0}; then
11874       # Best one so far, save it but keep looking for a better one
11875       ac_cv_path_SED="$ac_path_SED"
11876       ac_path_SED_max=$ac_count
11877     fi
11878     # 10*(2^10) chars as input seems more than enough
11879     test $ac_count -gt 10 && break
11880   done
11881   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11882 esac
11883
11884       $ac_path_SED_found && break 3
11885     done
11886   done
11887   done
11888 IFS=$as_save_IFS
11889   if test -z "$ac_cv_path_SED"; then
11890     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11891   fi
11892 else
11893   ac_cv_path_SED=$SED
11894 fi
11895
11896 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11898 $as_echo "$ac_cv_path_SED" >&6; }
11899  SED="$ac_cv_path_SED"
11900   rm -f conftest.sed
11901
11902 test -z "$SED" && SED=sed
11903 Xsed="$SED -e 1s/^X//"
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11916 $as_echo_n "checking for fgrep... " >&6; }
11917 if ${ac_cv_path_FGREP+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11921    then ac_cv_path_FGREP="$GREP -F"
11922    else
11923      if test -z "$FGREP"; then
11924   ac_path_FGREP_found=false
11925   # Loop through the user's path and test for each of PROGNAME-LIST
11926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11928 do
11929   IFS=$as_save_IFS
11930   test -z "$as_dir" && as_dir=.
11931     for ac_prog in fgrep; do
11932     for ac_exec_ext in '' $ac_executable_extensions; do
11933       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11934       as_fn_executable_p "$ac_path_FGREP" || continue
11935 # Check for GNU ac_path_FGREP and select it if it is found.
11936   # Check for GNU $ac_path_FGREP
11937 case `"$ac_path_FGREP" --version 2>&1` in
11938 *GNU*)
11939   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11940 *)
11941   ac_count=0
11942   $as_echo_n 0123456789 >"conftest.in"
11943   while :
11944   do
11945     cat "conftest.in" "conftest.in" >"conftest.tmp"
11946     mv "conftest.tmp" "conftest.in"
11947     cp "conftest.in" "conftest.nl"
11948     $as_echo 'FGREP' >> "conftest.nl"
11949     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11950     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11951     as_fn_arith $ac_count + 1 && ac_count=$as_val
11952     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11953       # Best one so far, save it but keep looking for a better one
11954       ac_cv_path_FGREP="$ac_path_FGREP"
11955       ac_path_FGREP_max=$ac_count
11956     fi
11957     # 10*(2^10) chars as input seems more than enough
11958     test $ac_count -gt 10 && break
11959   done
11960   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11961 esac
11962
11963       $ac_path_FGREP_found && break 3
11964     done
11965   done
11966   done
11967 IFS=$as_save_IFS
11968   if test -z "$ac_cv_path_FGREP"; then
11969     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11970   fi
11971 else
11972   ac_cv_path_FGREP=$FGREP
11973 fi
11974
11975    fi
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11978 $as_echo "$ac_cv_path_FGREP" >&6; }
11979  FGREP="$ac_cv_path_FGREP"
11980
11981
11982 test -z "$GREP" && GREP=grep
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 # Check whether --with-gnu-ld was given.
12003 if test "${with_gnu_ld+set}" = set; then :
12004   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12005 else
12006   with_gnu_ld=no
12007 fi
12008
12009 ac_prog=ld
12010 if test "$GCC" = yes; then
12011   # Check if gcc -print-prog-name=ld gives a path.
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12013 $as_echo_n "checking for ld used by $CC... " >&6; }
12014   case $host in
12015   *-*-mingw*)
12016     # gcc leaves a trailing carriage return which upsets mingw
12017     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12018   *)
12019     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12020   esac
12021   case $ac_prog in
12022     # Accept absolute paths.
12023     [\\/]* | ?:[\\/]*)
12024       re_direlt='/[^/][^/]*/\.\./'
12025       # Canonicalize the pathname of ld
12026       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12027       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12028         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12029       done
12030       test -z "$LD" && LD="$ac_prog"
12031       ;;
12032   "")
12033     # If it fails, then pretend we aren't using GCC.
12034     ac_prog=ld
12035     ;;
12036   *)
12037     # If it is relative, then search for the first ld in PATH.
12038     with_gnu_ld=unknown
12039     ;;
12040   esac
12041 elif test "$with_gnu_ld" = yes; then
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12043 $as_echo_n "checking for GNU ld... " >&6; }
12044 else
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12046 $as_echo_n "checking for non-GNU ld... " >&6; }
12047 fi
12048 if ${lt_cv_path_LD+:} false; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051   if test -z "$LD"; then
12052   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12053   for ac_dir in $PATH; do
12054     IFS="$lt_save_ifs"
12055     test -z "$ac_dir" && ac_dir=.
12056     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12057       lt_cv_path_LD="$ac_dir/$ac_prog"
12058       # Check to see if the program is GNU ld.  I'd rather use --version,
12059       # but apparently some variants of GNU ld only accept -v.
12060       # Break only if it was the GNU/non-GNU ld that we prefer.
12061       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12062       *GNU* | *'with BFD'*)
12063         test "$with_gnu_ld" != no && break
12064         ;;
12065       *)
12066         test "$with_gnu_ld" != yes && break
12067         ;;
12068       esac
12069     fi
12070   done
12071   IFS="$lt_save_ifs"
12072 else
12073   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12074 fi
12075 fi
12076
12077 LD="$lt_cv_path_LD"
12078 if test -n "$LD"; then
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12080 $as_echo "$LD" >&6; }
12081 else
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 fi
12085 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12088 if ${lt_cv_prog_gnu_ld+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12092 case `$LD -v 2>&1 </dev/null` in
12093 *GNU* | *'with BFD'*)
12094   lt_cv_prog_gnu_ld=yes
12095   ;;
12096 *)
12097   lt_cv_prog_gnu_ld=no
12098   ;;
12099 esac
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12102 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12103 with_gnu_ld=$lt_cv_prog_gnu_ld
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12114 $as_echo_n "checking whether ln -s works... " >&6; }
12115 LN_S=$as_ln_s
12116 if test "$LN_S" = "ln -s"; then
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119 else
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12121 $as_echo "no, using $LN_S" >&6; }
12122 fi
12123
12124 # find the maximum length of command line arguments
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12126 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12127 if ${lt_cv_sys_max_cmd_len+:} false; then :
12128   $as_echo_n "(cached) " >&6
12129 else
12130     i=0
12131   teststring="ABCD"
12132
12133   case $build_os in
12134   msdosdjgpp*)
12135     # On DJGPP, this test can blow up pretty badly due to problems in libc
12136     # (any single argument exceeding 2000 bytes causes a buffer overrun
12137     # during glob expansion).  Even if it were fixed, the result of this
12138     # check would be larger than it should be.
12139     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12140     ;;
12141
12142   gnu*)
12143     # Under GNU Hurd, this test is not required because there is
12144     # no limit to the length of command line arguments.
12145     # Libtool will interpret -1 as no limit whatsoever
12146     lt_cv_sys_max_cmd_len=-1;
12147     ;;
12148
12149   cygwin* | mingw* | cegcc*)
12150     # On Win9x/ME, this test blows up -- it succeeds, but takes
12151     # about 5 minutes as the teststring grows exponentially.
12152     # Worse, since 9x/ME are not pre-emptively multitasking,
12153     # you end up with a "frozen" computer, even though with patience
12154     # the test eventually succeeds (with a max line length of 256k).
12155     # Instead, let's just punt: use the minimum linelength reported by
12156     # all of the supported platforms: 8192 (on NT/2K/XP).
12157     lt_cv_sys_max_cmd_len=8192;
12158     ;;
12159
12160   mint*)
12161     # On MiNT this can take a long time and run out of memory.
12162     lt_cv_sys_max_cmd_len=8192;
12163     ;;
12164
12165   amigaos*)
12166     # On AmigaOS with pdksh, this test takes hours, literally.
12167     # So we just punt and use a minimum line length of 8192.
12168     lt_cv_sys_max_cmd_len=8192;
12169     ;;
12170
12171   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12172     # This has been around since 386BSD, at least.  Likely further.
12173     if test -x /sbin/sysctl; then
12174       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12175     elif test -x /usr/sbin/sysctl; then
12176       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12177     else
12178       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12179     fi
12180     # And add a safety zone
12181     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12182     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12183     ;;
12184
12185   interix*)
12186     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12187     lt_cv_sys_max_cmd_len=196608
12188     ;;
12189
12190   os2*)
12191     # The test takes a long time on OS/2.
12192     lt_cv_sys_max_cmd_len=8192
12193     ;;
12194
12195   osf*)
12196     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12197     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12198     # nice to cause kernel panics so lets avoid the loop below.
12199     # First set a reasonable default.
12200     lt_cv_sys_max_cmd_len=16384
12201     #
12202     if test -x /sbin/sysconfig; then
12203       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12204         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12205       esac
12206     fi
12207     ;;
12208   sco3.2v5*)
12209     lt_cv_sys_max_cmd_len=102400
12210     ;;
12211   sysv5* | sco5v6* | sysv4.2uw2*)
12212     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12213     if test -n "$kargmax"; then
12214       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12215     else
12216       lt_cv_sys_max_cmd_len=32768
12217     fi
12218     ;;
12219   *)
12220     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12221     if test -n "$lt_cv_sys_max_cmd_len"; then
12222       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12223       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12224     else
12225       # Make teststring a little bigger before we do anything with it.
12226       # a 1K string should be a reasonable start.
12227       for i in 1 2 3 4 5 6 7 8 ; do
12228         teststring=$teststring$teststring
12229       done
12230       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12231       # If test is not a shell built-in, we'll probably end up computing a
12232       # maximum length that is only half of the actual maximum length, but
12233       # we can't tell.
12234       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12235                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12236               test $i != 17 # 1/2 MB should be enough
12237       do
12238         i=`expr $i + 1`
12239         teststring=$teststring$teststring
12240       done
12241       # Only check the string length outside the loop.
12242       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12243       teststring=
12244       # Add a significant safety factor because C++ compilers can tack on
12245       # massive amounts of additional arguments before passing them to the
12246       # linker.  It appears as though 1/2 is a usable value.
12247       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12248     fi
12249     ;;
12250   esac
12251
12252 fi
12253
12254 if test -n $lt_cv_sys_max_cmd_len ; then
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12256 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12259 $as_echo "none" >&6; }
12260 fi
12261 max_cmd_len=$lt_cv_sys_max_cmd_len
12262
12263
12264
12265
12266
12267
12268 : ${CP="cp -f"}
12269 : ${MV="mv -f"}
12270 : ${RM="rm -f"}
12271
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12273 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12274 # Try some XSI features
12275 xsi_shell=no
12276 ( _lt_dummy="a/b/c"
12277   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12278       = c,a/b,b/c, \
12279     && eval 'test $(( 1 + 1 )) -eq 2 \
12280     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12281   && xsi_shell=yes
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12283 $as_echo "$xsi_shell" >&6; }
12284
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12287 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12288 lt_shell_append=no
12289 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12290     >/dev/null 2>&1 \
12291   && lt_shell_append=yes
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12293 $as_echo "$lt_shell_append" >&6; }
12294
12295
12296 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12297   lt_unset=unset
12298 else
12299   lt_unset=false
12300 fi
12301
12302
12303
12304
12305
12306 # test EBCDIC or ASCII
12307 case `echo X|tr X '\101'` in
12308  A) # ASCII based system
12309     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12310   lt_SP2NL='tr \040 \012'
12311   lt_NL2SP='tr \015\012 \040\040'
12312   ;;
12313  *) # EBCDIC based system
12314   lt_SP2NL='tr \100 \n'
12315   lt_NL2SP='tr \r\n \100\100'
12316   ;;
12317 esac
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12328 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12329 if ${lt_cv_to_host_file_cmd+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   case $host in
12333   *-*-mingw* )
12334     case $build in
12335       *-*-mingw* ) # actually msys
12336         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12337         ;;
12338       *-*-cygwin* )
12339         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12340         ;;
12341       * ) # otherwise, assume *nix
12342         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12343         ;;
12344     esac
12345     ;;
12346   *-*-cygwin* )
12347     case $build in
12348       *-*-mingw* ) # actually msys
12349         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12350         ;;
12351       *-*-cygwin* )
12352         lt_cv_to_host_file_cmd=func_convert_file_noop
12353         ;;
12354       * ) # otherwise, assume *nix
12355         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12356         ;;
12357     esac
12358     ;;
12359   * ) # unhandled hosts (and "normal" native builds)
12360     lt_cv_to_host_file_cmd=func_convert_file_noop
12361     ;;
12362 esac
12363
12364 fi
12365
12366 to_host_file_cmd=$lt_cv_to_host_file_cmd
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12368 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12369
12370
12371
12372
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12375 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12376 if ${lt_cv_to_tool_file_cmd+:} false; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   #assume ordinary cross tools, or native build.
12380 lt_cv_to_tool_file_cmd=func_convert_file_noop
12381 case $host in
12382   *-*-mingw* )
12383     case $build in
12384       *-*-mingw* ) # actually msys
12385         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12386         ;;
12387     esac
12388     ;;
12389 esac
12390
12391 fi
12392
12393 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12395 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12396
12397
12398
12399
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12402 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12403 if ${lt_cv_ld_reload_flag+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   lt_cv_ld_reload_flag='-r'
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12409 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12410 reload_flag=$lt_cv_ld_reload_flag
12411 case $reload_flag in
12412 "" | " "*) ;;
12413 *) reload_flag=" $reload_flag" ;;
12414 esac
12415 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12416 case $host_os in
12417   cygwin* | mingw* | pw32* | cegcc*)
12418     if test "$GCC" != yes; then
12419       reload_cmds=false
12420     fi
12421     ;;
12422   darwin*)
12423     if test "$GCC" = yes; then
12424       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12425     else
12426       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12427     fi
12428     ;;
12429 esac
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439 if test -n "$ac_tool_prefix"; then
12440   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12441 set dummy ${ac_tool_prefix}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 ${ac_cv_prog_OBJDUMP+:} false; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447   if test -n "$OBJDUMP"; then
12448   ac_cv_prog_OBJDUMP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457     ac_cv_prog_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
12468 if test -n "$OBJDUMP"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12470 $as_echo "$OBJDUMP" >&6; }
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_prog_OBJDUMP"; then
12479   ac_ct_OBJDUMP=$OBJDUMP
12480   # Extract the first word of "objdump", so it can be a program name with args.
12481 set dummy objdump; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   if test -n "$ac_ct_OBJDUMP"; then
12488   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12489 else
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493   IFS=$as_save_IFS
12494   test -z "$as_dir" && as_dir=.
12495     for ac_exec_ext in '' $ac_executable_extensions; do
12496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12497     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499     break 2
12500   fi
12501 done
12502   done
12503 IFS=$as_save_IFS
12504
12505 fi
12506 fi
12507 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12508 if test -n "$ac_ct_OBJDUMP"; then
12509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12510 $as_echo "$ac_ct_OBJDUMP" >&6; }
12511 else
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516   if test "x$ac_ct_OBJDUMP" = x; then
12517     OBJDUMP="false"
12518   else
12519     case $cross_compiling:$ac_tool_warned in
12520 yes:)
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12523 ac_tool_warned=yes ;;
12524 esac
12525     OBJDUMP=$ac_ct_OBJDUMP
12526   fi
12527 else
12528   OBJDUMP="$ac_cv_prog_OBJDUMP"
12529 fi
12530
12531 test -z "$OBJDUMP" && OBJDUMP=objdump
12532
12533
12534
12535
12536
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12539 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12540 if ${lt_cv_deplibs_check_method+:} false; then :
12541   $as_echo_n "(cached) " >&6
12542 else
12543   lt_cv_file_magic_cmd='$MAGIC_CMD'
12544 lt_cv_file_magic_test_file=
12545 lt_cv_deplibs_check_method='unknown'
12546 # Need to set the preceding variable on all platforms that support
12547 # interlibrary dependencies.
12548 # 'none' -- dependencies not supported.
12549 # `unknown' -- same as none, but documents that we really don't know.
12550 # 'pass_all' -- all dependencies passed with no checks.
12551 # 'test_compile' -- check by making test program.
12552 # 'file_magic [[regex]]' -- check by looking for files in library path
12553 # which responds to the $file_magic_cmd with a given extended regex.
12554 # If you have `file' or equivalent on your system and you're not sure
12555 # whether `pass_all' will *always* work, you probably want this one.
12556
12557 case $host_os in
12558 aix[4-9]*)
12559   lt_cv_deplibs_check_method=pass_all
12560   ;;
12561
12562 beos*)
12563   lt_cv_deplibs_check_method=pass_all
12564   ;;
12565
12566 bsdi[45]*)
12567   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12568   lt_cv_file_magic_cmd='/usr/bin/file -L'
12569   lt_cv_file_magic_test_file=/shlib/libc.so
12570   ;;
12571
12572 cygwin*)
12573   # func_win32_libid is a shell function defined in ltmain.sh
12574   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12575   lt_cv_file_magic_cmd='func_win32_libid'
12576   ;;
12577
12578 mingw* | pw32*)
12579   # Base MSYS/MinGW do not provide the 'file' command needed by
12580   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12581   # unless we find 'file', for example because we are cross-compiling.
12582   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12583   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12584     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12585     lt_cv_file_magic_cmd='func_win32_libid'
12586   else
12587     # Keep this pattern in sync with the one in func_win32_libid.
12588     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12589     lt_cv_file_magic_cmd='$OBJDUMP -f'
12590   fi
12591   ;;
12592
12593 cegcc*)
12594   # use the weaker test based on 'objdump'. See mingw*.
12595   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12596   lt_cv_file_magic_cmd='$OBJDUMP -f'
12597   ;;
12598
12599 darwin* | rhapsody*)
12600   lt_cv_deplibs_check_method=pass_all
12601   ;;
12602
12603 freebsd* | dragonfly*)
12604   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12605     case $host_cpu in
12606     i*86 )
12607       # Not sure whether the presence of OpenBSD here was a mistake.
12608       # Let's accept both of them until this is cleared up.
12609       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12610       lt_cv_file_magic_cmd=/usr/bin/file
12611       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12612       ;;
12613     esac
12614   else
12615     lt_cv_deplibs_check_method=pass_all
12616   fi
12617   ;;
12618
12619 gnu*)
12620   lt_cv_deplibs_check_method=pass_all
12621   ;;
12622
12623 haiku*)
12624   lt_cv_deplibs_check_method=pass_all
12625   ;;
12626
12627 hpux10.20* | hpux11*)
12628   lt_cv_file_magic_cmd=/usr/bin/file
12629   case $host_cpu in
12630   ia64*)
12631     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12633     ;;
12634   hppa*64*)
12635     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
12636     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12637     ;;
12638   *)
12639     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12640     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12641     ;;
12642   esac
12643   ;;
12644
12645 interix[3-9]*)
12646   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12648   ;;
12649
12650 irix5* | irix6* | nonstopux*)
12651   case $LD in
12652   *-32|*"-32 ") libmagic=32-bit;;
12653   *-n32|*"-n32 ") libmagic=N32;;
12654   *-64|*"-64 ") libmagic=64-bit;;
12655   *) libmagic=never-match;;
12656   esac
12657   lt_cv_deplibs_check_method=pass_all
12658   ;;
12659
12660 # This must be glibc/ELF.
12661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12662   lt_cv_deplibs_check_method=pass_all
12663   ;;
12664
12665 netbsd*)
12666   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12668   else
12669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12670   fi
12671   ;;
12672
12673 newos6*)
12674   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675   lt_cv_file_magic_cmd=/usr/bin/file
12676   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12677   ;;
12678
12679 *nto* | *qnx*)
12680   lt_cv_deplibs_check_method=pass_all
12681   ;;
12682
12683 openbsd*)
12684   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12686   else
12687     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688   fi
12689   ;;
12690
12691 osf3* | osf4* | osf5*)
12692   lt_cv_deplibs_check_method=pass_all
12693   ;;
12694
12695 rdos*)
12696   lt_cv_deplibs_check_method=pass_all
12697   ;;
12698
12699 solaris*)
12700   lt_cv_deplibs_check_method=pass_all
12701   ;;
12702
12703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12704   lt_cv_deplibs_check_method=pass_all
12705   ;;
12706
12707 sysv4 | sysv4.3*)
12708   case $host_vendor in
12709   motorola)
12710     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]'
12711     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12712     ;;
12713   ncr)
12714     lt_cv_deplibs_check_method=pass_all
12715     ;;
12716   sequent)
12717     lt_cv_file_magic_cmd='/bin/file'
12718     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12719     ;;
12720   sni)
12721     lt_cv_file_magic_cmd='/bin/file'
12722     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12723     lt_cv_file_magic_test_file=/lib/libc.so
12724     ;;
12725   siemens)
12726     lt_cv_deplibs_check_method=pass_all
12727     ;;
12728   pc)
12729     lt_cv_deplibs_check_method=pass_all
12730     ;;
12731   esac
12732   ;;
12733
12734 tpf*)
12735   lt_cv_deplibs_check_method=pass_all
12736   ;;
12737 esac
12738
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12741 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12742
12743 file_magic_glob=
12744 want_nocaseglob=no
12745 if test "$build" = "$host"; then
12746   case $host_os in
12747   mingw* | pw32*)
12748     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12749       want_nocaseglob=yes
12750     else
12751       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12752     fi
12753     ;;
12754   esac
12755 fi
12756
12757 file_magic_cmd=$lt_cv_file_magic_cmd
12758 deplibs_check_method=$lt_cv_deplibs_check_method
12759 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782 if test -n "$ac_tool_prefix"; then
12783   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12784 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if ${ac_cv_prog_DLLTOOL+:} false; then :
12788   $as_echo_n "(cached) " >&6
12789 else
12790   if test -n "$DLLTOOL"; then
12791   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12792 else
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12795 do
12796   IFS=$as_save_IFS
12797   test -z "$as_dir" && as_dir=.
12798     for ac_exec_ext in '' $ac_executable_extensions; do
12799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802     break 2
12803   fi
12804 done
12805   done
12806 IFS=$as_save_IFS
12807
12808 fi
12809 fi
12810 DLLTOOL=$ac_cv_prog_DLLTOOL
12811 if test -n "$DLLTOOL"; then
12812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12813 $as_echo "$DLLTOOL" >&6; }
12814 else
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12817 fi
12818
12819
12820 fi
12821 if test -z "$ac_cv_prog_DLLTOOL"; then
12822   ac_ct_DLLTOOL=$DLLTOOL
12823   # Extract the first word of "dlltool", so it can be a program name with args.
12824 set dummy dlltool; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   if test -n "$ac_ct_DLLTOOL"; then
12831   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12832 else
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836   IFS=$as_save_IFS
12837   test -z "$as_dir" && as_dir=.
12838     for ac_exec_ext in '' $ac_executable_extensions; do
12839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12840     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842     break 2
12843   fi
12844 done
12845   done
12846 IFS=$as_save_IFS
12847
12848 fi
12849 fi
12850 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12851 if test -n "$ac_ct_DLLTOOL"; then
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12853 $as_echo "$ac_ct_DLLTOOL" >&6; }
12854 else
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859   if test "x$ac_ct_DLLTOOL" = x; then
12860     DLLTOOL="false"
12861   else
12862     case $cross_compiling:$ac_tool_warned in
12863 yes:)
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12866 ac_tool_warned=yes ;;
12867 esac
12868     DLLTOOL=$ac_ct_DLLTOOL
12869   fi
12870 else
12871   DLLTOOL="$ac_cv_prog_DLLTOOL"
12872 fi
12873
12874 test -z "$DLLTOOL" && DLLTOOL=dlltool
12875
12876
12877
12878
12879
12880
12881
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12883 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12884 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12885   $as_echo_n "(cached) " >&6
12886 else
12887   lt_cv_sharedlib_from_linklib_cmd='unknown'
12888
12889 case $host_os in
12890 cygwin* | mingw* | pw32* | cegcc*)
12891   # two different shell functions defined in ltmain.sh
12892   # decide which to use based on capabilities of $DLLTOOL
12893   case `$DLLTOOL --help 2>&1` in
12894   *--identify-strict*)
12895     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12896     ;;
12897   *)
12898     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12899     ;;
12900   esac
12901   ;;
12902 *)
12903   # fallback: assume linklib IS sharedlib
12904   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12905   ;;
12906 esac
12907
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12910 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12911 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12912 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12913
12914
12915
12916
12917
12918
12919
12920 if test -n "$ac_tool_prefix"; then
12921   for ac_prog in ar
12922   do
12923     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 $as_echo_n "checking for $ac_word... " >&6; }
12927 if ${ac_cv_prog_AR+:} false; then :
12928   $as_echo_n "(cached) " >&6
12929 else
12930   if test -n "$AR"; then
12931   ac_cv_prog_AR="$AR" # Let the user override the test.
12932 else
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936   IFS=$as_save_IFS
12937   test -z "$as_dir" && as_dir=.
12938     for ac_exec_ext in '' $ac_executable_extensions; do
12939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12940     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942     break 2
12943   fi
12944 done
12945   done
12946 IFS=$as_save_IFS
12947
12948 fi
12949 fi
12950 AR=$ac_cv_prog_AR
12951 if test -n "$AR"; then
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12953 $as_echo "$AR" >&6; }
12954 else
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958
12959
12960     test -n "$AR" && break
12961   done
12962 fi
12963 if test -z "$AR"; then
12964   ac_ct_AR=$AR
12965   for ac_prog in ar
12966 do
12967   # Extract the first word of "$ac_prog", so it can be a program name with args.
12968 set dummy $ac_prog; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12972   $as_echo_n "(cached) " >&6
12973 else
12974   if test -n "$ac_ct_AR"; then
12975   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12976 else
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12979 do
12980   IFS=$as_save_IFS
12981   test -z "$as_dir" && as_dir=.
12982     for ac_exec_ext in '' $ac_executable_extensions; do
12983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12984     ac_cv_prog_ac_ct_AR="$ac_prog"
12985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986     break 2
12987   fi
12988 done
12989   done
12990 IFS=$as_save_IFS
12991
12992 fi
12993 fi
12994 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12995 if test -n "$ac_ct_AR"; then
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12997 $as_echo "$ac_ct_AR" >&6; }
12998 else
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 fi
13002
13003
13004   test -n "$ac_ct_AR" && break
13005 done
13006
13007   if test "x$ac_ct_AR" = x; then
13008     AR="false"
13009   else
13010     case $cross_compiling:$ac_tool_warned in
13011 yes:)
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13014 ac_tool_warned=yes ;;
13015 esac
13016     AR=$ac_ct_AR
13017   fi
13018 fi
13019
13020 : ${AR=ar}
13021 : ${AR_FLAGS=cru}
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13034 $as_echo_n "checking for archiver @FILE support... " >&6; }
13035 if ${lt_cv_ar_at_file+:} false; then :
13036   $as_echo_n "(cached) " >&6
13037 else
13038   lt_cv_ar_at_file=no
13039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041
13042 int
13043 main ()
13044 {
13045
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051   echo conftest.$ac_objext > conftest.lst
13052       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13053       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13054   (eval $lt_ar_try) 2>&5
13055   ac_status=$?
13056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057   test $ac_status = 0; }
13058       if test "$ac_status" -eq 0; then
13059         # Ensure the archiver fails upon bogus file names.
13060         rm -f conftest.$ac_objext libconftest.a
13061         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13062   (eval $lt_ar_try) 2>&5
13063   ac_status=$?
13064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065   test $ac_status = 0; }
13066         if test "$ac_status" -ne 0; then
13067           lt_cv_ar_at_file=@
13068         fi
13069       fi
13070       rm -f conftest.* libconftest.a
13071
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13077 $as_echo "$lt_cv_ar_at_file" >&6; }
13078
13079 if test "x$lt_cv_ar_at_file" = xno; then
13080   archiver_list_spec=
13081 else
13082   archiver_list_spec=$lt_cv_ar_at_file
13083 fi
13084
13085
13086
13087
13088
13089
13090
13091 if test -n "$ac_tool_prefix"; then
13092   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13093 set dummy ${ac_tool_prefix}strip; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if ${ac_cv_prog_STRIP+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   if test -n "$STRIP"; then
13100   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13101 else
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105   IFS=$as_save_IFS
13106   test -z "$as_dir" && as_dir=.
13107     for ac_exec_ext in '' $ac_executable_extensions; do
13108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13109     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111     break 2
13112   fi
13113 done
13114   done
13115 IFS=$as_save_IFS
13116
13117 fi
13118 fi
13119 STRIP=$ac_cv_prog_STRIP
13120 if test -n "$STRIP"; then
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13122 $as_echo "$STRIP" >&6; }
13123 else
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126 fi
13127
13128
13129 fi
13130 if test -z "$ac_cv_prog_STRIP"; then
13131   ac_ct_STRIP=$STRIP
13132   # Extract the first word of "strip", so it can be a program name with args.
13133 set dummy strip; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   if test -n "$ac_ct_STRIP"; then
13140   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13141 else
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145   IFS=$as_save_IFS
13146   test -z "$as_dir" && as_dir=.
13147     for ac_exec_ext in '' $ac_executable_extensions; do
13148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13149     ac_cv_prog_ac_ct_STRIP="strip"
13150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151     break 2
13152   fi
13153 done
13154   done
13155 IFS=$as_save_IFS
13156
13157 fi
13158 fi
13159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13160 if test -n "$ac_ct_STRIP"; then
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13162 $as_echo "$ac_ct_STRIP" >&6; }
13163 else
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13166 fi
13167
13168   if test "x$ac_ct_STRIP" = x; then
13169     STRIP=":"
13170   else
13171     case $cross_compiling:$ac_tool_warned in
13172 yes:)
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13175 ac_tool_warned=yes ;;
13176 esac
13177     STRIP=$ac_ct_STRIP
13178   fi
13179 else
13180   STRIP="$ac_cv_prog_STRIP"
13181 fi
13182
13183 test -z "$STRIP" && STRIP=:
13184
13185
13186
13187
13188
13189
13190 if test -n "$ac_tool_prefix"; then
13191   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if ${ac_cv_prog_RANLIB+:} false; then :
13196   $as_echo_n "(cached) " >&6
13197 else
13198   if test -n "$RANLIB"; then
13199   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204   IFS=$as_save_IFS
13205   test -z "$as_dir" && as_dir=.
13206     for ac_exec_ext in '' $ac_executable_extensions; do
13207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210     break 2
13211   fi
13212 done
13213   done
13214 IFS=$as_save_IFS
13215
13216 fi
13217 fi
13218 RANLIB=$ac_cv_prog_RANLIB
13219 if test -n "$RANLIB"; then
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13221 $as_echo "$RANLIB" >&6; }
13222 else
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226
13227
13228 fi
13229 if test -z "$ac_cv_prog_RANLIB"; then
13230   ac_ct_RANLIB=$RANLIB
13231   # Extract the first word of "ranlib", so it can be a program name with args.
13232 set dummy ranlib; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13236   $as_echo_n "(cached) " >&6
13237 else
13238   if test -n "$ac_ct_RANLIB"; then
13239   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13240 else
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13243 do
13244   IFS=$as_save_IFS
13245   test -z "$as_dir" && as_dir=.
13246     for ac_exec_ext in '' $ac_executable_extensions; do
13247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13248     ac_cv_prog_ac_ct_RANLIB="ranlib"
13249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250     break 2
13251   fi
13252 done
13253   done
13254 IFS=$as_save_IFS
13255
13256 fi
13257 fi
13258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13259 if test -n "$ac_ct_RANLIB"; then
13260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13261 $as_echo "$ac_ct_RANLIB" >&6; }
13262 else
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265 fi
13266
13267   if test "x$ac_ct_RANLIB" = x; then
13268     RANLIB=":"
13269   else
13270     case $cross_compiling:$ac_tool_warned in
13271 yes:)
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13274 ac_tool_warned=yes ;;
13275 esac
13276     RANLIB=$ac_ct_RANLIB
13277   fi
13278 else
13279   RANLIB="$ac_cv_prog_RANLIB"
13280 fi
13281
13282 test -z "$RANLIB" && RANLIB=:
13283
13284
13285
13286
13287
13288
13289 # Determine commands to create old-style static archives.
13290 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13291 old_postinstall_cmds='chmod 644 $oldlib'
13292 old_postuninstall_cmds=
13293
13294 if test -n "$RANLIB"; then
13295   case $host_os in
13296   openbsd*)
13297     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13298     ;;
13299   *)
13300     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13301     ;;
13302   esac
13303   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13304 fi
13305
13306 case $host_os in
13307   darwin*)
13308     lock_old_archive_extraction=yes ;;
13309   *)
13310     lock_old_archive_extraction=no ;;
13311 esac
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351 # If no C compiler was specified, use CC.
13352 LTCC=${LTCC-"$CC"}
13353
13354 # If no C compiler flags were specified, use CFLAGS.
13355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13356
13357 # Allow CC to be a program name with arguments.
13358 compiler=$CC
13359
13360
13361 # Check for command to grab the raw symbol name followed by C symbol from nm.
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13363 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13364 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367
13368 # These are sane defaults that work on at least a few old systems.
13369 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13370
13371 # Character class describing NM global symbol codes.
13372 symcode='[BCDEGRST]'
13373
13374 # Regexp to match symbols that can be accessed directly from C.
13375 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13376
13377 # Define system-specific variables.
13378 case $host_os in
13379 aix*)
13380   symcode='[BCDT]'
13381   ;;
13382 cygwin* | mingw* | pw32* | cegcc*)
13383   symcode='[ABCDGISTW]'
13384   ;;
13385 hpux*)
13386   if test "$host_cpu" = ia64; then
13387     symcode='[ABCDEGRST]'
13388   fi
13389   ;;
13390 irix* | nonstopux*)
13391   symcode='[BCDEGRST]'
13392   ;;
13393 osf*)
13394   symcode='[BCDEGQRST]'
13395   ;;
13396 solaris*)
13397   symcode='[BDRT]'
13398   ;;
13399 sco3.2v5*)
13400   symcode='[DT]'
13401   ;;
13402 sysv4.2uw2*)
13403   symcode='[DT]'
13404   ;;
13405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13406   symcode='[ABDT]'
13407   ;;
13408 sysv4)
13409   symcode='[DFNSTU]'
13410   ;;
13411 esac
13412
13413 # If we're using GNU nm, then use its standard symbol codes.
13414 case `$NM -V 2>&1` in
13415 *GNU* | *'with BFD'*)
13416   symcode='[ABCDGIRSTW]' ;;
13417 esac
13418
13419 # Transform an extracted symbol line into a proper C declaration.
13420 # Some systems (esp. on ia64) link data and code symbols differently,
13421 # so use this general approach.
13422 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13423
13424 # Transform an extracted symbol line into symbol name and symbol address
13425 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13426 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'"
13427
13428 # Handle CRLF in mingw tool chain
13429 opt_cr=
13430 case $build_os in
13431 mingw*)
13432   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13433   ;;
13434 esac
13435
13436 # Try without a prefix underscore, then with it.
13437 for ac_symprfx in "" "_"; do
13438
13439   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13440   symxfrm="\\1 $ac_symprfx\\2 \\2"
13441
13442   # Write the raw and C identifiers.
13443   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13444     # Fake it for dumpbin and say T for any non-static function
13445     # and D for any global variable.
13446     # Also find C++ and __fastcall symbols from MSVC++,
13447     # which start with @ or ?.
13448     lt_cv_sys_global_symbol_pipe="$AWK '"\
13449 "     {last_section=section; section=\$ 3};"\
13450 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13451 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13452 "     \$ 0!~/External *\|/{next};"\
13453 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13454 "     {if(hide[section]) next};"\
13455 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13456 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13457 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13458 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13459 "     ' prfx=^$ac_symprfx"
13460   else
13461     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13462   fi
13463   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13464
13465   # Check to see that the pipe works correctly.
13466   pipe_works=no
13467
13468   rm -f conftest*
13469   cat > conftest.$ac_ext <<_LT_EOF
13470 #ifdef __cplusplus
13471 extern "C" {
13472 #endif
13473 char nm_test_var;
13474 void nm_test_func(void);
13475 void nm_test_func(void){}
13476 #ifdef __cplusplus
13477 }
13478 #endif
13479 int main(){nm_test_var='a';nm_test_func();return(0);}
13480 _LT_EOF
13481
13482   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13483   (eval $ac_compile) 2>&5
13484   ac_status=$?
13485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13486   test $ac_status = 0; }; then
13487     # Now try to grab the symbols.
13488     nlist=conftest.nm
13489     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13490   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13491   ac_status=$?
13492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493   test $ac_status = 0; } && test -s "$nlist"; then
13494       # Try sorting and uniquifying the output.
13495       if sort "$nlist" | uniq > "$nlist"T; then
13496         mv -f "$nlist"T "$nlist"
13497       else
13498         rm -f "$nlist"T
13499       fi
13500
13501       # Make sure that we snagged all the symbols we need.
13502       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13503         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13504           cat <<_LT_EOF > conftest.$ac_ext
13505 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13506 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13507 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13508    relocations are performed -- see ld's documentation on pseudo-relocs.  */
13509 # define LT_DLSYM_CONST
13510 #elif defined(__osf__)
13511 /* This system does not cope well with relocations in const data.  */
13512 # define LT_DLSYM_CONST
13513 #else
13514 # define LT_DLSYM_CONST const
13515 #endif
13516
13517 #ifdef __cplusplus
13518 extern "C" {
13519 #endif
13520
13521 _LT_EOF
13522           # Now generate the symbol file.
13523           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13524
13525           cat <<_LT_EOF >> conftest.$ac_ext
13526
13527 /* The mapping between symbol names and symbols.  */
13528 LT_DLSYM_CONST struct {
13529   const char *name;
13530   void       *address;
13531 }
13532 lt__PROGRAM__LTX_preloaded_symbols[] =
13533 {
13534   { "@PROGRAM@", (void *) 0 },
13535 _LT_EOF
13536           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13537           cat <<\_LT_EOF >> conftest.$ac_ext
13538   {0, (void *) 0}
13539 };
13540
13541 /* This works around a problem in FreeBSD linker */
13542 #ifdef FREEBSD_WORKAROUND
13543 static const void *lt_preloaded_setup() {
13544   return lt__PROGRAM__LTX_preloaded_symbols;
13545 }
13546 #endif
13547
13548 #ifdef __cplusplus
13549 }
13550 #endif
13551 _LT_EOF
13552           # Now try linking the two files.
13553           mv conftest.$ac_objext conftstm.$ac_objext
13554           lt_globsym_save_LIBS=$LIBS
13555           lt_globsym_save_CFLAGS=$CFLAGS
13556           LIBS="conftstm.$ac_objext"
13557           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13558           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13559   (eval $ac_link) 2>&5
13560   ac_status=$?
13561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13563             pipe_works=yes
13564           fi
13565           LIBS=$lt_globsym_save_LIBS
13566           CFLAGS=$lt_globsym_save_CFLAGS
13567         else
13568           echo "cannot find nm_test_func in $nlist" >&5
13569         fi
13570       else
13571         echo "cannot find nm_test_var in $nlist" >&5
13572       fi
13573     else
13574       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13575     fi
13576   else
13577     echo "$progname: failed program was:" >&5
13578     cat conftest.$ac_ext >&5
13579   fi
13580   rm -rf conftest* conftst*
13581
13582   # Do not use the global_symbol_pipe unless it works.
13583   if test "$pipe_works" = yes; then
13584     break
13585   else
13586     lt_cv_sys_global_symbol_pipe=
13587   fi
13588 done
13589
13590 fi
13591
13592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13593   lt_cv_sys_global_symbol_to_cdecl=
13594 fi
13595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13597 $as_echo "failed" >&6; }
13598 else
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13600 $as_echo "ok" >&6; }
13601 fi
13602
13603 # Response file support.
13604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13605   nm_file_list_spec='@'
13606 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13607   nm_file_list_spec='@'
13608 fi
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13637 $as_echo_n "checking for sysroot... " >&6; }
13638
13639 # Check whether --with-sysroot was given.
13640 if test "${with_sysroot+set}" = set; then :
13641   withval=$with_sysroot;
13642 else
13643   with_sysroot=no
13644 fi
13645
13646
13647 lt_sysroot=
13648 case ${with_sysroot} in #(
13649  yes)
13650    if test "$GCC" = yes; then
13651      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13652    fi
13653    ;; #(
13654  /*)
13655    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13656    ;; #(
13657  no|'')
13658    ;; #(
13659  *)
13660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13661 $as_echo "${with_sysroot}" >&6; }
13662    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13663    ;;
13664 esac
13665
13666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13667 $as_echo "${lt_sysroot:-no}" >&6; }
13668
13669
13670
13671
13672
13673 # Check whether --enable-libtool-lock was given.
13674 if test "${enable_libtool_lock+set}" = set; then :
13675   enableval=$enable_libtool_lock;
13676 fi
13677
13678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13679
13680 # Some flags need to be propagated to the compiler or linker for good
13681 # libtool support.
13682 case $host in
13683 ia64-*-hpux*)
13684   # Find out which ABI we are using.
13685   echo 'int i;' > conftest.$ac_ext
13686   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13687   (eval $ac_compile) 2>&5
13688   ac_status=$?
13689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690   test $ac_status = 0; }; then
13691     case `/usr/bin/file conftest.$ac_objext` in
13692       *ELF-32*)
13693         HPUX_IA64_MODE="32"
13694         ;;
13695       *ELF-64*)
13696         HPUX_IA64_MODE="64"
13697         ;;
13698     esac
13699   fi
13700   rm -rf conftest*
13701   ;;
13702 *-*-irix6*)
13703   # Find out which ABI we are using.
13704   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13705   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13706   (eval $ac_compile) 2>&5
13707   ac_status=$?
13708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709   test $ac_status = 0; }; then
13710     if test "$lt_cv_prog_gnu_ld" = yes; then
13711       case `/usr/bin/file conftest.$ac_objext` in
13712         *32-bit*)
13713           LD="${LD-ld} -melf32bsmip"
13714           ;;
13715         *N32*)
13716           LD="${LD-ld} -melf32bmipn32"
13717           ;;
13718         *64-bit*)
13719           LD="${LD-ld} -melf64bmip"
13720         ;;
13721       esac
13722     else
13723       case `/usr/bin/file conftest.$ac_objext` in
13724         *32-bit*)
13725           LD="${LD-ld} -32"
13726           ;;
13727         *N32*)
13728           LD="${LD-ld} -n32"
13729           ;;
13730         *64-bit*)
13731           LD="${LD-ld} -64"
13732           ;;
13733       esac
13734     fi
13735   fi
13736   rm -rf conftest*
13737   ;;
13738
13739 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13740 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13741   # Find out which ABI we are using.
13742   echo 'int i;' > conftest.$ac_ext
13743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13744   (eval $ac_compile) 2>&5
13745   ac_status=$?
13746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13747   test $ac_status = 0; }; then
13748     case `/usr/bin/file conftest.o` in
13749       *32-bit*)
13750         case $host in
13751           x86_64-*kfreebsd*-gnu)
13752             LD="${LD-ld} -m elf_i386_fbsd"
13753             ;;
13754           x86_64-*linux*)
13755             LD="${LD-ld} -m elf_i386"
13756             ;;
13757           ppc64-*linux*|powerpc64-*linux*)
13758             LD="${LD-ld} -m elf32ppclinux"
13759             ;;
13760           s390x-*linux*)
13761             LD="${LD-ld} -m elf_s390"
13762             ;;
13763           sparc64-*linux*)
13764             LD="${LD-ld} -m elf32_sparc"
13765             ;;
13766         esac
13767         ;;
13768       *64-bit*)
13769         case $host in
13770           x86_64-*kfreebsd*-gnu)
13771             LD="${LD-ld} -m elf_x86_64_fbsd"
13772             ;;
13773           x86_64-*linux*)
13774             LD="${LD-ld} -m elf_x86_64"
13775             ;;
13776           ppc*-*linux*|powerpc*-*linux*)
13777             LD="${LD-ld} -m elf64ppc"
13778             ;;
13779           s390*-*linux*|s390*-*tpf*)
13780             LD="${LD-ld} -m elf64_s390"
13781             ;;
13782           sparc*-*linux*)
13783             LD="${LD-ld} -m elf64_sparc"
13784             ;;
13785         esac
13786         ;;
13787     esac
13788   fi
13789   rm -rf conftest*
13790   ;;
13791
13792 *-*-sco3.2v5*)
13793   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13794   SAVE_CFLAGS="$CFLAGS"
13795   CFLAGS="$CFLAGS -belf"
13796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13797 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13798 if ${lt_cv_cc_needs_belf+:} false; then :
13799   $as_echo_n "(cached) " >&6
13800 else
13801   ac_ext=c
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13806
13807      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809
13810 int
13811 main ()
13812 {
13813
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 if ac_fn_c_try_link "$LINENO"; then :
13819   lt_cv_cc_needs_belf=yes
13820 else
13821   lt_cv_cc_needs_belf=no
13822 fi
13823 rm -f core conftest.err conftest.$ac_objext \
13824     conftest$ac_exeext conftest.$ac_ext
13825      ac_ext=c
13826 ac_cpp='$CPP $CPPFLAGS'
13827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13830
13831 fi
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13833 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13834   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13835     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13836     CFLAGS="$SAVE_CFLAGS"
13837   fi
13838   ;;
13839 *-*solaris*)
13840   # Find out which ABI we are using.
13841   echo 'int i;' > conftest.$ac_ext
13842   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843   (eval $ac_compile) 2>&5
13844   ac_status=$?
13845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846   test $ac_status = 0; }; then
13847     case `/usr/bin/file conftest.o` in
13848     *64-bit*)
13849       case $lt_cv_prog_gnu_ld in
13850       yes*)
13851         case $host in
13852         i?86-*-solaris*)
13853           LD="${LD-ld} -m elf_x86_64"
13854           ;;
13855         sparc*-*-solaris*)
13856           LD="${LD-ld} -m elf64_sparc"
13857           ;;
13858         esac
13859         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13860         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13861           LD="${LD-ld}_sol2"
13862         fi
13863         ;;
13864       *)
13865         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13866           LD="${LD-ld} -64"
13867         fi
13868         ;;
13869       esac
13870       ;;
13871     esac
13872   fi
13873   rm -rf conftest*
13874   ;;
13875 esac
13876
13877 need_locks="$enable_libtool_lock"
13878
13879 if test -n "$ac_tool_prefix"; then
13880   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13881 set dummy ${ac_tool_prefix}mt; ac_word=$2
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13883 $as_echo_n "checking for $ac_word... " >&6; }
13884 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887   if test -n "$MANIFEST_TOOL"; then
13888   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13889 else
13890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH
13892 do
13893   IFS=$as_save_IFS
13894   test -z "$as_dir" && as_dir=.
13895     for ac_exec_ext in '' $ac_executable_extensions; do
13896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13897     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13899     break 2
13900   fi
13901 done
13902   done
13903 IFS=$as_save_IFS
13904
13905 fi
13906 fi
13907 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13908 if test -n "$MANIFEST_TOOL"; then
13909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13910 $as_echo "$MANIFEST_TOOL" >&6; }
13911 else
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13914 fi
13915
13916
13917 fi
13918 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13919   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13920   # Extract the first word of "mt", so it can be a program name with args.
13921 set dummy mt; ac_word=$2
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923 $as_echo_n "checking for $ac_word... " >&6; }
13924 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13925   $as_echo_n "(cached) " >&6
13926 else
13927   if test -n "$ac_ct_MANIFEST_TOOL"; then
13928   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13929 else
13930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931 for as_dir in $PATH
13932 do
13933   IFS=$as_save_IFS
13934   test -z "$as_dir" && as_dir=.
13935     for ac_exec_ext in '' $ac_executable_extensions; do
13936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939     break 2
13940   fi
13941 done
13942   done
13943 IFS=$as_save_IFS
13944
13945 fi
13946 fi
13947 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13948 if test -n "$ac_ct_MANIFEST_TOOL"; then
13949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13950 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13951 else
13952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13954 fi
13955
13956   if test "x$ac_ct_MANIFEST_TOOL" = x; then
13957     MANIFEST_TOOL=":"
13958   else
13959     case $cross_compiling:$ac_tool_warned in
13960 yes:)
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13963 ac_tool_warned=yes ;;
13964 esac
13965     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13966   fi
13967 else
13968   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13969 fi
13970
13971 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13973 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13974 if ${lt_cv_path_mainfest_tool+:} false; then :
13975   $as_echo_n "(cached) " >&6
13976 else
13977   lt_cv_path_mainfest_tool=no
13978   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13979   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13980   cat conftest.err >&5
13981   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13982     lt_cv_path_mainfest_tool=yes
13983   fi
13984   rm -f conftest*
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13987 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13988 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13989   MANIFEST_TOOL=:
13990 fi
13991
13992
13993
13994
13995
13996
13997   case $host_os in
13998     rhapsody* | darwin*)
13999     if test -n "$ac_tool_prefix"; then
14000   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14001 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14005   $as_echo_n "(cached) " >&6
14006 else
14007   if test -n "$DSYMUTIL"; then
14008   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14009 else
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14012 do
14013   IFS=$as_save_IFS
14014   test -z "$as_dir" && as_dir=.
14015     for ac_exec_ext in '' $ac_executable_extensions; do
14016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14017     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14019     break 2
14020   fi
14021 done
14022   done
14023 IFS=$as_save_IFS
14024
14025 fi
14026 fi
14027 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14028 if test -n "$DSYMUTIL"; then
14029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14030 $as_echo "$DSYMUTIL" >&6; }
14031 else
14032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 fi
14035
14036
14037 fi
14038 if test -z "$ac_cv_prog_DSYMUTIL"; then
14039   ac_ct_DSYMUTIL=$DSYMUTIL
14040   # Extract the first word of "dsymutil", so it can be a program name with args.
14041 set dummy dsymutil; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14045   $as_echo_n "(cached) " >&6
14046 else
14047   if test -n "$ac_ct_DSYMUTIL"; then
14048   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14049 else
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14052 do
14053   IFS=$as_save_IFS
14054   test -z "$as_dir" && as_dir=.
14055     for ac_exec_ext in '' $ac_executable_extensions; do
14056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14057     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14059     break 2
14060   fi
14061 done
14062   done
14063 IFS=$as_save_IFS
14064
14065 fi
14066 fi
14067 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14068 if test -n "$ac_ct_DSYMUTIL"; then
14069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14070 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14071 else
14072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14074 fi
14075
14076   if test "x$ac_ct_DSYMUTIL" = x; then
14077     DSYMUTIL=":"
14078   else
14079     case $cross_compiling:$ac_tool_warned in
14080 yes:)
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14083 ac_tool_warned=yes ;;
14084 esac
14085     DSYMUTIL=$ac_ct_DSYMUTIL
14086   fi
14087 else
14088   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14089 fi
14090
14091     if test -n "$ac_tool_prefix"; then
14092   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095 $as_echo_n "checking for $ac_word... " >&6; }
14096 if ${ac_cv_prog_NMEDIT+:} false; then :
14097   $as_echo_n "(cached) " >&6
14098 else
14099   if test -n "$NMEDIT"; then
14100   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105   IFS=$as_save_IFS
14106   test -z "$as_dir" && as_dir=.
14107     for ac_exec_ext in '' $ac_executable_extensions; do
14108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111     break 2
14112   fi
14113 done
14114   done
14115 IFS=$as_save_IFS
14116
14117 fi
14118 fi
14119 NMEDIT=$ac_cv_prog_NMEDIT
14120 if test -n "$NMEDIT"; then
14121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14122 $as_echo "$NMEDIT" >&6; }
14123 else
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14126 fi
14127
14128
14129 fi
14130 if test -z "$ac_cv_prog_NMEDIT"; then
14131   ac_ct_NMEDIT=$NMEDIT
14132   # Extract the first word of "nmedit", so it can be a program name with args.
14133 set dummy nmedit; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14137   $as_echo_n "(cached) " >&6
14138 else
14139   if test -n "$ac_ct_NMEDIT"; then
14140   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145   IFS=$as_save_IFS
14146   test -z "$as_dir" && as_dir=.
14147     for ac_exec_ext in '' $ac_executable_extensions; do
14148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151     break 2
14152   fi
14153 done
14154   done
14155 IFS=$as_save_IFS
14156
14157 fi
14158 fi
14159 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14160 if test -n "$ac_ct_NMEDIT"; then
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14162 $as_echo "$ac_ct_NMEDIT" >&6; }
14163 else
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167
14168   if test "x$ac_ct_NMEDIT" = x; then
14169     NMEDIT=":"
14170   else
14171     case $cross_compiling:$ac_tool_warned in
14172 yes:)
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175 ac_tool_warned=yes ;;
14176 esac
14177     NMEDIT=$ac_ct_NMEDIT
14178   fi
14179 else
14180   NMEDIT="$ac_cv_prog_NMEDIT"
14181 fi
14182
14183     if test -n "$ac_tool_prefix"; then
14184   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14185 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187 $as_echo_n "checking for $ac_word... " >&6; }
14188 if ${ac_cv_prog_LIPO+:} false; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   if test -n "$LIPO"; then
14192   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14193 else
14194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195 for as_dir in $PATH
14196 do
14197   IFS=$as_save_IFS
14198   test -z "$as_dir" && as_dir=.
14199     for ac_exec_ext in '' $ac_executable_extensions; do
14200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14201     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14203     break 2
14204   fi
14205 done
14206   done
14207 IFS=$as_save_IFS
14208
14209 fi
14210 fi
14211 LIPO=$ac_cv_prog_LIPO
14212 if test -n "$LIPO"; then
14213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14214 $as_echo "$LIPO" >&6; }
14215 else
14216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217 $as_echo "no" >&6; }
14218 fi
14219
14220
14221 fi
14222 if test -z "$ac_cv_prog_LIPO"; then
14223   ac_ct_LIPO=$LIPO
14224   # Extract the first word of "lipo", so it can be a program name with args.
14225 set dummy lipo; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14229   $as_echo_n "(cached) " >&6
14230 else
14231   if test -n "$ac_ct_LIPO"; then
14232   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14236 do
14237   IFS=$as_save_IFS
14238   test -z "$as_dir" && as_dir=.
14239     for ac_exec_ext in '' $ac_executable_extensions; do
14240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241     ac_cv_prog_ac_ct_LIPO="lipo"
14242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243     break 2
14244   fi
14245 done
14246   done
14247 IFS=$as_save_IFS
14248
14249 fi
14250 fi
14251 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14252 if test -n "$ac_ct_LIPO"; then
14253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14254 $as_echo "$ac_ct_LIPO" >&6; }
14255 else
14256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258 fi
14259
14260   if test "x$ac_ct_LIPO" = x; then
14261     LIPO=":"
14262   else
14263     case $cross_compiling:$ac_tool_warned in
14264 yes:)
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14267 ac_tool_warned=yes ;;
14268 esac
14269     LIPO=$ac_ct_LIPO
14270   fi
14271 else
14272   LIPO="$ac_cv_prog_LIPO"
14273 fi
14274
14275     if test -n "$ac_tool_prefix"; then
14276   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14277 set dummy ${ac_tool_prefix}otool; ac_word=$2
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279 $as_echo_n "checking for $ac_word... " >&6; }
14280 if ${ac_cv_prog_OTOOL+:} false; then :
14281   $as_echo_n "(cached) " >&6
14282 else
14283   if test -n "$OTOOL"; then
14284   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14285 else
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14288 do
14289   IFS=$as_save_IFS
14290   test -z "$as_dir" && as_dir=.
14291     for ac_exec_ext in '' $ac_executable_extensions; do
14292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295     break 2
14296   fi
14297 done
14298   done
14299 IFS=$as_save_IFS
14300
14301 fi
14302 fi
14303 OTOOL=$ac_cv_prog_OTOOL
14304 if test -n "$OTOOL"; then
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14306 $as_echo "$OTOOL" >&6; }
14307 else
14308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 fi
14311
14312
14313 fi
14314 if test -z "$ac_cv_prog_OTOOL"; then
14315   ac_ct_OTOOL=$OTOOL
14316   # Extract the first word of "otool", so it can be a program name with args.
14317 set dummy otool; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319 $as_echo_n "checking for $ac_word... " >&6; }
14320 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14321   $as_echo_n "(cached) " >&6
14322 else
14323   if test -n "$ac_ct_OTOOL"; then
14324   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14325 else
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329   IFS=$as_save_IFS
14330   test -z "$as_dir" && as_dir=.
14331     for ac_exec_ext in '' $ac_executable_extensions; do
14332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14333     ac_cv_prog_ac_ct_OTOOL="otool"
14334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335     break 2
14336   fi
14337 done
14338   done
14339 IFS=$as_save_IFS
14340
14341 fi
14342 fi
14343 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14344 if test -n "$ac_ct_OTOOL"; then
14345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14346 $as_echo "$ac_ct_OTOOL" >&6; }
14347 else
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351
14352   if test "x$ac_ct_OTOOL" = x; then
14353     OTOOL=":"
14354   else
14355     case $cross_compiling:$ac_tool_warned in
14356 yes:)
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14359 ac_tool_warned=yes ;;
14360 esac
14361     OTOOL=$ac_ct_OTOOL
14362   fi
14363 else
14364   OTOOL="$ac_cv_prog_OTOOL"
14365 fi
14366
14367     if test -n "$ac_tool_prefix"; then
14368   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 $as_echo_n "checking for $ac_word... " >&6; }
14372 if ${ac_cv_prog_OTOOL64+:} false; then :
14373   $as_echo_n "(cached) " >&6
14374 else
14375   if test -n "$OTOOL64"; then
14376   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14377 else
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14380 do
14381   IFS=$as_save_IFS
14382   test -z "$as_dir" && as_dir=.
14383     for ac_exec_ext in '' $ac_executable_extensions; do
14384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14385     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14387     break 2
14388   fi
14389 done
14390   done
14391 IFS=$as_save_IFS
14392
14393 fi
14394 fi
14395 OTOOL64=$ac_cv_prog_OTOOL64
14396 if test -n "$OTOOL64"; then
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14398 $as_echo "$OTOOL64" >&6; }
14399 else
14400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14402 fi
14403
14404
14405 fi
14406 if test -z "$ac_cv_prog_OTOOL64"; then
14407   ac_ct_OTOOL64=$OTOOL64
14408   # Extract the first word of "otool64", so it can be a program name with args.
14409 set dummy otool64; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14411 $as_echo_n "checking for $ac_word... " >&6; }
14412 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14413   $as_echo_n "(cached) " >&6
14414 else
14415   if test -n "$ac_ct_OTOOL64"; then
14416   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14417 else
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14420 do
14421   IFS=$as_save_IFS
14422   test -z "$as_dir" && as_dir=.
14423     for ac_exec_ext in '' $ac_executable_extensions; do
14424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425     ac_cv_prog_ac_ct_OTOOL64="otool64"
14426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427     break 2
14428   fi
14429 done
14430   done
14431 IFS=$as_save_IFS
14432
14433 fi
14434 fi
14435 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14436 if test -n "$ac_ct_OTOOL64"; then
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14438 $as_echo "$ac_ct_OTOOL64" >&6; }
14439 else
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442 fi
14443
14444   if test "x$ac_ct_OTOOL64" = x; then
14445     OTOOL64=":"
14446   else
14447     case $cross_compiling:$ac_tool_warned in
14448 yes:)
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14451 ac_tool_warned=yes ;;
14452 esac
14453     OTOOL64=$ac_ct_OTOOL64
14454   fi
14455 else
14456   OTOOL64="$ac_cv_prog_OTOOL64"
14457 fi
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14486 $as_echo_n "checking for -single_module linker flag... " >&6; }
14487 if ${lt_cv_apple_cc_single_mod+:} false; then :
14488   $as_echo_n "(cached) " >&6
14489 else
14490   lt_cv_apple_cc_single_mod=no
14491       if test -z "${LT_MULTI_MODULE}"; then
14492         # By default we will add the -single_module flag. You can override
14493         # by either setting the environment variable LT_MULTI_MODULE
14494         # non-empty at configure time, or by adding -multi_module to the
14495         # link flags.
14496         rm -rf libconftest.dylib*
14497         echo "int foo(void){return 1;}" > conftest.c
14498         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14499 -dynamiclib -Wl,-single_module conftest.c" >&5
14500         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14501           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14502         _lt_result=$?
14503         # If there is a non-empty error log, and "single_module"
14504         # appears in it, assume the flag caused a linker warning
14505         if test -s conftest.err && $GREP single_module conftest.err; then
14506           cat conftest.err >&5
14507         # Otherwise, if the output was created with a 0 exit code from
14508         # the compiler, it worked.
14509         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14510           lt_cv_apple_cc_single_mod=yes
14511         else
14512           cat conftest.err >&5
14513         fi
14514         rm -rf libconftest.dylib*
14515         rm -f conftest.*
14516       fi
14517 fi
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14520
14521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14522 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14523 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14524   $as_echo_n "(cached) " >&6
14525 else
14526   lt_cv_ld_exported_symbols_list=no
14527       save_LDFLAGS=$LDFLAGS
14528       echo "_main" > conftest.sym
14529       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h.  */
14532
14533 int
14534 main ()
14535 {
14536
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_link "$LINENO"; then :
14542   lt_cv_ld_exported_symbols_list=yes
14543 else
14544   lt_cv_ld_exported_symbols_list=no
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext \
14547     conftest$ac_exeext conftest.$ac_ext
14548         LDFLAGS="$save_LDFLAGS"
14549
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14552 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14553
14554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14555 $as_echo_n "checking for -force_load linker flag... " >&6; }
14556 if ${lt_cv_ld_force_load+:} false; then :
14557   $as_echo_n "(cached) " >&6
14558 else
14559   lt_cv_ld_force_load=no
14560       cat > conftest.c << _LT_EOF
14561 int forced_loaded() { return 2;}
14562 _LT_EOF
14563       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14564       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14565       echo "$AR cru libconftest.a conftest.o" >&5
14566       $AR cru libconftest.a conftest.o 2>&5
14567       echo "$RANLIB libconftest.a" >&5
14568       $RANLIB libconftest.a 2>&5
14569       cat > conftest.c << _LT_EOF
14570 int main() { return 0;}
14571 _LT_EOF
14572       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14573       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14574       _lt_result=$?
14575       if test -s conftest.err && $GREP force_load conftest.err; then
14576         cat conftest.err >&5
14577       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14578         lt_cv_ld_force_load=yes
14579       else
14580         cat conftest.err >&5
14581       fi
14582         rm -f conftest.err libconftest.a conftest conftest.c
14583         rm -rf conftest.dSYM
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14587 $as_echo "$lt_cv_ld_force_load" >&6; }
14588     case $host_os in
14589     rhapsody* | darwin1.[012])
14590       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14591     darwin1.*)
14592       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14593     darwin*) # darwin 5.x on
14594       # if running on 10.5 or later, the deployment target defaults
14595       # to the OS version, if on x86, and 10.4, the deployment
14596       # target defaults to 10.4. Don't you love it?
14597       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14598         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14599           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14600         10.[012]*)
14601           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14602         10.*)
14603           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14604       esac
14605     ;;
14606   esac
14607     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14608       _lt_dar_single_mod='$single_module'
14609     fi
14610     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14611       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14612     else
14613       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14614     fi
14615     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14616       _lt_dsymutil='~$DSYMUTIL $lib || :'
14617     else
14618       _lt_dsymutil=
14619     fi
14620     ;;
14621   esac
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14624 $as_echo_n "checking for ANSI C header files... " >&6; }
14625 if ${ac_cv_header_stdc+:} false; then :
14626   $as_echo_n "(cached) " >&6
14627 else
14628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h.  */
14630 #include <stdlib.h>
14631 #include <stdarg.h>
14632 #include <string.h>
14633 #include <float.h>
14634
14635 int
14636 main ()
14637 {
14638
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644   ac_cv_header_stdc=yes
14645 else
14646   ac_cv_header_stdc=no
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649
14650 if test $ac_cv_header_stdc = yes; then
14651   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h.  */
14654 #include <string.h>
14655
14656 _ACEOF
14657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14658   $EGREP "memchr" >/dev/null 2>&1; then :
14659
14660 else
14661   ac_cv_header_stdc=no
14662 fi
14663 rm -f conftest*
14664
14665 fi
14666
14667 if test $ac_cv_header_stdc = yes; then
14668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h.  */
14671 #include <stdlib.h>
14672
14673 _ACEOF
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675   $EGREP "free" >/dev/null 2>&1; then :
14676
14677 else
14678   ac_cv_header_stdc=no
14679 fi
14680 rm -f conftest*
14681
14682 fi
14683
14684 if test $ac_cv_header_stdc = yes; then
14685   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14686   if test "$cross_compiling" = yes; then :
14687   :
14688 else
14689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h.  */
14691 #include <ctype.h>
14692 #include <stdlib.h>
14693 #if ((' ' & 0x0FF) == 0x020)
14694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14696 #else
14697 # define ISLOWER(c) \
14698                    (('a' <= (c) && (c) <= 'i') \
14699                      || ('j' <= (c) && (c) <= 'r') \
14700                      || ('s' <= (c) && (c) <= 'z'))
14701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14702 #endif
14703
14704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14705 int
14706 main ()
14707 {
14708   int i;
14709   for (i = 0; i < 256; i++)
14710     if (XOR (islower (i), ISLOWER (i))
14711         || toupper (i) != TOUPPER (i))
14712       return 2;
14713   return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_c_try_run "$LINENO"; then :
14717
14718 else
14719   ac_cv_header_stdc=no
14720 fi
14721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14722   conftest.$ac_objext conftest.beam conftest.$ac_ext
14723 fi
14724
14725 fi
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14728 $as_echo "$ac_cv_header_stdc" >&6; }
14729 if test $ac_cv_header_stdc = yes; then
14730
14731 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14732
14733 fi
14734
14735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14737                   inttypes.h stdint.h unistd.h
14738 do :
14739   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14741 "
14742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14743   cat >>confdefs.h <<_ACEOF
14744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14745 _ACEOF
14746
14747 fi
14748
14749 done
14750
14751
14752 for ac_header in dlfcn.h
14753 do :
14754   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14755 "
14756 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14757   cat >>confdefs.h <<_ACEOF
14758 #define HAVE_DLFCN_H 1
14759 _ACEOF
14760
14761 fi
14762
14763 done
14764
14765
14766
14767
14768 func_stripname_cnf ()
14769 {
14770   case ${2} in
14771   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14772   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14773   esac
14774 } # func_stripname_cnf
14775
14776
14777
14778
14779
14780
14781 # Set options
14782
14783
14784
14785         enable_dlopen=no
14786
14787
14788
14789             # Check whether --enable-shared was given.
14790 if test "${enable_shared+set}" = set; then :
14791   enableval=$enable_shared; p=${PACKAGE-default}
14792     case $enableval in
14793     yes) enable_shared=yes ;;
14794     no) enable_shared=no ;;
14795     *)
14796       enable_shared=no
14797       # Look at the argument we got.  We use all the common list separators.
14798       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14799       for pkg in $enableval; do
14800         IFS="$lt_save_ifs"
14801         if test "X$pkg" = "X$p"; then
14802           enable_shared=yes
14803         fi
14804       done
14805       IFS="$lt_save_ifs"
14806       ;;
14807     esac
14808 else
14809   enable_shared=yes
14810 fi
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820   # Check whether --enable-static was given.
14821 if test "${enable_static+set}" = set; then :
14822   enableval=$enable_static; p=${PACKAGE-default}
14823     case $enableval in
14824     yes) enable_static=yes ;;
14825     no) enable_static=no ;;
14826     *)
14827      enable_static=no
14828       # Look at the argument we got.  We use all the common list separators.
14829       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14830       for pkg in $enableval; do
14831         IFS="$lt_save_ifs"
14832         if test "X$pkg" = "X$p"; then
14833           enable_static=yes
14834         fi
14835       done
14836       IFS="$lt_save_ifs"
14837       ;;
14838     esac
14839 else
14840   enable_static=yes
14841 fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852 # Check whether --with-pic was given.
14853 if test "${with_pic+set}" = set; then :
14854   withval=$with_pic; lt_p=${PACKAGE-default}
14855     case $withval in
14856     yes|no) pic_mode=$withval ;;
14857     *)
14858       pic_mode=default
14859       # Look at the argument we got.  We use all the common list separators.
14860       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14861       for lt_pkg in $withval; do
14862         IFS="$lt_save_ifs"
14863         if test "X$lt_pkg" = "X$lt_p"; then
14864           pic_mode=yes
14865         fi
14866       done
14867       IFS="$lt_save_ifs"
14868       ;;
14869     esac
14870 else
14871   pic_mode=default
14872 fi
14873
14874
14875 test -z "$pic_mode" && pic_mode=default
14876
14877
14878
14879
14880
14881
14882
14883   # Check whether --enable-fast-install was given.
14884 if test "${enable_fast_install+set}" = set; then :
14885   enableval=$enable_fast_install; p=${PACKAGE-default}
14886     case $enableval in
14887     yes) enable_fast_install=yes ;;
14888     no) enable_fast_install=no ;;
14889     *)
14890       enable_fast_install=no
14891       # Look at the argument we got.  We use all the common list separators.
14892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14893       for pkg in $enableval; do
14894         IFS="$lt_save_ifs"
14895         if test "X$pkg" = "X$p"; then
14896           enable_fast_install=yes
14897         fi
14898       done
14899       IFS="$lt_save_ifs"
14900       ;;
14901     esac
14902 else
14903   enable_fast_install=yes
14904 fi
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916 # This can be used to rebuild libtool when needed
14917 LIBTOOL_DEPS="$ltmain"
14918
14919 # Always use our own libtool.
14920 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951 test -z "$LN_S" && LN_S="ln -s"
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 if test -n "${ZSH_VERSION+set}" ; then
14967    setopt NO_GLOB_SUBST
14968 fi
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14971 $as_echo_n "checking for objdir... " >&6; }
14972 if ${lt_cv_objdir+:} false; then :
14973   $as_echo_n "(cached) " >&6
14974 else
14975   rm -f .libs 2>/dev/null
14976 mkdir .libs 2>/dev/null
14977 if test -d .libs; then
14978   lt_cv_objdir=.libs
14979 else
14980   # MS-DOS does not allow filenames that begin with a dot.
14981   lt_cv_objdir=_libs
14982 fi
14983 rmdir .libs 2>/dev/null
14984 fi
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14986 $as_echo "$lt_cv_objdir" >&6; }
14987 objdir=$lt_cv_objdir
14988
14989
14990
14991
14992
14993 cat >>confdefs.h <<_ACEOF
14994 #define LT_OBJDIR "$lt_cv_objdir/"
14995 _ACEOF
14996
14997
14998
14999
15000 case $host_os in
15001 aix3*)
15002   # AIX sometimes has problems with the GCC collect2 program.  For some
15003   # reason, if we set the COLLECT_NAMES environment variable, the problems
15004   # vanish in a puff of smoke.
15005   if test "X${COLLECT_NAMES+set}" != Xset; then
15006     COLLECT_NAMES=
15007     export COLLECT_NAMES
15008   fi
15009   ;;
15010 esac
15011
15012 # Global variables:
15013 ofile=libtool
15014 can_build_shared=yes
15015
15016 # All known linkers require a `.a' archive for static linking (except MSVC,
15017 # which needs '.lib').
15018 libext=a
15019
15020 with_gnu_ld="$lt_cv_prog_gnu_ld"
15021
15022 old_CC="$CC"
15023 old_CFLAGS="$CFLAGS"
15024
15025 # Set sane defaults for various variables
15026 test -z "$CC" && CC=cc
15027 test -z "$LTCC" && LTCC=$CC
15028 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15029 test -z "$LD" && LD=ld
15030 test -z "$ac_objext" && ac_objext=o
15031
15032 for cc_temp in $compiler""; do
15033   case $cc_temp in
15034     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15035     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15036     \-*) ;;
15037     *) break;;
15038   esac
15039 done
15040 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15041
15042
15043 # Only perform the check for file, if the check method requires it
15044 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15045 case $deplibs_check_method in
15046 file_magic*)
15047   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15049 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15050 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15051   $as_echo_n "(cached) " >&6
15052 else
15053   case $MAGIC_CMD in
15054 [\\/*] |  ?:[\\/]*)
15055   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15056   ;;
15057 *)
15058   lt_save_MAGIC_CMD="$MAGIC_CMD"
15059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15060   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15061   for ac_dir in $ac_dummy; do
15062     IFS="$lt_save_ifs"
15063     test -z "$ac_dir" && ac_dir=.
15064     if test -f $ac_dir/${ac_tool_prefix}file; then
15065       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15066       if test -n "$file_magic_test_file"; then
15067         case $deplibs_check_method in
15068         "file_magic "*)
15069           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15070           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15071           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15072             $EGREP "$file_magic_regex" > /dev/null; then
15073             :
15074           else
15075             cat <<_LT_EOF 1>&2
15076
15077 *** Warning: the command libtool uses to detect shared libraries,
15078 *** $file_magic_cmd, produces output that libtool cannot recognize.
15079 *** The result is that libtool may fail to recognize shared libraries
15080 *** as such.  This will affect the creation of libtool libraries that
15081 *** depend on shared libraries, but programs linked with such libtool
15082 *** libraries will work regardless of this problem.  Nevertheless, you
15083 *** may want to report the problem to your system manager and/or to
15084 *** bug-libtool@gnu.org
15085
15086 _LT_EOF
15087           fi ;;
15088         esac
15089       fi
15090       break
15091     fi
15092   done
15093   IFS="$lt_save_ifs"
15094   MAGIC_CMD="$lt_save_MAGIC_CMD"
15095   ;;
15096 esac
15097 fi
15098
15099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15100 if test -n "$MAGIC_CMD"; then
15101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15102 $as_echo "$MAGIC_CMD" >&6; }
15103 else
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15106 fi
15107
15108
15109
15110
15111
15112 if test -z "$lt_cv_path_MAGIC_CMD"; then
15113   if test -n "$ac_tool_prefix"; then
15114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15115 $as_echo_n "checking for file... " >&6; }
15116 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15117   $as_echo_n "(cached) " >&6
15118 else
15119   case $MAGIC_CMD in
15120 [\\/*] |  ?:[\\/]*)
15121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15122   ;;
15123 *)
15124   lt_save_MAGIC_CMD="$MAGIC_CMD"
15125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15126   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15127   for ac_dir in $ac_dummy; do
15128     IFS="$lt_save_ifs"
15129     test -z "$ac_dir" && ac_dir=.
15130     if test -f $ac_dir/file; then
15131       lt_cv_path_MAGIC_CMD="$ac_dir/file"
15132       if test -n "$file_magic_test_file"; then
15133         case $deplibs_check_method in
15134         "file_magic "*)
15135           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15136           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15137           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15138             $EGREP "$file_magic_regex" > /dev/null; then
15139             :
15140           else
15141             cat <<_LT_EOF 1>&2
15142
15143 *** Warning: the command libtool uses to detect shared libraries,
15144 *** $file_magic_cmd, produces output that libtool cannot recognize.
15145 *** The result is that libtool may fail to recognize shared libraries
15146 *** as such.  This will affect the creation of libtool libraries that
15147 *** depend on shared libraries, but programs linked with such libtool
15148 *** libraries will work regardless of this problem.  Nevertheless, you
15149 *** may want to report the problem to your system manager and/or to
15150 *** bug-libtool@gnu.org
15151
15152 _LT_EOF
15153           fi ;;
15154         esac
15155       fi
15156       break
15157     fi
15158   done
15159   IFS="$lt_save_ifs"
15160   MAGIC_CMD="$lt_save_MAGIC_CMD"
15161   ;;
15162 esac
15163 fi
15164
15165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15166 if test -n "$MAGIC_CMD"; then
15167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15168 $as_echo "$MAGIC_CMD" >&6; }
15169 else
15170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15172 fi
15173
15174
15175   else
15176     MAGIC_CMD=:
15177   fi
15178 fi
15179
15180   fi
15181   ;;
15182 esac
15183
15184 # Use C for the default configuration in the libtool script
15185
15186 lt_save_CC="$CC"
15187 ac_ext=c
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
15193
15194 # Source file extension for C test sources.
15195 ac_ext=c
15196
15197 # Object file extension for compiled C test sources.
15198 objext=o
15199 objext=$objext
15200
15201 # Code to be used in simple compile tests
15202 lt_simple_compile_test_code="int some_variable = 0;"
15203
15204 # Code to be used in simple link tests
15205 lt_simple_link_test_code='int main(){return(0);}'
15206
15207
15208
15209
15210
15211
15212
15213 # If no C compiler was specified, use CC.
15214 LTCC=${LTCC-"$CC"}
15215
15216 # If no C compiler flags were specified, use CFLAGS.
15217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15218
15219 # Allow CC to be a program name with arguments.
15220 compiler=$CC
15221
15222 # Save the default compiler, since it gets overwritten when the other
15223 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15224 compiler_DEFAULT=$CC
15225
15226 # save warnings/boilerplate of simple test code
15227 ac_outfile=conftest.$ac_objext
15228 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15230 _lt_compiler_boilerplate=`cat conftest.err`
15231 $RM conftest*
15232
15233 ac_outfile=conftest.$ac_objext
15234 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15236 _lt_linker_boilerplate=`cat conftest.err`
15237 $RM -r conftest*
15238
15239
15240 if test -n "$compiler"; then
15241
15242 lt_prog_compiler_no_builtin_flag=
15243
15244 if test "$GCC" = yes; then
15245   case $cc_basename in
15246   nvcc*)
15247     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15248   *)
15249     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15250   esac
15251
15252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15253 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15254 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15255   $as_echo_n "(cached) " >&6
15256 else
15257   lt_cv_prog_compiler_rtti_exceptions=no
15258    ac_outfile=conftest.$ac_objext
15259    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260    lt_compiler_flag="-fno-rtti -fno-exceptions"
15261    # Insert the option either (1) after the last *FLAGS variable, or
15262    # (2) before a word containing "conftest.", or (3) at the end.
15263    # Note that $ac_compile itself does not contain backslashes and begins
15264    # with a dollar sign (not a hyphen), so the echo should work correctly.
15265    # The option is referenced via a variable to avoid confusing sed.
15266    lt_compile=`echo "$ac_compile" | $SED \
15267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269    -e 's:$: $lt_compiler_flag:'`
15270    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15271    (eval "$lt_compile" 2>conftest.err)
15272    ac_status=$?
15273    cat conftest.err >&5
15274    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275    if (exit $ac_status) && test -s "$ac_outfile"; then
15276      # The compiler can only warn and ignore the option if not recognized
15277      # So say no if there are warnings other than the usual output.
15278      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15279      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15280      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15281        lt_cv_prog_compiler_rtti_exceptions=yes
15282      fi
15283    fi
15284    $RM conftest*
15285
15286 fi
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15288 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15289
15290 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15291     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15292 else
15293     :
15294 fi
15295
15296 fi
15297
15298
15299
15300
15301
15302
15303   lt_prog_compiler_wl=
15304 lt_prog_compiler_pic=
15305 lt_prog_compiler_static=
15306
15307
15308   if test "$GCC" = yes; then
15309     lt_prog_compiler_wl='-Wl,'
15310     lt_prog_compiler_static='-static'
15311
15312     case $host_os in
15313       aix*)
15314       # All AIX code is PIC.
15315       if test "$host_cpu" = ia64; then
15316         # AIX 5 now supports IA64 processor
15317         lt_prog_compiler_static='-Bstatic'
15318       fi
15319       ;;
15320
15321     amigaos*)
15322       case $host_cpu in
15323       powerpc)
15324             # see comment about AmigaOS4 .so support
15325             lt_prog_compiler_pic='-fPIC'
15326         ;;
15327       m68k)
15328             # FIXME: we need at least 68020 code to build shared libraries, but
15329             # adding the `-m68020' flag to GCC prevents building anything better,
15330             # like `-m68040'.
15331             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15332         ;;
15333       esac
15334       ;;
15335
15336     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15337       # PIC is the default for these OSes.
15338       ;;
15339
15340     mingw* | cygwin* | pw32* | os2* | cegcc*)
15341       # This hack is so that the source file can tell whether it is being
15342       # built for inclusion in a dll (and should export symbols for example).
15343       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15344       # (--disable-auto-import) libraries
15345       lt_prog_compiler_pic='-DDLL_EXPORT'
15346       ;;
15347
15348     darwin* | rhapsody*)
15349       # PIC is the default on this platform
15350       # Common symbols not allowed in MH_DYLIB files
15351       lt_prog_compiler_pic='-fno-common'
15352       ;;
15353
15354     haiku*)
15355       # PIC is the default for Haiku.
15356       # The "-static" flag exists, but is broken.
15357       lt_prog_compiler_static=
15358       ;;
15359
15360     hpux*)
15361       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15362       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15363       # sets the default TLS model and affects inlining.
15364       case $host_cpu in
15365       hppa*64*)
15366         # +Z the default
15367         ;;
15368       *)
15369         lt_prog_compiler_pic='-fPIC'
15370         ;;
15371       esac
15372       ;;
15373
15374     interix[3-9]*)
15375       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15376       # Instead, we relocate shared libraries at runtime.
15377       ;;
15378
15379     msdosdjgpp*)
15380       # Just because we use GCC doesn't mean we suddenly get shared libraries
15381       # on systems that don't support them.
15382       lt_prog_compiler_can_build_shared=no
15383       enable_shared=no
15384       ;;
15385
15386     *nto* | *qnx*)
15387       # QNX uses GNU C++, but need to define -shared option too, otherwise
15388       # it will coredump.
15389       lt_prog_compiler_pic='-fPIC -shared'
15390       ;;
15391
15392     sysv4*MP*)
15393       if test -d /usr/nec; then
15394         lt_prog_compiler_pic=-Kconform_pic
15395       fi
15396       ;;
15397
15398     *)
15399       lt_prog_compiler_pic='-fPIC'
15400       ;;
15401     esac
15402
15403     case $cc_basename in
15404     nvcc*) # Cuda Compiler Driver 2.2
15405       lt_prog_compiler_wl='-Xlinker '
15406       if test -n "$lt_prog_compiler_pic"; then
15407         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15408       fi
15409       ;;
15410     esac
15411   else
15412     # PORTME Check for flag to pass linker flags through the system compiler.
15413     case $host_os in
15414     aix*)
15415       lt_prog_compiler_wl='-Wl,'
15416       if test "$host_cpu" = ia64; then
15417         # AIX 5 now supports IA64 processor
15418         lt_prog_compiler_static='-Bstatic'
15419       else
15420         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15421       fi
15422       ;;
15423
15424     mingw* | cygwin* | pw32* | os2* | cegcc*)
15425       # This hack is so that the source file can tell whether it is being
15426       # built for inclusion in a dll (and should export symbols for example).
15427       lt_prog_compiler_pic='-DDLL_EXPORT'
15428       ;;
15429
15430     hpux9* | hpux10* | hpux11*)
15431       lt_prog_compiler_wl='-Wl,'
15432       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15433       # not for PA HP-UX.
15434       case $host_cpu in
15435       hppa*64*|ia64*)
15436         # +Z the default
15437         ;;
15438       *)
15439         lt_prog_compiler_pic='+Z'
15440         ;;
15441       esac
15442       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15443       lt_prog_compiler_static='${wl}-a ${wl}archive'
15444       ;;
15445
15446     irix5* | irix6* | nonstopux*)
15447       lt_prog_compiler_wl='-Wl,'
15448       # PIC (with -KPIC) is the default.
15449       lt_prog_compiler_static='-non_shared'
15450       ;;
15451
15452     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15453       case $cc_basename in
15454       # old Intel for x86_64 which still supported -KPIC.
15455       ecc*)
15456         lt_prog_compiler_wl='-Wl,'
15457         lt_prog_compiler_pic='-KPIC'
15458         lt_prog_compiler_static='-static'
15459         ;;
15460       # icc used to be incompatible with GCC.
15461       # ICC 10 doesn't accept -KPIC any more.
15462       icc* | ifort*)
15463         lt_prog_compiler_wl='-Wl,'
15464         lt_prog_compiler_pic='-fPIC'
15465         lt_prog_compiler_static='-static'
15466         ;;
15467       # Lahey Fortran 8.1.
15468       lf95*)
15469         lt_prog_compiler_wl='-Wl,'
15470         lt_prog_compiler_pic='--shared'
15471         lt_prog_compiler_static='--static'
15472         ;;
15473       nagfor*)
15474         # NAG Fortran compiler
15475         lt_prog_compiler_wl='-Wl,-Wl,,'
15476         lt_prog_compiler_pic='-PIC'
15477         lt_prog_compiler_static='-Bstatic'
15478         ;;
15479       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15480         # Portland Group compilers (*not* the Pentium gcc compiler,
15481         # which looks to be a dead project)
15482         lt_prog_compiler_wl='-Wl,'
15483         lt_prog_compiler_pic='-fpic'
15484         lt_prog_compiler_static='-Bstatic'
15485         ;;
15486       ccc*)
15487         lt_prog_compiler_wl='-Wl,'
15488         # All Alpha code is PIC.
15489         lt_prog_compiler_static='-non_shared'
15490         ;;
15491       xl* | bgxl* | bgf* | mpixl*)
15492         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15493         lt_prog_compiler_wl='-Wl,'
15494         lt_prog_compiler_pic='-qpic'
15495         lt_prog_compiler_static='-qstaticlink'
15496         ;;
15497       *)
15498         case `$CC -V 2>&1 | sed 5q` in
15499         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15500           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15501           lt_prog_compiler_pic='-KPIC'
15502           lt_prog_compiler_static='-Bstatic'
15503           lt_prog_compiler_wl=''
15504           ;;
15505         *Sun\ F* | *Sun*Fortran*)
15506           lt_prog_compiler_pic='-KPIC'
15507           lt_prog_compiler_static='-Bstatic'
15508           lt_prog_compiler_wl='-Qoption ld '
15509           ;;
15510         *Sun\ C*)
15511           # Sun C 5.9
15512           lt_prog_compiler_pic='-KPIC'
15513           lt_prog_compiler_static='-Bstatic'
15514           lt_prog_compiler_wl='-Wl,'
15515           ;;
15516         *Intel*\ [CF]*Compiler*)
15517           lt_prog_compiler_wl='-Wl,'
15518           lt_prog_compiler_pic='-fPIC'
15519           lt_prog_compiler_static='-static'
15520           ;;
15521         *Portland\ Group*)
15522           lt_prog_compiler_wl='-Wl,'
15523           lt_prog_compiler_pic='-fpic'
15524           lt_prog_compiler_static='-Bstatic'
15525           ;;
15526         esac
15527         ;;
15528       esac
15529       ;;
15530
15531     newsos6)
15532       lt_prog_compiler_pic='-KPIC'
15533       lt_prog_compiler_static='-Bstatic'
15534       ;;
15535
15536     *nto* | *qnx*)
15537       # QNX uses GNU C++, but need to define -shared option too, otherwise
15538       # it will coredump.
15539       lt_prog_compiler_pic='-fPIC -shared'
15540       ;;
15541
15542     osf3* | osf4* | osf5*)
15543       lt_prog_compiler_wl='-Wl,'
15544       # All OSF/1 code is PIC.
15545       lt_prog_compiler_static='-non_shared'
15546       ;;
15547
15548     rdos*)
15549       lt_prog_compiler_static='-non_shared'
15550       ;;
15551
15552     solaris*)
15553       lt_prog_compiler_pic='-KPIC'
15554       lt_prog_compiler_static='-Bstatic'
15555       case $cc_basename in
15556       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15557         lt_prog_compiler_wl='-Qoption ld ';;
15558       *)
15559         lt_prog_compiler_wl='-Wl,';;
15560       esac
15561       ;;
15562
15563     sunos4*)
15564       lt_prog_compiler_wl='-Qoption ld '
15565       lt_prog_compiler_pic='-PIC'
15566       lt_prog_compiler_static='-Bstatic'
15567       ;;
15568
15569     sysv4 | sysv4.2uw2* | sysv4.3*)
15570       lt_prog_compiler_wl='-Wl,'
15571       lt_prog_compiler_pic='-KPIC'
15572       lt_prog_compiler_static='-Bstatic'
15573       ;;
15574
15575     sysv4*MP*)
15576       if test -d /usr/nec ;then
15577         lt_prog_compiler_pic='-Kconform_pic'
15578         lt_prog_compiler_static='-Bstatic'
15579       fi
15580       ;;
15581
15582     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15583       lt_prog_compiler_wl='-Wl,'
15584       lt_prog_compiler_pic='-KPIC'
15585       lt_prog_compiler_static='-Bstatic'
15586       ;;
15587
15588     unicos*)
15589       lt_prog_compiler_wl='-Wl,'
15590       lt_prog_compiler_can_build_shared=no
15591       ;;
15592
15593     uts4*)
15594       lt_prog_compiler_pic='-pic'
15595       lt_prog_compiler_static='-Bstatic'
15596       ;;
15597
15598     *)
15599       lt_prog_compiler_can_build_shared=no
15600       ;;
15601     esac
15602   fi
15603
15604 case $host_os in
15605   # For platforms which do not support PIC, -DPIC is meaningless:
15606   *djgpp*)
15607     lt_prog_compiler_pic=
15608     ;;
15609   *)
15610     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15611     ;;
15612 esac
15613
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15615 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15616 if ${lt_cv_prog_compiler_pic+:} false; then :
15617   $as_echo_n "(cached) " >&6
15618 else
15619   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15620 fi
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15622 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15623 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15624
15625 #
15626 # Check to make sure the PIC flag actually works.
15627 #
15628 if test -n "$lt_prog_compiler_pic"; then
15629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15630 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15631 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15632   $as_echo_n "(cached) " >&6
15633 else
15634   lt_cv_prog_compiler_pic_works=no
15635    ac_outfile=conftest.$ac_objext
15636    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15637    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15638    # Insert the option either (1) after the last *FLAGS variable, or
15639    # (2) before a word containing "conftest.", or (3) at the end.
15640    # Note that $ac_compile itself does not contain backslashes and begins
15641    # with a dollar sign (not a hyphen), so the echo should work correctly.
15642    # The option is referenced via a variable to avoid confusing sed.
15643    lt_compile=`echo "$ac_compile" | $SED \
15644    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15646    -e 's:$: $lt_compiler_flag:'`
15647    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15648    (eval "$lt_compile" 2>conftest.err)
15649    ac_status=$?
15650    cat conftest.err >&5
15651    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652    if (exit $ac_status) && test -s "$ac_outfile"; then
15653      # The compiler can only warn and ignore the option if not recognized
15654      # So say no if there are warnings other than the usual output.
15655      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15656      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15657      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15658        lt_cv_prog_compiler_pic_works=yes
15659      fi
15660    fi
15661    $RM conftest*
15662
15663 fi
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15665 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15666
15667 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15668     case $lt_prog_compiler_pic in
15669      "" | " "*) ;;
15670      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15671      esac
15672 else
15673     lt_prog_compiler_pic=
15674      lt_prog_compiler_can_build_shared=no
15675 fi
15676
15677 fi
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689 #
15690 # Check to make sure the static flag actually works.
15691 #
15692 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15694 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15695 if ${lt_cv_prog_compiler_static_works+:} false; then :
15696   $as_echo_n "(cached) " >&6
15697 else
15698   lt_cv_prog_compiler_static_works=no
15699    save_LDFLAGS="$LDFLAGS"
15700    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15701    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15702    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15703      # The linker can only warn and ignore the option if not recognized
15704      # So say no if there are warnings
15705      if test -s conftest.err; then
15706        # Append any errors to the config.log.
15707        cat conftest.err 1>&5
15708        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15709        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15710        if diff conftest.exp conftest.er2 >/dev/null; then
15711          lt_cv_prog_compiler_static_works=yes
15712        fi
15713      else
15714        lt_cv_prog_compiler_static_works=yes
15715      fi
15716    fi
15717    $RM -r conftest*
15718    LDFLAGS="$save_LDFLAGS"
15719
15720 fi
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15722 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15723
15724 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15725     :
15726 else
15727     lt_prog_compiler_static=
15728 fi
15729
15730
15731
15732
15733
15734
15735
15736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15738 if ${lt_cv_prog_compiler_c_o+:} false; then :
15739   $as_echo_n "(cached) " >&6
15740 else
15741   lt_cv_prog_compiler_c_o=no
15742    $RM -r conftest 2>/dev/null
15743    mkdir conftest
15744    cd conftest
15745    mkdir out
15746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15747
15748    lt_compiler_flag="-o out/conftest2.$ac_objext"
15749    # Insert the option either (1) after the last *FLAGS variable, or
15750    # (2) before a word containing "conftest.", or (3) at the end.
15751    # Note that $ac_compile itself does not contain backslashes and begins
15752    # with a dollar sign (not a hyphen), so the echo should work correctly.
15753    lt_compile=`echo "$ac_compile" | $SED \
15754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15756    -e 's:$: $lt_compiler_flag:'`
15757    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15758    (eval "$lt_compile" 2>out/conftest.err)
15759    ac_status=$?
15760    cat out/conftest.err >&5
15761    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15763    then
15764      # The compiler can only warn and ignore the option if not recognized
15765      # So say no if there are warnings
15766      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15767      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15768      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15769        lt_cv_prog_compiler_c_o=yes
15770      fi
15771    fi
15772    chmod u+w . 2>&5
15773    $RM conftest*
15774    # SGI C++ compiler will create directory out/ii_files/ for
15775    # template instantiation
15776    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15777    $RM out/* && rmdir out
15778    cd ..
15779    $RM -r conftest
15780    $RM conftest*
15781
15782 fi
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15785
15786
15787
15788
15789
15790
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15792 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15793 if ${lt_cv_prog_compiler_c_o+:} false; then :
15794   $as_echo_n "(cached) " >&6
15795 else
15796   lt_cv_prog_compiler_c_o=no
15797    $RM -r conftest 2>/dev/null
15798    mkdir conftest
15799    cd conftest
15800    mkdir out
15801    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15802
15803    lt_compiler_flag="-o out/conftest2.$ac_objext"
15804    # Insert the option either (1) after the last *FLAGS variable, or
15805    # (2) before a word containing "conftest.", or (3) at the end.
15806    # Note that $ac_compile itself does not contain backslashes and begins
15807    # with a dollar sign (not a hyphen), so the echo should work correctly.
15808    lt_compile=`echo "$ac_compile" | $SED \
15809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811    -e 's:$: $lt_compiler_flag:'`
15812    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15813    (eval "$lt_compile" 2>out/conftest.err)
15814    ac_status=$?
15815    cat out/conftest.err >&5
15816    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15818    then
15819      # The compiler can only warn and ignore the option if not recognized
15820      # So say no if there are warnings
15821      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15822      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15823      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15824        lt_cv_prog_compiler_c_o=yes
15825      fi
15826    fi
15827    chmod u+w . 2>&5
15828    $RM conftest*
15829    # SGI C++ compiler will create directory out/ii_files/ for
15830    # template instantiation
15831    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15832    $RM out/* && rmdir out
15833    cd ..
15834    $RM -r conftest
15835    $RM conftest*
15836
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15839 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15840
15841
15842
15843
15844 hard_links="nottested"
15845 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15846   # do not overwrite the value of need_locks provided by the user
15847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15848 $as_echo_n "checking if we can lock with hard links... " >&6; }
15849   hard_links=yes
15850   $RM conftest*
15851   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15852   touch conftest.a
15853   ln conftest.a conftest.b 2>&5 || hard_links=no
15854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15856 $as_echo "$hard_links" >&6; }
15857   if test "$hard_links" = no; then
15858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15859 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15860     need_locks=warn
15861   fi
15862 else
15863   need_locks=no
15864 fi
15865
15866
15867
15868
15869
15870
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15873
15874   runpath_var=
15875   allow_undefined_flag=
15876   always_export_symbols=no
15877   archive_cmds=
15878   archive_expsym_cmds=
15879   compiler_needs_object=no
15880   enable_shared_with_static_runtimes=no
15881   export_dynamic_flag_spec=
15882   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15883   hardcode_automatic=no
15884   hardcode_direct=no
15885   hardcode_direct_absolute=no
15886   hardcode_libdir_flag_spec=
15887   hardcode_libdir_separator=
15888   hardcode_minus_L=no
15889   hardcode_shlibpath_var=unsupported
15890   inherit_rpath=no
15891   link_all_deplibs=unknown
15892   module_cmds=
15893   module_expsym_cmds=
15894   old_archive_from_new_cmds=
15895   old_archive_from_expsyms_cmds=
15896   thread_safe_flag_spec=
15897   whole_archive_flag_spec=
15898   # include_expsyms should be a list of space-separated symbols to be *always*
15899   # included in the symbol list
15900   include_expsyms=
15901   # exclude_expsyms can be an extended regexp of symbols to exclude
15902   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15903   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15904   # as well as any symbol that contains `d'.
15905   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15906   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15907   # platforms (ab)use it in PIC code, but their linkers get confused if
15908   # the symbol is explicitly referenced.  Since portable code cannot
15909   # rely on this symbol name, it's probably fine to never include it in
15910   # preloaded symbol tables.
15911   # Exclude shared library initialization/finalization symbols.
15912   extract_expsyms_cmds=
15913
15914   case $host_os in
15915   cygwin* | mingw* | pw32* | cegcc*)
15916     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15917     # When not using gcc, we currently assume that we are using
15918     # Microsoft Visual C++.
15919     if test "$GCC" != yes; then
15920       with_gnu_ld=no
15921     fi
15922     ;;
15923   interix*)
15924     # we just hope/assume this is gcc and not c89 (= MSVC++)
15925     with_gnu_ld=yes
15926     ;;
15927   openbsd*)
15928     with_gnu_ld=no
15929     ;;
15930   esac
15931
15932   ld_shlibs=yes
15933
15934   # On some targets, GNU ld is compatible enough with the native linker
15935   # that we're better off using the native interface for both.
15936   lt_use_gnu_ld_interface=no
15937   if test "$with_gnu_ld" = yes; then
15938     case $host_os in
15939       aix*)
15940         # The AIX port of GNU ld has always aspired to compatibility
15941         # with the native linker.  However, as the warning in the GNU ld
15942         # block says, versions before 2.19.5* couldn't really create working
15943         # shared libraries, regardless of the interface used.
15944         case `$LD -v 2>&1` in
15945           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15946           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15947           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15948           *)
15949             lt_use_gnu_ld_interface=yes
15950             ;;
15951         esac
15952         ;;
15953       *)
15954         lt_use_gnu_ld_interface=yes
15955         ;;
15956     esac
15957   fi
15958
15959   if test "$lt_use_gnu_ld_interface" = yes; then
15960     # If archive_cmds runs LD, not CC, wlarc should be empty
15961     wlarc='${wl}'
15962
15963     # Set some defaults for GNU ld with shared library support. These
15964     # are reset later if shared libraries are not supported. Putting them
15965     # here allows them to be overridden if necessary.
15966     runpath_var=LD_RUN_PATH
15967     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15968     export_dynamic_flag_spec='${wl}--export-dynamic'
15969     # ancient GNU ld didn't support --whole-archive et. al.
15970     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15971       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15972     else
15973       whole_archive_flag_spec=
15974     fi
15975     supports_anon_versioning=no
15976     case `$LD -v 2>&1` in
15977       *GNU\ gold*) supports_anon_versioning=yes ;;
15978       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15979       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15980       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15981       *\ 2.11.*) ;; # other 2.11 versions
15982       *) supports_anon_versioning=yes ;;
15983     esac
15984
15985     # See if GNU ld supports shared libraries.
15986     case $host_os in
15987     aix[3-9]*)
15988       # On AIX/PPC, the GNU linker is very broken
15989       if test "$host_cpu" != ia64; then
15990         ld_shlibs=no
15991         cat <<_LT_EOF 1>&2
15992
15993 *** Warning: the GNU linker, at least up to release 2.19, is reported
15994 *** to be unable to reliably create shared libraries on AIX.
15995 *** Therefore, libtool is disabling shared libraries support.  If you
15996 *** really care for shared libraries, you may want to install binutils
15997 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15998 *** You will then need to restart the configuration process.
15999
16000 _LT_EOF
16001       fi
16002       ;;
16003
16004     amigaos*)
16005       case $host_cpu in
16006       powerpc)
16007             # see comment about AmigaOS4 .so support
16008             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009             archive_expsym_cmds=''
16010         ;;
16011       m68k)
16012             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)'
16013             hardcode_libdir_flag_spec='-L$libdir'
16014             hardcode_minus_L=yes
16015         ;;
16016       esac
16017       ;;
16018
16019     beos*)
16020       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16021         allow_undefined_flag=unsupported
16022         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16023         # support --undefined.  This deserves some investigation.  FIXME
16024         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025       else
16026         ld_shlibs=no
16027       fi
16028       ;;
16029
16030     cygwin* | mingw* | pw32* | cegcc*)
16031       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16032       # as there is no search path for DLLs.
16033       hardcode_libdir_flag_spec='-L$libdir'
16034       export_dynamic_flag_spec='${wl}--export-all-symbols'
16035       allow_undefined_flag=unsupported
16036       always_export_symbols=no
16037       enable_shared_with_static_runtimes=yes
16038       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16039       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16040
16041       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16042         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16043         # If the export-symbols file already is a .def file (1st line
16044         # is EXPORTS), use it as is; otherwise, prepend...
16045         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16046           cp $export_symbols $output_objdir/$soname.def;
16047         else
16048           echo EXPORTS > $output_objdir/$soname.def;
16049           cat $export_symbols >> $output_objdir/$soname.def;
16050         fi~
16051         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16052       else
16053         ld_shlibs=no
16054       fi
16055       ;;
16056
16057     haiku*)
16058       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16059       link_all_deplibs=yes
16060       ;;
16061
16062     interix[3-9]*)
16063       hardcode_direct=no
16064       hardcode_shlibpath_var=no
16065       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16066       export_dynamic_flag_spec='${wl}-E'
16067       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16068       # Instead, shared libraries are loaded at an image base (0x10000000 by
16069       # default) and relocated if they conflict, which is a slow very memory
16070       # consuming and fragmenting process.  To avoid this, we pick a random,
16071       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16072       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16073       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16074       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'
16075       ;;
16076
16077     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16078       tmp_diet=no
16079       if test "$host_os" = linux-dietlibc; then
16080         case $cc_basename in
16081           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16082         esac
16083       fi
16084       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16085          && test "$tmp_diet" = no
16086       then
16087         tmp_addflag=' $pic_flag'
16088         tmp_sharedflag='-shared'
16089         case $cc_basename,$host_cpu in
16090         pgcc*)                          # Portland Group C compiler
16091           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16092           tmp_addflag=' $pic_flag'
16093           ;;
16094         pgf77* | pgf90* | pgf95* | pgfortran*)
16095                                         # Portland Group f77 and f90 compilers
16096           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16097           tmp_addflag=' $pic_flag -Mnomain' ;;
16098         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16099           tmp_addflag=' -i_dynamic' ;;
16100         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16101           tmp_addflag=' -i_dynamic -nofor_main' ;;
16102         ifc* | ifort*)                  # Intel Fortran compiler
16103           tmp_addflag=' -nofor_main' ;;
16104         lf95*)                          # Lahey Fortran 8.1
16105           whole_archive_flag_spec=
16106           tmp_sharedflag='--shared' ;;
16107         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16108           tmp_sharedflag='-qmkshrobj'
16109           tmp_addflag= ;;
16110         nvcc*)  # Cuda Compiler Driver 2.2
16111           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16112           compiler_needs_object=yes
16113           ;;
16114         esac
16115         case `$CC -V 2>&1 | sed 5q` in
16116         *Sun\ C*)                       # Sun C 5.9
16117           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16118           compiler_needs_object=yes
16119           tmp_sharedflag='-G' ;;
16120         *Sun\ F*)                       # Sun Fortran 8.3
16121           tmp_sharedflag='-G' ;;
16122         esac
16123         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124
16125         if test "x$supports_anon_versioning" = xyes; then
16126           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16127             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16128             echo "local: *; };" >> $output_objdir/$libname.ver~
16129             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16130         fi
16131
16132         case $cc_basename in
16133         xlf* | bgf* | bgxlf* | mpixlf*)
16134           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16135           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16136           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16137           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16138           if test "x$supports_anon_versioning" = xyes; then
16139             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16140               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16141               echo "local: *; };" >> $output_objdir/$libname.ver~
16142               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16143           fi
16144           ;;
16145         esac
16146       else
16147         ld_shlibs=no
16148       fi
16149       ;;
16150
16151     netbsd*)
16152       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16153         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16154         wlarc=
16155       else
16156         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16157         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16158       fi
16159       ;;
16160
16161     solaris*)
16162       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16163         ld_shlibs=no
16164         cat <<_LT_EOF 1>&2
16165
16166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16167 *** create shared libraries on Solaris systems.  Therefore, libtool
16168 *** is disabling shared libraries support.  We urge you to upgrade GNU
16169 *** binutils to release 2.9.1 or newer.  Another option is to modify
16170 *** your PATH or compiler configuration so that the native linker is
16171 *** used, and then restart.
16172
16173 _LT_EOF
16174       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16175         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16177       else
16178         ld_shlibs=no
16179       fi
16180       ;;
16181
16182     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16183       case `$LD -v 2>&1` in
16184         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16185         ld_shlibs=no
16186         cat <<_LT_EOF 1>&2
16187
16188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16189 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16190 *** is disabling shared libraries support.  We urge you to upgrade GNU
16191 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16192 *** your PATH or compiler configuration so that the native linker is
16193 *** used, and then restart.
16194
16195 _LT_EOF
16196         ;;
16197         *)
16198           # For security reasons, it is highly recommended that you always
16199           # use absolute paths for naming shared libraries, and exclude the
16200           # DT_RUNPATH tag from executables and libraries.  But doing so
16201           # requires that you compile everything twice, which is a pain.
16202           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16203             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16204             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16206           else
16207             ld_shlibs=no
16208           fi
16209         ;;
16210       esac
16211       ;;
16212
16213     sunos4*)
16214       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16215       wlarc=
16216       hardcode_direct=yes
16217       hardcode_shlibpath_var=no
16218       ;;
16219
16220     *)
16221       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16222         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16223         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16224       else
16225         ld_shlibs=no
16226       fi
16227       ;;
16228     esac
16229
16230     if test "$ld_shlibs" = no; then
16231       runpath_var=
16232       hardcode_libdir_flag_spec=
16233       export_dynamic_flag_spec=
16234       whole_archive_flag_spec=
16235     fi
16236   else
16237     # PORTME fill in a description of your system's linker (not GNU ld)
16238     case $host_os in
16239     aix3*)
16240       allow_undefined_flag=unsupported
16241       always_export_symbols=yes
16242       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'
16243       # Note: this linker hardcodes the directories in LIBPATH if there
16244       # are no directories specified by -L.
16245       hardcode_minus_L=yes
16246       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16247         # Neither direct hardcoding nor static linking is supported with a
16248         # broken collect2.
16249         hardcode_direct=unsupported
16250       fi
16251       ;;
16252
16253     aix[4-9]*)
16254       if test "$host_cpu" = ia64; then
16255         # On IA64, the linker does run time linking by default, so we don't
16256         # have to do anything special.
16257         aix_use_runtimelinking=no
16258         exp_sym_flag='-Bexport'
16259         no_entry_flag=""
16260       else
16261         # If we're using GNU nm, then we don't want the "-C" option.
16262         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16263         # Also, AIX nm treats weak defined symbols like other global
16264         # defined symbols, whereas GNU nm marks them as "W".
16265         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16266           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16267         else
16268           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'
16269         fi
16270         aix_use_runtimelinking=no
16271
16272         # Test if we are trying to use run time linking or normal
16273         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16274         # need to do runtime linking.
16275         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16276           for ld_flag in $LDFLAGS; do
16277           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16278             aix_use_runtimelinking=yes
16279             break
16280           fi
16281           done
16282           ;;
16283         esac
16284
16285         exp_sym_flag='-bexport'
16286         no_entry_flag='-bnoentry'
16287       fi
16288
16289       # When large executables or shared objects are built, AIX ld can
16290       # have problems creating the table of contents.  If linking a library
16291       # or program results in "error TOC overflow" add -mminimal-toc to
16292       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16293       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16294
16295       archive_cmds=''
16296       hardcode_direct=yes
16297       hardcode_direct_absolute=yes
16298       hardcode_libdir_separator=':'
16299       link_all_deplibs=yes
16300       file_list_spec='${wl}-f,'
16301
16302       if test "$GCC" = yes; then
16303         case $host_os in aix4.[012]|aix4.[012].*)
16304         # We only want to do this on AIX 4.2 and lower, the check
16305         # below for broken collect2 doesn't work under 4.3+
16306           collect2name=`${CC} -print-prog-name=collect2`
16307           if test -f "$collect2name" &&
16308            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16309           then
16310           # We have reworked collect2
16311           :
16312           else
16313           # We have old collect2
16314           hardcode_direct=unsupported
16315           # It fails to find uninstalled libraries when the uninstalled
16316           # path is not listed in the libpath.  Setting hardcode_minus_L
16317           # to unsupported forces relinking
16318           hardcode_minus_L=yes
16319           hardcode_libdir_flag_spec='-L$libdir'
16320           hardcode_libdir_separator=
16321           fi
16322           ;;
16323         esac
16324         shared_flag='-shared'
16325         if test "$aix_use_runtimelinking" = yes; then
16326           shared_flag="$shared_flag "'${wl}-G'
16327         fi
16328       else
16329         # not using gcc
16330         if test "$host_cpu" = ia64; then
16331         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16332         # chokes on -Wl,-G. The following line is correct:
16333           shared_flag='-G'
16334         else
16335           if test "$aix_use_runtimelinking" = yes; then
16336             shared_flag='${wl}-G'
16337           else
16338             shared_flag='${wl}-bM:SRE'
16339           fi
16340         fi
16341       fi
16342
16343       export_dynamic_flag_spec='${wl}-bexpall'
16344       # It seems that -bexpall does not export symbols beginning with
16345       # underscore (_), so it is better to generate a list of symbols to export.
16346       always_export_symbols=yes
16347       if test "$aix_use_runtimelinking" = yes; then
16348         # Warning - without using the other runtime loading flags (-brtl),
16349         # -berok will link without error, but may produce a broken library.
16350         allow_undefined_flag='-berok'
16351         # Determine the default libpath from the value encoded in an
16352         # empty executable.
16353         if test "${lt_cv_aix_libpath+set}" = set; then
16354   aix_libpath=$lt_cv_aix_libpath
16355 else
16356   if ${lt_cv_aix_libpath_+:} false; then :
16357   $as_echo_n "(cached) " >&6
16358 else
16359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h.  */
16361
16362 int
16363 main ()
16364 {
16365
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 if ac_fn_c_try_link "$LINENO"; then :
16371
16372   lt_aix_libpath_sed='
16373       /Import File Strings/,/^$/ {
16374           /^0/ {
16375               s/^0  *\([^ ]*\) *$/\1/
16376               p
16377           }
16378       }'
16379   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16380   # Check for a 64-bit object if we didn't find anything.
16381   if test -z "$lt_cv_aix_libpath_"; then
16382     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16383   fi
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext \
16386     conftest$ac_exeext conftest.$ac_ext
16387   if test -z "$lt_cv_aix_libpath_"; then
16388     lt_cv_aix_libpath_="/usr/lib:/lib"
16389   fi
16390
16391 fi
16392
16393   aix_libpath=$lt_cv_aix_libpath_
16394 fi
16395
16396         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16397         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16398       else
16399         if test "$host_cpu" = ia64; then
16400           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16401           allow_undefined_flag="-z nodefs"
16402           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"
16403         else
16404          # Determine the default libpath from the value encoded in an
16405          # empty executable.
16406          if test "${lt_cv_aix_libpath+set}" = set; then
16407   aix_libpath=$lt_cv_aix_libpath
16408 else
16409   if ${lt_cv_aix_libpath_+:} false; then :
16410   $as_echo_n "(cached) " >&6
16411 else
16412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h.  */
16414
16415 int
16416 main ()
16417 {
16418
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 if ac_fn_c_try_link "$LINENO"; then :
16424
16425   lt_aix_libpath_sed='
16426       /Import File Strings/,/^$/ {
16427           /^0/ {
16428               s/^0  *\([^ ]*\) *$/\1/
16429               p
16430           }
16431       }'
16432   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16433   # Check for a 64-bit object if we didn't find anything.
16434   if test -z "$lt_cv_aix_libpath_"; then
16435     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16436   fi
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext \
16439     conftest$ac_exeext conftest.$ac_ext
16440   if test -z "$lt_cv_aix_libpath_"; then
16441     lt_cv_aix_libpath_="/usr/lib:/lib"
16442   fi
16443
16444 fi
16445
16446   aix_libpath=$lt_cv_aix_libpath_
16447 fi
16448
16449          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16450           # Warning - without using the other run time loading flags,
16451           # -berok will link without error, but may produce a broken library.
16452           no_undefined_flag=' ${wl}-bernotok'
16453           allow_undefined_flag=' ${wl}-berok'
16454           if test "$with_gnu_ld" = yes; then
16455             # We only use this code for GNU lds that support --whole-archive.
16456             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16457           else
16458             # Exported symbols can be pulled into shared objects from archives
16459             whole_archive_flag_spec='$convenience'
16460           fi
16461           archive_cmds_need_lc=yes
16462           # This is similar to how AIX traditionally builds its shared libraries.
16463           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'
16464         fi
16465       fi
16466       ;;
16467
16468     amigaos*)
16469       case $host_cpu in
16470       powerpc)
16471             # see comment about AmigaOS4 .so support
16472             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473             archive_expsym_cmds=''
16474         ;;
16475       m68k)
16476             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)'
16477             hardcode_libdir_flag_spec='-L$libdir'
16478             hardcode_minus_L=yes
16479         ;;
16480       esac
16481       ;;
16482
16483     bsdi[45]*)
16484       export_dynamic_flag_spec=-rdynamic
16485       ;;
16486
16487     cygwin* | mingw* | pw32* | cegcc*)
16488       # When not using gcc, we currently assume that we are using
16489       # Microsoft Visual C++.
16490       # hardcode_libdir_flag_spec is actually meaningless, as there is
16491       # no search path for DLLs.
16492       case $cc_basename in
16493       cl*)
16494         # Native MSVC
16495         hardcode_libdir_flag_spec=' '
16496         allow_undefined_flag=unsupported
16497         always_export_symbols=yes
16498         file_list_spec='@'
16499         # Tell ltmain to make .lib files, not .a files.
16500         libext=lib
16501         # Tell ltmain to make .dll files, not .so files.
16502         shrext_cmds=".dll"
16503         # FIXME: Setting linknames here is a bad hack.
16504         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16505         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16506             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16507           else
16508             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16509           fi~
16510           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16511           linknames='
16512         # The linker will not automatically build a static lib if we build a DLL.
16513         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16514         enable_shared_with_static_runtimes=yes
16515         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16516         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16517         # Don't use ranlib
16518         old_postinstall_cmds='chmod 644 $oldlib'
16519         postlink_cmds='lt_outputfile="@OUTPUT@"~
16520           lt_tool_outputfile="@TOOL_OUTPUT@"~
16521           case $lt_outputfile in
16522             *.exe|*.EXE) ;;
16523             *)
16524               lt_outputfile="$lt_outputfile.exe"
16525               lt_tool_outputfile="$lt_tool_outputfile.exe"
16526               ;;
16527           esac~
16528           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16529             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16530             $RM "$lt_outputfile.manifest";
16531           fi'
16532         ;;
16533       *)
16534         # Assume MSVC wrapper
16535         hardcode_libdir_flag_spec=' '
16536         allow_undefined_flag=unsupported
16537         # Tell ltmain to make .lib files, not .a files.
16538         libext=lib
16539         # Tell ltmain to make .dll files, not .so files.
16540         shrext_cmds=".dll"
16541         # FIXME: Setting linknames here is a bad hack.
16542         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16543         # The linker will automatically build a .lib file if we build a DLL.
16544         old_archive_from_new_cmds='true'
16545         # FIXME: Should let the user specify the lib program.
16546         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16547         enable_shared_with_static_runtimes=yes
16548         ;;
16549       esac
16550       ;;
16551
16552     darwin* | rhapsody*)
16553
16554
16555   archive_cmds_need_lc=no
16556   hardcode_direct=no
16557   hardcode_automatic=yes
16558   hardcode_shlibpath_var=unsupported
16559   if test "$lt_cv_ld_force_load" = "yes"; then
16560     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16561
16562   else
16563     whole_archive_flag_spec=''
16564   fi
16565   link_all_deplibs=yes
16566   allow_undefined_flag="$_lt_dar_allow_undefined"
16567   case $cc_basename in
16568      ifort*) _lt_dar_can_shared=yes ;;
16569      *) _lt_dar_can_shared=$GCC ;;
16570   esac
16571   if test "$_lt_dar_can_shared" = "yes"; then
16572     output_verbose_link_cmd=func_echo_all
16573     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16574     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16575     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}"
16576     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}"
16577
16578   else
16579   ld_shlibs=no
16580   fi
16581
16582       ;;
16583
16584     dgux*)
16585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586       hardcode_libdir_flag_spec='-L$libdir'
16587       hardcode_shlibpath_var=no
16588       ;;
16589
16590     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16591     # support.  Future versions do this automatically, but an explicit c++rt0.o
16592     # does not break anything, and helps significantly (at the cost of a little
16593     # extra space).
16594     freebsd2.2*)
16595       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16596       hardcode_libdir_flag_spec='-R$libdir'
16597       hardcode_direct=yes
16598       hardcode_shlibpath_var=no
16599       ;;
16600
16601     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16602     freebsd2.*)
16603       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16604       hardcode_direct=yes
16605       hardcode_minus_L=yes
16606       hardcode_shlibpath_var=no
16607       ;;
16608
16609     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16610     freebsd* | dragonfly*)
16611       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16612       hardcode_libdir_flag_spec='-R$libdir'
16613       hardcode_direct=yes
16614       hardcode_shlibpath_var=no
16615       ;;
16616
16617     hpux9*)
16618       if test "$GCC" = yes; then
16619         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16620       else
16621         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'
16622       fi
16623       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16624       hardcode_libdir_separator=:
16625       hardcode_direct=yes
16626
16627       # hardcode_minus_L: Not really in the search PATH,
16628       # but as the default location of the library.
16629       hardcode_minus_L=yes
16630       export_dynamic_flag_spec='${wl}-E'
16631       ;;
16632
16633     hpux10*)
16634       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16635         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16636       else
16637         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16638       fi
16639       if test "$with_gnu_ld" = no; then
16640         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16641         hardcode_libdir_separator=:
16642         hardcode_direct=yes
16643         hardcode_direct_absolute=yes
16644         export_dynamic_flag_spec='${wl}-E'
16645         # hardcode_minus_L: Not really in the search PATH,
16646         # but as the default location of the library.
16647         hardcode_minus_L=yes
16648       fi
16649       ;;
16650
16651     hpux11*)
16652       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16653         case $host_cpu in
16654         hppa*64*)
16655           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16656           ;;
16657         ia64*)
16658           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16659           ;;
16660         *)
16661           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16662           ;;
16663         esac
16664       else
16665         case $host_cpu in
16666         hppa*64*)
16667           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16668           ;;
16669         ia64*)
16670           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16671           ;;
16672         *)
16673
16674           # Older versions of the 11.00 compiler do not understand -b yet
16675           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16676           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16677 $as_echo_n "checking if $CC understands -b... " >&6; }
16678 if ${lt_cv_prog_compiler__b+:} false; then :
16679   $as_echo_n "(cached) " >&6
16680 else
16681   lt_cv_prog_compiler__b=no
16682    save_LDFLAGS="$LDFLAGS"
16683    LDFLAGS="$LDFLAGS -b"
16684    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16685    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16686      # The linker can only warn and ignore the option if not recognized
16687      # So say no if there are warnings
16688      if test -s conftest.err; then
16689        # Append any errors to the config.log.
16690        cat conftest.err 1>&5
16691        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16692        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16693        if diff conftest.exp conftest.er2 >/dev/null; then
16694          lt_cv_prog_compiler__b=yes
16695        fi
16696      else
16697        lt_cv_prog_compiler__b=yes
16698      fi
16699    fi
16700    $RM -r conftest*
16701    LDFLAGS="$save_LDFLAGS"
16702
16703 fi
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16705 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16706
16707 if test x"$lt_cv_prog_compiler__b" = xyes; then
16708     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16709 else
16710     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16711 fi
16712
16713           ;;
16714         esac
16715       fi
16716       if test "$with_gnu_ld" = no; then
16717         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16718         hardcode_libdir_separator=:
16719
16720         case $host_cpu in
16721         hppa*64*|ia64*)
16722           hardcode_direct=no
16723           hardcode_shlibpath_var=no
16724           ;;
16725         *)
16726           hardcode_direct=yes
16727           hardcode_direct_absolute=yes
16728           export_dynamic_flag_spec='${wl}-E'
16729
16730           # hardcode_minus_L: Not really in the search PATH,
16731           # but as the default location of the library.
16732           hardcode_minus_L=yes
16733           ;;
16734         esac
16735       fi
16736       ;;
16737
16738     irix5* | irix6* | nonstopux*)
16739       if test "$GCC" = yes; then
16740         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16741         # Try to use the -exported_symbol ld option, if it does not
16742         # work, assume that -exports_file does not work either and
16743         # implicitly export all symbols.
16744         # This should be the same for all languages, so no per-tag cache variable.
16745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16746 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16747 if ${lt_cv_irix_exported_symbol+:} false; then :
16748   $as_echo_n "(cached) " >&6
16749 else
16750   save_LDFLAGS="$LDFLAGS"
16751            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16752            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h.  */
16754 int foo (void) { return 0; }
16755 _ACEOF
16756 if ac_fn_c_try_link "$LINENO"; then :
16757   lt_cv_irix_exported_symbol=yes
16758 else
16759   lt_cv_irix_exported_symbol=no
16760 fi
16761 rm -f core conftest.err conftest.$ac_objext \
16762     conftest$ac_exeext conftest.$ac_ext
16763            LDFLAGS="$save_LDFLAGS"
16764 fi
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16766 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16767         if test "$lt_cv_irix_exported_symbol" = yes; then
16768           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16769         fi
16770       else
16771         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16772         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16773       fi
16774       archive_cmds_need_lc='no'
16775       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16776       hardcode_libdir_separator=:
16777       inherit_rpath=yes
16778       link_all_deplibs=yes
16779       ;;
16780
16781     netbsd*)
16782       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16783         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16784       else
16785         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16786       fi
16787       hardcode_libdir_flag_spec='-R$libdir'
16788       hardcode_direct=yes
16789       hardcode_shlibpath_var=no
16790       ;;
16791
16792     newsos6)
16793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794       hardcode_direct=yes
16795       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16796       hardcode_libdir_separator=:
16797       hardcode_shlibpath_var=no
16798       ;;
16799
16800     *nto* | *qnx*)
16801       ;;
16802
16803     openbsd*)
16804       if test -f /usr/libexec/ld.so; then
16805         hardcode_direct=yes
16806         hardcode_shlibpath_var=no
16807         hardcode_direct_absolute=yes
16808         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16809           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16810           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16811           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16812           export_dynamic_flag_spec='${wl}-E'
16813         else
16814           case $host_os in
16815            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16816              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16817              hardcode_libdir_flag_spec='-R$libdir'
16818              ;;
16819            *)
16820              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16821              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16822              ;;
16823           esac
16824         fi
16825       else
16826         ld_shlibs=no
16827       fi
16828       ;;
16829
16830     os2*)
16831       hardcode_libdir_flag_spec='-L$libdir'
16832       hardcode_minus_L=yes
16833       allow_undefined_flag=unsupported
16834       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'
16835       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16836       ;;
16837
16838     osf3*)
16839       if test "$GCC" = yes; then
16840         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16841         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16842       else
16843         allow_undefined_flag=' -expect_unresolved \*'
16844         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16845       fi
16846       archive_cmds_need_lc='no'
16847       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16848       hardcode_libdir_separator=:
16849       ;;
16850
16851     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16852       if test "$GCC" = yes; then
16853         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16854         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16855         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16856       else
16857         allow_undefined_flag=' -expect_unresolved \*'
16858         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16859         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~
16860         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16861
16862         # Both c and cxx compiler support -rpath directly
16863         hardcode_libdir_flag_spec='-rpath $libdir'
16864       fi
16865       archive_cmds_need_lc='no'
16866       hardcode_libdir_separator=:
16867       ;;
16868
16869     solaris*)
16870       no_undefined_flag=' -z defs'
16871       if test "$GCC" = yes; then
16872         wlarc='${wl}'
16873         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16874         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16875           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16876       else
16877         case `$CC -V 2>&1` in
16878         *"Compilers 5.0"*)
16879           wlarc=''
16880           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16882           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16883           ;;
16884         *)
16885           wlarc='${wl}'
16886           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16887           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16888           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16889           ;;
16890         esac
16891       fi
16892       hardcode_libdir_flag_spec='-R$libdir'
16893       hardcode_shlibpath_var=no
16894       case $host_os in
16895       solaris2.[0-5] | solaris2.[0-5].*) ;;
16896       *)
16897         # The compiler driver will combine and reorder linker options,
16898         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16899         # but is careful enough not to reorder.
16900         # Supported since Solaris 2.6 (maybe 2.5.1?)
16901         if test "$GCC" = yes; then
16902           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16903         else
16904           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16905         fi
16906         ;;
16907       esac
16908       link_all_deplibs=yes
16909       ;;
16910
16911     sunos4*)
16912       if test "x$host_vendor" = xsequent; then
16913         # Use $CC to link under sequent, because it throws in some extra .o
16914         # files that make .init and .fini sections work.
16915         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16916       else
16917         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16918       fi
16919       hardcode_libdir_flag_spec='-L$libdir'
16920       hardcode_direct=yes
16921       hardcode_minus_L=yes
16922       hardcode_shlibpath_var=no
16923       ;;
16924
16925     sysv4)
16926       case $host_vendor in
16927         sni)
16928           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16929           hardcode_direct=yes # is this really true???
16930         ;;
16931         siemens)
16932           ## LD is ld it makes a PLAMLIB
16933           ## CC just makes a GrossModule.
16934           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16935           reload_cmds='$CC -r -o $output$reload_objs'
16936           hardcode_direct=no
16937         ;;
16938         motorola)
16939           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16940           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16941         ;;
16942       esac
16943       runpath_var='LD_RUN_PATH'
16944       hardcode_shlibpath_var=no
16945       ;;
16946
16947     sysv4.3*)
16948       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949       hardcode_shlibpath_var=no
16950       export_dynamic_flag_spec='-Bexport'
16951       ;;
16952
16953     sysv4*MP*)
16954       if test -d /usr/nec; then
16955         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16956         hardcode_shlibpath_var=no
16957         runpath_var=LD_RUN_PATH
16958         hardcode_runpath_var=yes
16959         ld_shlibs=yes
16960       fi
16961       ;;
16962
16963     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16964       no_undefined_flag='${wl}-z,text'
16965       archive_cmds_need_lc=no
16966       hardcode_shlibpath_var=no
16967       runpath_var='LD_RUN_PATH'
16968
16969       if test "$GCC" = yes; then
16970         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16971         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16972       else
16973         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16974         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16975       fi
16976       ;;
16977
16978     sysv5* | sco3.2v5* | sco5v6*)
16979       # Note: We can NOT use -z defs as we might desire, because we do not
16980       # link with -lc, and that would cause any symbols used from libc to
16981       # always be unresolved, which means just about no library would
16982       # ever link correctly.  If we're not using GNU ld we use -z text
16983       # though, which does catch some bad symbols but isn't as heavy-handed
16984       # as -z defs.
16985       no_undefined_flag='${wl}-z,text'
16986       allow_undefined_flag='${wl}-z,nodefs'
16987       archive_cmds_need_lc=no
16988       hardcode_shlibpath_var=no
16989       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16990       hardcode_libdir_separator=':'
16991       link_all_deplibs=yes
16992       export_dynamic_flag_spec='${wl}-Bexport'
16993       runpath_var='LD_RUN_PATH'
16994
16995       if test "$GCC" = yes; then
16996         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16997         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16998       else
16999         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17000         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17001       fi
17002       ;;
17003
17004     uts4*)
17005       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006       hardcode_libdir_flag_spec='-L$libdir'
17007       hardcode_shlibpath_var=no
17008       ;;
17009
17010     *)
17011       ld_shlibs=no
17012       ;;
17013     esac
17014
17015     if test x$host_vendor = xsni; then
17016       case $host in
17017       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17018         export_dynamic_flag_spec='${wl}-Blargedynsym'
17019         ;;
17020       esac
17021     fi
17022   fi
17023
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17025 $as_echo "$ld_shlibs" >&6; }
17026 test "$ld_shlibs" = no && can_build_shared=no
17027
17028 with_gnu_ld=$with_gnu_ld
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044 #
17045 # Do we need to explicitly link libc?
17046 #
17047 case "x$archive_cmds_need_lc" in
17048 x|xyes)
17049   # Assume -lc should be added
17050   archive_cmds_need_lc=yes
17051
17052   if test "$enable_shared" = yes && test "$GCC" = yes; then
17053     case $archive_cmds in
17054     *'~'*)
17055       # FIXME: we may have to deal with multi-command sequences.
17056       ;;
17057     '$CC '*)
17058       # Test whether the compiler implicitly links with -lc since on some
17059       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17060       # to ld, don't add -lc before -lgcc.
17061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17063 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17064   $as_echo_n "(cached) " >&6
17065 else
17066   $RM conftest*
17067         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17068
17069         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17070   (eval $ac_compile) 2>&5
17071   ac_status=$?
17072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17073   test $ac_status = 0; } 2>conftest.err; then
17074           soname=conftest
17075           lib=conftest
17076           libobjs=conftest.$ac_objext
17077           deplibs=
17078           wl=$lt_prog_compiler_wl
17079           pic_flag=$lt_prog_compiler_pic
17080           compiler_flags=-v
17081           linker_flags=-v
17082           verstring=
17083           output_objdir=.
17084           libname=conftest
17085           lt_save_allow_undefined_flag=$allow_undefined_flag
17086           allow_undefined_flag=
17087           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17088   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17089   ac_status=$?
17090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17091   test $ac_status = 0; }
17092           then
17093             lt_cv_archive_cmds_need_lc=no
17094           else
17095             lt_cv_archive_cmds_need_lc=yes
17096           fi
17097           allow_undefined_flag=$lt_save_allow_undefined_flag
17098         else
17099           cat conftest.err 1>&5
17100         fi
17101         $RM conftest*
17102
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17105 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17106       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17107       ;;
17108     esac
17109   fi
17110   ;;
17111 esac
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17266
17267 if test "$GCC" = yes; then
17268   case $host_os in
17269     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17270     *) lt_awk_arg="/^libraries:/" ;;
17271   esac
17272   case $host_os in
17273     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17274     *) lt_sed_strip_eq="s,=/,/,g" ;;
17275   esac
17276   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17277   case $lt_search_path_spec in
17278   *\;*)
17279     # if the path contains ";" then we assume it to be the separator
17280     # otherwise default to the standard path separator (i.e. ":") - it is
17281     # assumed that no part of a normal pathname contains ";" but that should
17282     # okay in the real world where ";" in dirpaths is itself problematic.
17283     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17284     ;;
17285   *)
17286     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17287     ;;
17288   esac
17289   # Ok, now we have the path, separated by spaces, we can step through it
17290   # and add multilib dir if necessary.
17291   lt_tmp_lt_search_path_spec=
17292   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17293   for lt_sys_path in $lt_search_path_spec; do
17294     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17295       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17296     else
17297       test -d "$lt_sys_path" && \
17298         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17299     fi
17300   done
17301   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17302 BEGIN {RS=" "; FS="/|\n";} {
17303   lt_foo="";
17304   lt_count=0;
17305   for (lt_i = NF; lt_i > 0; lt_i--) {
17306     if ($lt_i != "" && $lt_i != ".") {
17307       if ($lt_i == "..") {
17308         lt_count++;
17309       } else {
17310         if (lt_count == 0) {
17311           lt_foo="/" $lt_i lt_foo;
17312         } else {
17313           lt_count--;
17314         }
17315       }
17316     }
17317   }
17318   if (lt_foo != "") { lt_freq[lt_foo]++; }
17319   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17320 }'`
17321   # AWK program above erroneously prepends '/' to C:/dos/paths
17322   # for these hosts.
17323   case $host_os in
17324     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17325       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17326   esac
17327   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17328 else
17329   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17330 fi
17331 library_names_spec=
17332 libname_spec='lib$name'
17333 soname_spec=
17334 shrext_cmds=".so"
17335 postinstall_cmds=
17336 postuninstall_cmds=
17337 finish_cmds=
17338 finish_eval=
17339 shlibpath_var=
17340 shlibpath_overrides_runpath=unknown
17341 version_type=none
17342 dynamic_linker="$host_os ld.so"
17343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17344 need_lib_prefix=unknown
17345 hardcode_into_libs=no
17346
17347 # when you set need_version to no, make sure it does not cause -set_version
17348 # flags to be left without arguments
17349 need_version=unknown
17350
17351 case $host_os in
17352 aix3*)
17353   version_type=linux # correct to gnu/linux during the next big refactor
17354   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17355   shlibpath_var=LIBPATH
17356
17357   # AIX 3 has no versioning support, so we append a major version to the name.
17358   soname_spec='${libname}${release}${shared_ext}$major'
17359   ;;
17360
17361 aix[4-9]*)
17362   version_type=linux # correct to gnu/linux during the next big refactor
17363   need_lib_prefix=no
17364   need_version=no
17365   hardcode_into_libs=yes
17366   if test "$host_cpu" = ia64; then
17367     # AIX 5 supports IA64
17368     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17369     shlibpath_var=LD_LIBRARY_PATH
17370   else
17371     # With GCC up to 2.95.x, collect2 would create an import file
17372     # for dependence libraries.  The import file would start with
17373     # the line `#! .'.  This would cause the generated library to
17374     # depend on `.', always an invalid library.  This was fixed in
17375     # development snapshots of GCC prior to 3.0.
17376     case $host_os in
17377       aix4 | aix4.[01] | aix4.[01].*)
17378       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17379            echo ' yes '
17380            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17381         :
17382       else
17383         can_build_shared=no
17384       fi
17385       ;;
17386     esac
17387     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17388     # soname into executable. Probably we can add versioning support to
17389     # collect2, so additional links can be useful in future.
17390     if test "$aix_use_runtimelinking" = yes; then
17391       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17392       # instead of lib<name>.a to let people know that these are not
17393       # typical AIX shared libraries.
17394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395     else
17396       # We preserve .a as extension for shared libraries through AIX4.2
17397       # and later when we are not doing run time linking.
17398       library_names_spec='${libname}${release}.a $libname.a'
17399       soname_spec='${libname}${release}${shared_ext}$major'
17400     fi
17401     shlibpath_var=LIBPATH
17402   fi
17403   ;;
17404
17405 amigaos*)
17406   case $host_cpu in
17407   powerpc)
17408     # Since July 2007 AmigaOS4 officially supports .so libraries.
17409     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17411     ;;
17412   m68k)
17413     library_names_spec='$libname.ixlibrary $libname.a'
17414     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17415     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
17416     ;;
17417   esac
17418   ;;
17419
17420 beos*)
17421   library_names_spec='${libname}${shared_ext}'
17422   dynamic_linker="$host_os ld.so"
17423   shlibpath_var=LIBRARY_PATH
17424   ;;
17425
17426 bsdi[45]*)
17427   version_type=linux # correct to gnu/linux during the next big refactor
17428   need_version=no
17429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430   soname_spec='${libname}${release}${shared_ext}$major'
17431   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17432   shlibpath_var=LD_LIBRARY_PATH
17433   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17434   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17435   # the default ld.so.conf also contains /usr/contrib/lib and
17436   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17437   # libtool to hard-code these into programs
17438   ;;
17439
17440 cygwin* | mingw* | pw32* | cegcc*)
17441   version_type=windows
17442   shrext_cmds=".dll"
17443   need_version=no
17444   need_lib_prefix=no
17445
17446   case $GCC,$cc_basename in
17447   yes,*)
17448     # gcc
17449     library_names_spec='$libname.dll.a'
17450     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17451     postinstall_cmds='base_file=`basename \${file}`~
17452       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17453       dldir=$destdir/`dirname \$dlpath`~
17454       test -d \$dldir || mkdir -p \$dldir~
17455       $install_prog $dir/$dlname \$dldir/$dlname~
17456       chmod a+x \$dldir/$dlname~
17457       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17458         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17459       fi'
17460     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17461       dlpath=$dir/\$dldll~
17462        $RM \$dlpath'
17463     shlibpath_overrides_runpath=yes
17464
17465     case $host_os in
17466     cygwin*)
17467       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17468       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17469
17470       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17471       ;;
17472     mingw* | cegcc*)
17473       # MinGW DLLs use traditional 'lib' prefix
17474       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17475       ;;
17476     pw32*)
17477       # pw32 DLLs use 'pw' prefix rather than 'lib'
17478       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17479       ;;
17480     esac
17481     dynamic_linker='Win32 ld.exe'
17482     ;;
17483
17484   *,cl*)
17485     # Native MSVC
17486     libname_spec='$name'
17487     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17488     library_names_spec='${libname}.dll.lib'
17489
17490     case $build_os in
17491     mingw*)
17492       sys_lib_search_path_spec=
17493       lt_save_ifs=$IFS
17494       IFS=';'
17495       for lt_path in $LIB
17496       do
17497         IFS=$lt_save_ifs
17498         # Let DOS variable expansion print the short 8.3 style file name.
17499         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17500         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17501       done
17502       IFS=$lt_save_ifs
17503       # Convert to MSYS style.
17504       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17505       ;;
17506     cygwin*)
17507       # Convert to unix form, then to dos form, then back to unix form
17508       # but this time dos style (no spaces!) so that the unix form looks
17509       # like /cygdrive/c/PROGRA~1:/cygdr...
17510       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17511       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17512       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17513       ;;
17514     *)
17515       sys_lib_search_path_spec="$LIB"
17516       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17517         # It is most probably a Windows format PATH.
17518         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17519       else
17520         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17521       fi
17522       # FIXME: find the short name or the path components, as spaces are
17523       # common. (e.g. "Program Files" -> "PROGRA~1")
17524       ;;
17525     esac
17526
17527     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17528     postinstall_cmds='base_file=`basename \${file}`~
17529       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17530       dldir=$destdir/`dirname \$dlpath`~
17531       test -d \$dldir || mkdir -p \$dldir~
17532       $install_prog $dir/$dlname \$dldir/$dlname'
17533     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17534       dlpath=$dir/\$dldll~
17535        $RM \$dlpath'
17536     shlibpath_overrides_runpath=yes
17537     dynamic_linker='Win32 link.exe'
17538     ;;
17539
17540   *)
17541     # Assume MSVC wrapper
17542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17543     dynamic_linker='Win32 ld.exe'
17544     ;;
17545   esac
17546   # FIXME: first we should search . and the directory the executable is in
17547   shlibpath_var=PATH
17548   ;;
17549
17550 darwin* | rhapsody*)
17551   dynamic_linker="$host_os dyld"
17552   version_type=darwin
17553   need_lib_prefix=no
17554   need_version=no
17555   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17556   soname_spec='${libname}${release}${major}$shared_ext'
17557   shlibpath_overrides_runpath=yes
17558   shlibpath_var=DYLD_LIBRARY_PATH
17559   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17560
17561   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17562   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17563   ;;
17564
17565 dgux*)
17566   version_type=linux # correct to gnu/linux during the next big refactor
17567   need_lib_prefix=no
17568   need_version=no
17569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17570   soname_spec='${libname}${release}${shared_ext}$major'
17571   shlibpath_var=LD_LIBRARY_PATH
17572   ;;
17573
17574 freebsd* | dragonfly*)
17575   # DragonFly does not have aout.  When/if they implement a new
17576   # versioning mechanism, adjust this.
17577   if test -x /usr/bin/objformat; then
17578     objformat=`/usr/bin/objformat`
17579   else
17580     case $host_os in
17581     freebsd[23].*) objformat=aout ;;
17582     *) objformat=elf ;;
17583     esac
17584   fi
17585   version_type=freebsd-$objformat
17586   case $version_type in
17587     freebsd-elf*)
17588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17589       need_version=no
17590       need_lib_prefix=no
17591       ;;
17592     freebsd-*)
17593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17594       need_version=yes
17595       ;;
17596   esac
17597   shlibpath_var=LD_LIBRARY_PATH
17598   case $host_os in
17599   freebsd2.*)
17600     shlibpath_overrides_runpath=yes
17601     ;;
17602   freebsd3.[01]* | freebsdelf3.[01]*)
17603     shlibpath_overrides_runpath=yes
17604     hardcode_into_libs=yes
17605     ;;
17606   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17607   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17608     shlibpath_overrides_runpath=no
17609     hardcode_into_libs=yes
17610     ;;
17611   *) # from 4.6 on, and DragonFly
17612     shlibpath_overrides_runpath=yes
17613     hardcode_into_libs=yes
17614     ;;
17615   esac
17616   ;;
17617
17618 gnu*)
17619   version_type=linux # correct to gnu/linux during the next big refactor
17620   need_lib_prefix=no
17621   need_version=no
17622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17623   soname_spec='${libname}${release}${shared_ext}$major'
17624   shlibpath_var=LD_LIBRARY_PATH
17625   shlibpath_overrides_runpath=no
17626   hardcode_into_libs=yes
17627   ;;
17628
17629 haiku*)
17630   version_type=linux # correct to gnu/linux during the next big refactor
17631   need_lib_prefix=no
17632   need_version=no
17633   dynamic_linker="$host_os runtime_loader"
17634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17635   soname_spec='${libname}${release}${shared_ext}$major'
17636   shlibpath_var=LIBRARY_PATH
17637   shlibpath_overrides_runpath=yes
17638   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17639   hardcode_into_libs=yes
17640   ;;
17641
17642 hpux9* | hpux10* | hpux11*)
17643   # Give a soname corresponding to the major version so that dld.sl refuses to
17644   # link against other versions.
17645   version_type=sunos
17646   need_lib_prefix=no
17647   need_version=no
17648   case $host_cpu in
17649   ia64*)
17650     shrext_cmds='.so'
17651     hardcode_into_libs=yes
17652     dynamic_linker="$host_os dld.so"
17653     shlibpath_var=LD_LIBRARY_PATH
17654     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17656     soname_spec='${libname}${release}${shared_ext}$major'
17657     if test "X$HPUX_IA64_MODE" = X32; then
17658       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17659     else
17660       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17661     fi
17662     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17663     ;;
17664   hppa*64*)
17665     shrext_cmds='.sl'
17666     hardcode_into_libs=yes
17667     dynamic_linker="$host_os dld.sl"
17668     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17669     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671     soname_spec='${libname}${release}${shared_ext}$major'
17672     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17673     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17674     ;;
17675   *)
17676     shrext_cmds='.sl'
17677     dynamic_linker="$host_os dld.sl"
17678     shlibpath_var=SHLIB_PATH
17679     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681     soname_spec='${libname}${release}${shared_ext}$major'
17682     ;;
17683   esac
17684   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17685   postinstall_cmds='chmod 555 $lib'
17686   # or fails outright, so override atomically:
17687   install_override_mode=555
17688   ;;
17689
17690 interix[3-9]*)
17691   version_type=linux # correct to gnu/linux during the next big refactor
17692   need_lib_prefix=no
17693   need_version=no
17694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17695   soname_spec='${libname}${release}${shared_ext}$major'
17696   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17697   shlibpath_var=LD_LIBRARY_PATH
17698   shlibpath_overrides_runpath=no
17699   hardcode_into_libs=yes
17700   ;;
17701
17702 irix5* | irix6* | nonstopux*)
17703   case $host_os in
17704     nonstopux*) version_type=nonstopux ;;
17705     *)
17706         if test "$lt_cv_prog_gnu_ld" = yes; then
17707                 version_type=linux # correct to gnu/linux during the next big refactor
17708         else
17709                 version_type=irix
17710         fi ;;
17711   esac
17712   need_lib_prefix=no
17713   need_version=no
17714   soname_spec='${libname}${release}${shared_ext}$major'
17715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17716   case $host_os in
17717   irix5* | nonstopux*)
17718     libsuff= shlibsuff=
17719     ;;
17720   *)
17721     case $LD in # libtool.m4 will add one of these switches to LD
17722     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17723       libsuff= shlibsuff= libmagic=32-bit;;
17724     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17725       libsuff=32 shlibsuff=N32 libmagic=N32;;
17726     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17727       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17728     *) libsuff= shlibsuff= libmagic=never-match;;
17729     esac
17730     ;;
17731   esac
17732   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17733   shlibpath_overrides_runpath=no
17734   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17735   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17736   hardcode_into_libs=yes
17737   ;;
17738
17739 # No shared lib support for Linux oldld, aout, or coff.
17740 linux*oldld* | linux*aout* | linux*coff*)
17741   dynamic_linker=no
17742   ;;
17743
17744 # This must be glibc/ELF.
17745 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17746   version_type=linux # correct to gnu/linux during the next big refactor
17747   need_lib_prefix=no
17748   need_version=no
17749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750   soname_spec='${libname}${release}${shared_ext}$major'
17751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17752   shlibpath_var=LD_LIBRARY_PATH
17753   shlibpath_overrides_runpath=no
17754
17755   # Some binutils ld are patched to set DT_RUNPATH
17756   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17757   $as_echo_n "(cached) " >&6
17758 else
17759   lt_cv_shlibpath_overrides_runpath=no
17760     save_LDFLAGS=$LDFLAGS
17761     save_libdir=$libdir
17762     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17763          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h.  */
17766
17767 int
17768 main ()
17769 {
17770
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 if ac_fn_c_try_link "$LINENO"; then :
17776   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17777   lt_cv_shlibpath_overrides_runpath=yes
17778 fi
17779 fi
17780 rm -f core conftest.err conftest.$ac_objext \
17781     conftest$ac_exeext conftest.$ac_ext
17782     LDFLAGS=$save_LDFLAGS
17783     libdir=$save_libdir
17784
17785 fi
17786
17787   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17788
17789   # This implies no fast_install, which is unacceptable.
17790   # Some rework will be needed to allow for fast_install
17791   # before this can be enabled.
17792   hardcode_into_libs=yes
17793
17794   # Append ld.so.conf contents to the search path
17795   if test -f /etc/ld.so.conf; then
17796     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;s/"//g;/^$/d' | tr '\n' ' '`
17797     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17798   fi
17799
17800   # We used to test for /lib/ld.so.1 and disable shared libraries on
17801   # powerpc, because MkLinux only supported shared libraries with the
17802   # GNU dynamic linker.  Since this was broken with cross compilers,
17803   # most powerpc-linux boxes support dynamic linking these days and
17804   # people can always --disable-shared, the test was removed, and we
17805   # assume the GNU/Linux dynamic linker is in use.
17806   dynamic_linker='GNU/Linux ld.so'
17807   ;;
17808
17809 netbsd*)
17810   version_type=sunos
17811   need_lib_prefix=no
17812   need_version=no
17813   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17815     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816     dynamic_linker='NetBSD (a.out) ld.so'
17817   else
17818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17819     soname_spec='${libname}${release}${shared_ext}$major'
17820     dynamic_linker='NetBSD ld.elf_so'
17821   fi
17822   shlibpath_var=LD_LIBRARY_PATH
17823   shlibpath_overrides_runpath=yes
17824   hardcode_into_libs=yes
17825   ;;
17826
17827 newsos6)
17828   version_type=linux # correct to gnu/linux during the next big refactor
17829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830   shlibpath_var=LD_LIBRARY_PATH
17831   shlibpath_overrides_runpath=yes
17832   ;;
17833
17834 *nto* | *qnx*)
17835   version_type=qnx
17836   need_lib_prefix=no
17837   need_version=no
17838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839   soname_spec='${libname}${release}${shared_ext}$major'
17840   shlibpath_var=LD_LIBRARY_PATH
17841   shlibpath_overrides_runpath=no
17842   hardcode_into_libs=yes
17843   dynamic_linker='ldqnx.so'
17844   ;;
17845
17846 openbsd*)
17847   version_type=sunos
17848   sys_lib_dlsearch_path_spec="/usr/lib"
17849   need_lib_prefix=no
17850   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17851   case $host_os in
17852     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17853     *)                          need_version=no  ;;
17854   esac
17855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17856   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17857   shlibpath_var=LD_LIBRARY_PATH
17858   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17859     case $host_os in
17860       openbsd2.[89] | openbsd2.[89].*)
17861         shlibpath_overrides_runpath=no
17862         ;;
17863       *)
17864         shlibpath_overrides_runpath=yes
17865         ;;
17866       esac
17867   else
17868     shlibpath_overrides_runpath=yes
17869   fi
17870   ;;
17871
17872 os2*)
17873   libname_spec='$name'
17874   shrext_cmds=".dll"
17875   need_lib_prefix=no
17876   library_names_spec='$libname${shared_ext} $libname.a'
17877   dynamic_linker='OS/2 ld.exe'
17878   shlibpath_var=LIBPATH
17879   ;;
17880
17881 osf3* | osf4* | osf5*)
17882   version_type=osf
17883   need_lib_prefix=no
17884   need_version=no
17885   soname_spec='${libname}${release}${shared_ext}$major'
17886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887   shlibpath_var=LD_LIBRARY_PATH
17888   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17889   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17890   ;;
17891
17892 rdos*)
17893   dynamic_linker=no
17894   ;;
17895
17896 solaris*)
17897   version_type=linux # correct to gnu/linux during the next big refactor
17898   need_lib_prefix=no
17899   need_version=no
17900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901   soname_spec='${libname}${release}${shared_ext}$major'
17902   shlibpath_var=LD_LIBRARY_PATH
17903   shlibpath_overrides_runpath=yes
17904   hardcode_into_libs=yes
17905   # ldd complains unless libraries are executable
17906   postinstall_cmds='chmod +x $lib'
17907   ;;
17908
17909 sunos4*)
17910   version_type=sunos
17911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17912   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17913   shlibpath_var=LD_LIBRARY_PATH
17914   shlibpath_overrides_runpath=yes
17915   if test "$with_gnu_ld" = yes; then
17916     need_lib_prefix=no
17917   fi
17918   need_version=yes
17919   ;;
17920
17921 sysv4 | sysv4.3*)
17922   version_type=linux # correct to gnu/linux during the next big refactor
17923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924   soname_spec='${libname}${release}${shared_ext}$major'
17925   shlibpath_var=LD_LIBRARY_PATH
17926   case $host_vendor in
17927     sni)
17928       shlibpath_overrides_runpath=no
17929       need_lib_prefix=no
17930       runpath_var=LD_RUN_PATH
17931       ;;
17932     siemens)
17933       need_lib_prefix=no
17934       ;;
17935     motorola)
17936       need_lib_prefix=no
17937       need_version=no
17938       shlibpath_overrides_runpath=no
17939       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17940       ;;
17941   esac
17942   ;;
17943
17944 sysv4*MP*)
17945   if test -d /usr/nec ;then
17946     version_type=linux # correct to gnu/linux during the next big refactor
17947     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17948     soname_spec='$libname${shared_ext}.$major'
17949     shlibpath_var=LD_LIBRARY_PATH
17950   fi
17951   ;;
17952
17953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17954   version_type=freebsd-elf
17955   need_lib_prefix=no
17956   need_version=no
17957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17958   soname_spec='${libname}${release}${shared_ext}$major'
17959   shlibpath_var=LD_LIBRARY_PATH
17960   shlibpath_overrides_runpath=yes
17961   hardcode_into_libs=yes
17962   if test "$with_gnu_ld" = yes; then
17963     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17964   else
17965     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17966     case $host_os in
17967       sco3.2v5*)
17968         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17969         ;;
17970     esac
17971   fi
17972   sys_lib_dlsearch_path_spec='/usr/lib'
17973   ;;
17974
17975 tpf*)
17976   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17977   version_type=linux # correct to gnu/linux during the next big refactor
17978   need_lib_prefix=no
17979   need_version=no
17980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   shlibpath_overrides_runpath=no
17983   hardcode_into_libs=yes
17984   ;;
17985
17986 uts4*)
17987   version_type=linux # correct to gnu/linux during the next big refactor
17988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17989   soname_spec='${libname}${release}${shared_ext}$major'
17990   shlibpath_var=LD_LIBRARY_PATH
17991   ;;
17992
17993 *)
17994   dynamic_linker=no
17995   ;;
17996 esac
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17998 $as_echo "$dynamic_linker" >&6; }
17999 test "$dynamic_linker" = no && can_build_shared=no
18000
18001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18002 if test "$GCC" = yes; then
18003   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18004 fi
18005
18006 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18007   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18008 fi
18009 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18010   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18011 fi
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18106 hardcode_action=
18107 if test -n "$hardcode_libdir_flag_spec" ||
18108    test -n "$runpath_var" ||
18109    test "X$hardcode_automatic" = "Xyes" ; then
18110
18111   # We can hardcode non-existent directories.
18112   if test "$hardcode_direct" != no &&
18113      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18114      # have to relink, otherwise we might link with an installed library
18115      # when we should be linking with a yet-to-be-installed one
18116      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18117      test "$hardcode_minus_L" != no; then
18118     # Linking always hardcodes the temporary library directory.
18119     hardcode_action=relink
18120   else
18121     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18122     hardcode_action=immediate
18123   fi
18124 else
18125   # We cannot hardcode anything, or else we can only hardcode existing
18126   # directories.
18127   hardcode_action=unsupported
18128 fi
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18130 $as_echo "$hardcode_action" >&6; }
18131
18132 if test "$hardcode_action" = relink ||
18133    test "$inherit_rpath" = yes; then
18134   # Fast installation is not supported
18135   enable_fast_install=no
18136 elif test "$shlibpath_overrides_runpath" = yes ||
18137      test "$enable_shared" = no; then
18138   # Fast installation is not necessary
18139   enable_fast_install=needless
18140 fi
18141
18142
18143
18144
18145
18146
18147   if test "x$enable_dlopen" != xyes; then
18148   enable_dlopen=unknown
18149   enable_dlopen_self=unknown
18150   enable_dlopen_self_static=unknown
18151 else
18152   lt_cv_dlopen=no
18153   lt_cv_dlopen_libs=
18154
18155   case $host_os in
18156   beos*)
18157     lt_cv_dlopen="load_add_on"
18158     lt_cv_dlopen_libs=
18159     lt_cv_dlopen_self=yes
18160     ;;
18161
18162   mingw* | pw32* | cegcc*)
18163     lt_cv_dlopen="LoadLibrary"
18164     lt_cv_dlopen_libs=
18165     ;;
18166
18167   cygwin*)
18168     lt_cv_dlopen="dlopen"
18169     lt_cv_dlopen_libs=
18170     ;;
18171
18172   darwin*)
18173   # if libdl is installed we need to link against it
18174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18176 if ${ac_cv_lib_dl_dlopen+:} false; then :
18177   $as_echo_n "(cached) " >&6
18178 else
18179   ac_check_lib_save_LIBS=$LIBS
18180 LIBS="-ldl  $LIBS"
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h.  */
18183
18184 /* Override any GCC internal prototype to avoid an error.
18185    Use char because int might match the return type of a GCC
18186    builtin and then its argument prototype would still apply.  */
18187 #ifdef __cplusplus
18188 extern "C"
18189 #endif
18190 char dlopen ();
18191 int
18192 main ()
18193 {
18194 return dlopen ();
18195   ;
18196   return 0;
18197 }
18198 _ACEOF
18199 if ac_fn_c_try_link "$LINENO"; then :
18200   ac_cv_lib_dl_dlopen=yes
18201 else
18202   ac_cv_lib_dl_dlopen=no
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext \
18205     conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18207 fi
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18209 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18210 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18211   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18212 else
18213
18214     lt_cv_dlopen="dyld"
18215     lt_cv_dlopen_libs=
18216     lt_cv_dlopen_self=yes
18217
18218 fi
18219
18220     ;;
18221
18222   *)
18223     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18224 if test "x$ac_cv_func_shl_load" = xyes; then :
18225   lt_cv_dlopen="shl_load"
18226 else
18227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18228 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18229 if ${ac_cv_lib_dld_shl_load+:} false; then :
18230   $as_echo_n "(cached) " >&6
18231 else
18232   ac_check_lib_save_LIBS=$LIBS
18233 LIBS="-ldld  $LIBS"
18234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18235 /* end confdefs.h.  */
18236
18237 /* Override any GCC internal prototype to avoid an error.
18238    Use char because int might match the return type of a GCC
18239    builtin and then its argument prototype would still apply.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char shl_load ();
18244 int
18245 main ()
18246 {
18247 return shl_load ();
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 if ac_fn_c_try_link "$LINENO"; then :
18253   ac_cv_lib_dld_shl_load=yes
18254 else
18255   ac_cv_lib_dld_shl_load=no
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext \
18258     conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18262 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18263 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18264   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18265 else
18266   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18267 if test "x$ac_cv_func_dlopen" = xyes; then :
18268   lt_cv_dlopen="dlopen"
18269 else
18270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18272 if ${ac_cv_lib_dl_dlopen+:} false; then :
18273   $as_echo_n "(cached) " >&6
18274 else
18275   ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-ldl  $LIBS"
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h.  */
18279
18280 /* Override any GCC internal prototype to avoid an error.
18281    Use char because int might match the return type of a GCC
18282    builtin and then its argument prototype would still apply.  */
18283 #ifdef __cplusplus
18284 extern "C"
18285 #endif
18286 char dlopen ();
18287 int
18288 main ()
18289 {
18290 return dlopen ();
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 if ac_fn_c_try_link "$LINENO"; then :
18296   ac_cv_lib_dl_dlopen=yes
18297 else
18298   ac_cv_lib_dl_dlopen=no
18299 fi
18300 rm -f core conftest.err conftest.$ac_objext \
18301     conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18303 fi
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18306 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18307   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18308 else
18309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18310 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18311 if ${ac_cv_lib_svld_dlopen+:} false; then :
18312   $as_echo_n "(cached) " >&6
18313 else
18314   ac_check_lib_save_LIBS=$LIBS
18315 LIBS="-lsvld  $LIBS"
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h.  */
18318
18319 /* Override any GCC internal prototype to avoid an error.
18320    Use char because int might match the return type of a GCC
18321    builtin and then its argument prototype would still apply.  */
18322 #ifdef __cplusplus
18323 extern "C"
18324 #endif
18325 char dlopen ();
18326 int
18327 main ()
18328 {
18329 return dlopen ();
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 if ac_fn_c_try_link "$LINENO"; then :
18335   ac_cv_lib_svld_dlopen=yes
18336 else
18337   ac_cv_lib_svld_dlopen=no
18338 fi
18339 rm -f core conftest.err conftest.$ac_objext \
18340     conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18342 fi
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18344 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18345 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18346   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18347 else
18348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18349 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18350 if ${ac_cv_lib_dld_dld_link+:} false; then :
18351   $as_echo_n "(cached) " >&6
18352 else
18353   ac_check_lib_save_LIBS=$LIBS
18354 LIBS="-ldld  $LIBS"
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h.  */
18357
18358 /* Override any GCC internal prototype to avoid an error.
18359    Use char because int might match the return type of a GCC
18360    builtin and then its argument prototype would still apply.  */
18361 #ifdef __cplusplus
18362 extern "C"
18363 #endif
18364 char dld_link ();
18365 int
18366 main ()
18367 {
18368 return dld_link ();
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 if ac_fn_c_try_link "$LINENO"; then :
18374   ac_cv_lib_dld_dld_link=yes
18375 else
18376   ac_cv_lib_dld_dld_link=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext \
18379     conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18381 fi
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18383 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18384 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18385   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18386 fi
18387
18388
18389 fi
18390
18391
18392 fi
18393
18394
18395 fi
18396
18397
18398 fi
18399
18400
18401 fi
18402
18403     ;;
18404   esac
18405
18406   if test "x$lt_cv_dlopen" != xno; then
18407     enable_dlopen=yes
18408   else
18409     enable_dlopen=no
18410   fi
18411
18412   case $lt_cv_dlopen in
18413   dlopen)
18414     save_CPPFLAGS="$CPPFLAGS"
18415     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18416
18417     save_LDFLAGS="$LDFLAGS"
18418     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18419
18420     save_LIBS="$LIBS"
18421     LIBS="$lt_cv_dlopen_libs $LIBS"
18422
18423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18424 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18425 if ${lt_cv_dlopen_self+:} false; then :
18426   $as_echo_n "(cached) " >&6
18427 else
18428           if test "$cross_compiling" = yes; then :
18429   lt_cv_dlopen_self=cross
18430 else
18431   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18432   lt_status=$lt_dlunknown
18433   cat > conftest.$ac_ext <<_LT_EOF
18434 #line $LINENO "configure"
18435 #include "confdefs.h"
18436
18437 #if HAVE_DLFCN_H
18438 #include <dlfcn.h>
18439 #endif
18440
18441 #include <stdio.h>
18442
18443 #ifdef RTLD_GLOBAL
18444 #  define LT_DLGLOBAL           RTLD_GLOBAL
18445 #else
18446 #  ifdef DL_GLOBAL
18447 #    define LT_DLGLOBAL         DL_GLOBAL
18448 #  else
18449 #    define LT_DLGLOBAL         0
18450 #  endif
18451 #endif
18452
18453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18454    find out it does not work in some platform. */
18455 #ifndef LT_DLLAZY_OR_NOW
18456 #  ifdef RTLD_LAZY
18457 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18458 #  else
18459 #    ifdef DL_LAZY
18460 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18461 #    else
18462 #      ifdef RTLD_NOW
18463 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18464 #      else
18465 #        ifdef DL_NOW
18466 #          define LT_DLLAZY_OR_NOW      DL_NOW
18467 #        else
18468 #          define LT_DLLAZY_OR_NOW      0
18469 #        endif
18470 #      endif
18471 #    endif
18472 #  endif
18473 #endif
18474
18475 /* When -fvisbility=hidden is used, assume the code has been annotated
18476    correspondingly for the symbols needed.  */
18477 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18478 int fnord () __attribute__((visibility("default")));
18479 #endif
18480
18481 int fnord () { return 42; }
18482 int main ()
18483 {
18484   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18485   int status = $lt_dlunknown;
18486
18487   if (self)
18488     {
18489       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18490       else
18491         {
18492           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18493           else puts (dlerror ());
18494         }
18495       /* dlclose (self); */
18496     }
18497   else
18498     puts (dlerror ());
18499
18500   return status;
18501 }
18502 _LT_EOF
18503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18504   (eval $ac_link) 2>&5
18505   ac_status=$?
18506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18507   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18508     (./conftest; exit; ) >&5 2>/dev/null
18509     lt_status=$?
18510     case x$lt_status in
18511       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18512       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18513       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18514     esac
18515   else :
18516     # compilation failed
18517     lt_cv_dlopen_self=no
18518   fi
18519 fi
18520 rm -fr conftest*
18521
18522
18523 fi
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18525 $as_echo "$lt_cv_dlopen_self" >&6; }
18526
18527     if test "x$lt_cv_dlopen_self" = xyes; then
18528       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18529       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18530 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18531 if ${lt_cv_dlopen_self_static+:} false; then :
18532   $as_echo_n "(cached) " >&6
18533 else
18534           if test "$cross_compiling" = yes; then :
18535   lt_cv_dlopen_self_static=cross
18536 else
18537   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18538   lt_status=$lt_dlunknown
18539   cat > conftest.$ac_ext <<_LT_EOF
18540 #line $LINENO "configure"
18541 #include "confdefs.h"
18542
18543 #if HAVE_DLFCN_H
18544 #include <dlfcn.h>
18545 #endif
18546
18547 #include <stdio.h>
18548
18549 #ifdef RTLD_GLOBAL
18550 #  define LT_DLGLOBAL           RTLD_GLOBAL
18551 #else
18552 #  ifdef DL_GLOBAL
18553 #    define LT_DLGLOBAL         DL_GLOBAL
18554 #  else
18555 #    define LT_DLGLOBAL         0
18556 #  endif
18557 #endif
18558
18559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18560    find out it does not work in some platform. */
18561 #ifndef LT_DLLAZY_OR_NOW
18562 #  ifdef RTLD_LAZY
18563 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18564 #  else
18565 #    ifdef DL_LAZY
18566 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18567 #    else
18568 #      ifdef RTLD_NOW
18569 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18570 #      else
18571 #        ifdef DL_NOW
18572 #          define LT_DLLAZY_OR_NOW      DL_NOW
18573 #        else
18574 #          define LT_DLLAZY_OR_NOW      0
18575 #        endif
18576 #      endif
18577 #    endif
18578 #  endif
18579 #endif
18580
18581 /* When -fvisbility=hidden is used, assume the code has been annotated
18582    correspondingly for the symbols needed.  */
18583 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18584 int fnord () __attribute__((visibility("default")));
18585 #endif
18586
18587 int fnord () { return 42; }
18588 int main ()
18589 {
18590   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18591   int status = $lt_dlunknown;
18592
18593   if (self)
18594     {
18595       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18596       else
18597         {
18598           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18599           else puts (dlerror ());
18600         }
18601       /* dlclose (self); */
18602     }
18603   else
18604     puts (dlerror ());
18605
18606   return status;
18607 }
18608 _LT_EOF
18609   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18610   (eval $ac_link) 2>&5
18611   ac_status=$?
18612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18613   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18614     (./conftest; exit; ) >&5 2>/dev/null
18615     lt_status=$?
18616     case x$lt_status in
18617       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18618       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18619       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18620     esac
18621   else :
18622     # compilation failed
18623     lt_cv_dlopen_self_static=no
18624   fi
18625 fi
18626 rm -fr conftest*
18627
18628
18629 fi
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18631 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18632     fi
18633
18634     CPPFLAGS="$save_CPPFLAGS"
18635     LDFLAGS="$save_LDFLAGS"
18636     LIBS="$save_LIBS"
18637     ;;
18638   esac
18639
18640   case $lt_cv_dlopen_self in
18641   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18642   *) enable_dlopen_self=unknown ;;
18643   esac
18644
18645   case $lt_cv_dlopen_self_static in
18646   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18647   *) enable_dlopen_self_static=unknown ;;
18648   esac
18649 fi
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667 striplib=
18668 old_striplib=
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18670 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18671 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18672   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18673   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18675 $as_echo "yes" >&6; }
18676 else
18677 # FIXME - insert some real tests, host_os isn't really good enough
18678   case $host_os in
18679   darwin*)
18680     if test -n "$STRIP" ; then
18681       striplib="$STRIP -x"
18682       old_striplib="$STRIP -S"
18683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18685     else
18686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18687 $as_echo "no" >&6; }
18688     fi
18689     ;;
18690   *)
18691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18693     ;;
18694   esac
18695 fi
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708   # Report which library types will actually be built
18709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18712 $as_echo "$can_build_shared" >&6; }
18713
18714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18715 $as_echo_n "checking whether to build shared libraries... " >&6; }
18716   test "$can_build_shared" = "no" && enable_shared=no
18717
18718   # On AIX, shared libraries and static libraries use the same namespace, and
18719   # are all built from PIC.
18720   case $host_os in
18721   aix3*)
18722     test "$enable_shared" = yes && enable_static=no
18723     if test -n "$RANLIB"; then
18724       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18725       postinstall_cmds='$RANLIB $lib'
18726     fi
18727     ;;
18728
18729   aix[4-9]*)
18730     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18731       test "$enable_shared" = yes && enable_static=no
18732     fi
18733     ;;
18734   esac
18735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18736 $as_echo "$enable_shared" >&6; }
18737
18738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18739 $as_echo_n "checking whether to build static libraries... " >&6; }
18740   # Make sure either enable_shared or enable_static is yes.
18741   test "$enable_shared" = yes || enable_static=yes
18742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18743 $as_echo "$enable_static" >&6; }
18744
18745
18746
18747
18748 fi
18749 ac_ext=c
18750 ac_cpp='$CPP $CPPFLAGS'
18751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754
18755 CC="$lt_save_CC"
18756
18757       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18758     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18759     (test "X$CXX" != "Xg++"))) ; then
18760   ac_ext=cpp
18761 ac_cpp='$CXXCPP $CPPFLAGS'
18762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18766 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18767 if test -z "$CXXCPP"; then
18768   if ${ac_cv_prog_CXXCPP+:} false; then :
18769   $as_echo_n "(cached) " >&6
18770 else
18771       # Double quotes because CXXCPP needs to be expanded
18772     for CXXCPP in "$CXX -E" "/lib/cpp"
18773     do
18774       ac_preproc_ok=false
18775 for ac_cxx_preproc_warn_flag in '' yes
18776 do
18777   # Use a header file that comes with gcc, so configuring glibc
18778   # with a fresh cross-compiler works.
18779   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18780   # <limits.h> exists even on freestanding compilers.
18781   # On the NeXT, cc -E runs the code through the compiler's parser,
18782   # not just through cpp. "Syntax error" is here to catch this case.
18783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h.  */
18785 #ifdef __STDC__
18786 # include <limits.h>
18787 #else
18788 # include <assert.h>
18789 #endif
18790                      Syntax error
18791 _ACEOF
18792 if ac_fn_cxx_try_cpp "$LINENO"; then :
18793
18794 else
18795   # Broken: fails on valid input.
18796 continue
18797 fi
18798 rm -f conftest.err conftest.i conftest.$ac_ext
18799
18800   # OK, works on sane cases.  Now check whether nonexistent headers
18801   # can be detected and how.
18802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h.  */
18804 #include <ac_nonexistent.h>
18805 _ACEOF
18806 if ac_fn_cxx_try_cpp "$LINENO"; then :
18807   # Broken: success on invalid input.
18808 continue
18809 else
18810   # Passes both tests.
18811 ac_preproc_ok=:
18812 break
18813 fi
18814 rm -f conftest.err conftest.i conftest.$ac_ext
18815
18816 done
18817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18818 rm -f conftest.i conftest.err conftest.$ac_ext
18819 if $ac_preproc_ok; then :
18820   break
18821 fi
18822
18823     done
18824     ac_cv_prog_CXXCPP=$CXXCPP
18825
18826 fi
18827   CXXCPP=$ac_cv_prog_CXXCPP
18828 else
18829   ac_cv_prog_CXXCPP=$CXXCPP
18830 fi
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18832 $as_echo "$CXXCPP" >&6; }
18833 ac_preproc_ok=false
18834 for ac_cxx_preproc_warn_flag in '' yes
18835 do
18836   # Use a header file that comes with gcc, so configuring glibc
18837   # with a fresh cross-compiler works.
18838   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839   # <limits.h> exists even on freestanding compilers.
18840   # On the NeXT, cc -E runs the code through the compiler's parser,
18841   # not just through cpp. "Syntax error" is here to catch this case.
18842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h.  */
18844 #ifdef __STDC__
18845 # include <limits.h>
18846 #else
18847 # include <assert.h>
18848 #endif
18849                      Syntax error
18850 _ACEOF
18851 if ac_fn_cxx_try_cpp "$LINENO"; then :
18852
18853 else
18854   # Broken: fails on valid input.
18855 continue
18856 fi
18857 rm -f conftest.err conftest.i conftest.$ac_ext
18858
18859   # OK, works on sane cases.  Now check whether nonexistent headers
18860   # can be detected and how.
18861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h.  */
18863 #include <ac_nonexistent.h>
18864 _ACEOF
18865 if ac_fn_cxx_try_cpp "$LINENO"; then :
18866   # Broken: success on invalid input.
18867 continue
18868 else
18869   # Passes both tests.
18870 ac_preproc_ok=:
18871 break
18872 fi
18873 rm -f conftest.err conftest.i conftest.$ac_ext
18874
18875 done
18876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18877 rm -f conftest.i conftest.err conftest.$ac_ext
18878 if $ac_preproc_ok; then :
18879
18880 else
18881   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18883 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18884 See \`config.log' for more details" "$LINENO" 5; }
18885 fi
18886
18887 ac_ext=c
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893 else
18894   _lt_caught_CXX_error=yes
18895 fi
18896
18897 ac_ext=cpp
18898 ac_cpp='$CXXCPP $CPPFLAGS'
18899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18902
18903 archive_cmds_need_lc_CXX=no
18904 allow_undefined_flag_CXX=
18905 always_export_symbols_CXX=no
18906 archive_expsym_cmds_CXX=
18907 compiler_needs_object_CXX=no
18908 export_dynamic_flag_spec_CXX=
18909 hardcode_direct_CXX=no
18910 hardcode_direct_absolute_CXX=no
18911 hardcode_libdir_flag_spec_CXX=
18912 hardcode_libdir_separator_CXX=
18913 hardcode_minus_L_CXX=no
18914 hardcode_shlibpath_var_CXX=unsupported
18915 hardcode_automatic_CXX=no
18916 inherit_rpath_CXX=no
18917 module_cmds_CXX=
18918 module_expsym_cmds_CXX=
18919 link_all_deplibs_CXX=unknown
18920 old_archive_cmds_CXX=$old_archive_cmds
18921 reload_flag_CXX=$reload_flag
18922 reload_cmds_CXX=$reload_cmds
18923 no_undefined_flag_CXX=
18924 whole_archive_flag_spec_CXX=
18925 enable_shared_with_static_runtimes_CXX=no
18926
18927 # Source file extension for C++ test sources.
18928 ac_ext=cpp
18929
18930 # Object file extension for compiled C++ test sources.
18931 objext=o
18932 objext_CXX=$objext
18933
18934 # No sense in running all these tests if we already determined that
18935 # the CXX compiler isn't working.  Some variables (like enable_shared)
18936 # are currently assumed to apply to all compilers on this platform,
18937 # and will be corrupted by setting them based on a non-working compiler.
18938 if test "$_lt_caught_CXX_error" != yes; then
18939   # Code to be used in simple compile tests
18940   lt_simple_compile_test_code="int some_variable = 0;"
18941
18942   # Code to be used in simple link tests
18943   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18944
18945   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18946
18947
18948
18949
18950
18951
18952 # If no C compiler was specified, use CC.
18953 LTCC=${LTCC-"$CC"}
18954
18955 # If no C compiler flags were specified, use CFLAGS.
18956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18957
18958 # Allow CC to be a program name with arguments.
18959 compiler=$CC
18960
18961
18962   # save warnings/boilerplate of simple test code
18963   ac_outfile=conftest.$ac_objext
18964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_compiler_boilerplate=`cat conftest.err`
18967 $RM conftest*
18968
18969   ac_outfile=conftest.$ac_objext
18970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18972 _lt_linker_boilerplate=`cat conftest.err`
18973 $RM -r conftest*
18974
18975
18976   # Allow CC to be a program name with arguments.
18977   lt_save_CC=$CC
18978   lt_save_CFLAGS=$CFLAGS
18979   lt_save_LD=$LD
18980   lt_save_GCC=$GCC
18981   GCC=$GXX
18982   lt_save_with_gnu_ld=$with_gnu_ld
18983   lt_save_path_LD=$lt_cv_path_LD
18984   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18985     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18986   else
18987     $as_unset lt_cv_prog_gnu_ld
18988   fi
18989   if test -n "${lt_cv_path_LDCXX+set}"; then
18990     lt_cv_path_LD=$lt_cv_path_LDCXX
18991   else
18992     $as_unset lt_cv_path_LD
18993   fi
18994   test -z "${LDCXX+set}" || LD=$LDCXX
18995   CC=${CXX-"c++"}
18996   CFLAGS=$CXXFLAGS
18997   compiler=$CC
18998   compiler_CXX=$CC
18999   for cc_temp in $compiler""; do
19000   case $cc_temp in
19001     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19002     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19003     \-*) ;;
19004     *) break;;
19005   esac
19006 done
19007 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19008
19009
19010   if test -n "$compiler"; then
19011     # We don't want -fno-exception when compiling C++ code, so set the
19012     # no_builtin_flag separately
19013     if test "$GXX" = yes; then
19014       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19015     else
19016       lt_prog_compiler_no_builtin_flag_CXX=
19017     fi
19018
19019     if test "$GXX" = yes; then
19020       # Set up default GNU C++ configuration
19021
19022
19023
19024 # Check whether --with-gnu-ld was given.
19025 if test "${with_gnu_ld+set}" = set; then :
19026   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19027 else
19028   with_gnu_ld=no
19029 fi
19030
19031 ac_prog=ld
19032 if test "$GCC" = yes; then
19033   # Check if gcc -print-prog-name=ld gives a path.
19034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19035 $as_echo_n "checking for ld used by $CC... " >&6; }
19036   case $host in
19037   *-*-mingw*)
19038     # gcc leaves a trailing carriage return which upsets mingw
19039     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19040   *)
19041     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19042   esac
19043   case $ac_prog in
19044     # Accept absolute paths.
19045     [\\/]* | ?:[\\/]*)
19046       re_direlt='/[^/][^/]*/\.\./'
19047       # Canonicalize the pathname of ld
19048       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19049       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19050         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19051       done
19052       test -z "$LD" && LD="$ac_prog"
19053       ;;
19054   "")
19055     # If it fails, then pretend we aren't using GCC.
19056     ac_prog=ld
19057     ;;
19058   *)
19059     # If it is relative, then search for the first ld in PATH.
19060     with_gnu_ld=unknown
19061     ;;
19062   esac
19063 elif test "$with_gnu_ld" = yes; then
19064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19065 $as_echo_n "checking for GNU ld... " >&6; }
19066 else
19067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19068 $as_echo_n "checking for non-GNU ld... " >&6; }
19069 fi
19070 if ${lt_cv_path_LD+:} false; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073   if test -z "$LD"; then
19074   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19075   for ac_dir in $PATH; do
19076     IFS="$lt_save_ifs"
19077     test -z "$ac_dir" && ac_dir=.
19078     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19079       lt_cv_path_LD="$ac_dir/$ac_prog"
19080       # Check to see if the program is GNU ld.  I'd rather use --version,
19081       # but apparently some variants of GNU ld only accept -v.
19082       # Break only if it was the GNU/non-GNU ld that we prefer.
19083       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19084       *GNU* | *'with BFD'*)
19085         test "$with_gnu_ld" != no && break
19086         ;;
19087       *)
19088         test "$with_gnu_ld" != yes && break
19089         ;;
19090       esac
19091     fi
19092   done
19093   IFS="$lt_save_ifs"
19094 else
19095   lt_cv_path_LD="$LD" # Let the user override the test with a path.
19096 fi
19097 fi
19098
19099 LD="$lt_cv_path_LD"
19100 if test -n "$LD"; then
19101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19102 $as_echo "$LD" >&6; }
19103 else
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19106 fi
19107 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19109 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19110 if ${lt_cv_prog_gnu_ld+:} false; then :
19111   $as_echo_n "(cached) " >&6
19112 else
19113   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19114 case `$LD -v 2>&1 </dev/null` in
19115 *GNU* | *'with BFD'*)
19116   lt_cv_prog_gnu_ld=yes
19117   ;;
19118 *)
19119   lt_cv_prog_gnu_ld=no
19120   ;;
19121 esac
19122 fi
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19124 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19125 with_gnu_ld=$lt_cv_prog_gnu_ld
19126
19127
19128
19129
19130
19131
19132
19133       # Check if GNU C++ uses GNU ld as the underlying linker, since the
19134       # archiving commands below assume that GNU ld is being used.
19135       if test "$with_gnu_ld" = yes; then
19136         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19137         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19138
19139         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19141
19142         # If archive_cmds runs LD, not CC, wlarc should be empty
19143         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19144         #     investigate it a little bit more. (MM)
19145         wlarc='${wl}'
19146
19147         # ancient GNU ld didn't support --whole-archive et. al.
19148         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19149           $GREP 'no-whole-archive' > /dev/null; then
19150           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19151         else
19152           whole_archive_flag_spec_CXX=
19153         fi
19154       else
19155         with_gnu_ld=no
19156         wlarc=
19157
19158         # A generic and very simple default shared library creation
19159         # command for GNU C++ for the case where it uses the native
19160         # linker, instead of GNU ld.  If possible, this setting should
19161         # overridden to take advantage of the native linker features on
19162         # the platform it is being used on.
19163         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19164       fi
19165
19166       # Commands to make compiler produce verbose output that lists
19167       # what "hidden" libraries, object files and flags are used when
19168       # linking a shared library.
19169       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19170
19171     else
19172       GXX=no
19173       with_gnu_ld=no
19174       wlarc=
19175     fi
19176
19177     # PORTME: fill in a description of your system's C++ link characteristics
19178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19179 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19180     ld_shlibs_CXX=yes
19181     case $host_os in
19182       aix3*)
19183         # FIXME: insert proper C++ library support
19184         ld_shlibs_CXX=no
19185         ;;
19186       aix[4-9]*)
19187         if test "$host_cpu" = ia64; then
19188           # On IA64, the linker does run time linking by default, so we don't
19189           # have to do anything special.
19190           aix_use_runtimelinking=no
19191           exp_sym_flag='-Bexport'
19192           no_entry_flag=""
19193         else
19194           aix_use_runtimelinking=no
19195
19196           # Test if we are trying to use run time linking or normal
19197           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19198           # need to do runtime linking.
19199           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19200             for ld_flag in $LDFLAGS; do
19201               case $ld_flag in
19202               *-brtl*)
19203                 aix_use_runtimelinking=yes
19204                 break
19205                 ;;
19206               esac
19207             done
19208             ;;
19209           esac
19210
19211           exp_sym_flag='-bexport'
19212           no_entry_flag='-bnoentry'
19213         fi
19214
19215         # When large executables or shared objects are built, AIX ld can
19216         # have problems creating the table of contents.  If linking a library
19217         # or program results in "error TOC overflow" add -mminimal-toc to
19218         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19219         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19220
19221         archive_cmds_CXX=''
19222         hardcode_direct_CXX=yes
19223         hardcode_direct_absolute_CXX=yes
19224         hardcode_libdir_separator_CXX=':'
19225         link_all_deplibs_CXX=yes
19226         file_list_spec_CXX='${wl}-f,'
19227
19228         if test "$GXX" = yes; then
19229           case $host_os in aix4.[012]|aix4.[012].*)
19230           # We only want to do this on AIX 4.2 and lower, the check
19231           # below for broken collect2 doesn't work under 4.3+
19232           collect2name=`${CC} -print-prog-name=collect2`
19233           if test -f "$collect2name" &&
19234              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19235           then
19236             # We have reworked collect2
19237             :
19238           else
19239             # We have old collect2
19240             hardcode_direct_CXX=unsupported
19241             # It fails to find uninstalled libraries when the uninstalled
19242             # path is not listed in the libpath.  Setting hardcode_minus_L
19243             # to unsupported forces relinking
19244             hardcode_minus_L_CXX=yes
19245             hardcode_libdir_flag_spec_CXX='-L$libdir'
19246             hardcode_libdir_separator_CXX=
19247           fi
19248           esac
19249           shared_flag='-shared'
19250           if test "$aix_use_runtimelinking" = yes; then
19251             shared_flag="$shared_flag "'${wl}-G'
19252           fi
19253         else
19254           # not using gcc
19255           if test "$host_cpu" = ia64; then
19256           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19257           # chokes on -Wl,-G. The following line is correct:
19258           shared_flag='-G'
19259           else
19260             if test "$aix_use_runtimelinking" = yes; then
19261               shared_flag='${wl}-G'
19262             else
19263               shared_flag='${wl}-bM:SRE'
19264             fi
19265           fi
19266         fi
19267
19268         export_dynamic_flag_spec_CXX='${wl}-bexpall'
19269         # It seems that -bexpall does not export symbols beginning with
19270         # underscore (_), so it is better to generate a list of symbols to
19271         # export.
19272         always_export_symbols_CXX=yes
19273         if test "$aix_use_runtimelinking" = yes; then
19274           # Warning - without using the other runtime loading flags (-brtl),
19275           # -berok will link without error, but may produce a broken library.
19276           allow_undefined_flag_CXX='-berok'
19277           # Determine the default libpath from the value encoded in an empty
19278           # executable.
19279           if test "${lt_cv_aix_libpath+set}" = set; then
19280   aix_libpath=$lt_cv_aix_libpath
19281 else
19282   if ${lt_cv_aix_libpath__CXX+:} false; then :
19283   $as_echo_n "(cached) " >&6
19284 else
19285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h.  */
19287
19288 int
19289 main ()
19290 {
19291
19292   ;
19293   return 0;
19294 }
19295 _ACEOF
19296 if ac_fn_cxx_try_link "$LINENO"; then :
19297
19298   lt_aix_libpath_sed='
19299       /Import File Strings/,/^$/ {
19300           /^0/ {
19301               s/^0  *\([^ ]*\) *$/\1/
19302               p
19303           }
19304       }'
19305   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19306   # Check for a 64-bit object if we didn't find anything.
19307   if test -z "$lt_cv_aix_libpath__CXX"; then
19308     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19309   fi
19310 fi
19311 rm -f core conftest.err conftest.$ac_objext \
19312     conftest$ac_exeext conftest.$ac_ext
19313   if test -z "$lt_cv_aix_libpath__CXX"; then
19314     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19315   fi
19316
19317 fi
19318
19319   aix_libpath=$lt_cv_aix_libpath__CXX
19320 fi
19321
19322           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19323
19324           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19325         else
19326           if test "$host_cpu" = ia64; then
19327             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19328             allow_undefined_flag_CXX="-z nodefs"
19329             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"
19330           else
19331             # Determine the default libpath from the value encoded in an
19332             # empty executable.
19333             if test "${lt_cv_aix_libpath+set}" = set; then
19334   aix_libpath=$lt_cv_aix_libpath
19335 else
19336   if ${lt_cv_aix_libpath__CXX+:} false; then :
19337   $as_echo_n "(cached) " >&6
19338 else
19339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h.  */
19341
19342 int
19343 main ()
19344 {
19345
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 if ac_fn_cxx_try_link "$LINENO"; then :
19351
19352   lt_aix_libpath_sed='
19353       /Import File Strings/,/^$/ {
19354           /^0/ {
19355               s/^0  *\([^ ]*\) *$/\1/
19356               p
19357           }
19358       }'
19359   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19360   # Check for a 64-bit object if we didn't find anything.
19361   if test -z "$lt_cv_aix_libpath__CXX"; then
19362     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19363   fi
19364 fi
19365 rm -f core conftest.err conftest.$ac_objext \
19366     conftest$ac_exeext conftest.$ac_ext
19367   if test -z "$lt_cv_aix_libpath__CXX"; then
19368     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19369   fi
19370
19371 fi
19372
19373   aix_libpath=$lt_cv_aix_libpath__CXX
19374 fi
19375
19376             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19377             # Warning - without using the other run time loading flags,
19378             # -berok will link without error, but may produce a broken library.
19379             no_undefined_flag_CXX=' ${wl}-bernotok'
19380             allow_undefined_flag_CXX=' ${wl}-berok'
19381             if test "$with_gnu_ld" = yes; then
19382               # We only use this code for GNU lds that support --whole-archive.
19383               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19384             else
19385               # Exported symbols can be pulled into shared objects from archives
19386               whole_archive_flag_spec_CXX='$convenience'
19387             fi
19388             archive_cmds_need_lc_CXX=yes
19389             # This is similar to how AIX traditionally builds its shared
19390             # libraries.
19391             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'
19392           fi
19393         fi
19394         ;;
19395
19396       beos*)
19397         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19398           allow_undefined_flag_CXX=unsupported
19399           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19400           # support --undefined.  This deserves some investigation.  FIXME
19401           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19402         else
19403           ld_shlibs_CXX=no
19404         fi
19405         ;;
19406
19407       chorus*)
19408         case $cc_basename in
19409           *)
19410           # FIXME: insert proper C++ library support
19411           ld_shlibs_CXX=no
19412           ;;
19413         esac
19414         ;;
19415
19416       cygwin* | mingw* | pw32* | cegcc*)
19417         case $GXX,$cc_basename in
19418         ,cl* | no,cl*)
19419           # Native MSVC
19420           # hardcode_libdir_flag_spec is actually meaningless, as there is
19421           # no search path for DLLs.
19422           hardcode_libdir_flag_spec_CXX=' '
19423           allow_undefined_flag_CXX=unsupported
19424           always_export_symbols_CXX=yes
19425           file_list_spec_CXX='@'
19426           # Tell ltmain to make .lib files, not .a files.
19427           libext=lib
19428           # Tell ltmain to make .dll files, not .so files.
19429           shrext_cmds=".dll"
19430           # FIXME: Setting linknames here is a bad hack.
19431           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19432           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19433               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19434             else
19435               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19436             fi~
19437             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19438             linknames='
19439           # The linker will not automatically build a static lib if we build a DLL.
19440           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19441           enable_shared_with_static_runtimes_CXX=yes
19442           # Don't use ranlib
19443           old_postinstall_cmds_CXX='chmod 644 $oldlib'
19444           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19445             lt_tool_outputfile="@TOOL_OUTPUT@"~
19446             case $lt_outputfile in
19447               *.exe|*.EXE) ;;
19448               *)
19449                 lt_outputfile="$lt_outputfile.exe"
19450                 lt_tool_outputfile="$lt_tool_outputfile.exe"
19451                 ;;
19452             esac~
19453             func_to_tool_file "$lt_outputfile"~
19454             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19455               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19456               $RM "$lt_outputfile.manifest";
19457             fi'
19458           ;;
19459         *)
19460           # g++
19461           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19462           # as there is no search path for DLLs.
19463           hardcode_libdir_flag_spec_CXX='-L$libdir'
19464           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19465           allow_undefined_flag_CXX=unsupported
19466           always_export_symbols_CXX=no
19467           enable_shared_with_static_runtimes_CXX=yes
19468
19469           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19470             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'
19471             # If the export-symbols file already is a .def file (1st line
19472             # is EXPORTS), use it as is; otherwise, prepend...
19473             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19474               cp $export_symbols $output_objdir/$soname.def;
19475             else
19476               echo EXPORTS > $output_objdir/$soname.def;
19477               cat $export_symbols >> $output_objdir/$soname.def;
19478             fi~
19479             $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'
19480           else
19481             ld_shlibs_CXX=no
19482           fi
19483           ;;
19484         esac
19485         ;;
19486       darwin* | rhapsody*)
19487
19488
19489   archive_cmds_need_lc_CXX=no
19490   hardcode_direct_CXX=no
19491   hardcode_automatic_CXX=yes
19492   hardcode_shlibpath_var_CXX=unsupported
19493   if test "$lt_cv_ld_force_load" = "yes"; then
19494     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19495
19496   else
19497     whole_archive_flag_spec_CXX=''
19498   fi
19499   link_all_deplibs_CXX=yes
19500   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19501   case $cc_basename in
19502      ifort*) _lt_dar_can_shared=yes ;;
19503      *) _lt_dar_can_shared=$GCC ;;
19504   esac
19505   if test "$_lt_dar_can_shared" = "yes"; then
19506     output_verbose_link_cmd=func_echo_all
19507     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}"
19508     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19509     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}"
19510     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}"
19511        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19512       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}"
19513       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}"
19514     fi
19515
19516   else
19517   ld_shlibs_CXX=no
19518   fi
19519
19520         ;;
19521
19522       dgux*)
19523         case $cc_basename in
19524           ec++*)
19525             # FIXME: insert proper C++ library support
19526             ld_shlibs_CXX=no
19527             ;;
19528           ghcx*)
19529             # Green Hills C++ Compiler
19530             # FIXME: insert proper C++ library support
19531             ld_shlibs_CXX=no
19532             ;;
19533           *)
19534             # FIXME: insert proper C++ library support
19535             ld_shlibs_CXX=no
19536             ;;
19537         esac
19538         ;;
19539
19540       freebsd2.*)
19541         # C++ shared libraries reported to be fairly broken before
19542         # switch to ELF
19543         ld_shlibs_CXX=no
19544         ;;
19545
19546       freebsd-elf*)
19547         archive_cmds_need_lc_CXX=no
19548         ;;
19549
19550       freebsd* | dragonfly*)
19551         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19552         # conventions
19553         ld_shlibs_CXX=yes
19554         ;;
19555
19556       gnu*)
19557         ;;
19558
19559       haiku*)
19560         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19561         link_all_deplibs_CXX=yes
19562         ;;
19563
19564       hpux9*)
19565         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19566         hardcode_libdir_separator_CXX=:
19567         export_dynamic_flag_spec_CXX='${wl}-E'
19568         hardcode_direct_CXX=yes
19569         hardcode_minus_L_CXX=yes # Not in the search PATH,
19570                                              # but as the default
19571                                              # location of the library.
19572
19573         case $cc_basename in
19574           CC*)
19575             # FIXME: insert proper C++ library support
19576             ld_shlibs_CXX=no
19577             ;;
19578           aCC*)
19579             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'
19580             # Commands to make compiler produce verbose output that lists
19581             # what "hidden" libraries, object files and flags are used when
19582             # linking a shared library.
19583             #
19584             # There doesn't appear to be a way to prevent this compiler from
19585             # explicitly linking system object files so we need to strip them
19586             # from the output so that they don't get included in the library
19587             # dependencies.
19588             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; func_echo_all "$list"'
19589             ;;
19590           *)
19591             if test "$GXX" = yes; then
19592               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
19593             else
19594               # FIXME: insert proper C++ library support
19595               ld_shlibs_CXX=no
19596             fi
19597             ;;
19598         esac
19599         ;;
19600
19601       hpux10*|hpux11*)
19602         if test $with_gnu_ld = no; then
19603           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19604           hardcode_libdir_separator_CXX=:
19605
19606           case $host_cpu in
19607             hppa*64*|ia64*)
19608               ;;
19609             *)
19610               export_dynamic_flag_spec_CXX='${wl}-E'
19611               ;;
19612           esac
19613         fi
19614         case $host_cpu in
19615           hppa*64*|ia64*)
19616             hardcode_direct_CXX=no
19617             hardcode_shlibpath_var_CXX=no
19618             ;;
19619           *)
19620             hardcode_direct_CXX=yes
19621             hardcode_direct_absolute_CXX=yes
19622             hardcode_minus_L_CXX=yes # Not in the search PATH,
19623                                                  # but as the default
19624                                                  # location of the library.
19625             ;;
19626         esac
19627
19628         case $cc_basename in
19629           CC*)
19630             # FIXME: insert proper C++ library support
19631             ld_shlibs_CXX=no
19632             ;;
19633           aCC*)
19634             case $host_cpu in
19635               hppa*64*)
19636                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19637                 ;;
19638               ia64*)
19639                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19640                 ;;
19641               *)
19642                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19643                 ;;
19644             esac
19645             # Commands to make compiler produce verbose output that lists
19646             # what "hidden" libraries, object files and flags are used when
19647             # linking a shared library.
19648             #
19649             # There doesn't appear to be a way to prevent this compiler from
19650             # explicitly linking system object files so we need to strip them
19651             # from the output so that they don't get included in the library
19652             # dependencies.
19653             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; func_echo_all "$list"'
19654             ;;
19655           *)
19656             if test "$GXX" = yes; then
19657               if test $with_gnu_ld = no; then
19658                 case $host_cpu in
19659                   hppa*64*)
19660                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19661                     ;;
19662                   ia64*)
19663                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19664                     ;;
19665                   *)
19666                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19667                     ;;
19668                 esac
19669               fi
19670             else
19671               # FIXME: insert proper C++ library support
19672               ld_shlibs_CXX=no
19673             fi
19674             ;;
19675         esac
19676         ;;
19677
19678       interix[3-9]*)
19679         hardcode_direct_CXX=no
19680         hardcode_shlibpath_var_CXX=no
19681         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19682         export_dynamic_flag_spec_CXX='${wl}-E'
19683         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19684         # Instead, shared libraries are loaded at an image base (0x10000000 by
19685         # default) and relocated if they conflict, which is a slow very memory
19686         # consuming and fragmenting process.  To avoid this, we pick a random,
19687         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19688         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19689         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'
19690         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'
19691         ;;
19692       irix5* | irix6*)
19693         case $cc_basename in
19694           CC*)
19695             # SGI C++
19696             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19697
19698             # Archives containing C++ object files must be created using
19699             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19700             # necessary to make sure instantiated templates are included
19701             # in the archive.
19702             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19703             ;;
19704           *)
19705             if test "$GXX" = yes; then
19706               if test "$with_gnu_ld" = no; then
19707                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19708               else
19709                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19710               fi
19711             fi
19712             link_all_deplibs_CXX=yes
19713             ;;
19714         esac
19715         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19716         hardcode_libdir_separator_CXX=:
19717         inherit_rpath_CXX=yes
19718         ;;
19719
19720       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19721         case $cc_basename in
19722           KCC*)
19723             # Kuck and Associates, Inc. (KAI) C++ Compiler
19724
19725             # KCC will only create a shared library if the output file
19726             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19727             # to its proper name (with version) after linking.
19728             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'
19729             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'
19730             # Commands to make compiler produce verbose output that lists
19731             # what "hidden" libraries, object files and flags are used when
19732             # linking a shared library.
19733             #
19734             # There doesn't appear to be a way to prevent this compiler from
19735             # explicitly linking system object files so we need to strip them
19736             # from the output so that they don't get included in the library
19737             # dependencies.
19738             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; func_echo_all "$list"'
19739
19740             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19741             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19742
19743             # Archives containing C++ object files must be created using
19744             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19745             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19746             ;;
19747           icpc* | ecpc* )
19748             # Intel C++
19749             with_gnu_ld=yes
19750             # version 8.0 and above of icpc choke on multiply defined symbols
19751             # if we add $predep_objects and $postdep_objects, however 7.1 and
19752             # earlier do not add the objects themselves.
19753             case `$CC -V 2>&1` in
19754               *"Version 7."*)
19755                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19756                 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'
19757                 ;;
19758               *)  # Version 8.0 or newer
19759                 tmp_idyn=
19760                 case $host_cpu in
19761                   ia64*) tmp_idyn=' -i_dynamic';;
19762                 esac
19763                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19764                 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'
19765                 ;;
19766             esac
19767             archive_cmds_need_lc_CXX=no
19768             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19769             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19770             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19771             ;;
19772           pgCC* | pgcpp*)
19773             # Portland Group C++ compiler
19774             case `$CC -V` in
19775             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19776               prelink_cmds_CXX='tpldir=Template.dir~
19777                 rm -rf $tpldir~
19778                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19779                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19780               old_archive_cmds_CXX='tpldir=Template.dir~
19781                 rm -rf $tpldir~
19782                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19783                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19784                 $RANLIB $oldlib'
19785               archive_cmds_CXX='tpldir=Template.dir~
19786                 rm -rf $tpldir~
19787                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19788                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19789               archive_expsym_cmds_CXX='tpldir=Template.dir~
19790                 rm -rf $tpldir~
19791                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19792                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19793               ;;
19794             *) # Version 6 and above use weak symbols
19795               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19796               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'
19797               ;;
19798             esac
19799
19800             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19801             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19802             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19803             ;;
19804           cxx*)
19805             # Compaq C++
19806             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19807             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'
19808
19809             runpath_var=LD_RUN_PATH
19810             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19811             hardcode_libdir_separator_CXX=:
19812
19813             # Commands to make compiler produce verbose output that lists
19814             # what "hidden" libraries, object files and flags are used when
19815             # linking a shared library.
19816             #
19817             # There doesn't appear to be a way to prevent this compiler from
19818             # explicitly linking system object files so we need to strip them
19819             # from the output so that they don't get included in the library
19820             # dependencies.
19821             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19822             ;;
19823           xl* | mpixl* | bgxl*)
19824             # IBM XL 8.0 on PPC, with GNU ld
19825             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19826             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19827             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19828             if test "x$supports_anon_versioning" = xyes; then
19829               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19830                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19831                 echo "local: *; };" >> $output_objdir/$libname.ver~
19832                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19833             fi
19834             ;;
19835           *)
19836             case `$CC -V 2>&1 | sed 5q` in
19837             *Sun\ C*)
19838               # Sun C++ 5.9
19839               no_undefined_flag_CXX=' -zdefs'
19840               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19841               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'
19842               hardcode_libdir_flag_spec_CXX='-R$libdir'
19843               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19844               compiler_needs_object_CXX=yes
19845
19846               # Not sure whether something based on
19847               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19848               # would be better.
19849               output_verbose_link_cmd='func_echo_all'
19850
19851               # Archives containing C++ object files must be created using
19852               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19853               # necessary to make sure instantiated templates are included
19854               # in the archive.
19855               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19856               ;;
19857             esac
19858             ;;
19859         esac
19860         ;;
19861
19862       lynxos*)
19863         # FIXME: insert proper C++ library support
19864         ld_shlibs_CXX=no
19865         ;;
19866
19867       m88k*)
19868         # FIXME: insert proper C++ library support
19869         ld_shlibs_CXX=no
19870         ;;
19871
19872       mvs*)
19873         case $cc_basename in
19874           cxx*)
19875             # FIXME: insert proper C++ library support
19876             ld_shlibs_CXX=no
19877             ;;
19878           *)
19879             # FIXME: insert proper C++ library support
19880             ld_shlibs_CXX=no
19881             ;;
19882         esac
19883         ;;
19884
19885       netbsd*)
19886         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19887           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19888           wlarc=
19889           hardcode_libdir_flag_spec_CXX='-R$libdir'
19890           hardcode_direct_CXX=yes
19891           hardcode_shlibpath_var_CXX=no
19892         fi
19893         # Workaround some broken pre-1.5 toolchains
19894         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19895         ;;
19896
19897       *nto* | *qnx*)
19898         ld_shlibs_CXX=yes
19899         ;;
19900
19901       openbsd2*)
19902         # C++ shared libraries are fairly broken
19903         ld_shlibs_CXX=no
19904         ;;
19905
19906       openbsd*)
19907         if test -f /usr/libexec/ld.so; then
19908           hardcode_direct_CXX=yes
19909           hardcode_shlibpath_var_CXX=no
19910           hardcode_direct_absolute_CXX=yes
19911           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19912           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19913           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19914             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19915             export_dynamic_flag_spec_CXX='${wl}-E'
19916             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19917           fi
19918           output_verbose_link_cmd=func_echo_all
19919         else
19920           ld_shlibs_CXX=no
19921         fi
19922         ;;
19923
19924       osf3* | osf4* | osf5*)
19925         case $cc_basename in
19926           KCC*)
19927             # Kuck and Associates, Inc. (KAI) C++ Compiler
19928
19929             # KCC will only create a shared library if the output file
19930             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19931             # to its proper name (with version) after linking.
19932             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'
19933
19934             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19935             hardcode_libdir_separator_CXX=:
19936
19937             # Archives containing C++ object files must be created using
19938             # the KAI C++ compiler.
19939             case $host in
19940               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19941               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19942             esac
19943             ;;
19944           RCC*)
19945             # Rational C++ 2.4.1
19946             # FIXME: insert proper C++ library support
19947             ld_shlibs_CXX=no
19948             ;;
19949           cxx*)
19950             case $host in
19951               osf3*)
19952                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19953                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19954                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19955                 ;;
19956               *)
19957                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19958                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19959                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19960                   echo "-hidden">> $lib.exp~
19961                   $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19962                   $RM $lib.exp'
19963                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19964                 ;;
19965             esac
19966
19967             hardcode_libdir_separator_CXX=:
19968
19969             # Commands to make compiler produce verbose output that lists
19970             # what "hidden" libraries, object files and flags are used when
19971             # linking a shared library.
19972             #
19973             # There doesn't appear to be a way to prevent this compiler from
19974             # explicitly linking system object files so we need to strip them
19975             # from the output so that they don't get included in the library
19976             # dependencies.
19977             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19978             ;;
19979           *)
19980             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19981               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19982               case $host in
19983                 osf3*)
19984                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19985                   ;;
19986                 *)
19987                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19988                   ;;
19989               esac
19990
19991               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19992               hardcode_libdir_separator_CXX=:
19993
19994               # Commands to make compiler produce verbose output that lists
19995               # what "hidden" libraries, object files and flags are used when
19996               # linking a shared library.
19997               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19998
19999             else
20000               # FIXME: insert proper C++ library support
20001               ld_shlibs_CXX=no
20002             fi
20003             ;;
20004         esac
20005         ;;
20006
20007       psos*)
20008         # FIXME: insert proper C++ library support
20009         ld_shlibs_CXX=no
20010         ;;
20011
20012       sunos4*)
20013         case $cc_basename in
20014           CC*)
20015             # Sun C++ 4.x
20016             # FIXME: insert proper C++ library support
20017             ld_shlibs_CXX=no
20018             ;;
20019           lcc*)
20020             # Lucid
20021             # FIXME: insert proper C++ library support
20022             ld_shlibs_CXX=no
20023             ;;
20024           *)
20025             # FIXME: insert proper C++ library support
20026             ld_shlibs_CXX=no
20027             ;;
20028         esac
20029         ;;
20030
20031       solaris*)
20032         case $cc_basename in
20033           CC* | sunCC*)
20034             # Sun C++ 4.2, 5.x and Centerline C++
20035             archive_cmds_need_lc_CXX=yes
20036             no_undefined_flag_CXX=' -zdefs'
20037             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20038             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20039               $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'
20040
20041             hardcode_libdir_flag_spec_CXX='-R$libdir'
20042             hardcode_shlibpath_var_CXX=no
20043             case $host_os in
20044               solaris2.[0-5] | solaris2.[0-5].*) ;;
20045               *)
20046                 # The compiler driver will combine and reorder linker options,
20047                 # but understands `-z linker_flag'.
20048                 # Supported since Solaris 2.6 (maybe 2.5.1?)
20049                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20050                 ;;
20051             esac
20052             link_all_deplibs_CXX=yes
20053
20054             output_verbose_link_cmd='func_echo_all'
20055
20056             # Archives containing C++ object files must be created using
20057             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20058             # necessary to make sure instantiated templates are included
20059             # in the archive.
20060             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20061             ;;
20062           gcx*)
20063             # Green Hills C++ Compiler
20064             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20065
20066             # The C++ compiler must be used to create the archive.
20067             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20068             ;;
20069           *)
20070             # GNU C++ compiler with Solaris linker
20071             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20072               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20073               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20074                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20075                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20076                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20077
20078                 # Commands to make compiler produce verbose output that lists
20079                 # what "hidden" libraries, object files and flags are used when
20080                 # linking a shared library.
20081                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20082               else
20083                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20084                 # platform.
20085                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20086                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20087                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20088
20089                 # Commands to make compiler produce verbose output that lists
20090                 # what "hidden" libraries, object files and flags are used when
20091                 # linking a shared library.
20092                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20093               fi
20094
20095               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20096               case $host_os in
20097                 solaris2.[0-5] | solaris2.[0-5].*) ;;
20098                 *)
20099                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20100                   ;;
20101               esac
20102             fi
20103             ;;
20104         esac
20105         ;;
20106
20107     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20108       no_undefined_flag_CXX='${wl}-z,text'
20109       archive_cmds_need_lc_CXX=no
20110       hardcode_shlibpath_var_CXX=no
20111       runpath_var='LD_RUN_PATH'
20112
20113       case $cc_basename in
20114         CC*)
20115           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20117           ;;
20118         *)
20119           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20120           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20121           ;;
20122       esac
20123       ;;
20124
20125       sysv5* | sco3.2v5* | sco5v6*)
20126         # Note: We can NOT use -z defs as we might desire, because we do not
20127         # link with -lc, and that would cause any symbols used from libc to
20128         # always be unresolved, which means just about no library would
20129         # ever link correctly.  If we're not using GNU ld we use -z text
20130         # though, which does catch some bad symbols but isn't as heavy-handed
20131         # as -z defs.
20132         no_undefined_flag_CXX='${wl}-z,text'
20133         allow_undefined_flag_CXX='${wl}-z,nodefs'
20134         archive_cmds_need_lc_CXX=no
20135         hardcode_shlibpath_var_CXX=no
20136         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20137         hardcode_libdir_separator_CXX=':'
20138         link_all_deplibs_CXX=yes
20139         export_dynamic_flag_spec_CXX='${wl}-Bexport'
20140         runpath_var='LD_RUN_PATH'
20141
20142         case $cc_basename in
20143           CC*)
20144             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20145             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20146             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20147               '"$old_archive_cmds_CXX"
20148             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20149               '"$reload_cmds_CXX"
20150             ;;
20151           *)
20152             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20153             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20154             ;;
20155         esac
20156       ;;
20157
20158       tandem*)
20159         case $cc_basename in
20160           NCC*)
20161             # NonStop-UX NCC 3.20
20162             # FIXME: insert proper C++ library support
20163             ld_shlibs_CXX=no
20164             ;;
20165           *)
20166             # FIXME: insert proper C++ library support
20167             ld_shlibs_CXX=no
20168             ;;
20169         esac
20170         ;;
20171
20172       vxworks*)
20173         # FIXME: insert proper C++ library support
20174         ld_shlibs_CXX=no
20175         ;;
20176
20177       *)
20178         # FIXME: insert proper C++ library support
20179         ld_shlibs_CXX=no
20180         ;;
20181     esac
20182
20183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20184 $as_echo "$ld_shlibs_CXX" >&6; }
20185     test "$ld_shlibs_CXX" = no && can_build_shared=no
20186
20187     GCC_CXX="$GXX"
20188     LD_CXX="$LD"
20189
20190     ## CAVEAT EMPTOR:
20191     ## There is no encapsulation within the following macros, do not change
20192     ## the running order or otherwise move them around unless you know exactly
20193     ## what you are doing...
20194     # Dependencies to place before and after the object being linked:
20195 predep_objects_CXX=
20196 postdep_objects_CXX=
20197 predeps_CXX=
20198 postdeps_CXX=
20199 compiler_lib_search_path_CXX=
20200
20201 cat > conftest.$ac_ext <<_LT_EOF
20202 class Foo
20203 {
20204 public:
20205   Foo (void) { a = 0; }
20206 private:
20207   int a;
20208 };
20209 _LT_EOF
20210
20211
20212 _lt_libdeps_save_CFLAGS=$CFLAGS
20213 case "$CC $CFLAGS " in #(
20214 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20215 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20216 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20217 esac
20218
20219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20220   (eval $ac_compile) 2>&5
20221   ac_status=$?
20222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20223   test $ac_status = 0; }; then
20224   # Parse the compiler output and extract the necessary
20225   # objects, libraries and library flags.
20226
20227   # Sentinel used to keep track of whether or not we are before
20228   # the conftest object file.
20229   pre_test_object_deps_done=no
20230
20231   for p in `eval "$output_verbose_link_cmd"`; do
20232     case ${prev}${p} in
20233
20234     -L* | -R* | -l*)
20235        # Some compilers place space between "-{L,R}" and the path.
20236        # Remove the space.
20237        if test $p = "-L" ||
20238           test $p = "-R"; then
20239          prev=$p
20240          continue
20241        fi
20242
20243        # Expand the sysroot to ease extracting the directories later.
20244        if test -z "$prev"; then
20245          case $p in
20246          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20247          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20248          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20249          esac
20250        fi
20251        case $p in
20252        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20253        esac
20254        if test "$pre_test_object_deps_done" = no; then
20255          case ${prev} in
20256          -L | -R)
20257            # Internal compiler library paths should come after those
20258            # provided the user.  The postdeps already come after the
20259            # user supplied libs so there is no need to process them.
20260            if test -z "$compiler_lib_search_path_CXX"; then
20261              compiler_lib_search_path_CXX="${prev}${p}"
20262            else
20263              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20264            fi
20265            ;;
20266          # The "-l" case would never come before the object being
20267          # linked, so don't bother handling this case.
20268          esac
20269        else
20270          if test -z "$postdeps_CXX"; then
20271            postdeps_CXX="${prev}${p}"
20272          else
20273            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20274          fi
20275        fi
20276        prev=
20277        ;;
20278
20279     *.lto.$objext) ;; # Ignore GCC LTO objects
20280     *.$objext)
20281        # This assumes that the test object file only shows up
20282        # once in the compiler output.
20283        if test "$p" = "conftest.$objext"; then
20284          pre_test_object_deps_done=yes
20285          continue
20286        fi
20287
20288        if test "$pre_test_object_deps_done" = no; then
20289          if test -z "$predep_objects_CXX"; then
20290            predep_objects_CXX="$p"
20291          else
20292            predep_objects_CXX="$predep_objects_CXX $p"
20293          fi
20294        else
20295          if test -z "$postdep_objects_CXX"; then
20296            postdep_objects_CXX="$p"
20297          else
20298            postdep_objects_CXX="$postdep_objects_CXX $p"
20299          fi
20300        fi
20301        ;;
20302
20303     *) ;; # Ignore the rest.
20304
20305     esac
20306   done
20307
20308   # Clean up.
20309   rm -f a.out a.exe
20310 else
20311   echo "libtool.m4: error: problem compiling CXX test program"
20312 fi
20313
20314 $RM -f confest.$objext
20315 CFLAGS=$_lt_libdeps_save_CFLAGS
20316
20317 # PORTME: override above test on systems where it is broken
20318 case $host_os in
20319 interix[3-9]*)
20320   # Interix 3.5 installs completely hosed .la files for C++, so rather than
20321   # hack all around it, let's just trust "g++" to DTRT.
20322   predep_objects_CXX=
20323   postdep_objects_CXX=
20324   postdeps_CXX=
20325   ;;
20326
20327 linux*)
20328   case `$CC -V 2>&1 | sed 5q` in
20329   *Sun\ C*)
20330     # Sun C++ 5.9
20331
20332     # The more standards-conforming stlport4 library is
20333     # incompatible with the Cstd library. Avoid specifying
20334     # it if it's in CXXFLAGS. Ignore libCrun as
20335     # -library=stlport4 depends on it.
20336     case " $CXX $CXXFLAGS " in
20337     *" -library=stlport4 "*)
20338       solaris_use_stlport4=yes
20339       ;;
20340     esac
20341
20342     if test "$solaris_use_stlport4" != yes; then
20343       postdeps_CXX='-library=Cstd -library=Crun'
20344     fi
20345     ;;
20346   esac
20347   ;;
20348
20349 solaris*)
20350   case $cc_basename in
20351   CC* | sunCC*)
20352     # The more standards-conforming stlport4 library is
20353     # incompatible with the Cstd library. Avoid specifying
20354     # it if it's in CXXFLAGS. Ignore libCrun as
20355     # -library=stlport4 depends on it.
20356     case " $CXX $CXXFLAGS " in
20357     *" -library=stlport4 "*)
20358       solaris_use_stlport4=yes
20359       ;;
20360     esac
20361
20362     # Adding this requires a known-good setup of shared libraries for
20363     # Sun compiler versions before 5.6, else PIC objects from an old
20364     # archive will be linked into the output, leading to subtle bugs.
20365     if test "$solaris_use_stlport4" != yes; then
20366       postdeps_CXX='-library=Cstd -library=Crun'
20367     fi
20368     ;;
20369   esac
20370   ;;
20371 esac
20372
20373
20374 case " $postdeps_CXX " in
20375 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20376 esac
20377  compiler_lib_search_dirs_CXX=
20378 if test -n "${compiler_lib_search_path_CXX}"; then
20379  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20380 fi
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412     lt_prog_compiler_wl_CXX=
20413 lt_prog_compiler_pic_CXX=
20414 lt_prog_compiler_static_CXX=
20415
20416
20417   # C++ specific cases for pic, static, wl, etc.
20418   if test "$GXX" = yes; then
20419     lt_prog_compiler_wl_CXX='-Wl,'
20420     lt_prog_compiler_static_CXX='-static'
20421
20422     case $host_os in
20423     aix*)
20424       # All AIX code is PIC.
20425       if test "$host_cpu" = ia64; then
20426         # AIX 5 now supports IA64 processor
20427         lt_prog_compiler_static_CXX='-Bstatic'
20428       fi
20429       ;;
20430
20431     amigaos*)
20432       case $host_cpu in
20433       powerpc)
20434             # see comment about AmigaOS4 .so support
20435             lt_prog_compiler_pic_CXX='-fPIC'
20436         ;;
20437       m68k)
20438             # FIXME: we need at least 68020 code to build shared libraries, but
20439             # adding the `-m68020' flag to GCC prevents building anything better,
20440             # like `-m68040'.
20441             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20442         ;;
20443       esac
20444       ;;
20445
20446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20447       # PIC is the default for these OSes.
20448       ;;
20449     mingw* | cygwin* | os2* | pw32* | cegcc*)
20450       # This hack is so that the source file can tell whether it is being
20451       # built for inclusion in a dll (and should export symbols for example).
20452       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20453       # (--disable-auto-import) libraries
20454       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20455       ;;
20456     darwin* | rhapsody*)
20457       # PIC is the default on this platform
20458       # Common symbols not allowed in MH_DYLIB files
20459       lt_prog_compiler_pic_CXX='-fno-common'
20460       ;;
20461     *djgpp*)
20462       # DJGPP does not support shared libraries at all
20463       lt_prog_compiler_pic_CXX=
20464       ;;
20465     haiku*)
20466       # PIC is the default for Haiku.
20467       # The "-static" flag exists, but is broken.
20468       lt_prog_compiler_static_CXX=
20469       ;;
20470     interix[3-9]*)
20471       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20472       # Instead, we relocate shared libraries at runtime.
20473       ;;
20474     sysv4*MP*)
20475       if test -d /usr/nec; then
20476         lt_prog_compiler_pic_CXX=-Kconform_pic
20477       fi
20478       ;;
20479     hpux*)
20480       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20481       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20482       # sets the default TLS model and affects inlining.
20483       case $host_cpu in
20484       hppa*64*)
20485         ;;
20486       *)
20487         lt_prog_compiler_pic_CXX='-fPIC'
20488         ;;
20489       esac
20490       ;;
20491     *qnx* | *nto*)
20492       # QNX uses GNU C++, but need to define -shared option too, otherwise
20493       # it will coredump.
20494       lt_prog_compiler_pic_CXX='-fPIC -shared'
20495       ;;
20496     *)
20497       lt_prog_compiler_pic_CXX='-fPIC'
20498       ;;
20499     esac
20500   else
20501     case $host_os in
20502       aix[4-9]*)
20503         # All AIX code is PIC.
20504         if test "$host_cpu" = ia64; then
20505           # AIX 5 now supports IA64 processor
20506           lt_prog_compiler_static_CXX='-Bstatic'
20507         else
20508           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20509         fi
20510         ;;
20511       chorus*)
20512         case $cc_basename in
20513         cxch68*)
20514           # Green Hills C++ Compiler
20515           # _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"
20516           ;;
20517         esac
20518         ;;
20519       mingw* | cygwin* | os2* | pw32* | cegcc*)
20520         # This hack is so that the source file can tell whether it is being
20521         # built for inclusion in a dll (and should export symbols for example).
20522         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20523         ;;
20524       dgux*)
20525         case $cc_basename in
20526           ec++*)
20527             lt_prog_compiler_pic_CXX='-KPIC'
20528             ;;
20529           ghcx*)
20530             # Green Hills C++ Compiler
20531             lt_prog_compiler_pic_CXX='-pic'
20532             ;;
20533           *)
20534             ;;
20535         esac
20536         ;;
20537       freebsd* | dragonfly*)
20538         # FreeBSD uses GNU C++
20539         ;;
20540       hpux9* | hpux10* | hpux11*)
20541         case $cc_basename in
20542           CC*)
20543             lt_prog_compiler_wl_CXX='-Wl,'
20544             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20545             if test "$host_cpu" != ia64; then
20546               lt_prog_compiler_pic_CXX='+Z'
20547             fi
20548             ;;
20549           aCC*)
20550             lt_prog_compiler_wl_CXX='-Wl,'
20551             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20552             case $host_cpu in
20553             hppa*64*|ia64*)
20554               # +Z the default
20555               ;;
20556             *)
20557               lt_prog_compiler_pic_CXX='+Z'
20558               ;;
20559             esac
20560             ;;
20561           *)
20562             ;;
20563         esac
20564         ;;
20565       interix*)
20566         # This is c89, which is MS Visual C++ (no shared libs)
20567         # Anyone wants to do a port?
20568         ;;
20569       irix5* | irix6* | nonstopux*)
20570         case $cc_basename in
20571           CC*)
20572             lt_prog_compiler_wl_CXX='-Wl,'
20573             lt_prog_compiler_static_CXX='-non_shared'
20574             # CC pic flag -KPIC is the default.
20575             ;;
20576           *)
20577             ;;
20578         esac
20579         ;;
20580       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20581         case $cc_basename in
20582           KCC*)
20583             # KAI C++ Compiler
20584             lt_prog_compiler_wl_CXX='--backend -Wl,'
20585             lt_prog_compiler_pic_CXX='-fPIC'
20586             ;;
20587           ecpc* )
20588             # old Intel C++ for x86_64 which still supported -KPIC.
20589             lt_prog_compiler_wl_CXX='-Wl,'
20590             lt_prog_compiler_pic_CXX='-KPIC'
20591             lt_prog_compiler_static_CXX='-static'
20592             ;;
20593           icpc* )
20594             # Intel C++, used to be incompatible with GCC.
20595             # ICC 10 doesn't accept -KPIC any more.
20596             lt_prog_compiler_wl_CXX='-Wl,'
20597             lt_prog_compiler_pic_CXX='-fPIC'
20598             lt_prog_compiler_static_CXX='-static'
20599             ;;
20600           pgCC* | pgcpp*)
20601             # Portland Group C++ compiler
20602             lt_prog_compiler_wl_CXX='-Wl,'
20603             lt_prog_compiler_pic_CXX='-fpic'
20604             lt_prog_compiler_static_CXX='-Bstatic'
20605             ;;
20606           cxx*)
20607             # Compaq C++
20608             # Make sure the PIC flag is empty.  It appears that all Alpha
20609             # Linux and Compaq Tru64 Unix objects are PIC.
20610             lt_prog_compiler_pic_CXX=
20611             lt_prog_compiler_static_CXX='-non_shared'
20612             ;;
20613           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20614             # IBM XL 8.0, 9.0 on PPC and BlueGene
20615             lt_prog_compiler_wl_CXX='-Wl,'
20616             lt_prog_compiler_pic_CXX='-qpic'
20617             lt_prog_compiler_static_CXX='-qstaticlink'
20618             ;;
20619           *)
20620             case `$CC -V 2>&1 | sed 5q` in
20621             *Sun\ C*)
20622               # Sun C++ 5.9
20623               lt_prog_compiler_pic_CXX='-KPIC'
20624               lt_prog_compiler_static_CXX='-Bstatic'
20625               lt_prog_compiler_wl_CXX='-Qoption ld '
20626               ;;
20627             esac
20628             ;;
20629         esac
20630         ;;
20631       lynxos*)
20632         ;;
20633       m88k*)
20634         ;;
20635       mvs*)
20636         case $cc_basename in
20637           cxx*)
20638             lt_prog_compiler_pic_CXX='-W c,exportall'
20639             ;;
20640           *)
20641             ;;
20642         esac
20643         ;;
20644       netbsd*)
20645         ;;
20646       *qnx* | *nto*)
20647         # QNX uses GNU C++, but need to define -shared option too, otherwise
20648         # it will coredump.
20649         lt_prog_compiler_pic_CXX='-fPIC -shared'
20650         ;;
20651       osf3* | osf4* | osf5*)
20652         case $cc_basename in
20653           KCC*)
20654             lt_prog_compiler_wl_CXX='--backend -Wl,'
20655             ;;
20656           RCC*)
20657             # Rational C++ 2.4.1
20658             lt_prog_compiler_pic_CXX='-pic'
20659             ;;
20660           cxx*)
20661             # Digital/Compaq C++
20662             lt_prog_compiler_wl_CXX='-Wl,'
20663             # Make sure the PIC flag is empty.  It appears that all Alpha
20664             # Linux and Compaq Tru64 Unix objects are PIC.
20665             lt_prog_compiler_pic_CXX=
20666             lt_prog_compiler_static_CXX='-non_shared'
20667             ;;
20668           *)
20669             ;;
20670         esac
20671         ;;
20672       psos*)
20673         ;;
20674       solaris*)
20675         case $cc_basename in
20676           CC* | sunCC*)
20677             # Sun C++ 4.2, 5.x and Centerline C++
20678             lt_prog_compiler_pic_CXX='-KPIC'
20679             lt_prog_compiler_static_CXX='-Bstatic'
20680             lt_prog_compiler_wl_CXX='-Qoption ld '
20681             ;;
20682           gcx*)
20683             # Green Hills C++ Compiler
20684             lt_prog_compiler_pic_CXX='-PIC'
20685             ;;
20686           *)
20687             ;;
20688         esac
20689         ;;
20690       sunos4*)
20691         case $cc_basename in
20692           CC*)
20693             # Sun C++ 4.x
20694             lt_prog_compiler_pic_CXX='-pic'
20695             lt_prog_compiler_static_CXX='-Bstatic'
20696             ;;
20697           lcc*)
20698             # Lucid
20699             lt_prog_compiler_pic_CXX='-pic'
20700             ;;
20701           *)
20702             ;;
20703         esac
20704         ;;
20705       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20706         case $cc_basename in
20707           CC*)
20708             lt_prog_compiler_wl_CXX='-Wl,'
20709             lt_prog_compiler_pic_CXX='-KPIC'
20710             lt_prog_compiler_static_CXX='-Bstatic'
20711             ;;
20712         esac
20713         ;;
20714       tandem*)
20715         case $cc_basename in
20716           NCC*)
20717             # NonStop-UX NCC 3.20
20718             lt_prog_compiler_pic_CXX='-KPIC'
20719             ;;
20720           *)
20721             ;;
20722         esac
20723         ;;
20724       vxworks*)
20725         ;;
20726       *)
20727         lt_prog_compiler_can_build_shared_CXX=no
20728         ;;
20729     esac
20730   fi
20731
20732 case $host_os in
20733   # For platforms which do not support PIC, -DPIC is meaningless:
20734   *djgpp*)
20735     lt_prog_compiler_pic_CXX=
20736     ;;
20737   *)
20738     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20739     ;;
20740 esac
20741
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20744 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20745   $as_echo_n "(cached) " >&6
20746 else
20747   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20748 fi
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20750 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20751 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20752
20753 #
20754 # Check to make sure the PIC flag actually works.
20755 #
20756 if test -n "$lt_prog_compiler_pic_CXX"; then
20757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20758 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20759 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20760   $as_echo_n "(cached) " >&6
20761 else
20762   lt_cv_prog_compiler_pic_works_CXX=no
20763    ac_outfile=conftest.$ac_objext
20764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20765    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20766    # Insert the option either (1) after the last *FLAGS variable, or
20767    # (2) before a word containing "conftest.", or (3) at the end.
20768    # Note that $ac_compile itself does not contain backslashes and begins
20769    # with a dollar sign (not a hyphen), so the echo should work correctly.
20770    # The option is referenced via a variable to avoid confusing sed.
20771    lt_compile=`echo "$ac_compile" | $SED \
20772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20774    -e 's:$: $lt_compiler_flag:'`
20775    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20776    (eval "$lt_compile" 2>conftest.err)
20777    ac_status=$?
20778    cat conftest.err >&5
20779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780    if (exit $ac_status) && test -s "$ac_outfile"; then
20781      # The compiler can only warn and ignore the option if not recognized
20782      # So say no if there are warnings other than the usual output.
20783      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20784      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20785      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20786        lt_cv_prog_compiler_pic_works_CXX=yes
20787      fi
20788    fi
20789    $RM conftest*
20790
20791 fi
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20793 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20794
20795 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20796     case $lt_prog_compiler_pic_CXX in
20797      "" | " "*) ;;
20798      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20799      esac
20800 else
20801     lt_prog_compiler_pic_CXX=
20802      lt_prog_compiler_can_build_shared_CXX=no
20803 fi
20804
20805 fi
20806
20807
20808
20809
20810
20811 #
20812 # Check to make sure the static flag actually works.
20813 #
20814 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20816 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20817 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20818   $as_echo_n "(cached) " >&6
20819 else
20820   lt_cv_prog_compiler_static_works_CXX=no
20821    save_LDFLAGS="$LDFLAGS"
20822    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20823    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20824    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20825      # The linker can only warn and ignore the option if not recognized
20826      # So say no if there are warnings
20827      if test -s conftest.err; then
20828        # Append any errors to the config.log.
20829        cat conftest.err 1>&5
20830        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20831        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20832        if diff conftest.exp conftest.er2 >/dev/null; then
20833          lt_cv_prog_compiler_static_works_CXX=yes
20834        fi
20835      else
20836        lt_cv_prog_compiler_static_works_CXX=yes
20837      fi
20838    fi
20839    $RM -r conftest*
20840    LDFLAGS="$save_LDFLAGS"
20841
20842 fi
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20844 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20845
20846 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20847     :
20848 else
20849     lt_prog_compiler_static_CXX=
20850 fi
20851
20852
20853
20854
20855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20857 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20858   $as_echo_n "(cached) " >&6
20859 else
20860   lt_cv_prog_compiler_c_o_CXX=no
20861    $RM -r conftest 2>/dev/null
20862    mkdir conftest
20863    cd conftest
20864    mkdir out
20865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20866
20867    lt_compiler_flag="-o out/conftest2.$ac_objext"
20868    # Insert the option either (1) after the last *FLAGS variable, or
20869    # (2) before a word containing "conftest.", or (3) at the end.
20870    # Note that $ac_compile itself does not contain backslashes and begins
20871    # with a dollar sign (not a hyphen), so the echo should work correctly.
20872    lt_compile=`echo "$ac_compile" | $SED \
20873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20875    -e 's:$: $lt_compiler_flag:'`
20876    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20877    (eval "$lt_compile" 2>out/conftest.err)
20878    ac_status=$?
20879    cat out/conftest.err >&5
20880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20882    then
20883      # The compiler can only warn and ignore the option if not recognized
20884      # So say no if there are warnings
20885      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20886      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20887      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20888        lt_cv_prog_compiler_c_o_CXX=yes
20889      fi
20890    fi
20891    chmod u+w . 2>&5
20892    $RM conftest*
20893    # SGI C++ compiler will create directory out/ii_files/ for
20894    # template instantiation
20895    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20896    $RM out/* && rmdir out
20897    cd ..
20898    $RM -r conftest
20899    $RM conftest*
20900
20901 fi
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20903 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20904
20905
20906
20907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20909 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20910   $as_echo_n "(cached) " >&6
20911 else
20912   lt_cv_prog_compiler_c_o_CXX=no
20913    $RM -r conftest 2>/dev/null
20914    mkdir conftest
20915    cd conftest
20916    mkdir out
20917    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20918
20919    lt_compiler_flag="-o out/conftest2.$ac_objext"
20920    # Insert the option either (1) after the last *FLAGS variable, or
20921    # (2) before a word containing "conftest.", or (3) at the end.
20922    # Note that $ac_compile itself does not contain backslashes and begins
20923    # with a dollar sign (not a hyphen), so the echo should work correctly.
20924    lt_compile=`echo "$ac_compile" | $SED \
20925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20927    -e 's:$: $lt_compiler_flag:'`
20928    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20929    (eval "$lt_compile" 2>out/conftest.err)
20930    ac_status=$?
20931    cat out/conftest.err >&5
20932    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20934    then
20935      # The compiler can only warn and ignore the option if not recognized
20936      # So say no if there are warnings
20937      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20938      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20939      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20940        lt_cv_prog_compiler_c_o_CXX=yes
20941      fi
20942    fi
20943    chmod u+w . 2>&5
20944    $RM conftest*
20945    # SGI C++ compiler will create directory out/ii_files/ for
20946    # template instantiation
20947    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20948    $RM out/* && rmdir out
20949    cd ..
20950    $RM -r conftest
20951    $RM conftest*
20952
20953 fi
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20955 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20956
20957
20958
20959
20960 hard_links="nottested"
20961 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20962   # do not overwrite the value of need_locks provided by the user
20963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20964 $as_echo_n "checking if we can lock with hard links... " >&6; }
20965   hard_links=yes
20966   $RM conftest*
20967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20968   touch conftest.a
20969   ln conftest.a conftest.b 2>&5 || hard_links=no
20970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20972 $as_echo "$hard_links" >&6; }
20973   if test "$hard_links" = no; then
20974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20976     need_locks=warn
20977   fi
20978 else
20979   need_locks=no
20980 fi
20981
20982
20983
20984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20986
20987   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20988   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20989   case $host_os in
20990   aix[4-9]*)
20991     # If we're using GNU nm, then we don't want the "-C" option.
20992     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20993     # Also, AIX nm treats weak defined symbols like other global defined
20994     # symbols, whereas GNU nm marks them as "W".
20995     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20996       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20997     else
20998       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'
20999     fi
21000     ;;
21001   pw32*)
21002     export_symbols_cmds_CXX="$ltdll_cmds"
21003     ;;
21004   cygwin* | mingw* | cegcc*)
21005     case $cc_basename in
21006     cl*)
21007       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21008       ;;
21009     *)
21010       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21011       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21012       ;;
21013     esac
21014     ;;
21015   *)
21016     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21017     ;;
21018   esac
21019
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21021 $as_echo "$ld_shlibs_CXX" >&6; }
21022 test "$ld_shlibs_CXX" = no && can_build_shared=no
21023
21024 with_gnu_ld_CXX=$with_gnu_ld
21025
21026
21027
21028
21029
21030
21031 #
21032 # Do we need to explicitly link libc?
21033 #
21034 case "x$archive_cmds_need_lc_CXX" in
21035 x|xyes)
21036   # Assume -lc should be added
21037   archive_cmds_need_lc_CXX=yes
21038
21039   if test "$enable_shared" = yes && test "$GCC" = yes; then
21040     case $archive_cmds_CXX in
21041     *'~'*)
21042       # FIXME: we may have to deal with multi-command sequences.
21043       ;;
21044     '$CC '*)
21045       # Test whether the compiler implicitly links with -lc since on some
21046       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21047       # to ld, don't add -lc before -lgcc.
21048       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21049 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21050 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21051   $as_echo_n "(cached) " >&6
21052 else
21053   $RM conftest*
21054         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21055
21056         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21057   (eval $ac_compile) 2>&5
21058   ac_status=$?
21059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060   test $ac_status = 0; } 2>conftest.err; then
21061           soname=conftest
21062           lib=conftest
21063           libobjs=conftest.$ac_objext
21064           deplibs=
21065           wl=$lt_prog_compiler_wl_CXX
21066           pic_flag=$lt_prog_compiler_pic_CXX
21067           compiler_flags=-v
21068           linker_flags=-v
21069           verstring=
21070           output_objdir=.
21071           libname=conftest
21072           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21073           allow_undefined_flag_CXX=
21074           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21075   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21076   ac_status=$?
21077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21078   test $ac_status = 0; }
21079           then
21080             lt_cv_archive_cmds_need_lc_CXX=no
21081           else
21082             lt_cv_archive_cmds_need_lc_CXX=yes
21083           fi
21084           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21085         else
21086           cat conftest.err 1>&5
21087         fi
21088         $RM conftest*
21089
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21092 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21093       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21094       ;;
21095     esac
21096   fi
21097   ;;
21098 esac
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21163
21164 library_names_spec=
21165 libname_spec='lib$name'
21166 soname_spec=
21167 shrext_cmds=".so"
21168 postinstall_cmds=
21169 postuninstall_cmds=
21170 finish_cmds=
21171 finish_eval=
21172 shlibpath_var=
21173 shlibpath_overrides_runpath=unknown
21174 version_type=none
21175 dynamic_linker="$host_os ld.so"
21176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21177 need_lib_prefix=unknown
21178 hardcode_into_libs=no
21179
21180 # when you set need_version to no, make sure it does not cause -set_version
21181 # flags to be left without arguments
21182 need_version=unknown
21183
21184 case $host_os in
21185 aix3*)
21186   version_type=linux # correct to gnu/linux during the next big refactor
21187   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21188   shlibpath_var=LIBPATH
21189
21190   # AIX 3 has no versioning support, so we append a major version to the name.
21191   soname_spec='${libname}${release}${shared_ext}$major'
21192   ;;
21193
21194 aix[4-9]*)
21195   version_type=linux # correct to gnu/linux during the next big refactor
21196   need_lib_prefix=no
21197   need_version=no
21198   hardcode_into_libs=yes
21199   if test "$host_cpu" = ia64; then
21200     # AIX 5 supports IA64
21201     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21202     shlibpath_var=LD_LIBRARY_PATH
21203   else
21204     # With GCC up to 2.95.x, collect2 would create an import file
21205     # for dependence libraries.  The import file would start with
21206     # the line `#! .'.  This would cause the generated library to
21207     # depend on `.', always an invalid library.  This was fixed in
21208     # development snapshots of GCC prior to 3.0.
21209     case $host_os in
21210       aix4 | aix4.[01] | aix4.[01].*)
21211       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21212            echo ' yes '
21213            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21214         :
21215       else
21216         can_build_shared=no
21217       fi
21218       ;;
21219     esac
21220     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21221     # soname into executable. Probably we can add versioning support to
21222     # collect2, so additional links can be useful in future.
21223     if test "$aix_use_runtimelinking" = yes; then
21224       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21225       # instead of lib<name>.a to let people know that these are not
21226       # typical AIX shared libraries.
21227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21228     else
21229       # We preserve .a as extension for shared libraries through AIX4.2
21230       # and later when we are not doing run time linking.
21231       library_names_spec='${libname}${release}.a $libname.a'
21232       soname_spec='${libname}${release}${shared_ext}$major'
21233     fi
21234     shlibpath_var=LIBPATH
21235   fi
21236   ;;
21237
21238 amigaos*)
21239   case $host_cpu in
21240   powerpc)
21241     # Since July 2007 AmigaOS4 officially supports .so libraries.
21242     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21244     ;;
21245   m68k)
21246     library_names_spec='$libname.ixlibrary $libname.a'
21247     # Create ${libname}_ixlibrary.a entries in /sys/libs.
21248     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
21249     ;;
21250   esac
21251   ;;
21252
21253 beos*)
21254   library_names_spec='${libname}${shared_ext}'
21255   dynamic_linker="$host_os ld.so"
21256   shlibpath_var=LIBRARY_PATH
21257   ;;
21258
21259 bsdi[45]*)
21260   version_type=linux # correct to gnu/linux during the next big refactor
21261   need_version=no
21262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21263   soname_spec='${libname}${release}${shared_ext}$major'
21264   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21265   shlibpath_var=LD_LIBRARY_PATH
21266   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21267   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21268   # the default ld.so.conf also contains /usr/contrib/lib and
21269   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21270   # libtool to hard-code these into programs
21271   ;;
21272
21273 cygwin* | mingw* | pw32* | cegcc*)
21274   version_type=windows
21275   shrext_cmds=".dll"
21276   need_version=no
21277   need_lib_prefix=no
21278
21279   case $GCC,$cc_basename in
21280   yes,*)
21281     # gcc
21282     library_names_spec='$libname.dll.a'
21283     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21284     postinstall_cmds='base_file=`basename \${file}`~
21285       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21286       dldir=$destdir/`dirname \$dlpath`~
21287       test -d \$dldir || mkdir -p \$dldir~
21288       $install_prog $dir/$dlname \$dldir/$dlname~
21289       chmod a+x \$dldir/$dlname~
21290       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21291         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21292       fi'
21293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21294       dlpath=$dir/\$dldll~
21295        $RM \$dlpath'
21296     shlibpath_overrides_runpath=yes
21297
21298     case $host_os in
21299     cygwin*)
21300       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21301       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21302
21303       ;;
21304     mingw* | cegcc*)
21305       # MinGW DLLs use traditional 'lib' prefix
21306       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21307       ;;
21308     pw32*)
21309       # pw32 DLLs use 'pw' prefix rather than 'lib'
21310       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21311       ;;
21312     esac
21313     dynamic_linker='Win32 ld.exe'
21314     ;;
21315
21316   *,cl*)
21317     # Native MSVC
21318     libname_spec='$name'
21319     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21320     library_names_spec='${libname}.dll.lib'
21321
21322     case $build_os in
21323     mingw*)
21324       sys_lib_search_path_spec=
21325       lt_save_ifs=$IFS
21326       IFS=';'
21327       for lt_path in $LIB
21328       do
21329         IFS=$lt_save_ifs
21330         # Let DOS variable expansion print the short 8.3 style file name.
21331         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21332         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21333       done
21334       IFS=$lt_save_ifs
21335       # Convert to MSYS style.
21336       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21337       ;;
21338     cygwin*)
21339       # Convert to unix form, then to dos form, then back to unix form
21340       # but this time dos style (no spaces!) so that the unix form looks
21341       # like /cygdrive/c/PROGRA~1:/cygdr...
21342       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21343       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21344       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21345       ;;
21346     *)
21347       sys_lib_search_path_spec="$LIB"
21348       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21349         # It is most probably a Windows format PATH.
21350         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21351       else
21352         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21353       fi
21354       # FIXME: find the short name or the path components, as spaces are
21355       # common. (e.g. "Program Files" -> "PROGRA~1")
21356       ;;
21357     esac
21358
21359     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21360     postinstall_cmds='base_file=`basename \${file}`~
21361       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21362       dldir=$destdir/`dirname \$dlpath`~
21363       test -d \$dldir || mkdir -p \$dldir~
21364       $install_prog $dir/$dlname \$dldir/$dlname'
21365     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21366       dlpath=$dir/\$dldll~
21367        $RM \$dlpath'
21368     shlibpath_overrides_runpath=yes
21369     dynamic_linker='Win32 link.exe'
21370     ;;
21371
21372   *)
21373     # Assume MSVC wrapper
21374     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21375     dynamic_linker='Win32 ld.exe'
21376     ;;
21377   esac
21378   # FIXME: first we should search . and the directory the executable is in
21379   shlibpath_var=PATH
21380   ;;
21381
21382 darwin* | rhapsody*)
21383   dynamic_linker="$host_os dyld"
21384   version_type=darwin
21385   need_lib_prefix=no
21386   need_version=no
21387   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21388   soname_spec='${libname}${release}${major}$shared_ext'
21389   shlibpath_overrides_runpath=yes
21390   shlibpath_var=DYLD_LIBRARY_PATH
21391   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21392
21393   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21394   ;;
21395
21396 dgux*)
21397   version_type=linux # correct to gnu/linux during the next big refactor
21398   need_lib_prefix=no
21399   need_version=no
21400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21401   soname_spec='${libname}${release}${shared_ext}$major'
21402   shlibpath_var=LD_LIBRARY_PATH
21403   ;;
21404
21405 freebsd* | dragonfly*)
21406   # DragonFly does not have aout.  When/if they implement a new
21407   # versioning mechanism, adjust this.
21408   if test -x /usr/bin/objformat; then
21409     objformat=`/usr/bin/objformat`
21410   else
21411     case $host_os in
21412     freebsd[23].*) objformat=aout ;;
21413     *) objformat=elf ;;
21414     esac
21415   fi
21416   version_type=freebsd-$objformat
21417   case $version_type in
21418     freebsd-elf*)
21419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21420       need_version=no
21421       need_lib_prefix=no
21422       ;;
21423     freebsd-*)
21424       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21425       need_version=yes
21426       ;;
21427   esac
21428   shlibpath_var=LD_LIBRARY_PATH
21429   case $host_os in
21430   freebsd2.*)
21431     shlibpath_overrides_runpath=yes
21432     ;;
21433   freebsd3.[01]* | freebsdelf3.[01]*)
21434     shlibpath_overrides_runpath=yes
21435     hardcode_into_libs=yes
21436     ;;
21437   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21438   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21439     shlibpath_overrides_runpath=no
21440     hardcode_into_libs=yes
21441     ;;
21442   *) # from 4.6 on, and DragonFly
21443     shlibpath_overrides_runpath=yes
21444     hardcode_into_libs=yes
21445     ;;
21446   esac
21447   ;;
21448
21449 gnu*)
21450   version_type=linux # correct to gnu/linux during the next big refactor
21451   need_lib_prefix=no
21452   need_version=no
21453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21454   soname_spec='${libname}${release}${shared_ext}$major'
21455   shlibpath_var=LD_LIBRARY_PATH
21456   shlibpath_overrides_runpath=no
21457   hardcode_into_libs=yes
21458   ;;
21459
21460 haiku*)
21461   version_type=linux # correct to gnu/linux during the next big refactor
21462   need_lib_prefix=no
21463   need_version=no
21464   dynamic_linker="$host_os runtime_loader"
21465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21466   soname_spec='${libname}${release}${shared_ext}$major'
21467   shlibpath_var=LIBRARY_PATH
21468   shlibpath_overrides_runpath=yes
21469   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21470   hardcode_into_libs=yes
21471   ;;
21472
21473 hpux9* | hpux10* | hpux11*)
21474   # Give a soname corresponding to the major version so that dld.sl refuses to
21475   # link against other versions.
21476   version_type=sunos
21477   need_lib_prefix=no
21478   need_version=no
21479   case $host_cpu in
21480   ia64*)
21481     shrext_cmds='.so'
21482     hardcode_into_libs=yes
21483     dynamic_linker="$host_os dld.so"
21484     shlibpath_var=LD_LIBRARY_PATH
21485     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21487     soname_spec='${libname}${release}${shared_ext}$major'
21488     if test "X$HPUX_IA64_MODE" = X32; then
21489       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21490     else
21491       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21492     fi
21493     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21494     ;;
21495   hppa*64*)
21496     shrext_cmds='.sl'
21497     hardcode_into_libs=yes
21498     dynamic_linker="$host_os dld.sl"
21499     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21500     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21502     soname_spec='${libname}${release}${shared_ext}$major'
21503     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21504     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21505     ;;
21506   *)
21507     shrext_cmds='.sl'
21508     dynamic_linker="$host_os dld.sl"
21509     shlibpath_var=SHLIB_PATH
21510     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512     soname_spec='${libname}${release}${shared_ext}$major'
21513     ;;
21514   esac
21515   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21516   postinstall_cmds='chmod 555 $lib'
21517   # or fails outright, so override atomically:
21518   install_override_mode=555
21519   ;;
21520
21521 interix[3-9]*)
21522   version_type=linux # correct to gnu/linux during the next big refactor
21523   need_lib_prefix=no
21524   need_version=no
21525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21526   soname_spec='${libname}${release}${shared_ext}$major'
21527   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21528   shlibpath_var=LD_LIBRARY_PATH
21529   shlibpath_overrides_runpath=no
21530   hardcode_into_libs=yes
21531   ;;
21532
21533 irix5* | irix6* | nonstopux*)
21534   case $host_os in
21535     nonstopux*) version_type=nonstopux ;;
21536     *)
21537         if test "$lt_cv_prog_gnu_ld" = yes; then
21538                 version_type=linux # correct to gnu/linux during the next big refactor
21539         else
21540                 version_type=irix
21541         fi ;;
21542   esac
21543   need_lib_prefix=no
21544   need_version=no
21545   soname_spec='${libname}${release}${shared_ext}$major'
21546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21547   case $host_os in
21548   irix5* | nonstopux*)
21549     libsuff= shlibsuff=
21550     ;;
21551   *)
21552     case $LD in # libtool.m4 will add one of these switches to LD
21553     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21554       libsuff= shlibsuff= libmagic=32-bit;;
21555     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21556       libsuff=32 shlibsuff=N32 libmagic=N32;;
21557     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21558       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21559     *) libsuff= shlibsuff= libmagic=never-match;;
21560     esac
21561     ;;
21562   esac
21563   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21564   shlibpath_overrides_runpath=no
21565   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21566   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21567   hardcode_into_libs=yes
21568   ;;
21569
21570 # No shared lib support for Linux oldld, aout, or coff.
21571 linux*oldld* | linux*aout* | linux*coff*)
21572   dynamic_linker=no
21573   ;;
21574
21575 # This must be glibc/ELF.
21576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21577   version_type=linux # correct to gnu/linux during the next big refactor
21578   need_lib_prefix=no
21579   need_version=no
21580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21581   soname_spec='${libname}${release}${shared_ext}$major'
21582   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21583   shlibpath_var=LD_LIBRARY_PATH
21584   shlibpath_overrides_runpath=no
21585
21586   # Some binutils ld are patched to set DT_RUNPATH
21587   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21588   $as_echo_n "(cached) " >&6
21589 else
21590   lt_cv_shlibpath_overrides_runpath=no
21591     save_LDFLAGS=$LDFLAGS
21592     save_libdir=$libdir
21593     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21594          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h.  */
21597
21598 int
21599 main ()
21600 {
21601
21602   ;
21603   return 0;
21604 }
21605 _ACEOF
21606 if ac_fn_cxx_try_link "$LINENO"; then :
21607   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21608   lt_cv_shlibpath_overrides_runpath=yes
21609 fi
21610 fi
21611 rm -f core conftest.err conftest.$ac_objext \
21612     conftest$ac_exeext conftest.$ac_ext
21613     LDFLAGS=$save_LDFLAGS
21614     libdir=$save_libdir
21615
21616 fi
21617
21618   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21619
21620   # This implies no fast_install, which is unacceptable.
21621   # Some rework will be needed to allow for fast_install
21622   # before this can be enabled.
21623   hardcode_into_libs=yes
21624
21625   # Append ld.so.conf contents to the search path
21626   if test -f /etc/ld.so.conf; then
21627     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;s/"//g;/^$/d' | tr '\n' ' '`
21628     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21629   fi
21630
21631   # We used to test for /lib/ld.so.1 and disable shared libraries on
21632   # powerpc, because MkLinux only supported shared libraries with the
21633   # GNU dynamic linker.  Since this was broken with cross compilers,
21634   # most powerpc-linux boxes support dynamic linking these days and
21635   # people can always --disable-shared, the test was removed, and we
21636   # assume the GNU/Linux dynamic linker is in use.
21637   dynamic_linker='GNU/Linux ld.so'
21638   ;;
21639
21640 netbsd*)
21641   version_type=sunos
21642   need_lib_prefix=no
21643   need_version=no
21644   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21646     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21647     dynamic_linker='NetBSD (a.out) ld.so'
21648   else
21649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21650     soname_spec='${libname}${release}${shared_ext}$major'
21651     dynamic_linker='NetBSD ld.elf_so'
21652   fi
21653   shlibpath_var=LD_LIBRARY_PATH
21654   shlibpath_overrides_runpath=yes
21655   hardcode_into_libs=yes
21656   ;;
21657
21658 newsos6)
21659   version_type=linux # correct to gnu/linux during the next big refactor
21660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21661   shlibpath_var=LD_LIBRARY_PATH
21662   shlibpath_overrides_runpath=yes
21663   ;;
21664
21665 *nto* | *qnx*)
21666   version_type=qnx
21667   need_lib_prefix=no
21668   need_version=no
21669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21670   soname_spec='${libname}${release}${shared_ext}$major'
21671   shlibpath_var=LD_LIBRARY_PATH
21672   shlibpath_overrides_runpath=no
21673   hardcode_into_libs=yes
21674   dynamic_linker='ldqnx.so'
21675   ;;
21676
21677 openbsd*)
21678   version_type=sunos
21679   sys_lib_dlsearch_path_spec="/usr/lib"
21680   need_lib_prefix=no
21681   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21682   case $host_os in
21683     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21684     *)                          need_version=no  ;;
21685   esac
21686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21688   shlibpath_var=LD_LIBRARY_PATH
21689   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21690     case $host_os in
21691       openbsd2.[89] | openbsd2.[89].*)
21692         shlibpath_overrides_runpath=no
21693         ;;
21694       *)
21695         shlibpath_overrides_runpath=yes
21696         ;;
21697       esac
21698   else
21699     shlibpath_overrides_runpath=yes
21700   fi
21701   ;;
21702
21703 os2*)
21704   libname_spec='$name'
21705   shrext_cmds=".dll"
21706   need_lib_prefix=no
21707   library_names_spec='$libname${shared_ext} $libname.a'
21708   dynamic_linker='OS/2 ld.exe'
21709   shlibpath_var=LIBPATH
21710   ;;
21711
21712 osf3* | osf4* | osf5*)
21713   version_type=osf
21714   need_lib_prefix=no
21715   need_version=no
21716   soname_spec='${libname}${release}${shared_ext}$major'
21717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21718   shlibpath_var=LD_LIBRARY_PATH
21719   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21720   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21721   ;;
21722
21723 rdos*)
21724   dynamic_linker=no
21725   ;;
21726
21727 solaris*)
21728   version_type=linux # correct to gnu/linux during the next big refactor
21729   need_lib_prefix=no
21730   need_version=no
21731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21732   soname_spec='${libname}${release}${shared_ext}$major'
21733   shlibpath_var=LD_LIBRARY_PATH
21734   shlibpath_overrides_runpath=yes
21735   hardcode_into_libs=yes
21736   # ldd complains unless libraries are executable
21737   postinstall_cmds='chmod +x $lib'
21738   ;;
21739
21740 sunos4*)
21741   version_type=sunos
21742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21743   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21744   shlibpath_var=LD_LIBRARY_PATH
21745   shlibpath_overrides_runpath=yes
21746   if test "$with_gnu_ld" = yes; then
21747     need_lib_prefix=no
21748   fi
21749   need_version=yes
21750   ;;
21751
21752 sysv4 | sysv4.3*)
21753   version_type=linux # correct to gnu/linux during the next big refactor
21754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21755   soname_spec='${libname}${release}${shared_ext}$major'
21756   shlibpath_var=LD_LIBRARY_PATH
21757   case $host_vendor in
21758     sni)
21759       shlibpath_overrides_runpath=no
21760       need_lib_prefix=no
21761       runpath_var=LD_RUN_PATH
21762       ;;
21763     siemens)
21764       need_lib_prefix=no
21765       ;;
21766     motorola)
21767       need_lib_prefix=no
21768       need_version=no
21769       shlibpath_overrides_runpath=no
21770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21771       ;;
21772   esac
21773   ;;
21774
21775 sysv4*MP*)
21776   if test -d /usr/nec ;then
21777     version_type=linux # correct to gnu/linux during the next big refactor
21778     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21779     soname_spec='$libname${shared_ext}.$major'
21780     shlibpath_var=LD_LIBRARY_PATH
21781   fi
21782   ;;
21783
21784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21785   version_type=freebsd-elf
21786   need_lib_prefix=no
21787   need_version=no
21788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21789   soname_spec='${libname}${release}${shared_ext}$major'
21790   shlibpath_var=LD_LIBRARY_PATH
21791   shlibpath_overrides_runpath=yes
21792   hardcode_into_libs=yes
21793   if test "$with_gnu_ld" = yes; then
21794     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21795   else
21796     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21797     case $host_os in
21798       sco3.2v5*)
21799         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21800         ;;
21801     esac
21802   fi
21803   sys_lib_dlsearch_path_spec='/usr/lib'
21804   ;;
21805
21806 tpf*)
21807   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21808   version_type=linux # correct to gnu/linux during the next big refactor
21809   need_lib_prefix=no
21810   need_version=no
21811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21812   shlibpath_var=LD_LIBRARY_PATH
21813   shlibpath_overrides_runpath=no
21814   hardcode_into_libs=yes
21815   ;;
21816
21817 uts4*)
21818   version_type=linux # correct to gnu/linux during the next big refactor
21819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21820   soname_spec='${libname}${release}${shared_ext}$major'
21821   shlibpath_var=LD_LIBRARY_PATH
21822   ;;
21823
21824 *)
21825   dynamic_linker=no
21826   ;;
21827 esac
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21829 $as_echo "$dynamic_linker" >&6; }
21830 test "$dynamic_linker" = no && can_build_shared=no
21831
21832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21833 if test "$GCC" = yes; then
21834   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21835 fi
21836
21837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21838   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21839 fi
21840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21841   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21842 fi
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21882 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21883 hardcode_action_CXX=
21884 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21885    test -n "$runpath_var_CXX" ||
21886    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21887
21888   # We can hardcode non-existent directories.
21889   if test "$hardcode_direct_CXX" != no &&
21890      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21891      # have to relink, otherwise we might link with an installed library
21892      # when we should be linking with a yet-to-be-installed one
21893      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21894      test "$hardcode_minus_L_CXX" != no; then
21895     # Linking always hardcodes the temporary library directory.
21896     hardcode_action_CXX=relink
21897   else
21898     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21899     hardcode_action_CXX=immediate
21900   fi
21901 else
21902   # We cannot hardcode anything, or else we can only hardcode existing
21903   # directories.
21904   hardcode_action_CXX=unsupported
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21907 $as_echo "$hardcode_action_CXX" >&6; }
21908
21909 if test "$hardcode_action_CXX" = relink ||
21910    test "$inherit_rpath_CXX" = yes; then
21911   # Fast installation is not supported
21912   enable_fast_install=no
21913 elif test "$shlibpath_overrides_runpath" = yes ||
21914      test "$enable_shared" = no; then
21915   # Fast installation is not necessary
21916   enable_fast_install=needless
21917 fi
21918
21919
21920
21921
21922
21923
21924
21925   fi # test -n "$compiler"
21926
21927   CC=$lt_save_CC
21928   CFLAGS=$lt_save_CFLAGS
21929   LDCXX=$LD
21930   LD=$lt_save_LD
21931   GCC=$lt_save_GCC
21932   with_gnu_ld=$lt_save_with_gnu_ld
21933   lt_cv_path_LDCXX=$lt_cv_path_LD
21934   lt_cv_path_LD=$lt_save_path_LD
21935   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21936   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21937 fi # test "$_lt_caught_CXX_error" != yes
21938
21939 ac_ext=c
21940 ac_cpp='$CPP $CPPFLAGS'
21941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21944
21945
21946
21947       ac_ext=f
21948 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21949 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21950 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21951
21952 if test -z "$F77" || test "X$F77" = "Xno"; then
21953   _lt_disable_F77=yes
21954 fi
21955
21956 archive_cmds_need_lc_F77=no
21957 allow_undefined_flag_F77=
21958 always_export_symbols_F77=no
21959 archive_expsym_cmds_F77=
21960 export_dynamic_flag_spec_F77=
21961 hardcode_direct_F77=no
21962 hardcode_direct_absolute_F77=no
21963 hardcode_libdir_flag_spec_F77=
21964 hardcode_libdir_separator_F77=
21965 hardcode_minus_L_F77=no
21966 hardcode_automatic_F77=no
21967 inherit_rpath_F77=no
21968 module_cmds_F77=
21969 module_expsym_cmds_F77=
21970 link_all_deplibs_F77=unknown
21971 old_archive_cmds_F77=$old_archive_cmds
21972 reload_flag_F77=$reload_flag
21973 reload_cmds_F77=$reload_cmds
21974 no_undefined_flag_F77=
21975 whole_archive_flag_spec_F77=
21976 enable_shared_with_static_runtimes_F77=no
21977
21978 # Source file extension for f77 test sources.
21979 ac_ext=f
21980
21981 # Object file extension for compiled f77 test sources.
21982 objext=o
21983 objext_F77=$objext
21984
21985 # No sense in running all these tests if we already determined that
21986 # the F77 compiler isn't working.  Some variables (like enable_shared)
21987 # are currently assumed to apply to all compilers on this platform,
21988 # and will be corrupted by setting them based on a non-working compiler.
21989 if test "$_lt_disable_F77" != yes; then
21990   # Code to be used in simple compile tests
21991   lt_simple_compile_test_code="\
21992       subroutine t
21993       return
21994       end
21995 "
21996
21997   # Code to be used in simple link tests
21998   lt_simple_link_test_code="\
21999       program t
22000       end
22001 "
22002
22003   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22004
22005
22006
22007
22008
22009
22010 # If no C compiler was specified, use CC.
22011 LTCC=${LTCC-"$CC"}
22012
22013 # If no C compiler flags were specified, use CFLAGS.
22014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22015
22016 # Allow CC to be a program name with arguments.
22017 compiler=$CC
22018
22019
22020   # save warnings/boilerplate of simple test code
22021   ac_outfile=conftest.$ac_objext
22022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22024 _lt_compiler_boilerplate=`cat conftest.err`
22025 $RM conftest*
22026
22027   ac_outfile=conftest.$ac_objext
22028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22030 _lt_linker_boilerplate=`cat conftest.err`
22031 $RM -r conftest*
22032
22033
22034   # Allow CC to be a program name with arguments.
22035   lt_save_CC="$CC"
22036   lt_save_GCC=$GCC
22037   lt_save_CFLAGS=$CFLAGS
22038   CC=${F77-"f77"}
22039   CFLAGS=$FFLAGS
22040   compiler=$CC
22041   compiler_F77=$CC
22042   for cc_temp in $compiler""; do
22043   case $cc_temp in
22044     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22045     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22046     \-*) ;;
22047     *) break;;
22048   esac
22049 done
22050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22051
22052   GCC=$G77
22053   if test -n "$compiler"; then
22054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22055 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22057 $as_echo "$can_build_shared" >&6; }
22058
22059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22060 $as_echo_n "checking whether to build shared libraries... " >&6; }
22061     test "$can_build_shared" = "no" && enable_shared=no
22062
22063     # On AIX, shared libraries and static libraries use the same namespace, and
22064     # are all built from PIC.
22065     case $host_os in
22066       aix3*)
22067         test "$enable_shared" = yes && enable_static=no
22068         if test -n "$RANLIB"; then
22069           archive_cmds="$archive_cmds~\$RANLIB \$lib"
22070           postinstall_cmds='$RANLIB $lib'
22071         fi
22072         ;;
22073       aix[4-9]*)
22074         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22075           test "$enable_shared" = yes && enable_static=no
22076         fi
22077         ;;
22078     esac
22079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22080 $as_echo "$enable_shared" >&6; }
22081
22082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22083 $as_echo_n "checking whether to build static libraries... " >&6; }
22084     # Make sure either enable_shared or enable_static is yes.
22085     test "$enable_shared" = yes || enable_static=yes
22086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22087 $as_echo "$enable_static" >&6; }
22088
22089     GCC_F77="$G77"
22090     LD_F77="$LD"
22091
22092     ## CAVEAT EMPTOR:
22093     ## There is no encapsulation within the following macros, do not change
22094     ## the running order or otherwise move them around unless you know exactly
22095     ## what you are doing...
22096     lt_prog_compiler_wl_F77=
22097 lt_prog_compiler_pic_F77=
22098 lt_prog_compiler_static_F77=
22099
22100
22101   if test "$GCC" = yes; then
22102     lt_prog_compiler_wl_F77='-Wl,'
22103     lt_prog_compiler_static_F77='-static'
22104
22105     case $host_os in
22106       aix*)
22107       # All AIX code is PIC.
22108       if test "$host_cpu" = ia64; then
22109         # AIX 5 now supports IA64 processor
22110         lt_prog_compiler_static_F77='-Bstatic'
22111       fi
22112       ;;
22113
22114     amigaos*)
22115       case $host_cpu in
22116       powerpc)
22117             # see comment about AmigaOS4 .so support
22118             lt_prog_compiler_pic_F77='-fPIC'
22119         ;;
22120       m68k)
22121             # FIXME: we need at least 68020 code to build shared libraries, but
22122             # adding the `-m68020' flag to GCC prevents building anything better,
22123             # like `-m68040'.
22124             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22125         ;;
22126       esac
22127       ;;
22128
22129     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22130       # PIC is the default for these OSes.
22131       ;;
22132
22133     mingw* | cygwin* | pw32* | os2* | cegcc*)
22134       # This hack is so that the source file can tell whether it is being
22135       # built for inclusion in a dll (and should export symbols for example).
22136       # Although the cygwin gcc ignores -fPIC, still need this for old-style
22137       # (--disable-auto-import) libraries
22138       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22139       ;;
22140
22141     darwin* | rhapsody*)
22142       # PIC is the default on this platform
22143       # Common symbols not allowed in MH_DYLIB files
22144       lt_prog_compiler_pic_F77='-fno-common'
22145       ;;
22146
22147     haiku*)
22148       # PIC is the default for Haiku.
22149       # The "-static" flag exists, but is broken.
22150       lt_prog_compiler_static_F77=
22151       ;;
22152
22153     hpux*)
22154       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22155       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
22156       # sets the default TLS model and affects inlining.
22157       case $host_cpu in
22158       hppa*64*)
22159         # +Z the default
22160         ;;
22161       *)
22162         lt_prog_compiler_pic_F77='-fPIC'
22163         ;;
22164       esac
22165       ;;
22166
22167     interix[3-9]*)
22168       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22169       # Instead, we relocate shared libraries at runtime.
22170       ;;
22171
22172     msdosdjgpp*)
22173       # Just because we use GCC doesn't mean we suddenly get shared libraries
22174       # on systems that don't support them.
22175       lt_prog_compiler_can_build_shared_F77=no
22176       enable_shared=no
22177       ;;
22178
22179     *nto* | *qnx*)
22180       # QNX uses GNU C++, but need to define -shared option too, otherwise
22181       # it will coredump.
22182       lt_prog_compiler_pic_F77='-fPIC -shared'
22183       ;;
22184
22185     sysv4*MP*)
22186       if test -d /usr/nec; then
22187         lt_prog_compiler_pic_F77=-Kconform_pic
22188       fi
22189       ;;
22190
22191     *)
22192       lt_prog_compiler_pic_F77='-fPIC'
22193       ;;
22194     esac
22195
22196     case $cc_basename in
22197     nvcc*) # Cuda Compiler Driver 2.2
22198       lt_prog_compiler_wl_F77='-Xlinker '
22199       if test -n "$lt_prog_compiler_pic_F77"; then
22200         lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
22201       fi
22202       ;;
22203     esac
22204   else
22205     # PORTME Check for flag to pass linker flags through the system compiler.
22206     case $host_os in
22207     aix*)
22208       lt_prog_compiler_wl_F77='-Wl,'
22209       if test "$host_cpu" = ia64; then
22210         # AIX 5 now supports IA64 processor
22211         lt_prog_compiler_static_F77='-Bstatic'
22212       else
22213         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22214       fi
22215       ;;
22216
22217     mingw* | cygwin* | pw32* | os2* | cegcc*)
22218       # This hack is so that the source file can tell whether it is being
22219       # built for inclusion in a dll (and should export symbols for example).
22220       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22221       ;;
22222
22223     hpux9* | hpux10* | hpux11*)
22224       lt_prog_compiler_wl_F77='-Wl,'
22225       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22226       # not for PA HP-UX.
22227       case $host_cpu in
22228       hppa*64*|ia64*)
22229         # +Z the default
22230         ;;
22231       *)
22232         lt_prog_compiler_pic_F77='+Z'
22233         ;;
22234       esac
22235       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22236       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22237       ;;
22238
22239     irix5* | irix6* | nonstopux*)
22240       lt_prog_compiler_wl_F77='-Wl,'
22241       # PIC (with -KPIC) is the default.
22242       lt_prog_compiler_static_F77='-non_shared'
22243       ;;
22244
22245     linux* | k*bsd*-gnu | kopensolaris*-gnu)
22246       case $cc_basename in
22247       # old Intel for x86_64 which still supported -KPIC.
22248       ecc*)
22249         lt_prog_compiler_wl_F77='-Wl,'
22250         lt_prog_compiler_pic_F77='-KPIC'
22251         lt_prog_compiler_static_F77='-static'
22252         ;;
22253       # icc used to be incompatible with GCC.
22254       # ICC 10 doesn't accept -KPIC any more.
22255       icc* | ifort*)
22256         lt_prog_compiler_wl_F77='-Wl,'
22257         lt_prog_compiler_pic_F77='-fPIC'
22258         lt_prog_compiler_static_F77='-static'
22259         ;;
22260       # Lahey Fortran 8.1.
22261       lf95*)
22262         lt_prog_compiler_wl_F77='-Wl,'
22263         lt_prog_compiler_pic_F77='--shared'
22264         lt_prog_compiler_static_F77='--static'
22265         ;;
22266       nagfor*)
22267         # NAG Fortran compiler
22268         lt_prog_compiler_wl_F77='-Wl,-Wl,,'
22269         lt_prog_compiler_pic_F77='-PIC'
22270         lt_prog_compiler_static_F77='-Bstatic'
22271         ;;
22272       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22273         # Portland Group compilers (*not* the Pentium gcc compiler,
22274         # which looks to be a dead project)
22275         lt_prog_compiler_wl_F77='-Wl,'
22276         lt_prog_compiler_pic_F77='-fpic'
22277         lt_prog_compiler_static_F77='-Bstatic'
22278         ;;
22279       ccc*)
22280         lt_prog_compiler_wl_F77='-Wl,'
22281         # All Alpha code is PIC.
22282         lt_prog_compiler_static_F77='-non_shared'
22283         ;;
22284       xl* | bgxl* | bgf* | mpixl*)
22285         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
22286         lt_prog_compiler_wl_F77='-Wl,'
22287         lt_prog_compiler_pic_F77='-qpic'
22288         lt_prog_compiler_static_F77='-qstaticlink'
22289         ;;
22290       *)
22291         case `$CC -V 2>&1 | sed 5q` in
22292         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
22293           # Sun Fortran 8.3 passes all unrecognized flags to the linker
22294           lt_prog_compiler_pic_F77='-KPIC'
22295           lt_prog_compiler_static_F77='-Bstatic'
22296           lt_prog_compiler_wl_F77=''
22297           ;;
22298         *Sun\ F* | *Sun*Fortran*)
22299           lt_prog_compiler_pic_F77='-KPIC'
22300           lt_prog_compiler_static_F77='-Bstatic'
22301           lt_prog_compiler_wl_F77='-Qoption ld '
22302           ;;
22303         *Sun\ C*)
22304           # Sun C 5.9
22305           lt_prog_compiler_pic_F77='-KPIC'
22306           lt_prog_compiler_static_F77='-Bstatic'
22307           lt_prog_compiler_wl_F77='-Wl,'
22308           ;;
22309         *Intel*\ [CF]*Compiler*)
22310           lt_prog_compiler_wl_F77='-Wl,'
22311           lt_prog_compiler_pic_F77='-fPIC'
22312           lt_prog_compiler_static_F77='-static'
22313           ;;
22314         *Portland\ Group*)
22315           lt_prog_compiler_wl_F77='-Wl,'
22316           lt_prog_compiler_pic_F77='-fpic'
22317           lt_prog_compiler_static_F77='-Bstatic'
22318           ;;
22319         esac
22320         ;;
22321       esac
22322       ;;
22323
22324     newsos6)
22325       lt_prog_compiler_pic_F77='-KPIC'
22326       lt_prog_compiler_static_F77='-Bstatic'
22327       ;;
22328
22329     *nto* | *qnx*)
22330       # QNX uses GNU C++, but need to define -shared option too, otherwise
22331       # it will coredump.
22332       lt_prog_compiler_pic_F77='-fPIC -shared'
22333       ;;
22334
22335     osf3* | osf4* | osf5*)
22336       lt_prog_compiler_wl_F77='-Wl,'
22337       # All OSF/1 code is PIC.
22338       lt_prog_compiler_static_F77='-non_shared'
22339       ;;
22340
22341     rdos*)
22342       lt_prog_compiler_static_F77='-non_shared'
22343       ;;
22344
22345     solaris*)
22346       lt_prog_compiler_pic_F77='-KPIC'
22347       lt_prog_compiler_static_F77='-Bstatic'
22348       case $cc_basename in
22349       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22350         lt_prog_compiler_wl_F77='-Qoption ld ';;
22351       *)
22352         lt_prog_compiler_wl_F77='-Wl,';;
22353       esac
22354       ;;
22355
22356     sunos4*)
22357       lt_prog_compiler_wl_F77='-Qoption ld '
22358       lt_prog_compiler_pic_F77='-PIC'
22359       lt_prog_compiler_static_F77='-Bstatic'
22360       ;;
22361
22362     sysv4 | sysv4.2uw2* | sysv4.3*)
22363       lt_prog_compiler_wl_F77='-Wl,'
22364       lt_prog_compiler_pic_F77='-KPIC'
22365       lt_prog_compiler_static_F77='-Bstatic'
22366       ;;
22367
22368     sysv4*MP*)
22369       if test -d /usr/nec ;then
22370         lt_prog_compiler_pic_F77='-Kconform_pic'
22371         lt_prog_compiler_static_F77='-Bstatic'
22372       fi
22373       ;;
22374
22375     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22376       lt_prog_compiler_wl_F77='-Wl,'
22377       lt_prog_compiler_pic_F77='-KPIC'
22378       lt_prog_compiler_static_F77='-Bstatic'
22379       ;;
22380
22381     unicos*)
22382       lt_prog_compiler_wl_F77='-Wl,'
22383       lt_prog_compiler_can_build_shared_F77=no
22384       ;;
22385
22386     uts4*)
22387       lt_prog_compiler_pic_F77='-pic'
22388       lt_prog_compiler_static_F77='-Bstatic'
22389       ;;
22390
22391     *)
22392       lt_prog_compiler_can_build_shared_F77=no
22393       ;;
22394     esac
22395   fi
22396
22397 case $host_os in
22398   # For platforms which do not support PIC, -DPIC is meaningless:
22399   *djgpp*)
22400     lt_prog_compiler_pic_F77=
22401     ;;
22402   *)
22403     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22404     ;;
22405 esac
22406
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22408 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22409 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
22410   $as_echo_n "(cached) " >&6
22411 else
22412   lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
22413 fi
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
22415 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
22416 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
22417
22418 #
22419 # Check to make sure the PIC flag actually works.
22420 #
22421 if test -n "$lt_prog_compiler_pic_F77"; then
22422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22423 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
22424 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
22425   $as_echo_n "(cached) " >&6
22426 else
22427   lt_cv_prog_compiler_pic_works_F77=no
22428    ac_outfile=conftest.$ac_objext
22429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22430    lt_compiler_flag="$lt_prog_compiler_pic_F77"
22431    # Insert the option either (1) after the last *FLAGS variable, or
22432    # (2) before a word containing "conftest.", or (3) at the end.
22433    # Note that $ac_compile itself does not contain backslashes and begins
22434    # with a dollar sign (not a hyphen), so the echo should work correctly.
22435    # The option is referenced via a variable to avoid confusing sed.
22436    lt_compile=`echo "$ac_compile" | $SED \
22437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22439    -e 's:$: $lt_compiler_flag:'`
22440    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22441    (eval "$lt_compile" 2>conftest.err)
22442    ac_status=$?
22443    cat conftest.err >&5
22444    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445    if (exit $ac_status) && test -s "$ac_outfile"; then
22446      # The compiler can only warn and ignore the option if not recognized
22447      # So say no if there are warnings other than the usual output.
22448      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22451        lt_cv_prog_compiler_pic_works_F77=yes
22452      fi
22453    fi
22454    $RM conftest*
22455
22456 fi
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
22458 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
22459
22460 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
22461     case $lt_prog_compiler_pic_F77 in
22462      "" | " "*) ;;
22463      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22464      esac
22465 else
22466     lt_prog_compiler_pic_F77=
22467      lt_prog_compiler_can_build_shared_F77=no
22468 fi
22469
22470 fi
22471
22472
22473
22474
22475
22476 #
22477 # Check to make sure the static flag actually works.
22478 #
22479 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22481 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22482 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
22483   $as_echo_n "(cached) " >&6
22484 else
22485   lt_cv_prog_compiler_static_works_F77=no
22486    save_LDFLAGS="$LDFLAGS"
22487    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22488    echo "$lt_simple_link_test_code" > conftest.$ac_ext
22489    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22490      # The linker can only warn and ignore the option if not recognized
22491      # So say no if there are warnings
22492      if test -s conftest.err; then
22493        # Append any errors to the config.log.
22494        cat conftest.err 1>&5
22495        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22496        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22497        if diff conftest.exp conftest.er2 >/dev/null; then
22498          lt_cv_prog_compiler_static_works_F77=yes
22499        fi
22500      else
22501        lt_cv_prog_compiler_static_works_F77=yes
22502      fi
22503    fi
22504    $RM -r conftest*
22505    LDFLAGS="$save_LDFLAGS"
22506
22507 fi
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
22509 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
22510
22511 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
22512     :
22513 else
22514     lt_prog_compiler_static_F77=
22515 fi
22516
22517
22518
22519
22520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22522 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
22523   $as_echo_n "(cached) " >&6
22524 else
22525   lt_cv_prog_compiler_c_o_F77=no
22526    $RM -r conftest 2>/dev/null
22527    mkdir conftest
22528    cd conftest
22529    mkdir out
22530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22531
22532    lt_compiler_flag="-o out/conftest2.$ac_objext"
22533    # Insert the option either (1) after the last *FLAGS variable, or
22534    # (2) before a word containing "conftest.", or (3) at the end.
22535    # Note that $ac_compile itself does not contain backslashes and begins
22536    # with a dollar sign (not a hyphen), so the echo should work correctly.
22537    lt_compile=`echo "$ac_compile" | $SED \
22538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22540    -e 's:$: $lt_compiler_flag:'`
22541    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22542    (eval "$lt_compile" 2>out/conftest.err)
22543    ac_status=$?
22544    cat out/conftest.err >&5
22545    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22547    then
22548      # The compiler can only warn and ignore the option if not recognized
22549      # So say no if there are warnings
22550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22551      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22552      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22553        lt_cv_prog_compiler_c_o_F77=yes
22554      fi
22555    fi
22556    chmod u+w . 2>&5
22557    $RM conftest*
22558    # SGI C++ compiler will create directory out/ii_files/ for
22559    # template instantiation
22560    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22561    $RM out/* && rmdir out
22562    cd ..
22563    $RM -r conftest
22564    $RM conftest*
22565
22566 fi
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22568 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22569
22570
22571
22572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22574 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
22575   $as_echo_n "(cached) " >&6
22576 else
22577   lt_cv_prog_compiler_c_o_F77=no
22578    $RM -r conftest 2>/dev/null
22579    mkdir conftest
22580    cd conftest
22581    mkdir out
22582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22583
22584    lt_compiler_flag="-o out/conftest2.$ac_objext"
22585    # Insert the option either (1) after the last *FLAGS variable, or
22586    # (2) before a word containing "conftest.", or (3) at the end.
22587    # Note that $ac_compile itself does not contain backslashes and begins
22588    # with a dollar sign (not a hyphen), so the echo should work correctly.
22589    lt_compile=`echo "$ac_compile" | $SED \
22590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22592    -e 's:$: $lt_compiler_flag:'`
22593    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22594    (eval "$lt_compile" 2>out/conftest.err)
22595    ac_status=$?
22596    cat out/conftest.err >&5
22597    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22599    then
22600      # The compiler can only warn and ignore the option if not recognized
22601      # So say no if there are warnings
22602      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22605        lt_cv_prog_compiler_c_o_F77=yes
22606      fi
22607    fi
22608    chmod u+w . 2>&5
22609    $RM conftest*
22610    # SGI C++ compiler will create directory out/ii_files/ for
22611    # template instantiation
22612    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22613    $RM out/* && rmdir out
22614    cd ..
22615    $RM -r conftest
22616    $RM conftest*
22617
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22620 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22621
22622
22623
22624
22625 hard_links="nottested"
22626 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22627   # do not overwrite the value of need_locks provided by the user
22628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22629 $as_echo_n "checking if we can lock with hard links... " >&6; }
22630   hard_links=yes
22631   $RM conftest*
22632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22633   touch conftest.a
22634   ln conftest.a conftest.b 2>&5 || hard_links=no
22635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22637 $as_echo "$hard_links" >&6; }
22638   if test "$hard_links" = no; then
22639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22641     need_locks=warn
22642   fi
22643 else
22644   need_locks=no
22645 fi
22646
22647
22648
22649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22651
22652   runpath_var=
22653   allow_undefined_flag_F77=
22654   always_export_symbols_F77=no
22655   archive_cmds_F77=
22656   archive_expsym_cmds_F77=
22657   compiler_needs_object_F77=no
22658   enable_shared_with_static_runtimes_F77=no
22659   export_dynamic_flag_spec_F77=
22660   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22661   hardcode_automatic_F77=no
22662   hardcode_direct_F77=no
22663   hardcode_direct_absolute_F77=no
22664   hardcode_libdir_flag_spec_F77=
22665   hardcode_libdir_separator_F77=
22666   hardcode_minus_L_F77=no
22667   hardcode_shlibpath_var_F77=unsupported
22668   inherit_rpath_F77=no
22669   link_all_deplibs_F77=unknown
22670   module_cmds_F77=
22671   module_expsym_cmds_F77=
22672   old_archive_from_new_cmds_F77=
22673   old_archive_from_expsyms_cmds_F77=
22674   thread_safe_flag_spec_F77=
22675   whole_archive_flag_spec_F77=
22676   # include_expsyms should be a list of space-separated symbols to be *always*
22677   # included in the symbol list
22678   include_expsyms_F77=
22679   # exclude_expsyms can be an extended regexp of symbols to exclude
22680   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22681   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22682   # as well as any symbol that contains `d'.
22683   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22684   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22685   # platforms (ab)use it in PIC code, but their linkers get confused if
22686   # the symbol is explicitly referenced.  Since portable code cannot
22687   # rely on this symbol name, it's probably fine to never include it in
22688   # preloaded symbol tables.
22689   # Exclude shared library initialization/finalization symbols.
22690   extract_expsyms_cmds=
22691
22692   case $host_os in
22693   cygwin* | mingw* | pw32* | cegcc*)
22694     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22695     # When not using gcc, we currently assume that we are using
22696     # Microsoft Visual C++.
22697     if test "$GCC" != yes; then
22698       with_gnu_ld=no
22699     fi
22700     ;;
22701   interix*)
22702     # we just hope/assume this is gcc and not c89 (= MSVC++)
22703     with_gnu_ld=yes
22704     ;;
22705   openbsd*)
22706     with_gnu_ld=no
22707     ;;
22708   esac
22709
22710   ld_shlibs_F77=yes
22711
22712   # On some targets, GNU ld is compatible enough with the native linker
22713   # that we're better off using the native interface for both.
22714   lt_use_gnu_ld_interface=no
22715   if test "$with_gnu_ld" = yes; then
22716     case $host_os in
22717       aix*)
22718         # The AIX port of GNU ld has always aspired to compatibility
22719         # with the native linker.  However, as the warning in the GNU ld
22720         # block says, versions before 2.19.5* couldn't really create working
22721         # shared libraries, regardless of the interface used.
22722         case `$LD -v 2>&1` in
22723           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
22724           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
22725           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
22726           *)
22727             lt_use_gnu_ld_interface=yes
22728             ;;
22729         esac
22730         ;;
22731       *)
22732         lt_use_gnu_ld_interface=yes
22733         ;;
22734     esac
22735   fi
22736
22737   if test "$lt_use_gnu_ld_interface" = yes; then
22738     # If archive_cmds runs LD, not CC, wlarc should be empty
22739     wlarc='${wl}'
22740
22741     # Set some defaults for GNU ld with shared library support. These
22742     # are reset later if shared libraries are not supported. Putting them
22743     # here allows them to be overridden if necessary.
22744     runpath_var=LD_RUN_PATH
22745     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22747     # ancient GNU ld didn't support --whole-archive et. al.
22748     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22749       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22750     else
22751       whole_archive_flag_spec_F77=
22752     fi
22753     supports_anon_versioning=no
22754     case `$LD -v 2>&1` in
22755       *GNU\ gold*) supports_anon_versioning=yes ;;
22756       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22757       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22758       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22759       *\ 2.11.*) ;; # other 2.11 versions
22760       *) supports_anon_versioning=yes ;;
22761     esac
22762
22763     # See if GNU ld supports shared libraries.
22764     case $host_os in
22765     aix[3-9]*)
22766       # On AIX/PPC, the GNU linker is very broken
22767       if test "$host_cpu" != ia64; then
22768         ld_shlibs_F77=no
22769         cat <<_LT_EOF 1>&2
22770
22771 *** Warning: the GNU linker, at least up to release 2.19, is reported
22772 *** to be unable to reliably create shared libraries on AIX.
22773 *** Therefore, libtool is disabling shared libraries support.  If you
22774 *** really care for shared libraries, you may want to install binutils
22775 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
22776 *** You will then need to restart the configuration process.
22777
22778 _LT_EOF
22779       fi
22780       ;;
22781
22782     amigaos*)
22783       case $host_cpu in
22784       powerpc)
22785             # see comment about AmigaOS4 .so support
22786             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22787             archive_expsym_cmds_F77=''
22788         ;;
22789       m68k)
22790             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)'
22791             hardcode_libdir_flag_spec_F77='-L$libdir'
22792             hardcode_minus_L_F77=yes
22793         ;;
22794       esac
22795       ;;
22796
22797     beos*)
22798       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22799         allow_undefined_flag_F77=unsupported
22800         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22801         # support --undefined.  This deserves some investigation.  FIXME
22802         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22803       else
22804         ld_shlibs_F77=no
22805       fi
22806       ;;
22807
22808     cygwin* | mingw* | pw32* | cegcc*)
22809       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22810       # as there is no search path for DLLs.
22811       hardcode_libdir_flag_spec_F77='-L$libdir'
22812       export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
22813       allow_undefined_flag_F77=unsupported
22814       always_export_symbols_F77=no
22815       enable_shared_with_static_runtimes_F77=yes
22816       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
22817       exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22818
22819       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22820         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22821         # If the export-symbols file already is a .def file (1st line
22822         # is EXPORTS), use it as is; otherwise, prepend...
22823         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22824           cp $export_symbols $output_objdir/$soname.def;
22825         else
22826           echo EXPORTS > $output_objdir/$soname.def;
22827           cat $export_symbols >> $output_objdir/$soname.def;
22828         fi~
22829         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22830       else
22831         ld_shlibs_F77=no
22832       fi
22833       ;;
22834
22835     haiku*)
22836       archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22837       link_all_deplibs_F77=yes
22838       ;;
22839
22840     interix[3-9]*)
22841       hardcode_direct_F77=no
22842       hardcode_shlibpath_var_F77=no
22843       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22844       export_dynamic_flag_spec_F77='${wl}-E'
22845       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22846       # Instead, shared libraries are loaded at an image base (0x10000000 by
22847       # default) and relocated if they conflict, which is a slow very memory
22848       # consuming and fragmenting process.  To avoid this, we pick a random,
22849       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22850       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22851       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'
22852       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'
22853       ;;
22854
22855     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
22856       tmp_diet=no
22857       if test "$host_os" = linux-dietlibc; then
22858         case $cc_basename in
22859           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
22860         esac
22861       fi
22862       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22863          && test "$tmp_diet" = no
22864       then
22865         tmp_addflag=' $pic_flag'
22866         tmp_sharedflag='-shared'
22867         case $cc_basename,$host_cpu in
22868         pgcc*)                          # Portland Group C compiler
22869           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22870           tmp_addflag=' $pic_flag'
22871           ;;
22872         pgf77* | pgf90* | pgf95* | pgfortran*)
22873                                         # Portland Group f77 and f90 compilers
22874           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22875           tmp_addflag=' $pic_flag -Mnomain' ;;
22876         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
22877           tmp_addflag=' -i_dynamic' ;;
22878         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22879           tmp_addflag=' -i_dynamic -nofor_main' ;;
22880         ifc* | ifort*)                  # Intel Fortran compiler
22881           tmp_addflag=' -nofor_main' ;;
22882         lf95*)                          # Lahey Fortran 8.1
22883           whole_archive_flag_spec_F77=
22884           tmp_sharedflag='--shared' ;;
22885         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22886           tmp_sharedflag='-qmkshrobj'
22887           tmp_addflag= ;;
22888         nvcc*)  # Cuda Compiler Driver 2.2
22889           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22890           compiler_needs_object_F77=yes
22891           ;;
22892         esac
22893         case `$CC -V 2>&1 | sed 5q` in
22894         *Sun\ C*)                       # Sun C 5.9
22895           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22896           compiler_needs_object_F77=yes
22897           tmp_sharedflag='-G' ;;
22898         *Sun\ F*)                       # Sun Fortran 8.3
22899           tmp_sharedflag='-G' ;;
22900         esac
22901         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22902
22903         if test "x$supports_anon_versioning" = xyes; then
22904           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22905             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22906             echo "local: *; };" >> $output_objdir/$libname.ver~
22907             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22908         fi
22909
22910         case $cc_basename in
22911         xlf* | bgf* | bgxlf* | mpixlf*)
22912           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22913           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22914           hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22915           archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22916           if test "x$supports_anon_versioning" = xyes; then
22917             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22918               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22919               echo "local: *; };" >> $output_objdir/$libname.ver~
22920               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22921           fi
22922           ;;
22923         esac
22924       else
22925         ld_shlibs_F77=no
22926       fi
22927       ;;
22928
22929     netbsd*)
22930       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22931         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22932         wlarc=
22933       else
22934         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22935         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22936       fi
22937       ;;
22938
22939     solaris*)
22940       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22941         ld_shlibs_F77=no
22942         cat <<_LT_EOF 1>&2
22943
22944 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22945 *** create shared libraries on Solaris systems.  Therefore, libtool
22946 *** is disabling shared libraries support.  We urge you to upgrade GNU
22947 *** binutils to release 2.9.1 or newer.  Another option is to modify
22948 *** your PATH or compiler configuration so that the native linker is
22949 *** used, and then restart.
22950
22951 _LT_EOF
22952       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22953         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22954         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22955       else
22956         ld_shlibs_F77=no
22957       fi
22958       ;;
22959
22960     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22961       case `$LD -v 2>&1` in
22962         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22963         ld_shlibs_F77=no
22964         cat <<_LT_EOF 1>&2
22965
22966 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22967 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22968 *** is disabling shared libraries support.  We urge you to upgrade GNU
22969 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22970 *** your PATH or compiler configuration so that the native linker is
22971 *** used, and then restart.
22972
22973 _LT_EOF
22974         ;;
22975         *)
22976           # For security reasons, it is highly recommended that you always
22977           # use absolute paths for naming shared libraries, and exclude the
22978           # DT_RUNPATH tag from executables and libraries.  But doing so
22979           # requires that you compile everything twice, which is a pain.
22980           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22981             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22982             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22983             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22984           else
22985             ld_shlibs_F77=no
22986           fi
22987         ;;
22988       esac
22989       ;;
22990
22991     sunos4*)
22992       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22993       wlarc=
22994       hardcode_direct_F77=yes
22995       hardcode_shlibpath_var_F77=no
22996       ;;
22997
22998     *)
22999       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23000         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23001         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23002       else
23003         ld_shlibs_F77=no
23004       fi
23005       ;;
23006     esac
23007
23008     if test "$ld_shlibs_F77" = no; then
23009       runpath_var=
23010       hardcode_libdir_flag_spec_F77=
23011       export_dynamic_flag_spec_F77=
23012       whole_archive_flag_spec_F77=
23013     fi
23014   else
23015     # PORTME fill in a description of your system's linker (not GNU ld)
23016     case $host_os in
23017     aix3*)
23018       allow_undefined_flag_F77=unsupported
23019       always_export_symbols_F77=yes
23020       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'
23021       # Note: this linker hardcodes the directories in LIBPATH if there
23022       # are no directories specified by -L.
23023       hardcode_minus_L_F77=yes
23024       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23025         # Neither direct hardcoding nor static linking is supported with a
23026         # broken collect2.
23027         hardcode_direct_F77=unsupported
23028       fi
23029       ;;
23030
23031     aix[4-9]*)
23032       if test "$host_cpu" = ia64; then
23033         # On IA64, the linker does run time linking by default, so we don't
23034         # have to do anything special.
23035         aix_use_runtimelinking=no
23036         exp_sym_flag='-Bexport'
23037         no_entry_flag=""
23038       else
23039         # If we're using GNU nm, then we don't want the "-C" option.
23040         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23041         # Also, AIX nm treats weak defined symbols like other global
23042         # defined symbols, whereas GNU nm marks them as "W".
23043         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23044           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23045         else
23046           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'
23047         fi
23048         aix_use_runtimelinking=no
23049
23050         # Test if we are trying to use run time linking or normal
23051         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23052         # need to do runtime linking.
23053         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23054           for ld_flag in $LDFLAGS; do
23055           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23056             aix_use_runtimelinking=yes
23057             break
23058           fi
23059           done
23060           ;;
23061         esac
23062
23063         exp_sym_flag='-bexport'
23064         no_entry_flag='-bnoentry'
23065       fi
23066
23067       # When large executables or shared objects are built, AIX ld can
23068       # have problems creating the table of contents.  If linking a library
23069       # or program results in "error TOC overflow" add -mminimal-toc to
23070       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23071       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23072
23073       archive_cmds_F77=''
23074       hardcode_direct_F77=yes
23075       hardcode_direct_absolute_F77=yes
23076       hardcode_libdir_separator_F77=':'
23077       link_all_deplibs_F77=yes
23078       file_list_spec_F77='${wl}-f,'
23079
23080       if test "$GCC" = yes; then
23081         case $host_os in aix4.[012]|aix4.[012].*)
23082         # We only want to do this on AIX 4.2 and lower, the check
23083         # below for broken collect2 doesn't work under 4.3+
23084           collect2name=`${CC} -print-prog-name=collect2`
23085           if test -f "$collect2name" &&
23086            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
23087           then
23088           # We have reworked collect2
23089           :
23090           else
23091           # We have old collect2
23092           hardcode_direct_F77=unsupported
23093           # It fails to find uninstalled libraries when the uninstalled
23094           # path is not listed in the libpath.  Setting hardcode_minus_L
23095           # to unsupported forces relinking
23096           hardcode_minus_L_F77=yes
23097           hardcode_libdir_flag_spec_F77='-L$libdir'
23098           hardcode_libdir_separator_F77=
23099           fi
23100           ;;
23101         esac
23102         shared_flag='-shared'
23103         if test "$aix_use_runtimelinking" = yes; then
23104           shared_flag="$shared_flag "'${wl}-G'
23105         fi
23106       else
23107         # not using gcc
23108         if test "$host_cpu" = ia64; then
23109         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23110         # chokes on -Wl,-G. The following line is correct:
23111           shared_flag='-G'
23112         else
23113           if test "$aix_use_runtimelinking" = yes; then
23114             shared_flag='${wl}-G'
23115           else
23116             shared_flag='${wl}-bM:SRE'
23117           fi
23118         fi
23119       fi
23120
23121       export_dynamic_flag_spec_F77='${wl}-bexpall'
23122       # It seems that -bexpall does not export symbols beginning with
23123       # underscore (_), so it is better to generate a list of symbols to export.
23124       always_export_symbols_F77=yes
23125       if test "$aix_use_runtimelinking" = yes; then
23126         # Warning - without using the other runtime loading flags (-brtl),
23127         # -berok will link without error, but may produce a broken library.
23128         allow_undefined_flag_F77='-berok'
23129         # Determine the default libpath from the value encoded in an
23130         # empty executable.
23131         if test "${lt_cv_aix_libpath+set}" = set; then
23132   aix_libpath=$lt_cv_aix_libpath
23133 else
23134   if ${lt_cv_aix_libpath__F77+:} false; then :
23135   $as_echo_n "(cached) " >&6
23136 else
23137   cat > conftest.$ac_ext <<_ACEOF
23138       program main
23139
23140       end
23141 _ACEOF
23142 if ac_fn_f77_try_link "$LINENO"; then :
23143
23144   lt_aix_libpath_sed='
23145       /Import File Strings/,/^$/ {
23146           /^0/ {
23147               s/^0  *\([^ ]*\) *$/\1/
23148               p
23149           }
23150       }'
23151   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23152   # Check for a 64-bit object if we didn't find anything.
23153   if test -z "$lt_cv_aix_libpath__F77"; then
23154     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23155   fi
23156 fi
23157 rm -f core conftest.err conftest.$ac_objext \
23158     conftest$ac_exeext conftest.$ac_ext
23159   if test -z "$lt_cv_aix_libpath__F77"; then
23160     lt_cv_aix_libpath__F77="/usr/lib:/lib"
23161   fi
23162
23163 fi
23164
23165   aix_libpath=$lt_cv_aix_libpath__F77
23166 fi
23167
23168         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23169         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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23170       else
23171         if test "$host_cpu" = ia64; then
23172           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23173           allow_undefined_flag_F77="-z nodefs"
23174           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"
23175         else
23176          # Determine the default libpath from the value encoded in an
23177          # empty executable.
23178          if test "${lt_cv_aix_libpath+set}" = set; then
23179   aix_libpath=$lt_cv_aix_libpath
23180 else
23181   if ${lt_cv_aix_libpath__F77+:} false; then :
23182   $as_echo_n "(cached) " >&6
23183 else
23184   cat > conftest.$ac_ext <<_ACEOF
23185       program main
23186
23187       end
23188 _ACEOF
23189 if ac_fn_f77_try_link "$LINENO"; then :
23190
23191   lt_aix_libpath_sed='
23192       /Import File Strings/,/^$/ {
23193           /^0/ {
23194               s/^0  *\([^ ]*\) *$/\1/
23195               p
23196           }
23197       }'
23198   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23199   # Check for a 64-bit object if we didn't find anything.
23200   if test -z "$lt_cv_aix_libpath__F77"; then
23201     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23202   fi
23203 fi
23204 rm -f core conftest.err conftest.$ac_objext \
23205     conftest$ac_exeext conftest.$ac_ext
23206   if test -z "$lt_cv_aix_libpath__F77"; then
23207     lt_cv_aix_libpath__F77="/usr/lib:/lib"
23208   fi
23209
23210 fi
23211
23212   aix_libpath=$lt_cv_aix_libpath__F77
23213 fi
23214
23215          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23216           # Warning - without using the other run time loading flags,
23217           # -berok will link without error, but may produce a broken library.
23218           no_undefined_flag_F77=' ${wl}-bernotok'
23219           allow_undefined_flag_F77=' ${wl}-berok'
23220           if test "$with_gnu_ld" = yes; then
23221             # We only use this code for GNU lds that support --whole-archive.
23222             whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
23223           else
23224             # Exported symbols can be pulled into shared objects from archives
23225             whole_archive_flag_spec_F77='$convenience'
23226           fi
23227           archive_cmds_need_lc_F77=yes
23228           # This is similar to how AIX traditionally builds its shared libraries.
23229           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'
23230         fi
23231       fi
23232       ;;
23233
23234     amigaos*)
23235       case $host_cpu in
23236       powerpc)
23237             # see comment about AmigaOS4 .so support
23238             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23239             archive_expsym_cmds_F77=''
23240         ;;
23241       m68k)
23242             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)'
23243             hardcode_libdir_flag_spec_F77='-L$libdir'
23244             hardcode_minus_L_F77=yes
23245         ;;
23246       esac
23247       ;;
23248
23249     bsdi[45]*)
23250       export_dynamic_flag_spec_F77=-rdynamic
23251       ;;
23252
23253     cygwin* | mingw* | pw32* | cegcc*)
23254       # When not using gcc, we currently assume that we are using
23255       # Microsoft Visual C++.
23256       # hardcode_libdir_flag_spec is actually meaningless, as there is
23257       # no search path for DLLs.
23258       case $cc_basename in
23259       cl*)
23260         # Native MSVC
23261         hardcode_libdir_flag_spec_F77=' '
23262         allow_undefined_flag_F77=unsupported
23263         always_export_symbols_F77=yes
23264         file_list_spec_F77='@'
23265         # Tell ltmain to make .lib files, not .a files.
23266         libext=lib
23267         # Tell ltmain to make .dll files, not .so files.
23268         shrext_cmds=".dll"
23269         # FIXME: Setting linknames here is a bad hack.
23270         archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
23271         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23272             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
23273           else
23274             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
23275           fi~
23276           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
23277           linknames='
23278         # The linker will not automatically build a static lib if we build a DLL.
23279         # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
23280         enable_shared_with_static_runtimes_F77=yes
23281         exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23282         export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23283         # Don't use ranlib
23284         old_postinstall_cmds_F77='chmod 644 $oldlib'
23285         postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
23286           lt_tool_outputfile="@TOOL_OUTPUT@"~
23287           case $lt_outputfile in
23288             *.exe|*.EXE) ;;
23289             *)
23290               lt_outputfile="$lt_outputfile.exe"
23291               lt_tool_outputfile="$lt_tool_outputfile.exe"
23292               ;;
23293           esac~
23294           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
23295             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
23296             $RM "$lt_outputfile.manifest";
23297           fi'
23298         ;;
23299       *)
23300         # Assume MSVC wrapper
23301         hardcode_libdir_flag_spec_F77=' '
23302         allow_undefined_flag_F77=unsupported
23303         # Tell ltmain to make .lib files, not .a files.
23304         libext=lib
23305         # Tell ltmain to make .dll files, not .so files.
23306         shrext_cmds=".dll"
23307         # FIXME: Setting linknames here is a bad hack.
23308         archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
23309         # The linker will automatically build a .lib file if we build a DLL.
23310         old_archive_from_new_cmds_F77='true'
23311         # FIXME: Should let the user specify the lib program.
23312         old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
23313         enable_shared_with_static_runtimes_F77=yes
23314         ;;
23315       esac
23316       ;;
23317
23318     darwin* | rhapsody*)
23319
23320
23321   archive_cmds_need_lc_F77=no
23322   hardcode_direct_F77=no
23323   hardcode_automatic_F77=yes
23324   hardcode_shlibpath_var_F77=unsupported
23325   if test "$lt_cv_ld_force_load" = "yes"; then
23326     whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
23327     compiler_needs_object_F77=yes
23328   else
23329     whole_archive_flag_spec_F77=''
23330   fi
23331   link_all_deplibs_F77=yes
23332   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
23333   case $cc_basename in
23334      ifort*) _lt_dar_can_shared=yes ;;
23335      *) _lt_dar_can_shared=$GCC ;;
23336   esac
23337   if test "$_lt_dar_can_shared" = "yes"; then
23338     output_verbose_link_cmd=func_echo_all
23339     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}"
23340     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
23341     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}"
23342     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}"
23343
23344   else
23345   ld_shlibs_F77=no
23346   fi
23347
23348       ;;
23349
23350     dgux*)
23351       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23352       hardcode_libdir_flag_spec_F77='-L$libdir'
23353       hardcode_shlibpath_var_F77=no
23354       ;;
23355
23356     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23357     # support.  Future versions do this automatically, but an explicit c++rt0.o
23358     # does not break anything, and helps significantly (at the cost of a little
23359     # extra space).
23360     freebsd2.2*)
23361       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23362       hardcode_libdir_flag_spec_F77='-R$libdir'
23363       hardcode_direct_F77=yes
23364       hardcode_shlibpath_var_F77=no
23365       ;;
23366
23367     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23368     freebsd2.*)
23369       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23370       hardcode_direct_F77=yes
23371       hardcode_minus_L_F77=yes
23372       hardcode_shlibpath_var_F77=no
23373       ;;
23374
23375     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23376     freebsd* | dragonfly*)
23377       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23378       hardcode_libdir_flag_spec_F77='-R$libdir'
23379       hardcode_direct_F77=yes
23380       hardcode_shlibpath_var_F77=no
23381       ;;
23382
23383     hpux9*)
23384       if test "$GCC" = yes; then
23385         archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23386       else
23387         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'
23388       fi
23389       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23390       hardcode_libdir_separator_F77=:
23391       hardcode_direct_F77=yes
23392
23393       # hardcode_minus_L: Not really in the search PATH,
23394       # but as the default location of the library.
23395       hardcode_minus_L_F77=yes
23396       export_dynamic_flag_spec_F77='${wl}-E'
23397       ;;
23398
23399     hpux10*)
23400       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23401         archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23402       else
23403         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23404       fi
23405       if test "$with_gnu_ld" = no; then
23406         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23407         hardcode_libdir_separator_F77=:
23408         hardcode_direct_F77=yes
23409         hardcode_direct_absolute_F77=yes
23410         export_dynamic_flag_spec_F77='${wl}-E'
23411         # hardcode_minus_L: Not really in the search PATH,
23412         # but as the default location of the library.
23413         hardcode_minus_L_F77=yes
23414       fi
23415       ;;
23416
23417     hpux11*)
23418       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23419         case $host_cpu in
23420         hppa*64*)
23421           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23422           ;;
23423         ia64*)
23424           archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23425           ;;
23426         *)
23427           archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23428           ;;
23429         esac
23430       else
23431         case $host_cpu in
23432         hppa*64*)
23433           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23434           ;;
23435         ia64*)
23436           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23437           ;;
23438         *)
23439         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23440           ;;
23441         esac
23442       fi
23443       if test "$with_gnu_ld" = no; then
23444         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23445         hardcode_libdir_separator_F77=:
23446
23447         case $host_cpu in
23448         hppa*64*|ia64*)
23449           hardcode_direct_F77=no
23450           hardcode_shlibpath_var_F77=no
23451           ;;
23452         *)
23453           hardcode_direct_F77=yes
23454           hardcode_direct_absolute_F77=yes
23455           export_dynamic_flag_spec_F77='${wl}-E'
23456
23457           # hardcode_minus_L: Not really in the search PATH,
23458           # but as the default location of the library.
23459           hardcode_minus_L_F77=yes
23460           ;;
23461         esac
23462       fi
23463       ;;
23464
23465     irix5* | irix6* | nonstopux*)
23466       if test "$GCC" = yes; then
23467         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23468         # Try to use the -exported_symbol ld option, if it does not
23469         # work, assume that -exports_file does not work either and
23470         # implicitly export all symbols.
23471         # This should be the same for all languages, so no per-tag cache variable.
23472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
23473 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
23474 if ${lt_cv_irix_exported_symbol+:} false; then :
23475   $as_echo_n "(cached) " >&6
23476 else
23477   save_LDFLAGS="$LDFLAGS"
23478            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
23479            cat > conftest.$ac_ext <<_ACEOF
23480
23481       subroutine foo
23482       end
23483 _ACEOF
23484 if ac_fn_f77_try_link "$LINENO"; then :
23485   lt_cv_irix_exported_symbol=yes
23486 else
23487   lt_cv_irix_exported_symbol=no
23488 fi
23489 rm -f core conftest.err conftest.$ac_objext \
23490     conftest$ac_exeext conftest.$ac_ext
23491            LDFLAGS="$save_LDFLAGS"
23492 fi
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
23494 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
23495         if test "$lt_cv_irix_exported_symbol" = yes; then
23496           archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
23497         fi
23498       else
23499         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23500         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
23501       fi
23502       archive_cmds_need_lc_F77='no'
23503       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23504       hardcode_libdir_separator_F77=:
23505       inherit_rpath_F77=yes
23506       link_all_deplibs_F77=yes
23507       ;;
23508
23509     netbsd*)
23510       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23511         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23512       else
23513         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23514       fi
23515       hardcode_libdir_flag_spec_F77='-R$libdir'
23516       hardcode_direct_F77=yes
23517       hardcode_shlibpath_var_F77=no
23518       ;;
23519
23520     newsos6)
23521       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23522       hardcode_direct_F77=yes
23523       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23524       hardcode_libdir_separator_F77=:
23525       hardcode_shlibpath_var_F77=no
23526       ;;
23527
23528     *nto* | *qnx*)
23529       ;;
23530
23531     openbsd*)
23532       if test -f /usr/libexec/ld.so; then
23533         hardcode_direct_F77=yes
23534         hardcode_shlibpath_var_F77=no
23535         hardcode_direct_absolute_F77=yes
23536         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23537           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23538           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23539           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23540           export_dynamic_flag_spec_F77='${wl}-E'
23541         else
23542           case $host_os in
23543            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23544              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23545              hardcode_libdir_flag_spec_F77='-R$libdir'
23546              ;;
23547            *)
23548              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23549              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23550              ;;
23551           esac
23552         fi
23553       else
23554         ld_shlibs_F77=no
23555       fi
23556       ;;
23557
23558     os2*)
23559       hardcode_libdir_flag_spec_F77='-L$libdir'
23560       hardcode_minus_L_F77=yes
23561       allow_undefined_flag_F77=unsupported
23562       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'
23563       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23564       ;;
23565
23566     osf3*)
23567       if test "$GCC" = yes; then
23568         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23569         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23570       else
23571         allow_undefined_flag_F77=' -expect_unresolved \*'
23572         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23573       fi
23574       archive_cmds_need_lc_F77='no'
23575       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23576       hardcode_libdir_separator_F77=:
23577       ;;
23578
23579     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23580       if test "$GCC" = yes; then
23581         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23582         archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23583         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23584       else
23585         allow_undefined_flag_F77=' -expect_unresolved \*'
23586         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23587         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~
23588         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
23589
23590         # Both c and cxx compiler support -rpath directly
23591         hardcode_libdir_flag_spec_F77='-rpath $libdir'
23592       fi
23593       archive_cmds_need_lc_F77='no'
23594       hardcode_libdir_separator_F77=:
23595       ;;
23596
23597     solaris*)
23598       no_undefined_flag_F77=' -z defs'
23599       if test "$GCC" = yes; then
23600         wlarc='${wl}'
23601         archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23602         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23603           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23604       else
23605         case `$CC -V 2>&1` in
23606         *"Compilers 5.0"*)
23607           wlarc=''
23608           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23609           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23610           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
23611           ;;
23612         *)
23613           wlarc='${wl}'
23614           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23615           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23616           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23617           ;;
23618         esac
23619       fi
23620       hardcode_libdir_flag_spec_F77='-R$libdir'
23621       hardcode_shlibpath_var_F77=no
23622       case $host_os in
23623       solaris2.[0-5] | solaris2.[0-5].*) ;;
23624       *)
23625         # The compiler driver will combine and reorder linker options,
23626         # but understands `-z linker_flag'.  GCC discards it without `$wl',
23627         # but is careful enough not to reorder.
23628         # Supported since Solaris 2.6 (maybe 2.5.1?)
23629         if test "$GCC" = yes; then
23630           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23631         else
23632           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23633         fi
23634         ;;
23635       esac
23636       link_all_deplibs_F77=yes
23637       ;;
23638
23639     sunos4*)
23640       if test "x$host_vendor" = xsequent; then
23641         # Use $CC to link under sequent, because it throws in some extra .o
23642         # files that make .init and .fini sections work.
23643         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23644       else
23645         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23646       fi
23647       hardcode_libdir_flag_spec_F77='-L$libdir'
23648       hardcode_direct_F77=yes
23649       hardcode_minus_L_F77=yes
23650       hardcode_shlibpath_var_F77=no
23651       ;;
23652
23653     sysv4)
23654       case $host_vendor in
23655         sni)
23656           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23657           hardcode_direct_F77=yes # is this really true???
23658         ;;
23659         siemens)
23660           ## LD is ld it makes a PLAMLIB
23661           ## CC just makes a GrossModule.
23662           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23663           reload_cmds_F77='$CC -r -o $output$reload_objs'
23664           hardcode_direct_F77=no
23665         ;;
23666         motorola)
23667           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23668           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23669         ;;
23670       esac
23671       runpath_var='LD_RUN_PATH'
23672       hardcode_shlibpath_var_F77=no
23673       ;;
23674
23675     sysv4.3*)
23676       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23677       hardcode_shlibpath_var_F77=no
23678       export_dynamic_flag_spec_F77='-Bexport'
23679       ;;
23680
23681     sysv4*MP*)
23682       if test -d /usr/nec; then
23683         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23684         hardcode_shlibpath_var_F77=no
23685         runpath_var=LD_RUN_PATH
23686         hardcode_runpath_var=yes
23687         ld_shlibs_F77=yes
23688       fi
23689       ;;
23690
23691     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23692       no_undefined_flag_F77='${wl}-z,text'
23693       archive_cmds_need_lc_F77=no
23694       hardcode_shlibpath_var_F77=no
23695       runpath_var='LD_RUN_PATH'
23696
23697       if test "$GCC" = yes; then
23698         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23699         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23700       else
23701         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23702         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23703       fi
23704       ;;
23705
23706     sysv5* | sco3.2v5* | sco5v6*)
23707       # Note: We can NOT use -z defs as we might desire, because we do not
23708       # link with -lc, and that would cause any symbols used from libc to
23709       # always be unresolved, which means just about no library would
23710       # ever link correctly.  If we're not using GNU ld we use -z text
23711       # though, which does catch some bad symbols but isn't as heavy-handed
23712       # as -z defs.
23713       no_undefined_flag_F77='${wl}-z,text'
23714       allow_undefined_flag_F77='${wl}-z,nodefs'
23715       archive_cmds_need_lc_F77=no
23716       hardcode_shlibpath_var_F77=no
23717       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
23718       hardcode_libdir_separator_F77=':'
23719       link_all_deplibs_F77=yes
23720       export_dynamic_flag_spec_F77='${wl}-Bexport'
23721       runpath_var='LD_RUN_PATH'
23722
23723       if test "$GCC" = yes; then
23724         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23725         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23726       else
23727         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23728         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23729       fi
23730       ;;
23731
23732     uts4*)
23733       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23734       hardcode_libdir_flag_spec_F77='-L$libdir'
23735       hardcode_shlibpath_var_F77=no
23736       ;;
23737
23738     *)
23739       ld_shlibs_F77=no
23740       ;;
23741     esac
23742
23743     if test x$host_vendor = xsni; then
23744       case $host in
23745       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23746         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
23747         ;;
23748       esac
23749     fi
23750   fi
23751
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
23753 $as_echo "$ld_shlibs_F77" >&6; }
23754 test "$ld_shlibs_F77" = no && can_build_shared=no
23755
23756 with_gnu_ld_F77=$with_gnu_ld
23757
23758
23759
23760
23761
23762
23763 #
23764 # Do we need to explicitly link libc?
23765 #
23766 case "x$archive_cmds_need_lc_F77" in
23767 x|xyes)
23768   # Assume -lc should be added
23769   archive_cmds_need_lc_F77=yes
23770
23771   if test "$enable_shared" = yes && test "$GCC" = yes; then
23772     case $archive_cmds_F77 in
23773     *'~'*)
23774       # FIXME: we may have to deal with multi-command sequences.
23775       ;;
23776     '$CC '*)
23777       # Test whether the compiler implicitly links with -lc since on some
23778       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23779       # to ld, don't add -lc before -lgcc.
23780       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23781 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23782 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785   $RM conftest*
23786         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23787
23788         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23789   (eval $ac_compile) 2>&5
23790   ac_status=$?
23791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23792   test $ac_status = 0; } 2>conftest.err; then
23793           soname=conftest
23794           lib=conftest
23795           libobjs=conftest.$ac_objext
23796           deplibs=
23797           wl=$lt_prog_compiler_wl_F77
23798           pic_flag=$lt_prog_compiler_pic_F77
23799           compiler_flags=-v
23800           linker_flags=-v
23801           verstring=
23802           output_objdir=.
23803           libname=conftest
23804           lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23805           allow_undefined_flag_F77=
23806           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23807   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23808   ac_status=$?
23809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23810   test $ac_status = 0; }
23811           then
23812             lt_cv_archive_cmds_need_lc_F77=no
23813           else
23814             lt_cv_archive_cmds_need_lc_F77=yes
23815           fi
23816           allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23817         else
23818           cat conftest.err 1>&5
23819         fi
23820         $RM conftest*
23821
23822 fi
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
23824 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
23825       archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
23826       ;;
23827     esac
23828   fi
23829   ;;
23830 esac
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23894 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23895
23896 library_names_spec=
23897 libname_spec='lib$name'
23898 soname_spec=
23899 shrext_cmds=".so"
23900 postinstall_cmds=
23901 postuninstall_cmds=
23902 finish_cmds=
23903 finish_eval=
23904 shlibpath_var=
23905 shlibpath_overrides_runpath=unknown
23906 version_type=none
23907 dynamic_linker="$host_os ld.so"
23908 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23909 need_lib_prefix=unknown
23910 hardcode_into_libs=no
23911
23912 # when you set need_version to no, make sure it does not cause -set_version
23913 # flags to be left without arguments
23914 need_version=unknown
23915
23916 case $host_os in
23917 aix3*)
23918   version_type=linux # correct to gnu/linux during the next big refactor
23919   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23920   shlibpath_var=LIBPATH
23921
23922   # AIX 3 has no versioning support, so we append a major version to the name.
23923   soname_spec='${libname}${release}${shared_ext}$major'
23924   ;;
23925
23926 aix[4-9]*)
23927   version_type=linux # correct to gnu/linux during the next big refactor
23928   need_lib_prefix=no
23929   need_version=no
23930   hardcode_into_libs=yes
23931   if test "$host_cpu" = ia64; then
23932     # AIX 5 supports IA64
23933     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23934     shlibpath_var=LD_LIBRARY_PATH
23935   else
23936     # With GCC up to 2.95.x, collect2 would create an import file
23937     # for dependence libraries.  The import file would start with
23938     # the line `#! .'.  This would cause the generated library to
23939     # depend on `.', always an invalid library.  This was fixed in
23940     # development snapshots of GCC prior to 3.0.
23941     case $host_os in
23942       aix4 | aix4.[01] | aix4.[01].*)
23943       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23944            echo ' yes '
23945            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23946         :
23947       else
23948         can_build_shared=no
23949       fi
23950       ;;
23951     esac
23952     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23953     # soname into executable. Probably we can add versioning support to
23954     # collect2, so additional links can be useful in future.
23955     if test "$aix_use_runtimelinking" = yes; then
23956       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23957       # instead of lib<name>.a to let people know that these are not
23958       # typical AIX shared libraries.
23959       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23960     else
23961       # We preserve .a as extension for shared libraries through AIX4.2
23962       # and later when we are not doing run time linking.
23963       library_names_spec='${libname}${release}.a $libname.a'
23964       soname_spec='${libname}${release}${shared_ext}$major'
23965     fi
23966     shlibpath_var=LIBPATH
23967   fi
23968   ;;
23969
23970 amigaos*)
23971   case $host_cpu in
23972   powerpc)
23973     # Since July 2007 AmigaOS4 officially supports .so libraries.
23974     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23976     ;;
23977   m68k)
23978     library_names_spec='$libname.ixlibrary $libname.a'
23979     # Create ${libname}_ixlibrary.a entries in /sys/libs.
23980     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
23981     ;;
23982   esac
23983   ;;
23984
23985 beos*)
23986   library_names_spec='${libname}${shared_ext}'
23987   dynamic_linker="$host_os ld.so"
23988   shlibpath_var=LIBRARY_PATH
23989   ;;
23990
23991 bsdi[45]*)
23992   version_type=linux # correct to gnu/linux during the next big refactor
23993   need_version=no
23994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23995   soname_spec='${libname}${release}${shared_ext}$major'
23996   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23997   shlibpath_var=LD_LIBRARY_PATH
23998   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23999   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24000   # the default ld.so.conf also contains /usr/contrib/lib and
24001   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24002   # libtool to hard-code these into programs
24003   ;;
24004
24005 cygwin* | mingw* | pw32* | cegcc*)
24006   version_type=windows
24007   shrext_cmds=".dll"
24008   need_version=no
24009   need_lib_prefix=no
24010
24011   case $GCC,$cc_basename in
24012   yes,*)
24013     # gcc
24014     library_names_spec='$libname.dll.a'
24015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24016     postinstall_cmds='base_file=`basename \${file}`~
24017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24018       dldir=$destdir/`dirname \$dlpath`~
24019       test -d \$dldir || mkdir -p \$dldir~
24020       $install_prog $dir/$dlname \$dldir/$dlname~
24021       chmod a+x \$dldir/$dlname~
24022       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24023         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24024       fi'
24025     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24026       dlpath=$dir/\$dldll~
24027        $RM \$dlpath'
24028     shlibpath_overrides_runpath=yes
24029
24030     case $host_os in
24031     cygwin*)
24032       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24033       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24034
24035       ;;
24036     mingw* | cegcc*)
24037       # MinGW DLLs use traditional 'lib' prefix
24038       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24039       ;;
24040     pw32*)
24041       # pw32 DLLs use 'pw' prefix rather than 'lib'
24042       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24043       ;;
24044     esac
24045     dynamic_linker='Win32 ld.exe'
24046     ;;
24047
24048   *,cl*)
24049     # Native MSVC
24050     libname_spec='$name'
24051     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24052     library_names_spec='${libname}.dll.lib'
24053
24054     case $build_os in
24055     mingw*)
24056       sys_lib_search_path_spec=
24057       lt_save_ifs=$IFS
24058       IFS=';'
24059       for lt_path in $LIB
24060       do
24061         IFS=$lt_save_ifs
24062         # Let DOS variable expansion print the short 8.3 style file name.
24063         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
24064         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
24065       done
24066       IFS=$lt_save_ifs
24067       # Convert to MSYS style.
24068       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
24069       ;;
24070     cygwin*)
24071       # Convert to unix form, then to dos form, then back to unix form
24072       # but this time dos style (no spaces!) so that the unix form looks
24073       # like /cygdrive/c/PROGRA~1:/cygdr...
24074       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
24075       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
24076       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24077       ;;
24078     *)
24079       sys_lib_search_path_spec="$LIB"
24080       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
24081         # It is most probably a Windows format PATH.
24082         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24083       else
24084         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24085       fi
24086       # FIXME: find the short name or the path components, as spaces are
24087       # common. (e.g. "Program Files" -> "PROGRA~1")
24088       ;;
24089     esac
24090
24091     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24092     postinstall_cmds='base_file=`basename \${file}`~
24093       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24094       dldir=$destdir/`dirname \$dlpath`~
24095       test -d \$dldir || mkdir -p \$dldir~
24096       $install_prog $dir/$dlname \$dldir/$dlname'
24097     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24098       dlpath=$dir/\$dldll~
24099        $RM \$dlpath'
24100     shlibpath_overrides_runpath=yes
24101     dynamic_linker='Win32 link.exe'
24102     ;;
24103
24104   *)
24105     # Assume MSVC wrapper
24106     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24107     dynamic_linker='Win32 ld.exe'
24108     ;;
24109   esac
24110   # FIXME: first we should search . and the directory the executable is in
24111   shlibpath_var=PATH
24112   ;;
24113
24114 darwin* | rhapsody*)
24115   dynamic_linker="$host_os dyld"
24116   version_type=darwin
24117   need_lib_prefix=no
24118   need_version=no
24119   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24120   soname_spec='${libname}${release}${major}$shared_ext'
24121   shlibpath_overrides_runpath=yes
24122   shlibpath_var=DYLD_LIBRARY_PATH
24123   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24124
24125   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24126   ;;
24127
24128 dgux*)
24129   version_type=linux # correct to gnu/linux during the next big refactor
24130   need_lib_prefix=no
24131   need_version=no
24132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24133   soname_spec='${libname}${release}${shared_ext}$major'
24134   shlibpath_var=LD_LIBRARY_PATH
24135   ;;
24136
24137 freebsd* | dragonfly*)
24138   # DragonFly does not have aout.  When/if they implement a new
24139   # versioning mechanism, adjust this.
24140   if test -x /usr/bin/objformat; then
24141     objformat=`/usr/bin/objformat`
24142   else
24143     case $host_os in
24144     freebsd[23].*) objformat=aout ;;
24145     *) objformat=elf ;;
24146     esac
24147   fi
24148   version_type=freebsd-$objformat
24149   case $version_type in
24150     freebsd-elf*)
24151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24152       need_version=no
24153       need_lib_prefix=no
24154       ;;
24155     freebsd-*)
24156       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24157       need_version=yes
24158       ;;
24159   esac
24160   shlibpath_var=LD_LIBRARY_PATH
24161   case $host_os in
24162   freebsd2.*)
24163     shlibpath_overrides_runpath=yes
24164     ;;
24165   freebsd3.[01]* | freebsdelf3.[01]*)
24166     shlibpath_overrides_runpath=yes
24167     hardcode_into_libs=yes
24168     ;;
24169   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24170   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24171     shlibpath_overrides_runpath=no
24172     hardcode_into_libs=yes
24173     ;;
24174   *) # from 4.6 on, and DragonFly
24175     shlibpath_overrides_runpath=yes
24176     hardcode_into_libs=yes
24177     ;;
24178   esac
24179   ;;
24180
24181 gnu*)
24182   version_type=linux # correct to gnu/linux during the next big refactor
24183   need_lib_prefix=no
24184   need_version=no
24185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24186   soname_spec='${libname}${release}${shared_ext}$major'
24187   shlibpath_var=LD_LIBRARY_PATH
24188   shlibpath_overrides_runpath=no
24189   hardcode_into_libs=yes
24190   ;;
24191
24192 haiku*)
24193   version_type=linux # correct to gnu/linux during the next big refactor
24194   need_lib_prefix=no
24195   need_version=no
24196   dynamic_linker="$host_os runtime_loader"
24197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24198   soname_spec='${libname}${release}${shared_ext}$major'
24199   shlibpath_var=LIBRARY_PATH
24200   shlibpath_overrides_runpath=yes
24201   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24202   hardcode_into_libs=yes
24203   ;;
24204
24205 hpux9* | hpux10* | hpux11*)
24206   # Give a soname corresponding to the major version so that dld.sl refuses to
24207   # link against other versions.
24208   version_type=sunos
24209   need_lib_prefix=no
24210   need_version=no
24211   case $host_cpu in
24212   ia64*)
24213     shrext_cmds='.so'
24214     hardcode_into_libs=yes
24215     dynamic_linker="$host_os dld.so"
24216     shlibpath_var=LD_LIBRARY_PATH
24217     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24219     soname_spec='${libname}${release}${shared_ext}$major'
24220     if test "X$HPUX_IA64_MODE" = X32; then
24221       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24222     else
24223       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24224     fi
24225     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24226     ;;
24227   hppa*64*)
24228     shrext_cmds='.sl'
24229     hardcode_into_libs=yes
24230     dynamic_linker="$host_os dld.sl"
24231     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24234     soname_spec='${libname}${release}${shared_ext}$major'
24235     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24237     ;;
24238   *)
24239     shrext_cmds='.sl'
24240     dynamic_linker="$host_os dld.sl"
24241     shlibpath_var=SHLIB_PATH
24242     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24244     soname_spec='${libname}${release}${shared_ext}$major'
24245     ;;
24246   esac
24247   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24248   postinstall_cmds='chmod 555 $lib'
24249   # or fails outright, so override atomically:
24250   install_override_mode=555
24251   ;;
24252
24253 interix[3-9]*)
24254   version_type=linux # correct to gnu/linux during the next big refactor
24255   need_lib_prefix=no
24256   need_version=no
24257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24258   soname_spec='${libname}${release}${shared_ext}$major'
24259   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24260   shlibpath_var=LD_LIBRARY_PATH
24261   shlibpath_overrides_runpath=no
24262   hardcode_into_libs=yes
24263   ;;
24264
24265 irix5* | irix6* | nonstopux*)
24266   case $host_os in
24267     nonstopux*) version_type=nonstopux ;;
24268     *)
24269         if test "$lt_cv_prog_gnu_ld" = yes; then
24270                 version_type=linux # correct to gnu/linux during the next big refactor
24271         else
24272                 version_type=irix
24273         fi ;;
24274   esac
24275   need_lib_prefix=no
24276   need_version=no
24277   soname_spec='${libname}${release}${shared_ext}$major'
24278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24279   case $host_os in
24280   irix5* | nonstopux*)
24281     libsuff= shlibsuff=
24282     ;;
24283   *)
24284     case $LD in # libtool.m4 will add one of these switches to LD
24285     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24286       libsuff= shlibsuff= libmagic=32-bit;;
24287     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24288       libsuff=32 shlibsuff=N32 libmagic=N32;;
24289     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24290       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24291     *) libsuff= shlibsuff= libmagic=never-match;;
24292     esac
24293     ;;
24294   esac
24295   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24296   shlibpath_overrides_runpath=no
24297   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24298   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24299   hardcode_into_libs=yes
24300   ;;
24301
24302 # No shared lib support for Linux oldld, aout, or coff.
24303 linux*oldld* | linux*aout* | linux*coff*)
24304   dynamic_linker=no
24305   ;;
24306
24307 # This must be glibc/ELF.
24308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
24309   version_type=linux # correct to gnu/linux during the next big refactor
24310   need_lib_prefix=no
24311   need_version=no
24312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24313   soname_spec='${libname}${release}${shared_ext}$major'
24314   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24315   shlibpath_var=LD_LIBRARY_PATH
24316   shlibpath_overrides_runpath=no
24317
24318   # Some binutils ld are patched to set DT_RUNPATH
24319   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24320   $as_echo_n "(cached) " >&6
24321 else
24322   lt_cv_shlibpath_overrides_runpath=no
24323     save_LDFLAGS=$LDFLAGS
24324     save_libdir=$libdir
24325     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
24326          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
24327     cat > conftest.$ac_ext <<_ACEOF
24328       program main
24329
24330       end
24331 _ACEOF
24332 if ac_fn_f77_try_link "$LINENO"; then :
24333   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24334   lt_cv_shlibpath_overrides_runpath=yes
24335 fi
24336 fi
24337 rm -f core conftest.err conftest.$ac_objext \
24338     conftest$ac_exeext conftest.$ac_ext
24339     LDFLAGS=$save_LDFLAGS
24340     libdir=$save_libdir
24341
24342 fi
24343
24344   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24345
24346   # This implies no fast_install, which is unacceptable.
24347   # Some rework will be needed to allow for fast_install
24348   # before this can be enabled.
24349   hardcode_into_libs=yes
24350
24351   # Append ld.so.conf contents to the search path
24352   if test -f /etc/ld.so.conf; then
24353     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;s/"//g;/^$/d' | tr '\n' ' '`
24354     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24355   fi
24356
24357   # We used to test for /lib/ld.so.1 and disable shared libraries on
24358   # powerpc, because MkLinux only supported shared libraries with the
24359   # GNU dynamic linker.  Since this was broken with cross compilers,
24360   # most powerpc-linux boxes support dynamic linking these days and
24361   # people can always --disable-shared, the test was removed, and we
24362   # assume the GNU/Linux dynamic linker is in use.
24363   dynamic_linker='GNU/Linux ld.so'
24364   ;;
24365
24366 netbsd*)
24367   version_type=sunos
24368   need_lib_prefix=no
24369   need_version=no
24370   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24372     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24373     dynamic_linker='NetBSD (a.out) ld.so'
24374   else
24375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24376     soname_spec='${libname}${release}${shared_ext}$major'
24377     dynamic_linker='NetBSD ld.elf_so'
24378   fi
24379   shlibpath_var=LD_LIBRARY_PATH
24380   shlibpath_overrides_runpath=yes
24381   hardcode_into_libs=yes
24382   ;;
24383
24384 newsos6)
24385   version_type=linux # correct to gnu/linux during the next big refactor
24386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24387   shlibpath_var=LD_LIBRARY_PATH
24388   shlibpath_overrides_runpath=yes
24389   ;;
24390
24391 *nto* | *qnx*)
24392   version_type=qnx
24393   need_lib_prefix=no
24394   need_version=no
24395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24396   soname_spec='${libname}${release}${shared_ext}$major'
24397   shlibpath_var=LD_LIBRARY_PATH
24398   shlibpath_overrides_runpath=no
24399   hardcode_into_libs=yes
24400   dynamic_linker='ldqnx.so'
24401   ;;
24402
24403 openbsd*)
24404   version_type=sunos
24405   sys_lib_dlsearch_path_spec="/usr/lib"
24406   need_lib_prefix=no
24407   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24408   case $host_os in
24409     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
24410     *)                          need_version=no  ;;
24411   esac
24412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24413   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24414   shlibpath_var=LD_LIBRARY_PATH
24415   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24416     case $host_os in
24417       openbsd2.[89] | openbsd2.[89].*)
24418         shlibpath_overrides_runpath=no
24419         ;;
24420       *)
24421         shlibpath_overrides_runpath=yes
24422         ;;
24423       esac
24424   else
24425     shlibpath_overrides_runpath=yes
24426   fi
24427   ;;
24428
24429 os2*)
24430   libname_spec='$name'
24431   shrext_cmds=".dll"
24432   need_lib_prefix=no
24433   library_names_spec='$libname${shared_ext} $libname.a'
24434   dynamic_linker='OS/2 ld.exe'
24435   shlibpath_var=LIBPATH
24436   ;;
24437
24438 osf3* | osf4* | osf5*)
24439   version_type=osf
24440   need_lib_prefix=no
24441   need_version=no
24442   soname_spec='${libname}${release}${shared_ext}$major'
24443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24444   shlibpath_var=LD_LIBRARY_PATH
24445   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24446   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24447   ;;
24448
24449 rdos*)
24450   dynamic_linker=no
24451   ;;
24452
24453 solaris*)
24454   version_type=linux # correct to gnu/linux during the next big refactor
24455   need_lib_prefix=no
24456   need_version=no
24457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24458   soname_spec='${libname}${release}${shared_ext}$major'
24459   shlibpath_var=LD_LIBRARY_PATH
24460   shlibpath_overrides_runpath=yes
24461   hardcode_into_libs=yes
24462   # ldd complains unless libraries are executable
24463   postinstall_cmds='chmod +x $lib'
24464   ;;
24465
24466 sunos4*)
24467   version_type=sunos
24468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24469   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24470   shlibpath_var=LD_LIBRARY_PATH
24471   shlibpath_overrides_runpath=yes
24472   if test "$with_gnu_ld" = yes; then
24473     need_lib_prefix=no
24474   fi
24475   need_version=yes
24476   ;;
24477
24478 sysv4 | sysv4.3*)
24479   version_type=linux # correct to gnu/linux during the next big refactor
24480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24481   soname_spec='${libname}${release}${shared_ext}$major'
24482   shlibpath_var=LD_LIBRARY_PATH
24483   case $host_vendor in
24484     sni)
24485       shlibpath_overrides_runpath=no
24486       need_lib_prefix=no
24487       runpath_var=LD_RUN_PATH
24488       ;;
24489     siemens)
24490       need_lib_prefix=no
24491       ;;
24492     motorola)
24493       need_lib_prefix=no
24494       need_version=no
24495       shlibpath_overrides_runpath=no
24496       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24497       ;;
24498   esac
24499   ;;
24500
24501 sysv4*MP*)
24502   if test -d /usr/nec ;then
24503     version_type=linux # correct to gnu/linux during the next big refactor
24504     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24505     soname_spec='$libname${shared_ext}.$major'
24506     shlibpath_var=LD_LIBRARY_PATH
24507   fi
24508   ;;
24509
24510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24511   version_type=freebsd-elf
24512   need_lib_prefix=no
24513   need_version=no
24514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24515   soname_spec='${libname}${release}${shared_ext}$major'
24516   shlibpath_var=LD_LIBRARY_PATH
24517   shlibpath_overrides_runpath=yes
24518   hardcode_into_libs=yes
24519   if test "$with_gnu_ld" = yes; then
24520     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24521   else
24522     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24523     case $host_os in
24524       sco3.2v5*)
24525         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24526         ;;
24527     esac
24528   fi
24529   sys_lib_dlsearch_path_spec='/usr/lib'
24530   ;;
24531
24532 tpf*)
24533   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
24534   version_type=linux # correct to gnu/linux during the next big refactor
24535   need_lib_prefix=no
24536   need_version=no
24537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24538   shlibpath_var=LD_LIBRARY_PATH
24539   shlibpath_overrides_runpath=no
24540   hardcode_into_libs=yes
24541   ;;
24542
24543 uts4*)
24544   version_type=linux # correct to gnu/linux during the next big refactor
24545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24546   soname_spec='${libname}${release}${shared_ext}$major'
24547   shlibpath_var=LD_LIBRARY_PATH
24548   ;;
24549
24550 *)
24551   dynamic_linker=no
24552   ;;
24553 esac
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24555 $as_echo "$dynamic_linker" >&6; }
24556 test "$dynamic_linker" = no && can_build_shared=no
24557
24558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24559 if test "$GCC" = yes; then
24560   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24561 fi
24562
24563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24564   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24565 fi
24566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24567   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24568 fi
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24609 hardcode_action_F77=
24610 if test -n "$hardcode_libdir_flag_spec_F77" ||
24611    test -n "$runpath_var_F77" ||
24612    test "X$hardcode_automatic_F77" = "Xyes" ; then
24613
24614   # We can hardcode non-existent directories.
24615   if test "$hardcode_direct_F77" != no &&
24616      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24617      # have to relink, otherwise we might link with an installed library
24618      # when we should be linking with a yet-to-be-installed one
24619      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24620      test "$hardcode_minus_L_F77" != no; then
24621     # Linking always hardcodes the temporary library directory.
24622     hardcode_action_F77=relink
24623   else
24624     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24625     hardcode_action_F77=immediate
24626   fi
24627 else
24628   # We cannot hardcode anything, or else we can only hardcode existing
24629   # directories.
24630   hardcode_action_F77=unsupported
24631 fi
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
24633 $as_echo "$hardcode_action_F77" >&6; }
24634
24635 if test "$hardcode_action_F77" = relink ||
24636    test "$inherit_rpath_F77" = yes; then
24637   # Fast installation is not supported
24638   enable_fast_install=no
24639 elif test "$shlibpath_overrides_runpath" = yes ||
24640      test "$enable_shared" = no; then
24641   # Fast installation is not necessary
24642   enable_fast_install=needless
24643 fi
24644
24645
24646
24647
24648
24649
24650
24651   fi # test -n "$compiler"
24652
24653   GCC=$lt_save_GCC
24654   CC="$lt_save_CC"
24655   CFLAGS="$lt_save_CFLAGS"
24656 fi # test "$_lt_disable_F77" != yes
24657
24658 ac_ext=c
24659 ac_cpp='$CPP $CPPFLAGS'
24660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676         ac_config_commands="$ac_config_commands libtool"
24677
24678
24679
24680
24681 # Only expand once:
24682
24683
24684
24685 # Generate an error here if attempting to build both shared and static when
24686 # $libname.a is in $library_names_spec (as mentioned above), rather than
24687 # wait for ar or ld to fail.
24688 #
24689 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24690   case $library_names_spec in
24691     *libname.a*)
24692       as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
24693       ;;
24694   esac
24695 fi
24696
24697  if test "$enable_static" = yes; then
24698   ENABLE_STATIC_TRUE=
24699   ENABLE_STATIC_FALSE='#'
24700 else
24701   ENABLE_STATIC_TRUE='#'
24702   ENABLE_STATIC_FALSE=
24703 fi
24704
24705
24706
24707 # Many of these library and header checks are for the benefit of
24708 # supplementary programs.  libgmp doesn't use anything too weird.
24709
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24711 $as_echo_n "checking for ANSI C header files... " >&6; }
24712 if ${ac_cv_header_stdc+:} false; then :
24713   $as_echo_n "(cached) " >&6
24714 else
24715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h.  */
24717 #include <stdlib.h>
24718 #include <stdarg.h>
24719 #include <string.h>
24720 #include <float.h>
24721
24722 int
24723 main ()
24724 {
24725
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 if ac_fn_c_try_compile "$LINENO"; then :
24731   ac_cv_header_stdc=yes
24732 else
24733   ac_cv_header_stdc=no
24734 fi
24735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736
24737 if test $ac_cv_header_stdc = yes; then
24738   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24740 /* end confdefs.h.  */
24741 #include <string.h>
24742
24743 _ACEOF
24744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24745   $EGREP "memchr" >/dev/null 2>&1; then :
24746
24747 else
24748   ac_cv_header_stdc=no
24749 fi
24750 rm -f conftest*
24751
24752 fi
24753
24754 if test $ac_cv_header_stdc = yes; then
24755   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h.  */
24758 #include <stdlib.h>
24759
24760 _ACEOF
24761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24762   $EGREP "free" >/dev/null 2>&1; then :
24763
24764 else
24765   ac_cv_header_stdc=no
24766 fi
24767 rm -f conftest*
24768
24769 fi
24770
24771 if test $ac_cv_header_stdc = yes; then
24772   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24773   if test "$cross_compiling" = yes; then :
24774   :
24775 else
24776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h.  */
24778 #include <ctype.h>
24779 #include <stdlib.h>
24780 #if ((' ' & 0x0FF) == 0x020)
24781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24783 #else
24784 # define ISLOWER(c) \
24785                    (('a' <= (c) && (c) <= 'i') \
24786                      || ('j' <= (c) && (c) <= 'r') \
24787                      || ('s' <= (c) && (c) <= 'z'))
24788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24789 #endif
24790
24791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24792 int
24793 main ()
24794 {
24795   int i;
24796   for (i = 0; i < 256; i++)
24797     if (XOR (islower (i), ISLOWER (i))
24798         || toupper (i) != TOUPPER (i))
24799       return 2;
24800   return 0;
24801 }
24802 _ACEOF
24803 if ac_fn_c_try_run "$LINENO"; then :
24804
24805 else
24806   ac_cv_header_stdc=no
24807 fi
24808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24809   conftest.$ac_objext conftest.beam conftest.$ac_ext
24810 fi
24811
24812 fi
24813 fi
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24815 $as_echo "$ac_cv_header_stdc" >&6; }
24816 if test $ac_cv_header_stdc = yes; then
24817
24818 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24819
24820 fi
24821
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24823 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24824 if ${ac_cv_header_time+:} false; then :
24825   $as_echo_n "(cached) " >&6
24826 else
24827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24828 /* end confdefs.h.  */
24829 #include <sys/types.h>
24830 #include <sys/time.h>
24831 #include <time.h>
24832
24833 int
24834 main ()
24835 {
24836 if ((struct tm *) 0)
24837 return 0;
24838   ;
24839   return 0;
24840 }
24841 _ACEOF
24842 if ac_fn_c_try_compile "$LINENO"; then :
24843   ac_cv_header_time=yes
24844 else
24845   ac_cv_header_time=no
24846 fi
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 fi
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24850 $as_echo "$ac_cv_header_time" >&6; }
24851 if test $ac_cv_header_time = yes; then
24852
24853 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24854
24855 fi
24856
24857
24858 # Reasons for testing:
24859 #   float.h - not in SunOS bundled cc
24860 #   invent.h - IRIX specific
24861 #   langinfo.h - X/Open standard only, not in djgpp for instance
24862 #   locale.h - old systems won't have this
24863 #   nl_types.h - X/Open standard only, not in djgpp for instance
24864 #       (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24865 #   sys/attributes.h - IRIX specific
24866 #   sys/iograph.h - IRIX specific
24867 #   sys/mman.h - not in Cray Unicos
24868 #   sys/param.h - not in mingw
24869 #   sys/processor.h - solaris specific, though also present in macos
24870 #   sys/pstat.h - HPUX specific
24871 #   sys/resource.h - not in mingw
24872 #   sys/sysctl.h - not in mingw
24873 #   sys/sysinfo.h - OSF specific
24874 #   sys/syssgi.h - IRIX specific
24875 #   sys/systemcfg.h - AIX specific
24876 #   sys/time.h - autoconf suggests testing, don't know anywhere without it
24877 #   sys/times.h - not in mingw
24878 #   machine/hal_sysinfo.h - OSF specific
24879 #
24880 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24881 # default tests
24882 #
24883 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
24884 do :
24885   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24886 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24888   cat >>confdefs.h <<_ACEOF
24889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24890 _ACEOF
24891
24892 fi
24893
24894 done
24895
24896
24897 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24898 for ac_header in sys/resource.h
24899 do :
24900   ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
24901 # include <sys/time.h>
24902 # include <time.h>
24903 #else
24904 # if HAVE_SYS_TIME_H
24905 #  include <sys/time.h>
24906 # else
24907 #  include <time.h>
24908 # endif
24909 #endif
24910 "
24911 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
24912   cat >>confdefs.h <<_ACEOF
24913 #define HAVE_SYS_RESOURCE_H 1
24914 _ACEOF
24915
24916 fi
24917
24918 done
24919
24920
24921 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
24922 for ac_header in sys/sysctl.h
24923 do :
24924   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
24925 # include <sys/param.h>
24926 #endif
24927 "
24928 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
24929   cat >>confdefs.h <<_ACEOF
24930 #define HAVE_SYS_SYSCTL_H 1
24931 _ACEOF
24932
24933 fi
24934
24935 done
24936
24937
24938 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
24939 for ac_header in machine/hal_sysinfo.h
24940 do :
24941   ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
24942 # include <sys/sysinfo.h>
24943 #endif
24944 "
24945 if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then :
24946   cat >>confdefs.h <<_ACEOF
24947 #define HAVE_MACHINE_HAL_SYSINFO_H 1
24948 _ACEOF
24949
24950 fi
24951
24952 done
24953
24954
24955 # Reasons for testing:
24956 #   optarg - not declared in mingw
24957 #   fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
24958 #   sys_errlist, sys_nerr - not declared in SunOS 4
24959 #
24960 # optarg should be in unistd.h and the rest in stdio.h, both of which are
24961 # in the autoconf default includes.
24962 #
24963 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
24964 # to the man page (but aren't), in glibc they're in stdio.h.
24965 #
24966 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
24967 if test "x$ac_cv_have_decl_fgetc" = xyes; then :
24968   ac_have_decl=1
24969 else
24970   ac_have_decl=0
24971 fi
24972
24973 cat >>confdefs.h <<_ACEOF
24974 #define HAVE_DECL_FGETC $ac_have_decl
24975 _ACEOF
24976 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
24977 if test "x$ac_cv_have_decl_fscanf" = xyes; then :
24978   ac_have_decl=1
24979 else
24980   ac_have_decl=0
24981 fi
24982
24983 cat >>confdefs.h <<_ACEOF
24984 #define HAVE_DECL_FSCANF $ac_have_decl
24985 _ACEOF
24986 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
24987 if test "x$ac_cv_have_decl_optarg" = xyes; then :
24988   ac_have_decl=1
24989 else
24990   ac_have_decl=0
24991 fi
24992
24993 cat >>confdefs.h <<_ACEOF
24994 #define HAVE_DECL_OPTARG $ac_have_decl
24995 _ACEOF
24996 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
24997 if test "x$ac_cv_have_decl_ungetc" = xyes; then :
24998   ac_have_decl=1
24999 else
25000   ac_have_decl=0
25001 fi
25002
25003 cat >>confdefs.h <<_ACEOF
25004 #define HAVE_DECL_UNGETC $ac_have_decl
25005 _ACEOF
25006 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
25007 if test "x$ac_cv_have_decl_vfprintf" = xyes; then :
25008   ac_have_decl=1
25009 else
25010   ac_have_decl=0
25011 fi
25012
25013 cat >>confdefs.h <<_ACEOF
25014 #define HAVE_DECL_VFPRINTF $ac_have_decl
25015 _ACEOF
25016
25017 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
25018 #include <errno.h>
25019 "
25020 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
25021   ac_have_decl=1
25022 else
25023   ac_have_decl=0
25024 fi
25025
25026 cat >>confdefs.h <<_ACEOF
25027 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
25028 _ACEOF
25029 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
25030 #include <errno.h>
25031 "
25032 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
25033   ac_have_decl=1
25034 else
25035   ac_have_decl=0
25036 fi
25037
25038 cat >>confdefs.h <<_ACEOF
25039 #define HAVE_DECL_SYS_NERR $ac_have_decl
25040 _ACEOF
25041
25042
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25044 $as_echo_n "checking return type of signal handlers... " >&6; }
25045 if ${ac_cv_type_signal+:} false; then :
25046   $as_echo_n "(cached) " >&6
25047 else
25048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049 /* end confdefs.h.  */
25050 #include <sys/types.h>
25051 #include <signal.h>
25052
25053 int
25054 main ()
25055 {
25056 return *(signal (0, 0)) (0) == 1;
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 if ac_fn_c_try_compile "$LINENO"; then :
25062   ac_cv_type_signal=int
25063 else
25064   ac_cv_type_signal=void
25065 fi
25066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067 fi
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25069 $as_echo "$ac_cv_type_signal" >&6; }
25070
25071 cat >>confdefs.h <<_ACEOF
25072 #define RETSIGTYPE $ac_cv_type_signal
25073 _ACEOF
25074
25075
25076
25077 # Reasons for testing:
25078 #   intmax_t       - C99
25079 #   long double    - not in the HP bundled K&R cc
25080 #   long long      - only in reasonably recent compilers
25081 #   ptrdiff_t      - seems to be everywhere, maybe don't need to check this
25082 #   quad_t         - BSD specific
25083 #   uint_least32_t - C99
25084 #
25085 # the default includes are sufficient for all these types
25086 #
25087 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
25088 if test "x$ac_cv_type_intmax_t" = xyes; then :
25089
25090 cat >>confdefs.h <<_ACEOF
25091 #define HAVE_INTMAX_T 1
25092 _ACEOF
25093
25094
25095 fi
25096 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
25097 if test "x$ac_cv_type_long_double" = xyes; then :
25098
25099 cat >>confdefs.h <<_ACEOF
25100 #define HAVE_LONG_DOUBLE 1
25101 _ACEOF
25102
25103
25104 fi
25105 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25106 if test "x$ac_cv_type_long_long" = xyes; then :
25107
25108 cat >>confdefs.h <<_ACEOF
25109 #define HAVE_LONG_LONG 1
25110 _ACEOF
25111
25112
25113 fi
25114 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25115 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25116
25117 cat >>confdefs.h <<_ACEOF
25118 #define HAVE_PTRDIFF_T 1
25119 _ACEOF
25120
25121
25122 fi
25123 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
25124 if test "x$ac_cv_type_quad_t" = xyes; then :
25125
25126 cat >>confdefs.h <<_ACEOF
25127 #define HAVE_QUAD_T 1
25128 _ACEOF
25129
25130
25131 fi
25132 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
25133 if test "x$ac_cv_type_uint_least32_t" = xyes; then :
25134
25135 cat >>confdefs.h <<_ACEOF
25136 #define HAVE_UINT_LEAST32_T 1
25137 _ACEOF
25138
25139
25140 fi
25141 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25142 if test "x$ac_cv_type_intptr_t" = xyes; then :
25143
25144 cat >>confdefs.h <<_ACEOF
25145 #define HAVE_INTPTR_T 1
25146 _ACEOF
25147
25148
25149 fi
25150
25151
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
25153 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
25154 if ${ac_cv_c_stringize+:} false; then :
25155   $as_echo_n "(cached) " >&6
25156 else
25157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h.  */
25159 #define x(y) #y
25160
25161 char *s = x(teststring);
25162 _ACEOF
25163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25164   $EGREP "#teststring" >/dev/null 2>&1; then :
25165   ac_cv_c_stringize=no
25166 else
25167   ac_cv_c_stringize=yes
25168 fi
25169 rm -f conftest*
25170
25171 fi
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
25173 $as_echo "$ac_cv_c_stringize" >&6; }
25174 if test $ac_cv_c_stringize = yes; then
25175
25176 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
25177
25178 fi
25179
25180
25181 # FIXME: Really want #ifndef __cplusplus around the #define volatile
25182 # replacement autoconf gives, since volatile is always available in C++.
25183 # But we don't use it in C++ currently.
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
25185 $as_echo_n "checking for working volatile... " >&6; }
25186 if ${ac_cv_c_volatile+:} false; then :
25187   $as_echo_n "(cached) " >&6
25188 else
25189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25190 /* end confdefs.h.  */
25191
25192 int
25193 main ()
25194 {
25195
25196 volatile int x;
25197 int * volatile y = (int *) 0;
25198 return !x && !y;
25199   ;
25200   return 0;
25201 }
25202 _ACEOF
25203 if ac_fn_c_try_compile "$LINENO"; then :
25204   ac_cv_c_volatile=yes
25205 else
25206   ac_cv_c_volatile=no
25207 fi
25208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 fi
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
25211 $as_echo "$ac_cv_c_volatile" >&6; }
25212 if test $ac_cv_c_volatile = no; then
25213
25214 $as_echo "#define volatile /**/" >>confdefs.h
25215
25216 fi
25217
25218
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25220 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25221 if ${ac_cv_c_restrict+:} false; then :
25222   $as_echo_n "(cached) " >&6
25223 else
25224   ac_cv_c_restrict=no
25225    # The order here caters to the fact that C++ does not require restrict.
25226    for ac_kw in __restrict __restrict__ _Restrict restrict; do
25227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228 /* end confdefs.h.  */
25229 typedef int * int_ptr;
25230         int foo (int_ptr $ac_kw ip) {
25231         return ip[0];
25232        }
25233 int
25234 main ()
25235 {
25236 int s[1];
25237         int * $ac_kw t = s;
25238         t[0] = 0;
25239         return foo(t)
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 if ac_fn_c_try_compile "$LINENO"; then :
25245   ac_cv_c_restrict=$ac_kw
25246 fi
25247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25248      test "$ac_cv_c_restrict" != no && break
25249    done
25250
25251 fi
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25253 $as_echo "$ac_cv_c_restrict" >&6; }
25254
25255  case $ac_cv_c_restrict in
25256    restrict) ;;
25257    no) $as_echo "#define restrict /**/" >>confdefs.h
25258  ;;
25259    *)  cat >>confdefs.h <<_ACEOF
25260 #define restrict $ac_cv_c_restrict
25261 _ACEOF
25262  ;;
25263  esac
25264
25265
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
25267 $as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
25268 if ${gmp_cv_c_stdarg+:} false; then :
25269   $as_echo_n "(cached) " >&6
25270 else
25271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272 /* end confdefs.h.  */
25273 #include <stdarg.h>
25274 int foo (int x, ...)
25275 {
25276   va_list  ap;
25277   int      y;
25278   va_start (ap, x);
25279   y = va_arg (ap, int);
25280   va_end (ap);
25281   return y;
25282 }
25283 int
25284 main ()
25285 {
25286
25287   ;
25288   return 0;
25289 }
25290 _ACEOF
25291 if ac_fn_c_try_compile "$LINENO"; then :
25292   gmp_cv_c_stdarg=yes
25293 else
25294   gmp_cv_c_stdarg=no
25295 fi
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297
25298 fi
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
25300 $as_echo "$gmp_cv_c_stdarg" >&6; }
25301 if test $gmp_cv_c_stdarg = yes; then
25302
25303 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
25304
25305 fi
25306
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
25308 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
25309 if ${gmp_cv_c_attribute_const+:} false; then :
25310   $as_echo_n "(cached) " >&6
25311 else
25312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h.  */
25314 int foo (int x) __attribute__ ((const));
25315 int
25316 main ()
25317 {
25318
25319   ;
25320   return 0;
25321 }
25322 _ACEOF
25323 if ac_fn_c_try_compile "$LINENO"; then :
25324   gmp_cv_c_attribute_const=yes
25325 else
25326   gmp_cv_c_attribute_const=no
25327 fi
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25329
25330 fi
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
25332 $as_echo "$gmp_cv_c_attribute_const" >&6; }
25333 if test $gmp_cv_c_attribute_const = yes; then
25334
25335 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
25336
25337 fi
25338
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
25340 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
25341 if ${gmp_cv_c_attribute_malloc+:} false; then :
25342   $as_echo_n "(cached) " >&6
25343 else
25344   cat >conftest.c <<EOF
25345 void *foo (int x) __attribute__ ((malloc));
25346 EOF
25347 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
25348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25349   (eval $gmp_compile) 2>&5
25350   ac_status=$?
25351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352   test $ac_status = 0; }; then
25353   if grep "attribute directive ignored" conftest.out >/dev/null; then
25354     gmp_cv_c_attribute_malloc=no
25355   else
25356     gmp_cv_c_attribute_malloc=yes
25357   fi
25358 else
25359   gmp_cv_c_attribute_malloc=no
25360 fi
25361 cat conftest.out >&5
25362 rm -f conftest*
25363
25364 fi
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
25366 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
25367 if test $gmp_cv_c_attribute_malloc = yes; then
25368
25369 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
25370
25371 fi
25372
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
25374 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
25375 if ${gmp_cv_c_attribute_mode+:} false; then :
25376   $as_echo_n "(cached) " >&6
25377 else
25378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h.  */
25380 typedef int SItype __attribute__ ((mode (SI)));
25381 int
25382 main ()
25383 {
25384
25385   ;
25386   return 0;
25387 }
25388 _ACEOF
25389 if ac_fn_c_try_compile "$LINENO"; then :
25390   gmp_cv_c_attribute_mode=yes
25391 else
25392   gmp_cv_c_attribute_mode=no
25393 fi
25394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395
25396 fi
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
25398 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
25399 if test $gmp_cv_c_attribute_mode = yes; then
25400
25401 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
25402
25403 fi
25404
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
25406 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
25407 if ${gmp_cv_c_attribute_noreturn+:} false; then :
25408   $as_echo_n "(cached) " >&6
25409 else
25410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25411 /* end confdefs.h.  */
25412 void foo (int x) __attribute__ ((noreturn));
25413 int
25414 main ()
25415 {
25416
25417   ;
25418   return 0;
25419 }
25420 _ACEOF
25421 if ac_fn_c_try_compile "$LINENO"; then :
25422   gmp_cv_c_attribute_noreturn=yes
25423 else
25424   gmp_cv_c_attribute_noreturn=no
25425 fi
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427
25428 fi
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
25430 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
25431 if test $gmp_cv_c_attribute_noreturn = yes; then
25432
25433 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
25434
25435 fi
25436
25437
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
25439 $as_echo_n "checking for inline... " >&6; }
25440 if ${ac_cv_c_inline+:} false; then :
25441   $as_echo_n "(cached) " >&6
25442 else
25443   ac_cv_c_inline=no
25444 for ac_kw in inline __inline__ __inline; do
25445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25446 /* end confdefs.h.  */
25447 #ifndef __cplusplus
25448 typedef int foo_t;
25449 static $ac_kw foo_t static_foo () {return 0; }
25450 $ac_kw foo_t foo () {return 0; }
25451 #endif
25452
25453 _ACEOF
25454 if ac_fn_c_try_compile "$LINENO"; then :
25455   ac_cv_c_inline=$ac_kw
25456 fi
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25458   test "$ac_cv_c_inline" != no && break
25459 done
25460
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
25463 $as_echo "$ac_cv_c_inline" >&6; }
25464
25465 case $ac_cv_c_inline in
25466   inline | yes) ;;
25467   *)
25468     case $ac_cv_c_inline in
25469       no) ac_val=;;
25470       *) ac_val=$ac_cv_c_inline;;
25471     esac
25472     cat >>confdefs.h <<_ACEOF
25473 #ifndef __cplusplus
25474 #define inline $ac_val
25475 #endif
25476 _ACEOF
25477     ;;
25478 esac
25479
25480
25481 case $ac_cv_c_inline in
25482 no) ;;
25483 *)
25484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h.  */
25486 #define __GMP_WITHIN_CONFIGURE_INLINE 1
25487 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
25488 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25489 #define GMP_LIMB_BITS 123
25490 $DEFN_LONG_LONG_LIMB
25491 #include "$srcdir/gmp-h.in"
25492
25493 #ifndef __GMP_EXTERN_INLINE
25494 die die die
25495 #endif
25496
25497 int
25498 main ()
25499 {
25500
25501   ;
25502   return 0;
25503 }
25504 _ACEOF
25505 if ac_fn_c_try_compile "$LINENO"; then :
25506
25507 else
25508   case $ac_cv_c_inline in
25509   yes) tmp_inline=inline ;;
25510   *)   tmp_inline=$ac_cv_c_inline ;;
25511   esac
25512   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
25513 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
25514 fi
25515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25516   ;;
25517 esac
25518
25519
25520 # from libtool
25521 LIBM=
25522 case $host in
25523 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
25524   # These system don't have libm, or don't need it
25525   ;;
25526 *-ncr-sysv4.3*)
25527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
25528 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
25529 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
25530   $as_echo_n "(cached) " >&6
25531 else
25532   ac_check_lib_save_LIBS=$LIBS
25533 LIBS="-lmw  $LIBS"
25534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25535 /* end confdefs.h.  */
25536
25537 /* Override any GCC internal prototype to avoid an error.
25538    Use char because int might match the return type of a GCC
25539    builtin and then its argument prototype would still apply.  */
25540 #ifdef __cplusplus
25541 extern "C"
25542 #endif
25543 char _mwvalidcheckl ();
25544 int
25545 main ()
25546 {
25547 return _mwvalidcheckl ();
25548   ;
25549   return 0;
25550 }
25551 _ACEOF
25552 if ac_fn_c_try_link "$LINENO"; then :
25553   ac_cv_lib_mw__mwvalidcheckl=yes
25554 else
25555   ac_cv_lib_mw__mwvalidcheckl=no
25556 fi
25557 rm -f core conftest.err conftest.$ac_objext \
25558     conftest$ac_exeext conftest.$ac_ext
25559 LIBS=$ac_check_lib_save_LIBS
25560 fi
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
25562 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
25563 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
25564   LIBM="-lmw"
25565 fi
25566
25567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25568 $as_echo_n "checking for cos in -lm... " >&6; }
25569 if ${ac_cv_lib_m_cos+:} false; then :
25570   $as_echo_n "(cached) " >&6
25571 else
25572   ac_check_lib_save_LIBS=$LIBS
25573 LIBS="-lm  $LIBS"
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h.  */
25576
25577 /* Override any GCC internal prototype to avoid an error.
25578    Use char because int might match the return type of a GCC
25579    builtin and then its argument prototype would still apply.  */
25580 #ifdef __cplusplus
25581 extern "C"
25582 #endif
25583 char cos ();
25584 int
25585 main ()
25586 {
25587 return cos ();
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 if ac_fn_c_try_link "$LINENO"; then :
25593   ac_cv_lib_m_cos=yes
25594 else
25595   ac_cv_lib_m_cos=no
25596 fi
25597 rm -f core conftest.err conftest.$ac_objext \
25598     conftest$ac_exeext conftest.$ac_ext
25599 LIBS=$ac_check_lib_save_LIBS
25600 fi
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25602 $as_echo "$ac_cv_lib_m_cos" >&6; }
25603 if test "x$ac_cv_lib_m_cos" = xyes; then :
25604   LIBM="$LIBM -lm"
25605 fi
25606
25607   ;;
25608 *)
25609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25610 $as_echo_n "checking for cos in -lm... " >&6; }
25611 if ${ac_cv_lib_m_cos+:} false; then :
25612   $as_echo_n "(cached) " >&6
25613 else
25614   ac_check_lib_save_LIBS=$LIBS
25615 LIBS="-lm  $LIBS"
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h.  */
25618
25619 /* Override any GCC internal prototype to avoid an error.
25620    Use char because int might match the return type of a GCC
25621    builtin and then its argument prototype would still apply.  */
25622 #ifdef __cplusplus
25623 extern "C"
25624 #endif
25625 char cos ();
25626 int
25627 main ()
25628 {
25629 return cos ();
25630   ;
25631   return 0;
25632 }
25633 _ACEOF
25634 if ac_fn_c_try_link "$LINENO"; then :
25635   ac_cv_lib_m_cos=yes
25636 else
25637   ac_cv_lib_m_cos=no
25638 fi
25639 rm -f core conftest.err conftest.$ac_objext \
25640     conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25642 fi
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25644 $as_echo "$ac_cv_lib_m_cos" >&6; }
25645 if test "x$ac_cv_lib_m_cos" = xyes; then :
25646   LIBM="-lm"
25647 fi
25648
25649   ;;
25650 esac
25651
25652
25653
25654
25655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25656 # for constant arguments.  Useless!
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25658 $as_echo_n "checking for working alloca.h... " >&6; }
25659 if ${gmp_cv_header_alloca+:} false; then :
25660   $as_echo_n "(cached) " >&6
25661 else
25662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663 /* end confdefs.h.  */
25664 #include <alloca.h>
25665 int
25666 main ()
25667 {
25668 char *p = (char *) alloca (2 * sizeof (int));
25669   ;
25670   return 0;
25671 }
25672 _ACEOF
25673 if ac_fn_c_try_link "$LINENO"; then :
25674   gmp_cv_header_alloca=yes
25675 else
25676   gmp_cv_header_alloca=no
25677 fi
25678 rm -f core conftest.err conftest.$ac_objext \
25679     conftest$ac_exeext conftest.$ac_ext
25680 fi
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
25682 $as_echo "$gmp_cv_header_alloca" >&6; }
25683 if test $gmp_cv_header_alloca = yes; then
25684
25685 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25686
25687 fi
25688
25689
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
25691 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
25692 if ${gmp_cv_func_alloca+:} false; then :
25693   $as_echo_n "(cached) " >&6
25694 else
25695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h.  */
25697 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
25698 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25699 #define GMP_LIMB_BITS 123
25700 $DEFN_LONG_LONG_LIMB
25701 #include "$srcdir/gmp-h.in"
25702
25703 #include "$srcdir/gmp-impl.h"
25704
25705 int
25706 main ()
25707 {
25708 char *p = (char *) alloca (1);
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 if ac_fn_c_try_link "$LINENO"; then :
25714   gmp_cv_func_alloca=yes
25715 else
25716   gmp_cv_func_alloca=no
25717 fi
25718 rm -f core conftest.err conftest.$ac_objext \
25719     conftest$ac_exeext conftest.$ac_ext
25720 fi
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
25722 $as_echo "$gmp_cv_func_alloca" >&6; }
25723 if test $gmp_cv_func_alloca = yes; then
25724
25725 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25726
25727 fi
25728
25729
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
25731 $as_echo_n "checking how to allocate temporary memory... " >&6; }
25732 if ${gmp_cv_option_alloca+:} false; then :
25733   $as_echo_n "(cached) " >&6
25734 else
25735   case $enable_alloca in
25736   yes)
25737     gmp_cv_option_alloca=alloca
25738     ;;
25739   no)
25740     gmp_cv_option_alloca=malloc-reentrant
25741     ;;
25742   reentrant | notreentrant)
25743     case $gmp_cv_func_alloca in
25744     yes)  gmp_cv_option_alloca=alloca ;;
25745     *)    gmp_cv_option_alloca=malloc-$enable_alloca ;;
25746     esac
25747     ;;
25748   *)
25749     gmp_cv_option_alloca=$enable_alloca
25750     ;;
25751 esac
25752
25753 fi
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
25755 $as_echo "$gmp_cv_option_alloca" >&6; }
25756
25757
25758
25759 case $gmp_cv_option_alloca in
25760   alloca)
25761     if test $gmp_cv_func_alloca = no; then
25762       as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
25763     fi
25764     $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
25765
25766     TAL_OBJECT=tal-reent$U.lo
25767     ;;
25768   malloc-reentrant)
25769     $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
25770
25771     TAL_OBJECT=tal-reent$U.lo
25772     ;;
25773   malloc-notreentrant)
25774     $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
25775
25776     TAL_OBJECT=tal-notreent$U.lo
25777     ;;
25778   debug)
25779     $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
25780
25781     TAL_OBJECT=tal-debug$U.lo
25782     ;;
25783   *)
25784     # checks at the start of configure.in should protect us
25785     as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
25786     ;;
25787 esac
25788
25789
25790
25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25792 /* end confdefs.h.  */
25793 #include <stdio.h>
25794 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
25795 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25796 #define GMP_LIMB_BITS 123
25797 $DEFN_LONG_LONG_LIMB
25798 #include "$srcdir/gmp-h.in"
25799
25800 #if ! _GMP_H_HAVE_FILE
25801 die die die
25802 #endif
25803
25804 int
25805 main ()
25806 {
25807
25808   ;
25809   return 0;
25810 }
25811 _ACEOF
25812 if ac_fn_c_try_compile "$LINENO"; then :
25813
25814 else
25815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
25816 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
25817 fi
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819
25820
25821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25822 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25823 if ${ac_cv_c_bigendian+:} false; then :
25824   $as_echo_n "(cached) " >&6
25825 else
25826   ac_cv_c_bigendian=unknown
25827     # See if we're dealing with a universal compiler.
25828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25829 /* end confdefs.h.  */
25830 #ifndef __APPLE_CC__
25831                not a universal capable compiler
25832              #endif
25833              typedef int dummy;
25834
25835 _ACEOF
25836 if ac_fn_c_try_compile "$LINENO"; then :
25837
25838         # Check for potential -arch flags.  It is not universal unless
25839         # there are at least two -arch flags with different values.
25840         ac_arch=
25841         ac_prev=
25842         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25843          if test -n "$ac_prev"; then
25844            case $ac_word in
25845              i?86 | x86_64 | ppc | ppc64)
25846                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25847                  ac_arch=$ac_word
25848                else
25849                  ac_cv_c_bigendian=universal
25850                  break
25851                fi
25852                ;;
25853            esac
25854            ac_prev=
25855          elif test "x$ac_word" = "x-arch"; then
25856            ac_prev=arch
25857          fi
25858        done
25859 fi
25860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25861     if test $ac_cv_c_bigendian = unknown; then
25862       # See if sys/param.h defines the BYTE_ORDER macro.
25863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h.  */
25865 #include <sys/types.h>
25866              #include <sys/param.h>
25867
25868 int
25869 main ()
25870 {
25871 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25872                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25873                      && LITTLE_ENDIAN)
25874               bogus endian macros
25875              #endif
25876
25877   ;
25878   return 0;
25879 }
25880 _ACEOF
25881 if ac_fn_c_try_compile "$LINENO"; then :
25882   # It does; now see whether it defined to BIG_ENDIAN or not.
25883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h.  */
25885 #include <sys/types.h>
25886                 #include <sys/param.h>
25887
25888 int
25889 main ()
25890 {
25891 #if BYTE_ORDER != BIG_ENDIAN
25892                  not big endian
25893                 #endif
25894
25895   ;
25896   return 0;
25897 }
25898 _ACEOF
25899 if ac_fn_c_try_compile "$LINENO"; then :
25900   ac_cv_c_bigendian=yes
25901 else
25902   ac_cv_c_bigendian=no
25903 fi
25904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25905 fi
25906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25907     fi
25908     if test $ac_cv_c_bigendian = unknown; then
25909       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25910       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h.  */
25912 #include <limits.h>
25913
25914 int
25915 main ()
25916 {
25917 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25918               bogus endian macros
25919              #endif
25920
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 if ac_fn_c_try_compile "$LINENO"; then :
25926   # It does; now see whether it defined to _BIG_ENDIAN or not.
25927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25928 /* end confdefs.h.  */
25929 #include <limits.h>
25930
25931 int
25932 main ()
25933 {
25934 #ifndef _BIG_ENDIAN
25935                  not big endian
25936                 #endif
25937
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 if ac_fn_c_try_compile "$LINENO"; then :
25943   ac_cv_c_bigendian=yes
25944 else
25945   ac_cv_c_bigendian=no
25946 fi
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948 fi
25949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25950     fi
25951     if test $ac_cv_c_bigendian = unknown; then
25952       # Compile a test program.
25953       if test "$cross_compiling" = yes; then :
25954   # Try to guess by grepping values from an object file.
25955          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h.  */
25957 short int ascii_mm[] =
25958                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25959                 short int ascii_ii[] =
25960                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25961                 int use_ascii (int i) {
25962                   return ascii_mm[i] + ascii_ii[i];
25963                 }
25964                 short int ebcdic_ii[] =
25965                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25966                 short int ebcdic_mm[] =
25967                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25968                 int use_ebcdic (int i) {
25969                   return ebcdic_mm[i] + ebcdic_ii[i];
25970                 }
25971                 extern int foo;
25972
25973 int
25974 main ()
25975 {
25976 return use_ascii (foo) == use_ebcdic (foo);
25977   ;
25978   return 0;
25979 }
25980 _ACEOF
25981 if ac_fn_c_try_compile "$LINENO"; then :
25982   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25983               ac_cv_c_bigendian=yes
25984             fi
25985             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25986               if test "$ac_cv_c_bigendian" = unknown; then
25987                 ac_cv_c_bigendian=no
25988               else
25989                 # finding both strings is unlikely to happen, but who knows?
25990                 ac_cv_c_bigendian=unknown
25991               fi
25992             fi
25993 fi
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 else
25996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h.  */
25998 $ac_includes_default
25999 int
26000 main ()
26001 {
26002
26003              /* Are we little or big endian?  From Harbison&Steele.  */
26004              union
26005              {
26006                long int l;
26007                char c[sizeof (long int)];
26008              } u;
26009              u.l = 1;
26010              return u.c[sizeof (long int) - 1] == 1;
26011
26012   ;
26013   return 0;
26014 }
26015 _ACEOF
26016 if ac_fn_c_try_run "$LINENO"; then :
26017   ac_cv_c_bigendian=no
26018 else
26019   ac_cv_c_bigendian=yes
26020 fi
26021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26022   conftest.$ac_objext conftest.beam conftest.$ac_ext
26023 fi
26024
26025     fi
26026 fi
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26028 $as_echo "$ac_cv_c_bigendian" >&6; }
26029  case $ac_cv_c_bigendian in #(
26030    yes)
26031      $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
26032
26033
26034 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26035 ;; #(
26036    no)
26037      $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
26038
26039
26040 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26041
26042    ;; #(
26043    universal)
26044
26045 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26046
26047      ;; #(
26048    *)
26049      : ;;
26050  esac
26051
26052
26053
26054
26055
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
26057 $as_echo_n "checking format of \`double' floating point... " >&6; }
26058 if ${gmp_cv_c_double_format+:} false; then :
26059   $as_echo_n "(cached) " >&6
26060 else
26061   gmp_cv_c_double_format=unknown
26062 cat >conftest.c <<\EOF
26063 struct foo {
26064   char    before[8];
26065   double  x;
26066   char    after[8];
26067 };
26068 extern struct foo foo;
26069 struct foo foo = {
26070   { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
26071   -123456789.0,
26072   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
26073 };
26074 EOF
26075 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
26076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26077   (eval $gmp_compile) 2>&5
26078   ac_status=$?
26079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080   test $ac_status = 0; }; then
26081 cat >conftest.awk <<\EOF
26082
26083 BEGIN {
26084   found = 0
26085 }
26086
26087 {
26088   for (f = 2; f <= NF; f++)
26089     {
26090       for (i = 0; i < 23; i++)
26091         got[i] = got[i+1];
26092       got[23] = $f;
26093
26094       # match the special begin and end sequences
26095       if (got[0] != "001") continue
26096       if (got[1] != "043") continue
26097       if (got[2] != "105") continue
26098       if (got[3] != "147") continue
26099       if (got[4] != "211") continue
26100       if (got[5] != "253") continue
26101       if (got[6] != "315") continue
26102       if (got[7] != "357") continue
26103       if (got[16] != "376") continue
26104       if (got[17] != "334") continue
26105       if (got[18] != "272") continue
26106       if (got[19] != "230") continue
26107       if (got[20] != "166") continue
26108       if (got[21] != "124") continue
26109       if (got[22] != "062") continue
26110       if (got[23] != "020") continue
26111
26112       saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
26113
26114       if (got[8]  == "000" &&  \
26115           got[9]  == "000" &&  \
26116           got[10] == "000" &&  \
26117           got[11] == "124" &&  \
26118           got[12] == "064" &&  \
26119           got[13] == "157" &&  \
26120           got[14] == "235" &&  \
26121           got[15] == "301")
26122         {
26123           print "IEEE little endian"
26124           found = 1
26125           exit
26126         }
26127
26128       # Little endian with the two 4-byte halves swapped, as used by ARM
26129       # when the chip is in little endian mode.
26130       #
26131       if (got[8]  == "064" &&  \
26132           got[9]  == "157" &&  \
26133           got[10] == "235" &&  \
26134           got[11] == "301" &&  \
26135           got[12] == "000" &&  \
26136           got[13] == "000" &&  \
26137           got[14] == "000" &&  \
26138           got[15] == "124")
26139         {
26140           print "IEEE little endian, swapped halves"
26141           found = 1
26142           exit
26143         }
26144
26145       # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
26146       # the last byte, whereas 124 is correct.  Not sure where the bug
26147       # actually lies, but a running program didn't seem to get a full
26148       # mantissa worth of working bits.
26149       #
26150       # We match this case explicitly so we can give a nice result message,
26151       # but we deliberately exclude it from the normal IEEE double setups
26152       # since it's too broken.
26153       #
26154       if (got[8]  == "064" &&  \
26155           got[9]  == "157" &&  \
26156           got[10] == "235" &&  \
26157           got[11] == "301" &&  \
26158           got[12] == "000" &&  \
26159           got[13] == "000" &&  \
26160           got[14] == "000" &&  \
26161           got[15] == "000")
26162         {
26163           print "bad ARM software floats"
26164           found = 1
26165           exit
26166         }
26167
26168       if (got[8]  == "301" &&  \
26169           got[9]  == "235" &&  \
26170           got[10] == "157" &&  \
26171           got[11] == "064" &&  \
26172           got[12] == "124" &&  \
26173           got[13] == "000" &&  \
26174           got[14] == "000" &&  \
26175           got[15] == "000")
26176         {
26177           print "IEEE big endian"
26178           found = 1
26179           exit
26180         }
26181
26182       if (got[8]  == "353" &&  \
26183           got[9]  == "315" &&  \
26184           got[10] == "242" &&  \
26185           got[11] == "171" &&  \
26186           got[12] == "000" &&  \
26187           got[13] == "240" &&  \
26188           got[14] == "000" &&  \
26189           got[15] == "000")
26190         {
26191           print "VAX D"
26192           found = 1
26193           exit
26194         }
26195
26196       if (got[8]  == "275" &&  \
26197           got[9]  == "301" &&  \
26198           got[10] == "064" &&  \
26199           got[11] == "157" &&  \
26200           got[12] == "000" &&  \
26201           got[13] == "124" &&  \
26202           got[14] == "000" &&  \
26203           got[15] == "000")
26204         {
26205           print "VAX G"
26206           found = 1
26207           exit
26208         }
26209
26210       if (got[8]  == "300" &&  \
26211           got[9]  == "033" &&  \
26212           got[10] == "353" &&  \
26213           got[11] == "171" &&  \
26214           got[12] == "242" &&  \
26215           got[13] == "240" &&  \
26216           got[14] == "000" &&  \
26217           got[15] == "000")
26218         {
26219           print "Cray CFP"
26220           found = 1
26221           exit
26222         }
26223     }
26224 }
26225
26226 END {
26227   if (! found)
26228     print "unknown", saw
26229 }
26230
26231 EOF
26232   gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26233   case $gmp_cv_c_double_format in
26234   unknown*)
26235     echo "cannot match anything, conftest.$OBJEXT contains" >&5
26236     od -b conftest.$OBJEXT >&5
26237     ;;
26238   esac
26239 else
26240   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26241 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26242 fi
26243 rm -f conftest*
26244
26245 fi
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
26247 $as_echo "$gmp_cv_c_double_format" >&6; }
26248
26249
26250
26251 case $gmp_cv_c_double_format in
26252   "IEEE big endian")
26253     $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
26254
26255
26256 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26257
26258     ;;
26259   "IEEE little endian")
26260     $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
26261
26262
26263 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26264
26265     ;;
26266   "IEEE little endian, swapped halves")
26267     $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
26268  ;;
26269   "VAX D")
26270     $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
26271  ;;
26272   "VAX G")
26273     $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
26274  ;;
26275   "Cray CFP")
26276     $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
26277  ;;
26278   "bad ARM software floats")
26279     ;;
26280   unknown*)
26281     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
26282 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
26283     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
26284 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
26285     ;;
26286   *)
26287     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
26288 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
26289     ;;
26290 esac
26291
26292
26293
26294 # Reasons for testing:
26295 #   alarm - not in mingw
26296 #   attr_get - IRIX specific
26297 #   clock_gettime - not in glibc 2.2.4, only very recent systems
26298 #   cputime - not in glibc
26299 #   getsysinfo - OSF specific
26300 #   getrusage - not in mingw
26301 #   gettimeofday - not in mingw
26302 #   mmap - not in mingw, djgpp
26303 #   nl_langinfo - X/Open standard only, not in djgpp for instance
26304 #   obstack_vprintf - glibc specific
26305 #   processor_info - solaris specific
26306 #   pstat_getprocessor - HPUX specific (10.x and up)
26307 #   raise - an ANSI-ism, though probably almost universal by now
26308 #   read_real_time - AIX specific
26309 #   sigaction - not in mingw
26310 #   sigaltstack - not in mingw, or old AIX (reputedly)
26311 #   sigstack - not in mingw
26312 #   strerror - not in SunOS
26313 #   strnlen - glibc extension (some other systems too)
26314 #   syssgi - IRIX specific
26315 #   times - not in mingw
26316 #
26317 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
26318 # replacement setups it gives.  It detects a faulty strnlen on AIX, but
26319 # missing out on that test is ok since our only use of strnlen is in
26320 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
26321 # vsnprintf.
26322 #
26323 for ac_func in alarm attr_get clock 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
26324 do :
26325   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26328   cat >>confdefs.h <<_ACEOF
26329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26330 _ACEOF
26331
26332 fi
26333 done
26334
26335
26336 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to
26337 # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26),
26338 # clock_getres reports ns accuracy, while in a quick test on osf
26339 # clock_getres said only 1 millisecond.
26340
26341 old_LIBS="$LIBS"
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
26343 $as_echo_n "checking for library containing clock_gettime... " >&6; }
26344 if ${ac_cv_search_clock_gettime+:} false; then :
26345   $as_echo_n "(cached) " >&6
26346 else
26347   ac_func_search_save_LIBS=$LIBS
26348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349 /* end confdefs.h.  */
26350
26351 /* Override any GCC internal prototype to avoid an error.
26352    Use char because int might match the return type of a GCC
26353    builtin and then its argument prototype would still apply.  */
26354 #ifdef __cplusplus
26355 extern "C"
26356 #endif
26357 char clock_gettime ();
26358 int
26359 main ()
26360 {
26361 return clock_gettime ();
26362   ;
26363   return 0;
26364 }
26365 _ACEOF
26366 for ac_lib in '' rt; do
26367   if test -z "$ac_lib"; then
26368     ac_res="none required"
26369   else
26370     ac_res=-l$ac_lib
26371     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26372   fi
26373   if ac_fn_c_try_link "$LINENO"; then :
26374   ac_cv_search_clock_gettime=$ac_res
26375 fi
26376 rm -f core conftest.err conftest.$ac_objext \
26377     conftest$ac_exeext
26378   if ${ac_cv_search_clock_gettime+:} false; then :
26379   break
26380 fi
26381 done
26382 if ${ac_cv_search_clock_gettime+:} false; then :
26383
26384 else
26385   ac_cv_search_clock_gettime=no
26386 fi
26387 rm conftest.$ac_ext
26388 LIBS=$ac_func_search_save_LIBS
26389 fi
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
26391 $as_echo "$ac_cv_search_clock_gettime" >&6; }
26392 ac_res=$ac_cv_search_clock_gettime
26393 if test "$ac_res" != no; then :
26394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26395
26396
26397 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26398
26399 fi
26400
26401 TUNE_LIBS="$LIBS"
26402 LIBS="$old_LIBS"
26403
26404
26405
26406
26407 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
26408 if test "x$ac_cv_func_vsnprintf" = xyes; then :
26409   gmp_vsnprintf_exists=yes
26410 else
26411   gmp_vsnprintf_exists=no
26412 fi
26413
26414 if test "$gmp_vsnprintf_exists" = no; then
26415   gmp_cv_func_vsnprintf=no
26416 else
26417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
26418 $as_echo_n "checking whether vsnprintf works... " >&6; }
26419 if ${gmp_cv_func_vsnprintf+:} false; then :
26420   $as_echo_n "(cached) " >&6
26421 else
26422   gmp_cv_func_vsnprintf=yes
26423    for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
26424      if test "$cross_compiling" = yes; then :
26425   gmp_cv_func_vsnprintf=probably; break
26426 else
26427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429
26430 #include <string.h>  /* for strcmp */
26431 #include <stdio.h>   /* for vsnprintf */
26432
26433 #if HAVE_STDARG
26434 #include <stdarg.h>
26435 #else
26436 #include <varargs.h>
26437 #endif
26438
26439 int
26440 #if HAVE_STDARG
26441 check (const char *fmt, ...)
26442 #else
26443 check (va_alist)
26444      va_dcl
26445 #endif
26446 {
26447   static char  buf[128];
26448   va_list  ap;
26449   int      ret;
26450
26451 #if HAVE_STDARG
26452   va_start (ap, fmt);
26453 #else
26454   char *fmt;
26455   va_start (ap);
26456   fmt = va_arg (ap, char *);
26457 #endif
26458
26459   ret = vsnprintf (buf, 4, fmt, ap);
26460
26461   if (strcmp (buf, "hel") != 0)
26462     return 1;
26463
26464   /* allowed return values */
26465   if (ret != -1 && ret != 3 && ret != 11)
26466     return 2;
26467
26468   return 0;
26469 }
26470
26471 int
26472 main ()
26473 {
26474 $i
26475 }
26476
26477 _ACEOF
26478 if ac_fn_c_try_run "$LINENO"; then :
26479   :
26480 else
26481   gmp_cv_func_vsnprintf=no; break
26482 fi
26483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26484   conftest.$ac_objext conftest.beam conftest.$ac_ext
26485 fi
26486
26487   done
26488
26489 fi
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
26491 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
26492   if test "$gmp_cv_func_vsnprintf" = probably; then
26493     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
26494 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
26495   fi
26496   if test "$gmp_cv_func_vsnprintf" != no; then
26497
26498 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
26499
26500   fi
26501 fi
26502
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
26504 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
26505 if ${gmp_cv_func_sscanf_writable_input+:} false; then :
26506   $as_echo_n "(cached) " >&6
26507 else
26508   case $host in
26509   *-*-hpux9 | *-*-hpux9.*)
26510      gmp_cv_func_sscanf_writable_input=yes ;;
26511   *) gmp_cv_func_sscanf_writable_input=no  ;;
26512 esac
26513
26514 fi
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
26516 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
26517 case $gmp_cv_func_sscanf_writable_input in
26518   yes)
26519 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
26520  ;;
26521   no)  ;;
26522   *)   as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
26523 esac
26524
26525
26526 # Reasons for checking:
26527 #   pst_processor psp_iticksperclktick - not in hpux 9
26528 #
26529 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
26530 "
26531 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then :
26532
26533 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
26534
26535 fi
26536
26537
26538 # C++ tests, when required
26539 #
26540 if test $enable_cxx = yes; then
26541   ac_ext=cpp
26542 ac_cpp='$CXXCPP $CPPFLAGS'
26543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26546
26547
26548   # Reasons for testing:
26549   #   <sstream> - not in g++ 2.95.2
26550   #   std::locale - not in g++ 2.95.4
26551   #
26552
26553 for ac_header in sstream
26554 do :
26555   ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
26556 if test "x$ac_cv_header_sstream" = xyes; then :
26557   cat >>confdefs.h <<_ACEOF
26558 #define HAVE_SSTREAM 1
26559 _ACEOF
26560
26561 fi
26562
26563 done
26564
26565   ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
26566 "
26567 if test "x$ac_cv_type_std__locale" = xyes; then :
26568
26569 cat >>confdefs.h <<_ACEOF
26570 #define HAVE_STD__LOCALE 1
26571 _ACEOF
26572
26573
26574 fi
26575
26576
26577   ac_ext=c
26578 ac_cpp='$CPP $CPPFLAGS'
26579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26582
26583 fi
26584
26585
26586 # Pick the correct source files in $path and link them to mpn/.
26587 # $gmp_mpn_functions lists all functions we need.
26588 #
26589 # The rule is to find a file with the function name and a .asm, .S,
26590 # .s, or .c extension.  Certain multi-function files with special names
26591 # can provide some functions too.  (mpn/Makefile.am passes
26592 # -DOPERATION_<func> to get them to generate the right code.)
26593
26594 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
26595 #       can optionally provide the latter as an extra entrypoint.  Likewise
26596 #       divrem_1 and pre_divrem_1.
26597
26598 gmp_mpn_functions_optional="umul udiv                                   \
26599   invert_limb sqr_diagonal sqr_diag_addlsh1                             \
26600   mul_2 mul_3 mul_4 mul_5 mul_6                                         \
26601   addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8        \
26602   addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n                     \
26603   addlsh2_n sublsh2_n rsblsh2_n                                         \
26604   addlsh_n sublsh_n rsblsh_n                                            \
26605   add_n_sub_n addaddmul_1msb0"
26606
26607 gmp_mpn_functions="$extra_functions                                        \
26608   add add_1 add_n sub sub_1 sub_n addcnd_n subcnd_n neg com                \
26609   mul_1 addmul_1 submul_1                                                  \
26610   add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n        \
26611   lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2              \
26612   fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump             \
26613   mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc                                  \
26614   mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul           \
26615   mulmid_basecase toom42_mulmid mulmid_n mulmid                            \
26616   random random2 pow_1                                                     \
26617   rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp         \
26618   perfsqr perfpow                                                          \
26619   gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step                                \
26620   gcdext_lehmer                                                            \
26621   div_q tdiv_qr jacbase jacobi_2 jacobi get_d                              \
26622   matrix22_mul matrix22_mul1_inverse_vector                                \
26623   hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr                   \
26624   hgcd2_jacobi hgcd_jacobi                                                 \
26625   mullo_n mullo_basecase                                                   \
26626   toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul                   \
26627   toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul                   \
26628   toom44_mul                                                               \
26629   toom6h_mul toom6_sqr toom8h_mul toom8_sqr                                \
26630   toom_couple_handling                                                     \
26631   toom2_sqr toom3_sqr toom4_sqr                                            \
26632   toom_eval_dgr3_pm1 toom_eval_dgr3_pm2                                    \
26633   toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp           \
26634   toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts        \
26635   toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts      \
26636   invertappr invert binvert mulmod_bnm1 sqrmod_bnm1                        \
26637   div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1                                     \
26638   sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q                                 \
26639   dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q                                 \
26640   mu_div_qr mu_divappr_q mu_div_q                                          \
26641   bdiv_q_1                                                                 \
26642   sbpi1_bdiv_q sbpi1_bdiv_qr                                               \
26643   dcpi1_bdiv_q dcpi1_bdiv_qr                                               \
26644   mu_bdiv_q mu_bdiv_qr                                                     \
26645   bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv                             \
26646   divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec             \
26647   sb_div_qr_sec sb_div_r_sec sbpi1_div_qr_sec sbpi1_div_r_sec              \
26648   trialdiv remove                                                          \
26649   and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n                     \
26650   copyi copyd zero tabselect                                               \
26651   comb_tables                                                              \
26652   $gmp_mpn_functions_optional"
26653
26654
26655
26656 # the list of all object files used by mpn/Makefile.in and the
26657 # top-level Makefile.in, respectively
26658 mpn_objects=
26659 mpn_objs_in_libgmp=
26660
26661 # links from the sources, to be removed by "make distclean"
26662 gmp_srclinks=
26663
26664
26665 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
26666 # build directory.  If $srcdir is relative then we use a relative path too,
26667 # so the two trees can be moved together.
26668 case $srcdir in
26669   [\\/]* | ?:[\\/]*)  # absolute, as per autoconf
26670     mpn_relative_top_srcdir=$srcdir ;;
26671   *)                    # relative
26672     mpn_relative_top_srcdir=../$srcdir ;;
26673 esac
26674
26675
26676
26677
26678
26679
26680 # Fat binary setups.
26681 #
26682 # We proceed through each $fat_path directory, and look for $fat_function
26683 # routines there.  Those found are incorporated in the build by generating a
26684 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
26685 # suitable function renaming, and adding that to $mpn_objects (the same as a
26686 # normal mpn file).
26687 #
26688 # fat.h is generated with macros to let internal calls to each $fat_function
26689 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
26690 # setup that structure, on a per-directory basis ready for
26691 # mpn/<cpu>/fat/fat.c.
26692 #
26693 # fat.h includes thresholds listed in $fat_thresholds, extracted from
26694 # gmp-mparam.h in each directory.  An overall maximum for each threshold is
26695 # established, for use in making fixed size arrays of temporary space.
26696 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
26697 #
26698 # It'd be possible to do some of this manually, but when there's more than a
26699 # few functions and a few directories it becomes very tedious, and very
26700 # prone to having some routine accidentally omitted.  On that basis it seems
26701 # best to automate as much as possible, even if the code to do so is a bit
26702 # ugly.
26703 #
26704
26705 if test -n "$fat_path"; then
26706   # Usually the mpn build directory is created with mpn/Makefile
26707   # instantiation, but we want to write to it sooner.
26708   mkdir mpn 2>/dev/null
26709
26710   echo "/* fat.h - setups for fat binaries." >fat.h
26711   echo "   Generated by configure - DO NOT EDIT.  */" >>fat.h
26712
26713
26714 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
26715
26716
26717 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
26718
26719
26720   # Don't want normal copies of fat functions
26721   for tmp_fn in $fat_functions; do
26722     remove_from_list_tmp=
26723 for remove_from_list_i in $gmp_mpn_functions; do
26724   if test $remove_from_list_i = $tmp_fn; then :;
26725   else
26726      remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26727   fi
26728 done
26729 gmp_mpn_functions=$remove_from_list_tmp
26730
26731     remove_from_list_tmp=
26732 for remove_from_list_i in $gmp_mpn_functions_optional; do
26733   if test $remove_from_list_i = $tmp_fn; then :;
26734   else
26735      remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26736   fi
26737 done
26738 gmp_mpn_functions_optional=$remove_from_list_tmp
26739
26740   done
26741
26742   for tmp_fn in $fat_functions; do
26743     case $tmp_fn in
26744   dive_1)       tmp_fbase=divexact_1 ;;
26745   diveby3)      tmp_fbase=divexact_by3c ;;
26746   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26747   mode1o)       tmp_fbase=modexact_1c_odd ;;
26748   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
26749   mod_1_1)      tmp_fbase=mod_1_1p ;;
26750   mod_1_1_cps)  tmp_fbase=mod_1_1p_cps ;;
26751   mod_1_2)      tmp_fbase=mod_1s_2p ;;
26752   mod_1_2_cps)  tmp_fbase=mod_1s_2p_cps ;;
26753   mod_1_3)      tmp_fbase=mod_1s_3p ;;
26754   mod_1_3_cps)  tmp_fbase=mod_1s_3p_cps ;;
26755   mod_1_4)      tmp_fbase=mod_1s_4p ;;
26756   mod_1_4_cps)  tmp_fbase=mod_1s_4p_cps ;;
26757   *)            tmp_fbase=$tmp_fn ;;
26758 esac
26759
26760     echo "
26761 #ifndef OPERATION_$tmp_fn
26762 #undef  mpn_$tmp_fbase
26763 #define mpn_$tmp_fbase  (*__gmpn_cpuvec.$tmp_fbase)
26764 #endif
26765 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
26766     # encourage various macros to use fat functions
26767     cat >>confdefs.h <<_ACEOF
26768 #define HAVE_NATIVE_mpn_$tmp_fbase 1
26769 _ACEOF
26770
26771   done
26772
26773   echo "" >>fat.h
26774   echo "/* variable thresholds */" >>fat.h
26775   for tmp_tn in $fat_thresholds; do
26776     echo "#undef  $tmp_tn" >>fat.h
26777     echo "#define $tmp_tn  CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
26778   done
26779
26780   echo "
26781 /* Copy all fields into __gmpn_cpuvec.
26782    memcpy is not used because it might operate byte-wise (depending on its
26783    implementation), and we need the function pointer writes to be atomic.
26784    "volatile" discourages the compiler from trying to optimize this.  */
26785 #define CPUVEC_INSTALL(vec) \\
26786   do { \\
26787     volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
26788   for tmp_fn in $fat_functions; do
26789     case $tmp_fn in
26790   dive_1)       tmp_fbase=divexact_1 ;;
26791   diveby3)      tmp_fbase=divexact_by3c ;;
26792   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26793   mode1o)       tmp_fbase=modexact_1c_odd ;;
26794   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
26795   mod_1_1)      tmp_fbase=mod_1_1p ;;
26796   mod_1_1_cps)  tmp_fbase=mod_1_1p_cps ;;
26797   mod_1_2)      tmp_fbase=mod_1s_2p ;;
26798   mod_1_2_cps)  tmp_fbase=mod_1s_2p_cps ;;
26799   mod_1_3)      tmp_fbase=mod_1s_3p ;;
26800   mod_1_3_cps)  tmp_fbase=mod_1s_3p_cps ;;
26801   mod_1_4)      tmp_fbase=mod_1s_4p ;;
26802   mod_1_4_cps)  tmp_fbase=mod_1s_4p_cps ;;
26803   *)            tmp_fbase=$tmp_fn ;;
26804 esac
26805
26806     echo "    p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
26807   done
26808   for tmp_tn in $fat_thresholds; do
26809     tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26810     echo "    p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
26811   done
26812   echo "  } while (0)" >>fat.h
26813
26814   echo "
26815 /* A helper to check all fields are filled. */
26816 #define ASSERT_CPUVEC(vec) \\
26817   do { \\" >>fat.h
26818   for tmp_fn in $fat_functions; do
26819     case $tmp_fn in
26820   dive_1)       tmp_fbase=divexact_1 ;;
26821   diveby3)      tmp_fbase=divexact_by3c ;;
26822   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26823   mode1o)       tmp_fbase=modexact_1c_odd ;;
26824   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
26825   mod_1_1)      tmp_fbase=mod_1_1p ;;
26826   mod_1_1_cps)  tmp_fbase=mod_1_1p_cps ;;
26827   mod_1_2)      tmp_fbase=mod_1s_2p ;;
26828   mod_1_2_cps)  tmp_fbase=mod_1s_2p_cps ;;
26829   mod_1_3)      tmp_fbase=mod_1s_3p ;;
26830   mod_1_3_cps)  tmp_fbase=mod_1s_3p_cps ;;
26831   mod_1_4)      tmp_fbase=mod_1s_4p ;;
26832   mod_1_4_cps)  tmp_fbase=mod_1s_4p_cps ;;
26833   *)            tmp_fbase=$tmp_fn ;;
26834 esac
26835
26836     echo "    ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
26837   done
26838   for tmp_tn in $fat_thresholds; do
26839     tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26840     echo "    ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
26841   done
26842   echo "  } while (0)" >>fat.h
26843
26844   echo "
26845 /* Call ITERATE(field) for each fat threshold field. */
26846 #define ITERATE_FAT_THRESHOLDS() \\
26847   do { \\" >>fat.h
26848   for tmp_tn in $fat_thresholds; do
26849     tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26850     echo "    ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
26851   done
26852   echo "  } while (0)" >>fat.h
26853
26854   for tmp_dir in $fat_path; do
26855     CPUVEC_SETUP=
26856     THRESH_ASM_SETUP=
26857     echo "" >>fat.h
26858     tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
26859
26860     # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
26861     # (rather than a suffix) for the generated file names, and abbreviate.
26862     case $tmp_suffix in
26863       pentium)       tmp_prefix=p   ;;
26864       pentium_mmx)   tmp_prefix=pm  ;;
26865       p6_mmx)        tmp_prefix=p2  ;;
26866       p6_p3mmx)      tmp_prefix=p3  ;;
26867       pentium4)      tmp_prefix=p4  ;;
26868       pentium4_mmx)  tmp_prefix=p4m ;;
26869       pentium4_sse2) tmp_prefix=p4s ;;
26870       k6_mmx)        tmp_prefix=k6m ;;
26871       k6_k62mmx)     tmp_prefix=k62 ;;
26872       k7_mmx)        tmp_prefix=k7m ;;
26873       *)             tmp_prefix=$tmp_suffix ;;
26874     esac
26875
26876     # Extract desired thresholds from gmp-mparam.h file in this directory,
26877     # if present.
26878     tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
26879     if test -f $tmp_mparam; then
26880       for tmp_tn in $fat_thresholds; do
26881         tmp_thresh=`sed -n "s/^#define $tmp_tn[         ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
26882         if test -n "$tmp_thresh"; then
26883           THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
26884 "
26885           CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
26886 "
26887           eval tmp_limit=\$${tmp_tn}_LIMIT
26888           if test -z "$tmp_limit"; then
26889             tmp_limit=0
26890           fi
26891           if test $tmp_thresh -gt $tmp_limit; then
26892             eval ${tmp_tn}_LIMIT=$tmp_thresh
26893           fi
26894         fi
26895       done
26896     fi
26897
26898     for tmp_fn in $fat_functions; do
26899       # functions that can be provided by multi-function files
26900 tmp_mulfunc=
26901 case $tmp_fn in
26902   add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
26903   add_err1_n|sub_err1_n)
26904                      tmp_mulfunc="aors_err1_n" ;;
26905   add_err2_n|sub_err2_n)
26906                      tmp_mulfunc="aors_err2_n" ;;
26907   add_err3_n|sub_err3_n)
26908                      tmp_mulfunc="aors_err3_n" ;;
26909   addcnd_n|subcnd_n) tmp_mulfunc="aorscnd_n"   ;;
26910   addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
26911   popcount|hamdist)  tmp_mulfunc="popham"    ;;
26912   and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
26913                      tmp_mulfunc="logops_n"  ;;
26914   lshift|rshift)     tmp_mulfunc="lorrshift";;
26915   addlsh1_n)
26916                      tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
26917   sublsh1_n)
26918                      tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
26919   rsblsh1_n)
26920                      tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
26921   addlsh2_n)
26922                      tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
26923   sublsh2_n)
26924                      tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26925   rsblsh2_n)
26926                      tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26927   addlsh_n)
26928                      tmp_mulfunc="aorslsh_n aorrlsh_n";;
26929   sublsh_n)
26930                      tmp_mulfunc="aorslsh_n sorrlsh_n";;
26931   rsblsh_n)
26932                      tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26933   rsh1add_n|rsh1sub_n)
26934                      tmp_mulfunc="rsh1aors_n";;
26935   sb_div_qr_sec|sb_div_r_sec)
26936                      tmp_mulfunc="sb_div_sec";;
26937   sbpi1_div_qr_sec|sbpi1_div_r_sec)
26938                      tmp_mulfunc="sbpi1_div_sec";;
26939 esac
26940
26941
26942       for tmp_base in $tmp_fn $tmp_mulfunc; do
26943         for tmp_ext in asm S s c; do
26944           tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26945           if test -f $tmp_file; then
26946
26947             # If the host uses a non-standard ABI, check if tmp_file supports it
26948             #
26949             if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
26950               abi=`sed -n 's/^[         ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
26951               if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
26952                 true
26953               else
26954                 continue
26955               fi
26956             fi
26957
26958             mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
26959             mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
26960
26961             case $tmp_fn in
26962   dive_1)       tmp_fbase=divexact_1 ;;
26963   diveby3)      tmp_fbase=divexact_by3c ;;
26964   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26965   mode1o)       tmp_fbase=modexact_1c_odd ;;
26966   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
26967   mod_1_1)      tmp_fbase=mod_1_1p ;;
26968   mod_1_1_cps)  tmp_fbase=mod_1_1p_cps ;;
26969   mod_1_2)      tmp_fbase=mod_1s_2p ;;
26970   mod_1_2_cps)  tmp_fbase=mod_1s_2p_cps ;;
26971   mod_1_3)      tmp_fbase=mod_1s_3p ;;
26972   mod_1_3_cps)  tmp_fbase=mod_1s_3p_cps ;;
26973   mod_1_4)      tmp_fbase=mod_1s_4p ;;
26974   mod_1_4_cps)  tmp_fbase=mod_1s_4p_cps ;;
26975   *)            tmp_fbase=$tmp_fn ;;
26976 esac
26977
26978
26979             # carry-in variant, eg. divrem_1c or modexact_1c_odd
26980             case $tmp_fbase in
26981               *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
26982               *)    tmp_fbasec=${tmp_fbase}c ;;
26983             esac
26984
26985             # Create a little file doing an include from srcdir.  The
26986             # OPERATION and renamings aren't all needed all the time, but
26987             # they don't hurt if unused.
26988             #
26989             # FIXME: Should generate these via config.status commands.
26990             # Would need them all in one AC_CONFIG_COMMANDS though, since
26991             # that macro doesn't accept a set of separate commands generated
26992             # by shell code.
26993             #
26994             case $tmp_ext in
26995               asm)
26996                 # hide the d-n-l from autoconf's error checking
26997                 tmp_d_n_l=d""nl
26998                 echo "$tmp_d_n_l  mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
26999 $tmp_d_n_l  Generated by configure - DO NOT EDIT.
27000
27001 define(OPERATION_$tmp_fn)
27002 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
27003 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
27004 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
27005 define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix})
27006
27007 $tmp_d_n_l  For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
27008 ifdef(\`__gmpn_modexact_1_odd',,
27009 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
27010
27011 $THRESH_ASM_SETUP
27012 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
27013 " >mpn/${tmp_prefix}_$tmp_fn.asm
27014                 ;;
27015               c)
27016                 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
27017    Generated by configure - DO NOT EDIT. */
27018
27019 #define OPERATION_$tmp_fn 1
27020 #define __gmpn_$tmp_fbase           __gmpn_${tmp_fbase}_$tmp_suffix
27021 #define __gmpn_$tmp_fbasec          __gmpn_${tmp_fbasec}_${tmp_suffix}
27022 #define __gmpn_preinv_${tmp_fbase}  __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
27023 #define __gmpn_${tmp_fbase}_cps     __gmpn_${tmp_fbase}_cps_${tmp_suffix}
27024
27025 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
27026 " >mpn/${tmp_prefix}_$tmp_fn.c
27027                 ;;
27028             esac
27029
27030             # Prototype, and append to CPUVEC_SETUP for this directory.
27031             echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
27032             CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
27033 "
27034             # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
27035             if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
27036               echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
27037               CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
27038 "
27039             fi
27040
27041             # Ditto for any mod_1...cps variant
27042             if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
27043               echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h
27044               CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\
27045 "
27046             fi
27047           fi
27048         done
27049       done
27050     done
27051
27052     # Emit CPUVEC_SETUP for this directory
27053     echo "" >>fat.h
27054     echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
27055     echo "  do { \\" >>fat.h
27056     echo "$CPUVEC_SETUP  } while (0)" >>fat.h
27057   done
27058
27059   # Emit threshold limits
27060   echo "" >>fat.h
27061   for tmp_tn in $fat_thresholds; do
27062     eval tmp_limit=\$${tmp_tn}_LIMIT
27063     echo "#define ${tmp_tn}_LIMIT  $tmp_limit" >>fat.h
27064   done
27065 fi
27066
27067
27068 # Normal binary setups.
27069 #
27070
27071 for tmp_ext in asm S s c; do
27072   eval found_$tmp_ext=no
27073 done
27074
27075 for tmp_fn in $gmp_mpn_functions; do
27076   for tmp_ext in asm S s c; do
27077     test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
27078   done
27079
27080   # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
27081   # mpn_preinv_mod_1 by mod_1.asm.
27082   case $tmp_fn in
27083   pre_divrem_1)
27084     if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
27085   pre_mod_1)
27086     if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
27087   esac
27088
27089   # functions that can be provided by multi-function files
27090 tmp_mulfunc=
27091 case $tmp_fn in
27092   add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
27093   add_err1_n|sub_err1_n)
27094                      tmp_mulfunc="aors_err1_n" ;;
27095   add_err2_n|sub_err2_n)
27096                      tmp_mulfunc="aors_err2_n" ;;
27097   add_err3_n|sub_err3_n)
27098                      tmp_mulfunc="aors_err3_n" ;;
27099   addcnd_n|subcnd_n) tmp_mulfunc="aorscnd_n"   ;;
27100   addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
27101   popcount|hamdist)  tmp_mulfunc="popham"    ;;
27102   and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
27103                      tmp_mulfunc="logops_n"  ;;
27104   lshift|rshift)     tmp_mulfunc="lorrshift";;
27105   addlsh1_n)
27106                      tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
27107   sublsh1_n)
27108                      tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
27109   rsblsh1_n)
27110                      tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
27111   addlsh2_n)
27112                      tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
27113   sublsh2_n)
27114                      tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
27115   rsblsh2_n)
27116                      tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
27117   addlsh_n)
27118                      tmp_mulfunc="aorslsh_n aorrlsh_n";;
27119   sublsh_n)
27120                      tmp_mulfunc="aorslsh_n sorrlsh_n";;
27121   rsblsh_n)
27122                      tmp_mulfunc="aorrlsh_n sorrlsh_n";;
27123   rsh1add_n|rsh1sub_n)
27124                      tmp_mulfunc="rsh1aors_n";;
27125   sb_div_qr_sec|sb_div_r_sec)
27126                      tmp_mulfunc="sb_div_sec";;
27127   sbpi1_div_qr_sec|sbpi1_div_r_sec)
27128                      tmp_mulfunc="sbpi1_div_sec";;
27129 esac
27130
27131
27132   found=no
27133   for tmp_dir in $path; do
27134     for tmp_base in $tmp_fn $tmp_mulfunc; do
27135       for tmp_ext in asm S s c; do
27136         tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
27137         if test -f $tmp_file; then
27138
27139           # For a nails build, check if the file supports our nail bits.
27140           # Generic code always supports all nails.
27141           #
27142           # FIXME: When a multi-function file is selected to provide one of
27143           # the nails-neutral routines, like logops_n for and_n, the
27144           # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
27145           # all functions in that file, even if they haven't all been
27146           # nailified.  Not sure what to do about this, it's only really a
27147           # problem for logops_n, and it's not too terrible to insist those
27148           # get nailified always.
27149           #
27150           if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
27151             case $tmp_fn in
27152               and_n | ior_n | xor_n | andn_n | \
27153               copyi | copyd | \
27154               popcount | hamdist | \
27155               udiv | udiv_w_sdiv | umul | \
27156               cntlz | invert_limb)
27157                 # these operations are either unaffected by nails or defined
27158                 # to operate on full limbs
27159                 ;;
27160               *)
27161                 nails=`sed -n 's/^[     ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
27162                 for n in $nails; do
27163                   case $n in
27164                   *-*)
27165                     n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
27166                     n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
27167                     ;;
27168                   *)
27169                     n_start=$n
27170                     n_end=$n
27171                     ;;
27172                   esac
27173                   if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
27174                     found=yes
27175                     break
27176                   fi
27177                 done
27178                 if test $found != yes; then
27179                   continue
27180                 fi
27181                 ;;
27182             esac
27183           fi
27184
27185           # If the host uses a non-standard ABI, check if tmp_file supports it
27186           #
27187           if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
27188             abi=`sed -n 's/^[   ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
27189             if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
27190               true
27191             else
27192               continue
27193             fi
27194           fi
27195
27196           found=yes
27197           eval found_$tmp_ext=yes
27198
27199           if test $tmp_ext = c; then
27200             tmp_u='$U'
27201           else
27202             tmp_u=
27203           fi
27204
27205           mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
27206           mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
27207           ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
27208
27209           gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
27210
27211           # Duplicate AC_DEFINEs are harmless, so it doesn't matter
27212           # that multi-function files get grepped here repeatedly.
27213           # The PROLOGUE pattern excludes the optional second parameter.
27214           gmp_ep=`
27215             sed -n 's/^[        ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
27216             sed -n 's/^[        ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
27217           `
27218           for gmp_tmp in $gmp_ep; do
27219             cat >>confdefs.h <<_ACEOF
27220 #define HAVE_NATIVE_$gmp_tmp 1
27221 _ACEOF
27222
27223             eval HAVE_NATIVE_$gmp_tmp=yes
27224           done
27225
27226           case $tmp_fn in
27227           sqr_basecase) sqr_basecase_source=$tmp_file ;;
27228           esac
27229
27230           break
27231         fi
27232       done
27233       if test $found = yes; then break ; fi
27234     done
27235     if test $found = yes; then break ; fi
27236   done
27237
27238   if test $found = no; then
27239     for tmp_optional in $gmp_mpn_functions_optional; do
27240       if test $tmp_optional = $tmp_fn; then
27241         found=yes
27242       fi
27243     done
27244     if test $found = no; then
27245       as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5
27246     fi
27247   fi
27248 done
27249
27250 # All cycle counters are .asm files currently
27251 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
27252   found_asm=yes
27253 fi
27254
27255
27256
27257
27258
27259 # Don't demand an m4 unless it's actually needed.
27260 if test $found_asm = yes; then
27261
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
27263 $as_echo_n "checking for suitable m4... " >&6; }
27264 if ${gmp_cv_prog_m4+:} false; then :
27265   $as_echo_n "(cached) " >&6
27266 else
27267   if test -n "$M4"; then
27268   gmp_cv_prog_m4="$M4"
27269 else
27270   cat >conftest.m4 <<\EOF
27271 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
27272 ``bad: $# not supported (SunOS /usr/bin/m4)
27273 '')ifelse(eval(89),89,`define(t2,Y)',
27274 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
27275 ')ifelse(t1`'t2,YY,`good
27276 ')
27277 EOF
27278   echo "trying m4" >&5
27279   gmp_tmp_val=`(m4 conftest.m4) 2>&5`
27280   echo "$gmp_tmp_val" >&5
27281   if test "$gmp_tmp_val" = good; then
27282     gmp_cv_prog_m4="m4"
27283   else
27284     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
27285     ac_dummy="$PATH:/usr/5bin"
27286     for ac_dir in $ac_dummy; do
27287       test -z "$ac_dir" && ac_dir=.
27288       echo "trying $ac_dir/m4" >&5
27289       gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
27290       echo "$gmp_tmp_val" >&5
27291       if test "$gmp_tmp_val" = good; then
27292         gmp_cv_prog_m4="$ac_dir/m4"
27293         break
27294       fi
27295     done
27296     IFS="$ac_save_ifs"
27297     if test -z "$gmp_cv_prog_m4"; then
27298       as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
27299     fi
27300   fi
27301   rm -f conftest.m4
27302 fi
27303 fi
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
27305 $as_echo "$gmp_cv_prog_m4" >&6; }
27306 M4="$gmp_cv_prog_m4"
27307
27308
27309
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
27311 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
27312 if ${gmp_cv_m4_m4wrap_spurious+:} false; then :
27313   $as_echo_n "(cached) " >&6
27314 else
27315   # hide the d-n-l from autoconf's error checking
27316 tmp_d_n_l=d""nl
27317 cat >conftest.m4 <<EOF
27318 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
27319 EOF
27320 echo test input is >&5
27321 cat conftest.m4 >&5
27322 tmp_chars=`$M4 conftest.m4 | wc -c`
27323 echo produces $tmp_chars chars output >&5
27324 rm -f conftest.m4
27325 if test $tmp_chars = 0; then
27326   gmp_cv_m4_m4wrap_spurious=no
27327 else
27328   gmp_cv_m4_m4wrap_spurious=yes
27329 fi
27330
27331 fi
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
27333 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
27334
27335 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
27336
27337
27338 # else
27339 # It's unclear why this m4-not-needed stuff was ever done.
27340 #  if test -z "$M4" ; then
27341 #    M4=m4-not-needed
27342 #  fi
27343 fi
27344
27345 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
27346 if test $found_asm = no && test $found_S = no; then
27347   gmp_asm_syntax_testing=no
27348 fi
27349
27350 if test "$gmp_asm_syntax_testing" != no; then
27351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
27352 $as_echo_n "checking how to switch to text section... " >&6; }
27353 if ${gmp_cv_asm_text+:} false; then :
27354   $as_echo_n "(cached) " >&6
27355 else
27356   for i in ".text" ".code" ".csect .text[PR]"; do
27357   echo "trying $i" >&5
27358   cat >conftest.s <<EOF
27359         $i
27360 EOF
27361 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27363   (eval $gmp_assemble) 2>&5
27364   ac_status=$?
27365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366   test $ac_status = 0; }; then
27367   cat conftest.out >&5
27368   gmp_cv_asm_text=$i
27369      rm -f conftest*
27370      break
27371 else
27372   cat conftest.out >&5
27373   echo "configure: failed program was:" >&5
27374   cat conftest.s >&5
27375   :
27376 fi
27377 rm -f conftest*
27378
27379 done
27380 if test -z "$gmp_cv_asm_text"; then
27381   as_fn_error $? "Cannot determine text section directive" "$LINENO" 5
27382 fi
27383
27384 fi
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
27386 $as_echo "$gmp_cv_asm_text" >&6; }
27387 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
27388
27389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
27390 $as_echo_n "checking how to switch to data section... " >&6; }
27391 if ${gmp_cv_asm_data+:} false; then :
27392   $as_echo_n "(cached) " >&6
27393 else
27394   case $host in
27395   *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
27396   *)        gmp_cv_asm_data=".data" ;;
27397 esac
27398
27399 fi
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
27401 $as_echo "$gmp_cv_asm_data" >&6; }
27402 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
27403
27404
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
27406 $as_echo_n "checking for assembler label suffix... " >&6; }
27407 if ${gmp_cv_asm_label_suffix+:} false; then :
27408   $as_echo_n "(cached) " >&6
27409 else
27410   gmp_cv_asm_label_suffix=unknown
27411 for i in "" ":"; do
27412   echo "trying $i" >&5
27413   cat >conftest.s <<EOF
27414         $gmp_cv_asm_text
27415 somelabel$i
27416 EOF
27417 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27419   (eval $gmp_assemble) 2>&5
27420   ac_status=$?
27421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422   test $ac_status = 0; }; then
27423   cat conftest.out >&5
27424   gmp_cv_asm_label_suffix=$i
27425      rm -f conftest*
27426      break
27427 else
27428   cat conftest.out >&5
27429   echo "configure: failed program was:" >&5
27430   cat conftest.s >&5
27431   cat conftest.out >&5
27432 fi
27433 rm -f conftest*
27434
27435 done
27436 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
27437   as_fn_error $? "Cannot determine label suffix" "$LINENO" 5
27438 fi
27439
27440 fi
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
27442 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
27443 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
27444
27445
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
27447 $as_echo_n "checking for assembler global directive... " >&6; }
27448 if ${gmp_cv_asm_globl+:} false; then :
27449   $as_echo_n "(cached) " >&6
27450 else
27451   case $host in
27452   hppa*-*-*)     gmp_cv_asm_globl=.export ;;
27453   ia64*-*-* | itanium-*-* | itanium2-*-*)  gmp_cv_asm_globl=.global ;;
27454   *)             gmp_cv_asm_globl=.globl  ;;
27455 esac
27456
27457 fi
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
27459 $as_echo "$gmp_cv_asm_globl" >&6; }
27460 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
27461
27462
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
27464 $as_echo_n "checking for assembler global directive attribute... " >&6; }
27465 if ${gmp_cv_asm_globl_attr+:} false; then :
27466   $as_echo_n "(cached) " >&6
27467 else
27468   case $gmp_cv_asm_globl in
27469   .export) gmp_cv_asm_globl_attr=",entry" ;;
27470   *)       gmp_cv_asm_globl_attr="" ;;
27471 esac
27472
27473 fi
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
27475 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
27476 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
27477
27478
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
27480 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
27481 if ${gmp_cv_asm_underscore+:} false; then :
27482   $as_echo_n "(cached) " >&6
27483 else
27484   gmp_cv_asm_underscore="unknown"
27485 cat >conftest.c <<EOF
27486 int gurkmacka;
27487 EOF
27488 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
27489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27490   (eval $gmp_compile) 2>&5
27491   ac_status=$?
27492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27493   test $ac_status = 0; }; then
27494   $NM conftest.$OBJEXT >conftest.out
27495   if grep _gurkmacka conftest.out >/dev/null; then
27496     gmp_cv_asm_underscore=yes
27497   elif grep gurkmacka conftest.out >/dev/null; then
27498     gmp_cv_asm_underscore=no
27499   else
27500     echo "configure: $NM doesn't have gurkmacka:" >&5
27501     cat conftest.out >&5
27502   fi
27503 else
27504   echo "configure: failed program was:" >&5
27505   cat conftest.c >&5
27506 fi
27507 rm -f conftest*
27508
27509 fi
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
27511 $as_echo "$gmp_cv_asm_underscore" >&6; }
27512 case $gmp_cv_asm_underscore in
27513   yes)
27514
27515 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27516  ;;
27517   no)
27518
27519 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27520  ;;
27521   *)
27522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27523 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
27525 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
27526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
27527 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
27528     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
27529 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
27530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
27531 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
27532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
27533 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
27534     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
27535 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
27536     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&5
27537 $as_echo "$as_me: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&2;}
27538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27539 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27540
27541 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27542
27543     ;;
27544 esac
27545
27546
27547
27548
27549
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
27551 $as_echo_n "checking how to switch to read-only data section... " >&6; }
27552 if ${gmp_cv_asm_rodata+:} false; then :
27553   $as_echo_n "(cached) " >&6
27554 else
27555
27556 case $host in
27557 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
27558   gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
27559 *)
27560   gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
27561 esac
27562
27563 cat >conftest.c <<EOF
27564 extern const int foo[];         /* Suppresses C++'s suppression of foo */
27565 const int foo[] = {1,2,3};
27566 EOF
27567 echo "Test program:" >&5
27568 cat conftest.c >&5
27569 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27571   (eval $gmp_compile) 2>&5
27572   ac_status=$?
27573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574   test $ac_status = 0; }; then
27575   echo "Compiler output:" >&5
27576   cat conftest.s >&5
27577   if test $gmp_cv_asm_underscore = yes; then
27578     tmp_gsym_prefix=_
27579   else
27580     tmp_gsym_prefix=
27581   fi
27582   # must see our label
27583   if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
27584     # take the last directive before our label (hence skipping segments
27585     # getting debugging info etc)
27586     tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
27587                         /^[.    ]*data/p
27588                         /^[.    ]*rdata/p
27589                         /^[.    ]*text/p
27590                         /^[.    ]*section/p
27591                         /^[.    ]*csect/p
27592                         /^[.    ]*CSECT/p" conftest.s | sed -n '$p'`
27593     echo "Match: $tmp_match" >&5
27594     if test -n "$tmp_match"; then
27595       gmp_cv_asm_rodata=$tmp_match
27596     fi
27597   else
27598     echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
27599   fi
27600 fi
27601 rm -f conftest*
27602
27603 fi
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
27605 $as_echo "$gmp_cv_asm_rodata" >&6; }
27606 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
27607
27608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
27609 $as_echo_n "checking for assembler .type directive... " >&6; }
27610 if ${gmp_cv_asm_type+:} false; then :
27611   $as_echo_n "(cached) " >&6
27612 else
27613   gmp_cv_asm_type=
27614 for gmp_tmp_prefix in @ \# %; do
27615   cat >conftest.s <<EOF
27616         .type   sym,${gmp_tmp_prefix}function
27617 EOF
27618 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27620   (eval $gmp_assemble) 2>&5
27621   ac_status=$?
27622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623   test $ac_status = 0; }; then
27624   cat conftest.out >&5
27625   if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27626     else
27627       gmp_cv_asm_type=".type    \$1,${gmp_tmp_prefix}\$2"
27628       break
27629     fi
27630 else
27631   cat conftest.out >&5
27632   echo "configure: failed program was:" >&5
27633   cat conftest.s >&5
27634   :
27635 fi
27636 rm -f conftest*
27637
27638 done
27639 rm -f conftest*
27640
27641 fi
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
27643 $as_echo "$gmp_cv_asm_type" >&6; }
27644 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
27645
27646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
27647 $as_echo_n "checking for assembler .size directive... " >&6; }
27648 if ${gmp_cv_asm_size+:} false; then :
27649   $as_echo_n "(cached) " >&6
27650 else
27651   gmp_cv_asm_size=
27652 cat >conftest.s <<EOF
27653         .size   sym,1
27654 EOF
27655 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27657   (eval $gmp_assemble) 2>&5
27658   ac_status=$?
27659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27660   test $ac_status = 0; }; then
27661   cat conftest.out >&5
27662   if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27663   else
27664     gmp_cv_asm_size=".size      \$1,\$2"
27665   fi
27666 else
27667   cat conftest.out >&5
27668   echo "configure: failed program was:" >&5
27669   cat conftest.s >&5
27670   :
27671 fi
27672 rm -f conftest*
27673
27674
27675 fi
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
27677 $as_echo "$gmp_cv_asm_size" >&6; }
27678 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
27679
27680
27681
27682
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
27684 $as_echo_n "checking for assembler local label prefix... " >&6; }
27685 if ${gmp_cv_asm_lsym_prefix+:} false; then :
27686   $as_echo_n "(cached) " >&6
27687 else
27688   gmp_tmp_pre_appears=yes
27689 for gmp_tmp_pre in L .L $L $ L$; do
27690   echo "Trying $gmp_tmp_pre" >&5
27691   cat >conftest.s <<EOF
27692         $gmp_cv_asm_text
27693 dummy${gmp_cv_asm_label_suffix}
27694 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
27695 EOF
27696 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27698   (eval $gmp_assemble) 2>&5
27699   ac_status=$?
27700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27701   test $ac_status = 0; }; then
27702   cat conftest.out >&5
27703   if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
27704     cat conftest.nm >&5
27705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
27706 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
27707     break
27708   fi
27709   cat conftest.nm >&5
27710   if grep gurkmacka conftest.nm >/dev/null; then : ; else
27711     # no mention of the symbol, this is good
27712     echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
27713     gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27714     gmp_tmp_pre_appears=no
27715     break
27716   fi
27717   if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
27718     # symbol mentioned as a local, use this if nothing better
27719     echo "$gmp_tmp_pre label is local but still in object file" >&5
27720     if test -z "$gmp_cv_asm_lsym_prefix"; then
27721       gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27722     fi
27723   else
27724     echo "$gmp_tmp_pre label is something unknown" >&5
27725   fi
27726
27727 else
27728   cat conftest.out >&5
27729   echo "configure: failed program was:" >&5
27730   cat conftest.s >&5
27731   :
27732 fi
27733 rm -f conftest*
27734
27735 done
27736 rm -f conftest*
27737 if test -z "$gmp_cv_asm_lsym_prefix"; then
27738   gmp_cv_asm_lsym_prefix=L
27739   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
27740 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
27741 fi
27742 # for development purposes, note whether we got a purely temporary local label
27743 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
27744
27745 fi
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
27747 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
27748 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
27749
27750 cat >>confdefs.h <<_ACEOF
27751 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
27752 _ACEOF
27753
27754
27755
27756
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
27758 $as_echo_n "checking for assembler byte directive... " >&6; }
27759 if ${gmp_cv_asm_byte+:} false; then :
27760   $as_echo_n "(cached) " >&6
27761 else
27762   for i in .byte data1; do
27763   echo "trying $i" >&5
27764   cat >conftest.s <<EOF
27765         $gmp_cv_asm_data
27766         $i      0
27767
27768 EOF
27769 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27771   (eval $gmp_assemble) 2>&5
27772   ac_status=$?
27773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774   test $ac_status = 0; }; then
27775   cat conftest.out >&5
27776   gmp_cv_asm_byte=$i
27777      rm -f conftest*
27778      break
27779 else
27780   cat conftest.out >&5
27781   echo "configure: failed program was:" >&5
27782   cat conftest.s >&5
27783   cat conftest.out >&5
27784 fi
27785 rm -f conftest*
27786
27787 done
27788 if test -z "$gmp_cv_asm_byte"; then
27789   as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5
27790 fi
27791
27792 fi
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
27794 $as_echo "$gmp_cv_asm_byte" >&6; }
27795
27796
27797
27798
27799
27800
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
27802 $as_echo_n "checking how to define a 32-bit word... " >&6; }
27803 if ${gmp_cv_asm_w32+:} false; then :
27804   $as_echo_n "(cached) " >&6
27805 else
27806   case $host in
27807   *-*-hpux*)
27808     # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
27809     # that it's at 0x0.  We'll have to declare another symbol before the
27810     # .long/.word and look at the distance between the two symbols.  The
27811     # only problem is that the sed expression(s) barfs (on Solaris, for
27812     # example) for the symbol with value 0.  For now, HPUX uses .word.
27813     gmp_cv_asm_w32=".word"
27814     ;;
27815   *-*-*)
27816     gmp_tmp_val=
27817     for gmp_tmp_op in .long .word data4; do
27818       cat >conftest.s <<EOF
27819         $gmp_cv_asm_data
27820         $gmp_cv_asm_globl       foo
27821         $gmp_tmp_op     0
27822 foo$gmp_cv_asm_label_suffix
27823         $gmp_cv_asm_byte        0
27824 EOF
27825 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27827   (eval $gmp_assemble) 2>&5
27828   ac_status=$?
27829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27830   test $ac_status = 0; }; then
27831   cat conftest.out >&5
27832   gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27833           sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27834         if test "$gmp_tmp_val" = 4; then
27835           gmp_cv_asm_w32="$gmp_tmp_op"
27836           break
27837         fi
27838 else
27839   cat conftest.out >&5
27840   echo "configure: failed program was:" >&5
27841   cat conftest.s >&5
27842   :
27843 fi
27844 rm -f conftest*
27845
27846     done
27847     rm -f conftest*
27848     ;;
27849 esac
27850 if test -z "$gmp_cv_asm_w32"; then
27851   as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5
27852 fi
27853
27854 fi
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
27856 $as_echo "$gmp_cv_asm_w32" >&6; }
27857 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
27858
27859
27860
27861
27862
27863
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
27865 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
27866 if ${gmp_cv_asm_align_log+:} false; then :
27867   $as_echo_n "(cached) " >&6
27868 else
27869   cat >conftest.s <<EOF
27870         $gmp_cv_asm_data
27871         .align  4
27872         $gmp_cv_asm_globl       foo
27873         $gmp_cv_asm_byte        1
27874         .align  4
27875 foo$gmp_cv_asm_label_suffix
27876         $gmp_cv_asm_byte        2
27877 EOF
27878 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27880   (eval $gmp_assemble) 2>&5
27881   ac_status=$?
27882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27883   test $ac_status = 0; }; then
27884   cat conftest.out >&5
27885   gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27886      sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27887   if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
27888     gmp_cv_asm_align_log=yes
27889   else
27890     gmp_cv_asm_align_log=no
27891   fi
27892 else
27893   cat conftest.out >&5
27894   echo "configure: failed program was:" >&5
27895   cat conftest.s >&5
27896   as_fn_error $? "cannot assemble alignment test" "$LINENO" 5
27897 fi
27898 rm -f conftest*
27899
27900 fi
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
27902 $as_echo "$gmp_cv_asm_align_log" >&6; }
27903
27904
27905 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
27906
27907
27908
27909   case $host in
27910     hppa*-*-*)
27911       # for both pa32 and pa64
27912
27913 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
27914
27915       ;;
27916     ia64*-*-* | itanium-*-* | itanium2-*-*)
27917       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
27918 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
27919 if ${gmp_cv_asm_ia64_align_ok+:} false; then :
27920   $as_echo_n "(cached) " >&6
27921 else
27922   cat >conftest.awk <<\EOF
27923 BEGIN {
27924   want[0]  = "011"
27925   want[1]  = "160"
27926   want[2]  = "074"
27927   want[3]  = "040"
27928   want[4]  = "000"
27929   want[5]  = "040"
27930   want[6]  = "020"
27931   want[7]  = "221"
27932   want[8]  = "114"
27933   want[9]  = "000"
27934   want[10] = "100"
27935   want[11] = "200"
27936   want[12] = "122"
27937   want[13] = "261"
27938   want[14] = "000"
27939   want[15] = "200"
27940
27941   want[16] = "000"
27942   want[17] = "004"
27943   want[18] = "000"
27944   want[19] = "000"
27945   want[20] = "000"
27946   want[21] = "000"
27947   want[22] = "002"
27948   want[23] = "000"
27949   want[24] = "000"
27950   want[25] = "000"
27951   want[26] = "000"
27952   want[27] = "001"
27953   want[28] = "000"
27954   want[29] = "000"
27955   want[30] = "000"
27956   want[31] = "014"
27957
27958   want[32] = "011"
27959   want[33] = "270"
27960   want[34] = "140"
27961   want[35] = "062"
27962   want[36] = "000"
27963   want[37] = "040"
27964   want[38] = "240"
27965   want[39] = "331"
27966   want[40] = "160"
27967   want[41] = "000"
27968   want[42] = "100"
27969   want[43] = "240"
27970   want[44] = "343"
27971   want[45] = "371"
27972   want[46] = "000"
27973   want[47] = "200"
27974
27975   result = "yes"
27976 }
27977 {
27978   for (f = 2; f <= NF; f++)
27979     {
27980       for (i = 0; i < 47; i++)
27981         got[i] = got[i+1];
27982       got[47] = $f;
27983
27984       found = 1
27985       for (i = 0; i < 48; i++)
27986         if (got[i] != want[i])
27987           {
27988             found = 0
27989             break
27990           }
27991       if (found)
27992         {
27993           result = "no"
27994           exit
27995         }
27996     }
27997 }
27998 END {
27999   print result
28000 }
28001 EOF
28002 cat >conftest.s <<EOF
28003         .text
28004         .align  32
28005 { .mmi; add     r14 = r15, r16
28006         add     r17 = r18, r19
28007         add     r20 = r21, r22 ;; }
28008         .align  32
28009 { .mmi; add     r23 = r24, r25
28010         add     r26 = r27, r28
28011         add     r29 = r30, r31 ;; }
28012
28013 EOF
28014 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28016   (eval $gmp_assemble) 2>&5
28017   ac_status=$?
28018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28019   test $ac_status = 0; }; then
28020   cat conftest.out >&5
28021   gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
28022 else
28023   cat conftest.out >&5
28024   echo "configure: failed program was:" >&5
28025   cat conftest.s >&5
28026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
28027 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
28028    gmp_cv_asm_ia64_align_ok=yes
28029 fi
28030 rm -f conftest*
28031
28032
28033 fi
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
28035 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
28036
28037 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
28038
28039
28040       ;;
28041     m68k-*-* | m68[0-9][0-9][0-9]-*-*)
28042
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
28044 $as_echo_n "checking assembler instruction and register style... " >&6; }
28045 if ${gmp_cv_asm_m68k_instruction+:} false; then :
28046   $as_echo_n "(cached) " >&6
28047 else
28048   for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
28049   cat >conftest.s <<EOF
28050         $gmp_cv_asm_text
28051         $i
28052 EOF
28053 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28055   (eval $gmp_assemble) 2>&5
28056   ac_status=$?
28057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058   test $ac_status = 0; }; then
28059   cat conftest.out >&5
28060   gmp_cv_asm_m68k_instruction=$i
28061     rm -f conftest*
28062     break
28063 else
28064   cat conftest.out >&5
28065   echo "configure: failed program was:" >&5
28066   cat conftest.s >&5
28067   :
28068 fi
28069 rm -f conftest*
28070
28071 done
28072 if test -z "$gmp_cv_asm_m68k_instruction"; then
28073   as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5
28074 fi
28075
28076 fi
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
28078 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
28079 case $gmp_cv_asm_m68k_instruction in
28080 "addl d0,d1")    want_dot_size=no;  want_register_percent=no  ;;
28081 "addl %d0,%d1")  want_dot_size=no;  want_register_percent=yes ;;
28082 "add.l d0,d1")   want_dot_size=yes; want_register_percent=no  ;;
28083 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
28084 *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
28085 esac
28086
28087 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
28088
28089
28090 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
28091
28092
28093
28094
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
28096 $as_echo_n "checking assembler addressing style... " >&6; }
28097 if ${gmp_cv_asm_m68k_addressing+:} false; then :
28098   $as_echo_n "(cached) " >&6
28099 else
28100   case $gmp_cv_asm_m68k_instruction in
28101 addl*)  movel=movel ;;
28102 add.l*) movel=move.l ;;
28103 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
28104 esac
28105 case $gmp_cv_asm_m68k_instruction in
28106 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
28107 *"d0,d1")   dreg=d0;  areg=a0  ;;
28108 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
28109 esac
28110 cat >conftest.s <<EOF
28111         $gmp_cv_asm_text
28112         $movel  $dreg, $areg@-
28113 EOF
28114 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28116   (eval $gmp_assemble) 2>&5
28117   ac_status=$?
28118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28119   test $ac_status = 0; }; then
28120   cat conftest.out >&5
28121   gmp_cv_asm_m68k_addressing=mit
28122 else
28123   cat conftest.out >&5
28124   echo "configure: failed program was:" >&5
28125   cat conftest.s >&5
28126   cat >conftest.s <<EOF
28127         $gmp_cv_asm_text
28128         $movel  $dreg, -($areg)
28129 EOF
28130 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28132   (eval $gmp_assemble) 2>&5
28133   ac_status=$?
28134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28135   test $ac_status = 0; }; then
28136   cat conftest.out >&5
28137   gmp_cv_asm_m68k_addressing=motorola
28138 else
28139   cat conftest.out >&5
28140   echo "configure: failed program was:" >&5
28141   cat conftest.s >&5
28142   as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5
28143 fi
28144 rm -f conftest*
28145
28146 fi
28147 rm -f conftest*
28148
28149
28150 fi
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
28152 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
28153
28154 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
28155
28156
28157
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
28159 $as_echo_n "checking assembler shortest branches... " >&6; }
28160 if ${gmp_cv_asm_m68k_branches+:} false; then :
28161   $as_echo_n "(cached) " >&6
28162 else
28163   for i in jra jbra bra; do
28164   cat >conftest.s <<EOF
28165         $gmp_cv_asm_text
28166 foo$gmp_cv_asm_label_suffix
28167         $i      foo
28168 EOF
28169 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28171   (eval $gmp_assemble) 2>&5
28172   ac_status=$?
28173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28174   test $ac_status = 0; }; then
28175   cat conftest.out >&5
28176   gmp_cv_asm_m68k_branches=$i
28177   rm -f conftest*
28178   break
28179 else
28180   cat conftest.out >&5
28181   echo "configure: failed program was:" >&5
28182   cat conftest.s >&5
28183   :
28184 fi
28185 rm -f conftest*
28186
28187 done
28188 if test -z "$gmp_cv_asm_m68k_branches"; then
28189   as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5
28190 fi
28191
28192 fi
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
28194 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
28195
28196 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
28197
28198
28199       ;;
28200     powerpc*-*-* | power[3-9]-*-*)
28201
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
28203 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
28204 if ${gmp_cv_asm_powerpc_pic+:} false; then :
28205   $as_echo_n "(cached) " >&6
28206 else
28207   gmp_cv_asm_powerpc_pic=yes
28208 cat >conftest.c <<EOF
28209 int foo;
28210 int *bar() { return &foo; }
28211 EOF
28212 echo "Test program:" >&5
28213 cat conftest.c >&5
28214 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
28215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28216   (eval $gmp_compile) 2>&5
28217   ac_status=$?
28218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28219   test $ac_status = 0; }; then
28220   echo "Compiler output:" >&5
28221   cat conftest.s >&5
28222   if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
28223     gmp_cv_asm_powerpc_pic=no
28224   fi
28225   if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
28226     gmp_cv_asm_powerpc_pic=no
28227   fi
28228 fi
28229 rm -f conftest*
28230
28231 fi
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
28233 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
28234
28235 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
28236
28237
28238
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
28240 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
28241 if ${gmp_cv_asm_powerpc_r_registers+:} false; then :
28242   $as_echo_n "(cached) " >&6
28243 else
28244   cat >conftest.s <<EOF
28245         $gmp_cv_asm_text
28246         mtctr   6
28247 EOF
28248 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28250   (eval $gmp_assemble) 2>&5
28251   ac_status=$?
28252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28253   test $ac_status = 0; }; then
28254   cat conftest.out >&5
28255   gmp_cv_asm_powerpc_r_registers=no
28256 else
28257   cat conftest.out >&5
28258   echo "configure: failed program was:" >&5
28259   cat conftest.s >&5
28260   cat >conftest.s <<EOF
28261         $gmp_cv_asm_text
28262         mtctr   r6
28263 EOF
28264 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28266   (eval $gmp_assemble) 2>&5
28267   ac_status=$?
28268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28269   test $ac_status = 0; }; then
28270   cat conftest.out >&5
28271   gmp_cv_asm_powerpc_r_registers=yes
28272 else
28273   cat conftest.out >&5
28274   echo "configure: failed program was:" >&5
28275   cat conftest.s >&5
28276   as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
28277 fi
28278 rm -f conftest*
28279
28280 fi
28281 rm -f conftest*
28282
28283 fi
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
28285 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
28286
28287
28288 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
28289
28290
28291
28292 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
28293
28294       case $host in
28295         *-*-aix*)
28296           case $ABI in
28297             mode64)
28298 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
28299  ;;
28300             *)
28301 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28302  ;;
28303           esac
28304           ;;
28305         *-*-linux* | *-*-*bsd*)
28306           case $ABI in
28307             mode64)
28308 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
28309  ;;
28310             mode32 | 32)
28311 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
28312  ;;
28313           esac
28314           ;;
28315         *-*-darwin*)
28316           case $ABI in
28317             mode64)
28318 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
28319  ;;
28320             mode32 | 32)
28321 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
28322  ;;
28323           esac
28324           ;;
28325         *)
28326           # Assume unrecognized operating system is the powerpc eABI
28327
28328 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
28329
28330           ;;
28331       esac
28332       ;;
28333     power*-*-aix*)
28334
28335 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28336
28337       ;;
28338     *sparc*-*-*)
28339       case $ABI in
28340         64)
28341
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
28343 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
28344 if ${gmp_cv_asm_sparc_register+:} false; then :
28345   $as_echo_n "(cached) " >&6
28346 else
28347   cat >conftest.s <<EOF
28348         $gmp_cv_asm_text
28349         .register       %g2,#scratch
28350
28351 EOF
28352 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28354   (eval $gmp_assemble) 2>&5
28355   ac_status=$?
28356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28357   test $ac_status = 0; }; then
28358   cat conftest.out >&5
28359   gmp_cv_asm_sparc_register=yes
28360 else
28361   cat conftest.out >&5
28362   echo "configure: failed program was:" >&5
28363   cat conftest.s >&5
28364   gmp_cv_asm_sparc_register=no
28365 fi
28366 rm -f conftest*
28367
28368 fi
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
28370 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
28371
28372
28373 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
28374
28375
28376           ;;
28377       esac
28378       ;;
28379     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
28380
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
28382 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
28383 if ${gmp_cv_asm_align_fill_0x90+:} false; then :
28384   $as_echo_n "(cached) " >&6
28385 else
28386   cat >conftest.s <<EOF
28387         $gmp_cv_asm_text
28388         .align  4, 0x90
28389         .byte   0
28390         .align  4, 0x90
28391 EOF
28392 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28394   (eval $gmp_assemble) 2>&5
28395   ac_status=$?
28396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28397   test $ac_status = 0; }; then
28398   cat conftest.out >&5
28399   if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
28400   echo "Supressing this warning by omitting 0x90" 1>&5
28401   gmp_cv_asm_align_fill_0x90=no
28402 else
28403   gmp_cv_asm_align_fill_0x90=yes
28404 fi
28405 else
28406   cat conftest.out >&5
28407   echo "configure: failed program was:" >&5
28408   cat conftest.s >&5
28409   gmp_cv_asm_align_fill_0x90=no
28410 fi
28411 rm -f conftest*
28412
28413 fi
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
28415 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
28416
28417
28418 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
28419
28420
28421       case $ABI in
28422         32)
28423
28424 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
28425
28426           $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
28427
28428
28429
28430
28431
28432
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
28434 $as_echo_n "checking for assembler COFF type directives... " >&6; }
28435 if ${gmp_cv_asm_x86_coff_type+:} false; then :
28436   $as_echo_n "(cached) " >&6
28437 else
28438   cat >conftest.s <<EOF
28439         $gmp_cv_asm_text
28440         $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
28441         .def    ${tmp_gsym_prefix}foo
28442         .scl    2
28443         .type   32
28444         .endef
28445 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
28446
28447 EOF
28448 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28450   (eval $gmp_assemble) 2>&5
28451   ac_status=$?
28452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453   test $ac_status = 0; }; then
28454   cat conftest.out >&5
28455   gmp_cv_asm_x86_coff_type=yes
28456 else
28457   cat conftest.out >&5
28458   echo "configure: failed program was:" >&5
28459   cat conftest.s >&5
28460   gmp_cv_asm_x86_coff_type=no
28461 fi
28462 rm -f conftest*
28463
28464
28465 fi
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
28467 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
28468 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
28469
28470
28471
28472
28473
28474
28475
28476
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
28478 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
28479 if ${gmp_cv_asm_x86_got_underscore+:} false; then :
28480   $as_echo_n "(cached) " >&6
28481 else
28482   gmp_cv_asm_x86_got_underscore="not applicable"
28483 if test $gmp_cv_asm_underscore = yes; then
28484   tmp_gsym_prefix=_
28485 else
28486   tmp_gsym_prefix=
28487 fi
28488 for tmp_underscore in "" "_"; do
28489   cat >conftest.s <<EOF
28490         $gmp_cv_asm_text
28491         $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
28492 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
28493         addl    $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
28494 EOF
28495   gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
28496   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28497   (eval $gmp_compile) 2>&5
28498   ac_status=$?
28499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28500   test $ac_status = 0; }; then
28501     if test "$tmp_underscore" = "_"; then
28502       gmp_cv_asm_x86_got_underscore=yes
28503     else
28504       gmp_cv_asm_x86_got_underscore=no
28505     fi
28506     break
28507   fi
28508 done
28509 rm -f conftest* a.out b.out a.exe a_out.exe
28510
28511 fi
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
28513 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
28514 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
28515
28516 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
28517
28518 else
28519
28520 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
28521
28522 fi
28523
28524
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
28526 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
28527 if ${gmp_cv_asm_x86_shldl_cl+:} false; then :
28528   $as_echo_n "(cached) " >&6
28529 else
28530   cat >conftest.s <<EOF
28531         $gmp_cv_asm_text
28532         shldl   %cl, %eax, %ebx
28533 EOF
28534 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28536   (eval $gmp_assemble) 2>&5
28537   ac_status=$?
28538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28539   test $ac_status = 0; }; then
28540   cat conftest.out >&5
28541   gmp_cv_asm_x86_shldl_cl=yes
28542 else
28543   cat conftest.out >&5
28544   echo "configure: failed program was:" >&5
28545   cat conftest.s >&5
28546   gmp_cv_asm_x86_shldl_cl=no
28547 fi
28548 rm -f conftest*
28549
28550
28551 fi
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
28553 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
28554 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
28555
28556 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
28557
28558 else
28559
28560 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
28561
28562 fi
28563
28564           case $enable_profiling in
28565             prof | gprof)  # Check whether --enable-shared was given.
28566 if test "${enable_shared+set}" = set; then :
28567   enableval=$enable_shared; p=${PACKAGE-default}
28568     case $enableval in
28569     yes) enable_shared=yes ;;
28570     no) enable_shared=no ;;
28571     *)
28572       enable_shared=no
28573       # Look at the argument we got.  We use all the common list separators.
28574       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
28575       for pkg in $enableval; do
28576         IFS="$lt_save_ifs"
28577         if test "X$pkg" = "X$p"; then
28578           enable_shared=yes
28579         fi
28580       done
28581       IFS="$lt_save_ifs"
28582       ;;
28583     esac
28584 else
28585   enable_shared=yes
28586 fi
28587
28588
28589
28590
28591
28592
28593
28594
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
28596 $as_echo_n "checking how to call x86 mcount... " >&6; }
28597 cat >conftest.c <<EOF
28598 foo(){bar();}
28599 EOF
28600
28601 if test "$enable_static" = yes; then
28602   gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
28603   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28604   (eval $gmp_asmout_compile) 2>&5
28605   ac_status=$?
28606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28607   test $ac_status = 0; }; then
28608     if grep '\.data' conftest.s >/dev/null; then
28609       mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28610     else
28611       mcount_nonpic_reg=
28612     fi
28613     mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
28614     if test -z "$mcount_nonpic_call"; then
28615       as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5
28616     fi
28617   else
28618     as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5
28619   fi
28620 fi
28621
28622 if test "$enable_shared" = yes; then
28623   gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
28624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28625   (eval $gmp_asmout_compile) 2>&5
28626   ac_status=$?
28627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28628   test $ac_status = 0; }; then
28629     if grep '\.data' conftest.s >/dev/null; then
28630       case $lt_prog_compiler_pic in
28631         *-DDLL_EXPORT*)
28632           # Windows DLLs have non-PIC style mcount
28633           mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28634           ;;
28635         *)
28636           mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28637           ;;
28638       esac
28639     else
28640       mcount_pic_reg=
28641     fi
28642     mcount_pic_call=`grep 'call.*mcount' conftest.s`
28643     if test -z "$mcount_pic_call"; then
28644       as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5
28645     fi
28646   else
28647     as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5
28648   fi
28649 fi
28650
28651
28652 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
28653
28654
28655 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
28656
28657
28658 echo "define(<MCOUNT_PIC_REG>,    <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
28659
28660
28661 echo "define(<MCOUNT_PIC_CALL>,   <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
28662
28663
28664 rm -f conftest.*
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
28666 $as_echo "determined" >&6; }
28667  ;;
28668           esac
28669           case $host in
28670             *-*-darwin*)
28671
28672 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
28673  ;;
28674           esac
28675           ;;
28676         64|x32)
28677
28678 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
28679
28680           $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
28681
28682           case $host in
28683             *-*-darwin*)
28684
28685 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
28686  ;;
28687             *-*-mingw* | *-*-cygwin)
28688
28689 echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
28690  ;;
28691           esac
28692           ;;
28693       esac
28694       ;;
28695   esac
28696 fi
28697
28698 # For --enable-minithres, prepend "minithres" to path so that its special
28699 # gmp-mparam.h will be used.
28700 if test $enable_minithres = yes; then
28701   path="minithres $path"
28702 fi
28703
28704 # Create link for gmp-mparam.h.
28705 gmp_mparam_source=
28706 for gmp_mparam_dir in $path; do
28707   test "$no_create" = yes || rm -f gmp-mparam.h
28708   tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
28709   if test -f $tmp_file; then
28710     ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
28711
28712     gmp_srclinks="$gmp_srclinks gmp-mparam.h"
28713     gmp_mparam_source=$tmp_file
28714     break
28715   fi
28716 done
28717 if test -z "$gmp_mparam_source"; then
28718   as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
28719 fi
28720
28721 # For a helpful message from tune/tuneup.c
28722 gmp_mparam_suggest=$gmp_mparam_source
28723 if test "$gmp_mparam_dir" = generic; then
28724   for i in $path; do break; done
28725   if test "$i" != generic; then
28726     gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
28727   fi
28728 fi
28729
28730 cat >>confdefs.h <<_ACEOF
28731 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
28732 _ACEOF
28733
28734
28735
28736 # Copy relevant parameters from gmp-mparam.h to config.m4.
28737 # We only do this for parameters that are used by some assembly files.
28738 # Fat binaries do this on a per-file basis, so skip in that case.
28739 #
28740 if test -z "$fat_path"; then
28741   for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do
28742     value=`sed -n 's/^#define '$i'[     ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
28743     if test -n "$value"; then
28744
28745 echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4
28746
28747     fi
28748   done
28749 fi
28750
28751
28752 # Sizes of some types, needed at preprocessing time.
28753 #
28754 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
28755 # be slightly rash, but it's true everywhere we know of and ought to be true
28756 # of any sensible system.  In a generic C build, grepping LONG_BIT out of
28757 # <limits.h> might be an alternative, for maximum portability.
28758 #
28759 # The cast to long int works around a bug in the HP C Compiler
28760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28762 # This bug is HP SR number 8606223364.
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
28764 $as_echo_n "checking size of void *... " >&6; }
28765 if ${ac_cv_sizeof_void_p+:} false; then :
28766   $as_echo_n "(cached) " >&6
28767 else
28768   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
28769
28770 else
28771   if test "$ac_cv_type_void_p" = yes; then
28772      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28774 as_fn_error 77 "cannot compute sizeof (void *)
28775 See \`config.log' for more details" "$LINENO" 5; }
28776    else
28777      ac_cv_sizeof_void_p=0
28778    fi
28779 fi
28780
28781 fi
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
28783 $as_echo "$ac_cv_sizeof_void_p" >&6; }
28784
28785
28786
28787 cat >>confdefs.h <<_ACEOF
28788 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
28789 _ACEOF
28790
28791
28792 # The cast to long int works around a bug in the HP C Compiler
28793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28795 # This bug is HP SR number 8606223364.
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
28797 $as_echo_n "checking size of unsigned short... " >&6; }
28798 if ${ac_cv_sizeof_unsigned_short+:} false; then :
28799   $as_echo_n "(cached) " >&6
28800 else
28801   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
28802
28803 else
28804   if test "$ac_cv_type_unsigned_short" = yes; then
28805      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28807 as_fn_error 77 "cannot compute sizeof (unsigned short)
28808 See \`config.log' for more details" "$LINENO" 5; }
28809    else
28810      ac_cv_sizeof_unsigned_short=0
28811    fi
28812 fi
28813
28814 fi
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
28816 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
28817
28818
28819
28820 cat >>confdefs.h <<_ACEOF
28821 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
28822 _ACEOF
28823
28824
28825 # The cast to long int works around a bug in the HP C Compiler
28826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28828 # This bug is HP SR number 8606223364.
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
28830 $as_echo_n "checking size of unsigned... " >&6; }
28831 if ${ac_cv_sizeof_unsigned+:} false; then :
28832   $as_echo_n "(cached) " >&6
28833 else
28834   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
28835
28836 else
28837   if test "$ac_cv_type_unsigned" = yes; then
28838      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28840 as_fn_error 77 "cannot compute sizeof (unsigned)
28841 See \`config.log' for more details" "$LINENO" 5; }
28842    else
28843      ac_cv_sizeof_unsigned=0
28844    fi
28845 fi
28846
28847 fi
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
28849 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
28850
28851
28852
28853 cat >>confdefs.h <<_ACEOF
28854 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
28855 _ACEOF
28856
28857
28858 # The cast to long int works around a bug in the HP C Compiler
28859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28861 # This bug is HP SR number 8606223364.
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
28863 $as_echo_n "checking size of unsigned long... " >&6; }
28864 if ${ac_cv_sizeof_unsigned_long+:} false; then :
28865   $as_echo_n "(cached) " >&6
28866 else
28867   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
28868
28869 else
28870   if test "$ac_cv_type_unsigned_long" = yes; then
28871      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28873 as_fn_error 77 "cannot compute sizeof (unsigned long)
28874 See \`config.log' for more details" "$LINENO" 5; }
28875    else
28876      ac_cv_sizeof_unsigned_long=0
28877    fi
28878 fi
28879
28880 fi
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
28882 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
28883
28884
28885
28886 cat >>confdefs.h <<_ACEOF
28887 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28888 _ACEOF
28889
28890
28891 # The cast to long int works around a bug in the HP C Compiler
28892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28894 # This bug is HP SR number 8606223364.
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
28896 $as_echo_n "checking size of mp_limb_t... " >&6; }
28897 if ${ac_cv_sizeof_mp_limb_t+:} false; then :
28898   $as_echo_n "(cached) " >&6
28899 else
28900   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 */
28901 #define GMP_NAIL_BITS $GMP_NAIL_BITS
28902 #define GMP_LIMB_BITS 123
28903 $DEFN_LONG_LONG_LIMB
28904 #include \"$srcdir/gmp-h.in\"
28905
28906 "; then :
28907
28908 else
28909   if test "$ac_cv_type_mp_limb_t" = yes; then
28910      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28912 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
28913 See \`config.log' for more details" "$LINENO" 5; }
28914    else
28915      ac_cv_sizeof_mp_limb_t=0
28916    fi
28917 fi
28918
28919 fi
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
28921 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
28922
28923
28924
28925 cat >>confdefs.h <<_ACEOF
28926 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
28927 _ACEOF
28928
28929
28930 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
28931   as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
28932 fi
28933 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
28934
28935
28936 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
28937
28938
28939 # Check compiler limb size matches gmp-mparam.h
28940 #
28941 # FIXME: Some of the cycle counter objects in the tune directory depend on
28942 # the size of ulong, it'd be possible to check that here, though a mismatch
28943 # probably wouldn't want to be fatal, none of the libgmp assembler code
28944 # depends on ulong.
28945 #
28946 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[  ][      ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
28947 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
28948   if test "$test_CFLAGS" = set; then
28949     as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28950 in this configuration expects $mparam_bits bits.
28951 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
28952 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
28953   else
28954     as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28955 in this configuration expects $mparam_bits bits." "$LINENO" 5
28956   fi
28957 fi
28958
28959
28960 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
28961
28962
28963 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
28964
28965
28966 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
28967
28968
28969
28970
28971
28972
28973
28974
28975 # A recompiled sqr_basecase for use in the tune program, if necessary.
28976 TUNE_SQR_OBJ=
28977 test -d tune || mkdir tune
28978 case $sqr_basecase_source in
28979   *.asm)
28980     sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
28981     if test -n "$sqr_max"; then
28982       TUNE_SQR_OBJ=sqr_asm.o
28983
28984 cat >>confdefs.h <<_ACEOF
28985 #define TUNE_SQR_TOOM2_MAX $sqr_max
28986 _ACEOF
28987
28988     fi
28989     cat >tune/sqr_basecase.c <<EOF
28990 /* not sure that an empty file can compile, so put in a dummy */
28991 int sqr_basecase_dummy;
28992 EOF
28993     ;;
28994   *.c)
28995     TUNE_SQR_OBJ=
28996     $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
28997
28998     cat >tune/sqr_basecase.c <<EOF
28999 #define TUNE_PROGRAM_BUILD 1
29000 #define TUNE_PROGRAM_BUILD_SQR 1
29001 #include "mpn/sqr_basecase.c"
29002 EOF
29003     ;;
29004 esac
29005
29006
29007
29008 # Configs for demos/pexpr.c.
29009 #
29010 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
29011
29012 case $ac_cv_func_clock in
29013 yes) HAVE_CLOCK_01=1
29014  ;;
29015 no)  HAVE_CLOCK_01=0 ;;
29016 esac
29017
29018 case $ac_cv_func_cputime in
29019 yes) HAVE_CPUTIME_01=1
29020  ;;
29021 no)  HAVE_CPUTIME_01=0 ;;
29022 esac
29023
29024 case $ac_cv_func_getrusage in
29025 yes) HAVE_GETRUSAGE_01=1
29026  ;;
29027 no)  HAVE_GETRUSAGE_01=0 ;;
29028 esac
29029
29030 case $ac_cv_func_gettimeofday in
29031 yes) HAVE_GETTIMEOFDAY_01=1
29032  ;;
29033 no)  HAVE_GETTIMEOFDAY_01=0 ;;
29034 esac
29035
29036 case $ac_cv_func_sigaction in
29037 yes) HAVE_SIGACTION_01=1
29038  ;;
29039 no)  HAVE_SIGACTION_01=0 ;;
29040 esac
29041
29042 case $ac_cv_func_sigaltstack in
29043 yes) HAVE_SIGALTSTACK_01=1
29044  ;;
29045 no)  HAVE_SIGALTSTACK_01=0 ;;
29046 esac
29047
29048 case $ac_cv_func_sigstack in
29049 yes) HAVE_SIGSTACK_01=1
29050  ;;
29051 no)  HAVE_SIGSTACK_01=0 ;;
29052 esac
29053
29054
29055 case $ac_cv_header_sys_resource_h in
29056 yes) HAVE_SYS_RESOURCE_H_01=1
29057  ;;
29058 no)  HAVE_SYS_RESOURCE_H_01=0 ;;
29059 esac
29060
29061
29062 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
29063 "
29064 if test "x$ac_cv_type_stack_t" = xyes; then :
29065
29066 cat >>confdefs.h <<_ACEOF
29067 #define HAVE_STACK_T 1
29068 _ACEOF
29069
29070 HAVE_STACK_T_01=1
29071 else
29072   HAVE_STACK_T_01=0
29073 fi
29074
29075
29076
29077 # Configs for demos/calc directory
29078 #
29079 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
29080 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
29081 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
29082 # which would look very strange.
29083 #
29084 # -lcurses is required by libreadline.  On a typical SVR4 style system this
29085 # normally doesn't have to be given explicitly, since libreadline.so will
29086 # have a NEEDED record for it.  But if someone for some reason is using only
29087 # a static libreadline.a then we must give -lcurses.  Readline (as of
29088 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
29089 # necessary dependencies.
29090 #
29091 # On a couple of systems we've seen libreadline available, but the headers
29092 # not in the default include path, so check for readline/readline.h.  We've
29093 # also seen readline/history.h missing, not sure if that's just a broken
29094 # install or a very old version, but check that too.
29095 #
29096 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
29097
29098 LIBCURSES=
29099 if test $with_readline != no; then
29100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
29101 $as_echo_n "checking for tputs in -lncurses... " >&6; }
29102 if ${ac_cv_lib_ncurses_tputs+:} false; then :
29103   $as_echo_n "(cached) " >&6
29104 else
29105   ac_check_lib_save_LIBS=$LIBS
29106 LIBS="-lncurses  $LIBS"
29107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29108 /* end confdefs.h.  */
29109
29110 /* Override any GCC internal prototype to avoid an error.
29111    Use char because int might match the return type of a GCC
29112    builtin and then its argument prototype would still apply.  */
29113 #ifdef __cplusplus
29114 extern "C"
29115 #endif
29116 char tputs ();
29117 int
29118 main ()
29119 {
29120 return tputs ();
29121   ;
29122   return 0;
29123 }
29124 _ACEOF
29125 if ac_fn_c_try_link "$LINENO"; then :
29126   ac_cv_lib_ncurses_tputs=yes
29127 else
29128   ac_cv_lib_ncurses_tputs=no
29129 fi
29130 rm -f core conftest.err conftest.$ac_objext \
29131     conftest$ac_exeext conftest.$ac_ext
29132 LIBS=$ac_check_lib_save_LIBS
29133 fi
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
29135 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
29136 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
29137   LIBCURSES=-lncurses
29138 else
29139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
29140 $as_echo_n "checking for tputs in -lcurses... " >&6; }
29141 if ${ac_cv_lib_curses_tputs+:} false; then :
29142   $as_echo_n "(cached) " >&6
29143 else
29144   ac_check_lib_save_LIBS=$LIBS
29145 LIBS="-lcurses  $LIBS"
29146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29147 /* end confdefs.h.  */
29148
29149 /* Override any GCC internal prototype to avoid an error.
29150    Use char because int might match the return type of a GCC
29151    builtin and then its argument prototype would still apply.  */
29152 #ifdef __cplusplus
29153 extern "C"
29154 #endif
29155 char tputs ();
29156 int
29157 main ()
29158 {
29159 return tputs ();
29160   ;
29161   return 0;
29162 }
29163 _ACEOF
29164 if ac_fn_c_try_link "$LINENO"; then :
29165   ac_cv_lib_curses_tputs=yes
29166 else
29167   ac_cv_lib_curses_tputs=no
29168 fi
29169 rm -f core conftest.err conftest.$ac_objext \
29170     conftest$ac_exeext conftest.$ac_ext
29171 LIBS=$ac_check_lib_save_LIBS
29172 fi
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
29174 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
29175 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
29176   LIBCURSES=-lcurses
29177 fi
29178
29179 fi
29180
29181 fi
29182
29183 use_readline=$with_readline
29184 if test $with_readline = detect; then
29185   use_readline=no
29186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
29187 $as_echo_n "checking for readline in -lreadline... " >&6; }
29188 if ${ac_cv_lib_readline_readline+:} false; then :
29189   $as_echo_n "(cached) " >&6
29190 else
29191   ac_check_lib_save_LIBS=$LIBS
29192 LIBS="-lreadline $LIBCURSES $LIBS"
29193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29194 /* end confdefs.h.  */
29195
29196 /* Override any GCC internal prototype to avoid an error.
29197    Use char because int might match the return type of a GCC
29198    builtin and then its argument prototype would still apply.  */
29199 #ifdef __cplusplus
29200 extern "C"
29201 #endif
29202 char readline ();
29203 int
29204 main ()
29205 {
29206 return readline ();
29207   ;
29208   return 0;
29209 }
29210 _ACEOF
29211 if ac_fn_c_try_link "$LINENO"; then :
29212   ac_cv_lib_readline_readline=yes
29213 else
29214   ac_cv_lib_readline_readline=no
29215 fi
29216 rm -f core conftest.err conftest.$ac_objext \
29217     conftest$ac_exeext conftest.$ac_ext
29218 LIBS=$ac_check_lib_save_LIBS
29219 fi
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
29221 $as_echo "$ac_cv_lib_readline_readline" >&6; }
29222 if test "x$ac_cv_lib_readline_readline" = xyes; then :
29223   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
29224 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
29225   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
29226 if test "x$ac_cv_header_readline_history_h" = xyes; then :
29227   use_readline=yes
29228 fi
29229
29230
29231 fi
29232
29233
29234 fi
29235
29236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
29237 $as_echo_n "checking readline detected... " >&6; }
29238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
29239 $as_echo "$use_readline" >&6; }
29240 fi
29241 if test $use_readline = yes; then
29242   WITH_READLINE_01=1
29243
29244   LIBREADLINE=-lreadline
29245
29246 else
29247   WITH_READLINE_01=0
29248 fi
29249 for ac_prog in 'bison -y' byacc
29250 do
29251   # Extract the first word of "$ac_prog", so it can be a program name with args.
29252 set dummy $ac_prog; ac_word=$2
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29254 $as_echo_n "checking for $ac_word... " >&6; }
29255 if ${ac_cv_prog_YACC+:} false; then :
29256   $as_echo_n "(cached) " >&6
29257 else
29258   if test -n "$YACC"; then
29259   ac_cv_prog_YACC="$YACC" # Let the user override the test.
29260 else
29261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29262 for as_dir in $PATH
29263 do
29264   IFS=$as_save_IFS
29265   test -z "$as_dir" && as_dir=.
29266     for ac_exec_ext in '' $ac_executable_extensions; do
29267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29268     ac_cv_prog_YACC="$ac_prog"
29269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29270     break 2
29271   fi
29272 done
29273   done
29274 IFS=$as_save_IFS
29275
29276 fi
29277 fi
29278 YACC=$ac_cv_prog_YACC
29279 if test -n "$YACC"; then
29280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
29281 $as_echo "$YACC" >&6; }
29282 else
29283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29284 $as_echo "no" >&6; }
29285 fi
29286
29287
29288   test -n "$YACC" && break
29289 done
29290 test -n "$YACC" || YACC="yacc"
29291
29292 for ac_prog in flex lex
29293 do
29294   # Extract the first word of "$ac_prog", so it can be a program name with args.
29295 set dummy $ac_prog; ac_word=$2
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29297 $as_echo_n "checking for $ac_word... " >&6; }
29298 if ${ac_cv_prog_LEX+:} false; then :
29299   $as_echo_n "(cached) " >&6
29300 else
29301   if test -n "$LEX"; then
29302   ac_cv_prog_LEX="$LEX" # Let the user override the test.
29303 else
29304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29305 for as_dir in $PATH
29306 do
29307   IFS=$as_save_IFS
29308   test -z "$as_dir" && as_dir=.
29309     for ac_exec_ext in '' $ac_executable_extensions; do
29310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29311     ac_cv_prog_LEX="$ac_prog"
29312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29313     break 2
29314   fi
29315 done
29316   done
29317 IFS=$as_save_IFS
29318
29319 fi
29320 fi
29321 LEX=$ac_cv_prog_LEX
29322 if test -n "$LEX"; then
29323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
29324 $as_echo "$LEX" >&6; }
29325 else
29326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29327 $as_echo "no" >&6; }
29328 fi
29329
29330
29331   test -n "$LEX" && break
29332 done
29333 test -n "$LEX" || LEX=":"
29334
29335 if test "x$LEX" != "x:"; then
29336   cat >conftest.l <<_ACEOF
29337 %%
29338 a { ECHO; }
29339 b { REJECT; }
29340 c { yymore (); }
29341 d { yyless (1); }
29342 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
29343     yyless ((input () != 0)); }
29344 f { unput (yytext[0]); }
29345 . { BEGIN INITIAL; }
29346 %%
29347 #ifdef YYTEXT_POINTER
29348 extern char *yytext;
29349 #endif
29350 int
29351 main (void)
29352 {
29353   return ! yylex () + ! yywrap ();
29354 }
29355 _ACEOF
29356 { { ac_try="$LEX conftest.l"
29357 case "(($ac_try" in
29358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359   *) ac_try_echo=$ac_try;;
29360 esac
29361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29362 $as_echo "$ac_try_echo"; } >&5
29363   (eval "$LEX conftest.l") 2>&5
29364   ac_status=$?
29365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29366   test $ac_status = 0; }
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
29368 $as_echo_n "checking lex output file root... " >&6; }
29369 if ${ac_cv_prog_lex_root+:} false; then :
29370   $as_echo_n "(cached) " >&6
29371 else
29372
29373 if test -f lex.yy.c; then
29374   ac_cv_prog_lex_root=lex.yy
29375 elif test -f lexyy.c; then
29376   ac_cv_prog_lex_root=lexyy
29377 else
29378   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
29379 fi
29380 fi
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
29382 $as_echo "$ac_cv_prog_lex_root" >&6; }
29383 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29384
29385 if test -z "${LEXLIB+set}"; then
29386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
29387 $as_echo_n "checking lex library... " >&6; }
29388 if ${ac_cv_lib_lex+:} false; then :
29389   $as_echo_n "(cached) " >&6
29390 else
29391
29392     ac_save_LIBS=$LIBS
29393     ac_cv_lib_lex='none needed'
29394     for ac_lib in '' -lfl -ll; do
29395       LIBS="$ac_lib $ac_save_LIBS"
29396       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29397 /* end confdefs.h.  */
29398 `cat $LEX_OUTPUT_ROOT.c`
29399 _ACEOF
29400 if ac_fn_c_try_link "$LINENO"; then :
29401   ac_cv_lib_lex=$ac_lib
29402 fi
29403 rm -f core conftest.err conftest.$ac_objext \
29404     conftest$ac_exeext conftest.$ac_ext
29405       test "$ac_cv_lib_lex" != 'none needed' && break
29406     done
29407     LIBS=$ac_save_LIBS
29408
29409 fi
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
29411 $as_echo "$ac_cv_lib_lex" >&6; }
29412   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
29413 fi
29414
29415
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
29417 $as_echo_n "checking whether yytext is a pointer... " >&6; }
29418 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
29419   $as_echo_n "(cached) " >&6
29420 else
29421   # POSIX says lex can declare yytext either as a pointer or an array; the
29422 # default is implementation-dependent.  Figure out which it is, since
29423 # not all implementations provide the %pointer and %array declarations.
29424 ac_cv_prog_lex_yytext_pointer=no
29425 ac_save_LIBS=$LIBS
29426 LIBS="$LEXLIB $ac_save_LIBS"
29427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428 /* end confdefs.h.  */
29429
29430   #define YYTEXT_POINTER 1
29431 `cat $LEX_OUTPUT_ROOT.c`
29432 _ACEOF
29433 if ac_fn_c_try_link "$LINENO"; then :
29434   ac_cv_prog_lex_yytext_pointer=yes
29435 fi
29436 rm -f core conftest.err conftest.$ac_objext \
29437     conftest$ac_exeext conftest.$ac_ext
29438 LIBS=$ac_save_LIBS
29439
29440 fi
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
29442 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
29443 if test $ac_cv_prog_lex_yytext_pointer = yes; then
29444
29445 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
29446
29447 fi
29448 rm -f conftest.l $LEX_OUTPUT_ROOT.c
29449
29450 fi
29451 if test "$LEX" = :; then
29452   LEX=${am_missing_run}flex
29453 fi
29454
29455 # Configs for demos/expr directory
29456 #
29457 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
29458 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
29459 # called.  (Automake 1.8.4 doesn't, at least not when the only library is in
29460 # an EXTRA_LIBRARIES.)
29461 #
29462 if test -n "$ac_tool_prefix"; then
29463   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29466 $as_echo_n "checking for $ac_word... " >&6; }
29467 if ${ac_cv_prog_RANLIB+:} false; then :
29468   $as_echo_n "(cached) " >&6
29469 else
29470   if test -n "$RANLIB"; then
29471   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29472 else
29473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29474 for as_dir in $PATH
29475 do
29476   IFS=$as_save_IFS
29477   test -z "$as_dir" && as_dir=.
29478     for ac_exec_ext in '' $ac_executable_extensions; do
29479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29480     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29482     break 2
29483   fi
29484 done
29485   done
29486 IFS=$as_save_IFS
29487
29488 fi
29489 fi
29490 RANLIB=$ac_cv_prog_RANLIB
29491 if test -n "$RANLIB"; then
29492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
29493 $as_echo "$RANLIB" >&6; }
29494 else
29495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29496 $as_echo "no" >&6; }
29497 fi
29498
29499
29500 fi
29501 if test -z "$ac_cv_prog_RANLIB"; then
29502   ac_ct_RANLIB=$RANLIB
29503   # Extract the first word of "ranlib", so it can be a program name with args.
29504 set dummy ranlib; ac_word=$2
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29506 $as_echo_n "checking for $ac_word... " >&6; }
29507 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
29508   $as_echo_n "(cached) " >&6
29509 else
29510   if test -n "$ac_ct_RANLIB"; then
29511   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29512 else
29513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29514 for as_dir in $PATH
29515 do
29516   IFS=$as_save_IFS
29517   test -z "$as_dir" && as_dir=.
29518     for ac_exec_ext in '' $ac_executable_extensions; do
29519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29520     ac_cv_prog_ac_ct_RANLIB="ranlib"
29521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29522     break 2
29523   fi
29524 done
29525   done
29526 IFS=$as_save_IFS
29527
29528 fi
29529 fi
29530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29531 if test -n "$ac_ct_RANLIB"; then
29532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
29533 $as_echo "$ac_ct_RANLIB" >&6; }
29534 else
29535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29536 $as_echo "no" >&6; }
29537 fi
29538
29539   if test "x$ac_ct_RANLIB" = x; then
29540     RANLIB=":"
29541   else
29542     case $cross_compiling:$ac_tool_warned in
29543 yes:)
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29546 ac_tool_warned=yes ;;
29547 esac
29548     RANLIB=$ac_ct_RANLIB
29549   fi
29550 else
29551   RANLIB="$ac_cv_prog_RANLIB"
29552 fi
29553
29554
29555
29556 # Create config.m4.
29557
29558 echo "creating $gmp_configm4"
29559 echo "d""nl $gmp_configm4.  Generated automatically by configure." > $gmp_configm4
29560 if test -f $gmp_tmpconfigm4; then
29561   echo "changequote(<,>)" >> $gmp_configm4
29562   echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
29563   cat $gmp_tmpconfigm4 >> $gmp_configm4
29564   echo ">)" >> $gmp_configm4
29565   echo "changequote(\`,')" >> $gmp_configm4
29566   rm $gmp_tmpconfigm4
29567 fi
29568 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
29569 if test -f $gmp_tmpconfigm4i; then
29570   cat $gmp_tmpconfigm4i >> $gmp_configm4
29571   rm $gmp_tmpconfigm4i
29572 fi
29573 if test -f $gmp_tmpconfigm4p; then
29574   cat $gmp_tmpconfigm4p >> $gmp_configm4
29575   rm $gmp_tmpconfigm4p
29576 fi
29577 echo "')" >> $gmp_configm4
29578 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
29579
29580
29581 # Create Makefiles
29582 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
29583 #        Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
29584
29585 ac_config_files="$ac_config_files Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile rand/Makefile cxx/Makefile tests/Makefile tests/devel/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"
29586
29587 cat >confcache <<\_ACEOF
29588 # This file is a shell script that caches the results of configure
29589 # tests run on this system so they can be shared between configure
29590 # scripts and configure runs, see configure's option --config-cache.
29591 # It is not useful on other systems.  If it contains results you don't
29592 # want to keep, you may remove or edit it.
29593 #
29594 # config.status only pays attention to the cache file if you give it
29595 # the --recheck option to rerun configure.
29596 #
29597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29599 # following values.
29600
29601 _ACEOF
29602
29603 # The following way of writing the cache mishandles newlines in values,
29604 # but we know of no workaround that is simple, portable, and efficient.
29605 # So, we kill variables containing newlines.
29606 # Ultrix sh set writes to stderr and can't be redirected directly,
29607 # and sets the high bit in the cache file unless we assign to the vars.
29608 (
29609   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29610     eval ac_val=\$$ac_var
29611     case $ac_val in #(
29612     *${as_nl}*)
29613       case $ac_var in #(
29614       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29616       esac
29617       case $ac_var in #(
29618       _ | IFS | as_nl) ;; #(
29619       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29620       *) { eval $ac_var=; unset $ac_var;} ;;
29621       esac ;;
29622     esac
29623   done
29624
29625   (set) 2>&1 |
29626     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29627     *${as_nl}ac_space=\ *)
29628       # `set' does not quote correctly, so add quotes: double-quote
29629       # substitution turns \\\\ into \\, and sed turns \\ into \.
29630       sed -n \
29631         "s/'/'\\\\''/g;
29632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29633       ;; #(
29634     *)
29635       # `set' quotes correctly as required by POSIX, so do not add quotes.
29636       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29637       ;;
29638     esac |
29639     sort
29640 ) |
29641   sed '
29642      /^ac_cv_env_/b end
29643      t clear
29644      :clear
29645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29646      t end
29647      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29648      :end' >>confcache
29649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29650   if test -w "$cache_file"; then
29651     if test "x$cache_file" != "x/dev/null"; then
29652       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29653 $as_echo "$as_me: updating cache $cache_file" >&6;}
29654       if test ! -f "$cache_file" || test -h "$cache_file"; then
29655         cat confcache >"$cache_file"
29656       else
29657         case $cache_file in #(
29658         */* | ?:*)
29659           mv -f confcache "$cache_file"$$ &&
29660           mv -f "$cache_file"$$ "$cache_file" ;; #(
29661         *)
29662           mv -f confcache "$cache_file" ;;
29663         esac
29664       fi
29665     fi
29666   else
29667     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29669   fi
29670 fi
29671 rm -f confcache
29672
29673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29674 # Let make expand exec_prefix.
29675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29676
29677 DEFS=-DHAVE_CONFIG_H
29678
29679 ac_libobjs=
29680 ac_ltlibobjs=
29681 U=
29682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29683   # 1. Remove the extension, and $U if already installed.
29684   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29685   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29686   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29687   #    will be set to the directory where LIBOBJS objects are built.
29688   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29689   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29690 done
29691 LIBOBJS=$ac_libobjs
29692
29693 LTLIBOBJS=$ac_ltlibobjs
29694
29695
29696  if test -n "$EXEEXT"; then
29697   am__EXEEXT_TRUE=
29698   am__EXEEXT_FALSE='#'
29699 else
29700   am__EXEEXT_TRUE='#'
29701   am__EXEEXT_FALSE=
29702 fi
29703
29704 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29705   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
29706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29707 fi
29708 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
29709   as_fn_error $? "conditional \"WANT_CXX\" was never defined.
29710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29711 fi
29712 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
29713   as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
29714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29715 fi
29716
29717
29718 : "${CONFIG_STATUS=./config.status}"
29719 ac_write_fail=0
29720 ac_clean_files_save=$ac_clean_files
29721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29724 as_write_fail=0
29725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29726 #! $SHELL
29727 # Generated by $as_me.
29728 # Run this file to recreate the current configuration.
29729 # Compiler output produced by configure, useful for debugging
29730 # configure, is in config.log if it exists.
29731
29732 debug=false
29733 ac_cs_recheck=false
29734 ac_cs_silent=false
29735
29736 SHELL=\${CONFIG_SHELL-$SHELL}
29737 export SHELL
29738 _ASEOF
29739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29740 ## -------------------- ##
29741 ## M4sh Initialization. ##
29742 ## -------------------- ##
29743
29744 # Be more Bourne compatible
29745 DUALCASE=1; export DUALCASE # for MKS sh
29746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29747   emulate sh
29748   NULLCMD=:
29749   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29750   # is contrary to our usage.  Disable this feature.
29751   alias -g '${1+"$@"}'='"$@"'
29752   setopt NO_GLOB_SUBST
29753 else
29754   case `(set -o) 2>/dev/null` in #(
29755   *posix*) :
29756     set -o posix ;; #(
29757   *) :
29758      ;;
29759 esac
29760 fi
29761
29762
29763 as_nl='
29764 '
29765 export as_nl
29766 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29767 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29770 # Prefer a ksh shell builtin over an external printf program on Solaris,
29771 # but without wasting forks for bash or zsh.
29772 if test -z "$BASH_VERSION$ZSH_VERSION" \
29773     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29774   as_echo='print -r --'
29775   as_echo_n='print -rn --'
29776 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29777   as_echo='printf %s\n'
29778   as_echo_n='printf %s'
29779 else
29780   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29781     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29782     as_echo_n='/usr/ucb/echo -n'
29783   else
29784     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29785     as_echo_n_body='eval
29786       arg=$1;
29787       case $arg in #(
29788       *"$as_nl"*)
29789         expr "X$arg" : "X\\(.*\\)$as_nl";
29790         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29791       esac;
29792       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29793     '
29794     export as_echo_n_body
29795     as_echo_n='sh -c $as_echo_n_body as_echo'
29796   fi
29797   export as_echo_body
29798   as_echo='sh -c $as_echo_body as_echo'
29799 fi
29800
29801 # The user is always right.
29802 if test "${PATH_SEPARATOR+set}" != set; then
29803   PATH_SEPARATOR=:
29804   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29805     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29806       PATH_SEPARATOR=';'
29807   }
29808 fi
29809
29810
29811 # IFS
29812 # We need space, tab and new line, in precisely that order.  Quoting is
29813 # there to prevent editors from complaining about space-tab.
29814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29815 # splitting by setting IFS to empty value.)
29816 IFS=" ""        $as_nl"
29817
29818 # Find who we are.  Look in the path if we contain no directory separator.
29819 as_myself=
29820 case $0 in #((
29821   *[\\/]* ) as_myself=$0 ;;
29822   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823 for as_dir in $PATH
29824 do
29825   IFS=$as_save_IFS
29826   test -z "$as_dir" && as_dir=.
29827     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29828   done
29829 IFS=$as_save_IFS
29830
29831      ;;
29832 esac
29833 # We did not find ourselves, most probably we were run as `sh COMMAND'
29834 # in which case we are not to be found in the path.
29835 if test "x$as_myself" = x; then
29836   as_myself=$0
29837 fi
29838 if test ! -f "$as_myself"; then
29839   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29840   exit 1
29841 fi
29842
29843 # Unset variables that we do not need and which cause bugs (e.g. in
29844 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29845 # suppresses any "Segmentation fault" message there.  '((' could
29846 # trigger a bug in pdksh 5.2.14.
29847 for as_var in BASH_ENV ENV MAIL MAILPATH
29848 do eval test x\${$as_var+set} = xset \
29849   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29850 done
29851 PS1='$ '
29852 PS2='> '
29853 PS4='+ '
29854
29855 # NLS nuisances.
29856 LC_ALL=C
29857 export LC_ALL
29858 LANGUAGE=C
29859 export LANGUAGE
29860
29861 # CDPATH.
29862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29863
29864
29865 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29866 # ----------------------------------------
29867 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29868 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29869 # script with STATUS, using 1 if that was 0.
29870 as_fn_error ()
29871 {
29872   as_status=$1; test $as_status -eq 0 && as_status=1
29873   if test "$4"; then
29874     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29875     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29876   fi
29877   $as_echo "$as_me: error: $2" >&2
29878   as_fn_exit $as_status
29879 } # as_fn_error
29880
29881
29882 # as_fn_set_status STATUS
29883 # -----------------------
29884 # Set $? to STATUS, without forking.
29885 as_fn_set_status ()
29886 {
29887   return $1
29888 } # as_fn_set_status
29889
29890 # as_fn_exit STATUS
29891 # -----------------
29892 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29893 as_fn_exit ()
29894 {
29895   set +e
29896   as_fn_set_status $1
29897   exit $1
29898 } # as_fn_exit
29899
29900 # as_fn_unset VAR
29901 # ---------------
29902 # Portably unset VAR.
29903 as_fn_unset ()
29904 {
29905   { eval $1=; unset $1;}
29906 }
29907 as_unset=as_fn_unset
29908 # as_fn_append VAR VALUE
29909 # ----------------------
29910 # Append the text in VALUE to the end of the definition contained in VAR. Take
29911 # advantage of any shell optimizations that allow amortized linear growth over
29912 # repeated appends, instead of the typical quadratic growth present in naive
29913 # implementations.
29914 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29915   eval 'as_fn_append ()
29916   {
29917     eval $1+=\$2
29918   }'
29919 else
29920   as_fn_append ()
29921   {
29922     eval $1=\$$1\$2
29923   }
29924 fi # as_fn_append
29925
29926 # as_fn_arith ARG...
29927 # ------------------
29928 # Perform arithmetic evaluation on the ARGs, and store the result in the
29929 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29930 # must be portable across $(()) and expr.
29931 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29932   eval 'as_fn_arith ()
29933   {
29934     as_val=$(( $* ))
29935   }'
29936 else
29937   as_fn_arith ()
29938   {
29939     as_val=`expr "$@" || test $? -eq 1`
29940   }
29941 fi # as_fn_arith
29942
29943
29944 if expr a : '\(a\)' >/dev/null 2>&1 &&
29945    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29946   as_expr=expr
29947 else
29948   as_expr=false
29949 fi
29950
29951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29952   as_basename=basename
29953 else
29954   as_basename=false
29955 fi
29956
29957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29958   as_dirname=dirname
29959 else
29960   as_dirname=false
29961 fi
29962
29963 as_me=`$as_basename -- "$0" ||
29964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29965          X"$0" : 'X\(//\)$' \| \
29966          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29967 $as_echo X/"$0" |
29968     sed '/^.*\/\([^/][^/]*\)\/*$/{
29969             s//\1/
29970             q
29971           }
29972           /^X\/\(\/\/\)$/{
29973             s//\1/
29974             q
29975           }
29976           /^X\/\(\/\).*/{
29977             s//\1/
29978             q
29979           }
29980           s/.*/./; q'`
29981
29982 # Avoid depending upon Character Ranges.
29983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29986 as_cr_digits='0123456789'
29987 as_cr_alnum=$as_cr_Letters$as_cr_digits
29988
29989 ECHO_C= ECHO_N= ECHO_T=
29990 case `echo -n x` in #(((((
29991 -n*)
29992   case `echo 'xy\c'` in
29993   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29994   xy)  ECHO_C='\c';;
29995   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29996        ECHO_T=' ';;
29997   esac;;
29998 *)
29999   ECHO_N='-n';;
30000 esac
30001
30002 rm -f conf$$ conf$$.exe conf$$.file
30003 if test -d conf$$.dir; then
30004   rm -f conf$$.dir/conf$$.file
30005 else
30006   rm -f conf$$.dir
30007   mkdir conf$$.dir 2>/dev/null
30008 fi
30009 if (echo >conf$$.file) 2>/dev/null; then
30010   if ln -s conf$$.file conf$$ 2>/dev/null; then
30011     as_ln_s='ln -s'
30012     # ... but there are two gotchas:
30013     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30014     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30015     # In both cases, we have to default to `cp -pR'.
30016     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30017       as_ln_s='cp -pR'
30018   elif ln conf$$.file conf$$ 2>/dev/null; then
30019     as_ln_s=ln
30020   else
30021     as_ln_s='cp -pR'
30022   fi
30023 else
30024   as_ln_s='cp -pR'
30025 fi
30026 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30027 rmdir conf$$.dir 2>/dev/null
30028
30029
30030 # as_fn_mkdir_p
30031 # -------------
30032 # Create "$as_dir" as a directory, including parents if necessary.
30033 as_fn_mkdir_p ()
30034 {
30035
30036   case $as_dir in #(
30037   -*) as_dir=./$as_dir;;
30038   esac
30039   test -d "$as_dir" || eval $as_mkdir_p || {
30040     as_dirs=
30041     while :; do
30042       case $as_dir in #(
30043       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30044       *) as_qdir=$as_dir;;
30045       esac
30046       as_dirs="'$as_qdir' $as_dirs"
30047       as_dir=`$as_dirname -- "$as_dir" ||
30048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30049          X"$as_dir" : 'X\(//\)[^/]' \| \
30050          X"$as_dir" : 'X\(//\)$' \| \
30051          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30052 $as_echo X"$as_dir" |
30053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30054             s//\1/
30055             q
30056           }
30057           /^X\(\/\/\)[^/].*/{
30058             s//\1/
30059             q
30060           }
30061           /^X\(\/\/\)$/{
30062             s//\1/
30063             q
30064           }
30065           /^X\(\/\).*/{
30066             s//\1/
30067             q
30068           }
30069           s/.*/./; q'`
30070       test -d "$as_dir" && break
30071     done
30072     test -z "$as_dirs" || eval "mkdir $as_dirs"
30073   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30074
30075
30076 } # as_fn_mkdir_p
30077 if mkdir -p . 2>/dev/null; then
30078   as_mkdir_p='mkdir -p "$as_dir"'
30079 else
30080   test -d ./-p && rmdir ./-p
30081   as_mkdir_p=false
30082 fi
30083
30084
30085 # as_fn_executable_p FILE
30086 # -----------------------
30087 # Test if FILE is an executable regular file.
30088 as_fn_executable_p ()
30089 {
30090   test -f "$1" && test -x "$1"
30091 } # as_fn_executable_p
30092 as_test_x='test -x'
30093 as_executable_p=as_fn_executable_p
30094
30095 # Sed expression to map a string onto a valid CPP name.
30096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30097
30098 # Sed expression to map a string onto a valid variable name.
30099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30100
30101
30102 exec 6>&1
30103 ## ----------------------------------- ##
30104 ## Main body of $CONFIG_STATUS script. ##
30105 ## ----------------------------------- ##
30106 _ASEOF
30107 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30108
30109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30110 # Save the log message, to keep $0 and so on meaningful, and to
30111 # report actual input values of CONFIG_FILES etc. instead of their
30112 # values after options handling.
30113 ac_log="
30114 This file was extended by GNU MP $as_me 5.1.3, which was
30115 generated by GNU Autoconf 2.69.  Invocation command line was
30116
30117   CONFIG_FILES    = $CONFIG_FILES
30118   CONFIG_HEADERS  = $CONFIG_HEADERS
30119   CONFIG_LINKS    = $CONFIG_LINKS
30120   CONFIG_COMMANDS = $CONFIG_COMMANDS
30121   $ $0 $@
30122
30123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30124 "
30125
30126 _ACEOF
30127
30128 case $ac_config_files in *"
30129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30130 esac
30131
30132 case $ac_config_headers in *"
30133 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30134 esac
30135
30136
30137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30138 # Files that config.status was made for.
30139 config_files="$ac_config_files"
30140 config_headers="$ac_config_headers"
30141 config_links="$ac_config_links"
30142 config_commands="$ac_config_commands"
30143
30144 _ACEOF
30145
30146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30147 ac_cs_usage="\
30148 \`$as_me' instantiates files and other configuration actions
30149 from templates according to the current configuration.  Unless the files
30150 and actions are specified as TAGs, all are instantiated by default.
30151
30152 Usage: $0 [OPTION]... [TAG]...
30153
30154   -h, --help       print this help, then exit
30155   -V, --version    print version number and configuration settings, then exit
30156       --config     print configuration, then exit
30157   -q, --quiet, --silent
30158                    do not print progress messages
30159   -d, --debug      don't remove temporary files
30160       --recheck    update $as_me by reconfiguring in the same conditions
30161       --file=FILE[:TEMPLATE]
30162                    instantiate the configuration file FILE
30163       --header=FILE[:TEMPLATE]
30164                    instantiate the configuration header FILE
30165
30166 Configuration files:
30167 $config_files
30168
30169 Configuration headers:
30170 $config_headers
30171
30172 Configuration links:
30173 $config_links
30174
30175 Configuration commands:
30176 $config_commands
30177
30178 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
30179 GNU MP home page: <http://www.gnu.org/software/gmp/>.
30180 General help using GNU software: <http://www.gnu.org/gethelp/>."
30181
30182 _ACEOF
30183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30184 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30185 ac_cs_version="\\
30186 GNU MP config.status 5.1.3
30187 configured by $0, generated by GNU Autoconf 2.69,
30188   with options \\"\$ac_cs_config\\"
30189
30190 Copyright (C) 2012 Free Software Foundation, Inc.
30191 This config.status script is free software; the Free Software Foundation
30192 gives unlimited permission to copy, distribute and modify it."
30193
30194 ac_pwd='$ac_pwd'
30195 srcdir='$srcdir'
30196 INSTALL='$INSTALL'
30197 MKDIR_P='$MKDIR_P'
30198 AWK='$AWK'
30199 test -n "\$AWK" || AWK=awk
30200 _ACEOF
30201
30202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30203 # The default lists apply if the user does not specify any file.
30204 ac_need_defaults=:
30205 while test $# != 0
30206 do
30207   case $1 in
30208   --*=?*)
30209     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30210     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30211     ac_shift=:
30212     ;;
30213   --*=)
30214     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30215     ac_optarg=
30216     ac_shift=:
30217     ;;
30218   *)
30219     ac_option=$1
30220     ac_optarg=$2
30221     ac_shift=shift
30222     ;;
30223   esac
30224
30225   case $ac_option in
30226   # Handling of the options.
30227   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30228     ac_cs_recheck=: ;;
30229   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30230     $as_echo "$ac_cs_version"; exit ;;
30231   --config | --confi | --conf | --con | --co | --c )
30232     $as_echo "$ac_cs_config"; exit ;;
30233   --debug | --debu | --deb | --de | --d | -d )
30234     debug=: ;;
30235   --file | --fil | --fi | --f )
30236     $ac_shift
30237     case $ac_optarg in
30238     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30239     '') as_fn_error $? "missing file argument" ;;
30240     esac
30241     as_fn_append CONFIG_FILES " '$ac_optarg'"
30242     ac_need_defaults=false;;
30243   --header | --heade | --head | --hea )
30244     $ac_shift
30245     case $ac_optarg in
30246     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30247     esac
30248     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30249     ac_need_defaults=false;;
30250   --he | --h)
30251     # Conflict between --help and --header
30252     as_fn_error $? "ambiguous option: \`$1'
30253 Try \`$0 --help' for more information.";;
30254   --help | --hel | -h )
30255     $as_echo "$ac_cs_usage"; exit ;;
30256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30257   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30258     ac_cs_silent=: ;;
30259
30260   # This is an error.
30261   -*) as_fn_error $? "unrecognized option: \`$1'
30262 Try \`$0 --help' for more information." ;;
30263
30264   *) as_fn_append ac_config_targets " $1"
30265      ac_need_defaults=false ;;
30266
30267   esac
30268   shift
30269 done
30270
30271 ac_configure_extra_args=
30272
30273 if $ac_cs_silent; then
30274   exec 6>/dev/null
30275   ac_configure_extra_args="$ac_configure_extra_args --silent"
30276 fi
30277
30278 _ACEOF
30279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30280 if \$ac_cs_recheck; then
30281   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30282   shift
30283   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30284   CONFIG_SHELL='$SHELL'
30285   export CONFIG_SHELL
30286   exec "\$@"
30287 fi
30288
30289 _ACEOF
30290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30291 exec 5>>config.log
30292 {
30293   echo
30294   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30295 ## Running $as_me. ##
30296 _ASBOX
30297   $as_echo "$ac_log"
30298 } >&5
30299
30300 _ACEOF
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30302 #
30303 # INIT-COMMANDS
30304 #
30305
30306
30307 # The HP-UX ksh and POSIX shell print the target directory to stdout
30308 # if CDPATH is set.
30309 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30310
30311 sed_quote_subst='$sed_quote_subst'
30312 double_quote_subst='$double_quote_subst'
30313 delay_variable_subst='$delay_variable_subst'
30314 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30315 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30316 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30346 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30347 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30348 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30349 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30352 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30353 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30354 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30355 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30356 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30357 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30358 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30359 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30360 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30361 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30362 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30363 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30364 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30365 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30366 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30367 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30368 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30369 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30370 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
30372 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30373 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30374 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30375 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30376 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30377 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30378 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30379 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30380 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30381 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30382 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30383 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30384 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30385 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30386 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30387 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30388 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30389 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30390 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30391 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30392 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30393 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30394 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30395 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30396 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30397 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30398 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30399 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30400 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30401 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30402 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30403 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30404 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30405 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30406 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30407 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30408 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30409 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30410 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30411 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30412 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30413 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30414 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30415 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30416 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30417 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30418 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30419 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30420 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30421 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30422 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30423 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30424 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30425 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30426 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30427 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30428 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30429 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30430 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30431 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30432 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30433 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30434 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30435 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30436 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30437 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30438 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
30439 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30440 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30441 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30442 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30443 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30444 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30445 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
30446 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
30447 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
30448 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
30449 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
30450 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
30451 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
30452 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
30453 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
30454 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
30455 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30456 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
30457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30458 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30459 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
30460 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
30461 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
30462 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
30463 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
30464 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
30465 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
30466 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
30467 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
30468 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
30469 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
30470 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
30471 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
30472 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
30473 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
30474 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
30475 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
30476 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
30477 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30478 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30479 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30480 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30481 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
30482 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
30483 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30484 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
30485 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30486 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
30487 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30488 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30489 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30490 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30491 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30492 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
30493 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30494 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30495 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
30496 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
30497 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30498 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30499 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30500 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30501 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30502 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30503 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
30504 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
30505 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
30506 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
30507 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
30508 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
30509 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
30510 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
30511 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
30512 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
30513 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
30514 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
30515 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
30516 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
30517 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
30518 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
30519 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
30520 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
30521 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30522 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
30523 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30524 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30525 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30526 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30527 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30528 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30529 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30530 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30531 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
30532 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
30533 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
30534 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
30535 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
30536 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
30537 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30538 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
30539 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30540 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
30541 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
30542 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
30543 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
30544 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
30545 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
30546 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
30547
30548 LTCC='$LTCC'
30549 LTCFLAGS='$LTCFLAGS'
30550 compiler='$compiler_DEFAULT'
30551
30552 # A function that is used when there is no print builtin or printf.
30553 func_fallback_echo ()
30554 {
30555   eval 'cat <<_LTECHO_EOF
30556 \$1
30557 _LTECHO_EOF'
30558 }
30559
30560 # Quote evaled strings.
30561 for var in NM \
30562 AS \
30563 DLLTOOL \
30564 OBJDUMP \
30565 SHELL \
30566 ECHO \
30567 PATH_SEPARATOR \
30568 SED \
30569 GREP \
30570 EGREP \
30571 FGREP \
30572 LD \
30573 LN_S \
30574 lt_SP2NL \
30575 lt_NL2SP \
30576 reload_flag \
30577 deplibs_check_method \
30578 file_magic_cmd \
30579 file_magic_glob \
30580 want_nocaseglob \
30581 sharedlib_from_linklib_cmd \
30582 AR \
30583 AR_FLAGS \
30584 archiver_list_spec \
30585 STRIP \
30586 RANLIB \
30587 CC \
30588 CFLAGS \
30589 compiler \
30590 lt_cv_sys_global_symbol_pipe \
30591 lt_cv_sys_global_symbol_to_cdecl \
30592 lt_cv_sys_global_symbol_to_c_name_address \
30593 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30594 nm_file_list_spec \
30595 lt_prog_compiler_no_builtin_flag \
30596 lt_prog_compiler_pic \
30597 lt_prog_compiler_wl \
30598 lt_prog_compiler_static \
30599 lt_cv_prog_compiler_c_o \
30600 need_locks \
30601 MANIFEST_TOOL \
30602 DSYMUTIL \
30603 NMEDIT \
30604 LIPO \
30605 OTOOL \
30606 OTOOL64 \
30607 shrext_cmds \
30608 export_dynamic_flag_spec \
30609 whole_archive_flag_spec \
30610 compiler_needs_object \
30611 with_gnu_ld \
30612 allow_undefined_flag \
30613 no_undefined_flag \
30614 hardcode_libdir_flag_spec \
30615 hardcode_libdir_separator \
30616 exclude_expsyms \
30617 include_expsyms \
30618 file_list_spec \
30619 variables_saved_for_relink \
30620 libname_spec \
30621 library_names_spec \
30622 soname_spec \
30623 install_override_mode \
30624 finish_eval \
30625 old_striplib \
30626 striplib \
30627 compiler_lib_search_dirs \
30628 predep_objects \
30629 postdep_objects \
30630 predeps \
30631 postdeps \
30632 compiler_lib_search_path \
30633 LD_CXX \
30634 LD_F77 \
30635 reload_flag_CXX \
30636 reload_flag_F77 \
30637 compiler_CXX \
30638 compiler_F77 \
30639 lt_prog_compiler_no_builtin_flag_CXX \
30640 lt_prog_compiler_no_builtin_flag_F77 \
30641 lt_prog_compiler_pic_CXX \
30642 lt_prog_compiler_pic_F77 \
30643 lt_prog_compiler_wl_CXX \
30644 lt_prog_compiler_wl_F77 \
30645 lt_prog_compiler_static_CXX \
30646 lt_prog_compiler_static_F77 \
30647 lt_cv_prog_compiler_c_o_CXX \
30648 lt_cv_prog_compiler_c_o_F77 \
30649 export_dynamic_flag_spec_CXX \
30650 export_dynamic_flag_spec_F77 \
30651 whole_archive_flag_spec_CXX \
30652 whole_archive_flag_spec_F77 \
30653 compiler_needs_object_CXX \
30654 compiler_needs_object_F77 \
30655 with_gnu_ld_CXX \
30656 with_gnu_ld_F77 \
30657 allow_undefined_flag_CXX \
30658 allow_undefined_flag_F77 \
30659 no_undefined_flag_CXX \
30660 no_undefined_flag_F77 \
30661 hardcode_libdir_flag_spec_CXX \
30662 hardcode_libdir_flag_spec_F77 \
30663 hardcode_libdir_separator_CXX \
30664 hardcode_libdir_separator_F77 \
30665 exclude_expsyms_CXX \
30666 exclude_expsyms_F77 \
30667 include_expsyms_CXX \
30668 include_expsyms_F77 \
30669 file_list_spec_CXX \
30670 file_list_spec_F77 \
30671 compiler_lib_search_dirs_CXX \
30672 compiler_lib_search_dirs_F77 \
30673 predep_objects_CXX \
30674 predep_objects_F77 \
30675 postdep_objects_CXX \
30676 postdep_objects_F77 \
30677 predeps_CXX \
30678 predeps_F77 \
30679 postdeps_CXX \
30680 postdeps_F77 \
30681 compiler_lib_search_path_CXX \
30682 compiler_lib_search_path_F77; do
30683     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30684     *[\\\\\\\`\\"\\\$]*)
30685       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30686       ;;
30687     *)
30688       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30689       ;;
30690     esac
30691 done
30692
30693 # Double-quote double-evaled strings.
30694 for var in reload_cmds \
30695 old_postinstall_cmds \
30696 old_postuninstall_cmds \
30697 old_archive_cmds \
30698 extract_expsyms_cmds \
30699 old_archive_from_new_cmds \
30700 old_archive_from_expsyms_cmds \
30701 archive_cmds \
30702 archive_expsym_cmds \
30703 module_cmds \
30704 module_expsym_cmds \
30705 export_symbols_cmds \
30706 prelink_cmds \
30707 postlink_cmds \
30708 postinstall_cmds \
30709 postuninstall_cmds \
30710 finish_cmds \
30711 sys_lib_search_path_spec \
30712 sys_lib_dlsearch_path_spec \
30713 reload_cmds_CXX \
30714 reload_cmds_F77 \
30715 old_archive_cmds_CXX \
30716 old_archive_cmds_F77 \
30717 old_archive_from_new_cmds_CXX \
30718 old_archive_from_new_cmds_F77 \
30719 old_archive_from_expsyms_cmds_CXX \
30720 old_archive_from_expsyms_cmds_F77 \
30721 archive_cmds_CXX \
30722 archive_cmds_F77 \
30723 archive_expsym_cmds_CXX \
30724 archive_expsym_cmds_F77 \
30725 module_cmds_CXX \
30726 module_cmds_F77 \
30727 module_expsym_cmds_CXX \
30728 module_expsym_cmds_F77 \
30729 export_symbols_cmds_CXX \
30730 export_symbols_cmds_F77 \
30731 prelink_cmds_CXX \
30732 prelink_cmds_F77 \
30733 postlink_cmds_CXX \
30734 postlink_cmds_F77; do
30735     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30736     *[\\\\\\\`\\"\\\$]*)
30737       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30738       ;;
30739     *)
30740       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30741       ;;
30742     esac
30743 done
30744
30745 ac_aux_dir='$ac_aux_dir'
30746 xsi_shell='$xsi_shell'
30747 lt_shell_append='$lt_shell_append'
30748
30749 # See if we are running on zsh, and set the options which allow our
30750 # commands through without removal of \ escapes INIT.
30751 if test -n "\${ZSH_VERSION+set}" ; then
30752    setopt NO_GLOB_SUBST
30753 fi
30754
30755
30756     PACKAGE='$PACKAGE'
30757     VERSION='$VERSION'
30758     TIMESTAMP='$TIMESTAMP'
30759     RM='$RM'
30760     ofile='$ofile'
30761
30762
30763
30764
30765
30766
30767
30768
30769 _ACEOF
30770
30771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30772
30773 # Handling of arguments.
30774 for ac_config_target in $ac_config_targets
30775 do
30776   case $ac_config_target in
30777     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
30778     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30779     "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
30780     "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
30781     "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
30782     "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
30783     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30784     "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
30785     "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
30786     "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
30787     "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
30788     "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
30789     "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
30790     "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
30791     "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
30792     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30793     "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
30794     "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
30795     "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
30796     "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
30797     "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
30798     "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
30799     "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
30800     "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
30801     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30802     "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
30803     "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
30804     "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
30805     "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
30806     "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
30807
30808   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30809   esac
30810 done
30811
30812
30813 # If the user did not use the arguments to specify the items to instantiate,
30814 # then the envvar interface is used.  Set only those that are not.
30815 # We use the long form for the default assignment because of an extremely
30816 # bizarre bug on SunOS 4.1.3.
30817 if $ac_need_defaults; then
30818   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30819   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30820   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30821   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30822 fi
30823
30824 # Have a temporary directory for convenience.  Make it in the build tree
30825 # simply because there is no reason against having it here, and in addition,
30826 # creating and moving files from /tmp can sometimes cause problems.
30827 # Hook for its removal unless debugging.
30828 # Note that there is a small window in which the directory will not be cleaned:
30829 # after its creation but before its name has been assigned to `$tmp'.
30830 $debug ||
30831 {
30832   tmp= ac_tmp=
30833   trap 'exit_status=$?
30834   : "${ac_tmp:=$tmp}"
30835   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30836 ' 0
30837   trap 'as_fn_exit 1' 1 2 13 15
30838 }
30839 # Create a (secure) tmp directory for tmp files.
30840
30841 {
30842   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30843   test -d "$tmp"
30844 }  ||
30845 {
30846   tmp=./conf$$-$RANDOM
30847   (umask 077 && mkdir "$tmp")
30848 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30849 ac_tmp=$tmp
30850
30851 # Set up the scripts for CONFIG_FILES section.
30852 # No need to generate them if there are no CONFIG_FILES.
30853 # This happens for instance with `./config.status config.h'.
30854 if test -n "$CONFIG_FILES"; then
30855
30856
30857 ac_cr=`echo X | tr X '\015'`
30858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30859 # But we know of no other shell where ac_cr would be empty at this
30860 # point, so we can use a bashism as a fallback.
30861 if test "x$ac_cr" = x; then
30862   eval ac_cr=\$\'\\r\'
30863 fi
30864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30866   ac_cs_awk_cr='\\r'
30867 else
30868   ac_cs_awk_cr=$ac_cr
30869 fi
30870
30871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30872 _ACEOF
30873
30874
30875 {
30876   echo "cat >conf$$subs.awk <<_ACEOF" &&
30877   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30878   echo "_ACEOF"
30879 } >conf$$subs.sh ||
30880   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30882 ac_delim='%!_!# '
30883 for ac_last_try in false false false false false :; do
30884   . ./conf$$subs.sh ||
30885     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30886
30887   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30888   if test $ac_delim_n = $ac_delim_num; then
30889     break
30890   elif $ac_last_try; then
30891     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30892   else
30893     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30894   fi
30895 done
30896 rm -f conf$$subs.sh
30897
30898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30899 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30900 _ACEOF
30901 sed -n '
30902 h
30903 s/^/S["/; s/!.*/"]=/
30904 p
30905 g
30906 s/^[^!]*!//
30907 :repl
30908 t repl
30909 s/'"$ac_delim"'$//
30910 t delim
30911 :nl
30912 h
30913 s/\(.\{148\}\)..*/\1/
30914 t more1
30915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30916 p
30917 n
30918 b repl
30919 :more1
30920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30921 p
30922 g
30923 s/.\{148\}//
30924 t nl
30925 :delim
30926 h
30927 s/\(.\{148\}\)..*/\1/
30928 t more2
30929 s/["\\]/\\&/g; s/^/"/; s/$/"/
30930 p
30931 b
30932 :more2
30933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30934 p
30935 g
30936 s/.\{148\}//
30937 t delim
30938 ' <conf$$subs.awk | sed '
30939 /^[^""]/{
30940   N
30941   s/\n//
30942 }
30943 ' >>$CONFIG_STATUS || ac_write_fail=1
30944 rm -f conf$$subs.awk
30945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30946 _ACAWK
30947 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30948   for (key in S) S_is_set[key] = 1
30949   FS = "\a"
30950
30951 }
30952 {
30953   line = $ 0
30954   nfields = split(line, field, "@")
30955   substed = 0
30956   len = length(field[1])
30957   for (i = 2; i < nfields; i++) {
30958     key = field[i]
30959     keylen = length(key)
30960     if (S_is_set[key]) {
30961       value = S[key]
30962       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30963       len += length(value) + length(field[++i])
30964       substed = 1
30965     } else
30966       len += 1 + keylen
30967   }
30968
30969   print line
30970 }
30971
30972 _ACAWK
30973 _ACEOF
30974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30976   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30977 else
30978   cat
30979 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30980   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30981 _ACEOF
30982
30983 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30984 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30985 # trailing colons and then remove the whole line if VPATH becomes empty
30986 # (actually we leave an empty line to preserve line numbers).
30987 if test "x$srcdir" = x.; then
30988   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30989 h
30990 s///
30991 s/^/:/
30992 s/[      ]*$/:/
30993 s/:\$(srcdir):/:/g
30994 s/:\${srcdir}:/:/g
30995 s/:@srcdir@:/:/g
30996 s/^:*//
30997 s/:*$//
30998 x
30999 s/\(=[   ]*\).*/\1/
31000 G
31001 s/\n//
31002 s/^[^=]*=[       ]*$//
31003 }'
31004 fi
31005
31006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31007 fi # test -n "$CONFIG_FILES"
31008
31009 # Set up the scripts for CONFIG_HEADERS section.
31010 # No need to generate them if there are no CONFIG_HEADERS.
31011 # This happens for instance with `./config.status Makefile'.
31012 if test -n "$CONFIG_HEADERS"; then
31013 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31014 BEGIN {
31015 _ACEOF
31016
31017 # Transform confdefs.h into an awk script `defines.awk', embedded as
31018 # here-document in config.status, that substitutes the proper values into
31019 # config.h.in to produce config.h.
31020
31021 # Create a delimiter string that does not exist in confdefs.h, to ease
31022 # handling of long lines.
31023 ac_delim='%!_!# '
31024 for ac_last_try in false false :; do
31025   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31026   if test -z "$ac_tt"; then
31027     break
31028   elif $ac_last_try; then
31029     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31030   else
31031     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31032   fi
31033 done
31034
31035 # For the awk script, D is an array of macro values keyed by name,
31036 # likewise P contains macro parameters if any.  Preserve backslash
31037 # newline sequences.
31038
31039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31040 sed -n '
31041 s/.\{148\}/&'"$ac_delim"'/g
31042 t rset
31043 :rset
31044 s/^[     ]*#[    ]*define[       ][      ]*/ /
31045 t def
31046 d
31047 :def
31048 s/\\$//
31049 t bsnl
31050 s/["\\]/\\&/g
31051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31052 D["\1"]=" \3"/p
31053 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31054 d
31055 :bsnl
31056 s/["\\]/\\&/g
31057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31058 D["\1"]=" \3\\\\\\n"\\/p
31059 t cont
31060 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31061 t cont
31062 d
31063 :cont
31064 n
31065 s/.\{148\}/&'"$ac_delim"'/g
31066 t clear
31067 :clear
31068 s/\\$//
31069 t bsnlc
31070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31071 d
31072 :bsnlc
31073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31074 b cont
31075 ' <confdefs.h | sed '
31076 s/'"$ac_delim"'/"\\\
31077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31078
31079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31080   for (key in D) D_is_set[key] = 1
31081   FS = "\a"
31082 }
31083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31084   line = \$ 0
31085   split(line, arg, " ")
31086   if (arg[1] == "#") {
31087     defundef = arg[2]
31088     mac1 = arg[3]
31089   } else {
31090     defundef = substr(arg[1], 2)
31091     mac1 = arg[2]
31092   }
31093   split(mac1, mac2, "(") #)
31094   macro = mac2[1]
31095   prefix = substr(line, 1, index(line, defundef) - 1)
31096   if (D_is_set[macro]) {
31097     # Preserve the white space surrounding the "#".
31098     print prefix "define", macro P[macro] D[macro]
31099     next
31100   } else {
31101     # Replace #undef with comments.  This is necessary, for example,
31102     # in the case of _POSIX_SOURCE, which is predefined and required
31103     # on some systems where configure will not decide to define it.
31104     if (defundef == "undef") {
31105       print "/*", prefix defundef, macro, "*/"
31106       next
31107     }
31108   }
31109 }
31110 { print }
31111 _ACAWK
31112 _ACEOF
31113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31114   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31115 fi # test -n "$CONFIG_HEADERS"
31116
31117
31118 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31119 shift
31120 for ac_tag
31121 do
31122   case $ac_tag in
31123   :[FHLC]) ac_mode=$ac_tag; continue;;
31124   esac
31125   case $ac_mode$ac_tag in
31126   :[FHL]*:*);;
31127   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31128   :[FH]-) ac_tag=-:-;;
31129   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31130   esac
31131   ac_save_IFS=$IFS
31132   IFS=:
31133   set x $ac_tag
31134   IFS=$ac_save_IFS
31135   shift
31136   ac_file=$1
31137   shift
31138
31139   case $ac_mode in
31140   :L) ac_source=$1;;
31141   :[FH])
31142     ac_file_inputs=
31143     for ac_f
31144     do
31145       case $ac_f in
31146       -) ac_f="$ac_tmp/stdin";;
31147       *) # Look for the file first in the build tree, then in the source tree
31148          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31149          # because $ac_f cannot contain `:'.
31150          test -f "$ac_f" ||
31151            case $ac_f in
31152            [\\/$]*) false;;
31153            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31154            esac ||
31155            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31156       esac
31157       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31158       as_fn_append ac_file_inputs " '$ac_f'"
31159     done
31160
31161     # Let's still pretend it is `configure' which instantiates (i.e., don't
31162     # use $as_me), people would be surprised to read:
31163     #    /* config.h.  Generated by config.status.  */
31164     configure_input='Generated from '`
31165           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31166         `' by configure.'
31167     if test x"$ac_file" != x-; then
31168       configure_input="$ac_file.  $configure_input"
31169       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31170 $as_echo "$as_me: creating $ac_file" >&6;}
31171     fi
31172     # Neutralize special characters interpreted by sed in replacement strings.
31173     case $configure_input in #(
31174     *\&* | *\|* | *\\* )
31175        ac_sed_conf_input=`$as_echo "$configure_input" |
31176        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31177     *) ac_sed_conf_input=$configure_input;;
31178     esac
31179
31180     case $ac_tag in
31181     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31182       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31183     esac
31184     ;;
31185   esac
31186
31187   ac_dir=`$as_dirname -- "$ac_file" ||
31188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31189          X"$ac_file" : 'X\(//\)[^/]' \| \
31190          X"$ac_file" : 'X\(//\)$' \| \
31191          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31192 $as_echo X"$ac_file" |
31193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31194             s//\1/
31195             q
31196           }
31197           /^X\(\/\/\)[^/].*/{
31198             s//\1/
31199             q
31200           }
31201           /^X\(\/\/\)$/{
31202             s//\1/
31203             q
31204           }
31205           /^X\(\/\).*/{
31206             s//\1/
31207             q
31208           }
31209           s/.*/./; q'`
31210   as_dir="$ac_dir"; as_fn_mkdir_p
31211   ac_builddir=.
31212
31213 case "$ac_dir" in
31214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31215 *)
31216   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31217   # A ".." for each directory in $ac_dir_suffix.
31218   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31219   case $ac_top_builddir_sub in
31220   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31221   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31222   esac ;;
31223 esac
31224 ac_abs_top_builddir=$ac_pwd
31225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31226 # for backward compatibility:
31227 ac_top_builddir=$ac_top_build_prefix
31228
31229 case $srcdir in
31230   .)  # We are building in place.
31231     ac_srcdir=.
31232     ac_top_srcdir=$ac_top_builddir_sub
31233     ac_abs_top_srcdir=$ac_pwd ;;
31234   [\\/]* | ?:[\\/]* )  # Absolute name.
31235     ac_srcdir=$srcdir$ac_dir_suffix;
31236     ac_top_srcdir=$srcdir
31237     ac_abs_top_srcdir=$srcdir ;;
31238   *) # Relative name.
31239     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31240     ac_top_srcdir=$ac_top_build_prefix$srcdir
31241     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31242 esac
31243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31244
31245
31246   case $ac_mode in
31247   :F)
31248   #
31249   # CONFIG_FILE
31250   #
31251
31252   case $INSTALL in
31253   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31254   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31255   esac
31256   ac_MKDIR_P=$MKDIR_P
31257   case $MKDIR_P in
31258   [\\/$]* | ?:[\\/]* ) ;;
31259   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31260   esac
31261 _ACEOF
31262
31263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31264 # If the template does not know about datarootdir, expand it.
31265 # FIXME: This hack should be removed a few years after 2.60.
31266 ac_datarootdir_hack=; ac_datarootdir_seen=
31267 ac_sed_dataroot='
31268 /datarootdir/ {
31269   p
31270   q
31271 }
31272 /@datadir@/p
31273 /@docdir@/p
31274 /@infodir@/p
31275 /@localedir@/p
31276 /@mandir@/p'
31277 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31278 *datarootdir*) ac_datarootdir_seen=yes;;
31279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31280   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31281 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31282 _ACEOF
31283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31284   ac_datarootdir_hack='
31285   s&@datadir@&$datadir&g
31286   s&@docdir@&$docdir&g
31287   s&@infodir@&$infodir&g
31288   s&@localedir@&$localedir&g
31289   s&@mandir@&$mandir&g
31290   s&\\\${datarootdir}&$datarootdir&g' ;;
31291 esac
31292 _ACEOF
31293
31294 # Neutralize VPATH when `$srcdir' = `.'.
31295 # Shell code in configure.ac might set extrasub.
31296 # FIXME: do we really want to maintain this feature?
31297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31298 ac_sed_extra="$ac_vpsub
31299 $extrasub
31300 _ACEOF
31301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31302 :t
31303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31304 s|@configure_input@|$ac_sed_conf_input|;t t
31305 s&@top_builddir@&$ac_top_builddir_sub&;t t
31306 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31307 s&@srcdir@&$ac_srcdir&;t t
31308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31309 s&@top_srcdir@&$ac_top_srcdir&;t t
31310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31311 s&@builddir@&$ac_builddir&;t t
31312 s&@abs_builddir@&$ac_abs_builddir&;t t
31313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31314 s&@INSTALL@&$ac_INSTALL&;t t
31315 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31316 $ac_datarootdir_hack
31317 "
31318 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31319   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31320
31321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31322   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31323   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31324       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31326 which seems to be undefined.  Please make sure it is defined" >&5
31327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31328 which seems to be undefined.  Please make sure it is defined" >&2;}
31329
31330   rm -f "$ac_tmp/stdin"
31331   case $ac_file in
31332   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31333   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31334   esac \
31335   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31336  ;;
31337   :H)
31338   #
31339   # CONFIG_HEADER
31340   #
31341   if test x"$ac_file" != x-; then
31342     {
31343       $as_echo "/* $configure_input  */" \
31344       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31345     } >"$ac_tmp/config.h" \
31346       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31347     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31348       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31350     else
31351       rm -f "$ac_file"
31352       mv "$ac_tmp/config.h" "$ac_file" \
31353         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31354     fi
31355   else
31356     $as_echo "/* $configure_input  */" \
31357       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31358       || as_fn_error $? "could not create -" "$LINENO" 5
31359   fi
31360 # Compute "$ac_file"'s index in $config_headers.
31361 _am_arg="$ac_file"
31362 _am_stamp_count=1
31363 for _am_header in $config_headers :; do
31364   case $_am_header in
31365     $_am_arg | $_am_arg:* )
31366       break ;;
31367     * )
31368       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31369   esac
31370 done
31371 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31372 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31373          X"$_am_arg" : 'X\(//\)[^/]' \| \
31374          X"$_am_arg" : 'X\(//\)$' \| \
31375          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31376 $as_echo X"$_am_arg" |
31377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31378             s//\1/
31379             q
31380           }
31381           /^X\(\/\/\)[^/].*/{
31382             s//\1/
31383             q
31384           }
31385           /^X\(\/\/\)$/{
31386             s//\1/
31387             q
31388           }
31389           /^X\(\/\).*/{
31390             s//\1/
31391             q
31392           }
31393           s/.*/./; q'`/stamp-h$_am_stamp_count
31394  ;;
31395   :L)
31396   #
31397   # CONFIG_LINK
31398   #
31399
31400   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31401     :
31402   else
31403     # Prefer the file from the source tree if names are identical.
31404     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31405       ac_source=$srcdir/$ac_source
31406     fi
31407
31408     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31409 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31410
31411     if test ! -r "$ac_source"; then
31412       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31413     fi
31414     rm -f "$ac_file"
31415
31416     # Try a relative symlink, then a hard link, then a copy.
31417     case $ac_source in
31418     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31419         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31420     esac
31421     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31422       ln "$ac_source" "$ac_file" 2>/dev/null ||
31423       cp -p "$ac_source" "$ac_file" ||
31424       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31425   fi
31426  ;;
31427   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31428 $as_echo "$as_me: executing $ac_file commands" >&6;}
31429  ;;
31430   esac
31431
31432
31433   case $ac_file$ac_mode in
31434     "libtool":C)
31435
31436     # See if we are running on zsh, and set the options which allow our
31437     # commands through without removal of \ escapes.
31438     if test -n "${ZSH_VERSION+set}" ; then
31439       setopt NO_GLOB_SUBST
31440     fi
31441
31442     cfgfile="${ofile}T"
31443     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31444     $RM "$cfgfile"
31445
31446     cat <<_LT_EOF >> "$cfgfile"
31447 #! $SHELL
31448
31449 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31450 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31452 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31453 #
31454 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31455 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31456 #                 Foundation, Inc.
31457 #   Written by Gordon Matzigkeit, 1996
31458 #
31459 #   This file is part of GNU Libtool.
31460 #
31461 # GNU Libtool is free software; you can redistribute it and/or
31462 # modify it under the terms of the GNU General Public License as
31463 # published by the Free Software Foundation; either version 2 of
31464 # the License, or (at your option) any later version.
31465 #
31466 # As a special exception to the GNU General Public License,
31467 # if you distribute this file as part of a program or library that
31468 # is built using GNU Libtool, you may include this file under the
31469 # same distribution terms that you use for the rest of that program.
31470 #
31471 # GNU Libtool is distributed in the hope that it will be useful,
31472 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31474 # GNU General Public License for more details.
31475 #
31476 # You should have received a copy of the GNU General Public License
31477 # along with GNU Libtool; see the file COPYING.  If not, a copy
31478 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31479 # obtained by writing to the Free Software Foundation, Inc.,
31480 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31481
31482
31483 # The names of the tagged configurations supported by this script.
31484 available_tags="CXX F77 "
31485
31486 # ### BEGIN LIBTOOL CONFIG
31487
31488 # A BSD- or MS-compatible name lister.
31489 NM=$lt_NM
31490
31491 # Assembler program.
31492 AS=$lt_AS
31493
31494 # DLL creation program.
31495 DLLTOOL=$lt_DLLTOOL
31496
31497 # Object dumper program.
31498 OBJDUMP=$lt_OBJDUMP
31499
31500 # Which release of libtool.m4 was used?
31501 macro_version=$macro_version
31502 macro_revision=$macro_revision
31503
31504 # Whether or not to build shared libraries.
31505 build_libtool_libs=$enable_shared
31506
31507 # Whether or not to build static libraries.
31508 build_old_libs=$enable_static
31509
31510 # What type of objects to build.
31511 pic_mode=$pic_mode
31512
31513 # Whether or not to optimize for fast installation.
31514 fast_install=$enable_fast_install
31515
31516 # Shell to use when invoking shell scripts.
31517 SHELL=$lt_SHELL
31518
31519 # An echo program that protects backslashes.
31520 ECHO=$lt_ECHO
31521
31522 # The PATH separator for the build system.
31523 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31524
31525 # The host system.
31526 host_alias=$host_alias
31527 host=$host
31528 host_os=$host_os
31529
31530 # The build system.
31531 build_alias=$build_alias
31532 build=$build
31533 build_os=$build_os
31534
31535 # A sed program that does not truncate output.
31536 SED=$lt_SED
31537
31538 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31539 Xsed="\$SED -e 1s/^X//"
31540
31541 # A grep program that handles long lines.
31542 GREP=$lt_GREP
31543
31544 # An ERE matcher.
31545 EGREP=$lt_EGREP
31546
31547 # A literal string matcher.
31548 FGREP=$lt_FGREP
31549
31550 # Whether we need soft or hard links.
31551 LN_S=$lt_LN_S
31552
31553 # What is the maximum length of a command?
31554 max_cmd_len=$max_cmd_len
31555
31556 # Object file suffix (normally "o").
31557 objext=$ac_objext
31558
31559 # Executable file suffix (normally "").
31560 exeext=$exeext
31561
31562 # whether the shell understands "unset".
31563 lt_unset=$lt_unset
31564
31565 # turn spaces into newlines.
31566 SP2NL=$lt_lt_SP2NL
31567
31568 # turn newlines into spaces.
31569 NL2SP=$lt_lt_NL2SP
31570
31571 # convert \$build file names to \$host format.
31572 to_host_file_cmd=$lt_cv_to_host_file_cmd
31573
31574 # convert \$build files to toolchain format.
31575 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31576
31577 # Method to check whether dependent libraries are shared objects.
31578 deplibs_check_method=$lt_deplibs_check_method
31579
31580 # Command to use when deplibs_check_method = "file_magic".
31581 file_magic_cmd=$lt_file_magic_cmd
31582
31583 # How to find potential files when deplibs_check_method = "file_magic".
31584 file_magic_glob=$lt_file_magic_glob
31585
31586 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31587 want_nocaseglob=$lt_want_nocaseglob
31588
31589 # Command to associate shared and link libraries.
31590 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31591
31592 # The archiver.
31593 AR=$lt_AR
31594
31595 # Flags to create an archive.
31596 AR_FLAGS=$lt_AR_FLAGS
31597
31598 # How to feed a file listing to the archiver.
31599 archiver_list_spec=$lt_archiver_list_spec
31600
31601 # A symbol stripping program.
31602 STRIP=$lt_STRIP
31603
31604 # Commands used to install an old-style archive.
31605 RANLIB=$lt_RANLIB
31606 old_postinstall_cmds=$lt_old_postinstall_cmds
31607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31608
31609 # Whether to use a lock for old archive extraction.
31610 lock_old_archive_extraction=$lock_old_archive_extraction
31611
31612 # A C compiler.
31613 LTCC=$lt_CC
31614
31615 # LTCC compiler flags.
31616 LTCFLAGS=$lt_CFLAGS
31617
31618 # Take the output of nm and produce a listing of raw symbols and C names.
31619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31620
31621 # Transform the output of nm in a proper C declaration.
31622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31623
31624 # Transform the output of nm in a C name address pair.
31625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31626
31627 # Transform the output of nm in a C name address pair when lib prefix is needed.
31628 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31629
31630 # Specify filename containing input files for \$NM.
31631 nm_file_list_spec=$lt_nm_file_list_spec
31632
31633 # The root where to search for dependent libraries,and in which our libraries should be installed.
31634 lt_sysroot=$lt_sysroot
31635
31636 # The name of the directory that contains temporary libtool files.
31637 objdir=$objdir
31638
31639 # Used to examine libraries when file_magic_cmd begins with "file".
31640 MAGIC_CMD=$MAGIC_CMD
31641
31642 # Must we lock files when doing compilation?
31643 need_locks=$lt_need_locks
31644
31645 # Manifest tool.
31646 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31647
31648 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31649 DSYMUTIL=$lt_DSYMUTIL
31650
31651 # Tool to change global to local symbols on Mac OS X.
31652 NMEDIT=$lt_NMEDIT
31653
31654 # Tool to manipulate fat objects and archives on Mac OS X.
31655 LIPO=$lt_LIPO
31656
31657 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31658 OTOOL=$lt_OTOOL
31659
31660 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31661 OTOOL64=$lt_OTOOL64
31662
31663 # Old archive suffix (normally "a").
31664 libext=$libext
31665
31666 # Shared library suffix (normally ".so").
31667 shrext_cmds=$lt_shrext_cmds
31668
31669 # The commands to extract the exported symbol list from a shared archive.
31670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31671
31672 # Variables whose values should be saved in libtool wrapper scripts and
31673 # restored at link time.
31674 variables_saved_for_relink=$lt_variables_saved_for_relink
31675
31676 # Do we need the "lib" prefix for modules?
31677 need_lib_prefix=$need_lib_prefix
31678
31679 # Do we need a version for libraries?
31680 need_version=$need_version
31681
31682 # Library versioning type.
31683 version_type=$version_type
31684
31685 # Shared library runtime path variable.
31686 runpath_var=$runpath_var
31687
31688 # Shared library path variable.
31689 shlibpath_var=$shlibpath_var
31690
31691 # Is shlibpath searched before the hard-coded library search path?
31692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31693
31694 # Format of library name prefix.
31695 libname_spec=$lt_libname_spec
31696
31697 # List of archive names.  First name is the real one, the rest are links.
31698 # The last name is the one that the linker finds with -lNAME
31699 library_names_spec=$lt_library_names_spec
31700
31701 # The coded name of the library, if different from the real name.
31702 soname_spec=$lt_soname_spec
31703
31704 # Permission mode override for installation of shared libraries.
31705 install_override_mode=$lt_install_override_mode
31706
31707 # Command to use after installation of a shared archive.
31708 postinstall_cmds=$lt_postinstall_cmds
31709
31710 # Command to use after uninstallation of a shared archive.
31711 postuninstall_cmds=$lt_postuninstall_cmds
31712
31713 # Commands used to finish a libtool library installation in a directory.
31714 finish_cmds=$lt_finish_cmds
31715
31716 # As "finish_cmds", except a single script fragment to be evaled but
31717 # not shown.
31718 finish_eval=$lt_finish_eval
31719
31720 # Whether we should hardcode library paths into libraries.
31721 hardcode_into_libs=$hardcode_into_libs
31722
31723 # Compile-time system search path for libraries.
31724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31725
31726 # Run-time system search path for libraries.
31727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31728
31729 # Whether dlopen is supported.
31730 dlopen_support=$enable_dlopen
31731
31732 # Whether dlopen of programs is supported.
31733 dlopen_self=$enable_dlopen_self
31734
31735 # Whether dlopen of statically linked programs is supported.
31736 dlopen_self_static=$enable_dlopen_self_static
31737
31738 # Commands to strip libraries.
31739 old_striplib=$lt_old_striplib
31740 striplib=$lt_striplib
31741
31742
31743 # The linker used to build libraries.
31744 LD=$lt_LD
31745
31746 # How to create reloadable object files.
31747 reload_flag=$lt_reload_flag
31748 reload_cmds=$lt_reload_cmds
31749
31750 # Commands used to build an old-style archive.
31751 old_archive_cmds=$lt_old_archive_cmds
31752
31753 # A language specific compiler.
31754 CC=$lt_compiler
31755
31756 # Is the compiler the GNU compiler?
31757 with_gcc=$GCC
31758
31759 # Compiler flag to turn off builtin functions.
31760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31761
31762 # Additional compiler flags for building library objects.
31763 pic_flag=$lt_lt_prog_compiler_pic
31764
31765 # How to pass a linker flag through the compiler.
31766 wl=$lt_lt_prog_compiler_wl
31767
31768 # Compiler flag to prevent dynamic linking.
31769 link_static_flag=$lt_lt_prog_compiler_static
31770
31771 # Does compiler simultaneously support -c and -o options?
31772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31773
31774 # Whether or not to add -lc for building shared libraries.
31775 build_libtool_need_lc=$archive_cmds_need_lc
31776
31777 # Whether or not to disallow shared libs when runtime libs are static.
31778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31779
31780 # Compiler flag to allow reflexive dlopens.
31781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31782
31783 # Compiler flag to generate shared objects directly from archives.
31784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31785
31786 # Whether the compiler copes with passing no objects directly.
31787 compiler_needs_object=$lt_compiler_needs_object
31788
31789 # Create an old-style archive from a shared archive.
31790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31791
31792 # Create a temporary old-style archive to link instead of a shared archive.
31793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31794
31795 # Commands used to build a shared archive.
31796 archive_cmds=$lt_archive_cmds
31797 archive_expsym_cmds=$lt_archive_expsym_cmds
31798
31799 # Commands used to build a loadable module if different from building
31800 # a shared archive.
31801 module_cmds=$lt_module_cmds
31802 module_expsym_cmds=$lt_module_expsym_cmds
31803
31804 # Whether we are building with GNU ld or not.
31805 with_gnu_ld=$lt_with_gnu_ld
31806
31807 # Flag that allows shared libraries with undefined symbols to be built.
31808 allow_undefined_flag=$lt_allow_undefined_flag
31809
31810 # Flag that enforces no undefined symbols.
31811 no_undefined_flag=$lt_no_undefined_flag
31812
31813 # Flag to hardcode \$libdir into a binary during linking.
31814 # This must work even if \$libdir does not exist
31815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31816
31817 # Whether we need a single "-rpath" flag with a separated argument.
31818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31819
31820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31821 # DIR into the resulting binary.
31822 hardcode_direct=$hardcode_direct
31823
31824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31825 # DIR into the resulting binary and the resulting library dependency is
31826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31827 # library is relocated.
31828 hardcode_direct_absolute=$hardcode_direct_absolute
31829
31830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31831 # into the resulting binary.
31832 hardcode_minus_L=$hardcode_minus_L
31833
31834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31835 # into the resulting binary.
31836 hardcode_shlibpath_var=$hardcode_shlibpath_var
31837
31838 # Set to "yes" if building a shared library automatically hardcodes DIR
31839 # into the library and all subsequent libraries and executables linked
31840 # against it.
31841 hardcode_automatic=$hardcode_automatic
31842
31843 # Set to yes if linker adds runtime paths of dependent libraries
31844 # to runtime path list.
31845 inherit_rpath=$inherit_rpath
31846
31847 # Whether libtool must link a program against all its dependency libraries.
31848 link_all_deplibs=$link_all_deplibs
31849
31850 # Set to "yes" if exported symbols are required.
31851 always_export_symbols=$always_export_symbols
31852
31853 # The commands to list exported symbols.
31854 export_symbols_cmds=$lt_export_symbols_cmds
31855
31856 # Symbols that should not be listed in the preloaded symbols.
31857 exclude_expsyms=$lt_exclude_expsyms
31858
31859 # Symbols that must always be exported.
31860 include_expsyms=$lt_include_expsyms
31861
31862 # Commands necessary for linking programs (against libraries) with templates.
31863 prelink_cmds=$lt_prelink_cmds
31864
31865 # Commands necessary for finishing linking programs.
31866 postlink_cmds=$lt_postlink_cmds
31867
31868 # Specify filename containing input files.
31869 file_list_spec=$lt_file_list_spec
31870
31871 # How to hardcode a shared library path into an executable.
31872 hardcode_action=$hardcode_action
31873
31874 # The directories searched by this compiler when creating a shared library.
31875 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31876
31877 # Dependencies to place before and after the objects being linked to
31878 # create a shared library.
31879 predep_objects=$lt_predep_objects
31880 postdep_objects=$lt_postdep_objects
31881 predeps=$lt_predeps
31882 postdeps=$lt_postdeps
31883
31884 # The library search path used internally by the compiler when linking
31885 # a shared library.
31886 compiler_lib_search_path=$lt_compiler_lib_search_path
31887
31888 # ### END LIBTOOL CONFIG
31889
31890 _LT_EOF
31891
31892   case $host_os in
31893   aix3*)
31894     cat <<\_LT_EOF >> "$cfgfile"
31895 # AIX sometimes has problems with the GCC collect2 program.  For some
31896 # reason, if we set the COLLECT_NAMES environment variable, the problems
31897 # vanish in a puff of smoke.
31898 if test "X${COLLECT_NAMES+set}" != Xset; then
31899   COLLECT_NAMES=
31900   export COLLECT_NAMES
31901 fi
31902 _LT_EOF
31903     ;;
31904   esac
31905
31906
31907 ltmain="$ac_aux_dir/ltmain.sh"
31908
31909
31910   # We use sed instead of cat because bash on DJGPP gets confused if
31911   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31912   # text mode, it properly converts lines to CR/LF.  This bash problem
31913   # is reportedly fixed, but why not run on old versions too?
31914   sed '$q' "$ltmain" >> "$cfgfile" \
31915      || (rm -f "$cfgfile"; exit 1)
31916
31917   if test x"$xsi_shell" = xyes; then
31918   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31919 func_dirname ()\
31920 {\
31921 \    case ${1} in\
31922 \      */*) func_dirname_result="${1%/*}${2}" ;;\
31923 \      *  ) func_dirname_result="${3}" ;;\
31924 \    esac\
31925 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31926   && mv -f "$cfgfile.tmp" "$cfgfile" \
31927     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31928 test 0 -eq $? || _lt_function_replace_fail=:
31929
31930
31931   sed -e '/^func_basename ()$/,/^} # func_basename /c\
31932 func_basename ()\
31933 {\
31934 \    func_basename_result="${1##*/}"\
31935 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31936   && mv -f "$cfgfile.tmp" "$cfgfile" \
31937     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31938 test 0 -eq $? || _lt_function_replace_fail=:
31939
31940
31941   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31942 func_dirname_and_basename ()\
31943 {\
31944 \    case ${1} in\
31945 \      */*) func_dirname_result="${1%/*}${2}" ;;\
31946 \      *  ) func_dirname_result="${3}" ;;\
31947 \    esac\
31948 \    func_basename_result="${1##*/}"\
31949 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31950   && mv -f "$cfgfile.tmp" "$cfgfile" \
31951     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31952 test 0 -eq $? || _lt_function_replace_fail=:
31953
31954
31955   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31956 func_stripname ()\
31957 {\
31958 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31959 \    # positional parameters, so assign one to ordinary parameter first.\
31960 \    func_stripname_result=${3}\
31961 \    func_stripname_result=${func_stripname_result#"${1}"}\
31962 \    func_stripname_result=${func_stripname_result%"${2}"}\
31963 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31964   && mv -f "$cfgfile.tmp" "$cfgfile" \
31965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31966 test 0 -eq $? || _lt_function_replace_fail=:
31967
31968
31969   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31970 func_split_long_opt ()\
31971 {\
31972 \    func_split_long_opt_name=${1%%=*}\
31973 \    func_split_long_opt_arg=${1#*=}\
31974 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31975   && mv -f "$cfgfile.tmp" "$cfgfile" \
31976     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31977 test 0 -eq $? || _lt_function_replace_fail=:
31978
31979
31980   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31981 func_split_short_opt ()\
31982 {\
31983 \    func_split_short_opt_arg=${1#??}\
31984 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31985 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31986   && mv -f "$cfgfile.tmp" "$cfgfile" \
31987     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31988 test 0 -eq $? || _lt_function_replace_fail=:
31989
31990
31991   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31992 func_lo2o ()\
31993 {\
31994 \    case ${1} in\
31995 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31996 \      *)    func_lo2o_result=${1} ;;\
31997 \    esac\
31998 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31999   && mv -f "$cfgfile.tmp" "$cfgfile" \
32000     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32001 test 0 -eq $? || _lt_function_replace_fail=:
32002
32003
32004   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32005 func_xform ()\
32006 {\
32007     func_xform_result=${1%.*}.lo\
32008 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32009   && mv -f "$cfgfile.tmp" "$cfgfile" \
32010     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32011 test 0 -eq $? || _lt_function_replace_fail=:
32012
32013
32014   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32015 func_arith ()\
32016 {\
32017     func_arith_result=$(( $* ))\
32018 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32019   && mv -f "$cfgfile.tmp" "$cfgfile" \
32020     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32021 test 0 -eq $? || _lt_function_replace_fail=:
32022
32023
32024   sed -e '/^func_len ()$/,/^} # func_len /c\
32025 func_len ()\
32026 {\
32027     func_len_result=${#1}\
32028 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32029   && mv -f "$cfgfile.tmp" "$cfgfile" \
32030     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32031 test 0 -eq $? || _lt_function_replace_fail=:
32032
32033 fi
32034
32035 if test x"$lt_shell_append" = xyes; then
32036   sed -e '/^func_append ()$/,/^} # func_append /c\
32037 func_append ()\
32038 {\
32039     eval "${1}+=\\${2}"\
32040 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32041   && mv -f "$cfgfile.tmp" "$cfgfile" \
32042     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32043 test 0 -eq $? || _lt_function_replace_fail=:
32044
32045
32046   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32047 func_append_quoted ()\
32048 {\
32049 \    func_quote_for_eval "${2}"\
32050 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32051 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32052   && mv -f "$cfgfile.tmp" "$cfgfile" \
32053     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32054 test 0 -eq $? || _lt_function_replace_fail=:
32055
32056
32057   # Save a `func_append' function call where possible by direct use of '+='
32058   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32059     && mv -f "$cfgfile.tmp" "$cfgfile" \
32060       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32061   test 0 -eq $? || _lt_function_replace_fail=:
32062 else
32063   # Save a `func_append' function call even when '+=' is not available
32064   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32065     && mv -f "$cfgfile.tmp" "$cfgfile" \
32066       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32067   test 0 -eq $? || _lt_function_replace_fail=:
32068 fi
32069
32070 if test x"$_lt_function_replace_fail" = x":"; then
32071   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32072 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32073 fi
32074
32075
32076    mv -f "$cfgfile" "$ofile" ||
32077     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32078   chmod +x "$ofile"
32079
32080
32081     cat <<_LT_EOF >> "$ofile"
32082
32083 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32084
32085 # The linker used to build libraries.
32086 LD=$lt_LD_CXX
32087
32088 # How to create reloadable object files.
32089 reload_flag=$lt_reload_flag_CXX
32090 reload_cmds=$lt_reload_cmds_CXX
32091
32092 # Commands used to build an old-style archive.
32093 old_archive_cmds=$lt_old_archive_cmds_CXX
32094
32095 # A language specific compiler.
32096 CC=$lt_compiler_CXX
32097
32098 # Is the compiler the GNU compiler?
32099 with_gcc=$GCC_CXX
32100
32101 # Compiler flag to turn off builtin functions.
32102 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32103
32104 # Additional compiler flags for building library objects.
32105 pic_flag=$lt_lt_prog_compiler_pic_CXX
32106
32107 # How to pass a linker flag through the compiler.
32108 wl=$lt_lt_prog_compiler_wl_CXX
32109
32110 # Compiler flag to prevent dynamic linking.
32111 link_static_flag=$lt_lt_prog_compiler_static_CXX
32112
32113 # Does compiler simultaneously support -c and -o options?
32114 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32115
32116 # Whether or not to add -lc for building shared libraries.
32117 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32118
32119 # Whether or not to disallow shared libs when runtime libs are static.
32120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32121
32122 # Compiler flag to allow reflexive dlopens.
32123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32124
32125 # Compiler flag to generate shared objects directly from archives.
32126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32127
32128 # Whether the compiler copes with passing no objects directly.
32129 compiler_needs_object=$lt_compiler_needs_object_CXX
32130
32131 # Create an old-style archive from a shared archive.
32132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32133
32134 # Create a temporary old-style archive to link instead of a shared archive.
32135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32136
32137 # Commands used to build a shared archive.
32138 archive_cmds=$lt_archive_cmds_CXX
32139 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32140
32141 # Commands used to build a loadable module if different from building
32142 # a shared archive.
32143 module_cmds=$lt_module_cmds_CXX
32144 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32145
32146 # Whether we are building with GNU ld or not.
32147 with_gnu_ld=$lt_with_gnu_ld_CXX
32148
32149 # Flag that allows shared libraries with undefined symbols to be built.
32150 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32151
32152 # Flag that enforces no undefined symbols.
32153 no_undefined_flag=$lt_no_undefined_flag_CXX
32154
32155 # Flag to hardcode \$libdir into a binary during linking.
32156 # This must work even if \$libdir does not exist
32157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32158
32159 # Whether we need a single "-rpath" flag with a separated argument.
32160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32161
32162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32163 # DIR into the resulting binary.
32164 hardcode_direct=$hardcode_direct_CXX
32165
32166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32167 # DIR into the resulting binary and the resulting library dependency is
32168 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32169 # library is relocated.
32170 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32171
32172 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32173 # into the resulting binary.
32174 hardcode_minus_L=$hardcode_minus_L_CXX
32175
32176 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32177 # into the resulting binary.
32178 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32179
32180 # Set to "yes" if building a shared library automatically hardcodes DIR
32181 # into the library and all subsequent libraries and executables linked
32182 # against it.
32183 hardcode_automatic=$hardcode_automatic_CXX
32184
32185 # Set to yes if linker adds runtime paths of dependent libraries
32186 # to runtime path list.
32187 inherit_rpath=$inherit_rpath_CXX
32188
32189 # Whether libtool must link a program against all its dependency libraries.
32190 link_all_deplibs=$link_all_deplibs_CXX
32191
32192 # Set to "yes" if exported symbols are required.
32193 always_export_symbols=$always_export_symbols_CXX
32194
32195 # The commands to list exported symbols.
32196 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32197
32198 # Symbols that should not be listed in the preloaded symbols.
32199 exclude_expsyms=$lt_exclude_expsyms_CXX
32200
32201 # Symbols that must always be exported.
32202 include_expsyms=$lt_include_expsyms_CXX
32203
32204 # Commands necessary for linking programs (against libraries) with templates.
32205 prelink_cmds=$lt_prelink_cmds_CXX
32206
32207 # Commands necessary for finishing linking programs.
32208 postlink_cmds=$lt_postlink_cmds_CXX
32209
32210 # Specify filename containing input files.
32211 file_list_spec=$lt_file_list_spec_CXX
32212
32213 # How to hardcode a shared library path into an executable.
32214 hardcode_action=$hardcode_action_CXX
32215
32216 # The directories searched by this compiler when creating a shared library.
32217 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32218
32219 # Dependencies to place before and after the objects being linked to
32220 # create a shared library.
32221 predep_objects=$lt_predep_objects_CXX
32222 postdep_objects=$lt_postdep_objects_CXX
32223 predeps=$lt_predeps_CXX
32224 postdeps=$lt_postdeps_CXX
32225
32226 # The library search path used internally by the compiler when linking
32227 # a shared library.
32228 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32229
32230 # ### END LIBTOOL TAG CONFIG: CXX
32231 _LT_EOF
32232
32233
32234     cat <<_LT_EOF >> "$ofile"
32235
32236 # ### BEGIN LIBTOOL TAG CONFIG: F77
32237
32238 # The linker used to build libraries.
32239 LD=$lt_LD_F77
32240
32241 # How to create reloadable object files.
32242 reload_flag=$lt_reload_flag_F77
32243 reload_cmds=$lt_reload_cmds_F77
32244
32245 # Commands used to build an old-style archive.
32246 old_archive_cmds=$lt_old_archive_cmds_F77
32247
32248 # A language specific compiler.
32249 CC=$lt_compiler_F77
32250
32251 # Is the compiler the GNU compiler?
32252 with_gcc=$GCC_F77
32253
32254 # Compiler flag to turn off builtin functions.
32255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
32256
32257 # Additional compiler flags for building library objects.
32258 pic_flag=$lt_lt_prog_compiler_pic_F77
32259
32260 # How to pass a linker flag through the compiler.
32261 wl=$lt_lt_prog_compiler_wl_F77
32262
32263 # Compiler flag to prevent dynamic linking.
32264 link_static_flag=$lt_lt_prog_compiler_static_F77
32265
32266 # Does compiler simultaneously support -c and -o options?
32267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
32268
32269 # Whether or not to add -lc for building shared libraries.
32270 build_libtool_need_lc=$archive_cmds_need_lc_F77
32271
32272 # Whether or not to disallow shared libs when runtime libs are static.
32273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
32274
32275 # Compiler flag to allow reflexive dlopens.
32276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
32277
32278 # Compiler flag to generate shared objects directly from archives.
32279 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
32280
32281 # Whether the compiler copes with passing no objects directly.
32282 compiler_needs_object=$lt_compiler_needs_object_F77
32283
32284 # Create an old-style archive from a shared archive.
32285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
32286
32287 # Create a temporary old-style archive to link instead of a shared archive.
32288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
32289
32290 # Commands used to build a shared archive.
32291 archive_cmds=$lt_archive_cmds_F77
32292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
32293
32294 # Commands used to build a loadable module if different from building
32295 # a shared archive.
32296 module_cmds=$lt_module_cmds_F77
32297 module_expsym_cmds=$lt_module_expsym_cmds_F77
32298
32299 # Whether we are building with GNU ld or not.
32300 with_gnu_ld=$lt_with_gnu_ld_F77
32301
32302 # Flag that allows shared libraries with undefined symbols to be built.
32303 allow_undefined_flag=$lt_allow_undefined_flag_F77
32304
32305 # Flag that enforces no undefined symbols.
32306 no_undefined_flag=$lt_no_undefined_flag_F77
32307
32308 # Flag to hardcode \$libdir into a binary during linking.
32309 # This must work even if \$libdir does not exist
32310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
32311
32312 # Whether we need a single "-rpath" flag with a separated argument.
32313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
32314
32315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32316 # DIR into the resulting binary.
32317 hardcode_direct=$hardcode_direct_F77
32318
32319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32320 # DIR into the resulting binary and the resulting library dependency is
32321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32322 # library is relocated.
32323 hardcode_direct_absolute=$hardcode_direct_absolute_F77
32324
32325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32326 # into the resulting binary.
32327 hardcode_minus_L=$hardcode_minus_L_F77
32328
32329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32330 # into the resulting binary.
32331 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
32332
32333 # Set to "yes" if building a shared library automatically hardcodes DIR
32334 # into the library and all subsequent libraries and executables linked
32335 # against it.
32336 hardcode_automatic=$hardcode_automatic_F77
32337
32338 # Set to yes if linker adds runtime paths of dependent libraries
32339 # to runtime path list.
32340 inherit_rpath=$inherit_rpath_F77
32341
32342 # Whether libtool must link a program against all its dependency libraries.
32343 link_all_deplibs=$link_all_deplibs_F77
32344
32345 # Set to "yes" if exported symbols are required.
32346 always_export_symbols=$always_export_symbols_F77
32347
32348 # The commands to list exported symbols.
32349 export_symbols_cmds=$lt_export_symbols_cmds_F77
32350
32351 # Symbols that should not be listed in the preloaded symbols.
32352 exclude_expsyms=$lt_exclude_expsyms_F77
32353
32354 # Symbols that must always be exported.
32355 include_expsyms=$lt_include_expsyms_F77
32356
32357 # Commands necessary for linking programs (against libraries) with templates.
32358 prelink_cmds=$lt_prelink_cmds_F77
32359
32360 # Commands necessary for finishing linking programs.
32361 postlink_cmds=$lt_postlink_cmds_F77
32362
32363 # Specify filename containing input files.
32364 file_list_spec=$lt_file_list_spec_F77
32365
32366 # How to hardcode a shared library path into an executable.
32367 hardcode_action=$hardcode_action_F77
32368
32369 # The directories searched by this compiler when creating a shared library.
32370 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
32371
32372 # Dependencies to place before and after the objects being linked to
32373 # create a shared library.
32374 predep_objects=$lt_predep_objects_F77
32375 postdep_objects=$lt_postdep_objects_F77
32376 predeps=$lt_predeps_F77
32377 postdeps=$lt_postdeps_F77
32378
32379 # The library search path used internally by the compiler when linking
32380 # a shared library.
32381 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
32382
32383 # ### END LIBTOOL TAG CONFIG: F77
32384 _LT_EOF
32385
32386  ;;
32387
32388   esac
32389 done # for ac_tag
32390
32391
32392 as_fn_exit 0
32393 _ACEOF
32394 ac_clean_files=$ac_clean_files_save
32395
32396 test $ac_write_fail = 0 ||
32397   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32398
32399
32400 # configure is writing to config.log, and then calls config.status.
32401 # config.status does its own redirection, appending to config.log.
32402 # Unfortunately, on DOS this fails, as config.log is still kept open
32403 # by configure, so config.status won't be able to write to it; its
32404 # output is simply discarded.  So we exec the FD to /dev/null,
32405 # effectively closing config.log, so it can be properly (re)opened and
32406 # appended to by config.status.  When coming back to configure, we
32407 # need to make the FD available again.
32408 if test "$no_create" != yes; then
32409   ac_cs_success=:
32410   ac_config_status_args=
32411   test "$silent" = yes &&
32412     ac_config_status_args="$ac_config_status_args --quiet"
32413   exec 5>/dev/null
32414   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32415   exec 5>>config.log
32416   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32417   # would make configure fail if this is the last instruction.
32418   $ac_cs_success || as_fn_exit 1
32419 fi
32420 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32421   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32422 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32423 fi
32424
32425
32426 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
32427
32428   Version:           ${PACKAGE_STRING}
32429   Host type:         ${host}
32430   ABI:               ${ABI}
32431   Install prefix:    ${prefix}
32432   Compiler:          ${CC}
32433   Static libraries:  ${enable_static}
32434   Shared libraries:  ${enable_shared}
32435 " >&5
32436 $as_echo "$as_me: summary of build options:
32437
32438   Version:           ${PACKAGE_STRING}
32439   Host type:         ${host}
32440   ABI:               ${ABI}
32441   Install prefix:    ${prefix}
32442   Compiler:          ${CC}
32443   Static libraries:  ${enable_static}
32444   Shared libraries:  ${enable_shared}
32445 " >&6;}
32446
32447 if test x$cross_compiling = xyes ; then
32448    case "$host" in
32449      *-*-mingw* | *-*-cygwin)
32450      if test x$ABI = x64 ; then
32451         { $as_echo "$as_me:${as_lineno-$LINENO}: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&5
32452 $as_echo "$as_me: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&6;}
32453      else
32454         { $as_echo "$as_me:${as_lineno-$LINENO}: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&5
32455 $as_echo "$as_me: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&6;}
32456      fi
32457      ;;
32458    esac
32459 fi